Compare commits

...

450 Commits

Author SHA1 Message Date
Juan Picado
5a61cdd0cf chore: update versions (6-next) (#3341)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-02 20:52:37 +02:00
Juan Picado
b849128ded fix: handle upload scoped tarball and add new deprecations (#3340)
* chore: add local publish support

* chore: fix upload scoped tarball

* add e2e
2022-09-02 20:40:12 +02:00
verdacciobot
efa2efe531 chore: updated contributors list 2022-09-01 00:14:39 +00:00
renovate[bot]
62ef397df1 chore(deps): update actions/github-script digest to c713e51 (#3336)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-31 08:09:06 +02:00
dependabot[bot]
e8fd4daf78 chore(deps): bump actions/github-script from 6.1.1 to 6.2.0 (#3337)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.1.1 to 6.2.0.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](d50f485531...c713e510db)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 08:08:19 +02:00
dependabot[bot]
acc5862323 chore(deps): bump github/codeql-action from 2.1.20 to 2.1.21 (#3338)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.20 to 2.1.21.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](7fee4ca032...c7f292ea4f)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 08:08:00 +02:00
Aron Hafner
43c164efe0 docs: update config to use log property (#3339)
Update config.yaml to use log property instead of the depreciated logs

When using logs the following error occurs

```
Error: Error: the property config "logs" property is longer supported, rename to "log" and use object instead
```
2022-08-31 08:07:25 +02:00
verdacciobot
cd02e8d56a chore: updated contributors list 2022-08-29 00:14:20 +00:00
Juan Picado
5b270bdd06 Update package.json 2022-08-28 17:18:29 +02:00
Juan Picado
e06d8a0956 chore: update versions (6-next) (#3334)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-28 13:32:17 +02:00
Juan Picado
44b7a0f300 chore: remove website from changeset 2022-08-28 06:10:46 +02:00
Zoltan Kochan
351aeeaa88 fix(deps): @verdaccio/utils should be a prod dep of local-storage (#3333)
* fix(deps): @verdaccio/utils should be a prod dep of local-storage

* add changeset

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-08-28 07:44:48 +02:00
Juan Picado
3089c1c9cb chore: update versions (6-next) (#3331)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-27 19:33:00 +02:00
Juan Picado
d202128a06 chore: remove local packacages 2022-08-27 19:27:03 +02:00
Juan Picado
3c81bf8945 chore: update contributors script (#3332)
* chore: update script

* chore: update contributors file
2022-08-27 19:24:57 +02:00
okyanusoz
20d63dc30e ui: basic grammatical fixes in the Ukraine Message (#3330)
* Update Support.tsx

* Update Support.tsx

* chore: add changeset

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-08-27 19:12:35 +02:00
Juan Picado
5e22a52d9d Update changesets.yml 2022-08-27 16:25:59 +02:00
renovate[bot]
f332927f02 fix(deps): update all core dependencies (#3327)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-27 15:41:25 +02:00
github-actions[bot]
4137a96c20 chore: update versions (6-next) (#3329) 2022-08-27 15:07:19 +02:00
Juan Picado
37274e4c8d feat: implement abbreviated manifest (#3322)
* feat: implement abbreviated manifest

* chore: add time field

* chore: add abbreviated version

* chore: fix missing time

* chore: fix merge time issue

* Update jest.config.js

* add tests

* chore: add tests

* chore: add missing fields
2022-08-27 12:52:23 +02:00
Shenhe
f1527f5f20 docs: changed the deprecated installation method (#3323)
* Changed the deprecated installation method

Altered the `npm` global installation command i.e. `npm i -g` and `npm install --global` to `npm i --location=global` and `npm install --location=global` respectively. Also added methods for installing using `yarn` and `pnpm`

* Changed the deprecated installation method for `npm`

Changed the installation flag from `--global` and `-g` to `--location=global` for `npm` i.e. to `npm --location=global`

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-08-27 09:20:09 +02:00
Marc Bernard
a32a7e617e Update docs for cli (#3325)
- Minor corrections and additions
- Added link to possible formats for `listen` command
2022-08-26 19:53:35 +02:00
Marc Bernard
08c36e688e docs: add statement about npm security best practices (#3324)
OWASP is explicitly mentioning Verdaccio in one of their recommendations for npm security best practices. 

It's high praise so should be mentioned in a central place. If not here, you might find another page to add it.
2022-08-24 17:59:08 +02:00
Juan Picado
ba3d100b63 chore: fix format 2022-08-24 07:23:09 +02:00
Shenhe
37da9e0f61 Changed the deprecated installation method (#3321)
Altered the `npm` global installation command i.e. `npm i -g` and `npm install --global` to `npm i --location=global` and `npm install --location=global` respectively. Also added methods for installing using `yarn` and `pnpm`
2022-08-24 07:13:55 +02:00
Juan Picado
e630954923 website: restore github button front page 2022-08-22 20:46:20 +02:00
Juan Picado
4b61029718 chore: add more install notes 2022-08-22 20:31:59 +02:00
Juan Picado
13398c6ab8 update docker plugins examples 2022-08-22 18:51:04 +02:00
renovate[bot]
16f847fd7d chore(deps): pin dependencies (#3319)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-22 17:58:45 +02:00
Juan Picado
225b5235a9 update help website page 2022-08-21 15:15:40 +02:00
Juan Picado
1b5bcfeac6 Update renovate.json 2022-08-21 15:00:15 +02:00
Juan Picado
eaebffaf9e Update renovate.json 2022-08-21 14:31:43 +02:00
Juan Picado
dc4fa8e20d chore: remove unused file 2022-08-21 14:21:08 +02:00
Juan Picado
99b947a2a5 chore: clean unused code 2022-08-21 14:19:59 +02:00
Juan Picado
83c4705821 chore: migrate material ui old dep (#3318) 2022-08-21 14:15:20 +02:00
Juan Picado
3f5a1ee22a chore: update front page website (#3317)
* chore: update front page website

* Update UsedBy.tsx

* update links
2022-08-20 19:23:24 +02:00
Juan Picado
bf0f331dfc chore: remove empty website page 2022-08-20 18:20:22 +02:00
renovate[bot]
89b2b9104f fix(deps): update all linting dependencies (#3312) 2022-08-20 10:18:38 +02:00
renovate[bot]
21478f3221 fix(deps): update all core dependencies (#3298) 2022-08-20 09:28:29 +02:00
github-actions[bot]
12a05875c7 chore: update versions (6-next) (#3276)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-19 23:48:06 +02:00
Juan Picado
24c5d7ede5 chore: upgrade website reps (#3311) 2022-08-19 23:33:41 +02:00
Juan Picado
b179541e66 chore: remove ref to removed package 2022-08-19 21:07:26 +02:00
Juan Picado
353c9f386f chore: refactor server express tests (#3306) 2022-08-19 20:25:20 +02:00
Juan Picado
f42db638eb chore: fix missing dep on master (#3310)
* Update dist-tags.ts

* Update ci.yml

* chore: fix missing dep on master

* chore: fix missing dep on master
2022-08-19 08:03:14 +02:00
Juan Picado
a3a209b5e2 feat: upgrade to pino 8 with async logging (#3308) 2022-08-18 21:39:34 +02:00
NotWearingPants
9bff9045f8 docs: update links in ci.md (#3309) 2022-08-18 21:03:13 +02:00
verdacciobot
df7600d08a chore: updated contributors list 2022-08-18 00:12:46 +00:00
Marc Bernard
a136cefd49 Fix link to readme (#3302)
Fixes link from https://github.com/verdaccio/verdaccio/tree/master/docker-examples/v6 to this readme
2022-08-17 17:15:14 +02:00
verdacciobot
93102eacc5 chore: updated contributors list 2022-08-15 00:12:27 +00:00
verdacciobot
7d05f03525 chore: updated contributors list 2022-08-11 00:13:37 +00:00
renovate[bot]
04cc86374d fix(deps): update all linting dependencies (master) (#3296)
* fix(deps): update all linting dependencies

* chore: fix lint

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-08-08 19:20:37 +02:00
NotWearingPants
bbf897d05a docs: fix formatting in packages/core/types/README (#3292)
* docs: fix formatting in packages/core/types/README

* format

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-08-08 18:48:42 +02:00
renovate[bot]
e21ccea3a1 fix(deps): update all core dependencies (master) (#3278)
* fix(deps): update all core dependencies

* chore: restore docusaurus

* restore versions

* fix types

* chore: fix error

* chore: update snapshots

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-08-08 08:55:41 +02:00
Juan Picado
5cf041a1a5 add changeset 2022-08-08 07:40:24 +02:00
NotWearingPants
57908e24ba feat: add dist.signatures to core/types (#3294) 2022-08-08 07:29:04 +02:00
Juan Picado
00d1d2a179 chore: env variable for launch fastify (#3295)
* chore: relocate package server

* chore: relocate server packages

* Update ci.yml

* rename packages

* rename package

* chore: refactor fastify endpoints

* chore: fix types requests

* fix warnings

* chore: refactor endpoints

* refactor launch fastify

* Update package.json

* chore: update deps

* Create green-yaks-divide.md
2022-08-08 07:14:23 +02:00
NotWearingPants
8db9cf93ce docs: fix typo in CONTRIBUTING.md (#3293) 2022-08-08 06:59:58 +02:00
verdacciobot
a6c88932a2 chore: updated contributors list 2022-08-08 00:12:57 +00:00
Juan Picado
399343c6f9 chore: pin action 2022-08-04 20:34:04 +02:00
Juan Picado
6f8a2d37e6 chore: add yarn modern (2, 3, 4) to cli E2E (#3289)
* test: add more packages managers to e2e cli

* chore: remove old conf files

* add yarn modern to e2e cli

* chore: add yarn 4

* ignore binary

* fix for tests yarn 3

* chore: tests

* update website ci

* Update package.json

* chore: try yarn 3 as binary

* chore: remove unused dependency

* Update utils.ts

* Update package.json

* Update package.json

* speed up build

* Update ci.yml

* Update ci.yml

* Update website.yml

* test

* chore: reenable all tests

* chore: restore ci

* chore: clean debug code
2022-08-04 20:04:12 +02:00
verdacciobot
0773e2ee2e chore: updated contributors list 2022-08-04 00:12:58 +00:00
Juan Picado
a4c17858bf test: add more packages managers to e2e cli (#3283)
* test: add more packages managers to e2e cli

* chore: remove old conf files

* Update ci.yml
2022-08-03 08:01:27 +02:00
Juan Picado
313c71c938 remove e2e packages changeset 2022-08-03 06:50:09 +02:00
Juan Picado
8342abde70 remove e2e packages changeset 2022-08-02 22:55:29 +02:00
Juan Picado
1755840cd3 e2e cli npm 6 (#3282)
* chore: add config utility

* improve verdaccio bin location

* add new npm cli e2e tests

* add tests

* rename files
2022-08-02 22:45:16 +02:00
verdacciobot
a123775f20 chore: updated contributors list 2022-08-01 00:14:01 +00:00
Juan Picado
292c0a37fc feat!: replace deprecated request dependency by got (#3100) 2022-07-29 20:51:45 +02:00
verdacciobot
743ccff5ef chore: updated contributors list 2022-07-28 00:13:48 +00:00
verdacciobot
4afb06347a chore: updated contributors list 2022-07-25 00:13:39 +00:00
verdacciobot
bfe996735a chore: updated contributors list 2022-07-21 00:13:51 +00:00
verdacciobot
1c7eb368ee chore: updated contributors list 2022-07-18 00:12:10 +00:00
verdacciobot
09125ff004 chore: updated contributors list 2022-07-14 00:13:57 +00:00
Juan Picado
43dd445200 chore: fix update python 3 docker image 2022-07-12 22:30:06 +02:00
Snyk bot
63f8a8aa2e fix: Dockerfile to reduce vulnerabilities (#3257)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE315-OPENSSL-2941810
- https://snyk.io/vuln/SNYK-ALPINE315-OPENSSL-2941810
2022-07-11 07:28:37 +02:00
verdacciobot
fcbc4bb781 chore: updated contributors list 2022-07-11 00:13:30 +00:00
verdacciobot
d964353cb8 chore: updated contributors list 2022-07-07 00:14:02 +00:00
Morrain
c5a6ff89bb update logger.md (#3256) 2022-07-06 19:57:32 +02:00
verdacciobot
d7dec2695f chore: updated contributors list 2022-07-04 00:14:18 +00:00
Thomi Richards
9beb77a44e docs: small language tweak to uplinks.md. (#3252) 2022-07-01 09:24:22 +03:00
verdacciobot
cfcdbf6282 chore: updated contributors list 2022-06-30 00:13:03 +00:00
verdacciobot
f75ddf8231 chore: updated contributors list 2022-06-27 00:13:28 +00:00
github-actions[bot]
73d545b812 chore: update versions (6-next) (#3249)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-24 22:25:08 +02:00
Juan Picado
a828a5f6c0 fix: #3174 set correctly ui values to html render (#3248)
* chore: enable tests

* Update ci.yml

* fix: #3174 set correctly ui values to html render

* Update ci.yml

* fix hex validator
2022-06-24 22:09:46 +02:00
Raz Luvaton
aa61d256de fix bold formatting (#3246) 2022-06-24 21:03:17 +02:00
Felipe Plets
7a99b11be3 website docs refactor the "Using a private registry" section (#3247) 2022-06-24 17:10:06 +02:00
Juan Picado
353aa62fff Update docusaurus.config.js 2022-06-23 23:24:27 +02:00
verdacciobot
278eaa409b chore: updated contributors list 2022-06-23 00:12:54 +00:00
Juan Picado
49b3120ded chore: improve docs 2022-06-22 23:12:10 +02:00
Juan Picado
2cc65d2503 chore: update readme 2022-06-22 22:26:41 +02:00
Juan Picado
2aef5203a4 chore: update readme 2022-06-22 22:24:38 +02:00
Juan Picado
a022b4a337 chore: update readme 2022-06-22 21:03:27 +02:00
Juan Picado
02e11e929a chore: update readme 2022-06-22 20:44:53 +02:00
verdacciobot
9fea291ebc chore: updated contributors list 2022-06-20 00:11:50 +00:00
Abraham Schilling
27899ab9d8 Add docker example to the custom build list (#3236) 2022-06-19 13:42:44 +02:00
Juan Picado
47ec52d03f chore: remove dependency 2022-06-17 05:56:48 +02:00
Juan Picado
0e74d5ea52 chore: update docs for 5.13.0 2022-06-17 05:55:35 +02:00
verdacciobot
a6be85ac3a chore: updated contributors list 2022-06-16 00:12:25 +00:00
Juan Picado
8fdfacdbf7 format 2022-06-14 21:24:46 +02:00
Naveen
28b97ec16b chore: renovate bot setting to pin actions to a full length commit SHA (#3189)
- https://docs.renovatebot.com/modules/manager/github-actions/#additional-information

- Pinned actions by SHA https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies

>Pin actions to a full length commit SHA

>Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
> Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository,
> as they would need to generate a SHA-1 collision for a valid Git object payload.

- https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
- b0c3aa85ef/default.json (L13)
2022-06-14 21:15:22 +02:00
Juan Picado
aea3b9ddaf add docker examples to use plugins with docker files (#3217)
* add docker examples to use plugins at docker

* Update Dockerfile

* chore: add v6 examples
2022-06-14 18:33:27 +02:00
Tony Patrinos
6d8aa9817c Improved documentation comments in docker.yaml (#3228) 2022-06-14 17:48:56 +02:00
verdacciobot
1916dbc1a5 chore: updated contributors list 2022-06-13 00:13:03 +00:00
verdacciobot
2b9882643d chore: updated contributors list 2022-06-09 00:11:48 +00:00
verdacciobot
853489896c chore: updated contributors list 2022-06-06 12:26:58 +00:00
verdacciobot
99c3960f74 chore: updated contributors list 2022-06-06 00:11:26 +00:00
github-actions[bot]
fd4be1a21a chore: update versions (6-next) (#3205)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-06-03 08:04:24 +02:00
Juan Picado
a6491dcd7c add programatically new page (#3212) 2022-06-02 18:15:22 +02:00
verdacciobot
1c077c32d7 chore: updated contributors list 2022-06-02 00:14:29 +00:00
Juan Picado
d7db93b143 update website version 2022-05-31 19:30:23 +02:00
Juan Picado
c306a2f1cb ci: skip preview for website on forks (#3208)
* ci: skip preview for website on forks

* ci: allow run build
2022-05-31 19:14:06 +02:00
Adriana Lima Shikasho
a6d9743c06 add portuguese-br article (#3207) 2022-05-31 18:13:48 +02:00
Juan Picado
b48edd980c chore: update readme 2022-05-30 21:06:26 +02:00
Daniel Tschinder
b8981136b0 fix: Fix storing same named files from different pkgs in memory plugin (#3200)
The memory plugin was not correctly writing tarballs that have the same name but are from different packages and have different content.
2022-05-30 18:49:42 +02:00
dependabot[bot]
ef793182d5 chore(deps): bump pnpm/action-setup from 2.2.1 to 2.2.2 (#3202)
* chore(deps): bump pnpm/action-setup from 2.2.1 to 2.2.2

Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* update website action

* update website action

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-05-30 18:49:21 +02:00
verdacciobot
3f98448566 chore: updated contributors list 2022-05-30 00:14:31 +00:00
verdacciobot
bcffca15ac chore: updated contributors list 2022-05-26 00:13:14 +00:00
verdacciobot
52ec6b41e3 chore: updated contributors list 2022-05-23 00:13:46 +00:00
Juan Picado
cfba19d622 ci: update benchmark settings 2022-05-19 22:09:32 +02:00
Juan Picado
b055c193b8 ci: fix pnpm versions on ci 2022-05-19 22:08:32 +02:00
renovate[bot]
cbb8adc075 fix(deps): update all linting dependencies (master) (#3184)
* fix(deps): update all linting dependencies

* update lock file

* update engines

* update engines

* update engines

* update engines

* update versions

* update versions

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-05-19 22:03:04 +02:00
verdacciobot
840aa9fe39 chore: updated contributors list 2022-05-19 00:12:56 +00:00
verdacciobot
f591a71d74 chore: updated contributors list 2022-05-16 00:14:25 +00:00
verdacciobot
c98bc8dc3e chore: updated contributors list 2022-05-12 00:13:24 +00:00
verdacciobot
d3ce9c1b0a chore: updated contributors list 2022-05-09 00:11:56 +00:00
Juan Picado
11bff60610 chore: align docker file node and pnpm version 2022-05-07 23:52:27 +02:00
Juan Picado
a75f5c97dd chore: upgrade docusaurus 2.0.0-beta.20 (#3162)
* chore: upgrade docusaurus

* chore: update conf breaking change
2022-05-07 23:06:15 +02:00
Juan Picado
e3184ed185 update web configuration 2022-05-07 22:39:18 +02:00
renovate[bot]
6d00f3ed2c fix(deps): update all linting dependencies (#3156)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 11:01:54 +02:00
dependabot[bot]
06d6c82d61 chore(deps): bump github/codeql-action from 1 to 2 (#3150)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-05-05 20:56:04 +02:00
Andrew
ff49f7df03 docs: update install.md (#3152)
Fix a **very** minor typo
2022-05-05 08:10:06 +02:00
verdacciobot
1cfb52d414 chore: updated contributors list 2022-05-05 00:12:19 +00:00
verdacciobot
fe11b334fc chore: updated contributors list 2022-05-02 00:12:17 +00:00
Juan Picado
321703512a fixed version pnpm 6 on ci 2022-05-01 16:26:37 +02:00
Dmitry Afanasiev
e9d1e82666 fix logging in utils/allow_action (#3147) 2022-05-01 16:12:46 +02:00
verdacciobot
f8a7fc94a8 chore: updated contributors list 2022-04-29 20:42:03 +00:00
Naveen
1a605054a8 chore: Set permissions for GitHub actions (#3145)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-04-28 18:06:00 +02:00
undefined
f9a58dce98 fix: rename variable yaml on source code (#3146)
no logic changes, just rename variables
2022-04-28 18:01:09 +02:00
verdacciobot
0d1dd136eb chore: updated contributors list 2022-04-28 00:14:56 +00:00
Trevor Blackman
a4eedfe070 fix: missing word (#3144)
Added a missing word; "We will happy..." -> "We will be happy..."
2022-04-26 23:28:53 +02:00
Robert Blaine
a11f8aa0d4 chore (docs): Update Uplinks/K8s doc to reference secretEnvVars (#3142)
* Chore: Update Uplinks/K8s doc to reference `secretEnvVars`

* Update Uplinks Documentation to refer to the Helm Chart's new
  `secretEnvVars` value
* Update Kubernetes Documentation with the new `secretEnvVars` helm
  value

* k8s doc wording
2022-04-25 20:51:50 +02:00
verdacciobot
23fb97b2e1 chore: updated contributors list 2022-04-25 00:11:35 +00:00
verdacciobot
4cf3687d0f chore: updated contributors list 2022-04-21 00:13:26 +00:00
verdacciobot
1ebddae402 chore: updated contributors list 2022-04-20 06:14:26 +00:00
AlphaDio
9127082cff docs: change link to docker examples (#3136) 2022-04-19 17:37:30 +02:00
Juan Picado
174250449d update configuration files with docs (#3135) 2022-04-18 20:45:43 +02:00
Juan Picado
c5750b51b4 Update package.json 2022-04-18 07:59:21 +02:00
verdacciobot
91a8b13442 chore: updated contributors list 2022-04-18 00:12:22 +00:00
github-actions[bot]
d675ce1fba chore: update versions (6-next) (#3127) 2022-04-17 13:07:38 +02:00
Juan Picado
55f74373f2 chore: delete azure file not longer used 2022-04-16 21:07:32 +02:00
Juan Picado
d43894e8f6 feat: rework web header for mobile, add new settings and raw manifest button (#3129)
* feat: rework header, dialogs and new raw mode

* chore: add test for raw button and hide download tarball

* chore: add test hide footer

* chore: add docs to config files

* chore: add changeset

* chore: enable raw by default
2022-04-16 12:26:02 +02:00
Juan Picado
8ea712935e chore: update benchmark time 2022-04-14 17:06:13 +02:00
Tiny
d08fe29d97 feat(web): add a config item to web,let the developer can select whether enable the html cache (#3108)
* 为web添加cache配置项,用户可以自己决定是否启用Html缓存

* related to the change for https://github.com/verdaccio/verdaccio/pull/3108

* related to the change for https://github.com/verdaccio/verdaccio/pull/3108

* apply changes from 5.x branch

Co-authored-by: fengdi <fengdi@bbktel.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-04-14 08:29:39 +02:00
verdacciobot
d65db96ff0 chore: updated contributors list 2022-04-14 00:12:58 +00:00
dependabot[bot]
1fafb266bd chore(deps): bump marocchino/sticky-pull-request-comment from 1 to 2 (#3116)
* chore(deps): bump marocchino/sticky-pull-request-comment from 1 to 2

Bumps [marocchino/sticky-pull-request-comment](https://github.com/marocchino/sticky-pull-request-comment) from 1 to 2.
- [Release notes](https://github.com/marocchino/sticky-pull-request-comment/releases)
- [Commits](https://github.com/marocchino/sticky-pull-request-comment/compare/v1...v2)

---
updated-dependencies:
- dependency-name: marocchino/sticky-pull-request-comment
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: remove previous message enabled

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-04-11 22:23:25 +02:00
dependabot[bot]
6de8d61527 chore(deps): bump actions/download-artifact from 2 to 3 (#3115)
* chore(deps): bump actions/download-artifact from 2 to 3

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: update node js version

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-04-11 22:21:53 +02:00
dependabot[bot]
5401fd7635 chore(deps): bump actions/upload-artifact from 2 to 3 (#3114) 2022-04-11 17:42:26 +02:00
Christopher Klint
8eee286b01 docs(cli-registry): fix sentence grammar (#3112) 2022-04-11 17:12:42 +02:00
verdacciobot
44be7b94b7 chore: updated contributors list 2022-04-11 00:11:19 +00:00
github-actions[bot]
bbbb42b8fe chore: update versions (6-next) (#3107) 2022-04-08 13:01:54 +02:00
verdacciobot
fae5093d96 chore: updated contributors list 2022-04-07 00:12:32 +00:00
Juan Picado
8c5ae96f79 Update package.json 2022-04-05 11:09:07 +02:00
Juan Picado
d78c8b5153 chore: improve error logger message 2022-04-04 20:47:48 +02:00
github-actions[bot]
966d9fad1d chore: update versions (6-next) (#3079) 2022-04-04 12:55:13 +02:00
verdacciobot
c40eae41de chore: updated contributors list 2022-04-04 00:59:25 +00:00
verdacciobot
6c50f8569c chore: updated contributors list 2022-03-31 00:10:50 +00:00
Juan Picado
82cb0f2bff config.logs throw an error, logging config not longer accept array or… (#3097) 2022-03-28 20:02:08 +02:00
verdacciobot
4088cdef6d chore: updated contributors list 2022-03-27 21:09:46 +00:00
Juan Picado
5167bb528f feat: UI search uses search endpoint for global search (#3057)
* UI search uses search endpoint for global search

* improve sorting and error handling

* give priority to private packages

* order by private package

* add tests, improve testing

* add changeset

* addjust settings

* remove old index search implementation

* update lock file

* relocate fastify package

* fix circular dependency

* fix wrong import

* fix tests
2022-03-27 21:42:52 +02:00
Fidel González
80df591e8f fix: typos & rewording in best practices (#3093) 2022-03-27 11:36:06 +02:00
CommanderRoot
a2c3fa9ea7 refactor: replace deprecated String.prototype.substr() (#3091) 2022-03-25 23:27:31 +01:00
Juan Picado
a5019d89f3 chore: restore ga code, website 2022-03-24 23:26:21 +01:00
Juan Picado
24fbba1c6c chore: reuse ga config, no need plugin 2022-03-24 22:52:56 +01:00
Juan Picado
c77d03018e chore: enable google analytics 4, testing the id 2022-03-24 22:50:28 +01:00
verdacciobot
5a6bf953a7 chore: updated contributors list 2022-03-24 00:10:11 +00:00
renovate[bot]
a57ba5f655 fix(deps): update all linting dependencies (#3084)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-23 23:00:54 +01:00
dependabot[bot]
20a5e571d1 chore(deps): bump actions/cache from 2 to 3 (#3078)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 23:12:39 +01:00
Andreas Opferkuch
5b3903963a fix: improve mobile styles (#3077)
* fix: improve mobile styles

* chore: clarify changeset requirements

* chore: add changeset
2022-03-21 23:12:09 +01:00
Juan Picado
274910ca8d Update README.md 2022-03-21 20:09:44 +01:00
Snyk bot
98a40887f5 fix: Dockerfile to reduce vulnerabilities (#3073)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE315-LIBRETLS-2428776
- https://snyk.io/vuln/SNYK-ALPINE315-OPENSSL-2426331
- https://snyk.io/vuln/SNYK-ALPINE315-OPENSSL-2426331
2022-03-21 12:25:18 +01:00
verdacciobot
5199775a06 chore: updated contributors list 2022-03-21 00:11:08 +00:00
Juan Picado
9fb5429d18 chore: update broken link 2022-03-18 18:30:25 +01:00
renovate[bot]
3e4498ccdc fix(deps): update all linting dependencies (#3072) 2022-03-18 07:27:02 +01:00
renovate[bot]
a709357db6 fix(deps): update all linting dependencies (#3070)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-17 23:09:30 +01:00
Juan Picado
4bee336945 Update README.md 2022-03-17 20:34:42 +01:00
Juan Picado
20f244222b chore: move blog docs to pages (#3069)
* chore: move blog docs to pages

Interesting info is being located here https://verdaccio.org/blog/2021/04/14/verdaccio-5-migration-guide but people does not find it.

* chore: move blog docs to pages

* chore: move blog docs to pages
2022-03-17 19:56:15 +01:00
verdacciobot
4311afea53 chore: updated contributors list 2022-03-17 00:11:09 +00:00
verdacciobot
f00cfb4f97 chore: updated contributors list 2022-03-14 00:11:22 +00:00
github-actions[bot]
4fc14eab02 chore: update versions (6-next) (#3053)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-12 22:48:42 +01:00
Juan Picado
a2b69a08e2 add banner support ukraine (#3060)
* add banner support ukraine

* fix test

* add blood link

* Update packages/plugins/ui-theme/src/App/Header/Support/Support.tsx

Co-authored-by: Daniel Ruf <827205+DanielRuf@users.noreply.github.com>

Co-authored-by: Daniel Ruf <827205+DanielRuf@users.noreply.github.com>
2022-03-12 22:42:05 +01:00
verdacciobot
6eea70a6dd chore: updated contributors list 2022-03-10 00:10:59 +00:00
Juan Picado
e533f1d500 chore: force banner keep open 2022-03-09 21:36:32 +01:00
Juan Picado
45cc559f47 chore: add donate button to redcrossredcrescent on home page 2022-03-09 21:16:03 +01:00
dependabot[bot]
ce81b3e96d chore(deps): bump actions/github-script from 3 to 6 (#2989)
Bumps [actions/github-script](https://github.com/actions/github-script) from 3 to 6.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v3...v6)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 21:09:11 +01:00
Xingwang Liao
31d661c7bd fix(loaders): always create plugin instance with new (#3052)
* class plugin transpile with babel contains a function '_classCallCheck',
* will throw an error when a class is invoked without 'new'
* see: https://babeljs.io/docs/en/babel-plugin-transform-classes#examples
2022-03-09 19:45:21 +01:00
Juan Picado
b69333778d chore: update redcross links to be more inclusive 2022-03-09 07:47:36 +01:00
github-actions[bot]
4dcc250fdb chore: update versions (6-next) (#3044)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-08 17:58:19 +01:00
verdacciobot
756a47aee0 chore: updated contributors list 2022-03-08 16:55:14 +00:00
Juan Picado
2c45bc6e82 chore: fix script 2022-03-08 17:51:34 +01:00
dependabot[bot]
31050ee369 chore(deps): bump actions/checkout from 2 to 3 (#3045)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-07 20:44:27 +01:00
Juan Picado
9652472780 Update README.md 2022-03-07 20:11:00 +01:00
Juan Picado
87f903d530 chore: update links 2022-03-07 19:54:58 +01:00
Juan Picado
8d625d25d2 add banner for Ukraine 2022-03-07 16:59:50 +01:00
Xingwang Liao
a179f1fd43 fix(ui-theme): show default logo in footer (#3031)
* fix(ui-theme): show default logo in footer

The link of the footer logo is verdaccio website, so the logo should be verdaccio's

* fixup! fix(ui-theme): show default logo in footer

* fixup! fixup! fix(ui-theme): show default logo in footer
2022-03-07 08:53:48 +01:00
Juan Picado
a049eaa38f chore: upgrade docusaurus 2.0.0-beta.17 (#3040) 2022-03-05 21:43:58 +01:00
Juan Picado
d2dd76260b chore: migrate to fully undici fetch (#3037)
* chore: migrate to fully undici fetch

* chore: update warnings

* remove debug

* restore dep

* chore:  update implementation

* fix lint

* update node

* update pnpm

* disable e2e cli

* disable cli
2022-03-05 18:44:10 +01:00
dependabot[bot]
f38c759cb2 chore(deps): bump pnpm/action-setup from 2.1.0 to 2.2.1 (#3022)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2.1.0 to 2.2.1.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2.1.0...v2.2.1)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-03-05 09:32:33 +01:00
Juan Picado
28c3aad443 chore: update e2e docs 2022-03-05 09:14:43 +01:00
Juan Picado
a020d4f580 chore: clean up warnings on ui tests (#3034)
* fix: remove duplicated call to fetch manifest

* fix: clean forward ref warnings

* clean button warnings

* clean box warnings

* SnackbarContent

* InputAdornment

* more migrations dialog, etc

* dialog cleanup

* clean up text component

* remove forward ref

* restore website components

* clean up

* IconButton

* format

* restore config
2022-03-05 00:12:37 +01:00
Juan Picado
160c25ddc5 Update benchmark.yml 2022-03-04 20:50:52 +01:00
Juan Picado
1debee3e9d chore: add new logger props 2022-03-04 19:52:10 +01:00
(H)eDoCode
76d78b0328 Node JS API Documentation : Working Implementation Code (#3032)
* Working node JS Code

Maybe add where do the `addrs` comes from ?
Added host and port display cause otherwise user doesn't know which default address and port are.

* Removing comments 

because I'm unsure about these / they are incorrect

Please complete it if you know how to make it work with a configFilePath as third parameter

* chore: fix website config

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-03-04 19:22:02 +01:00
github-actions[bot]
61bbede301 chore: update versions (6-next) (#3030)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-03 22:25:35 +01:00
Juan Picado
635ca3f924 chore: upload changeset 2022-03-03 22:07:26 +01:00
Ed Clement
aeff267d94 fix: refactor htpasswd plugin to use the bcryptjs 'compare' api call instead of 'compareSync' (#3025)
feat: add a new configuration value named 'slow_verify_ms' to the htpasswd plugin that when exceeded during password verification will log a warning message
chore: update README.md for htpasswd plugin to add additional information about the 'rounds' configuration value and also include the new 'slow_verify_ms' configuration value
2022-03-03 21:57:19 +01:00
Juan Picado
a0dca6e927 chore: fix lint 2022-03-03 19:30:19 +01:00
github-actions[bot]
71e5fb0221 chore: update versions (6-next) (#3027)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-03 08:30:03 +01:00
Juan Picado
aa0b2aa9df fix: replace ts icon by td and fix commonjs icon 2022-03-03 00:05:36 +01:00
dependabot[bot]
498afcd222 chore(deps): bump actions/setup-node from 2 to 3 (#3023)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 22:41:55 +01:00
github-actions[bot]
83561bc52d chore: update versions (6-next) (#3016)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-26 22:52:13 +01:00
dependabot[bot]
67b4681ce7 chore(deps): bump treosh/lighthouse-ci-action from 3 to 9.3.0 (#3008)
* chore(deps): bump treosh/lighthouse-ci-action from 3 to 9.3.0

Bumps [treosh/lighthouse-ci-action](https://github.com/treosh/lighthouse-ci-action) from 3 to 9.3.0.
- [Release notes](https://github.com/treosh/lighthouse-ci-action/releases)
- [Commits](https://github.com/treosh/lighthouse-ci-action/compare/v3...9.3.0)

---
updated-dependencies:
- dependency-name: treosh/lighthouse-ci-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* test

* test

* test

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-02-26 22:51:51 +01:00
Juan Picado
df53f61c64 feat: add icons for module and typescript support (#3015)
* feat: add icons for module and typescript support

* feat: add types and package module icons on sidebar

* chore: add tests

* chore: restore test
2022-02-26 22:39:13 +01:00
github-actions[bot]
64c8221d35 chore: update versions (6-next) (#2968)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-26 17:43:06 +01:00
Juan Picado
c908963132 fix: specific version package detail page not showing (#3013) 2022-02-26 17:31:48 +01:00
Juan Picado
46db10fc4f chore: upgrade contributors script 2022-02-26 16:34:36 +01:00
verdacciobot
fadba40a9f chore: updated contributors list 2022-02-25 20:07:08 +00:00
Simon Knott
02023afd74 fix: typo in config template (#3012) 2022-02-25 14:33:40 +01:00
verdacciobot
f130817828 chore: updated contributors list 2022-02-24 00:09:49 +00:00
verdacciobot
d2f9013ece chore: updated contributors list 2022-02-21 00:10:42 +00:00
Juan Picado
b8554c8935 refactor: promisfy packages (#2767)
* refactor: better performance and structure for get package

refactor file-locking promise taste

refactor updatePackageNext method

update lock file

apply missing interfaces

add version method

fix lint

fix test

chore: remove promisify

refactor publish progress

* migrate methods utilities publish

* Update index.d.ts

* restore publish
2022-02-20 18:39:38 +01:00
Juan Picado
8ea24df16a chore: add article 2022-02-17 20:25:38 +01:00
verdacciobot
67bbd93379 chore: updated contributors list 2022-02-17 00:08:54 +00:00
verdacciobot
d09ea21bc9 chore: updated contributors list 2022-02-15 21:40:39 +00:00
Juan Picado
0b72c32400 chore: script to update contributors 2022-02-15 22:36:40 +01:00
Juan Picado
2d137274c4 chore: script to update contributors 2022-02-15 22:29:59 +01:00
Juan Picado
cc30a85d3d chore: script to update contributors (#3001)
* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors

* chore: script to update contributors
2022-02-15 22:18:20 +01:00
Juan Picado
85a01746a5 add VERDACCIO_STORAGE_PATH documentation 2022-02-15 19:50:56 +01:00
dependabot[bot]
94f5e765a8 chore(deps): bump pnpm/action-setup from 2.0.1 to 2.1.0 (#2990)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2.0.1...v2.1.0)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 17:46:37 +01:00
Juan Picado
4cd71c6409 Merge branch 'master' of github.com:verdaccio/verdaccio 2022-02-06 20:57:17 +01:00
Juan Picado
be71d77511 chore: remove banner 2022-02-06 20:54:51 +01:00
Juan Picado
92a6f9a3fd Update benchmark.yml 2022-02-06 16:37:47 +01:00
Juan Picado
b9a947aa2f chore: add nodecongress banner
temporary, will be removed after conf :)
2022-02-05 20:05:55 +01:00
Juan Picado
110d90d888 update e2e website page 2022-02-05 19:39:12 +01:00
renovate[bot]
6bed458925 fix(deps): update all linting dependencies (#2971)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-04 08:55:22 +01:00
Juan Picado
73b3479a3a Update package.json 2022-01-30 23:03:39 +01:00
Juan Picado
459af1cd39 add heroku docs 2022-01-30 21:36:51 +01:00
Juan Picado
e0d639a1a6 update readme 2022-01-28 09:06:00 +01:00
Martin Sander
b78f35257e Fix re-opening log files using SIGUSR2 (#2967) 2022-01-27 16:40:51 +01:00
github-actions[bot]
06e400cb34 chore: update versions (6-next) (#2964)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-24 21:11:26 +01:00
Varun Gandhi
dd380c5a5e fix: links to configuration in source tree. (#2962)
These were broken by a70454c7b2.
2022-01-24 21:07:09 +01:00
Juan Picado
ad3151c3f3 fix: remove engines from ui-theme 2022-01-24 21:04:45 +01:00
Juan Picado
cca1f7f32a chore: update renovate schedule 2022-01-23 17:10:10 +01:00
renovate[bot]
3d86b836c3 fix(deps): update all linting dependencies (#2959) 2022-01-23 15:58:36 +01:00
Juan Picado
7f48edc254 chore: update renovate 2022-01-23 13:06:47 +01:00
Juan Picado
9245b4d39b chore: update renovate 2022-01-23 13:05:04 +01:00
renovate[bot]
3b363fb531 fix(deps): update all non-major linting dependencies (#2953)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-23 12:39:39 +01:00
Juan Picado
5b39aeb623 chore: update renovate 2022-01-23 12:38:23 +01:00
Juan Picado
edc7a538f3 chore: fix some major dependencies renovate 2022-01-23 11:59:14 +01:00
Juan Picado
d585216153 chore: enable major renovate 2022-01-23 11:58:24 +01:00
Juan Picado
1367beae51 chore: update settings 2022-01-22 21:28:31 +01:00
renovate[bot]
944ecf6874 fix(deps): update all non-major core dependencies (#2942)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-22 19:12:49 +01:00
github-actions[bot]
2bd10d6010 chore: update versions (6-next) (#2948) 2022-01-22 14:01:47 +01:00
Juan Picado
7ff4808be6 feat: improve language switch ui and package manager info (#2936)
* feat: improve language switch ui and package manager info

* feat: improve registry info dialog and language switch

* add description

* update text

* update npmignore

* chore: update test expect
2022-01-22 13:54:00 +01:00
renovate[bot]
7bb3c2bf0e fix(deps): update all non-major core dependencies (#2910)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-18 08:35:07 +01:00
github-actions[bot]
736e7de600 chore: update versions (6-next) (#2837)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-15 20:26:19 +01:00
Juan Picado
048ac95e8b feat: align with v5 ui endpoints and ui small bugfix (#2913)
* fix: language switch position issue

* align with v5 endpoints for web

* fix: endpoints

* add changeset

* fix test

* fix test
2022-01-15 20:12:28 +01:00
renovate[bot]
91fff48cb1 fix(deps): update all non-major core dependencies (#2908)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-13 20:21:00 +01:00
renovate[bot]
de3eb0fbf3 fix(deps): update dependency webpack-manifest-plugin to v4.1.1 (#2903) 2022-01-11 18:33:10 +01:00
renovate[bot]
531e8d0fd1 fix(deps): update all non-major core dependencies (#2900) 2022-01-11 17:42:00 +01:00
Juan Picado
f38cc44694 update renovate bot config 2022-01-09 22:14:57 +01:00
renovate[bot]
bc7f8668a8 fix(deps): update all non-major core dependencies (#2884) 2022-01-09 21:17:29 +01:00
Juan Picado
cbd12c8f7c update renovate configuration 2022-01-09 18:12:48 +01:00
Juan Picado
50968398f9 remove standard-version not used 2022-01-09 18:07:20 +01:00
Juan Picado
aca6ee3d92 update renovate config 2022-01-09 18:00:27 +01:00
Juan Picado
85eaa8b043 chore: remove unused prop-types 2022-01-09 17:54:21 +01:00
Juan Picado
19e5599692 Merge branch 'master' of https://github.com/verdaccio/verdaccio 2022-01-09 17:50:09 +01:00
Juan Picado
96f324e9ed renovate config update 2022-01-09 17:49:59 +01:00
renovate[bot]
0a269d37b7 chore(deps): update all non-major core dependencies (master) (#2877)
* chore(deps): update all non-major core dependencies

* restore esbuild and fix dep

* update snapshots

* add more deps to renovate

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-01-09 17:48:05 +01:00
renovate[bot]
136a251cb6 fix(deps): update all non-major linting dependencies (master) (#2879)
* fix(deps): update all non-major linting dependencies

* fix format

* format, remove unused steps

* format, remove unused steps

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-01-09 17:08:42 +01:00
Juan Picado
9b8d0bb458 chore: consistency core dependencies (#2878)
* chore: group patch minor updates

* chore: use node 16 instead 14

* fix types

* fix types
2022-01-09 16:30:35 +01:00
Juan Picado
59435a9f46 renovate update config 2022-01-09 14:26:36 +01:00
Juan Picado
ff6d6f4755 renovate update config 2022-01-09 11:50:05 +01:00
Juan Picado
0847b7f99d chore: ignore prettier, eslint from group 2022-01-09 11:45:12 +01:00
Juan Picado
10bd9bd5a3 chore: group patch minor updates 2022-01-09 11:33:43 +01:00
renovate[bot]
02be97fc3a chore(deps): update dependency verdaccio to v5.4.0 (#2870) 2022-01-08 22:11:38 +01:00
renovate[bot]
7ada36f5f6 chore(deps): update dependency undici to v4.12.1 (#2869) 2022-01-08 19:28:16 +01:00
renovate[bot]
0e7b266adc chore(deps): update dependency sass to v1.47.0 (#2865) 2022-01-08 14:17:15 +01:00
renovate[bot]
9c10955988 chore(deps): update dependency tsd to v0.19.1 (#2867)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-08 09:05:47 +01:00
renovate[bot]
9aa77d92c8 chore(deps): update dependency ts-node to v10.4.0 (#2863)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-06 20:54:47 +01:00
renovate[bot]
937bbd0454 chore(deps): update dependency terser-webpack-plugin to v5.3.0 (#2862)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 22:55:11 +01:00
renovate[bot]
ce92b87305 chore(deps): update jest monorepo (#2859) 2022-01-05 20:29:21 +01:00
renovate[bot]
5be1475204 chore(deps): update dependency webpack to v5.65.0 (#2848)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 19:43:17 +01:00
renovate[bot]
563d65c9ea chore(deps): update dependency @types/node to v16.11.19 (#2845) 2022-01-05 11:06:13 +01:00
renovate[bot]
299f9cbf0f chore(deps): update emotion monorepo (#2849)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 10:31:35 +01:00
Diana Morales
c85f98ce4d Move from fastify-warning to process-warning (#2855) 2022-01-04 14:57:16 +01:00
renovate[bot]
b5887ba3f5 fix(deps): update dependency express-rate-limit to v5.5.1 (#2851)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-04 09:05:35 +01:00
renovate[bot]
0cde4e8e98 fix(deps): update dependency http-status-codes to v2.2.0 (#2852)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-03 21:15:28 +01:00
renovate[bot]
b1b6a94e3c chore(deps): update dependency typescript to v4.5.4 (#2847)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-03 14:56:23 +01:00
renovate[bot]
84201b43b5 chore(deps): update jest monorepo (#2850)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-03 13:37:39 +01:00
renovate[bot]
070f9477a7 chore(deps): update dependency esbuild to v0.14.10 (#2836) 2022-01-03 10:44:15 +01:00
renovate[bot]
935b4ff583 chore(deps): update dependency @types/request to v2.48.8 (#2843)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-02 08:43:48 +01:00
renovate[bot]
7cf4abb99d chore(deps): update dependency stylelint-webpack-plugin to v3.1.0 (#2841)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-01 19:16:18 +01:00
renovate[bot]
df39b4624a chore(deps): update dependency style-loader to v3.3.1 (#2840) 2022-01-01 14:22:13 +01:00
renovate[bot]
68c65f418a chore(deps): update dependency sass to v1.45.2 (#2839) 2022-01-01 12:31:58 +01:00
renovate[bot]
4b7d0b0c0c chore(deps): update dependency request to v2.88.0 (#2838)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-01 10:22:12 +01:00
renovate[bot]
f8740598a3 chore(deps): update dependency react-i18next to v11.15.2 (#2832) 2022-01-01 00:32:07 +01:00
Juan Picado
730b5d8cc0 feat: upgrade to pino v7 (#2835) 2021-12-31 23:19:11 +01:00
Juan Picado
dd54d82000 chore: fix translation step 2021-12-31 20:57:20 +01:00
renovate[bot]
c847a8b61d chore(deps): update babel monorepo to v7.16.7 (#2831) 2021-12-31 19:04:59 +01:00
Juan Picado
22093ebffe feat!: Node v16 as minimum for verdaccio 6 (#2833) 2021-12-31 18:32:20 +01:00
renovate[bot]
7ec9c8772b chore(deps): update dependency puppeteer to v10.4.0 (#2827) 2021-12-31 15:29:27 +01:00
renovate[bot]
926e519dd3 chore(deps): update dependency react-hook-form to v7.22.5 (#2828)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-30 22:56:23 +01:00
renovate[bot]
5106fcb287 chore(deps): update dependency fastify to v3.25.3 (#2822) 2021-12-30 17:29:03 +01:00
Juan Picado
52d3442856 enable ci node 16, 17 gh actions (#2823)
* chore: enable ci node 15 and higher

* use localhost

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml
2021-12-29 19:23:20 +01:00
renovate[bot]
4fd84f589b fix(deps): update dependency pino to v6.13.4 (#2824)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-29 18:47:29 +01:00
renovate[bot]
ab61e1adc9 chore(deps): update dependency node-mocks-http to v1.11.0 (#2819)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-29 10:29:11 +01:00
renovate[bot]
5983625ff7 chore(deps): update dependency nock to v13.2.1 (#2817) 2021-12-27 21:28:55 +01:00
renovate[bot]
fe6fcb9950 chore(deps): update dependency msw to v0.36.3 (#2814) 2021-12-27 20:37:40 +01:00
renovate[bot]
d3ab11a6f0 chore(deps): update dependency mini-css-extract-plugin to v2.4.5 (#2812)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-26 17:33:25 +01:00
Juan Picado
508247ce70 update website config for v5.4.0 (#2813)
* update config for v5.4.0

* update config for v5.4.0

* Update config.md

* update text

* Update config.md

* Update config.md

* Update best-practices.md
2021-12-26 11:03:32 +01:00
renovate[bot]
dd65119454 chore(deps): update dependency lint-staged to v11.2.6 (#2781) 2021-12-25 14:05:07 +01:00
renovate[bot]
a87364b839 chore(deps): update dependency @types/react-virtualized to v9.21.16 (#2807) 2021-12-25 12:40:07 +01:00
renovate[bot]
57743e7150 chore(deps): update dependency autocannon to v7.5.1 (#2809)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-25 12:08:00 +01:00
renovate[bot]
80f498c037 chore(deps): update dependency @types/validator to v13.7.1 (#2808) 2021-12-25 11:31:50 +01:00
renovate[bot]
d13408b4fc chore(deps): update dependency @types/react-helmet to v6.1.5 (#2805) 2021-12-25 10:45:39 +01:00
renovate[bot]
493fdebea3 chore(deps): update dependency @types/node to v16.11.17 (#2801) 2021-12-25 09:56:39 +01:00
renovate[bot]
85675d6fed chore(deps): update dependency @types/react to v17.0.38 (#2804) 2021-12-25 00:01:50 +01:00
Juan Picado
8592ebb5f1 fix ui test snapshot 2021-12-24 23:19:20 +01:00
renovate[bot]
a40f39d7ec chore(deps): update dependency fastify to v3.25.2 (#2797)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-24 19:05:57 +01:00
renovate[bot]
c070bfcd73 fix(deps): update docusaurus monorepo to v2.0.0-beta.14 (#2798) 2021-12-23 19:13:57 +01:00
renovate[bot]
a32b0a6c06 chore(deps): update dependency @types/node to v16.11.15 (#2794)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-23 00:05:54 +01:00
renovate[bot]
d778f2cd18 chore(deps): update dependency concurrently to v6.5.1 (#2785)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-20 07:49:26 +01:00
renovate[bot]
d36beaf650 chore(deps): update dependency html-webpack-plugin to v5.5.0 (#2769) 2021-12-18 20:13:24 +01:00
renovate[bot]
0634d90f05 chore(deps): update dependency @crowdin/cli to v3.7.4 (#2782)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-18 17:57:19 +01:00
renovate[bot]
1a3b0db563 chore(deps): update dependency fastify to v3.25.0 (#2780) 2021-12-17 18:56:47 +01:00
renovate[bot]
fc05d3bfb2 fix(deps): update dependency express to v4.17.2 (#2779) 2021-12-17 07:10:35 +01:00
renovate[bot]
8ec8ba5758 chore(deps): update dependency verdaccio to v5.3.2 (#2778) 2021-12-17 06:04:54 +01:00
renovate[bot]
2def2ca635 chore(deps): update dependency @types/node to v16.11.14 (#2775) 2021-12-16 22:33:28 +01:00
Juan Picado
89cbc06151 chore: format code 2021-12-16 19:16:08 +01:00
Juan Picado
d2c68f2195 chore: update website 2021-12-16 19:05:53 +01:00
Juan Picado
b260feafee update readme.md 2021-12-16 19:01:07 +01:00
Juan Picado
49ebe86dd5 chore: add docker all hands talk 2021-12-16 18:28:01 +01:00
Juan Picado
8177f81780 chore: remove empty file 2021-12-16 17:42:26 +01:00
Juan Picado
ebcafd2739 chore: remove empty file 2021-12-16 17:37:07 +01:00
Juan Picado
651092d08e chore: update pnpm on ci (#2776) 2021-12-16 08:30:09 +01:00
renovate[bot]
47f36463a8 chore(deps): update dependency @crowdin/cli to v3.7.3 (#2774)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-16 08:16:43 +01:00
renovate[bot]
f7e4e5c196 chore(deps): update babel monorepo to v7.16.5 (#2773)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-16 07:45:43 +01:00
Juan Picado
2cf0371c0e chore: changeset remove website
to avoid bump up, not need it
2021-12-15 23:29:14 +01:00
Juan Picado
b60e20037d chore: restore version 2021-12-15 23:27:49 +01:00
github-actions[bot]
18601f0fe0 chore: update versions (6-next) (#2648) 2021-12-15 19:02:26 +01:00
renovate[bot]
6fc5464e6e chore(deps): update dependency js-base64 to v3.7.2 (#2770) 2021-12-15 08:13:17 +01:00
Diana Morales
02c5e76eec fix website google analytics (#2772) 2021-12-14 13:28:51 +01:00
renovate[bot]
128cd6898d chore(deps): update dependency @types/validator to v13.7.0 (#2764)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-13 20:26:10 +01:00
renovate[bot]
ccbfaad0da chore(deps): update dependency concurrently to v6.4.0 (#2765)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-13 20:25:52 +01:00
renovate[bot]
094879d884 fix(deps): update dependency body-parser to v1.19.1 (#2759)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-13 12:42:58 +01:00
renovate[bot]
4735c06320 chore(deps): update dependency @types/node to v16.11.12 (#2749)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-12 19:15:45 +01:00
Juan Picado
a828271d63 refactor: fetch package endpoint and basic integration fastify (#2750)
* refactor: download manifest endpoint and integrate fastify

* fix file not found issue

* add temporary migration method to storage memory

* sanitize fs methods

* restore tests

* chore: restore sanitilize

will do later

* add tests

* add changeset

* lint

* trying something test

* chore: lint

* restore code

* fix e2e

* fix lint
2021-12-12 18:00:19 +01:00
renovate[bot]
5bb049a79b chore(deps): update dependency webpack-dev-server to v3.11.3 (#2757)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-12 16:53:24 +01:00
renovate[bot]
545afc26d2 chore(deps): update dependency country-flag-icons to v1.4.19 (#2755)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-12 15:08:08 +01:00
renovate[bot]
646caddbc3 chore(deps): update dependency verdaccio to v5.3.1 (#2756)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-12 13:43:53 +01:00
renovate[bot]
2d41073f56 chore(deps): update dependency @testing-library/jest-dom to v5.16.1 (#2646)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-12 12:27:45 +01:00
Juan Picado
fd29a9aa94 Update package.json 2021-12-12 12:22:14 +01:00
Juan Picado
ad5650300f chore: restore tagline 2021-12-12 11:03:15 +01:00
Juan Picado
e8b3ada53c chore: update website taglines 2021-12-12 10:40:05 +01:00
Juan Picado
56a9f5723b chore: update website description 2021-12-12 10:37:16 +01:00
renovate[bot]
955c93e2c9 chore(deps): update dependency @types/lodash to v4.14.178 (#2743)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-11 09:06:55 +01:00
renovate[bot]
f5a2c8c5b7 fix(deps): update docusaurus monorepo to v2.0.0-beta.13 (#2747)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-10 20:16:10 +01:00
Diana Morales
2a86a46b85 add params validation for sidebar fastify web endpoints (#2655)
* sidebar fastify validation

Add params schema validation for sidebar endpoints

* reuse types

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2021-12-09 22:00:41 +01:00
Juan Picado
8e17d19c92 update benchmark settings 2021-12-09 21:26:26 +01:00
renovate[bot]
bf0beff656 chore(deps): update dependency fastify to v3.24.1 (#2746)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-09 21:20:49 +01:00
renovate[bot]
ee3b4486de fix(deps): update dependency dompurify to v2.3.4 (#2744)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-09 20:53:42 +01:00
renovate[bot]
c9ee1bbefb fix(deps): update docusaurus monorepo to v2.0.0-beta.10 (#2745)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-09 19:40:04 +01:00
renovate[bot]
38e955ebd3 chore(deps): update dependency terser-webpack-plugin to v5.2.5 (#2733)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-09 17:26:03 +01:00
Juan Picado
7346876680 increase time out test fails on windows ui 2021-12-08 22:26:58 +01:00
darkgl0w
9430e9fc0d refactor: graceful shutdown using process.once() instead of process.on() (#2737) 2021-12-07 17:58:34 +01:00
renovate[bot]
d04153a8e5 chore(deps): update dependency nodemon to v2.0.15 (#2732) 2021-12-02 20:21:03 +01:00
renovate[bot]
d0ebfa68eb chore(deps): update dependency http-errors to v1.8.1 (#2731) 2021-12-02 17:16:54 +01:00
renovate[bot]
db2c8bc8a1 chore(deps): update dependency country-flag-icons to v1.4.17 (#2729)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-02 16:08:02 +01:00
renovate[bot]
d65c74c0b1 chore(deps): update dependency @types/testing-library__jest-dom to v5.14.2 (#2724)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-02 08:23:19 +01:00
Diana Morales
4723b325bd fix accessibility issues (#2728) 2021-12-02 08:08:05 +01:00
renovate[bot]
4a6476c824 chore(deps): update dependency @types/node to v16.11.11 (#2718) 2021-12-01 21:55:03 +01:00
Paulo Renan Melo
82f6886ded Update how-to-deploy-on-AWS.md (#2722)
suggestions and fixes to the instructions, as I followed along making a new aws instance
2021-12-01 17:20:13 +01:00
Juan Picado
21ddd12166 improve website contributors page docusaurus (#2701) 2021-12-01 08:20:39 +01:00
renovate[bot]
980b09e40c chore(deps): update dependency debug to v4.3.3 (#2717)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-30 10:29:53 +01:00
renovate[bot]
a15c915b17 chore(deps): update dependency @types/react to v17.0.37 (#2704)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 16:57:47 +01:00
renovate[bot]
810eb5f33a chore(deps): update dependency @changesets/get-dependents-graph to v1.2.4 (#2703)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 15:59:42 +01:00
renovate[bot]
8c8f0e1600 chore(deps): update dependency @types/node to v16.11.10 (#2700)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-26 21:29:32 +01:00
renovate[bot]
5c36ec5f8f chore(deps): update dependency country-flag-icons to v1.4.16 (#2697)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-25 18:01:07 +01:00
renovate[bot]
2b4f8a1b63 chore(deps): update dependency @types/react-virtualized to v9.21.15 (#2696) 2021-11-23 18:37:29 +01:00
renovate[bot]
af754f88ca chore(deps): update dependency @types/react to v17.0.36 (#2695) 2021-11-23 17:31:40 +01:00
renovate[bot]
d6febce1d9 chore(deps): update dependency @types/node to v16.11.9 (#2694) 2021-11-21 12:31:35 +01:00
renovate[bot]
36590e5246 chore(deps): update dependency @types/lodash to v4.14.177 (#2693)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-21 09:38:33 +01:00
renovate[bot]
7cf5dfd11c chore(deps): update dependency @types/jest to v27.0.3 (#2692)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 23:13:35 +01:00
renovate[bot]
4571d32a83 chore(deps): update dependency @testing-library/dom to v8.11.1 (#2691) 2021-11-20 21:36:22 +01:00
renovate[bot]
1f59ff68d6 chore(deps): update dependency @crowdin/cli to v3.7.2 (#2690) 2021-11-20 20:43:58 +01:00
renovate[bot]
02b92bd13b chore(deps): update babel monorepo to v7.16.4 (#2679)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-20 10:17:52 +01:00
Diana Morales
29b1d59b56 migrate docker-https-portal example from V4 to V6 (#2687) 2021-11-20 08:02:17 +01:00
Juan Picado
24b9be0202 refactor: improve docker image build with strict dependencies and pro… (#2689)
* refactor: improve docker image build with strict dependencies and prod build

* use master as registry

* format
2021-11-20 07:46:35 +01:00
Juan Picado
418bf0d8fa add docker-examples to prettier format
include it to the ci paths list
2021-11-19 19:55:27 +01:00
Juan Picado
6822ab9fe2 chore: fix local-stack edocker example 2021-11-19 19:47:27 +01:00
Diana Morales
7a45f4e244 migrate verdaccio-docker-local-storage from V4 to V6 (#2686) 2021-11-19 17:22:31 +01:00
Diana Morales
be3f74e528 migrate docker-apache v4 to V6 (#2685) 2021-11-19 16:56:55 +01:00
Diana Morales
2533cb5813 migrate docker-examples (#2682) 2021-11-19 15:39:26 +01:00
Diana Morales
06448be421 update docker image examples v5 (#2681) 2021-11-18 20:55:41 +01:00
renovate[bot]
cf8d691c95 chore(deps): update babel monorepo (master) (#2659)
* chore(deps): update babel monorepo

* chore: fix ui test

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2021-11-17 22:15:48 +01:00
renovate[bot]
6021d05f41 chore(deps): update dependency webpack to v5.64.0 (#2664) 2021-11-12 12:39:05 +01:00
renovate[bot]
0399c4cdd2 chore(deps): update dependency validator to v13.7.0 (#2663)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-12 08:01:44 +01:00
renovate[bot]
dbceee5a8f chore(deps): update dependency fastify to v3.23.1 (#2662)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-11 22:53:47 +01:00
renovate[bot]
5bac4634d7 chore(deps): update dependency @rematch/core to v2.2.0 (#2660)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-11 18:13:56 +01:00
renovate[bot]
98e5e3d452 fix(deps): update dependency fast-safe-stringify to v2.1.1 (#2665)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-11 17:18:09 +01:00
renovate[bot]
5d9d05eb24 fix(deps): update dependency mime to v2.6.0 (#2666) 2021-11-11 12:41:13 +01:00
dasmikko
c8f342d4eb workaround for invalid checksum (#2667) 2021-11-11 10:00:17 +01:00
renovate[bot]
6f2be136fa chore(deps): update dependency @trivago/prettier-plugin-sort-imports to v3.1.1 (#2661)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-11 08:26:23 +01:00
renovate[bot]
0de7dcf146 chore(deps): update dependency @rematch/loading to v2.1.2 (#2656)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-11 07:27:46 +01:00
Ed Clement
e75c0a3b95 fix: hydrate template placeholders in log messages when format is set to 'json' (#2652) 2021-11-11 07:22:11 +01:00
renovate[bot]
7632edd0e1 chore(deps): update dependency @changesets/get-dependents-graph to v1.2.3 (#2647)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-10 17:35:18 +01:00
Diana Morales
8246bb69b2 login web endpoint fastify body schema validation (#2653)
* feat: add body schema validation to login endpoint

#2623

When a request is made, the following error is displayed on log
error--- Promise may not be fulfilled with 'undefined' when statusCode is not 204

https://github.com/fastify/fastify/pull/2702

* feat: add body schema validation to resetPassword endpoint

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2021-11-10 16:46:39 +01:00
Diana Morales
a88c72d0b2 fix initialization storage on fastify (#2654) 2021-11-09 22:16:47 +01:00
Juan Picado
b13a3fefd3 refactor: improve versions and dist-tag filters (#2650)
* refactor: improve versions and dist-tag filters

* chore: restore this later

* improve documentation of dis-tag normalizer

* chore: add changeset
2021-11-09 20:38:44 +01:00
Juan Picado
d8cd1ca887 chore: update benchmarks 2021-11-09 19:12:27 +01:00
Juan Picado
b98475e185 chore: restore website settings
I've modified this by mistake on #2612
2021-11-08 17:44:39 +01:00
Juan Picado
000d437463 feat: migrate to Material-UI 5 (#2612) 2021-11-08 17:24:15 +01:00
renovate[bot]
33a5c5a179 chore(deps): update dependency verdaccio to v5.2.2 (#2643)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-08 12:54:57 +01:00
renovate[bot]
e8491f42e3 chore(deps): update dependency css-loader to v6.5.1 (#2630)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-08 10:47:23 +01:00
Juan Picado
47deac7ead chore: update python dependency on docker image 2021-11-08 10:13:25 +01:00
renovate[bot]
4d1e1ec8a0 chore(deps): update dependency @testing-library/dom to v8.11.0 (#2642)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-08 09:29:16 +01:00
renovate[bot]
a73b0a9d1c chore(deps): update actions/checkout action to v2.4.0 (#2641) 2021-11-06 15:58:24 +01:00
renovate[bot]
59209ca9c5 fix(deps): update dependency node-fetch to v2.6.6 (#2640) 2021-11-06 12:47:51 +01:00
renovate[bot]
ccdb8c7176 fix(deps): update dependency pnpm to v6.20.3 (#2632) 2021-11-06 10:20:20 +01:00
renovate[bot]
136771eb39 chore(deps): update dependency @types/react-dom to v17.0.11 (#2629)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 21:24:19 +01:00
Juan Picado
0285bf2432 chore: restore website version
bad boy changeset automation
2021-11-05 18:22:56 +01:00
Juan Picado
21d9f2b6e3 docs: add video on what is page 2021-11-05 18:14:13 +01:00
github-actions[bot]
fa3d878286 chore: update versions (6-next) (#2625)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-05 17:29:26 +01:00
Diana Morales
20c9e43edc dist-tags endpoint fastify (#2638)
* Create dist-tags.ts

* feat:migrate dist-tags to fastify

* Update storage.ts

Uncomment self.filters code

* add changeset
2021-11-05 16:59:13 +01:00
Diana Morales
18dc5f1f2f feat: migrate web login endpoint to fastify (#2624)
* feat: migrate login to fastify

* Update package.json

* Update server.ts

* fix authentication tests

* fix test
2021-11-05 16:29:48 +01:00
renovate[bot]
b7d319c5be chore(deps): update dependency @types/react to v17.0.34 (#2628)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-04 09:38:57 +01:00
Diana Morales
f86c31ed0e feat: migrate sidebar to fastify (#2618) 2021-11-03 20:56:36 +01:00
renovate[bot]
076f0f85e8 fix(deps): update docusaurus monorepo to v2.0.0-beta.9 (#2622)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-03 18:25:53 +01:00
Diana Morales
c2a1f4a73a use warning code for deprecation warnings (#2615) 2021-10-31 15:49:06 +01:00
Diana Morales
41475949ba feat: migrate readme to fastify (#2613)
* feat: migrate readme to fastify

* Update readme.ts
2021-10-31 15:00:04 +01:00
renovate[bot]
d390a66158 chore(deps): update dependency @types/validator to v13.6.6 (#2609) 2021-10-30 14:15:58 +02:00
renovate[bot]
7041a4381e chore(deps): update dependency css-loader to v6.5.0 (#2608) 2021-10-30 11:32:31 +02:00
renovate[bot]
14d973c552 chore(deps): update dependency redux to v4.1.2 (#2602) 2021-10-29 18:55:30 +02:00
Behrang Yarahmadi
13310814da #2606 add prettier plugin sort imports (#2607)
* #2606 add prettier plugin sort imprts

* #2606 update pnpm-lock.yaml

* #2606 update eslint rules

* #2606 fixes website directory formatting

Co-authored-by: Ayush Sharma <ayush.sharma@trivago.com>
2021-10-29 17:33:05 +02:00
Juan Picado
16458f801e refactor: pass options instead request object (#2605) 2021-10-29 09:00:02 +02:00
renovate[bot]
1322ffc2c4 chore(deps): update dependency @types/node to v16.11.6 (#2603) 2021-10-29 05:24:10 +02:00
renovate[bot]
2091f268d3 chore(deps): update dependency tmp-promise to v3.0.3 (#2592) 2021-10-28 21:40:22 +02:00
renovate[bot]
28331ff07a chore(deps): update dependency @crowdin/cli to v3.7.1 (#2601)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-28 17:44:57 +02:00
renovate[bot]
1ad1214c5e chore(deps): update dependency @testing-library/dom to v8.10.1 (#2583)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-28 17:12:24 +02:00
Juan Picado
cf4489abb1 feat: download tarball endpoint fastify (#2600) 2021-10-27 23:06:41 +02:00
Diana Morales
d7bf5453b1 feat:migrate whoami to fastify (#2599) 2021-10-27 21:34:30 +02:00
1265 changed files with 54354 additions and 126669 deletions

View File

@@ -1,26 +1,14 @@
{
"presets": [ [
"@babel/env",
{
"useBuiltIns": "usage",
"corejs": {
"version": 3, "proposals": true
},
"targets": {
"node": 14
"presets": [
[
"@babel/env",
{
"targets": {
"node": 16
}
}
}
],
],
"@babel/typescript"
],
"plugins": [
"babel-plugin-dynamic-import-node",
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
],
"ignore": [
"**/*.d.ts"
]
"ignore": ["**/*.d.ts"]
}

View File

@@ -0,0 +1,52 @@
---
'@verdaccio/api': major
'@verdaccio/auth': major
'@verdaccio/cli': major
'@verdaccio/config': major
'@verdaccio/core': major
'@verdaccio/file-locking': major
'@verdaccio/readme': major
'@verdaccio/tarball': major
'@verdaccio/types': major
'@verdaccio/url': major
'@verdaccio/hooks': major
'@verdaccio/loaders': major
'@verdaccio/logger': major
'@verdaccio/logger-prettify': major
'@verdaccio/middleware': major
'@verdaccio/node-api': major
'verdaccio-audit': major
'verdaccio-auth-memory': major
'verdaccio-htpasswd': major
'@verdaccio/local-storage': major
'verdaccio-memory': major
'@verdaccio/ui-theme': major
'@verdaccio/proxy': major
'@verdaccio/server': major
'@verdaccio/store': major
'@verdaccio/utils': major
'verdaccio': major
'@verdaccio/web': major
---
feat!: replace deprecated request dependency by got
This is a big refactoring of the core, fetching dependencies, improve code, more tests and better stability. This is essential for the next release, will take some time but would allow modularize more the core.
## Notes
- Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
- Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
- Refactor with promises instead callback wherever is possible
- ~Document the API~
- Improve testing, integration tests
- Bugfix
- Clean up old validations
- Improve performance
## 💥 Breaking changes
- Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
- Write Tarball, Read Tarball methods parameters change, a new set of options like `AbortController` signals are being provided to the `addAbortSignal` can be internally used with Streams when a request is aborted. eg: `addAbortSignal(signal, fs.createReadStream(pathName));`
- `@verdaccio/streams` stream abort support is legacy is being deprecated removed
- Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).

View File

@@ -0,0 +1,37 @@
---
'@verdaccio/api': major
'@verdaccio/server-fastify': major
'@verdaccio/tarball': major
'@verdaccio/local-storage': major
'verdaccio-memory': major
'@verdaccio/server': major
'@verdaccio/store': major
'@verdaccio/utils': major
---
refactor: download manifest endpoint and integrate fastify
Much simpler API for fetching a package
```
const manifest = await storage.getPackageNext({
name,
uplinksLook: true,
req,
version: queryVersion,
requestOptions,
});
```
> not perfect, the `req` still is being passed to the proxy (this has to be refactored at proxy package) and then removed from here, in proxy we pass the request instance to the `request` library.
### Details
- `async/await` sugar for getPackage()
- Improve and reuse code between current implementation and new fastify endpoint (add scaffolding for request manifest)
- Improve performance
- Add new tests
### Breaking changes
All storage plugins will stop to work since the storage uses `getPackageNext` method which is Promise based, I won't replace this now because will force me to update all plugins, I'll follow up in another PR. Currently will throw http 500

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/cli': patch
---
chore: improve error logger message

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
add banner support ukraine

View File

@@ -0,0 +1,5 @@
---
'verdaccio-memory': patch
---
Fix storing tarballs with identical names from different packages in memory plugin

View File

@@ -0,0 +1,11 @@
---
'@verdaccio/cli': major
'@verdaccio/core': major
'@verdaccio/types': major
'@verdaccio/logger': major
'@verdaccio/logger-prettify': major
'verdaccio-audit': major
'@verdaccio/eslint-config': major
---
feat: migrate to pino.js 8

View File

@@ -6,7 +6,7 @@
'@verdaccio/commons-api': major
'@verdaccio/core': major
'@verdaccio/local-storage': major
'@verdaccio/fastify-migration': major
'@verdaccio/server-fastify': major
'@verdaccio/streams': major
'@verdaccio/types': major
'@verdaccio/hooks': major

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
show verdaccio logo in the footer even when custom brand is set

View File

@@ -0,0 +1,11 @@
---
'@verdaccio/api': minor
'@verdaccio/core': minor
'@verdaccio/tarball': minor
'@verdaccio/middleware': minor
'verdaccio-audit': minor
'@verdaccio/utils': minor
'@verdaccio/web': minor
---
refactor: improve docker image build with strict dependencies and prod build

View File

@@ -7,7 +7,7 @@
'@verdaccio/file-locking': major
'verdaccio-htpasswd': major
'@verdaccio/readme': major
'@verdaccio/fastify-migration': major
'@verdaccio/server-fastify': major
'@verdaccio/streams': major
'@verdaccio/tarball': major
'@verdaccio/types': major
@@ -16,7 +16,6 @@
'@verdaccio/loaders': major
'@verdaccio/logger': major
'@verdaccio/middleware': major
'@verdaccio/mock': major
'@verdaccio/node-api': major
'@verdaccio/active-directory': major
'verdaccio-audit': major

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/logger-prettify': minor
'@verdaccio/logger': patch
---
hydrate template placeholders in log messages when format is set to 'json'

View File

@@ -0,0 +1,42 @@
---
'@verdaccio/api': patch
'@verdaccio/auth': patch
'@verdaccio/cli': patch
'@verdaccio/core': patch
'@verdaccio/file-locking': patch
'@verdaccio/readme': patch
'@verdaccio/tarball': patch
'@verdaccio/types': patch
'@verdaccio/url': patch
'@verdaccio/hooks': patch
'@verdaccio/loaders': patch
'@verdaccio/logger': patch
'@verdaccio/node-api': patch
'verdaccio-audit': patch
'verdaccio-auth-memory': patch
'verdaccio-htpasswd': patch
'@verdaccio/local-storage': patch
'verdaccio-memory': patch
'@verdaccio/ui-theme': patch
'@verdaccio/proxy': patch
'@verdaccio/server': patch
'@verdaccio/server-fastify': patch
'@verdaccio/cli-standalone': patch
'@verdaccio/store': patch
'docusaurus-plugin-contributors': patch
'@verdaccio/test-helper': patch
'verdaccio': patch
'@verdaccio/web': patch
'@verdaccio/test-cli-commons': patch
'@verdaccio/e2e-cli-npm6': patch
'@verdaccio/e2e-cli-npm7': patch
'@verdaccio/e2e-cli-npm8': patch
'@verdaccio/e2e-cli-pnpm6': patch
'@verdaccio/e2e-cli-pnpm7': patch
'@verdaccio/e2e-cli-yarn1': patch
'@verdaccio/e2e-cli-yarn2': patch
'@verdaccio/e2e-cli-yarn3': patch
'@verdaccio/e2e-cli-yarn4': patch
---
fix(deps): @verdaccio/utils should be a prod dep of local-storage

View File

@@ -15,7 +15,6 @@
'@verdaccio/logger': major
'@verdaccio/logger-prettify': major
'@verdaccio/middleware': major
'@verdaccio/mock': major
'@verdaccio/node-api': major
'@verdaccio/active-directory': major
'verdaccio-audit': major
@@ -30,7 +29,6 @@
'@verdaccio/utils': major
'verdaccio': major
'@verdaccio/web': major
'@verdaccio/website': major
---
feat!: experiments config renamed to flags

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': minor
---
fix: remove engines from ui-theme

View File

@@ -1,6 +1,6 @@
---
'@verdaccio/api': minor
'@verdaccio/fastify-migration': minor
'@verdaccio/server-fastify': minor
'@verdaccio/hooks': minor
'@verdaccio/logger-prettify': minor
'@verdaccio/proxy': minor

View File

@@ -15,7 +15,6 @@
'@verdaccio/logger': major
'@verdaccio/logger-prettify': major
'@verdaccio/middleware': major
'@verdaccio/mock': major
'@verdaccio/node-api': major
'@verdaccio/proxy': major
'@verdaccio/server': major

View File

@@ -0,0 +1,29 @@
---
'@verdaccio/api': minor
'@verdaccio/cli': minor
'@verdaccio/core': minor
'@verdaccio/node-api': minor
'@verdaccio/server': minor
'@verdaccio/server-fastify': minor
'verdaccio': minor
---
chore: env variable for launch fastify
- Update fastify to major release `v4.3.0`
- Update CLI launcher
via CLI
```
VERDACCIO_SERVER=fastify verdaccio
```
with docker
```
docker run -it --rm --name verdaccio \
-e "VERDACCIO_SERVER=8080" -p 8080:8080 \
-e "VERDACCIO_SERVER=fastify" \
verdaccio/verdaccio
```

View File

@@ -0,0 +1,7 @@
---
'@verdaccio/ui-theme': patch
'@verdaccio/test-helper': patch
'@verdaccio/web': patch
---
fix: #3174 set correctly ui values to html render

View File

@@ -1,6 +1,6 @@
---
'@verdaccio/cli': minor
'@verdaccio/fastify-migration': minor
'@verdaccio/server-fastify': minor
---
[Fastify] Add ping endpoint

View File

@@ -17,7 +17,6 @@
'@verdaccio/logger': patch
'@verdaccio/logger-prettify': patch
'@verdaccio/middleware': patch
'@verdaccio/mock': patch
'@verdaccio/node-api': patch
'@verdaccio/active-directory': patch
'verdaccio-audit': patch
@@ -31,9 +30,6 @@
'@verdaccio/utils': patch
'verdaccio': patch
'@verdaccio/web': patch
'@verdaccio/e2e-cli': patch
'@verdaccio/e2e-ui': patch
'@verdaccio/website': patch
---
chore: add release step to private regisry on merge changeset pr

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
feat: add types and package module icons on sidebar

View File

@@ -0,0 +1,7 @@
---
'@verdaccio/ui-theme': minor
'@verdaccio/server': minor
'@verdaccio/web': minor
---
feat: align with v5 ui endpoints and ui small bugfix

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
chore: force publish

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/loaders': patch
---
always create plugin instance with new

View File

@@ -1,6 +1,5 @@
---
'@verdaccio/tarball': patch
'@verdaccio/mock': patch
'@verdaccio/ui-theme': patch
'@verdaccio/server': patch
'@verdaccio/utils': patch

View File

@@ -15,7 +15,6 @@
'@verdaccio/logger': minor
'@verdaccio/logger-prettify': minor
'@verdaccio/middleware': minor
'@verdaccio/mock': minor
'@verdaccio/node-api': minor
'@verdaccio/active-directory': minor
'verdaccio-audit': minor

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
fix: replace ts icon by td and fix commonjs icon

View File

@@ -0,0 +1,43 @@
---
'@verdaccio/config': minor
'@verdaccio/types': minor
'@verdaccio/ui-theme': minor
---
feat: rework web header for mobile, add new settings and raw manifest button
### New set of variables to hide features
Add set of new variables that allow hide different parts of the UI, buttons, footer or download tarballs. _All are
enabled by default_.
```yaml
# login: true <-- already exist but worth the reminder
# showInfo: true
# showSettings: true
# In combination with darkMode you can force specific theme
# showThemeSwitch: true
# showFooter: true
# showSearch: true
# showDownloadTarball: true
```
> If you disable `showThemeSwitch` and force `darkMode: true` the local storage settings would be
> ignored and force all themes to the one in the configuration file.
Future could be extended to
### Raw button to display manifest package
A new experimental feature (enabled by default), button named RAW to be able navigate on the package manifest directly on the ui, kudos to [react-json-view](https://www.npmjs.com/package/react-json-view) that allows an easy integration, not configurable yet until get more feedback.
```yaml
showRaw: true
```
#### Rework header buttons
- The header has been rework, the mobile was not looking broken.
- Removed info button in the header and moved to a dialog
- Info dialog now contains more information about the project, license and the aid content for Ukrania now is inside of the info modal.
- Separate settings and info to avoid collapse too much info (for mobile still need some work)

View File

@@ -6,7 +6,7 @@
'@verdaccio/core': minor
'verdaccio-htpasswd': minor
'@verdaccio/local-storage': minor
'@verdaccio/fastify-migration': minor
'@verdaccio/server-fastify': minor
'@verdaccio/tarball': minor
'@verdaccio/types': minor
'@verdaccio/url': minor
@@ -14,7 +14,6 @@
'@verdaccio/loaders': minor
'@verdaccio/logger': minor
'@verdaccio/middleware': minor
'@verdaccio/mock': minor
'@verdaccio/node-api': minor
'@verdaccio/active-directory': minor
'verdaccio-auth-memory': minor

View File

@@ -15,7 +15,6 @@
'@verdaccio/logger': minor
'@verdaccio/logger-prettify': minor
'@verdaccio/middleware': minor
'@verdaccio/mock': minor
'@verdaccio/node-api': minor
'@verdaccio/proxy': minor
'@verdaccio/server': minor
@@ -24,7 +23,6 @@
'@verdaccio/utils': minor
'verdaccio': minor
'@verdaccio/web': minor
'@verdaccio/website': minor
---
feat: add typescript project references settings

View File

@@ -10,14 +10,12 @@
"verdaccio-htpasswd": "11.0.0-alpha.0",
"@verdaccio/local-storage": "11.0.0-alpha.0",
"@verdaccio/readme": "11.0.0-alpha.0",
"@verdaccio/streams": "11.0.0-alpha.0",
"@verdaccio/types": "11.0.0-alpha.0",
"@verdaccio/hooks": "6.0.0-alpha.0",
"@verdaccio/loaders": "6.0.0-alpha.0",
"@verdaccio/logger": "6.0.0-alpha.0",
"@verdaccio/logger-prettify": "6.0.0-alpha.0",
"@verdaccio/middleware": "6.0.0-alpha.0",
"@verdaccio/mock": "6.0.0-alpha.0",
"@verdaccio/node-api": "6.0.0-alpha.0",
"@verdaccio/proxy": "6.0.0-alpha.0",
"@verdaccio/server": "6.0.0-alpha.0",
@@ -33,42 +31,71 @@
"verdaccio-google-cloud": "11.0.0-alpha.0",
"verdaccio-memory": "11.0.0-alpha.0",
"@verdaccio/ui-theme": "6.0.0-alpha.1",
"@verdaccio/e2e-cli": "1.0.0",
"@verdaccio/e2e-ui": "1.0.0",
"@verdaccio/cli-standalone": "6.0.0-alpha.3",
"@verdaccio/tarball": "11.0.0-alpha.3",
"@verdaccio/url": "11.0.0-alpha.3",
"@verdaccio/fastify-migration": "6.0.0-6-next.9",
"@verdaccio/server-fastify": "6.0.0-6-next.9",
"@verdaccio/eslint-config": "1.0.0",
"@verdaccio/benchmark": "1.0.0",
"@verdaccio/website": "5.1.3",
"@verdaccio/core": "6.0.0-next.0",
"@verdaccio/helper": "1.0.0"
"@verdaccio/test-helper": "1.0.0",
"docusaurus-plugin-contributors": "1.0.0",
"@verdaccio/website": "5.4.0",
"@verdaccio/test-cli-commons": "1.0.1-6-next.1",
"@verdaccio/e2e-cli-npm6": "1.0.1-6-next.1",
"@verdaccio/e2e-cli-npm7": "1.0.1-6-next.1",
"@verdaccio/e2e-cli-npm8": "1.0.1-6-next.1",
"@verdaccio/e2e-cli-pnpm6": "1.0.1-6-next.1",
"@verdaccio/e2e-cli-pnpm7": "1.0.1-6-next.1",
"@verdaccio/e2e-cli-yarn1": "1.0.1-6-next.1",
"@verdaccio/e2e-cli-yarn2": "1.0.1-6-next.1",
"@verdaccio/e2e-cli-yarn3": "1.0.1-6-next.1",
"@verdaccio/e2e-cli-yarn4": "1.0.1-6-next.1",
"@verdaccio/local-publish": "0.0.1"
},
"changesets": [
"afraid-mice-obey",
"angry-nails-appear",
"big-lobsters-sin",
"bright-poems-obey",
"brown-cycles-laugh",
"brown-pandas-wink",
"calm-pants-impress",
"chilled-ways-fetch",
"clever-pugs-warn",
"dry-planes-tap",
"dull-monkeys-search",
"eleven-brooms-hunt",
"eleven-spoons-matter",
"fair-lemons-beam",
"famous-tigers-doubt",
"few-cooks-destroy",
"few-mangos-grow",
"fifty-jars-rest",
"fuzzy-drinks-taste",
"fuzzy-onions-draw",
"gentle-parrots-lay",
"gentle-trains-switch",
"gold-vans-tease",
"green-yaks-divide",
"healthy-bikes-behave",
"healthy-pants-smash",
"healthy-poets-compare",
"heavy-ravens-lay",
"hip-hounds-destroy",
"kind-bears-nail",
"late-adults-love",
"late-parents-act",
"light-walls-begin",
"little-stingrays-rule",
"loud-shoes-jog",
"lovely-drinks-argue",
"many-vans-care",
"modern-spies-tell",
"neat-toes-report",
"neat-toys-float",
"olive-candles-speak",
"orange-flowers-cover",
"perfect-candles-clap",
"perfect-emus-clean",
"perfect-kangaroos-agree",
@@ -77,15 +104,32 @@
"plenty-tables-refuse",
"pretty-hounds-tap",
"proud-jeans-walk",
"proud-jobs-hope",
"red-chefs-float",
"red-yaks-sell",
"rich-ghosts-rule",
"shaggy-carrots-unite",
"shaggy-parrots-smash",
"shiny-chefs-heal",
"slow-carrots-relate",
"smart-apricots-kneel",
"smart-beds-cross",
"smooth-owls-pump",
"sour-buses-shout",
"spicy-frogs-press",
"spicy-snakes-sip",
"strange-ladybugs-nail",
"swift-pumpkins-knock",
"ten-parents-breathe",
"tender-bags-call",
"thick-countries-move",
"thick-readers-hang",
"three-moles-drop",
"three-pots-sit",
"tiny-seals-join",
"tricky-taxis-watch",
"two-dolls-check",
"wild-jokes-beam"
"wild-jokes-beam",
"witty-ties-speak"
]
}

View File

@@ -15,7 +15,6 @@
'@verdaccio/logger': patch
'@verdaccio/logger-prettify': patch
'@verdaccio/middleware': patch
'@verdaccio/mock': patch
'@verdaccio/node-api': patch
'@verdaccio/proxy': patch
'@verdaccio/server': patch

View File

@@ -1,9 +1,8 @@
---
'verdaccio-htpasswd': patch
'@verdaccio/local-storage': patch
'@verdaccio/fastify-migration': patch
'@verdaccio/server-fastify': patch
'@verdaccio/hooks': patch
'@verdaccio/mock': patch
'@verdaccio/node-api': patch
---

View File

@@ -0,0 +1,42 @@
---
'@verdaccio/api': major
'@verdaccio/cli': major
'@verdaccio/config': major
'@verdaccio/core': major
'@verdaccio/types': major
'@verdaccio/logger': major
'@verdaccio/node-api': major
'verdaccio-aws-s3-storage': major
'verdaccio-google-cloud': major
'verdaccio-htpasswd': major
'@verdaccio/local-storage': major
'verdaccio-memory': major
'@verdaccio/ui-theme': major
'@verdaccio/proxy': major
'@verdaccio/server': major
'verdaccio': major
'@verdaccio/web': major
---
feat!: config.logs throw an error, logging config not longer accept array or logs property
### 💥 Breaking change
This is valid
```yaml
log: { type: stdout, format: pretty, level: http }
```
This is invalid
```yaml
logs: { type: stdout, format: pretty, level: http }
```
or
```yaml
logs:
- [{ type: stdout, format: pretty, level: http }]
```

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/logger': patch
---
Fix re-opening log files using SIGUSR2

View File

@@ -0,0 +1,9 @@
---
'@verdaccio/types': major
'@verdaccio/ui-theme': major
'@verdaccio/dev-types': major
'@verdaccio/web': major
'@verdaccio/e2e-ui': major
---
feat: upgrade to material ui 5

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/config': minor
'@verdaccio/web': minor
---
feat(web): add a config item to weblet the developer can select whet……her enable the html cache

View File

@@ -0,0 +1,20 @@
---
'@verdaccio/api': minor
'@verdaccio/config': minor
'@verdaccio/core': minor
'@verdaccio/types': minor
'@verdaccio/local-storage': minor
'@verdaccio/ui-theme': minor
'@verdaccio/proxy': minor
'@verdaccio/server': minor
'@verdaccio/store': minor
'@verdaccio/test-helper': minor
'@verdaccio/web': minor
---
feat: ui search support for remote, local and private packages
The command `npm search` search globally and return all matches, with this improvement the user interface
is powered with the same capabilities.
The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
ui: basic grammatical fixes in the Ukraine Message

View File

@@ -0,0 +1,10 @@
---
'@verdaccio/server-fastify': minor
'@verdaccio/store': minor
'@verdaccio/utils': minor
'@verdaccio/web': minor
---
feat: migrate web sidebar endpoint to fastify
reuse utils methods between packages

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
fix: specific version package detail page not showing

View File

@@ -0,0 +1,9 @@
---
'@verdaccio/types': minor
---
feat: add dist.signatures to core/types
According to [`npm`](https://docs.npmjs.com/about-registry-signatures): _"Signatures are provided in the package's `packument` in each published version within the `dist` object"_
Here's an [example of a package version from the public npm registry with `dist.signatures`](https://registry.npmjs.org/light-cycle/1.4.3).

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/auth': patch
'verdaccio-htpasswd': patch
---
Refactor htpasswd plugin to use the bcryptjs 'compare' api call instead of 'comparSync'. Add a new configuration value named 'slow_verify_ms' to the htpasswd plugin that when exceeded during password verification will log a warning message.

View File

@@ -0,0 +1,7 @@
---
'@verdaccio/auth': minor
'@verdaccio/server-fastify': minor
'@verdaccio/web': minor
---
dist tags Implementation on Fastify

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/logger': major
'@verdaccio/logger-prettify': major
---
feat: upgrade to pino v7

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
fix: fixes some style issues on mobile, particularly related to the Ukraine support message - [@s-h-a-d-o-w](https://github.com/s-h-a-d-o-w)

View File

@@ -0,0 +1,7 @@
---
'@verdaccio/api': minor
'@verdaccio/store': minor
'@verdaccio/utils': minor
---
refactor: improve versions and dist-tag filters

View File

@@ -14,7 +14,6 @@
'@verdaccio/logger': patch
'@verdaccio/logger-prettify': patch
'@verdaccio/middleware': patch
'@verdaccio/mock': patch
'@verdaccio/node-api': patch
'@verdaccio/proxy': patch
'@verdaccio/server': patch

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': minor
---
feat: improve registry info dialog and language switch

View File

@@ -0,0 +1,28 @@
---
'@verdaccio/api': minor
'@verdaccio/types': minor
'@verdaccio/local-storage': minor
'@verdaccio/server-fastify': minor
'@verdaccio/store': minor
'@verdaccio/test-helper': minor
'@verdaccio/web': minor
---
feat: implement abbreviated manifest
Enable abbreviated manifest data by adding the header:
```
curl -H "Accept: application/vnd.npm.install-v1+json" https://registry.npmjs.org/verdaccio
```
It returns a filtered manifest, additionally includes the [time](https://github.com/pnpm/rfcs/pull/2) field by request.
Current support for packages managers:
- npm: yes
- pnpm: yes
- yarn classic: yes
- yarn modern (+2.x): [no](https://github.com/yarnpkg/berry/pull/3981#issuecomment-1076566096)
https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-metadata-format

View File

@@ -0,0 +1,11 @@
---
'@verdaccio/api': patch
'@verdaccio/cli': patch
'@verdaccio/core': patch
'@verdaccio/types': patch
'@verdaccio/store': patch
'@verdaccio/test-helper': patch
'@verdaccio/local-publish': patch
---
fix: handle upload scoped tarball

View File

@@ -11,3 +11,6 @@ wiki/
dist/
docs/
test/functional/store/*
docker-examples/**/lib/**/*.js
test/cli/e2e-yarn4/bin/yarn-4.0.0-rc.14.cjs
yarn.js

View File

@@ -4,23 +4,26 @@ name: ci - benchmark
on:
workflow_dispatch:
schedule:
# 3 times day
# 1 time peer week
# collecting enough data to draw some graphics
- cron: '0 1 * * *'
- cron: '0 1 * * 1'
# push:
# branches:
# - master
permissions:
contents: read
jobs:
prepare:
name: Prepare build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 14.x
node-version: 16.x
- name: install pnpm
run: sudo npm i pnpm@6.6.1 -g
run: sudo npm i pnpm@latest-6 -g
- name: set store
run: |
mkdir ~/.pnpm-store
@@ -30,7 +33,7 @@ jobs:
- name: install dependencies
run: pnpm install
- name: Cache .pnpm-store
uses: actions/cache@v2
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -41,7 +44,7 @@ jobs:
- name: tar packages
run: |
tar -czvf ${{ github.workspace }}/pkg.tar.gz -C ${{ github.workspace }}/packages .
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3
with:
name: verdaccio-artifact
path: pkg.tar.gz
@@ -57,24 +60,24 @@ jobs:
# - local
- 3.13.1
- 4.12.2
- 5.1.3
- 6.0.0-6-next.24
- 5.10.2
- 6.0.0-6-next.40
name: Benchmark autocannon
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 14.x
- uses: actions/download-artifact@v2
node-version: 16.x
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # tag=v3
with:
name: verdaccio-artifact
- name: untar packages
run: tar -xzvf pkg.tar.gz -C ${{ github.workspace }}/packages
- name: install pnpm
# require fixed version
run: sudo npm i pnpm@6.6.1 -g
- uses: actions/cache@v2
run: sudo npm i pnpm@latest-6 -g
- uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -87,7 +90,7 @@ jobs:
shell: bash
env:
DEBUG: metrics*
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3
with:
name: verdaccio-metrics-api
path: ./api-results-${{matrix.verdaccioVersion}}-${{matrix.benchmark}}.json
@@ -118,24 +121,24 @@ jobs:
# old versions to compare same test along previous releases
- 3.13.1
- 4.12.2
- 5.1.3
- 6.0.0-6-next.24
- 5.10.2
- 6.0.0-6-next.40
name: Benchmark hyperfine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 14.x
- uses: actions/download-artifact@v2
node-version: 16.x
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741 # tag=v3
with:
name: verdaccio-artifact
- name: untar packages
run: tar -xzvf pkg.tar.gz -C ${{ github.workspace }}/packages
- name: install pnpm
# require fixed version
run: sudo npm i pnpm@6.6.1 -g
- uses: actions/cache@v2
run: sudo npm i pnpm@latest-6 -g
- uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -153,7 +156,7 @@ jobs:
shell: bash
- name: rename
run: mv ./hyper-results.json ./hyper-results-${{matrix.verdaccioVersion}}-${{matrix.benchmark}}.json
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3
with:
name: verdaccio-metrics
path: ./hyper-results-${{matrix.verdaccioVersion}}-${{matrix.benchmark}}.json

View File

@@ -20,12 +20,12 @@ jobs:
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
steps:
- name: checkout code repository
uses: actions/checkout@v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v2
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
@@ -33,7 +33,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: install pnpm
run: npm i pnpm@6.10.3 -g
run: npm i pnpm@6.32.15 -g
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
@@ -63,7 +63,7 @@ jobs:
title: 'chore: update versions'
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CHANGESET_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
NPM_CONFIG_REGISTRY: https://registry.npmjs.org

View File

@@ -2,42 +2,44 @@ name: CI
on:
push:
branches:
- master
- 'changeset-release/master'
pull_request:
paths:
- .changeset/**
- .github/workflows/ci.yml
- 'packages/**'
- 'test/**'
- 'docker-examples/**'
- 'jest/**'
- 'package.json'
- 'pnpm-workspace.yaml'
permissions:
contents: read
jobs:
prepare:
runs-on: ubuntu-latest
name: setup verdaccio
services:
verdaccio:
image: verdaccio/verdaccio:5
image: verdaccio/verdaccio:nightly-master
ports:
- 4873:4873
steps:
- uses: actions/checkout@v2.3.5
- name: Use Node 14
uses: actions/setup-node@v1
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node 16
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 14
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.10.3 -g
run: npm i pnpm@6.32.15 -g
- name: set store
run: |
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --frozen-lockfile --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@v2
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -48,17 +50,17 @@ jobs:
name: Lint
needs: prepare
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node 16
uses: actions/setup-node@v1
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.10.3 -g
- uses: actions/cache@v2
run: npm i pnpm@6.32.15 -g
- uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
run: pnpm recursive install --frozen-lockfile --ignore-scripts
- name: Lint
@@ -68,195 +70,121 @@ jobs:
name: Format
needs: prepare
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node 16
uses: actions/setup-node@v1
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.10.3 -g
- uses: actions/cache@v2
run: npm i pnpm@6.32.15 -g
- uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
run: pnpm recursive install --frozen-lockfile --ignore-scripts
- name: Lint
run: pnpm format:check
build:
runs-on: ubuntu-latest
name: build
needs: [format, lint]
steps:
- uses: actions/checkout@v2.3.5
- name: Use Node 16
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.10.3 -g
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
run: pnpm recursive install --frozen-lockfile --ignore-scripts
- name: crowdin download
env:
CROWDIN_VERDACCIO_PROJECT_ID: ${{ secrets.CROWDIN_VERDACCIO_PROJECT_ID }}
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production
run: pnpm crowdin:download
## this step is optional, translations are not mandatory for PR
## secrets keys are not available on forks, the failure here is guaranteed
continue-on-error: true
- name: build
run: pnpm build
- name: tar packages
run: |
tar -czvf ${{ github.workspace }}/pkg.tar.gz -C ${{ github.workspace }}/packages .
- uses: actions/upload-artifact@v2
with:
name: verdaccio-artifact
path: pkg.tar.gz
test:
needs: build
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
## Node 16 breaks UI test, jest issue
node_version: [14]
os: [ubuntu-latest, windows-latest]
node_version: [16, 18]
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: ${{ matrix.node_version }}
- uses: actions/download-artifact@v2
with:
name: verdaccio-artifact
- name: untar packages
run: tar -xzvf pkg.tar.gz -C ${{ github.workspace }}/packages
- name: Install pnpm
run: npm i pnpm@6.10.3 -g
- uses: actions/cache@v2
run: npm i pnpm@6.32.15 -g
- uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
run: pnpm recursive install --frozen-lockfile --ignore-scripts
- name: Test
run: pnpm test
ci-e2e-ui:
needs: build
runs-on: ubuntu-latest
name: UI Test E2E Node 14
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/setup-node@v1
with:
node-version: 14
- uses: actions/download-artifact@v2
with:
name: verdaccio-artifact
- name: untar packages
run: tar -xzvf pkg.tar.gz -C ${{ github.workspace }}/packages
- name: Install pnpm
run: npm i pnpm@6.10.3 -g
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
## we need scripts, pupetter downloads aditional content
run: pnpm recursive install --frozen-lockfile
- name: Test UI
run: pnpm test:e2e:ui
# env:
# DEBUG: verdaccio:e2e*
ci-e2e-cli:
needs: build
runs-on: ubuntu-latest
name: CLI Test E2E Node 14
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/setup-node@v1
with:
node-version: 14
- uses: actions/download-artifact@v2
with:
name: verdaccio-artifact
- name: untar packages
run: tar -xzvf pkg.tar.gz -C ${{ github.workspace }}/packages
- name: Install pnpm
run: npm i pnpm@6.10.3 -g
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
## we need scripts, pupetter downloads aditional content
run: pnpm recursive install --frozen-lockfile
- name: Test CLI
run: pnpm test:e2e:cli
# env:
# DEBUG: verdaccio*
test-windows:
needs: [format, lint]
runs-on: windows-latest
name: windows test node 14
steps:
- uses: actions/checkout@v2.3.5
- name: Use Node 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install pnpm
run: npm i pnpm@6.10.3 -g
# pnpm cache is not working for windows (we need a solution)
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
run: pnpm recursive install --frozen-lockfile --ignore-scripts
run: pnpm recursive install --frozen-lockfile --ignore-scripts
- name: build
run: pnpm build
- name: Test
run: pnpm test
ci-e2e-ui:
needs: [format, lint]
runs-on: ubuntu-latest
name: UI Test E2E Node 16
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
- uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
run: pnpm recursive install --frozen-lockfile
- name: build
run: pnpm build
- name: Test UI
run: pnpm test:e2e:ui
# env:
# DEBUG: verdaccio:e2e*
ci-e2e-cli:
needs: [format, lint]
runs-on: ubuntu-latest
name: CLI Test E2E Node 16
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
- uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
## we need scripts, pupetter downloads aditional content
run: pnpm recursive install --frozen-lockfile
- name: build
run: pnpm build
- name: Test CLI
run: pnpm test:e2e:cli
# env:
# DEBUG: verdaccio*
sync-translations:
needs: [ci-e2e-cli, ci-e2e-ui, test-windows, test]
needs: [ci-e2e-cli, ci-e2e-ui]
runs-on: ubuntu-latest
name: synchronize translations
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/setup-node@v1
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 14
- uses: actions/download-artifact@v2
with:
name: verdaccio-artifact
- name: untar packages
run: tar -xzvf pkg.tar.gz -C ${{ github.workspace }}/packages
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.10.3 -g
- uses: actions/cache@v2
run: npm i pnpm@6.32.15 -g
- uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
## we need scripts, pupetter downloads aditional content
run: pnpm recursive install --frozen-lockfile
- name: build
run: pnpm build
- name: generate website translations
run: pnpm write-translations --filter ...@verdaccio/website
run: pnpm write-translations --filter ...@verdaccio/website
- name: sync
env:
CROWDIN_VERDACCIO_PROJECT_ID: ${{ secrets.CROWDIN_VERDACCIO_PROJECT_ID }}
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production
run: pnpm crowdin:sync
run: pnpm crowdin:sync

View File

@@ -8,13 +8,20 @@ on:
schedule:
- cron: '0 2 * * 4'
permissions:
contents: read
jobs:
CodeQL-Build:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2.3.5
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
@@ -27,7 +34,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@c7f292ea4f542c473194b33813ccd4c207a6c725 # tag=v2
# Override language selection by uncommenting this and choosing your languages
# with:
@@ -35,7 +42,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@c7f292ea4f542c473194b33813ccd4c207a6c725 # tag=v2
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -49,4 +56,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@c7f292ea4f542c473194b33813ccd4c207a6c725 # tag=v2

48
.github/workflows/contributors.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
---
name: contributors
on:
workflow_dispatch:
schedule:
# twice peer week
- cron: '0 0 * * 1,4'
# for now, scheduled, we can enable on push master but not make much sense now
# push:
# branches:
# - master
jobs:
prepare:
name: Run script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 17.x
- name: install pnpm
run: sudo npm i pnpm@latest-6 -g
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: setup pnpm config registry
run: pnpm config set registry https://registry.verdaccio.org
- name: install dependencies
run: pnpm install
- name: update contributors
run: pnpm run contributors
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: format
run: pnpm format
- name: Commit & Push changes
uses: actions-js/push@a52398fac807b0c1e5f1492c969b477c8560a0ba # tag=v1.3
with:
github_token: ${{ secrets.TOKEN_VERDACCIOBOT_GITHUB }}
message: "chore: updated contributors list"
branch: master
author_email: verdaccio.npm@gmail.com
author_name: verdacciobot

View File

@@ -19,8 +19,8 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- uses: docker/setup-qemu-action@27d0a4f181a40b142cce983c5393082c365d1480 # tag=v1
- uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host

View File

@@ -3,20 +3,12 @@ name: Verdaccio Website CI
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
paths:
- 'website/**'
- 'package.json'
- './.github/workflows/website.yml'
- 'website/**'
- './.github/workflows/website.yml'
push:
branches:
- 'master'
paths:
- 'website/**'
- 'package.json'
- './.github/workflows/website.yml'
- 'master'
jobs:
build:
@@ -24,15 +16,15 @@ jobs:
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node 14
uses: actions/setup-node@v2
- name: Use Node 16
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 14
node-version: 16
- name: Cache pnpm modules
uses: actions/cache@v2
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
env:
cache-name: cache-pnpm-modules
with:
@@ -41,20 +33,16 @@ jobs:
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@10693b3829bf86eb2572aef5f3571dcf5ca9287d # tag=v2.2.2
with:
version: 6.10.2
version: 6.32.15
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: Lint And Pretty
run: |
pnpm eslint:check --filter ...@verdaccio/website
pnpm prettier:check --filter ...@verdaccio/website
- name: Build Plugins
run: pnpm build --filter "docusaurus-plugin-contributors"
- name: Cache Docusaurus Build
uses: actions/cache@v2
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # tag=v3
with:
path: website/node_modules/.cache/webpack
key: cache/webpack-${{github.ref}}-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -73,7 +61,7 @@ jobs:
- name: 🔥 Deploy Production Netlify
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
uses: semoal/action-netlify-deploy@master
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
@@ -82,14 +70,13 @@ jobs:
# Will deploy to Preview URL, only when a pull request is open with changes on the website
- name: Build Deployment Preview
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && github.event.label.name == 'trigger-preview'
env:
CONTEXT: deploy-preview
run: pnpm netlify:build:deployPreview --filter ...@verdaccio/website
- name: 🤖 Deploy Preview Netlify
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && github.event.label.name == 'trigger-preview'
uses: semoal/action-netlify-deploy@master
if: github.repository == 'verdaccio/verdaccio'
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
id: netlify_preview
with:
draft: true
@@ -102,9 +89,9 @@ jobs:
build-dir: './website/build'
- name: Audit preview URL with Lighthouse
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && github.event.label.name == 'trigger-preview'
if: github.repository == 'verdaccio/verdaccio'
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@v3
uses: treosh/lighthouse-ci-action@b4dfae3eb959c5226e2c5c6afd563d493188bfaf # tag=9.3.0
with:
urls: |
${{ steps.netlify_preview.outputs.preview-url }}
@@ -112,9 +99,8 @@ jobs:
temporaryPublicStorage: true
- name: Format lighthouse score
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && github.event.label.name == 'trigger-preview'
id: format_lighthouse_score
uses: actions/github-script@v3
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # tag=v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
@@ -137,12 +123,13 @@ jobs:
core.setOutput("comment", comment);
- name: Add comment to PR
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && github.event.label.name == 'trigger-preview'
if: github.repository == 'verdaccio/verdaccio'
id: comment_to_pr
uses: marocchino/sticky-pull-request-comment@v1
uses: marocchino/sticky-pull-request-comment@39c5b5dc7717447d0cba270cd115037d32d28443 # tag=v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.issue.number }}
delete: true
header: lighthouse
message: |
${{ steps.format_lighthouse_score.outputs.comment }}

3
.gitignore vendored
View File

@@ -46,7 +46,8 @@ api-results.json
hyper-results.json
hyper-results*.json
api-results*.json
.clinic/
#docs
./api
packages/core/core/docs
**/docs/**

View File

@@ -19,8 +19,8 @@ node_modules/
packages/core/local-storage/_storage/**
packages/partials/storage_default_storage/
packages/standalone/dist/bundle.js
packages/verdaccio/dist/bundle.js
docker-examples/v5/reverse_proxy/nginx/relative_path/storage/*
docker-examples/
build/
.vscode/
.github/
@@ -31,3 +31,5 @@ api/**
packages/core/local-storage/tests/__fixtures__/test-storage/
packages/plugins/ui-theme/static/
.verdaccio-db.json
test/cli/e2e-yarn4/bin/yarn-4.0.0-rc.14.cjs
yarn.js

View File

@@ -1,11 +0,0 @@
{
"endOfLine": "lf",
"useTabs": false,
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"bracketSpacing": true,
"jsxBracketSameLine": true,
"trailingComma": "es5",
"semi": true
}

78
.vscode/launch.json vendored
View File

@@ -4,88 +4,12 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"port": 9229,
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
{
"name": "Verdaccio Debug",
"name": "Attach",
"port": 9229,
"request": "attach",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node"
},
{
"type": "node",
"request": "launch",
"name": "CLI Babel Registry",
"stopOnEntry": false,
"program": "${workspaceFolder}/debug/bootstrap.js",
"args": ["-l", "0.0.0.0:4873"],
"env": {
"BABEL_ENV": "registry"
},
"preLaunchTask": "npm: build:webui",
"console": "integratedTerminal"
},
{
"name": "Unit Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/bin/jest",
"stopOnEntry": false,
"args": ["--debug=true"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy"],
"env": {
"NODE_ENV": "test",
"TZ": "UTC"
},
"console": "integratedTerminal"
},
{
"name": "Functional Tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/jest",
"stopOnEntry": false,
"args": [
"--config",
"./test/jest.config.functional.js",
"--testPathPattern",
"./test/functional/index*",
"--debug=false",
"--verbose",
"--useStderr",
"--detectOpenHandles"
],
"cwd": "${workspaceRoot}",
"env": {
"BABEL_ENV": "testOldEnv",
"VERDACCIO_DEBUG": "true",
"VERDACCIO_DEBUG_INJECT": "true",
"NODE_DEBUG": "TO_DEBUG_REQUEST_REMOVE_THIS_request"
},
"preLaunchTask": "pre-test",
"console": "integratedTerminal",
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy"]
},
{
"type": "node",
"request": "launch",
"name": "Verdaccio Compiled",
"preLaunchTask": "npm: code:build",
"program": "${workspaceRoot}/bin/verdaccio",
"args": ["-l", "0.0.0.0:4873"],
"console": "integratedTerminal"
}
]
}

21
.vscode/tasks.json vendored
View File

@@ -1,21 +0,0 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build:webui",
"problemMatcher": []
},
{
"type": "npm",
"script": "code:build",
"problemMatcher": []
},
{
"label": "pre-test",
"dependsOn": ["npm: code:build", "npm: test:clean"]
}
]
}

View File

@@ -70,7 +70,7 @@ This setting would cause the `pnpm install` command to install incorrect version
To begin your development setup, please install the latest version of pnpm globally:
```
npm i -g pnpm
npm i -g pnpm@latest-6
```
With pnpm installed, the first step is installing all dependencies:
@@ -138,10 +138,8 @@ output to the code. Each package has it owns namespace.
To run the application from the source code, ensure the project has been built with `pnpm build`, once this is done, there are few commands that helps to run server:
- `pnpm start`: Run the server and the UI with `concurrently`, the
server runs in the port `8000` and the UI on the port `4873`. This command
is useful if you want to contribute mostly on the UI.
- `pnpm debug`: Run the server in debug mode `--inspect`, the UI is included but does not have hot reload. For automatic break use `pnpm debug:break`.
- `pnpm start`: Runs server on port `8000` and UI on port `4873`. This is particularly useful if you want to contribute to the UI, since it runs with hot reload.
- `pnpm debug`: Run the server in debug mode `--inspect`. UI runs too but without hot reload. For automatic break use `pnpm debug:break`.
- `pnpm debug:fastify`: To contribute on the [fastify migration](https://github.com/verdaccio/verdaccio/discussions/2155) this is a temporary command for such purpose.
- `pnpm website`: Build the website, for more commands to run the _website_, run `cd website` and then `pnpm serve`, website will run on port `3000`.
- `pnpm docker`: Build the docker image. Requires `docker` command available in your system.
@@ -185,7 +183,7 @@ a report in our [issue tracker](https://github.com/verdaccio/verdaccio/issues).
- _Features clearly flagged as not supported_
- _Node.js issues installation in any platform_: If you cannot install the
global package (this is considered external issue)
- Any ticket which has beed flagged as an [external issue
- Any ticket which has been flagged as an [external issue
](https://github.com/verdaccio/verdaccio/labels/external-issue)
If you intend to report a **security** issue, please follow our [Security policy
@@ -236,7 +234,7 @@ the project. Adding in context and the use-case will really help!
- A detailed description the advantages of your request
- Whether or not it's compatible with `npm`, `pnpm` and [_yarn classic_
](https://github.com/yarnpkg/yarn) or [_yarn berry_
](https://github.com/yarnpkg/yarn) or [_yarn modern_
](https://github.com/yarnpkg/berry).
- A potential implementation or design
- Whatever else is on your mind! 🤓
@@ -280,7 +278,7 @@ clean git history.
#### Before Commit
Before committing, **you must ensure there are no linting errors and
all tests pass.** To do this, run these commands before create the PR:
all tests pass.** To do this, run these commands before creating the PR:
```bash
pnpm lint
@@ -333,8 +331,8 @@ We use [changesets](https://github.com/atlassian/changesets) in order to
generate a detailed Changelog as possible.
Adding a changeset with your Pull Request is essential if you want your
contribution to get merged (unless is a change that does not affect library
functionality, eg: typo, docs, readme, add additional test or linting code). To
contribution to get merged (unless it does not affect functionality or
user-facing content, eg: docs, readme, adding test or typo/lint fixes). To
create a changeset please run:
```
@@ -422,3 +420,25 @@ If you want to develop your own plugin:
3. You are free to host your plugin in your repository
4. Provide a detailed description of your plugin to help users understand how to
use it
## Testing your changes in a local registry
Once you have perform your changes in the code base, the build and tests passes you can publish a local version:
- Ensure you have build all modules (or the one you have modified)
- Run `pnpm local:publish:release` to launch a local registry and publish all packages into it. This command will be alive until server is killed (Control Key + C)
```
pnpm build
pnpm local:publish:release
```
The last step consist on install globally the package from the local registry.
```
npm i -g verdaccio --registry=http://localhost:4873
verdaccio
```
If you perform more changes in the source code, repeat this process, there is not _hot reloading_ support.

View File

@@ -1,25 +1,26 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:14.18.1-alpine as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:16-alpine as builder
ENV NODE_ENV=development \
VERDACCIO_BUILD_REGISTRY=https://registry.verdaccio.org
RUN apk --no-cache add openssl ca-certificates wget && \
apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python && \
apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python3 && \
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
wget -q https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.25-r0/glibc-2.25-r0.apk && \
apk add glibc-2.25-r0.apk
WORKDIR /opt/verdaccio-build
COPY . .
RUN npm -g i pnpm@6.10.3 && \
RUN npm -g i pnpm@6.32.15 && \
pnpm config set registry $VERDACCIO_BUILD_REGISTRY && \
pnpm recursive install --frozen-lockfile --ignore-scripts && \
pnpm run build
rm -Rf test && \
pnpm run build && \
pnpm install -P
# FIXME: need to remove devDependencies from the build
# RUN pnpm install --prod --ignore-scripts
FROM node:14.18.1-alpine
FROM node:16-alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"
ENV VERDACCIO_APPDIR=/opt/verdaccio \

View File

@@ -1,10 +1,19 @@
[![BannerUK](https://cdn.verdaccio.dev/readme/banner-uk.svg)](https://donate.redcrossredcrescent.org/ua/donate/~my-donation?_cv=1)
> Verdaccio stands for **peace**, stop the war, we will be yellow / blue 🇺🇦 until that happens.
![verdaccio logo](https://cdn.verdaccio.dev/readme/verdaccio@2x.png)
![verdaccio gif](https://cdn.verdaccio.dev/readme/readme-website.png)
# Version 6 (Development branch)
> Looking for Verdaccio 5? Check branch `5.x`.
> Looking for Verdaccio 5 version? Check the branch `5.x`
> The plugins for the `v5.x` that are hosted within this organization are located
> at the [`verdaccio/monorepo`](https://github.com/verdaccio/monorepo) repository, while for the v6.x
> are hosted on this project `./packages/plugins`, keep on mind `v6.x` plugins will eventually would be
> incompatible with `v5.x` versions.
> Note that contributing guidelines might be different based on the branch.
[Verdaccio](https://verdaccio.org/) is a simple, **zero-config-required local private npm registry**.
No need for an entire database just to get started! Verdaccio comes out of the box with
@@ -26,15 +35,28 @@ Google Cloud Storage** or create your own plugin.
[![Twitter followers](https://img.shields.io/twitter/follow/verdaccio_npm.svg?style=social&label=Follow)](https://twitter.com/verdaccio_npm)
[![Github](https://img.shields.io/github/stars/verdaccio/verdaccio.svg?style=social&label=Stars)](https://github.com/verdaccio/verdaccio/stargazers)
[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
## Install
> Latest Node.js v14
> Latest Node.js v16 required
Install with npm:
```bash
npm install --global verdaccio@6-next
npm install --location=global verdaccio@6-next
```
With `yarn`
```bash
yarn global add verdaccio@6-next
```
With `pnpm`
```bash
pnpm i -g verdaccio@6-next
```
or
@@ -43,9 +65,30 @@ or
docker pull verdaccio/verdaccio:nightly-master
```
or with _helm_ [official chart](https://github.com/verdaccio/charts).
```bash
helm repo add verdaccio https://charts.verdaccio.org
helm repo update
helm install verdaccio/verdaccio
```
Furthermore, you can read the [**Debugging Guidelines**](https://github.com/verdaccio/verdaccio/wiki/Debugging-Verdaccio) and the [**Docker Examples**](https://github.com/verdaccio/verdaccio/tree/master/docker-examples) for more advanced development.
## Plugins
You can develop your own [plugins](https://verdaccio.org/docs/plugins) with the [verdaccio generator](https://github.com/verdaccio/generator-verdaccio-plugin). Installing [Yeoman](https://yeoman.io/) is required.
```
npm install --location=global yo
npm install --location=global generator-verdaccio-plugin
```
Learn more [here](https://verdaccio.org/docs/dev-plugins) how to develop plugins. Share your plugins with the community.
## Donations
Verdaccio is run by **volunteers**; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider making a donation - **your logo might end up in this readme.** 😉
Verdaccio is run by **volunteers**; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider do a long support donation - **and your logo will be on this section of the readme.**
**[Donate](https://github.com/sponsors/verdaccio)** 💵👍🏻 starting from _$1/month_ or just one single contribution.
@@ -71,19 +114,31 @@ If you want to use a modified version of some 3rd-party package (for example, yo
### E2E Testing
Verdaccio has proved to be a lightweight registry that can be
booted in a couple of seconds, fast enough for any CI. Many open source projects use verdaccio for end to end testing, to mention some examples, **create-react-app**, **mozilla neutrino**, **pnpm**, **storybook**, **alfresco** or **eclipse theia**. You can read more in dedicated article to E2E in our blog.
booted in a couple of seconds, fast enough for any CI. Many open source projects use verdaccio for end to end testing, to mention some examples, **create-react-app**, **mozilla neutrino**, **pnpm**, **storybook**, **babel.js**, **angular-cli** or **docusaurus**. You can read more in [here](https://verdaccio.org/docs/e2e).
## Talks
Furthermore, here few examples how to start:
### **Testing the integrity of your React components by publishing in a private registry - React Finland 2021**.
- [e2e-ci-example-gh-actions](https://github.com/juanpicado/e2e-ci-example-gh-actions)
- [verdaccio-end-to-end-tests](https://github.com/juanpicado/verdaccio-end-to-end-tests)
- [verdaccio-fork](https://github.com/juanpicado/verdaccio-fork)
[![beerjscrb](https://cdn.verdaccio.dev/readme/react-finland-2021-jpicado.jpeg)](https://www.youtube.com/watch?v=bRKZbrlQqLY&t=16s&ab_channel=ReactFinland)
## Watch our Videos
**Node Congress 2022, February 2022, Online Free**
<div>
<a href="https://portal.gitnation.org/contents/five-ways-of-taking-advantage-of-verdaccio-your-private-and-proxy-nodejs-registry">
<img src="https://cdn.verdaccio.dev/readme/nodejscongress2022.jpg" alt="nodejs" width="200"/>
</a>
</div>
You might want to check out as well our previous talks:
- [Using Docker and Verdaccio to make Integration Testing Easy - **Docker All Hands #4 December - 2021**](https://www.youtube.com/watch?v=zRI0skF1f8I)
- [**Juan Picado** Testing the integrity of React components by publishing in a private registry - React Finland - 2021](https://www.youtube.com/watch?v=bRKZbrlQqLY&t=16s&ab_channel=ReactFinland)
- [BeerJS Cba Meetup No. 53 May 2021 - **Juan Picado**](https://www.youtube.com/watch?v=6SyjqBmS49Y&ab_channel=BeerJSCba)
- [Node.js Dependency Confusion Attacks - April 2021 - **Juan Picado\***](https://www.youtube.com/watch?v=qTRADSp3Hpo)
- [**OpenJS World 2020** about \*Cover your Projects with a Multi purpose Lightweight Node.js Registry - **Juan Picado\***](https://www.youtube.com/watch?v=oVCjDWeehAQ)
- [Node.js Dependency Confusion Attacks - April 2021 - **Juan Picado**](https://www.youtube.com/watch?v=qTRADSp3Hpo)
- [**OpenJS World 2020** about \*Cover your Projects with a Multi purpose Lightweight Node.js Registry - **Juan Picado**](https://www.youtube.com/watch?v=oVCjDWeehAQ)
- [ViennaJS Meetup - Introduction to Verdaccio by **Priscila Olivera** and **Juan Picado**](https://www.youtube.com/watch?v=hDIFKzmoCa)
- [Open Source? trivago - Verdaccio (**Ayush** and **Juan Picado**) January 2020](https://www.youtube.com/watch?v=A5CWxJC9xzc)
- [GitNation Open Source Stage - How we have built a Node.js Registry with React - **Juan Picado** December 2019](https://www.youtube.com/watch?v=gpjC8Qp9B9A)
@@ -100,7 +155,7 @@ verdaccio
You would need set some npm configuration, this is optional.
```bash
$ npm set registry http://localhost:4873/
npm set registry http://localhost:4873/
```
For one-off commands or to avoid setting the registry globally:
@@ -124,7 +179,7 @@ npm adduser --registry http://localhost:4873
> if you use HTTPS, add an appropriate CA information ("null" means get CA list from OS)
```bash
$ npm set ca null
npm set ca null
```
#### 2. publish your package
@@ -154,7 +209,7 @@ To run the docker container:
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
```
Docker examples are available [in this repository](https://github.com/verdaccio/docker-examples).
Docker examples are available [in this repository](https://github.com/verdaccio/verdaccio/tree/master/docker-examples).
## Compatibility
@@ -222,6 +277,7 @@ You can find and chat with then over Discord, click [here](http://chat.verdaccio
- [create-react-app](https://github.com/facebook/create-react-app/blob/master/CONTRIBUTING.md#customizing-e2e-registry-configuration) _(+86.2k ⭐️)_
- [Gatsby](https://github.com/gatsbyjs/gatsby) _(+49.2k ⭐️)_
- [Babel.js](https://github.com/babel/babel) _(+38.5k ⭐️)_
- [Docusaurus](https://github.com/facebook/docusaurus) _(+34k ⭐️)_
- [Vue CLI](https://github.com/vuejs/vue-cli) _(+27.4k ⭐️)_
- [Angular CLI](https://github.com/angular/angular-cli) _(+24.3k ⭐️)_
- [Uppy](https://github.com/transloadit/uppy) _(+23.8k ⭐️)_
@@ -236,7 +292,7 @@ You can find and chat with then over Discord, click [here](http://chat.verdaccio
- [Amazon SDK v3](https://github.com/aws/aws-sdk-js-v3)
- [Amazon Encryption SDK for Javascript](https://github.com/aws/aws-encryption-sdk-javascript)
🤓 Don't be shy, you also can be in [the list](https://github.com/verdaccio/website/blob/master/docs/who-is-using.md).
🤓 Don't be shy, add yourself to this readme.
## Open Collective Sponsors

View File

@@ -8,12 +8,14 @@ The following examples aim to be demonstrative and can be either improved or upd
- [v4 examples](v4/README.md)
- [v5 examples](v5/README.md)
- [v6 examples](v6/README.md)
## Aditional data
This folder aims to create a collection of Docker and Kubernetes examples.
For more information about the **Helm** Chart, please check it [owns repo](https://github.com/verdaccio/charts).
### Kubernetes
- Kubernetes (minikube) + Verdaccio (Basic Configuration)

View File

@@ -4,6 +4,9 @@ Verdaccio running with [Localstack](https://github.com/localstack/localstack) pr
## Usage
> You might need to create bucket manually here
> aws --endpoint-url=http://localhost:4572 s3 mb s3://localstack.s3.plugin.test
```
docker-compose up --force-recreate --build --always-recreate-deps
```

View File

@@ -13,7 +13,6 @@ uplinks:
packages:
'@*/*':
# scoped packages
access: $all
publish: $all
proxy: npmjs

View File

@@ -14,7 +14,7 @@ services:
links:
- localstack-s3
localstack-s3:
image: localstack/localstack:latest
image: localstack/localstack:0.10.9
container_name: localstack-s3-1
environment:
- DEBUG=0

View File

@@ -1,4 +1,4 @@
FROM python:2.7
FROM python:3.7-alpine
ENV AWS_ACCESS_KEY_ID='[something]'
ENV AWS_SECRET_ACCESS_KEY='[something]'
@@ -7,4 +7,4 @@ ENV AWS_S3_ENDPOINT='http://localstack-s3:4572'
RUN pip install awscli
COPY entry.sh /entry.sh
RUN chmod +x /entry.sh
ENTRYPOINT ["/entry.sh"]
ENTRYPOINT ["/entry.sh"]

View File

@@ -1,3 +1,3 @@
#!/bin/bash
aws --endpoint-url http://localstack-s3:4572 s3 mb s3://localstack.s3.plugin.test --region eu-west-2
aws --endpoint-url http://localstack-s3:4572 s3 mb s3://localstack.s3.plugin.test --region eu-west-2

View File

@@ -7,7 +7,7 @@
# see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
# https://github.com/verdaccio/verdaccio/tree/master/packages/config/src/conf
#
# path to a directory with all packages

View File

@@ -10,7 +10,7 @@ let _localMemory = require('./local-memory');
let _localMemory2 = _interopRequireDefault(_localMemory);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
return obj && obj.__esModule ? obj : { default: obj };
}
exports.LocalMemory = _localMemory2.default;

View File

@@ -9,7 +9,7 @@ let _memoryHandler = require('./memory-handler');
let _memoryHandler2 = _interopRequireDefault(_memoryHandler);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
return obj && obj.__esModule ? obj : { default: obj };
}
const DEFAULT_LIMIT = 1000;
@@ -43,8 +43,8 @@ class LocalMemory {
cb(null);
} else {
this.logger.info(
{limit: this.limit},
'Storage memory has reached limit of @{limit} packages',
{ limit: this.limit },
'Storage memory has reached limit of @{limit} packages'
);
cb(new Error('Storage memory has reached limit of limit packages'));
}

View File

@@ -16,7 +16,7 @@ let _memoryFs2 = _interopRequireDefault(_memoryFs);
let _streams = require('@verdaccio/streams');
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
return obj && obj.__esModule ? obj : { default: obj };
}
// $FlowFixMe
@@ -111,8 +111,8 @@ class MemoryHandler {
const uploadStream = new _streams.UploadTarball();
const temporalName = `/${name}`;
process.nextTick(function() {
fs.exists(temporalName, function(exists) {
process.nextTick(function () {
fs.exists(temporalName, function (exists) {
if (exists) {
return uploadStream.emit('error', fSError(fileExist));
}
@@ -122,7 +122,7 @@ class MemoryHandler {
uploadStream.pipe(file);
uploadStream.done = function() {
uploadStream.done = function () {
const onEnd = function onEnd() {
uploadStream.emit('success');
};
@@ -130,7 +130,7 @@ class MemoryHandler {
uploadStream.on('end', onEnd);
};
uploadStream.abort = function() {
uploadStream.abort = function () {
uploadStream.emit('error', fSError('transmision aborted', 400));
file.end();
};
@@ -150,8 +150,8 @@ class MemoryHandler {
const readTarballStream = new _streams.ReadTarball();
process.nextTick(function() {
fs.exists(pathName, function(exists) {
process.nextTick(function () {
fs.exists(pathName, function (exists) {
if (!exists) {
readTarballStream.emit('error', noPackageFoundError());
} else {
@@ -164,7 +164,7 @@ class MemoryHandler {
readTarballStream.emit('error', error);
});
readTarballStream.abort = function() {
readTarballStream.abort = function () {
readStream.destroy(fSError('read has been aborted', 400));
};
}

View File

@@ -7,7 +7,7 @@
# see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
# https://github.com/verdaccio/verdaccio/tree/master/packages/config/src/conf
#
# path to a directory with all packages

View File

@@ -7,7 +7,7 @@
# see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
# https://github.com/verdaccio/verdaccio/tree/master/packages/config/src/conf
#
# path to a directory with all packages

View File

@@ -7,7 +7,7 @@
# see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
# https://github.com/verdaccio/verdaccio/tree/master/packages/config/src/conf
#
# path to a directory with all packages

View File

@@ -7,7 +7,7 @@
# see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
# https://github.com/verdaccio/verdaccio/tree/master/packages/config/src/conf
#
# path to a directory with all packages

View File

@@ -19,7 +19,7 @@ security:
expiresIn: 7d
## IMPORTANT
## This setup is required for relative path
## This setup is required for relative path
url_prefix: /verdaccio/
server:
behindProxy: true

View File

@@ -1,5 +1,14 @@
# Verdaccio 5
> Before run examples, build the local image by running `pnpm docker`.
> Before run examples, build the local image by running `pnpm docker`.
- [Docker + Nginx + Verdaccio](reverse_proxy/nginx/README.md)
## Using Plugins with Docker
List of different approaches
> Note these options could be improved, feel free to submit upgrades
- [Docker + Install plugins from a registry](plugins/docker-build-install-plugin/README.md)
- [Docker + Install local plugin](plugins/docker-local-plugin/README.md)

View File

@@ -0,0 +1,25 @@
# Docs based on https://github.com/xlts-dev/verdaccio-prometheus-middleware#installation
# Docker multi-stage build - https://docs.docker.com/develop/develop-images/multistage-build/
# Use an alpine node image to install the plugin
FROM node:lts-alpine as builder
# Install the metrics middleware plugin
# npm docs
# --global-style https://docs.npmjs.com/cli/v7/commands/npm-install#global-style
# --no-bin-links https://docs.npmjs.com/cli/v7/commands/npm-install#bin-links
# --omit=optional
RUN mkdir -p /verdaccio/plugins \
&& cd /verdaccio/plugins \
&& npm install --global-style --no-bin-links --omit=optional verdaccio-auth-memory@latest
# The final built image will be based on the standard Verdaccio docker image.
FROM verdaccio/verdaccio:5
# Copy the plugin files over from the 'builder' node image.
# The `$VERDACCIO_USER_UID` env variable is defined in the base `verdaccio/verdaccio` image.
# Refer to: https://github.com/verdaccio/verdaccio/blob/v5.2.0/Dockerfile#L32
ADD docker.yaml /verdaccio/conf/config.yaml
COPY --chown=$VERDACCIO_USER_UID:root --from=builder \
/verdaccio/plugins/node_modules/verdaccio-auth-memory \
/verdaccio/plugins/verdaccio-auth-memory

View File

@@ -0,0 +1,46 @@
# Installing a plugin with Docker build
On this small tutorial (based on [`verdaccio-prometheus-middleware`](https://github.com/xlts-dev/verdaccio-prometheus-middleware) example) you will be able to use a published package in any random registry (npmjs by default) and use it withing a docker image without mapping need it.
> Since verdaccio:5 uses `yarn@2` to run the application, this tutorial is a workaround but future prove since verdaccio 6 uses `pnpm` to build the docker image.
There are two main steps to highlight:
- `docker.yaml`: This is a copy of the original configuration file for docker and with small modifications to use the plugin [`verdaccio-auth-memory`](https://www.npmjs.com/package/verdaccio-auth-memory) and custom web title for demonstration.
- The `Dockerfile` take advance of the docker multi-stage build to install the plugin into the `verdaccio/plugins` folder withing the image, then we apply the right permissions `--chown=$VERDACCIO_USER_UID:root` so the plugin is recognized.
## Run it
Build this image.
```bash
docker build -t verdaccio/verdaccio:local .
```
and to run it
```bash
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:local
```
## Usage
```dockerfile
# Docker multi-stage build - https://docs.docker.com/develop/develop-images/multistage-build/
# Use an alpine node image to install the plugin
FROM node:lts-alpine as builder
RUN mkdir -p /verdaccio/plugins \
&& cd /verdaccio/plugins \
&& npm install --global-style --no-bin-links --omit=optional verdaccio-auth-memory@latest
FROM verdaccio/verdaccio:5
# copy your modified config.yaml into the image
ADD docker.yaml /verdaccio/conf/config.yaml
COPY --chown=$VERDACCIO_USER_UID:root --from=builder \
/verdaccio/plugins/node_modules/verdaccio-auth-memory \
/verdaccio/plugins/verdaccio-auth-memory
```

View File

@@ -0,0 +1,197 @@
#
# This is the default configuration file. It allows all users to do anything,
# please read carefully the documentation and best practices to
# improve security.
#
# Do not configure host and port under `listen` in this file
# as it will be ignored when using docker.
# see https://verdaccio.org/docs/en/docker#docker-and-custom-port-configuration
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/5.x/conf
#
# Read about the best practices
# https://verdaccio.org/docs/best
# path to a directory with all packages
storage: /verdaccio/storage/data
# path to a directory with plugins to include
plugins: /verdaccio/plugins
# https://verdaccio.org/docs/webui
web:
title: Verdaccio Publish Config Test
# comment out to disable gravatar support
# gravatar: false
# by default packages are ordercer ascendant (asc|desc)
# sort_packages: asc
# convert your UI to the dark side
# darkMode: true
# html_cache: true
# by default all features are displayed
# login: true
# showInfo: true
# showSettings: true
# In combination with darkMode you can force specific theme
# showThemeSwitch: true
# showFooter: true
# showSearch: true
# showRaw: true
# showDownloadTarball: true
# HTML tags injected after manifest <scripts/>
# scriptsBodyAfter:
# - '<script type="text/javascript" src="https://my.company.com/customJS.min.js"></script>'
# HTML tags injected before ends </head>
# metaScripts:
# - '<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>'
# - '<script type="text/javascript" src="https://browser.sentry-cdn.com/5.15.5/bundle.min.js"></script>'
# - '<meta name="robots" content="noindex" />'
# HTML tags injected first child at <body/>
# bodyBefore:
# - '<div id="myId">html before webpack scripts</div>'
# Public path for template manifest scripts (only manifest)
# publicPath: http://somedomain.org/
# https://verdaccio.org/docs/configuration#authentication
auth:
auth-memory:
users:
foo:
name: foo
password: s3cret
bar:
name: bar
password: s3cret
# https://verdaccio.org/docs/configuration#uplinks
# a list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
# Learn how to protect your packages
# https://verdaccio.org/docs/protect-your-dependencies/
# https://verdaccio.org/docs/configuration#packages
packages:
'@*/*':
# scoped packages
access: $all
publish: $authenticated
unpublish: $authenticated
proxy: npmjs
'**':
# allow all users (including non-authenticated users) to read and
# publish all packages
#
# you can specify usernames/groupnames (depending on your auth plugin)
# and three keywords: "$all", "$anonymous", "$authenticated"
access: $all
# allow all known users to publish/publish packages
# (anyone can register by default, remember?)
publish: $authenticated
unpublish: $authenticated
# if package is not available locally, proxy requests to 'npmjs' registry
proxy: npmjs
# To improve your security configuration and avoid dependency confusion
# consider removing the proxy property for private packages
# https://verdaccio.org/docs/best#remove-proxy-to-increase-security-at-private-packages
# https://verdaccio.org/docs/configuration#server
# You can specify HTTP/1.1 server keep alive timeout in seconds for incoming connections.
# A value of 0 makes the http server behave similarly to Node.js versions prior to 8.0.0, which did not have a keep-alive timeout.
# WORKAROUND: Through given configuration you can workaround following issue https://github.com/verdaccio/verdaccio/issues/301. Set to 0 in case 60 is not enough.
server:
keepAliveTimeout: 60
# https://verdaccio.org/docs/configuration#offline-publish
# publish:
# allow_offline: false
# https://verdaccio.org/docs/configuration#url-prefix
# url_prefix: /verdaccio/
# VERDACCIO_PUBLIC_URL='https://somedomain.org';
# url_prefix: '/my_prefix'
# // url -> https://somedomain.org/my_prefix/
# VERDACCIO_PUBLIC_URL='https://somedomain.org';
# url_prefix: '/'
# // url -> https://somedomain.org/
# VERDACCIO_PUBLIC_URL='https://somedomain.org/first_prefix';
# url_prefix: '/second_prefix'
# // url -> https://somedomain.org/second_prefix/'
# https://verdaccio.org/docs/configuration#security
# security:
# api:
# legacy: true
# jwt:
# sign:
# expiresIn: 29d
# verify:
# someProp: [value]
# web:
# sign:
# expiresIn: 1h # 1 hour by default
# verify:
# someProp: [value]
# https://verdaccio.org/docs/configuration#user-rate-limit
# userRateLimit:
# windowMs: 50000
# max: 1000
# https://verdaccio.org/docs/configuration#max-body-size
# max_body_size: 10mb
# https://verdaccio.org/docs/configuration#listen-port
# listen:
# - localhost:4873 # default value
# - http://localhost:4873 # same thing
# - 0.0.0.0:4873 # listen on all addresses (INADDR_ANY)
# - https://example.org:4873 # if you want to use https
# - "[::1]:4873" # ipv6
# - unix:/tmp/verdaccio.sock # unix socket
# The HTTPS configuration is useful if you do not consider use a HTTP Proxy
# https://verdaccio.org/docs/configuration#https
# https:
# key: ./path/verdaccio-key.pem
# cert: ./path/verdaccio-cert.pem
# ca: ./path/verdaccio-csr.pem
# https://verdaccio.org/docs/configuration#proxy
# http_proxy: http://something.local/
# https_proxy: https://something.local/
# https://verdaccio.org/docs/configuration#notifications
# notify:
# method: POST
# headers: [{ "Content-Type": "application/json" }]
# endpoint: https://usagge.hipchat.com/v2/room/3729485/notification?auth_token=mySecretToken
# content: '{"color":"green","message":"New package published: * {{ name }}*","notify":true,"message_format":"text"}'
middlewares:
audit:
enabled: true
# https://verdaccio.org/docs/logger
# log settings
logs: { type: stdout, format: pretty, level: http }
#experiments:
# # support for npm token command
# token: false
# # enable tarball URL redirect for hosting tarball with a different server, the tarball_url_redirect can be a template string
# tarball_url_redirect: 'https://mycdn.com/verdaccio/${packageName}/${filename}'
# # the tarball_url_redirect can be a function, takes packageName and filename and returns the url, when working with a js configuration file
# tarball_url_redirect(packageName, filename) {
# const signedUrl = // generate a signed url
# return signedUrl;
# }
# translate your registry, api i18n not available yet
# i18n:
# list of the available translations https://github.com/verdaccio/verdaccio/blob/master/packages/plugins/ui-theme/src/i18n/ABOUT_TRANSLATIONS.md
# web: en-US

View File

@@ -0,0 +1,26 @@
# Docs based on https://github.com/xlts-dev/verdaccio-prometheus-middleware#installation
# Docker multi-stage build - https://docs.docker.com/develop/develop-images/multistage-build/
# Use an alpine node image to install the plugin
FROM node:lts-alpine as builder
RUN mkdir -p /verdaccio/plugins
# Copy the local plugin into the docker image
ADD plugins/verdaccio-docker-memory /verdaccio/plugins/verdaccio-docker-memory
# Install the production dependencies (be careful install devDependencies here)
RUN cd /verdaccio/plugins/verdaccio-docker-memory \
&& npm install --production
# The final built image will be based on the standard Verdaccio docker image.
FROM verdaccio/verdaccio:5
# Copy the plugin files over from the 'builder' node image.
# The `$VERDACCIO_USER_UID` env variable is defined in the base `verdaccio/verdaccio` image.
# Refer to: https://github.com/verdaccio/verdaccio/blob/v5.2.0/Dockerfile#L32
# The local verdaccio-docker-memory is setup as storage
ADD docker.yaml /verdaccio/conf/config.yaml
# Copy the plugin into the /verdaccio/plugins
COPY --chown=$VERDACCIO_USER_UID:root --from=builder \
/verdaccio/plugins/verdaccio-docker-memory \
/verdaccio/plugins/verdaccio-docker-memory

View File

@@ -0,0 +1,42 @@
# Installing a local plugin with Docker build
On this small tutorial (based on [`verdaccio-prometheus-middleware`](https://github.com/xlts-dev/verdaccio-prometheus-middleware) example) you will be able to use a published package in any random registry (npmjs by default) and use it withing a docker image without mapping need it.
> Since verdaccio:5 uses `yarn@2` to run the application, this tutorial is a workaround but future prove since verdaccio 6 uses `pnpm` to build the docker image.
There are three main steps to highlight:
- Note the custom plugin at `plugins/verdaccio-docker-memory` under the name `verdaccio-docker-memory`.
- Install the _production_ dependencies for the plugin `verdaccio-docker-memory`
- `docker.yaml`: This is a copy of the original configuration file for docker and with small modifications to use the local plugin `verdaccio-docker-memory`.
- The `Dockerfile` take advance of the docker multi-stage build to copy the local plugin into the `verdaccio/plugins` folder withing the image, then we apply the right permissions `--chown=$VERDACCIO_USER_UID:root` so the plugin is recognized.
## Run it
Build this image.
```bash
docker build -t verdaccio/verdaccio:local .
```
and to run it
```bash
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:local
```
## Usage
```dockerfile
FROM node:lts-alpine as builder
RUN mkdir -p /verdaccio/plugins
ADD plugins/verdaccio-docker-memory /verdaccio/plugins/verdaccio-docker-memory
RUN cd /verdaccio/plugins/verdaccio-docker-memory \
&& ls -ls \
&& npm install --production
FROM verdaccio/verdaccio:5
ADD docker.yaml /verdaccio/conf/config.yaml
COPY --chown=$VERDACCIO_USER_UID:root --from=builder \
/verdaccio/plugins/verdaccio-docker-memory \
/verdaccio/plugins/verdaccio-docker-memory
```

View File

@@ -0,0 +1,199 @@
#
# This is the default configuration file. It allows all users to do anything,
# please read carefully the documentation and best practices to
# improve security.
#
# Do not configure host and port under `listen` in this file
# as it will be ignored when using docker.
# see https://verdaccio.org/docs/en/docker#docker-and-custom-port-configuration
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/5.x/conf
#
# Read about the best practices
# https://verdaccio.org/docs/best
# path to a directory with all packages
storage: /verdaccio/storage/data
store:
# dummy copy of https://www.npmjs.com/package/verdaccio-memory
docker-memory:
limit: 1000
# path to a directory with plugins to include
plugins: /verdaccio/plugins
# https://verdaccio.org/docs/webui
web:
title: Verdaccio This is a Test
# comment out to disable gravatar support
# gravatar: false
# by default packages are ordercer ascendant (asc|desc)
# sort_packages: asc
# convert your UI to the dark side
# darkMode: true
# html_cache: true
# by default all features are displayed
# login: true
# showInfo: true
# showSettings: true
# In combination with darkMode you can force specific theme
# showThemeSwitch: true
# showFooter: true
# showSearch: true
# showRaw: true
# showDownloadTarball: true
# HTML tags injected after manifest <scripts/>
# scriptsBodyAfter:
# - '<script type="text/javascript" src="https://my.company.com/customJS.min.js"></script>'
# HTML tags injected before ends </head>
# metaScripts:
# - '<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>'
# - '<script type="text/javascript" src="https://browser.sentry-cdn.com/5.15.5/bundle.min.js"></script>'
# - '<meta name="robots" content="noindex" />'
# HTML tags injected first child at <body/>
# bodyBefore:
# - '<div id="myId">html before webpack scripts</div>'
# Public path for template manifest scripts (only manifest)
# publicPath: http://somedomain.org/
auth:
htpasswd:
file: ./htpasswd
# Maximum amount of users allowed to register, defaults to "+inf".
# You can set this to -1 to disable registration.
# max_users: 1000
# https://verdaccio.org/docs/configuration#uplinks
# a list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
# Learn how to protect your packages
# https://verdaccio.org/docs/protect-your-dependencies/
# https://verdaccio.org/docs/configuration#packages
packages:
'@*/*':
# scoped packages
access: $all
publish: $authenticated
unpublish: $authenticated
proxy: npmjs
'**':
# allow all users (including non-authenticated users) to read and
# publish all packages
#
# you can specify usernames/groupnames (depending on your auth plugin)
# and three keywords: "$all", "$anonymous", "$authenticated"
access: $all
# allow all known users to publish/publish packages
# (anyone can register by default, remember?)
publish: $authenticated
unpublish: $authenticated
# if package is not available locally, proxy requests to 'npmjs' registry
proxy: npmjs
# To improve your security configuration and avoid dependency confusion
# consider removing the proxy property for private packages
# https://verdaccio.org/docs/best#remove-proxy-to-increase-security-at-private-packages
# https://verdaccio.org/docs/configuration#server
# You can specify HTTP/1.1 server keep alive timeout in seconds for incoming connections.
# A value of 0 makes the http server behave similarly to Node.js versions prior to 8.0.0, which did not have a keep-alive timeout.
# WORKAROUND: Through given configuration you can workaround following issue https://github.com/verdaccio/verdaccio/issues/301. Set to 0 in case 60 is not enough.
server:
keepAliveTimeout: 60
# https://verdaccio.org/docs/configuration#offline-publish
# publish:
# allow_offline: false
# https://verdaccio.org/docs/configuration#url-prefix
# url_prefix: /verdaccio/
# VERDACCIO_PUBLIC_URL='https://somedomain.org';
# url_prefix: '/my_prefix'
# // url -> https://somedomain.org/my_prefix/
# VERDACCIO_PUBLIC_URL='https://somedomain.org';
# url_prefix: '/'
# // url -> https://somedomain.org/
# VERDACCIO_PUBLIC_URL='https://somedomain.org/first_prefix';
# url_prefix: '/second_prefix'
# // url -> https://somedomain.org/second_prefix/'
# https://verdaccio.org/docs/configuration#security
# security:
# api:
# legacy: true
# jwt:
# sign:
# expiresIn: 29d
# verify:
# someProp: [value]
# web:
# sign:
# expiresIn: 1h # 1 hour by default
# verify:
# someProp: [value]
# https://verdaccio.org/docs/configuration#user-rate-limit
# userRateLimit:
# windowMs: 50000
# max: 1000
# https://verdaccio.org/docs/configuration#max-body-size
# max_body_size: 10mb
# https://verdaccio.org/docs/configuration#listen-port
# listen:
# - localhost:4873 # default value
# - http://localhost:4873 # same thing
# - 0.0.0.0:4873 # listen on all addresses (INADDR_ANY)
# - https://example.org:4873 # if you want to use https
# - "[::1]:4873" # ipv6
# - unix:/tmp/verdaccio.sock # unix socket
# The HTTPS configuration is useful if you do not consider use a HTTP Proxy
# https://verdaccio.org/docs/configuration#https
# https:
# key: ./path/verdaccio-key.pem
# cert: ./path/verdaccio-cert.pem
# ca: ./path/verdaccio-csr.pem
# https://verdaccio.org/docs/configuration#proxy
# http_proxy: http://something.local/
# https_proxy: https://something.local/
# https://verdaccio.org/docs/configuration#notifications
# notify:
# method: POST
# headers: [{ "Content-Type": "application/json" }]
# endpoint: https://usagge.hipchat.com/v2/room/3729485/notification?auth_token=mySecretToken
# content: '{"color":"green","message":"New package published: * {{ name }}*","notify":true,"message_format":"text"}'
middlewares:
audit:
enabled: true
# https://verdaccio.org/docs/logger
# log settings
logs: { type: stdout, format: pretty, level: http }
#experiments:
# # support for npm token command
# token: false
# # enable tarball URL redirect for hosting tarball with a different server, the tarball_url_redirect can be a template string
# tarball_url_redirect: 'https://mycdn.com/verdaccio/${packageName}/${filename}'
# # the tarball_url_redirect can be a function, takes packageName and filename and returns the url, when working with a js configuration file
# tarball_url_redirect(packageName, filename) {
# const signedUrl = // generate a signed url
# return signedUrl;
# }
# translate your registry, api i18n not available yet
# i18n:
# list of the available translations https://github.com/verdaccio/verdaccio/blob/master/packages/plugins/ui-theme/src/i18n/ABOUT_TRANSLATIONS.md
# web: en-US

View File

@@ -0,0 +1,8 @@
{
"rules": {
"max-len": 0,
"@typescript-eslint/prefer-optional-chain": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/explicit-member-accessibility": 0
}
}

View File

@@ -0,0 +1,17 @@
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports.LocalMemory = undefined;
let _localMemory = require('./local-memory');
let _localMemory2 = _interopRequireDefault(_localMemory);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
exports.LocalMemory = _localMemory2.default;
exports.default = _localMemory2.default;

View File

@@ -0,0 +1,96 @@
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
let _memoryHandler = require('./memory-handler');
let _memoryHandler2 = _interopRequireDefault(_memoryHandler);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
const DEFAULT_LIMIT = 1000;
class LocalMemory {
constructor(config, options) {
this.config = config;
this.limit = config.limit || DEFAULT_LIMIT;
this.logger = options.logger;
this.data = this._createEmtpyDatabase();
}
getSecret() {
return Promise.resolve(this.data.secret);
}
setSecret(secret) {
return new Promise((resolve, reject) => {
this.data.secret = secret;
resolve(null);
});
}
add(name, cb) {
const list = this.data.list;
if (list.length < this.limit) {
if (list.indexOf(name) === -1) {
list.push(name);
}
cb(null);
} else {
this.logger.info(
{ limit: this.limit },
'Storage memory has reached limit of @{limit} packages'
);
cb(new Error('Storage memory has reached limit of limit packages'));
}
}
search(onPackage, onEnd, validateName) {
// TODO: pending to implement
onEnd();
}
remove(name, cb) {
const list = this.data.list;
const item = list.indexOf(name);
if (item !== -1) {
list.splice(item, 1);
}
cb(null);
}
get(cb) {
cb(null, this.data.list);
}
sync() {
// nothing to do
}
getPackageStorage(packageInfo) {
// eslint-disable-next-line new-cap
return new _memoryHandler2.default(packageInfo, this.data.files, this.logger);
}
_createEmtpyDatabase() {
const list = [];
const files = {};
const emptyDatabase = {
list,
files,
secret: '',
};
return emptyDatabase;
}
}
exports.default = LocalMemory;

View File

@@ -0,0 +1,182 @@
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true,
});
exports.fileExist = exports.noSuchFile = undefined;
let _httpErrors = require('http-errors');
let _httpErrors2 = _interopRequireDefault(_httpErrors);
let _memoryFs = require('memory-fs');
let _memoryFs2 = _interopRequireDefault(_memoryFs);
let _streams = require('@verdaccio/streams');
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
// $FlowFixMe
const noSuchFile = (exports.noSuchFile = 'ENOENT');
const fileExist = (exports.fileExist = 'EEXISTS');
const fSError = function fSError(message, code = 404) {
const err = (0, _httpErrors2.default)(code, message);
// $FlowFixMe
err.code = message;
return err;
};
const noPackageFoundError = function noPackageFoundError(message = 'no such package') {
const err = (0, _httpErrors2.default)(404, message);
// $FlowFixMe
err.code = noSuchFile;
return err;
};
// eslint-disable-next-line new-cap
const fs = new _memoryFs2.default();
class MemoryHandler {
constructor(packageName, data, logger) {
// this is not need it
this.data = data;
this.name = packageName;
this.logger = logger;
}
updatePackage(pkgFileName, updateHandler, onWrite, transformPackage, onEnd) {
let json = this._getStorage(pkgFileName);
try {
json = JSON.parse(json);
} catch (err) {
return onEnd(err);
}
updateHandler(json, (err) => {
if (err) {
return onEnd(err);
}
try {
onWrite(pkgFileName, transformPackage(json), onEnd);
} catch (err) {
return onEnd(fSError('error on parse', 500));
}
});
}
deletePackage(pkgName, callback) {
delete this.data[pkgName];
callback(null);
}
removePackage(callback) {
callback(null);
}
createPackage(name, value, cb) {
this.savePackage(name, value, cb);
}
savePackage(name, value, cb) {
try {
const json = JSON.stringify(value, null, '\t');
this.data[name] = json;
} catch (err) {
cb(fSError(err.message, 500));
}
cb(null);
}
readPackage(name, cb) {
const json = this._getStorage(name);
const isJson = typeof json === 'undefined';
try {
cb(isJson ? noPackageFoundError() : null, JSON.parse(json));
} catch (err) {
cb(noPackageFoundError());
}
}
writeTarball(name) {
const uploadStream = new _streams.UploadTarball();
const temporalName = `/${name}`;
process.nextTick(function () {
fs.exists(temporalName, function (exists) {
if (exists) {
return uploadStream.emit('error', fSError(fileExist));
}
try {
const file = fs.createWriteStream(temporalName);
uploadStream.pipe(file);
uploadStream.done = function () {
const onEnd = function onEnd() {
uploadStream.emit('success');
};
uploadStream.on('end', onEnd);
};
uploadStream.abort = function () {
uploadStream.emit('error', fSError('transmision aborted', 400));
file.end();
};
uploadStream.emit('open');
} catch (err) {
uploadStream.emit('error', err);
}
});
});
return uploadStream;
}
readTarball(name) {
const pathName = `/${name}`;
const readTarballStream = new _streams.ReadTarball();
process.nextTick(function () {
fs.exists(pathName, function (exists) {
if (!exists) {
readTarballStream.emit('error', noPackageFoundError());
} else {
const readStream = fs.createReadStream(pathName);
readTarballStream.emit('content-length', fs.data[name].length);
readTarballStream.emit('open');
readStream.pipe(readTarballStream);
readStream.on('error', (error) => {
readTarballStream.emit('error', error);
});
readTarballStream.abort = function () {
readStream.destroy(fSError('read has been aborted', 400));
};
}
});
});
return readTarballStream;
}
_getStorage(name = '') {
return this.data[name];
}
}
exports.default = MemoryHandler;

View File

@@ -0,0 +1,19 @@
{
"name": "verdaccio-docker-memory",
"version": "1.0.3",
"description": "storage implementation in memory",
"main": "lib/index.js",
"dependencies": {
"@verdaccio/streams": "1.0.0",
"http-errors": "1.6.3",
"memory-fs": "0.4.1"
},
"keywords": [
"verdaccio",
"plugin",
"storage"
],
"author": "Juan Picado <juanpicado19@gmail.com>",
"private": true,
"license": "MIT"
}

View File

@@ -14,7 +14,7 @@ services:
- verdaccio
- verdaccio-root
verdaccio:
image: verdaccio/verdaccio:local
image: verdaccio/verdaccio:5
container_name: 'verdaccio_relative_path_v5'
networks:
- node-network
@@ -27,7 +27,7 @@ services:
- './storage:/verdaccio/storage'
- './conf/v5:/verdaccio/conf'
verdaccio-root:
image: verdaccio/verdaccio:local
image: verdaccio/verdaccio:5
container_name: 'verdaccio_relative_path_v5_root'
networks:
- node-network

View File

@@ -17,7 +17,7 @@ services:
- verdaccio
- verdaccio-root
verdaccio:
image: verdaccio/verdaccio:local
image: verdaccio/verdaccio:5
container_name: 'verdaccio_relative_path_v5'
networks:
- node-network
@@ -29,7 +29,7 @@ services:
- './storage:/verdaccio/storage'
- './conf/v5:/verdaccio/conf'
verdaccio-root:
image: verdaccio/verdaccio:local
image: verdaccio/verdaccio:5
container_name: 'verdaccio_relative_path_v5_root'
networks:
- node-network

View File

@@ -2,7 +2,7 @@ version: '2'
services:
verdaccio:
image: verdaccio/verdaccio:local
image: verdaccio/verdaccio:5
container_name: verdaccio_root_path
ports:
- '4873:4873'

View File

@@ -0,0 +1,22 @@
# Verdaccio 6 Examples
> We recommend to have installed [docker-compose >= 1.29.0](https://github.com/docker/compose/releases/tag/1.29.2)
## Mapping Volumes
- [Docker + Local Storage Volume + Verdaccio](docker-local-storage-volume/README.md)
## Proxy
- [Docker + Nginx + Verdaccio](proxy/reverse_proxy/nginx/README.md)
- [Docker + Apache + Verdaccio](proxy/apache-verdaccio/README.md)
- [Docker + HTTPS Portal + Verdaccio](proxy/https-portal-example/README.md)
> Looking forward more examples with proxies.
## Plugins
Using plugins without `docker-compose` mapping volumes, all withing the `Dockerfile`.
- [Docker + Local Build Auth Plugin (local development)](plugins/docker-build-install-plugin/README.md)
- [Docker + Auth Plugin (from a registry)](plugins/docker-local-plugin/README.md)

View File

@@ -0,0 +1,31 @@
# Verdaccio and simple local storage
This example shows a simple configuration for `verdaccio` plus the default local storage with the minimum configuration required using `docker-compose`.
Contains
- conf: Configuration file and default user httpasswd
- storage: A published default package with 2 versions.
```bash
$> docker-compose up
```
## Login
If you want to login into the Verdaccio instance created via these Docker Examples, please try:
Username: jpicado
Password: jpicado
## Running in Dokku
If you use Dokku, an open-source alternative for Heroku, you can run this example using the following steps:
1. Create a new application `dokku apps:create verdaccio`
2. Pull the verdaccio image `docker pull verdaccio/verdaccio:`
3. Tag the docker image for the app: `docker tag verdaccio/verdaccio:nightly-master dokku/verdaccio:v1`
4. Create the directories for persistent storage `mkdir -p /var/lib/dokku/data/storage/verdaccio/storage`, `mkdir -p /var/lib/dokku/data/storage/verdaccio/storage`
5. Mount the volumes: `dokku storage:mount verdaccio /var/lib/dokku/data/storage/verdaccio/storage:/verdaccio/storage` and `dokku storage:mount verdaccio /var/lib/dokku/data/storage/verdaccio/conf:/verdaccio/conf`
6. Deploy the docker image `dokku tags:deploy verdaccio v1`
7. Enjoy the application

Some files were not shown because too many files have changed in this diff Show More