Compare commits

..

538 Commits

Author SHA1 Message Date
renovate[bot]
90d301de37 chore(deps): update node.js to v22 (#5093)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-15 16:40:28 +01:00
renovate[bot]
d14679061c fix(deps): update core verdaccio dependencies (7.x) (#5013)
* fix(deps): update core verdaccio dependencies

* update deps

* fix test

* format

* Update initializeServer.ts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2024-12-20 22:30:27 +01:00
Juan Picado
9922168139 Update release-snapshot.yml 2024-10-13 17:44:16 +02:00
Juan Picado
25af8d615c Update README.md 2024-10-13 17:43:36 +02:00
renovate[bot]
a10ac9727c fix(deps): update core verdaccio dependencies (#4911)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-13 17:31:51 +02:00
renovate[bot]
54f2f888ce fix(deps): update dependency express to v4.21.1 (#4901) 2024-10-12 13:25:59 +02:00
renovate[bot]
23a3eab436 chore(deps): update dependency nock to v13.5.5 (#4883)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 10:13:12 +02:00
renovate[bot]
286b3ebce6 chore(deps): update dependency rimraf to v5.0.10 (#4884) 2024-10-06 09:26:17 +02:00
renovate[bot]
0e46368930 fix(deps): update dependency async to v3.2.6 (#4885) 2024-10-06 09:02:57 +02:00
renovate[bot]
d29b5982a3 chore(deps): update all linting dependencies (#4882)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-03 12:24:28 +02:00
renovate[bot]
312c6d08f9 fix(deps): update core verdaccio dependencies (#4864)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-27 07:26:04 +02:00
Juan Picado
a7f71fe0e2 chore: update core dependencies 2024-09-26 20:03:01 +02:00
renovate[bot]
a388cd3fc7 chore(deps): update yarn to v4.5.0 (#4856)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-22 19:27:19 +02:00
renovate[bot]
cb12aa66b7 chore(deps): update node.js to v20.17.0 (#4855)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-22 18:50:19 +02:00
Juan Picado
0d5289bf33 chore: reuse workflows 7.x (#4853) 2024-09-22 16:45:38 +02:00
Juan Picado
ffeea463c8 chore: update ci 2024-09-14 20:54:08 +02:00
Juan Picado
063b5ee934 migrate 6.x to 7.x 2024-09-12 22:53:58 +02:00
Juan Picado
7bc61200ac migrate 6.x to 7.x 2024-09-12 22:46:49 +02:00
renovate[bot]
77bc79a88f fix(deps): update dependency express to v4.21.0 (#4816) 2024-09-12 15:37:15 +02:00
renovate[bot]
1c77869f33 chore(deps): update node.js to v20.16.0 (#4772) 2024-08-03 17:31:56 +02:00
renovate[bot]
87b97578a2 chore(deps): update all test dependencies (#4769) 2024-08-03 17:15:18 +02:00
renovate[bot]
09a2269d20 chore(deps): update yarn to v4.4.0 (#4770) 2024-08-03 17:15:09 +02:00
Juan Picado
eca8ff5831 chore(release): 6.0.0-beta.3 2024-08-02 09:57:28 +02:00
renovate[bot]
cb0cc9edd8 fix(deps): update core verdaccio dependencies (#4753) 2024-08-02 09:56:17 +02:00
renovate[bot]
ad96f4ec80 chore(deps): update typescript dependencies (#4743) 2024-07-29 06:31:19 +02:00
renovate[bot]
c42d897ddd chore(deps): update babel monorepo (#4739)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-28 16:06:36 +02:00
renovate[bot]
6211b65c08 chore(deps): update all linting dependencies (#4740)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-28 14:47:42 +02:00
renovate[bot]
f7228a77b1 chore(deps): update typescript dependencies (#4732)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-21 21:00:07 +02:00
renovate[bot]
a958ed8f64 chore(deps): update node.js to v20.15.1 (#4731)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-21 20:53:10 +02:00
renovate[bot]
640984d6fd fix(deps): update dependency semver to v7.6.3 (#4730)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-21 20:47:43 +02:00
renovate[bot]
2b4b6e5d9b chore(deps): update yarn to v4.3.1 (#4729)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-21 18:50:40 +02:00
renovate[bot]
a11c3cf924 fix(deps): update core verdaccio dependencies (6.x) (#4728)
* fix(deps): update core verdaccio dependencies

* Update publish.spec.ts.snap

* update deps

* Update ci.yml

* Update ci.yml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2024-07-21 18:43:16 +02:00
Juan Picado
33272ee8b9 fix: minium version node.js v18 2024-05-27 00:14:07 +02:00
Juan Picado
6edd6d29a7 chore: clean up old code (#4645)
* clean up duplicated methods

* format

* Update initializeServer.ts
2024-05-13 21:18:06 +02:00
Juan Picado
7b1414733b feat: migrateToSecureLegacySignature 6.x (#4643)
* migrate to forceMigrateToSecureLegacySignature

update dependencies

* Update ci.yml

* Update ci.yml

* format

* improve ci
2024-05-13 19:52:34 +02:00
renovate[bot]
306da4af3f fix(deps): update dependency semver to v7.6.0 (#4597)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-26 04:29:49 +02:00
renovate[bot]
946a1b46be fix(deps): update dependency express to v4.19.2 (#4592)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-25 10:16:09 +02:00
Juan Picado
1a1f878561 chore: update npmignore file 2024-04-25 10:06:54 +02:00
renovate[bot]
dde4703745 fix(deps): update core verdaccio dependencies (#4559) 2024-03-23 21:57:20 +01:00
Juan Picado
9cb580638f fix: plugins config disable by default 2024-03-17 16:42:54 +01:00
Juan Picado
ef7feb4372 chore(release): 6.0.0-beta.2 2024-03-17 11:36:20 +01:00
Juan Picado
913ce37b57 fix: newline after version command
fix (#4543)

Co-Authored-By: Aseer KT <39845171+aseerkt@users.noreply.github.com>
2024-03-17 11:34:51 +01:00
Juan Picado
ed3ce4dc93 feat: enable stream search from user interface (#4544)
* feat: search refactor

* add remote text support

* format

* remove indexser

* remove dep

* format
2024-03-17 11:32:01 +01:00
Juan Picado
88f2e1de2d chore: update ci 2024-03-16 16:33:59 +01:00
renovate[bot]
c12e1a0b6a fix(deps): update core verdaccio dependencies (6.x) (#4540)
* fix(deps): update core verdaccio dependencies

* fix versions

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2024-03-16 16:23:17 +01:00
renovate[bot]
f46f9e1b70 fix(deps): update core verdaccio dependencies (#4531)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-03 20:58:16 +01:00
renovate[bot]
09af9c52fa chore(deps): update yarn to v4.1.0 (#4510) 2024-02-17 18:52:28 +01:00
renovate[bot]
eda0f513d0 fix(deps): update core verdaccio dependencies (#4500)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 08:16:24 +01:00
Juan Picado
a183446000 fix: profile v1 endpoint and tests 2024-02-03 12:07:15 +01:00
renovate[bot]
5e896b5fd0 chore(deps): update typescript dependencies (#4480)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-27 12:43:08 +01:00
renovate[bot]
57ffcd4677 chore(deps): update typescript dependencies (#4464)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 19:05:10 +01:00
renovate[bot]
8323ab10c5 chore(deps): update all linting dependencies (6.x) (#4445)
* chore(deps): update all linting dependencies

* Update tsconfig.json

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2024-01-20 13:13:03 +01:00
Juan Picado
7d9aba2e0d Update docker-publish.yml 2024-01-20 12:43:50 +01:00
renovate[bot]
c341431784 chore(deps): update all test dependencies (#4446)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-20 11:05:46 +01:00
renovate[bot]
4eaf6fb252 chore(deps): update node.js to v20.11.0 (#4447)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-20 11:05:38 +01:00
renovate[bot]
5a037785a1 fix(deps): update core verdaccio dependencies (#4436)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-15 07:13:43 +01:00
renovate[bot]
0eebf9cc7e chore(deps): update babel monorepo to v7.23.8 (#4408) 2024-01-13 17:11:29 +01:00
renovate[bot]
7df6568427 chore(deps): update dependency @types/node to v20.10.7 (#4394)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-08 07:58:40 +01:00
Juan Picado
ea24b6863a Update README.md 2024-01-07 11:36:17 +01:00
Juan Picado
a098eaf817 chore(release): 6.0.0-beta.1 2024-01-07 11:30:09 +01:00
Juan Picado
7e7b57869e fix: release script 2024-01-07 11:29:56 +01:00
Juan Picado
2c6f59a5c8 chore(release): 6.0.0-beta.0 2024-01-07 11:25:40 +01:00
renovate[bot]
4ee987809b fix(deps): update core verdaccio dependencies (#4390)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-07 11:24:53 +01:00
renovate[bot]
2c1d7c1fd3 chore(deps): update typescript-eslint monorepo to v6.18.0 (#4386) 2024-01-06 17:44:54 +01:00
renovate[bot]
fed496b9a6 chore(deps): update dependency eslint-plugin-jest to v27.6.1 (#4368)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-02 09:17:42 +01:00
renovate[bot]
5a467af587 chore(deps): update typescript-eslint monorepo to v6.17.0 (#4369)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-02 09:17:32 +01:00
Juan Picado
428a256626 feat: refactor auth class (#4364)
* feat: refactor auth class

* chore: fix lint issues

* chore: fix lint issues

* Update user.ts

* chore: remove cookies dep
2024-01-01 20:23:23 +01:00
renovate[bot]
f0c1a3f7fd fix(deps): update core verdaccio dependencies (#4358)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-31 23:53:53 +01:00
renovate[bot]
f1597256fb chore(deps): update dependency @types/node to v20.10.6 (#4348)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-30 11:48:31 +01:00
renovate[bot]
7352c682e1 chore(deps): update babel monorepo to v7.23.7 (#4345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-30 09:39:58 +01:00
renovate[bot]
786c20081f fix(deps): update dependency cookies to v0.9.0 (#4342) 2023-12-29 21:44:47 +01:00
renovate[bot]
2a8d6c67bc chore(deps): update typescript-eslint monorepo to v6.16.0 (#4334) 2023-12-28 14:16:46 +01:00
renovate[bot]
b5e3271a91 chore(deps): update dependency eslint-plugin-prettier to v5.1.2 (#4331)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-28 11:41:42 +01:00
renovate[bot]
fc2061781b chore(deps): update dependency eslint-plugin-prettier to v5.1.1 (#4316) 2023-12-21 23:12:36 +01:00
renovate[bot]
c2116e991e chore(deps): update dependency eslint-plugin-prettier to v5.1.0 (#4313)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-20 21:41:12 +01:00
renovate[bot]
e43dc6ad22 chore(deps): update typescript-eslint monorepo to v6.15.0 (#4304)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-18 21:37:26 +01:00
renovate[bot]
4d6cd7318f chore(deps): update dependency @types/node to v20.10.5 (#4297)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-18 08:58:22 +01:00
renovate[bot]
0990a575dc chore(deps): update dependency eslint to v8.56.0 (#4293) 2023-12-16 09:25:31 +01:00
renovate[bot]
c987714265 chore(deps): update dependency eslint-plugin-import to v2.29.1 (#4288)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-15 19:21:25 +01:00
renovate[bot]
579139de8a chore(deps): update babel monorepo to v7.23.6 (#4264)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-12 08:21:41 +01:00
renovate[bot]
567a987df5 chore(deps): update typescript-eslint monorepo to v6.14.0 (#4265) 2023-12-12 06:13:48 +01:00
renovate[bot]
d1f146058a chore(deps): update dependency prettier to v3.1.1 (#4259)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-10 12:32:53 +01:00
renovate[bot]
e1235dfc69 chore(deps): update dependency typescript to v5.3.3 (6.x) (#4216)
* chore(deps): update dependency typescript to v5.3.3

* fix types

* clean up

* Update bootstrap.ts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2023-12-10 11:56:23 +01:00
renovate[bot]
d9ab21343e chore(deps): update dependency ts-node to v10.9.2 (#4253)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-09 08:34:20 +01:00
renovate[bot]
681d8edda8 chore(deps): update dependency @types/node to v20.10.4 (#4252)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-08 22:26:08 +01:00
renovate[bot]
5be0c02340 chore(deps): update dependency @types/jest to v29.5.11 (#4251)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-08 22:24:25 +01:00
renovate[bot]
d6b670e63c chore(deps): update typescript-eslint monorepo to v6.13.2 (#4227)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 22:05:40 +01:00
renovate[bot]
4f151ddf8e chore(deps): update dependency @types/node to v20.10.3 (#4221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 07:44:21 +01:00
renovate[bot]
c679565e3b chore(deps): update actions/setup-node digest to 1a4442c (#4215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-02 22:48:28 +01:00
renovate[bot]
71cb37f88a chore(deps): update actions/checkout digest to f43a0e5 (#4213)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-02 22:19:29 +01:00
renovate[bot]
9fd2085e4a chore(deps): update dependency @types/serve-static to v1.15.5 (#4214)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-02 22:19:18 +01:00
renovate[bot]
e0756fef5d chore(deps): update actions/checkout action to v3.6.0 (#4199)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-02 20:17:06 +01:00
renovate[bot]
b41c788e68 chore(deps): update node.js to v20.10.0 (#4186)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-02 18:37:47 +01:00
Juan Picado
0ecc2bf1d9 chore: update dev deps 2023-12-02 15:17:58 +01:00
renovate[bot]
7b7ca6e8d9 chore(deps): update yarn to v4.0.2 (#4132)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-29 21:59:34 +01:00
renovate[bot]
f40f8b9b7c chore(deps): update typescript-eslint monorepo to v6.12.0 (#4120) 2023-11-23 17:22:59 +01:00
Juan Picado
1ff78d55a7 chore: remove dependencies 2023-11-19 12:14:25 +01:00
renovate[bot]
1ece6f4771 chore(deps): update babel monorepo to v7.23.3 (#4112)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-10 06:41:28 +01:00
Juan Picado
62483bc1d0 chore: cleanup code 2023-10-30 07:37:30 +01:00
Juan Picado
514b4db227 chore: update deps 2023-10-30 04:16:14 +01:00
Juan Picado
8a8a3307a1 feat!: using new plugin loader (#4097)
* feat!: using new plugin loader

Already implemented here https://github.com/verdaccio/verdaccio/pull/3370

* format

* Update index.ts

* update ci

* fix workflow

* Update e2e-angular-cli-workflow.yml

* Update e2e-jest-workflow.yml

* ci

* test

* Create e2e-audit-workflow.yml

* Create e2e-next-cli-workflow.yml

* Delete e2e-next-cli-workflow.yml

* chore: replace storage plugin loader

* Update local-storage.spec.ts

* remove cache

* auth plugin loader

* format
2023-10-29 18:11:41 +01:00
renovate[bot]
920ad82af4 chore(deps): update yarn to v4.0.1 (#4096)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-28 18:58:43 +02:00
Juan Picado
8bb974c4f6 chore: upgrade yarn 4 (#4094)
* chore: upgrade yarn 4

* Update user.ts
2023-10-28 17:51:02 +02:00
Juan Picado
08bca6354c core: update verdaccio core dependencies 2023-10-28 17:35:19 +02:00
renovate[bot]
84b0e0b7b3 chore(deps): update babel monorepo (#4089)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-28 16:32:22 +02:00
renovate[bot]
fe9dfc5518 chore(deps): update dependency selfsigned to v2.4.1 (#4090)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-28 16:32:00 +02:00
Juan Picado
5dea7e1100 chore: format code 2023-10-28 13:19:52 +02:00
Juan Picado
8f9b094f6e chore: fix type 2023-10-28 13:12:19 +02:00
Juan Picado
dc3fb46f76 fix: update verdaccio core dependencies 2023-10-28 12:56:47 +02:00
renovate[bot]
df1bd10e67 chore(deps): update dependency nock to v13.3.6 (#4087)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-28 12:20:07 +02:00
renovate[bot]
dbeea95949 chore(deps): update yarn to v3.6.4 (#4088)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-28 12:19:57 +02:00
Juan Picado
127e6cf19f fix: update docker image to v20.9.0 2023-10-28 12:19:34 +02:00
Juan Picado
6cc94f5548 chore: add node 21 testing 2023-10-28 09:39:24 +02:00
Tiago Mota
e174e8c554 feat(experiment): accept async tarball_url_redirect function (#3914)
* chore: await tarball_url_redirect function

* test: unit test async tarball_url_redirect

* chore: prettier format

* chore: refactor redirectOrDownloadStream to better error handling

* refactor tests

* format

* format

---------

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2023-10-07 23:49:28 +02:00
Juan Picado
4ddb220ba5 fix: update verdaccio core dependencies (#4034) 2023-09-24 11:44:25 +02:00
Juan Picado
1a054fd9ae chore: update scripts 2023-09-24 10:17:14 +02:00
Juan Picado
304fa4f1ce chore: fix ci 2023-09-24 09:29:20 +02:00
Juan Picado
02af45c8db feat!: drop nodejs 16 (#4032)
* drop nodejs 16

* format

* fix format

* update deps
2023-09-24 09:26:07 +02:00
Juan Picado
7c00e809c1 chore: rename changelog 2023-09-24 08:35:38 +02:00
Juan Picado
547ba9a569 fix: check if node.js minimum version is correct (#4002) 2023-09-03 08:57:20 +02:00
Juan Picado
c2aa0b6d3f feat: search on cache packages (#4001)
* feat: search on cache packages

* remove dep
2023-09-02 23:08:22 +02:00
Juan Picado
d40d0ff7b3 feat!: remove request (#3960) 2023-08-28 23:03:36 +02:00
Juan Picado
5a0ead5fb6 feat!: drop Node.js 12 (#3983)
* feat!: drop Node.js 12

- Enable minimum Node.js 16

* update notes

* restore files
2023-08-20 18:43:30 +02:00
renovate[bot]
f61cfda1c3 fix(deps): update dependency validator to v13.11.0 (#3967)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-09 07:36:17 +02:00
Juan Picado
63f8236bbe chore(release): 5.26.1 2023-07-21 06:58:17 +02:00
renovate[bot]
11097633c8 chore(deps): update node.js to v18.17.0 (#3945)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-21 00:40:52 +02:00
Juan Picado
5e9637da90 fix: add missing token auth middleware (#3944)
* fix: add missing token auth middleware

* improve tests

* format
2023-07-21 00:32:14 +02:00
renovate[bot]
93bc69abc1 chore(deps): update babel monorepo to v7.22.9 (#3936)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-18 21:51:14 +02:00
renovate[bot]
9a81334216 chore(deps): update yarn to v3.6.1 (#3937)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-18 21:51:03 +02:00
Juan Picado
2c7ee01286 chore(release): 5.26.0 2023-07-15 23:46:55 +02:00
Juan Picado
8ec5b2cb6f chore: release snapshot id refactor 2023-07-15 21:49:11 +02:00
Juan Picado
43de79d46a feat: refactor middleware and bufixes (#3922) 2023-07-15 21:37:45 +02:00
Juan Picado
c671faace5 fix: docker update v18.16.1 (#3923) 2023-07-09 11:19:18 +02:00
Juan Picado
4be19db0c1 fix: remove req.host deprecation warning (#3921) 2023-07-09 10:26:36 +02:00
Juan Picado
971d500c6e fix: update dependencies
semver, babel, jest, etc..
2023-07-08 13:11:27 +02:00
renovate[bot]
a69978755d fix(deps): update dependency semver to v7.5.2 (#3895) 2023-06-21 10:26:05 +08:00
renovate[bot]
349c12fd75 chore(deps): update dependency eslint to v8.43.0 (#3881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-17 15:19:45 +08:00
renovate[bot]
1989e080c0 chore(deps): update actions/checkout digest to c85c95e (#3882)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-17 15:19:31 +08:00
renovate[bot]
68f6e6e877 chore(deps): update actions/checkout action to v3.5.3 (#3883)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-17 15:19:20 +08:00
renovate[bot]
772a1bbb65 chore(deps): update typescript-eslint monorepo to v5.59.11 (#3880)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-17 15:02:24 +08:00
renovate[bot]
a84d1786f8 fix(deps): update dependency verdaccio-audit to v11.0.0-6-next.35 (#3877)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-16 08:35:38 +08:00
renovate[bot]
13d0df0ca3 chore(deps): update babel monorepo to v7.22.5 (#3875)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-15 17:59:06 +08:00
renovate[bot]
adc937fc66 chore(deps): update dependency eslint to v8.42.0 (#3876)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-14 21:39:46 +08:00
renovate[bot]
b39c01f158 fix(deps): update dependency clipanion to v3.2.1 (#3874) 2023-06-13 11:35:29 +08:00
renovate[bot]
f0bb451111 fix(deps): update core verdaccio dependencies (#3873) 2023-06-13 11:34:08 +08:00
renovate[bot]
ec1b49ef12 chore(deps): update yarn to v3.6.0 (#3855)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 10:33:13 +02:00
Juan Picado
f3afd04018 chore(release): 5.25.0 2023-06-03 08:49:52 +02:00
renovate[bot]
54fbf5a81a chore(deps): update typescript-eslint monorepo to v5.59.8 (#3852)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 08:28:21 +02:00
renovate[bot]
3972702651 chore(deps): update babel monorepo (#3854)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-03 08:25:48 +02:00
Juan Picado
99d06e5f02 fix: update verdaccio 6.x dependencies (#3853)
* fix(core): update verdaccio 6 dependencies

* add

* ci
2023-06-03 08:16:58 +02:00
George Kalpakas
1a5d5b41d5 fix(docker): remove yarn symlinks (#3840)
The [`node:alpine` Docker image][1] adds some symlinks to `yarn` in
`/usr/local/bin/`. These should be removed as part of removing `yarn`
from the Verdaccio Docker image, otherwise there will be errors when
a someone tries to re-install `yarn` in their Docker image that builds
on top of the Verdaccio one.

[1]: 02a64a08a9/18/alpine3.16/Dockerfile (L91-L92)
2023-05-30 14:53:42 +02:00
Juan Picado
c5afdbbb0c fix dependency issue renovate 2023-05-14 18:06:51 +02:00
renovate[bot]
2d6dbc7daf fix(deps): update core verdaccio dependencies (#3822)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-14 17:54:24 +02:00
renovate[bot]
a7a2d5f3e1 fix(deps): update dependency verdaccio-audit to v11.0.0-6-next.33 (#3824)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-14 17:37:43 +02:00
Juan Picado
770cd27759 feat: replace internal web search indexer (#3818)
* feat: replace internal search indexer

* chore: add import

* chore: fix tests

* add search dependency

* remove lunr-mutable-indexes
2023-05-14 13:27:09 +02:00
renovate[bot]
373c584019 fix(deps): update dependency semver to v7.5.1 (#3816) 2023-05-14 08:45:39 +02:00
renovate[bot]
271f918fc8 fix(deps): update dependency @babel/eslint-parser to v7.21.8 (#3807)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-11 07:59:46 +02:00
renovate[bot]
45f0718afc chore(deps): update typescript-eslint monorepo to v5.59.5 (#3806)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-11 07:59:32 +02:00
renovate[bot]
ca77e00882 chore(deps): update dependency @types/express to v4.17.17 (#3800) 2023-05-07 22:24:30 +02:00
renovate[bot]
6c3673cb24 chore(deps): update dependency @types/node to v18.16.5 (#3799) 2023-05-07 22:24:20 +02:00
renovate[bot]
e1ef8c2b52 chore(deps): update typescript-eslint monorepo to v5.59.2 (#3798) 2023-05-07 17:34:49 +02:00
renovate[bot]
e9c663f144 chore(deps): update dependency @types/lodash to v4.14.194 (#3797) 2023-05-07 17:34:38 +02:00
renovate[bot]
a34eb07b1d chore(deps): update dependency eslint to v8.40.0 (#3796)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:59:22 +02:00
renovate[bot]
dbe1b24b09 chore(deps): replace dependency babel-eslint with @babel/eslint-parser 7.11.0 (#3795)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:47:44 +02:00
renovate[bot]
b9cb51e78a chore(deps): update dependency prettier to v2.8.8 (#3794)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:39:08 +02:00
renovate[bot]
a23e9c8e2d chore(deps): update dependency @types/async to v3.2.20 (#3793)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:32:46 +02:00
renovate[bot]
0e5155ebad chore(deps): update babel monorepo (#3791)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:23:48 +02:00
renovate[bot]
16623cd8ab chore(deps): update yarn to v3.5.1 (#3792)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-07 14:15:06 +02:00
Juan Picado
807baba858 chore: update ci settings 2023-05-07 13:57:49 +02:00
Juan Picado
9e466946b8 chore(release): 5.24.1 2023-04-24 06:55:32 +02:00
cmkk
268c5e7740 fix: fixed an issue where logger.info in allow_action always output undefined (#3763)
logger.info({ user: user.name }, `auth/allow_action: access granted to: @{user}`);

The above log code will always output undefined
2023-04-24 06:54:52 +02:00
renovate[bot]
12d954ae2c chore(deps): update dependency eslint-config-prettier to v8.8.0 (#3757)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 12:15:03 +02:00
Juan Picado
3cd65b840c chore(release): 5.24.0 2023-04-22 12:00:25 +02:00
renovate[bot]
4add891d06 chore(deps): update dependency eslint to v8.39.0 (#3756)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 11:45:47 +02:00
renovate[bot]
dd067f5b40 chore(deps): update actions/setup-node action to v2.5.2 (#3754)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 11:43:42 +02:00
renovate[bot]
c4df518046 chore(deps): update actions/checkout action to v3.5.2 (#3755)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 11:43:33 +02:00
renovate[bot]
7710d6c6f8 chore(deps): update actions/checkout digest to 8e5e7e5 (#3753)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-22 11:42:59 +02:00
Juan Picado
d3bb520374 feat: update docker base image v18.16.0 (#3751) 2023-04-22 11:15:27 +02:00
Juan Picado
e939ca24af feat: upgrade plugin htpassw major (#3712)
Replaces default auth plugin verdaccio-htpasswd@10.x by verdaccio-htpasswd@11.x which is being used in verdaccio 6.x (almost identical)
Apply backward compabiity
Reduces maintenance (monorepo plugin can be removed)
One more step to switch v6.x
Add Node.js 12 GH Action for check backward compatibility
2023-04-22 11:08:59 +02:00
renovate[bot]
b3ea8162ac fix(deps): update dependency verdaccio-htpasswd to v10.5.5 (#3749)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-21 09:55:59 +02:00
renovate[bot]
42798df639 chore(deps): update typescript-eslint monorepo to v5.59.0 (#3747)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-20 16:12:16 +02:00
renovate[bot]
dcd530ba85 fix(deps): update dependency semver to v7.5.0 (#3733)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 23:22:53 +02:00
renovate[bot]
48909352a2 chore(deps): update actions/setup-node digest to 64ed1c7 (#3720)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-05 07:34:30 +02:00
Juan Picado
bf6045f9f0 chore(release): 5.23.2 2023-04-04 07:40:02 +02:00
Juan Picado
1cf229d732 chore: update dependencies (#3718) 2023-04-04 07:39:24 +02:00
renovate[bot]
cb7b1d8360 chore(deps): update jest monorepo to v29.5.0 (#3717)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-04 07:18:27 +02:00
jzhangdev
1029d7a381 fix: ui package search (#3713)
* fix: package search

* Update init.ts

---------

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2023-04-04 07:17:31 +02:00
renovate[bot]
8e79e5f4ab fix(deps): update dependency @verdaccio/config to v6.0.0-6-next.67 (#3716) 2023-04-03 23:28:03 +02:00
renovate[bot]
e8daaeec75 chore(deps): update yarn to v3.5.0 (#3714)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 21:11:38 +02:00
Juan Picado
c732a76a34 chore: update workflows 2023-04-03 20:59:32 +02:00
Juan Picado
81bee27c76 Update smok-test-module.yml 2023-03-31 08:33:55 +02:00
Juan Picado
980771c04d Update smok-test-module.yml 2023-03-31 08:30:29 +02:00
Juan Picado
aec4e700ba chore: add test for require module (#3710) 2023-03-31 08:28:41 +02:00
Juan Picado
6944b7de35 chore(release): 5.23.1 2023-03-23 10:26:32 +01:00
Michal Piechowiak
5d83c52da3 fix: package.json main field (#3700) 2023-03-23 10:26:17 +01:00
Juan Picado
ef12d884b6 chore(release): 5.23.0 2023-03-23 07:20:55 +01:00
Juan Picado
c95ab88e46 fix: update core dependencies 2023-03-23 07:17:45 +01:00
Juan Picado
fd78ca9772 feat: update docker image base to v18.15.0 2023-03-23 07:13:23 +01:00
Juan Picado
9a684a7cd3 chore: clean up types 2023-03-19 11:39:00 +01:00
Juan Picado
783422b4a2 refactor: migrate @verdaccio/types@11.x (#3692)
* refactor: migrate @verdaccio/types@11

* deps
2023-03-18 22:40:34 +01:00
Juan Picado
b85ba995b5 fix: add missing version on footer #3671 2023-03-18 17:32:29 +01:00
Juan Picado
ccfac8f0aa chore: update typescript (#3689) 2023-03-18 17:26:13 +01:00
Juan Picado
2a6fc98f92 fix: update core dependencies (#3688) 2023-03-18 16:56:31 +01:00
Juan Picado
4c1cc3cec8 chore(release): 5.22.1 2023-03-07 23:06:23 +01:00
Juan Picado
f6c22d3ea8 fix: #3666 experiments config fail on startup (#3668)
* fix: #3666 experiments config fail on startup

* Update experiments.yaml

* Update init.ts

* add tests

* Update bootstrap.ts

* update deps

* update deps
2023-03-07 22:50:16 +01:00
Juan Picado
335704ba2a chore(release): 5.22.0 2023-03-05 08:00:01 +01:00
Juan Picado
dd4726d82b chore: restore removed import 2023-03-03 21:55:38 +01:00
Juan Picado
8d584dddd0 chore: refactor createAnonymousRemoteUser and createRemoteUser 2023-03-03 21:50:43 +01:00
Juan Picado
d78561a3fd chore: clean up code 2023-03-03 21:40:52 +01:00
Juan Picado
e50d4d92a2 feat: improved config and token signature (#3658)
* chore: add signature module

* feat: improved config and token signature

feat: improved config and token signature

Update package.json

* chore: update deps

* types

* fix: logger missing options

* chore: update deps

* update dep

* Update e2e-jest-workflow.yml

* Update init.ts

* Update config-path.ts

* fix logger

* Update init.ts
2023-03-03 21:32:10 +01:00
Juan Picado
8c8dafc8a0 chore(release): 5.21.2 2023-02-25 08:21:10 +01:00
Juan Picado
ed80a25c08 fix: update dependencies (#3649)
* fix: update dependencies

* chore: restore types

* chore: update deps
2023-02-25 08:02:58 +01:00
薄涛
e4573c7e15 fix: avoid setting body for GET requests (#3643)
* fix: avoid setting body for GET requests

When making a GET request to certain uplinks, such as https://registry.npmmirror.com, setting the body field can result in a 413 error. Previously, the code was setting the body field for all requests, including GET requests.

This commit fixes the issue by checking the request method and avoiding setting the body field for GET requests. This ensures that GET requests are not affected by the issue and can be made without error.

Fixes #3601

* add missing deps for run test locally

* test(up-storage): add unit test about uplink is npmmirror

Cause thers is a bug in `isObject` function from `@verdaccio/core`, when `options.json` is `true`
GET request body will be string 'true', some uplinks might return 413 status code such as
https://registry.npmmirror.com

fix #3601

* chore(deps): update @verdaccio/core

---------

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
Co-authored-by: botao <botao@tal.com>
2023-02-24 07:18:18 +01:00
Juan Picado
164d9d2185 add missing deps for run test locally 2023-02-22 07:51:32 +01:00
Juan Picado
7752424de0 chore(release): 5.21.1 2023-02-14 22:33:30 +01:00
Juan Picado
d157131225 chore: remove changelog failures on master 2023-02-14 22:33:04 +01:00
Juan Picado
5385f33991 Update trigger-release.ts 2023-02-14 22:32:40 +01:00
Juan Picado
4105fecf4c fix: restore @verdaccio/ui-theme version 2023-02-14 22:32:01 +01:00
Juan Picado
a858c2161b chore(release): 5.21.0 2023-02-14 22:25:08 +01:00
Juan Picado
f9f269ee04 feat: refactor render middleware and audit plugin (#3602)
* chore: replace web middleware

* clean up

* migrate user agent

* migrate rate limit

* clean up

* replace audit plugin

* feat: refactor render middleware and audit plugin

* update deps

* update deps

* update packages

* update deps

* chore: update deps

* update deps

* update config dep

* chore: update deps

* update deps
2023-02-14 22:20:11 +01:00
Juan Picado
bf9ed26d90 feat: replace middleware and logger core (#3586)
Use verdaccio 6 modules for middleware and logger with pino 7
2023-02-09 21:42:24 +01:00
Juan Picado
cbe4a17337 chore(release): 5.20.1 2023-01-29 16:43:03 +01:00
Juan Picado
fc7cdc19bb chore: test types on builds 2023-01-29 16:25:36 +01:00
Juan Picado
45d7c95a08 fix: pushed wrong types library and broken build 2023-01-29 16:24:58 +01:00
Juan Picado
7439c8d120 chore(release): 5.20.0 2023-01-29 15:34:10 +01:00
Juan Picado
3320b4dfe2 fix: update docker base to 18.13.0 (#3579) 2023-01-28 17:42:38 +01:00
Juan Picado
bae430fe24 feat: refactor test and use verdaccio 6 core modules (#3569)
chore: clean up comments

remove commitlint

update deps

add new tests

test

separate ci

test

test

test

test

test

test

chore: add preprelase

test

test

test

test

test

chore: update deps

Update release-snapshot.yml

Update .npmignore

test

chore: remove @verdaccio/commons-api dep

chore: cleanup

remove normalizeContributors

remove validateMetadata

fix test

clean up getLocalRegistryTarballUri

Update store.spec.ts

clean up convertDistRemoteToLocalTarballUrls

chore: update libraries

reuse getPublic url

clean up

Update jest.config.js

Update jest.config.js

update nvmrc

add tests
2023-01-28 14:39:37 +01:00
Juan Picado
50a20e922b chore: fix automated release notes on publish (#3568)
* chore: fix automated release notes on publish

* chore: fix automated release notes on publish
2023-01-19 22:53:05 +01:00
Juan Picado
d1519228a3 fix: update dependencies (#3567)
* chore: update dependencies

* chore: update batch 2
2023-01-19 00:21:28 +01:00
Juan Picado
a8a992cfb6 chore: upgrade jest 29 (#3566)
* chore: upgrade jest 29

* Update api.spec.ts
2023-01-19 00:09:24 +01:00
Juan Picado
57ac3389f1 chore: removed unused files 2023-01-18 22:50:29 +01:00
Juan Picado
6df04e1ce1 chore: upgrade eslint and prettier (#3565) 2023-01-18 22:49:28 +01:00
Juan Picado
0c315c588c chore(release): 5.19.1 2023-01-07 22:32:17 +01:00
Juan Picado
a774e29715 fix: include ts types and systemd into the published package (#3556) 2023-01-07 22:31:44 +01:00
Juan Picado
3032fc8b28 chore(release): 5.19.0 2022-12-25 22:25:54 +01:00
Juan Picado
99a39d55a2 feat(security): update dependencies (#3540)
* fix:  update dependencies

https://security.snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180020

* chore: clean cache

* Update ci.yml

* Update ci.yml
2022-12-25 21:56:24 +01:00
Juan Picado
65f00d33d2 chore: update readme 2022-12-17 13:54:37 +01:00
Juan Picado
64d2ae6ee0 Update smok-test-docker.yml 2022-12-04 11:03:08 +01:00
Juan Picado
01dffb2748 Update smok-test-docker.yml 2022-12-04 10:57:19 +01:00
Juan Picado
8a5daa92ab Update smok-test-docker.yml 2022-12-04 10:53:45 +01:00
Juan Picado
82326e7c5c Create smok-test-docker.yml 2022-12-04 10:50:32 +01:00
Juan Picado
9353b3ebf0 fix: update core dependencies (#3519) 2022-12-03 17:58:46 +01:00
Juan Picado
34ac91f7cb chore(release): 5.18.0 2022-11-23 07:47:23 +01:00
Juan Picado
0b49566176 fix: add hasInstallScript calculation (#3509)
* fix: add hasInstallScript calculation

* Update storage-utils.ts

* chore: add tests
2022-11-23 07:35:10 +01:00
Juan Picado
a0a0654f15 Update package.json 2022-11-22 19:50:02 +01:00
Juan Picado
0a0b772f52 feat: export module types (#3508)
* chore: export types to the module

* chore: remove unused dep

* chore: format

* Update package.json
2022-11-22 18:35:47 +01:00
Juan Picado
83ed963f20 chore(release): 5.17.0 2022-11-19 22:02:15 +01:00
Juan Picado
8715a5cfa2 feat: highlight readme source code (#3506)
* feat: highlight readme source code

* chore: fix tests

* Delete utils.spec.ts.snap
2022-11-19 22:00:56 +01:00
Juan Picado
07144c9886 fix(sec): update base image to v18.12.1-alpine (#3489) 2022-11-09 20:23:27 +01:00
Juan Picado
32535002f4 chore(release): 5.16.3 2022-11-08 20:40:59 +01:00
Juan Picado
32ecdfb301 fix: remove dry run
^_^ not my best release day
2022-11-08 20:40:34 +01:00
Juan Picado
1500f9272e chore(release): 5.16.2 2022-11-08 20:37:55 +01:00
Juan Picado
1f477bd6e8 fix: release package
mixing npm and yarn is something to fix, not good mix
2022-11-08 20:37:46 +01:00
Juan Picado
c7e6222b69 chore: restore npmignore 2022-11-08 20:35:46 +01:00
Juan Picado
4573ad9c8a chore: test release 5.x 2022-11-08 20:32:30 +01:00
Juan Picado
6eb1ea595f chore: test release on ci 2022-11-08 20:30:07 +01:00
Juan Picado
9735e6e401 chore(release): 5.16.1 2022-11-08 20:14:12 +01:00
Juan Picado
61e01368f4 fix: missing files on release
this happens when you remove e2e cli :(
2022-11-08 20:13:54 +01:00
Juan Picado
0a3c66938a chore(release): 5.16.0 2022-11-08 19:47:02 +01:00
Juan Picado
7a000bccdb fix: update core deps (#3485)
* fix: update core deps

* Update e2e-gatsbyjs-cli-workflow.yml

* Update e2e-gatsbyjs-cli-workflow.yml

* Update e2e-gatsbyjs-cli-workflow.yml
2022-11-08 19:45:25 +01:00
Juan Picado
ebaaf3f681 feat: docker image refactor a new internal binary run (#3475) 2022-11-08 07:29:19 +01:00
Juan Picado
644938c0f3 feat: update to docker base image to node v18.12.0 (#3469)
* feat: update to  node v18.12.0

* Delete ci-e2e.yml
2022-11-02 23:09:15 +01:00
Juan Picado
e62cd006ea chore: update yarn 3.x (#3394)
* chore: update yarn

chore: update yarn

Update .pnp.cjs

* chore: rebase from 5.x

* chore: remove cli test

* chore: update jest

* chore: restore jest

* Update Dockerfile

* Update ci.yml

* chore: remove node linker

* restore docker file

* Update ci.yml
2022-11-02 22:52:53 +01:00
Juan Picado
e549d381db chore: clean up project 5.x (#3468)
* chore: clean up project

* Update ci-e2e.yml
2022-11-02 21:41:58 +01:00
renovate[bot]
106e00a751 fix(deps): update dependency dayjs to v1.11.6 (#3459)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-27 08:06:18 +02:00
Juan Picado
829173e3d7 chore: add node 19 to ci (#3450) 2022-10-18 21:34:36 +02:00
renovate[bot]
b3b44f6317 fix(deps): update dependency body-parser to v1.20.1 (#3438)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-15 16:31:34 +02:00
renovate[bot]
1a1572ff9e fix(deps): update dependency marked to v4.1.1 (#3439)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-15 16:31:21 +02:00
renovate[bot]
128ab21a8a fix(deps): update dependency express to v4.18.2 (#3435)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-15 12:56:42 +02:00
renovate[bot]
d8eae392ff chore(deps): update babel monorepo (#3407)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-29 19:01:17 +02:00
Juan Picado
5ad1bf8c4f chore(release): 5.15.4 2022-09-29 08:11:09 +02:00
Juan Picado
1d6b7632d7 fix: docker base image upgraded 14.20.1 (#3405) 2022-09-29 08:09:12 +02:00
renovate[bot]
be5c9f93ed fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.48 (#3404)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-29 07:58:18 +02:00
renovate[bot]
b0a965b3c2 chore(deps): pin dependencies (#3374)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-13 20:11:09 +02:00
Juan Picado
6226e2953d chore(release): 5.15.3 2022-09-07 17:52:46 +02:00
Juan Picado
90e7cfd1ed fix: remove stringify with space responses (#3364) 2022-09-07 17:52:10 +02:00
Juan Picado
b000fafc2d chore(release): 5.15.2 2022-09-05 21:37:16 +02:00
Juan Picado
cdb80aac20 fix: get header by quality priority value (#3359)
* fix: get header by quality priority value

* chore: disable some workflows

* chore: add more tests

* chore: remove some duplicated testss

* chore: return right content type haders
2022-09-05 21:36:23 +02:00
Juan Picado
8ac917deb2 chore(release): 5.15.1 2022-09-04 08:39:04 +02:00
Zoltan Kochan
317177a937 fix: add missing fields to abbreviated metadata (#3347)
* fix: add missing fields to abbreviated metadata

The abbreviated metadata should include the cpu, os, and peerDependenciesMeta fields

* chore: update types

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-09-04 08:24:40 +02:00
Juan Picado
60be3e6cd0 chore(release): 5.15.0 2022-09-03 19:22:57 +02:00
renovate[bot]
354f9ee16c fix(deps): update dependency marked to v4.1.0 (#3346)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-03 19:09:44 +02:00
renovate[bot]
628616ce32 fix(deps): update dependency lru-cache to v7.14.0 (#3345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-03 19:08:12 +02:00
Juan Picado
966139ffd8 feat: implement abbreviated manifest (#3343)
* feat: implement abbreviated manifest

Follow up of https://github.com/verdaccio/verdaccio/pull/3322
Fixes for 5.x https://github.com/verdaccio/verdaccio/issues/2792

* chore: improve expects

* chore: fix test
2022-09-03 17:55:45 +02:00
Juan Picado
01b487b908 chore: update readme 2022-09-03 14:13:50 +02:00
Juan Picado
7ce2727bf3 chore: update readme 2022-09-03 14:09:33 +02:00
Juan Picado
63e8cc7d65 chore: update readme 2022-09-03 07:16:11 +02:00
renovate[bot]
b1ec0daeca fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.28 (#3335)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-28 17:05:13 +02:00
renovate[bot]
b80794a46f fix(deps): update dependency marked to v4.0.19 (5.x) (#3328)
* fix(deps): update dependency marked to v4.0.19

* Update e2e-jest-workflow.yml

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-08-27 18:45:30 +02:00
renovate[bot]
f810cea0cc chore(deps): update dependency standard-version to v9.5.0 (#3314)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-20 11:23:18 +02:00
renovate[bot]
80755f21c9 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.26 (#3313) 2022-08-20 11:07:15 +02:00
renovate[bot]
296fe5af60 chore(deps): update dependency supertest to v6.2.4 (#3299)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-17 17:15:39 +02:00
renovate[bot]
6a2b2fa36a fix(deps): update dependency dayjs to v1.11.5 (#3300)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-17 17:15:28 +02:00
renovate[bot]
8b204b3918 chore(deps): update babel monorepo (#3297)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-08 18:47:08 +02:00
Juan Picado
6cb96d7fd9 chore(release): 5.14.0 2022-07-29 20:19:51 +02:00
Ed Clement
0bc26e395a feat: allow express 'trust proxy' to be set for ip resolution behind proxies and load-balancers (#3274) 2022-07-29 20:19:03 +02:00
renovate[bot]
d995cc516e fix(deps): update dependency lru-cache to v7.13.1 (#3268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-16 13:58:26 +02:00
renovate[bot]
080bd4578f fix(deps): update dependency @verdaccio/readme to v10.4.1 (#3267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-16 13:58:14 +02:00
Juan Picado
eddabb3de7 chore(release): 5.13.3 2022-07-13 21:31:14 +02:00
renovate[bot]
0a611c0b7d fix(deps): update dependency lru-cache to v7.13.0 (#3266)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-13 21:30:47 +02:00
renovate[bot]
b3f964d93a fix(deps): update dependency marked to v4.0.18 (#3264) 2022-07-13 20:02:12 +02:00
renovate[bot]
531f4685ab fix(deps): update dependency @verdaccio/readme to v10.4.0 (#3265) 2022-07-13 18:58:47 +02:00
renovate[bot]
cc1c2a5e50 fix(deps): update dependency kleur to v4.1.5 (#3263) 2022-07-13 18:36:02 +02:00
Juan Picado
e1b69d2d4f chore(release): 5.13.2 2022-07-12 22:31:02 +02:00
renovate[bot]
af9cc6d4f9 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.25 (#3258)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-12 22:26:35 +02:00
Lukas Immesberger
5f83dc294e fix: update nodejs to 14.20.0 to fix CVE-2022-32212 (#3262) 2022-07-12 22:26:18 +02:00
renovate[bot]
fc253b1b78 chore(deps): update babel monorepo (#3259)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-12 22:26:04 +02:00
Juan Picado
f6fda6b27c chore(release): 5.13.1 2022-06-23 08:18:13 +02:00
renovate[bot]
991cf1083d fix(deps): update dependency @verdaccio/local-storage to v10.3.1 (#3245)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-23 08:15:45 +02:00
renovate[bot]
236b6bfeda chore(deps): update dependency prettier to v2.7.1 (#3243)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-22 23:01:14 +02:00
renovate[bot]
884e05b13e fix(deps): update dependency verdaccio-htpasswd to v10.5.0 (#3242)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-22 22:34:04 +02:00
Juan Picado
78c789c76c chore: update readme 2022-06-22 22:33:41 +02:00
Juan Picado
5075030749 chore: update readme 2022-06-22 21:34:26 +02:00
Juan Picado
88f15b1131 chore: update readme 2022-06-22 21:33:52 +02:00
Juan Picado
40efe64517 chore: update readme 2022-06-22 21:33:01 +02:00
Juan Picado
23b5c1d6ef aling eslint config with main branch (#3238)
* chore: update linter tools

* fix: eslint warnings

* fix: eslint warnings

* chore: set max warnings
2022-06-19 21:26:46 +02:00
Juan Picado
f8df6d2ef9 chore(release): 5.13.0 2022-06-17 05:32:08 +02:00
Juan Picado
87fbc0fb7c feat: allow other password hashing algorithms (#3229) 2022-06-14 21:56:50 +02:00
Juan Picado
3c06bbd1d2 chore(release): 5.12.0 2022-06-14 07:48:04 +02:00
Juan Picado
5c50ec9a2c feat: add scope support loading plugins (#3227)
* feat: add scope support loading plugins

* format

* Update src/lib/plugin-loader.ts

Co-authored-by: Michael Prentice <splaktar@gmail.com>

* Update src/lib/plugin-loader.ts

Co-authored-by: Michael Prentice <splaktar@gmail.com>

* chore: add tests

* chore: add comment

* format

* chore: update dep

* chore: add better name

Co-authored-by: Michael Prentice <splaktar@gmail.com>
2022-06-14 07:47:17 +02:00
renovate[bot]
9d9c086ba3 fix(deps): update dependency marked to v4.0.17 (#3226)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 23:15:19 +02:00
renovate[bot]
325e536f03 fix(deps): update dependency dayjs to v1.11.3 (#3225)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:27:53 +02:00
renovate[bot]
c486af23ea fix(deps): update dependency async to v3.2.4 (#3224)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:27:41 +02:00
renovate[bot]
2b8ac7a1ac fix(deps): update dependency @verdaccio/local-storage to v10.3.0 (#3223)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:07:28 +02:00
renovate[bot]
03e52940cc chore(deps): update dependency verdaccio-memory to v10.3.0 (#3222)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:07:18 +02:00
renovate[bot]
4f8c4a46cf chore(deps): update dependency @verdaccio/types to v10.5.1 (#3221)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 22:07:04 +02:00
renovate[bot]
25a2825f8b fix(deps): update dependency verdaccio-htpasswd to v10.3.1 (#3220)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 21:38:47 +02:00
renovate[bot]
d5fa7fb7b4 chore(deps): update dependency @verdaccio/eslint-config to v10 (#3219)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-13 21:18:13 +02:00
renovate[bot]
7bc60ffca8 fix(deps): update dependency lru-cache to v7.10.1 (#3182) 2022-06-02 21:01:15 +02:00
renovate[bot]
e5dbd9bbd1 fix(deps): update dependency minimatch to v5.1.0 (#3183) 2022-06-02 21:01:02 +02:00
Juan Picado
e9542d2fda chore(release): 5.11.0 2022-06-02 17:57:49 +02:00
Juan Picado
42194c7302 feat: run server init as promise (#3210)
* feat: run server init as promise

* chore: format

* fix: format

* fix: format

* fix: restore files

* fix: restore files

* fix: disable steps

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli
2022-06-02 17:39:49 +02:00
renovate[bot]
4f59bb8f20 chore(deps): update actions/checkout action to v3.0.2 (#3185)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-30 22:27:08 +02:00
Juan Picado
78d4078b75 chore(release): 5.10.3 2022-05-30 18:32:46 +02:00
renovate[bot]
acfa4ea781 chore(deps): update dependency verdaccio-memory to v10.2.1 (#3204)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-30 18:23:22 +02:00
renovate[bot]
9e743f493e fix(deps): update dependency verdaccio-audit to v10.2.2 (#3201) 2022-05-30 16:13:32 +02:00
renovate[bot]
2443900329 fix(deps): update dependency @verdaccio/readme to v10.3.4 (#3197)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-30 07:21:01 +02:00
renovate[bot]
2373f4126d chore(deps): update babel monorepo to v7.17.12 (#3186)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 20:39:39 +02:00
renovate[bot]
a17378d252 fix(deps): update dependency marked to v4.0.16 (#3187)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 19:57:16 +02:00
Juan Picado
e427ee40f2 chore(release): 5.10.2 2022-05-07 11:06:35 +02:00
renovate[bot]
5fffeacda9 fix(deps): update dependency express to v4.18.1 (#3160)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 11:01:37 +02:00
renovate[bot]
f16a1ea68d fix(deps): update dependency lru-cache to v7.9.0 (#3161)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 11:01:06 +02:00
renovate[bot]
cd39a429b6 fix(deps): update dependency dayjs to v1.11.2 (#3159)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 11:00:56 +02:00
Juan Picado
adfbefc59e fix: remove lru deprecation warning (#3158)
* fix: remove lru deprecation warning

* fix: format
2022-05-07 10:36:56 +02:00
renovate[bot]
0a1e9d649f chore(deps): update dependency supertest to v6.2.3 (#3155)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 09:51:51 +02:00
renovate[bot]
a4037343e2 chore(deps): update babel monorepo (#3157)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-07 09:51:34 +02:00
renovate[bot]
61249a4edd fix(deps): update dependency marked to v4.0.15 (#3153)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-05 08:10:16 +02:00
Juan Picado
559a7343d6 chore(release): 5.10.1 2022-05-05 07:54:33 +02:00
Juan Picado
923e63c5f0 chore: update vscode settings 2022-05-05 07:51:29 +02:00
Juan Picado
4457ce5a6e chore: update readme 2022-05-05 07:51:15 +02:00
Juan Picado
51803c3477 fix: duplicated groups on use jwt tokens (#3151)
* fix: duplicated groups on use jwt tokens

* chore: format

* chore: fix jest ci
2022-05-05 00:13:55 +02:00
Juan Picado
34b7394bcf chore(release): 5.10.0 2022-04-26 20:05:18 +02:00
renovate[bot]
abb8b60356 chore(deps): update dependency @types/lodash to v4.14.182 (#3139)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-23 08:19:55 +02:00
renovate[bot]
dcb181a7d7 chore(deps): update dependency ts-node to v10.7.0 (#3140)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-21 17:27:07 +02:00
Juan Picado
c62bc4e538 chore: node 18 on 5.x ci (#3138) 2022-04-21 08:22:04 +02:00
Juan Picado
95212188d4 chore: remove duplication 2022-04-18 19:59:21 +02:00
renovate[bot]
39c7a0905e chore(deps): update dependency fs-extra to v10.1.0 (#3133) 2022-04-18 12:05:06 +02:00
renovate[bot]
fff9905eec chore(deps): update dependency @types/lodash to v4.14.181 (#3134)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-18 09:45:21 +02:00
Juan Picado
b6e1a672c3 chore: upgrade notes config files 2022-04-18 09:10:36 +02:00
Juan Picado
5c650acbb2 chore: improving configuration documentation 2022-04-18 08:55:52 +02:00
renovate[bot]
27035f9403 fix(deps): update dependency dayjs to v1.11.1 (#3131) 2022-04-18 05:33:46 +02:00
renovate[bot]
da01a14e70 feat(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.24 (5.x) (#3130)
* fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.24

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add docs

* chore: format file

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-04-17 23:39:00 +02:00
renovate[bot]
157d5c5ce4 fix(deps): update dependency semver to v7.3.7 (#3121)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 21:43:51 +02:00
renovate[bot]
78b9c8b33e fix(deps): update dependency @verdaccio/readme to v10.3.3 (#3119)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 21:43:34 +02:00
renovate[bot]
decd7f1e5c fix(deps): update dependency verdaccio-audit to v10.2.1 (#3122)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 21:43:18 +02:00
renovate[bot]
8a60050b8b fix(deps): update dependency marked to v4.0.14 (#3120)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 20:15:20 +02:00
renovate[bot]
7ceaa1799c fix(deps): update dependency lru-cache to v7 (#3124)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 20:13:54 +02:00
renovate[bot]
954886d2db fix(deps): update dependency body-parser to v1.20.0 (#3123)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 20:13:04 +02:00
renovate[bot]
0f9d6eca34 fix(deps): update dependency @verdaccio/local-storage to v10.2.1 (#3118)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 20:12:36 +02:00
Juan Picado
f3691b0fcd chore(release): 5.9.0 2022-04-12 17:11:47 +02:00
Tiny
b30ba81b86 feat(web): add a config item to web,let the developer can select whether enable the html cache (#3110)
* Add a config item to web,let the developer can select whether enable the html cache

* Add a config item to web,let the developer can select whether enable the html cache

* chore: move check close to other configuration

* chore: update configuration files to suggest new option on web

* chore: format fix

Co-authored-by: fengdi <fengdi@bbktel.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-04-11 23:00:43 +02:00
renovate[bot]
b963f7db2a fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.23 (#3106) 2022-04-05 19:30:44 +02:00
renovate[bot]
4cc18773b7 fix(deps): update dependency dayjs to v1.11.0 (#3094) 2022-03-28 06:40:25 +02:00
renovate[bot]
a7bbab90f0 chore(deps): update dependency @types/lodash to v4.14.180 (#3085)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:36:58 +01:00
renovate[bot]
8cee85f811 fix(deps): update dependency body-parser to v1.19.2 (#3087)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:36:36 +01:00
renovate[bot]
ab4f922ffc chore(deps): update dependency fs-extra to v10.0.1 (#3086)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:02:06 +01:00
renovate[bot]
48a84093f5 chore(deps): update actions/checkout action (#3083)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:01:50 +01:00
renovate[bot]
7949a3011e chore(deps): update babel monorepo (#3088)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-26 12:01:31 +01:00
Juan Picado
662a05dc90 chore: remove npm 7 jest 2022-03-26 11:02:55 +01:00
Juan Picado
3f8047a2d0 chore: fix e2e pnpm7 2022-03-24 07:52:02 +01:00
Juan Picado
7e30384456 chore: remove argument pnpm e2e 2022-03-23 20:49:33 +01:00
Juan Picado
d461fdf516 chore(release): 5.8.0 2022-03-12 23:13:17 +01:00
Juan Picado
2ad085a8e2 feat: update ui with new modal banner (#3062) 2022-03-12 23:13:07 +01:00
Juan Picado
5a0611fe9c chore(release): 5.7.1 2022-03-08 18:45:09 +01:00
renovate[bot]
ace754ddff fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.21 (#3050)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-08 18:42:21 +01:00
Juan Picado
0f51a6ced5 fix: missing colors on terminal (#3049) 2022-03-08 18:30:29 +01:00
renovate[bot]
1221ffd512 fix(deps): update dependency dayjs to v1.10.8 (#3036) 2022-03-05 12:35:08 +01:00
renovate[bot]
24830e06e8 fix(deps): update dependency verdaccio-htpasswd to v10.3.0 (#3038) 2022-03-05 12:33:27 +01:00
renovate[bot]
21c66f65c3 fix(deps): update dependency express to v4.17.3 (#3039) 2022-03-05 12:33:14 +01:00
renovate[bot]
2ef97d4847 fix(deps): update dependency minimatch to v5 (#3035)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-05 11:06:50 +01:00
Juan Picado
e88571fa3e chore: enable test e2e pnpm7 (#3033)
* enable test e2e pnpm7

* chore: add npm8

* chore: rename title

* chore: skip flaky tests added note
2022-03-04 21:08:18 +01:00
Juan Picado
db51c6a350 chore(release): 5.7.0 2022-03-04 19:27:15 +01:00
renovate[bot]
87e5e74ea4 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.20 (#3028)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-03 23:22:28 +01:00
osher
ac45c0b5b2 feature: config control for colors in logs (#3011)
* pass `logs.colors` as `prettyOptions.colorize`

* `prettyPrintOptions` defaults is no concern of `createLogger`

* call it `colors` not to confuse with `pinoPretty.colorize`

* fix hardcoded `true` for `options.colors`

* Support `VERDACCIO_LOGGER_COLORS` overriding env-var

* Update docs for `VERDACCIO_LOGGER_COLORS`

* docs for `VERDACCIO_LOGGER_COLORS`

* docs for `VERDACCIO_LOGGER_COLORS`

* `.isTTY` from `stdout` not `stdin`

both work, but I want to ask if I emit to TTY, not if I consume from TTY.

* .md format

* format

* more format guesses

* declare `PrettyOptionsExtended.colors`

* lint

* docs: `EXPERIMENTAL__` prefix

* logger.ts - prefix `EXPERIMENTAL__`

* Update env.variables.md

* env.variables.md - remove double `_`

* Update logger.ts

* logger.ts - remove double `_`, fix boolean parsing

* env.variables.md - explain boolean parsing

* chore: format

* chore: add format, improve logic

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-03-02 23:41:30 +01:00
Juan Picado
7f04697175 chore(release): 5.6.2 2022-02-27 00:02:51 +01:00
renovate[bot]
7cff3f7693 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.18 (#3019)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-26 23:51:01 +01:00
renovate[bot]
08b72b4663 fix(deps): update dependency pino to v6.14.0 (#3018)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-26 23:36:43 +01:00
Juan Picado
541aca922e chore(release): 5.6.1 2022-02-26 19:11:46 +01:00
renovate[bot]
f57508d6f3 fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.17 (#3014)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-26 19:08:23 +01:00
Juan Picado
2a6f1d5475 chore(release): 5.6.0 2022-02-15 19:28:14 +01:00
renovate[bot]
8fd8a1659a chore(deps): update dependency verdaccio-memory to v10.2.0 (#2994)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 13:21:40 +01:00
renovate[bot]
ea199b229d chore(deps): update dependency @verdaccio/types to v10.3.0 (#2997)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 12:34:16 +01:00
renovate[bot]
25b22128b8 fix(deps): update dependency verdaccio-htpasswd to v10.2.0 (#2999)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 12:34:04 +01:00
renovate[bot]
60fea02ad1 fix(deps): update dependency @verdaccio/streams to v10.2.0 (#2995) 2022-02-14 23:13:28 +01:00
renovate[bot]
57c4ce5a19 fix(deps): update dependency verdaccio-audit to v10.2.0 (#2998) 2022-02-14 23:13:15 +01:00
renovate[bot]
fee3ac670a fix(deps): update dependency @verdaccio/readme to v10.3.2 (#2984)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-14 22:35:13 +01:00
osher
681dc821aa feat: new environment variable (storage path) (#2993)
* WIP: port PR#2199 to master into 5.x

* port PR#2199 to master to 5.x - env.variables.md

* port PR#2199 to master to 5.x - config.spec

* Update config.spec.ts

* Update config.spec.ts

* fix format

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-02-14 21:05:59 +01:00
renovate[bot]
63fc4d1baf fix(deps): update dependency @verdaccio/commons-api to v10.2.0 (#2986)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-13 12:22:50 +01:00
renovate[bot]
1db0a2ebf5 fix(deps): update dependency @verdaccio/local-storage to v10.2.0 (#2987)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-13 11:53:35 +01:00
renovate[bot]
92dca9887a chore(deps): update dependency verdaccio-auth-memory to v10.2.0 (#2982)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-13 09:54:52 +01:00
renovate[bot]
2cd4a3bb07 fix(deps): update dependency marked to v4.0.12 (#2976)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-07 22:00:45 +01:00
Juan Picado
09e8afcc8c chore(release): 5.5.2 2022-01-27 07:45:14 +01:00
Martin Sander
b964c0d488 fix: re-opening log files using SIGUSR2 (#2966)
by @marvinthepa
2022-01-26 20:25:34 +01:00
Juan Picado
c40d01a0ea chore(release): 5.5.1 2022-01-24 21:25:08 +01:00
Juan Picado
de7713ecc1 fix: remove engines restriction from ui-theme dependency 2022-01-24 21:22:28 +01:00
renovate[bot]
50097976ed fix(deps): update dependency marked to v4 (#2956)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-23 13:17:16 +01:00
renovate[bot]
ac4392a221 fix(deps): update dependency mime to v3 (#2957)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-23 13:12:57 +01:00
Juan Picado
e9902ecd4b chore(release): 5.5.0 2022-01-22 16:27:48 +01:00
Juan Picado
d36b8b1e00 feat: upgrade @verdaccio-ui-theme 2022-01-22 16:18:09 +01:00
Juan Picado
1a7b1ee8ad feat: add new options to the web disable login and pkg managers (#2947) 2022-01-22 10:58:04 +01:00
renovate[bot]
d6415d4dc3 chore(deps): update dependency supertest to v6.2.2 (#2938)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-22 09:50:26 +01:00
renovate[bot]
f9301d1827 chore(deps): update dependency jest-junit to v12.3.0 (#2944) 2022-01-21 21:54:07 +01:00
renovate[bot]
3a9d773415 fix(deps): update dependency verdaccio-audit to v10.1.1 (#2935) 2022-01-20 23:58:32 +01:00
renovate[bot]
8a75f8cc36 fix(deps): update dependency @verdaccio/readme to v10.2.1 (#2933)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 22:30:01 +01:00
renovate[bot]
e2eb6ce27f fix(deps): update dependency async to v3.2.3 (#2934)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 19:57:56 +01:00
renovate[bot]
8c7e39e8f3 fix(deps): update dependency @verdaccio/local-storage to v10.1.1 (#2932)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 19:05:03 +01:00
renovate[bot]
6110e51a83 chore(deps): update babel monorepo (#2929)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 18:28:18 +01:00
renovate[bot]
881367925c chore(deps): update dependency @types/express-serve-static-core to v4.17.28 (#2914)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-19 08:03:46 +01:00
renovate[bot]
b2bef8dfbc chore(deps): update dependency @octokit/rest to v18.12.0 (#2921)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-19 07:59:12 +01:00
renovate[bot]
eb65ba6e11 chore(deps): update dependency @types/http-errors to v1.8.2 (#2915)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-16 10:20:26 +01:00
renovate[bot]
ce3aa50d9a chore(deps): update dependency selfsigned to v1.10.14 (#2907)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-16 09:40:39 +01:00
renovate[bot]
d9cebcdbd9 chore(deps): update dependency @babel/register to v7.16.9 (#2911)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-16 09:12:56 +01:00
Juan Picado
b79266d54e feat: use backward compatible UI from v6 on v5 (#2912)
* feat: upgrade ui theme plugin v4

* chore: fix e2e

* fix: format

* chore: update theme ui
2022-01-15 20:51:14 +01:00
renovate[bot]
dad89bc72c chore(deps): update dependency @types/minimatch to v3.0.5 (#2894)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-13 20:21:15 +01:00
renovate[bot]
bd883cbe2b chore(deps): update dependency @types/serve-static to v1.13.10 (#2906)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-12 21:18:48 +01:00
renovate[bot]
c3849b314a chore(deps): update dependency @types/semver to v7.3.9 (#2904) 2022-01-11 18:32:07 +01:00
renovate[bot]
2bced91cd0 chore(deps): update babel monorepo to v7.16.8 (#2901) 2022-01-11 17:42:24 +01:00
renovate[bot]
511fc8f1e0 chore(deps): update dependency @types/jest to v26.0.24 (#2892)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-11 00:11:30 +01:00
renovate[bot]
ad938ac795 chore(deps): update dependency @types/request to v2.48.8 (#2895)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 22:21:44 +01:00
renovate[bot]
a99ea00c3a chore(deps): update actions/checkout action to v2.4.0 (#2896)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 22:21:30 +01:00
renovate[bot]
6ca7cced1e chore(deps): update actions/setup-node action to v2.5.1 (#2897)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 22:20:47 +01:00
renovate[bot]
9e27aa9d3c chore(deps): update dependency @types/lodash to v4.14.178 (#2893)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 00:16:37 +01:00
renovate[bot]
63c2ec1f89 chore(deps): update dependency @types/express to v4.17.13 (#2889) 2022-01-09 23:44:54 +01:00
renovate[bot]
bd738ecf60 fix(deps): update dependency fast-safe-stringify to v2.1.1 (#2891) 2022-01-09 23:21:08 +01:00
renovate[bot]
a6131f0748 chore(deps): update dependency @types/express-serve-static-core to v4.17.27 (#2890)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-09 22:44:02 +01:00
Juan Picado
22cfea0907 fix: update docker to v14.18.2 (#2888) 2022-01-09 22:15:12 +01:00
Juan Picado
ec98159c3c fix: update babel and core dependencies (#2887) 2022-01-09 22:02:47 +01:00
Juan Picado
558fcafc71 build: format code prettier, enable ci (#2886)
* fix: format code prettier, enable ci

* chore: add trivago import prettier pluggin
2022-01-09 20:51:50 +01:00
renovate[bot]
23d0bd7056 fix(deps): update all non-major linting dependencies (5.x) (#2885)
* fix(deps): update all non-major linting dependencies

* fix lint issues

* chore: increase timeout

* chore: increase timeout

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-01-09 20:31:26 +01:00
renovate[bot]
1ec77e7605 fix(deps): update dependency pino to v6.13.4 (#2829) 2021-12-31 15:08:57 +01:00
Juan Picado
7423e3d008 chore(release): 5.4.0 2021-12-24 19:15:15 +01:00
Juan Picado
5b1264c733 feat: allow override user rate limit and user agent (#2803)
* feat: allow override user rate limit

- improve user_agent config allow string

* chore: fix tests

* chore: refactor userRateLimit

* chore: remove comment

* chore: optional prop

* chore: refactor limiter

* chore: refactor endpoints

* chore: fix undefined

* chore: fix params

* chore: fix params

* chore: update ui

* chore: refactor limiter

* chore: fix tests

* chore: fix test
2021-12-24 19:04:15 +01:00
Juan Picado
f64e403f0a feat: add rate limit to user api endpoints (#2800) (#2799)
* feat: add rate limit to user api endpoints

* chore: fix test

* chore: refactor token endpoint

* chore: refactor
2021-12-24 01:07:26 +01:00
Juan Picado
c91d6beb8b feat: add rate limit to web endpoints (#2799)
* feat: add rate limit to web endpoints

* fix: types express conflict

* fix: undefined issue

* fix: tests
2021-12-23 17:35:31 +01:00
Juan Picado
b2b3804f87 build: enable Node 17 on CI and npm8 on E2E (#2795)
* chore: increase ci e2e settings

* fix: ci for node 17

* chore: restore versions

* chore: fix tests

* chore: fix tests

* chore: fix domain

* chore: restore yarn on angular

* chore: rename tests

* chore: fix syntax

* chore: disable yarn angular
2021-12-23 00:14:53 +01:00
Juan Picado
e5d79ce8f0 feat: user agent is the client by default (#2793)
* feat: user agent is the client by default

* chore: get user agent fix

* chore: disable x-powered-by
2021-12-21 23:09:31 +01:00
renovate[bot]
46e583f683 fix(deps): update dependency body-parser to v1.19.1 (#2788)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-21 20:33:03 +01:00
renovate[bot]
c5c0ef8750 fix(deps): update dependency @verdaccio/commons-api to v10.1.0 (#2789)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-21 17:27:03 +01:00
Juan Picado
fd3ad1e546 feat: add cache-control header to endpoints (#2791)
Add no cache to endpoints that returns tokens in the body
2021-12-20 23:11:17 +01:00
Juan Picado
1c17d0986e feat: jwt default time new set (#2787)
Reduce 7 days to 1 hour as expiration time to improve security measures.
2021-12-20 08:09:18 +01:00
Juan Picado
e1a9bb46ff chore: add docker all hands talk 2021-12-16 18:29:04 +01:00
Juan Picado
e37e9fe15c chore(release): 5.3.2 2021-12-16 17:30:26 +01:00
贾顺名(Jarvis)
b5ac3c0f28 fix: publish with deprecated field (#2771)
* fix: publish with deprecated field by @Jiasm 

When publish with deprecated field in `package.json`, that will make all old versions miss.

Examples:

I have package@1.0.0 and package@1.0.1.

When `npm deprecate package@1.0.0 "xxx"`, Verdaccio will recived:

```json
{
  "name": "module_name",
  "version": {
    "1.0.0": {
      "deprecated": "xxx"
    },
    "1.0.1": {}
  }
}
```

⬆️ This make sense

But then publish new version with @1.0.2.

Verdaccio will recived:

```json
{
  "name": "module_name",
  "version": {
    "1.0.2": {
      "deprecated": "xxx" // if we set this field in package.json
    },
  }
}
```

and that metadata will override package.json, make old version miss.

migrate from #2766

* remove spaces

* fix: ignore empty package case

* fix: cover normal unpublish case

* refactor: Optimize check logic for lazy execution

* test: upgrade Jest Snapshot

* fix: set storage.getPackage `uplinksLook: false`.

* feat: use `_attachments` to distinguish deprecate

* test: rollback test snapshots

* test: rollback jest snapshots

* test: publish new version with deprecate field

* test: remove space
2021-12-16 16:17:52 +01:00
Juan Picado
3b2ec6cbfa chore: update readme 2021-12-15 23:25:26 +01:00
Juan Picado
f575ab767c chore(release): 5.3.1 2021-12-12 00:06:56 +01:00
Juan Picado
29d4551e5b fix: conflict core-js dependency (#2754)
* chore: remove core-js

* fix: update verdaccio core dependencies
2021-12-12 00:06:34 +01:00
Juan Picado
e747b9a3ad chore(release): 5.3.0 2021-12-08 22:29:13 +01:00
coolsp
820c9d5db2 fix: markdown anchor links in package readme.md broken #2712 2021-12-01 23:33:25 +01:00
Juan Picado
60cd25ce4f fix: update pnpm and bum up core deps (#2716) 2021-11-29 15:52:27 +01:00
renovate[bot]
8c074e8f24 fix(deps): update dependency verdaccio-audit to v10.0.3 (#2710)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-28 15:47:50 +01:00
renovate[bot]
74d7d02c39 fix(deps): update dependency @verdaccio/streams to v10.0.1 (#2709)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-28 15:47:35 +01:00
renovate[bot]
41cadccaef fix(deps): update dependency @verdaccio/readme to v10.0.1 (#2708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 18:20:41 +01:00
renovate[bot]
73d565f5f5 fix(deps): update dependency @verdaccio/commons-api to v10.0.2 (#2706)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 18:20:21 +01:00
renovate[bot]
8e2884836b fix(deps): update dependency verdaccio-htpasswd to v10.0.1 (#2711) 2021-11-27 17:48:33 +01:00
renovate[bot]
eee19a5f79 fix(deps): update dependency http-errors to v1.8.1 (#2705)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 16:57:38 +01:00
Juan Picado
46a4e8e2e0 chore(release): 5.2.2 2021-11-08 10:33:44 +01:00
Juan Picado
0eab3e1746 fix: update python dependency on docker image (#2644) 2021-11-08 10:17:47 +01:00
Juan Picado
4fc5b59eca chore(release): 5.2.1 2021-11-08 09:15:33 +01:00
renovate[bot]
bfa7b34994 chore(deps): update dependency standard-version to v9.3.2 (#2637)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 16:59:41 +01:00
renovate[bot]
089796ca47 fix(deps): update dependency mime to v2.6.0 (#2634)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 07:17:07 +01:00
renovate[bot]
ef2fbff755 fix(deps): update dependency validator to v13.7.0 (#2635)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-05 07:03:37 +01:00
renovate[bot]
c6458f4ad6 chore(deps): update babel monorepo to v7.16.0 (#2631)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-04 19:47:38 +01:00
renovate[bot]
da5d7e96cb fix(deps): update dependency async to v3.2.2 (#2633)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-04 18:54:33 +01:00
Juan Picado
57bd5169f9 test: system test add logging for debuggin 2021-10-24 10:15:54 +02:00
Juan Picado
80dca8d96e chore(release): 5.2.0 2021-10-24 09:54:57 +02:00
Juan Picado
247a317ca0 feat: upgrade node docker to 14.18.1 (#2579) 2021-10-24 09:54:39 +02:00
renovate[bot]
384b3e2ce5 fix(deps): update dependency pino to v6.13.3 (#2562) 2021-10-24 08:43:00 +02:00
renovate[bot]
69091d15fb fix(deps): update dependency dayjs to v1.10.7 (#2565)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-23 11:34:29 +02:00
renovate[bot]
6a78ae0045 fix(deps): update dependency clipanion to v3.1.0 (#2561)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-22 08:17:32 +02:00
renovate[bot]
5d4e3a65ba chore(deps): update babel monorepo (#2563)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-22 08:00:10 +02:00
Juan Picado
c81458bb0d chore(release): 5.1.6 2021-09-21 20:32:28 +02:00
Juan Picado
9d7ddd9ecd fix: update dependencies security update (#2453) 2021-09-21 20:32:20 +02:00
Juan Picado
b4a5ffe9a0 chore(release): 5.1.5 2021-09-17 22:26:02 +02:00
Juan Picado
360bec9b53 fix: add finish language to ui (#2443) 2021-09-17 22:25:53 +02:00
Juan Picado
b993344c40 chore(release): 5.1.4 2021-09-07 21:21:15 +02:00
Juan Picado
2c590917b1 fix: npm7 audit fix and bulk endpoint (#2426)
* fix: npm7 audit fix and bulk endpoint

* chore: update registry

* chore: update registry
2021-09-07 21:19:44 +02:00
Juan Picado
1308ab295d chore(release): 5.1.3 2021-08-20 08:31:27 +02:00
Juan Picado
d63dcc02fa fix: update docker base image to v14.17.5 2021-08-20 08:30:59 +02:00
Juan Picado
7d9fcfb5e3 chore: disable release note steps 2021-08-20 08:28:41 +02:00
Juan Picado
2e995f5981 fix: update docker and core dependencies (#2375)
* fix: update docker base to node:14.17.5

* fix: update base dependencies

* chore: change to node:14.17.4
2021-08-12 07:56:20 +02:00
weifan she
ecfc4c3304 fix: plugin allow_publish (pkg) got a undefined version (#2315) 2021-08-12 07:41:00 +02:00
VerdaccioBot
a09a041754 Update README.md 2021-08-06 21:35:31 +02:00
Juan Picado
bab7a7f6bc chore(release): 5.1.2 2021-07-14 20:25:44 +02:00
Juan Picado
29240544b1 fix: remove token experiment flag (#2332) 2021-07-14 20:22:15 +02:00
Juan Picado
7180338c44 fix: update dependencies (#2333) 2021-07-14 20:21:41 +02:00
Juan Picado
2bc590895c fix: update docker base image node 14.17.3 2021-07-14 19:57:46 +02:00
Juan Picado
b8f711afab fix: update docker base image node 14.17.1 (#2314)
* fix: update docker base image node 14.17.2

* fix: update docker base image node 14.17.1
2021-07-03 13:09:37 +02:00
Juan Picado
4fe8ddf7c7 fix: update dependencies (#2303) 2021-06-23 19:39:20 +02:00
Juan Picado
b421ed87c4 fix: update dependencies (#2291)
* chore: update deps

* chore: restore jest
2021-06-12 07:59:26 +02:00
Juan Picado
da810f4a18 chore: fix release script (#2289)
* chore: fix release script

* chore: fix lint

* chore: restore file
2021-06-12 07:39:33 +02:00
Juan Picado
f272c11c48 chore(release): 5.1.1 2021-06-12 06:22:51 +02:00
Juan Picado
558dd3f3c6 fix: add logger fatal if fails on startup (#2288)
fix #2287
2021-06-12 06:19:26 +02:00
Juan Picado
38ca095fb0 fix: improve get headers from request #2190 (#2271)
* fix: improve request header handling

* chore: fix test

* chore: apply suggestion
2021-05-26 20:07:13 +02:00
Juan Picado
b5ee7039e3 chore(release): 5.1.0 2021-05-24 08:33:50 +02:00
Juan Picado
f1cfae4d35 chore: remove prepublish 2021-05-24 08:31:00 +02:00
Juan Picado
b2d6f3657a chore: add missing dependency 2021-05-24 08:23:45 +02:00
Juan Picado
2d7d8143e9 chore: remove try catch not need it 2021-05-22 14:49:11 +02:00
Juan Picado
8434cc550f fix: restore using local path web logo (#2270)
* fix: logo loaded locally

* chore: fix lint
2021-05-22 14:46:47 +02:00
Juan Picado
1e4c900dcb fix: update core dependencies (#2269) 2021-05-22 09:57:07 +02:00
Juan Picado
4ed7286bcb feat: update Node.js docker image 14.17.0 (#2247) 2021-05-15 16:54:45 +02:00
Juan Picado
251bd95373 feat: implement search v1 endpoint (#2256)
* feat: implement search v1 endpoint

* add allow_access

* chore: add types

* chore: format

* fix eslint prettier

* chore: add tests

* add tests

* chore: add npm search cli
2021-05-15 16:39:03 +02:00
Juan Picado
6be108917e chore: update dependencies (#2255) 2021-05-14 08:27:54 +02:00
Juan Picado
f168b2512e chore: disable yarn local cache enableGlobalCache (#2254)
* chore: add yarn local  cache

* update list files docker publish

* add example extending with plugins and yarn2
2021-05-14 08:04:19 +02:00
Juan Picado
69d7df20d8 build: enable pnp yarn2 (#2253)
* chore: enable pnp yarn

* chore: ignore pnp

* fix type issues on run eslint

* add missing dependency and fix some errors

* fix most of the errors

some were just disabled, already fixed in master

* add missing jest-config

* update jest@26 align with other deps

* add missing @babel/register

* clean up

* use yarn node

* use yarn node on release

* chore: add husky 6

* chore: add husky 6

* chore: lint-stage

* chore: test

* chore: add hook git

* chore: test

* chore: test

* update deps

* chore: fix commit lint

* fix docker run

* update git ignore
2021-05-13 23:13:57 +02:00
Juan Picado
351ea89df6 chore: update yarn@2.4.1 (#2252)
* feat: update Node.js docker image 14.17.0

* chore: update yarn2

* feat: restore file

* chore: update docker file ignore
2021-05-13 17:41:20 +02:00
Favo Yang
78d04cf9f8 feat: tarball url redirect (#1688)
* feat: tarball url redirect

* fix: handle uplinks

* feat: allow function for config.tarball_url_redirect

* fix:  hasLocalTarball was calling localStream,abort when already aborted

* chore: simplify localStream null check in hasLocalTarball

As requested in PR feedback.

* chore: fix sonarcloud code smell on test

the variable `credentials` was already declared before the tarball url tests.

* fix: move tarball_url_redirect to experiments

Co-authored-by: Gord Lea <johlea@cisco.com>
Co-authored-by: Gord Lea <jgordonlea@gmail.com>
2021-05-03 20:53:00 +02:00
Juan Picado
255650b91a chore(release): 5.0.4 2021-04-28 07:19:25 +02:00
Claude
01c5d2ca27 fix: scoped query support (#2208) 2021-04-28 07:18:30 +02:00
Juan Picado
6fb388e366 chore(release): 5.0.3 2021-04-27 22:33:40 +02:00
Juan Picado
ced47d56fc fix: update @verdaccio/ui-theme (#2207) 2021-04-27 22:28:01 +02:00
Juan Picado
848c0ee499 chore(release): 5.0.2 2021-04-27 19:53:38 +02:00
Claude
d8b62cff53 fix: incorrect sanity check for theme plugin (#2205) 2021-04-27 19:53:12 +02:00
Juan Picado
825c1fc688 Update README.md 2021-04-22 22:55:05 +02:00
Juan Picado
8074bae190 chore: remove workflow
not need it on 5.x
2021-04-21 22:36:05 +02:00
Juan Picado
aae3e4356b chore: test on node 16 2021-04-21 21:44:12 +02:00
Juan Picado
6a1cdeaec4 chore(release): 5.0.1 2021-04-10 11:13:03 +02:00
Juan Picado
782dd1ca93 fix: logo and favicon configuration (#2180) 2021-04-10 11:09:50 +02:00
Juan Picado
e56fd19968 chore: prepare 5.x 2021-04-09 18:38:26 +02:00
2481 changed files with 164588 additions and 415162 deletions

View File

@@ -1,18 +0,0 @@
{
"presets": [
[
"@babel/env",
{
"targets": {
"node": 12
}
}
],
"@babel/typescript"
],
"ignore": ["**/*.d.ts"],
"plugins": [
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
]
}

View File

@@ -1,8 +0,0 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md)

View File

@@ -1,6 +0,0 @@
---
'@verdaccio/ui-components': patch
'@verdaccio/ui-theme': patch
---
- fixed login state when token is expired (@ku3mi41 in #3980)

View File

@@ -1,44 +0,0 @@
---
'@verdaccio/api': major
'@verdaccio/auth': major
'@verdaccio/cli': major
'@verdaccio/config': major
'@verdaccio/core': major
'@verdaccio/file-locking': major
'@verdaccio/tarball': major
'@verdaccio/types': major
'@verdaccio/url': major
'@verdaccio/hooks': major
'@verdaccio/loaders': major
'@verdaccio/logger': major
'@verdaccio/logger-7': major
'@verdaccio/logger-commons': 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/search': major
'@verdaccio/server': major
'@verdaccio/server-fastify': major
'@verdaccio/signature': major
'@verdaccio/cli-standalone': major
'@verdaccio/store': major
'docusaurus-plugin-contributors': major
'@verdaccio/eslint-config': major
'@verdaccio/test-helper': major
'customprefix-auth': major
'@verdaccio/ui-components': major
'@verdaccio/utils': major
'verdaccio': major
'@verdaccio/web': major
'@verdaccio/website': major
'@verdaccio/local-publish': patch
---
feat!: bump to v7

View File

@@ -1,6 +0,0 @@
---
'@verdaccio/ui-theme': patch
---
- added `onClick` prop to `Link` component in @verdaccio/ui-components. (@moglerdev in #3989)
- resolved issue in the `Package` component where the download button was incorrectly opening a new tab to the homepage. (@moglerdev in #3989)

View File

@@ -1,18 +0,0 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [
[
"verdaccio",
"@verdaccio/cli",
"@verdaccio/core",
"@verdaccio/config",
"@verdaccio/node-api",
"@verdaccio/ui-theme"
]
],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch"
}

View File

@@ -1,6 +0,0 @@
---
'@verdaccio/ui-theme': patch
'@verdaccio/ui-components': patch
---
fix: display labels for engine versions

View File

@@ -1,15 +0,0 @@
---
'@verdaccio/ui-theme': minor
'@verdaccio/ui-components': minor
---
feat: ui improvements
Some UI improvements
- download progress indicator: https://github.com/verdaccio/verdaccio/discussions/4068
- fix dark mode and readme css support https://github.com/verdaccio/verdaccio/discussions/3942 https://github.com/verdaccio/verdaccio/discussions/3467
- fix global for yarn packages and add version to the packages on copy
- feat: hide deprecated versions option
- fix: improve deprecated package style
- feat: display deprecated versions

View File

@@ -1,18 +0,0 @@
---
'@verdaccio/config': minor
'@verdaccio/core': minor
'@verdaccio/file-locking': minor
'@verdaccio/tarball': minor
'@verdaccio/url': minor
'@verdaccio/logger-7': minor
'@verdaccio/logger-commons': minor
'@verdaccio/logger-prettify': minor
'@verdaccio/middleware': minor
'verdaccio-audit': minor
'verdaccio-htpasswd': minor
'@verdaccio/search': minor
'@verdaccio/signature': minor
'@verdaccio/utils': minor
---
restore legacy support

View File

@@ -1,36 +0,0 @@
---
'@verdaccio/api': major
'@verdaccio/auth': major
'@verdaccio/cli': major
'@verdaccio/config': major
'@verdaccio/core': major
'@verdaccio/file-locking': major
'@verdaccio/tarball': major
'@verdaccio/types': major
'@verdaccio/url': major
'@verdaccio/hooks': major
'@verdaccio/loaders': major
'@verdaccio/logger': major
'@verdaccio/logger-commons': 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/search': major
'@verdaccio/server': major
'@verdaccio/server-fastify': major
'@verdaccio/signature': major
'@verdaccio/store': major
'@verdaccio/ui-components': major
'@verdaccio/utils': major
'verdaccio': major
'@verdaccio/web': major
---
update major dependencies, remove old nodejs support

View File

@@ -1,72 +0,0 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"@verdaccio/test-cli-commons": "1.1.0",
"@verdaccio/e2e-cli-npm6": "1.0.1",
"@verdaccio/e2e-cli-npm7": "1.0.1",
"@verdaccio/e2e-cli-npm8": "1.0.1",
"@verdaccio/e2e-cli-npm9": "1.0.1",
"@verdaccio/e2e-cli-pnpm6": "1.0.1",
"@verdaccio/e2e-cli-pnpm7": "1.0.1",
"@verdaccio/e2e-cli-pnpm8": "1.0.1",
"@verdaccio/e2e-cli-yarn1": "1.0.1",
"@verdaccio/e2e-cli-yarn2": "1.0.1",
"@verdaccio/e2e-cli-yarn3": "1.0.1",
"@verdaccio/e2e-cli-yarn4": "1.0.1",
"@verdaccio/e2e-ui": "2.0.0",
"@verdaccio/api": "6.0.0",
"@verdaccio/auth": "6.0.0",
"@verdaccio/cli": "6.0.0",
"@verdaccio/config": "6.0.0",
"@verdaccio/core": "6.0.0",
"@verdaccio/file-locking": "11.0.0",
"@verdaccio/tarball": "11.0.0",
"@verdaccio/types": "11.0.0",
"@verdaccio/url": "11.0.0",
"@verdaccio/hooks": "6.0.0",
"@verdaccio/loaders": "6.0.0",
"@verdaccio/logger": "6.0.0",
"@verdaccio/logger-7": "6.0.0",
"@verdaccio/logger-commons": "6.0.0",
"@verdaccio/logger-prettify": "6.0.0",
"@verdaccio/middleware": "6.0.0",
"@verdaccio/node-api": "6.0.0",
"verdaccio-audit": "11.0.0",
"verdaccio-auth-memory": "11.0.0",
"verdaccio-htpasswd": "11.0.0",
"@verdaccio/local-storage": "11.0.0",
"verdaccio-memory": "11.0.0",
"@verdaccio/ui-theme": "6.0.0",
"@verdaccio/proxy": "6.0.0",
"@verdaccio/search": "6.0.0",
"@verdaccio/server": "6.0.0",
"@verdaccio/server-fastify": "6.0.0",
"@verdaccio/signature": "6.0.0",
"@verdaccio/cli-standalone": "6.0.0",
"@verdaccio/store": "6.0.0",
"docusaurus-plugin-contributors": "1.0.1",
"@verdaccio/eslint-config": "2.0.0",
"@verdaccio/test-helper": "2.0.0",
"@verdaccio/crowdin-translations": "1.0.0",
"customprefix-auth": "1.0.0",
"@verdaccio/ui-components": "2.0.0",
"@verdaccio/utils": "6.0.0",
"verdaccio": "6.0.0",
"@verdaccio/web": "6.0.0",
"@verdaccio/website": "5.20.2",
"@verdaccio/local-publish": "0.0.1"
},
"changesets": [
"angry-trees-tie",
"breezy-mayflies-pull",
"chilled-carrots-guess",
"eight-squids-judge",
"long-jars-collect",
"old-turkeys-heal",
"perfect-chairs-act",
"shiny-worms-retire",
"shy-garlics-cry",
"weak-fans-explain"
]
}

View File

@@ -1,5 +0,0 @@
---
'@verdaccio/search': patch
---
fix: keyword undefined errors

View File

@@ -1,5 +0,0 @@
---
'@verdaccio/signature': patch
---
chore: export signature options type

View File

@@ -1,5 +0,0 @@
---
'@verdaccio/server': patch
---
fix: Avoid 404 error when getting favicon from root

View File

@@ -8,22 +8,22 @@
.*
# you can add exceptions like in .gitignore to maintain a whitelist:
# e.g.
!.babelrc
!.eslintrc
!.prettierrc.json
!.prettierignore
!babel.config.js
!eslintrc.js
!.prettierrc
!.eslintignore
!.stylelintrc
!.jest.config.js
!.jestEnvironment.js
!.yarnrc.yml
!.yarn/releases/yarn-*.cjs
!.yarn/plugins/*
!.pnp.js
# do not copy over node_modules we will run `pnpm install` anyway
# just in case, yarn 2 pnp is enabled
node_modules
website
jest
docs
contrib
docker-examples
website
systemd
.husky/
.git/
# output from test runs and similar things
*.log
@@ -33,7 +33,21 @@ coverage/
# IDE config files
jsconfig.json
*.iml
# let's not get too recursive ;)
Dockerfile*
docker-compose*.yaml
.github/
.husky/
*.log
coverage/
.vscode/
*.md
contrib/
docs/
docker-examples/
systemd/
assets/
jest*.js
test/
wiki/
debug/

View File

@@ -7,7 +7,6 @@ end_of_line = lf
insert_final_newline = true
# 2 space indentation
[{.,}*.{ts,tsx,js,jsx,yml,yaml}]
[{.,}*.{js,jsx,yml,yaml}]
indent_style = space
indent_size = 2
quote_type = single

View File

@@ -1,20 +1,25 @@
**/fixtures/**
**/mock/store/**
**/partials/**
**/types/custom.d.ts
build/
# files
node_modules
coverage/
node_modules/
static/
website/
wiki/
dist/
docs/
test/functional/store/*
docker-examples/**/lib/**/*.js
test/cli/e2e-yarn4/bin/yarn-4.0.0-rc.14.cjs
yarn.js
# storybook
packages/ui-components/storybook-static
dist.js
bundle.js
static/
flow-typed/
website/
build/
Dockerfile
test/unit/partials/
types/custom.d.ts
LICENSE
.pnp.js
# extensions
*.md
*.lock
*.yaml
*.rpi
*.html
*.scss
*.png
*.jpg
*.sh
*.ico

View File

@@ -1,3 +0,0 @@
module.exports = {
extends: ['@verdaccio/eslint-config'],
};

199
.gitattributes vendored
View File

@@ -1,199 +0,0 @@
## GITATTRIBUTES FOR WEB PROJECTS
#
# These settings are for any web project.
#
# Details per file setting:
# text These files should be normalized (i.e. convert CRLF to LF).
# binary These files are binary and should be left untouched.
#
# Note that binary is a macro for -text -diff.
######################################################################
# Auto detect
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=lf
# Source code
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text eol=lf
*.css text eol=lf
*.htm text diff=html
*.html text diff=html
*.inc text eol=lf
*.ini text eol=lf
*.js text eol=lf
*.json text eol=lf
*.jsx text eol=lf
*.less text eol=lf
*.ls text eol=lf
*.map text -diff
*.od text eol=lf
*.onlydata text eol=lf
*.php text diff=php
*.pl text eol=lf
*.ps1 text eol=crlf
*.py text diff=python
*.rb text diff=ruby
*.sass text eol=lf
*.scm text eol=lf
*.scss text diff=css
*.sh text eol=lf
*.sql text eol=lf
*.styl text eol=lf
*.tag text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.xml text eol=lf
*.xhtml text diff=html
# Docker
Dockerfile text eol=lf
# Documentation
*.ipynb text eol=lf
*.markdown text eol=lf
*.md text eol=lf
*.mdwn text eol=lf
*.mdown text eol=lf
*.mkd text eol=lf
*.mkdn text eol=lf
*.mdtxt text eol=lf
*.mdtext text eol=lf
*.txt text eol=lf
AUTHORS text eol=lf
CHANGELOG text eol=lf
CHANGES text eol=lf
CONTRIBUTING text eol=lf
COPYING text eol=lf
copyright text eol=lf
*COPYRIGHT* text eol=lf
INSTALL text eol=lf
license text eol=lf
LICENSE text eol=lf
NEWS text eol=lf
readme text eol=lf
*README* text eol=lf
TODO text eol=lf
# Templates
*.dot text eol=lf
*.ejs text eol=lf
*.haml text eol=lf
*.handlebars text eol=lf
*.hbs text eol=lf
*.hbt text eol=lf
*.jade text eol=lf
*.latte text eol=lf
*.mustache text eol=lf
*.njk text eol=lf
*.phtml text eol=lf
*.tmpl text eol=lf
*.tpl text eol=lf
*.twig text eol=lf
*.vue text eol=lf
# Configs
*.cnf text eol=lf
*.conf text eol=lf
*.config text eol=lf
.editorconfig text eol=lf
.env text eol=lf
.gitattributes text eol=lf
.gitconfig text eol=lf
.htaccess text eol=lf
*.lock text -diff
package-lock.json text -diff
*.toml text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
browserslist text eol=lf
Makefile text eol=lf
makefile text eol=lf
# Heroku
Procfile text eol=lf
# Graphics
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.gifv binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
# SVG treated as an asset (binary) by default.
*.svg text eol=lf
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary
# Audio
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary
# Video
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary
# Archives
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary
# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
# Executables
*.exe binary
*.pyc binary
# RC files (like .babelrc or .eslintrc)
*.*rc text eol=lf
# Ignore files (like .npmignore or .gitignore)
*.*ignore text eol=lf

View File

@@ -6,31 +6,10 @@ title: ''
assignees: ''
---
<!-- PLEASE READ THIS:
- If you are not sure is a bug, OPEN a DISCUSSION, if is a legitimate bug, is easy to create a bug from a discussion.
- Empty reports won't be considered and eventually be closed by a bot.
- Include debugging notes will help to fix it faster, HOW TO: https://github.com/verdaccio/verdaccio/wiki/Debugging-Verdaccio
- If you remove this template, ticket will be closed immediately.
- No English perfect is required, use public translators if is need it, we will do our best to help you.
- Extra bonus: The most complete this report is delivered, the faster you will get a response.
- Extra bonus: include screenshots, logs (remove sensitive data).
- If you are willing to fix it, there is a checkbox at the bottom.
-->
**Your Environment**
<!-- bug below the version 5.x will be closed, see SECURITY.md for more details -->
* **verdaccio version**: 5.x.x
* **node version** [12.x.x, 14.x.x]:
* **package manager**: [npm@7, pnpm@6, yarn@2]
* **os**: [mac, windows@10, linux]
* **platform**: [npm, docker, helm, other]
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
**To Reproduce**
<!-- IMPORTANT:
- How to reproduce the issue
- Steps to reproduce the issue
@@ -39,11 +18,9 @@ Be aware, the lack of reproducible steps the issue might cause your ticket to be
-->
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
**Screenshots, server logs, package manager log**
**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->
**Configuration File (cat ~/.config/verdaccio/config.yaml)**
@@ -51,21 +28,16 @@ Be aware, the lack of reproducible steps the issue might cause your ticket to be
<!-- Please be careful do not leak any sensitive information, remove tokens -->
**Environment information**
<!-- Please paste the results of running `verdaccio --info` -->
**Debugging output**
- `$ NODE_DEBUG=request verdaccio` display request calls (verdaccio <--> uplinks)
- `$ DEBUG=verdaccio* verdaccio` enable extreme verdaccio debug mode (verdaccio api)
- `$ npm -ddd` prints:
- `$ npm config get registry` prints:
**Contribute to Verdaccio**
- [ ] I'm willing to fix this bug 🥇
- `$ NODE_DEBUG=request verdaccio` display request calls (verdaccio <--> uplinks)
- `$ DEBUG=express:* verdaccio` enable extreme verdaccio debug mode (verdaccio api)
- `$ npm -ddd` prints:
- `$ npm config get registry` prints:
<!--
IMPORTANT: please do not attach external files, all content should be visible from any device.
-->

View File

@@ -7,5 +7,8 @@ contact_links:
url: https://github.com/verdaccio/verdaccio/security/policy
about: I want to report a security vulnerability
- name: Chat 🏘
url: https://discord.gg/7qWJxBf
about: Quick question? Try out Discord chat, you can get faster feedback
url: http://chat.verdaccio.org
about: For a quick question you should do it through our community chat
- name: User Interface Report 👩🏼‍🎨👨🏼‍🎨
url: https://github.com/verdaccio/ui/issues/new/choose
about: Any report related with the User Interface should be posted in another repository

View File

@@ -1,24 +1,21 @@
---
name: 'Feature Request 🔮'
name: "Feature Request \U0001F52E"
about: You want a feature request.
title: ''
labels: 'topic: feature request'
assignees: ''
---
<!--
IMPORTANT: If you don't have an action plan, please consider create a DISCUSSION (idea) instead for an open a feature request issue.
https://github.com/verdaccio/verdaccio/discussions/new
Verdaccio is a project addressed for voluntaries, if you appreciate this project consider to donate.
1$/5$ or custom amount single contribution
or monthly
1$/month - minimal contribution
5$/month - nice contribution
500$ - help to promote this project, marketing, stickers.
2000$/year - sponsor status, your company logo will be in our readme, meetups talks and your request will have high priority
https://github.com/sponsors/verdaccio
https://opencollective.com/verdaccio
As reminder, the Open Source must be sustainable.
-->

View File

@@ -5,21 +5,23 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: 'weekly'
interval: "weekly"
# Maintain dependencies for npm
- package-ecosystem: 'npm'
directory: '/'
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: 'daily'
allow:
- dependency-name: '@verdaccio/*'
- dependency-name: 'verdaccio-*'
interval: "daily"
allow:
- dependency-name: "@verdaccio/*"
- dependency-name: "verdaccio-*"
assignees:
- 'verdacciobot'
- "verdacciobot"
labels:
- 'bot: dependencies'
- "bot: dependencies"

View File

@@ -1,39 +0,0 @@
name: E2E Docker Proxy Plugins Test
on:
workflow_dispatch:
push:
branches:
- 'master'
schedule:
# run every sunday
- cron: '0 0 * * 0'
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/docker-build-install-plugin/docker-compose.yaml" up -d --build
- name: Install node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: 18
- name: verdaccio cli
run: npm install -g verdaccio --registry=http://localhost:4873
- name: gastby cli
run: npm install -g gatsby-cli --registry http://localhost:4873
- name: netlify cli
run: npm install -g netlify-cli --registry http://localhost:4873
- name: angular cli
run: npm install -g @angular/cli --registry http://localhost:4873
- name: Stop containers
if: always()
run: docker-compose -f "./e2e/docker/docker-build-install-plugin/docker-compose.yaml" down

View File

@@ -1,131 +0,0 @@
on:
schedule:
- cron: '0 3 * * 5'
pull_request:
branches:
- '**'
name: 'E2E Angular CLI with verdaccio'
jobs:
# todo: fix yarn global issue, cannot find ng
# yarn:
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest]
#
# name: '${{ matrix.os }} / yarn:angular example'
# runs-on: ${{ matrix.os }}
#
# steps:
# - uses: actions/checkout@v2.3.1
#
# - name: 'Use Node.js 10.x'
# uses: actions/setup-node@v2.1.1
# with:
# node-version: 10.x
# - name: Install Dependencies
# run: yarn install --pure-lockfile
# - name: 'Run verdaccio in the background'
# run: |
# nohup node ./scripts/run-verdaccio.js &
# - name: 'Ping to verdaccio'
# run: |
# npm ping --registry http://localhost:4873
# - name: 'Running the integration test'
# run: |
# source scripts/e2e-setup-ci.sh
# yarn init --yes
#
# yarn global add @angular/cli
# which nodemon
# ng new verdaccio-angular --interactive=false
#
# cd verdaccio-angular
# echo "registry=http://localhost:4873" > ~/.npmrc
# yarn add @angular-devkit/core@next @babel/preset-env @babel/core -D
#
# ng build --aot
npm:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / npm:angular example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: 'Use Node.js 10.x'
uses: actions/setup-node@v2.1.1
with:
node-version: 10.x
- name: 'install latest npm'
run: npm i -g npm
- name: Install Dependencies
run: yarn install --pure-lockfile
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873" > ~/.npmrc
npm config set loglevel="http"
npm config set fetch-retries="5"
npm config set fetch-retry-factor="50"
npm config set fetch-retry-mintimeout="20000"
npm config set fetch-retry-maxtimeout="80000"
npm install -g @angular/cli
ng new verdaccio-angular --interactive=false
cd verdaccio-angular
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
npm run ng build --aot
# pnpm throws errors worth to check why
# pnpm:
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest]
#
# name: '${{ matrix.os }} / pnpm:angular example'
# runs-on: ${{ matrix.os }}
#
# steps:
# - uses: actions/checkout@v2.3.1
#
# - name: 'Use Node.js 10.x'
# uses: actions/setup-node@v2.1.1
# with:
# node-version: 10.x
# - name: 'install latest pnpm'
# run: npm i -g pnpm
# - name: Install Dependencies
# run: yarn install --pure-lockfile
# - name: 'Run verdaccio in the background'
# run: |
# nohup node ./scripts/run-verdaccio.js &
# - name: 'Ping to verdaccio'
# run: |
# pnpm ping --registry http://localhost:4873
# - name: 'Running the integration test'
# run: |
# source scripts/e2e-setup-ci.sh
# pnpm init --force
#
# pnpm install -g @angular/cli
# ng new verdaccio-angular --interactive=false
#
# cd verdaccio-angular
# echo "registry=http://localhost:4873" > ~/.npmrc
# pnpm install @angular-devkit/core@next @babel/preset-env @babel/core -D
#
# pnpm run ng build --aot

View File

@@ -1,49 +0,0 @@
on:
schedule:
- cron: '0 3 * * 5'
pull_request:
branches:
- '**'
name: 'E2E Gatsby.js CLI with verdaccio'
jobs:
npm:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / npm:gatsby example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.3
- name: 'Use Node.js 14.x'
uses: actions/setup-node@v2.1.5
with:
node-version: 14.x
- name: 'install latest npm'
run: npm i -g npm@latest-6
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
echo "registry=http://localhost:4873
loglevel="silent"
fetch-retries=10
fetch-retry-factor=2
fetch-retry-mintimeout=10000
fetch-retry-maxtimeout=80000" > ~/.npmrc
npm config list
npm i -g gatsby
gatsby new my-gatsby
cd my-gatsby
npm run build

View File

@@ -1,121 +0,0 @@
on:
schedule:
- cron: '0 3 * * 5'
pull_request:
branches:
- '**'
name: 'E2E Jest with verdaccio'
jobs:
yarn:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / yarn:jest example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: 'Use Node.js 10.x'
uses: actions/setup-node@v2.1.1
with:
node-version: 10.x
- name: Install Dependencies
run: yarn install --pure-lockfile
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
yarn init --yes
yarn add jest --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
npm:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / npm:jest example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: 'Use Node.js 10.x'
uses: actions/setup-node@v2.1.1
with:
node-version: 10.x
- name: 'install latest npm'
run: npm i -g npm
- name: Install Dependencies
run: yarn install --pure-lockfile
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
npm init --force
npm install jest --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js
pnpm:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: '${{ matrix.os }} / pnpm:jest example'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: 'Use Node.js 10.x'
uses: actions/setup-node@v2.1.1
with:
node-version: 10.x
- name: 'install latest pnpm'
run: npm i -g pnpm
- name: Install Dependencies
run: yarn install --pure-lockfile
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
pnpm ping --registry http://localhost:4873
- name: 'Running the integration test'
run: |
source scripts/e2e-setup-ci.sh
pnpm init --force
pnpm install jest --registry http://localhost:4873
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
yarn jest pass.test.js
yarn add left-pad --registry http://localhost:4873 --verbose
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
yarn jest module.test.js

View File

@@ -1,13 +0,0 @@
name: Test local registry for js vulnerabilities
on:
schedule:
- cron: '0 4 * * 4'
jobs:
security:
runs-on: ubuntu-latest
steps:
- name: Test for public javascript library vulnerabilities
uses: lirantal/is-website-vulnerable@1.15.10
with:
scan-url: 'https://registry.verdaccio.org'

View File

@@ -1,35 +0,0 @@
name: Canary Release to Verdaccio
on:
pull_request:
paths:
- .github/workflows/release-canary.yml
- 'packages/**'
- 'package.json'
- 'lerna.json'
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node (latest)
uses: actions/setup-node@v1
with:
node_version: 13
- name: Install
run: yarn --frozen-lockfile
- name: Clean
run: yarn clean
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Publish
run: |
echo "//registry.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc
git update-index --assume-unchanged .npmrc
yarn publish:canary

14
.github/lock.yml vendored
View File

@@ -13,10 +13,10 @@ lockLabel: false
lockComment: >
🤖This thread has been automatically locked 🔒 since there has not been
any recent activity after it was closed.
We lock tickets after 90 days with the idea to encourage you to open a ticket with new fresh data
and to provide you better feedback 🤝and better visibility 👀.
If you consider, you can attach this ticket 📨 to the new one as a reference for better context.
Thanks for being a part of the Verdaccio community! 💘
@@ -26,10 +26,10 @@ lockComment: >
# Optionally, specify configuration settings just for `issues` or `pulls`
issues:
exemptLabels:
- help-wanted
lockLabel: outdated
exemptLabels:
- help-wanted
lockLabel: outdated
pulls:
daysUntilLock: 90
lockLabel: outdated
daysUntilLock: 90
lockLabel: outdated

18
.github/stale.yml vendored
View File

@@ -1,7 +1,7 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 365
daysUntilStale: 15
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 500
daysUntilClose: 10
# Issues with these labels will never be considered stale
exemptLabels:
- dev: high priority
@@ -10,17 +10,17 @@ exemptLabels:
- issue: bug
- dev: discuss
# Label to use when marking an issue as stale
staleLabel: 'issue: wontfix'
staleLabel: issue: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
Hi pal 👋🏼!
Hi pal 👋🏼!
This issue has gone quiet 😶.
This issue has gone quiet 😶.
We get a lot of issues, so we currently close issues after 180 days of inactivity. Its been at least 90c days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add/suggest the label "discuss" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [https://github.com/verdaccio/contributing](https://github.com/verdaccio/contributing) for more information about opening PRs, triaging issues, and contributing!
We get a lot of issues, so we currently close issues after 25 days of inactivity. Its been at least 15 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add/suggest the label "discuss" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [https://github.com/verdaccio/contributing](https://github.com/verdaccio/contributing) for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Verdaccio community! 💘
Thanks for being a part of the Verdaccio community! 💘
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

View File

@@ -1,69 +0,0 @@
name: Changesets
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- master
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
# Update package versions from changesets.
version:
timeout-minutes: 14
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
steps:
- name: checkout code repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: install pnpm
run: npm i pnpm@8.9.0 -g
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: setup pnpm config registry
run: pnpm config set registry https://registry.npmjs.org
- name: install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: crowdin download
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production
run: pnpm crowdin:download
- name: build
run: pnpm build
- name: create versions
uses: changesets/action@master
with:
version: pnpm ci:version
commit: 'chore: update versions'
title: 'chore: update versions'
publish: pnpm ci:publish
createGithubReleases: false
setupGitUser: false
env:
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

11
.github/workflows/ci-lint.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: CI Lint
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
uses: verdaccio/verdaccio/.github/workflows/yarn-ci-lint.yml@master

View File

@@ -1,150 +0,0 @@
name: CI windows
on:
workflow_dispatch:
schedule:
- cron: '5 0 * * SUN'
permissions:
contents: read
jobs:
prepare:
runs-on: ubuntu-latest
name: setup verdaccio
services:
verdaccio:
image: verdaccio/verdaccio:nightly-master
ports:
- 4873:4873
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
pnpm-
lint:
runs-on: windows-latest
name: Lint
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts
- name: Lint
run: pnpm lint
format:
runs-on: windows-latest
name: Format
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts
- name: Lint
run: pnpm format:check
build:
needs: [format, lint]
strategy:
fail-fast: true
matrix:
os: [windows-latest]
node_version: [18]
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: ${{ matrix.node_version }}
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test
run: pnpm test
ci-e2e-ui:
needs: [format, lint]
runs-on: windows-latest
name: UI Test E2E
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test UI
run: pnpm test:e2e:ui
# env:
# DEBUG: verdaccio:e2e*

View File

@@ -1,166 +1,19 @@
name: CI
on:
push:
pull_request:
paths:
- .changeset/**
- .github/workflows/ci.yml
- 'packages/**'
- 'test/**'
- 'docker-examples/**'
- 'jest/**'
- 'package.json'
- 'pnpm-workspace.yaml'
on: [push, pull_request]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}-7.x
cancel-in-progress: true
jobs:
prepare:
runs-on: ubuntu-latest
name: setup verdaccio
services:
verdaccio:
image: verdaccio/verdaccio:5
ports:
- 4873:4873
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
pnpm-
lint:
runs-on: ubuntu-latest
name: Lint
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --ignore-scripts
- name: Lint
run: pnpm lint
format:
runs-on: ubuntu-latest
name: Format
needs: prepare
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --ignore-scripts
- name: Lint
run: pnpm format:check
test:
needs: [format, lint]
build:
strategy:
fail-fast: true
fail-fast: false
matrix:
os: [ubuntu-latest]
node_version: [18, 20]
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: ${{ matrix.node_version }}
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --ignore-scripts --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test
run: pnpm test
sync-translations:
needs: [test]
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
## we need scripts, pupetter downloads aditional content
run: pnpm install --registry http://localhost:4873
- name: build
run: pnpm build
- name: generate website translations
run: pnpm --filter ...@verdaccio/website write-translations
- name: sync
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production
run: pnpm crowdin:sync
node_version: [20, 22]
uses: verdaccio/verdaccio/.github/workflows/yarn-ci.yml@master
with:
node_version: ${{ matrix.node_version }}

View File

@@ -1,59 +0,0 @@
name: 'Code scanning - action'
on:
pull_request:
paths:
- .github/workflows/codeql-analysis.yml
- 'packages/**'
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
# 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@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2

View File

@@ -1,38 +0,0 @@
name: E2E Docker Proxy Apache Test
on:
workflow_dispatch:
push:
branches:
- 'master'
schedule:
# run every sunday
- cron: '0 0 * * 0'
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" up -d --build
- name: Install node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: 18
- name: verdaccio cli
run: npm install -g verdaccio --registry http://localhost
- name: gastby cli
run: npm install -g gatsby-cli --registry http://localhost
- name: netlify cli
run: npm install -g netlify-cli --registry http://localhost
- name: angular cli
run: npm install -g @angular/cli --registry http://localhost
- name: Stop containers
if: always()
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" down

View File

@@ -1,41 +0,0 @@
name: E2E Docker Proxy Nginx Test
on:
workflow_dispatch:
push:
branches:
- 'master'
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" up -d --build
- name: Install node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: 18
- name: npm setup
run: |
npm config set fetch-retries="5"
npm config set fetch-retry-factor="50"
npm config set fetch-retry-mintimeout="20000"
npm config set fetch-retry-maxtimeout="80000"
- name: verdaccio cli
run: npm install -g verdaccio --registry http://localhost
- name: gastby cli
run: npm install -g gatsby-cli --registry http://localhost
- name: netlify cli
run: npm install -g netlify-cli --registry http://localhost
- name: angular cli
run: npm install -g @angular/cli --registry http://localhost
- name: Stop containers
if: always()
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" down

View File

@@ -1,55 +1,29 @@
name: Docker publish to docker.io
name: Docker publish to docker.io
on:
push:
paths:
- .github/workflows/docker-publish.yml
- .github/workflows/docker-publish.yml
- 'packages/**'
- 'src/**'
- 'conf/**'
- 'types/**'
- 'docker-bin/**'
- 'bin/**'
- 'package.json'
- 'pnpm-*.yaml'
- 'Dockerfile'
- '.dockerignore'
- 'yarn.lock'
- '.yarn/**'
- '.yarnrc.yaml'
- '.pnp.js'
branches:
- 'master'
- '7.x'
tags:
- 'v*'
permissions:
contents: read # to fetch code (actions/checkout)
- 'v*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # tag=v1
- uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host
- uses: docker/login-action@v1
name: Login Docker Hub
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Prepare docker image tags
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ${{ github.repository }}
tag-custom: nightly-master
tag-custom-only: ${{ github.ref == 'refs/heads/master' }}
tag-semver: |
{{version}}
{{major}}
{{major}}.{{minor}}
- name: Build & Push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
docker-publish:
secrets: inherit
uses: verdaccio/verdaccio/.github/workflows/shared-docker-publish.yml@master
with:
tag-latest: false
tag-custom: 7.x-next
tag-custom-only: ${{ github.ref == 'refs/heads/7.x' }}

View File

@@ -0,0 +1,12 @@
on:
pull_request:
push:
concurrency:
group: e2e-angular-${{ github.ref }}-7.x
cancel-in-progress: true
name: 'E2E Angular CLI with verdaccio'
jobs:
e2e:
uses: verdaccio/verdaccio/.github/workflows/x-e2e-angular-cli-workflow.yml@master

View File

@@ -0,0 +1,12 @@
on:
pull_request:
push:
concurrency:
group: e2e-audit-${{ github.ref }}-7.x
cancel-in-progress: true
name: 'Plugin Audit E2E'
jobs:
e2e:
uses: verdaccio/verdaccio/.github/workflows/x-e2e-audit-workflow.yml@master

View File

@@ -1,132 +0,0 @@
name: E2E CLI
on: [pull_request]
permissions:
contents: read
jobs:
prepare:
runs-on: ubuntu-latest
name: setup e2e verdaccio
services:
verdaccio:
image: verdaccio/verdaccio:nightly-master
ports:
- 4873:4873
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --reporter=silence --ignore-scripts --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
restore-keys: |
pnpm-
build:
needs: [prepare]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node 16
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --reporter=silence --registry http://localhost:4873
- name: build
run: pnpm build
- name: Cache packages
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
id: cache-packages
with:
path: ./packages/
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
restore-keys: |
packages-
# - name: Cache test
# uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # tag=v3
# id: cache-test
# with:
# path: ./e2e/
# key: test-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
# restore-keys: |
# test-
e2e-cli:
needs: [prepare, build]
strategy:
fail-fast: false
matrix:
pkg:
[
npm6,
npm7,
npm8,
npm9,
npm10,
pnpm6,
pnpm7,
pnpm8,
yarn1,
yarn2,
yarn3,
yarn4,
]
node: [16, 18, 19]
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ./packages/
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
# - uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # tag=v3
# with:
# path: ./e2e/
# key: test-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
- name: build e2e
run: pnpm --filter @verdaccio/test-cli-commons build
- name: Test CLI
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}

View File

@@ -0,0 +1,12 @@
on:
pull_request:
push:
concurrency:
group: e2e-gastbyjs-${{ github.ref }}-7.x
cancel-in-progress: true
name: 'E2E Gatsby.js CLI with verdaccio'
jobs:
e2e:
uses: verdaccio/verdaccio/.github/workflows/x-e2e-gatsbyjs-cli-workflow.yml@master

12
.github/workflows/e2e-jest-workflow.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
on:
pull_request:
push:
concurrency:
group: e2e-jest-${{ github.ref }}-7.x
cancel-in-progress: true
name: 'E2E Jest with verdaccio'
jobs:
e2e:
uses: verdaccio/verdaccio/.github/workflows/x-e2e-jest-workflow.yml@master

View File

@@ -1,36 +0,0 @@
name: E2E UI
on: [pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
name: UI Test E2E
services:
verdaccio:
image: verdaccio/verdaccio:5
ports:
- 4873:4873
env:
NODE_ENV: production
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack install
- name: Install
run: pnpm install --reporter=silence --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test UI
run: pnpm test:e2e:ui
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with:
name: videos
path: /home/runner/work/verdaccio/verdaccio/e2e/ui/cypress/videos

11
.github/workflows/release-snapshot.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: Release Canary
on:
workflow_dispatch:
push:
branches:
- 7.x
jobs:
snapshot:
secrets: inherit
uses: verdaccio/verdaccio/.github/workflows/x-release-snapshot.yml@master

11
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: Release
on:
push:
tags:
- '*'
jobs:
snapshot:
secrets: inherit
uses: verdaccio/verdaccio/.github/workflows/x-release.yml@master

17
.github/workflows/smoke-test-docker.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Docker Smoke Test
on:
workflow_dispatch:
push:
permissions:
contents: read
concurrency:
group: e2e-docker-pkgs-${{ github.ref }}-7.x
cancel-in-progress: true
jobs:
smoke:
uses: verdaccio/verdaccio/.github/workflows/x-smok-test-docker.yml@master
with:
docker_tag: '7.x-next'

17
.github/workflows/smoke-test-module.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Module Smoke Test
on:
workflow_dispatch:
push:
permissions:
contents: read
concurrency:
group: e2e-test-pkgs-${{ github.ref }}-7.x
cancel-in-progress: true
jobs:
smoke:
uses: verdaccio/verdaccio/.github/workflows/x-smok-test-module.yml@master
with:
docker_tag: '7.x-next'

View File

@@ -1,54 +0,0 @@
---
name: static data
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
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
prepare:
name: Run script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: 18.x
- name: install pnpm
run: sudo npm i pnpm@latest-8 -g
- name: install dependencies
run: pnpm install
- name: Build Translations percentage
run: pnpm --filter @verdaccio/crowdin-translations build
- name: update contributors
run: pnpm run contributors
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: update addson data
run: pnpm script:addson
- name: update translations
run: pnpm run translations
env:
TOKEN: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
- name: format
run: pnpm format
- name: Commit & Push changes
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # tag=v1.4
with:
github_token: ${{ secrets.TOKEN_VERDACCIOBOT_GITHUB }}
message: "chore: updated static data"
branch: master
author_email: verdaccio.npm@gmail.com
author_name: verdacciobot

View File

@@ -0,0 +1,7 @@
name: Test Docker Build
on: [push, pull_request]
jobs:
testDocker:
uses: verdaccio/verdaccio/.github/workflows/test-docker-build.yml@master

View File

@@ -0,0 +1,7 @@
name: Test Publish Package
on: [push, pull_request]
jobs:
testVerdaccio:
uses: verdaccio/verdaccio/.github/workflows/test-publish-package.yml@master

View File

@@ -1,78 +0,0 @@
name: UI Components
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/ui-components.yml
- 'packages/ui-components/**'
- 'package.json'
- 'pnpm-workspace.yaml'
- 'pnpm-lock.yaml'
permissions:
contents: read # to fetch code (actions/checkout)
env:
DEBUG: verdaccio*
jobs:
deploy:
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write
pull-requests: write # to comment on pull-requests
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version-file: '.nvmrc'
- name: Cache pnpm modules
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@8.9.0
- name: Install
run: pnpm install
- name: Build storybook
run: pnpm ui:storybook:build
- name: Copy public content
# the msw.js worker is need it at the storybook-static folder in production
run: cp -R packages/ui-components/public/* packages/ui-components/storybook-static
- name: 🔥 Deploy Production UI Netlify
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
uses: verdaccio/action-netlify-deploy@1c086d59169edeec9254672c7de17d2ceac3928f # v2.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_UI_SITE_ID }}
build-dir: './packages/ui-components/storybook-static'
- name: 🤖 Deploy Preview UI Components Netlify
if: github.repository == 'verdaccio/verdaccio'
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
id: netlify_preview_ui
with:
draft: true
comment-on-pull-request: true
github-deployment-is-production: false
github-deployment-is-transient: true
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_UI_SITE_ID }}
build-dir: './packages/ui-components/storybook-static'

View File

@@ -1,144 +0,0 @@
name: Verdaccio Website CI
on:
workflow_dispatch:
pull_request:
paths:
- 'website/**'
- './.github/workflows/website.yml'
schedule:
- cron: '0 0 * * *'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write
pull-requests: write # to comment on pull-requests
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node 16
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
with:
node-version: 16
- name: Cache pnpm modules
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # tag=v2.4.0
with:
version: latest-8
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: Build
run: pnpm build
- name: Build Translations percentage
run: pnpm --filter @verdaccio/crowdin-translations build
- name: Cache Docusaurus Build
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: website/node_modules/.cache/webpack
key: cache/webpack-${{github.ref}}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: cache/webpack-${{github.ref}}
# Will deploy to production on:
# 1st: When a push occurs on master branch
# 2nd: When we force the worflow dispatch through the UI
- name: Build Production
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
CONTEXT: production
run: pnpm --filter @verdaccio/website netlify:build:production
- name: 🔥 Deploy Production Netlify
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: './website/build'
# Will deploy to Preview URL, only when a pull request is open with changes on the website
- name: Build Deployment Preview
env:
CONTEXT: deploy-preview
run: pnpm --filter ...@verdaccio/website netlify:build:deployPreview
- name: 🤖 Deploy Preview Netlify
if: github.repository == 'verdaccio/verdaccio'
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
id: netlify_preview
with:
draft: true
comment-on-pull-request: true
github-deployment-is-production: false
github-deployment-is-transient: true
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
build-dir: './website/build'
- name: Audit preview URL with Lighthouse
if: github.repository == 'verdaccio/verdaccio'
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@03becbfc543944dd6e7534f7ff768abb8a296826 # tag=10.1.0
with:
urls: |
${{ steps.netlify_preview.outputs.preview-url }}
uploadArtifacts: true
temporaryPublicStorage: true
- name: Format lighthouse score
id: format_lighthouse_score
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # tag=v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const result = ${{ steps.lighthouse_audit.outputs.manifest }}[0].summary
const links = ${{ steps.lighthouse_audit.outputs.links }}
const formatResult = (res) => Math.round((res * 100))
Object.keys(result).forEach(key => result[key] = formatResult(result[key]))
const score = res => res >= 90 ? '🟢' : res >= 50 ? '🟠' : '🔴'
const comment = [
`⚡️ [Lighthouse report](${Object.values(links)[0]}) for the changes in this PR:`,
'| Category | Score |',
'| --- | --- |',
`| ${score(result.performance)} Performance | ${result.performance} |`,
`| ${score(result.accessibility)} Accessibility | ${result.accessibility} |`,
`| ${score(result['best-practices'])} Best practices | ${result['best-practices']} |`,
`| ${score(result.seo)} SEO | ${result.seo} |`,
' ',
`*Lighthouse ran on [${Object.keys(links)[0]}](${Object.keys(links)[0]})*`
].join('\n')
core.setOutput("comment", comment);
- name: Add comment to PR
if: github.repository == 'verdaccio/verdaccio'
id: comment_to_pr
uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd # v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.issue.number }}
delete: true
header: lighthouse
message: |
${{ steps.format_lighthouse_score.outputs.comment }}

58
.gitignore vendored
View File

@@ -1,55 +1,39 @@
*.log*
verdaccio-*.tgz
.DS_Store
build/
dist/
.eslintcache
node_modules
### database
### Test
test/unit/partials/store/test-*-storage/*
test/unit/partials/store/*-storage/*
test/unit/partials/store/storage_default_storage/*
.verdaccio-db.json
.sinopia-db.json
### test
###
!bin/verdaccio
test-storage*
access-storage*
.verdaccio_test_env
node_modules
package-lock.json
npm_test-fails-add-tarball*
yarn-error.log
# docker examples
docker-examples/v5/reverse_proxy/nginx/relative_path/storage/*
docker-examples/v5/**/storage/*
# jest
# coverage
reports/
coverage/
## IDE
# IDE
.idea/
# Compiled script
packages/partials
tsconfig.tsbuildinfo
static/*
## bundle files
packages/standalone/dist/
# This is the Yarn build state; it's local to each clone
/.yarn/build-state.yml
## ui
packages/plugins/ui-theme/static
/packages/plugins/ui-theme/src/i18n/download_translations/
!/packages/plugins/ui-theme/src/i18n/crowdin/ui.json
# CI Pnpm cache
.pnpm-store/
#docs
website/docs/api/**/*.md
website/docs/api/**/*.yml
!website/docs/api/index.md
packages/**/docs
# cypress
e2e/ui/cypress/videos/**/*
e2e/ui/cypress/screenshots/**/*
# storybook
packages/ui-components/storybook-static
# This is the Yarn install state cache, it can be rebuilt anytime
/.yarn/install-state.gz
.history

View File

@@ -1,5 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#./node_modules/.bin/lint-staged
npm run husky:pre-commit

View File

@@ -1,10 +0,0 @@
module.exports = {
onPreBuild: async ({ utils: { build, run } }) => {
try {
await run.command("npm install -g pnpm")
await run.command("pnpm install --ignore-scripts --frozen-lockfile")
} catch (error) {
return build.failBuild(error)
}
}
}

View File

@@ -1,2 +0,0 @@
name: netlify-plugin-pnpm
inputs: []

View File

@@ -1,3 +1,4 @@
## npm
npm-debug.log
yarn-error.log
@@ -11,7 +12,6 @@ src/
/.*
.vscode/
.circleci/
debug/
docker-examples/
reports/
## assets and website
@@ -22,6 +22,7 @@ docs/
wiki/
## flow
flow-typed/
types/
# jest
@@ -38,3 +39,9 @@ jest.config.js
contrib/
storage_default_storage/
docker-bin/
yarn-plugins/
tsconfig.json
CHANGELOG.md
SECURITY.md
CONTRIBUTING.md
CONTRIBUTORS.md

1
.npmrc
View File

@@ -1,3 +1,2 @@
always-auth = true
loglevel=info
fetch-retries="10"

2
.nvmrc
View File

@@ -1 +1 @@
20
22

View File

@@ -6,34 +6,31 @@
**/pnpm-lock.yaml
**/verdaccio-corrupted.db.json
**/wrong.package.json
crowdin.yaml
/docs/website
/website/translated_docs/
/website/.cache/
/website/crowdin/
/website/public/
/website/src/dictionaries/
CHANGELOG.md
README.md
CHANGELOG.v5.md
CONTRIBUTORS.md
node_modules/
**/coverage/**
**/static/*.js
**/dist/*.js
website/.docusaurus/**/*
website/i18n/**/*
**/build/*.js
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/*
build/
.vscode/
test/unit/partials/*
build/*
.github/
.netlify/
packages/**/docs/**
packages/mock/mock-store/**
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
website/docs/api/*
packages/ui-components/storybook-static/*
.vscode/
wiki/
.yarnrc.yml
yarn-error.log
.yarn/
test/functional/store/*
storage_default_storage/*
docker-examples/
.prettierignore
.npmignore
.gitignore
*.ico
.pnp.js
babel.config.js

View File

@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>verdaccio-dev</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
<filteredResources>
<filter>
<id>1630305579538</id>
<name></name>
<type>26</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-node_modules</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

File diff suppressed because it is too large Load Diff

1
.sonarcloud.properties Normal file
View File

@@ -0,0 +1 @@

View File

@@ -26,7 +26,7 @@
"no-descending-specificity": [true, { "severity": "warning" }],
"no-duplicate-at-import-rules": true,
"no-duplicate-selectors": true,
"no-empty-source": null,
"no-empty-source": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"property-no-unknown": true,
@@ -38,3 +38,4 @@
}
}

12
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,12 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}

25
.vscode/launch.json vendored
View File

@@ -1,15 +1,14 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// 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"
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
]
}

16
.vscode/settings.json vendored
View File

@@ -1,13 +1,15 @@
// Place your settings in this file to overwrite default and user settings.
{
"eslint.validate": [
"javascript",
"typescript"
],
"files.exclude": {
"**/.nyc_output": true,
"**/build": false,
"**/coverage": true,
".idea": true,
"storage_default_storage": true,
".yarn": true
"**/.idea": false,
"**/coverage": true
},
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib"
"search.exclude": {
"**/.yarn": true,
}
}

925
.yarn/releases/yarn-4.5.0.cjs vendored Executable file

File diff suppressed because one or more lines are too long

11
.yarnrc.yml Normal file
View File

@@ -0,0 +1,11 @@
compressionLevel: mixed
defaultSemverRangePrefix: ""
enableGlobalCache: true
nodeLinker: node-modules
npmRegistryServer: "https://registry.npmjs.org"
yarnPath: .yarn/releases/yarn-4.5.0.cjs

78
CHANGELOG.md Normal file
View File

@@ -0,0 +1,78 @@
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [6.0.0-beta.3](https://github.com/verdaccio/verdaccio/compare/v6.0.0-beta.2...v6.0.0-beta.3) (2024-08-02)
### Features
* migrateToSecureLegacySignature 6.x ([#4643](https://github.com/verdaccio/verdaccio/issues/4643)) ([7b14147](https://github.com/verdaccio/verdaccio/commit/7b1414733bb314a41ef6393761b5b67a2d2f97fa))
### Bug Fixes
* **deps:** update core verdaccio dependencies ([#4559](https://github.com/verdaccio/verdaccio/issues/4559)) ([dde4703](https://github.com/verdaccio/verdaccio/commit/dde4703745f0e6b7d32ee6598c987dcc81707f1d))
* **deps:** update core verdaccio dependencies ([#4753](https://github.com/verdaccio/verdaccio/issues/4753)) ([cb0cc9e](https://github.com/verdaccio/verdaccio/commit/cb0cc9edd8af50e9ef6b3c8b13dfb97d706edb67))
* **deps:** update core verdaccio dependencies (6.x) ([#4728](https://github.com/verdaccio/verdaccio/issues/4728)) ([a11c3cf](https://github.com/verdaccio/verdaccio/commit/a11c3cf924649c141776d8189b4bb695219dc069))
* **deps:** update dependency express to v4.19.2 ([#4592](https://github.com/verdaccio/verdaccio/issues/4592)) ([946a1b4](https://github.com/verdaccio/verdaccio/commit/946a1b46be84d67365b59be6896b956bc8d44b65))
* **deps:** update dependency semver to v7.6.0 ([#4597](https://github.com/verdaccio/verdaccio/issues/4597)) ([306da4a](https://github.com/verdaccio/verdaccio/commit/306da4af3f55285ca0b003969a2f62269dc4e9f8))
* **deps:** update dependency semver to v7.6.3 ([#4730](https://github.com/verdaccio/verdaccio/issues/4730)) ([640984d](https://github.com/verdaccio/verdaccio/commit/640984d6fdd874571b61a72d98dc3fc59ce7569a))
* minium version node.js v18 ([33272ee](https://github.com/verdaccio/verdaccio/commit/33272ee8b9750d077a6e43a46e765334932f4bd6))
* plugins config disable by default ([9cb5806](https://github.com/verdaccio/verdaccio/commit/9cb580638f3562ec05eaeb34e93502d6191b97eb))
## [6.0.0-beta.2](https://github.com/verdaccio/verdaccio/compare/v6.0.0-beta.1...v6.0.0-beta.2) (2024-03-17)
### Features
* enable stream search from user interface ([#4544](https://github.com/verdaccio/verdaccio/issues/4544)) ([ed3ce4d](https://github.com/verdaccio/verdaccio/commit/ed3ce4dc93bf96fc262c0bf1e2d38537d66a6540))
### Bug Fixes
* **deps:** update core verdaccio dependencies ([#4436](https://github.com/verdaccio/verdaccio/issues/4436)) ([5a03778](https://github.com/verdaccio/verdaccio/commit/5a037785a1dbcd5f96be027a1f478bd8d2aadd90))
* **deps:** update core verdaccio dependencies ([#4500](https://github.com/verdaccio/verdaccio/issues/4500)) ([eda0f51](https://github.com/verdaccio/verdaccio/commit/eda0f513d07c808c6873b60a0f57caee757d5f13))
* **deps:** update core verdaccio dependencies ([#4531](https://github.com/verdaccio/verdaccio/issues/4531)) ([f46f9e1](https://github.com/verdaccio/verdaccio/commit/f46f9e1b70157b5ff0be7ff118614bd5a9c29e62))
* **deps:** update core verdaccio dependencies (6.x) ([#4540](https://github.com/verdaccio/verdaccio/issues/4540)) ([c12e1a0](https://github.com/verdaccio/verdaccio/commit/c12e1a0b6aa9c9e19b50b19fee143f939f43ed2a))
* newline after version command ([913ce37](https://github.com/verdaccio/verdaccio/commit/913ce37b57814961f8225a5cbd310166a130d4d4)), closes [#4543](https://github.com/verdaccio/verdaccio/issues/4543)
* profile v1 endpoint and tests ([a183446](https://github.com/verdaccio/verdaccio/commit/a183446000f683591fa96d0ea6b79b286de410f2))
## [6.0.0-beta.1](https://github.com/verdaccio/verdaccio/compare/v6.0.0-beta.0...v6.0.0-beta.1) (2024-01-07)
### Bug Fixes
* release script ([7e7b578](https://github.com/verdaccio/verdaccio/commit/7e7b57869e7006d32fa650a0125f080ec1b9387d))
## [6.0.0-beta.0](https://github.com/verdaccio/verdaccio/compare/v5.26.1...v6.0.0-beta.0) (2024-01-07)
### ⚠ BREAKING CHANGES
* using new plugin loader (#4097)
* drop nodejs 16 (#4032)
* remove request (#3960)
* drop Node.js 12 (#3983)
### Features
* drop Node.js 12 ([#3983](https://github.com/verdaccio/verdaccio/issues/3983)) ([5a0ead5](https://github.com/verdaccio/verdaccio/commit/5a0ead5fb6b14a8f26b79fb8a80f33931207ba51))
* drop nodejs 16 ([#4032](https://github.com/verdaccio/verdaccio/issues/4032)) ([02af45c](https://github.com/verdaccio/verdaccio/commit/02af45c8dbbb0afabc97e59fa993b2ff57872644))
* **experiment:** accept async tarball_url_redirect function ([#3914](https://github.com/verdaccio/verdaccio/issues/3914)) ([e174e8c](https://github.com/verdaccio/verdaccio/commit/e174e8c554e8c245bcde558ef94b5cb0bde1881c))
* refactor auth class ([#4364](https://github.com/verdaccio/verdaccio/issues/4364)) ([428a256](https://github.com/verdaccio/verdaccio/commit/428a25662674eca61a2410d7c86e6cd02694e0c3))
* remove request ([#3960](https://github.com/verdaccio/verdaccio/issues/3960)) ([d40d0ff](https://github.com/verdaccio/verdaccio/commit/d40d0ff7b3ee767b1be84220b9e145f78a92b7de))
* search on cache packages ([#4001](https://github.com/verdaccio/verdaccio/issues/4001)) ([c2aa0b6](https://github.com/verdaccio/verdaccio/commit/c2aa0b6d3fab964a93471adc47c8285a02f521c1))
* using new plugin loader ([#4097](https://github.com/verdaccio/verdaccio/issues/4097)) ([8a8a330](https://github.com/verdaccio/verdaccio/commit/8a8a3307a12285707d5a0751e5865b9d0debc54a))
### Bug Fixes
* check if node.js minimum version is correct ([#4002](https://github.com/verdaccio/verdaccio/issues/4002)) ([547ba9a](https://github.com/verdaccio/verdaccio/commit/547ba9a56932705896b7e9b03c8c581c863396b4))
* **deps:** update core verdaccio dependencies ([#4358](https://github.com/verdaccio/verdaccio/issues/4358)) ([f0c1a3f](https://github.com/verdaccio/verdaccio/commit/f0c1a3f7fda3fc95a44f564305227b80ecdd7fca))
* **deps:** update core verdaccio dependencies ([#4390](https://github.com/verdaccio/verdaccio/issues/4390)) ([4ee9878](https://github.com/verdaccio/verdaccio/commit/4ee987809b003a8d8827267a92ec86125046cc6b))
* **deps:** update dependency cookies to v0.9.0 ([#4342](https://github.com/verdaccio/verdaccio/issues/4342)) ([786c200](https://github.com/verdaccio/verdaccio/commit/786c20081fa9665c2411b791238af4b1a6d3f673))
* **deps:** update dependency validator to v13.11.0 ([#3967](https://github.com/verdaccio/verdaccio/issues/3967)) ([f61cfda](https://github.com/verdaccio/verdaccio/commit/f61cfda1c33a020bb1eddb99f0e606f5bf68b499))
* update docker image to v20.9.0 ([127e6cf](https://github.com/verdaccio/verdaccio/commit/127e6cf19ff77e593598b07a4c72e23d3075d5f2))
* update verdaccio core dependencies ([dc3fb46](https://github.com/verdaccio/verdaccio/commit/dc3fb46f76071be29accf1bb1a357474a2a7b0d6))
* update verdaccio core dependencies ([#4034](https://github.com/verdaccio/verdaccio/issues/4034)) ([4ddb220](https://github.com/verdaccio/verdaccio/commit/4ddb220ba50376ab158b5870215d81c5a5e4ea96))

2319
CHANGELOG.v5.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,413 +1,13 @@
# Contributing
# Contributing to Verdaccio
> This guidelines refers to the main (`master`) that host the v6.x, if you want to contribute to `5.x` please read the following [link](https://github.com/verdaccio/verdaccio/blob/5.x/CONTRIBUTING.md).
Full text for contributing can be read [here](https://verdaccio.org/community/contributing).
We're happy that you're considering contributing!
## Especifics for the branch 7.x
To help you getting started we've prepared these guidelines for you, any change matter, just do it:
The 7.x uses `yarn berry` with Plug and Play enabled, thus some advices are required for helping contributing:
## How Do I Contribute?
There are many ways to contribute:
- [Report a bug](#reporting-bugs)
- [Request a feature you think would be great for Verdaccio](#feature-request)
- [Fixing bugs](https://github.com/verdaccio/verdaccio/issues?q=is%3Aopen+is%3Aissue+label%3A%22issue%3A+bug%22)
- [Test and triage bugs reported by others](https://github.com/verdaccio/verdaccio/issues?q=is%3Aopen+is%3Aissue+label%3Aissue_needs_triage)
- [Working on requested/approved features](https://github.com/verdaccio/verdaccio/issues?q=is%3Aopen+is%3Aissue+label%3A%22topic%3A+feature+request%22+)
- [Improve the codebase (linting, naming, comments, test descriptions, etc...)](https://github.com/verdaccio/verdaccio/discussions/1461)
- Improve code coverage for unit testing for every module, [end to end](https://github.com/verdaccio/verdaccio/tree/master/e2e/cli) or [UI test](https://github.com/verdaccio/verdaccio/tree/master/e2e/ui) (with cypress).
The Verdaccio project is split into several areas, the first three hosted in the main repository:
- **Core**: The [core](https://github.com/verdaccio/verdaccio) is the main repository, built with **Node.js**.
- **Website**: we use [**Docusaurus**](https://docusaurus.io/) for the **website** and if you are familiar with this technology, you might become the official webmaster.
- **User Interface**: The [user Interface](https://github.com/verdaccio/ui) is based in **react** and **material-ui** and looking for front-end contributors.
- **Kubernetes and Helm**: Ts the official repository for the [**Helm chart**](https://github.com/verdaccio/charts).
> There are other areas to contribute, like [documentation](https://github.com/verdaccio/verdaccio/tree/master/website/docs) or [translations](#translations}).
## Prepare local setup {#local-setup}
Verdaccio uses [pnpm](https://pnpm.io) as the package manager for development in this repository.
If you are using pnpm for the first time the [pnpm configuration documentation](https://pnpm.io/configuring) may be useful to avoid any potential problems with the following steps.
**Note**: pnpm uses npm's configuration formats so check that your global `.npmrc` file does not inadvertently disable package locks. In other words, your `.npmrc` file **should not** contain
```
package-lock=false
```
This setting would cause the `pnpm install` command to install incorrect versions of package dependencies and the subsequent `pnpm build` step would likely fail.
We use [corepack](https://github.com/nodejs/corepack) to install and use a specific (latest) version of pnpm. Please run the following commands which is use a specific version on Node.js and configure it to use a specific version of pnpm. The version of pnpm is specified in the `package.json` file in `packageManager` field.
```shell
nvm install
corepack enable
corepack install
```
`pnpm` version will be updated mainly by the maintainers but if you would like to set it to a specific version, you can do so by running the following command:
```shell
corepack use pnpm@8.9.1
```
It will update the `package.json` file with the new version of pnpm in the `packageManager` field.
With pnpm installed, the first step is installing all dependencies:
```shell
pnpm install
```
### Building the project
Each package is independent, dependencies must be build first, run:
```shell
pnpm build
```
### Running test
```shell
pnpm test
```
Verdaccio is a mono repository. To run the tests for for a specific package:
```shell
cd packages/store
pnpm test
```
or an specific test in that package:
```shell
pnpm test test/merge.dist.tags.spec.ts
```
or a single test unit:
```shell
pnpm test test/merge.dist.tags.spec.ts -- -t 'simple'
```
Coverage reporting is enabled by default, but you can turn it off to speed up
test runs:
```shell
pnpm test test/merge.dist.tags.spec.ts -- -t 'simple' --coverage=false
```
You can enable increased [`debug`](https://www.npmjs.com/package/debug) output:
```shell
DEBUG=verdaccio:* pnpm test
```
More details in the debug section
### Running and debugging
> Check the debugging guidelines [here](https://github.com/verdaccio/verdaccio/wiki/Debugging-Verdaccio)
We use [`debug`](https://www.npmjs.com/package/debug) to add helpful debugging
output to the code. Each package has it owns namespace.
#### Developing with local server
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:
The command `pnpm start` runs web server on port `8000` and user interface (webpack-server) on port `4873`. This is particularly useful if you want to contribute to the UI, since it runs with hot reload. The request to the server are proxy through webpack proxy support through the port `4873`.
The user interface is split in two packages, the `/packages/plugins/ui-theme` and the `/packages/ui-components`. The `ui-components` package uses _storybook_ in order to develop component, but if you need to reload ui components with `ui-theme` do the following.
Go to `/packages/ui-component` and run `pnpm watch` to enable _babel_ in watch mode, every change on the components will be hot reloaded in combination with the `pnpm start` command.
Any change on the server packages, must be build independently (server do not has hot reload, `pnpm start` should be triggered again).
Any interaction with the server should be done through the port `8000` eg: `npm login --registry http://localhost:8000` .
#### Useful commands
- `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.
#### Debugging compiled code {#debugging-compiled-code}
Currently you can only run pre-compiled packages in debug mode. To enable debug
while running add the `verdaccio` namespace using the `DEBUG` environment
variable, like this:
```shell
DEBUG=verdaccio:* node packages/verdaccio/debug/bootstrap.js
```
You can filter this output to just the packages you're interested in using
namespaces:
```shell
DEBUG=verdaccio:plugin:* node packages/verdaccio/debug/bootstrap.js
```
The debug code is intended to analyze what is happening under the hood and none
of the output is sent to the logger module.
> [See the full guide how to debug with Verdaccio](https://github.com/verdaccio/verdaccio/wiki/Debugging-Verdaccio)
#### Testing your changes in a local registry {#testing-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 built all modules by running `pnpm build` (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)
```shell
pnpm build
pnpm local:publish:release
```
The last step consist on install globally the package from the local registry which runs on the default port (4873).
```shell
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.
## Feature Request {#feature-request}
New feature requests are welcome. Analyse whether the idea fits within scope of the project. Adding in context and the use-case will really help!
**Please provide:**
- Create a [discussion](https://github.com/verdaccio/verdaccio/discussions/new).
- 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 modern_
](https://github.com/yarnpkg/berry).
- A potential implementation or design
- Whatever else is on your mind! 🤓
## Reporting Bugs {#reporting-bugs}
**Bugs are considered features that are not working as described in
documentation.**
If you've found a bug in Verdaccio **that isn't a security risk**, please file
a report in our [issue tracker](https://github.com/verdaccio/verdaccio/issues), if you think a potential vulnerability please read the [security policy](https://verdaccio.org/community/security) .
> **NOTE: Verdaccio still does not support all npm commands. Some were not
> considered important and others have not been requested yet.**
### What's is not considered a bug?
- _Third party integrations_: proxies integrations, external plugins
- _Package managers_: If a package manager does not support a specific command
or cannot be reproduced with another package manager
- _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 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
guidelines](https://github.com/verdaccio/verdaccio/security/policy).
### Issues {#issues}
Before reporting a bug please:
- Search for existing issues to see if it has already been reported
- Look for the **question** label: we have labelled questions for easy follow-up
as [questions](https://github.com/verdaccio/verdaccio/labels/question)
In case any of those match with your search, up-vote it (using GitHub reactions)
or add additional helpful details to the existing issue to show that it's
affecting multiple people.
### Contributing support
Questions can be asked via [Discord](https://discord.gg/7qWJxBf)
**Please use the `#contribute` channel.**
## Development Guidelines {#development-guidelines}
It's recommended use a UNIX system for local development, Windows dev local support is not being tested and might not work. To ensure a fast code review and merge, please follow the next guidelines:
Any contribution gives you the right to be part of this organization as _collaborator_ and your avatar will be automatically added to the [contributors page](https://verdaccio.org/contributors).
## Pull Request {#pull-request}
### Submitting a Pull Request {#submit-pull-request}
The following are the steps you should follow when creating a pull request.
Subsequent pull requests only need to follow step 3 and beyond.
1. Fork the repository on GitHub
2. Clone the forked repository to your machine
3. Make your changes and commit them to your local repository
4. Rebase and push your commits to your GitHub remote fork/repository
5. Issue a Pull Request to the official repository
6. Your Pull Request is reviewed by a committer and merged into the repository
**NOTE**: While there are other ways to accomplish the steps using other tools,
the examples here will assume most actions will be performed via `git` on
command line.
For more information on maintaining a fork, please see the GitHub Help article
titled [Fork a Repo](https://help.github.com/articles/fork-a-repo/), and
information on [rebasing](https://git-scm.com/book/en/v2/Git-Branching-Rebasing).
### Make Changes and Commit
#### Caveats
Feel free to commit as much times you want in your branch, but keep on mind on
this repository we `git squash` on merge by default, as we like to maintain a
clean git history.
#### Before Push {#before-push}
Before committing or push, **you must ensure there are no linting errors and
all tests passes**. To do verify, run these commands before creating the PR:
### Debugging Jest
```bash
pnpm lint
pnpm format
pnpm build
pnpm test
yarn node --inspect-brk --expose-gc $(yarn bin jest) test --runInBand --silent --logHeapUsage test/unit/modules/api/publish.spec.ts
```
> note: eslint and formatting are run separately, keep code formatting
> before push.
All good? Perfect! You should create the pull request.
#### Commit Guidelines {#commits}
On a pull request, commit messages are not important, please focus on document properly the pull request content. The commit message will be taken from the pull request title, it is recommended to use lowercase format.
### Adding a changeset {#changeset}
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 it does not affect functionality or
user-facing content, eg: docs, readme, adding test or typo/lint fixes). To
create a changeset please run:
```shell
pnpm changeset
```
Then select the packages you want to include in your changeset navigating
through them and press the spacebar to check it, on finish press enter to move
to the next step.
```
🦋 Which packages would you like to include? …
✔ changed packages
changed packages
✔ @verdaccio/api
✔ @verdaccio/auth
✔ @verdaccio/cli
✔ @verdaccio/config
✔ @verdaccio/commons-api
```
The next question would be if you want a _major bump_. This is not the usual
scenario, most likely you want a patch, and in that case press enter 2 times
(to skip minor)
```
🦋 Which packages should have a major bump? …
✔ all packages
✔ @verdaccio/config@5.0.0-alpha.0
```
Once you have the desired bump you need, the CLI will ask for a summary. Here
you have full freedom on what to include:
```
🦋 Which packages would you like to include? · @verdaccio/config
🦋 Which packages should have a major bump? · No items were selected
🦋 Which packages should have a minor bump? · No items were selected
🦋 The following packages will be patch bumped:
🦋 @verdaccio/config@5.0.0-alpha.0
🦋 Please enter a summary for this change (this will be in the changelogs). Submit empty line to open external editor
🦋 Summary
```
The last step is to confirm your changeset or abort the operation:
```
🦋 Is this your desired changeset? (Y/n) · true
🦋 Changeset added! - you can now commit it
🦋
🦋 If you want to modify or expand on the changeset summary, you can find it here
🦋 info /Users/user/verdaccio.clone/.changeset/light-scissors-smell.md
```
Once the changeset is added (all will have an unique name) you can freely edit
using markdown, adding additional information, code snippets or whatever else
you consider to be relevant.
All that information will be part of the **changelog**. Be concise but
informative! It's recommended to add your nickname and GitHub link to your
profile.
**PRs that do not follow the commit message guidelines will not be merged.**
### Update Tests
**Any change in source code must include test updates**.
If you need help with how testing works, please [refer to the following guide
](https://github.com/verdaccio/verdaccio/wiki/Running-and-Debugging-tests).
**If you are introducing new features, you MUST include new tests. PRs for
features without tests will not be merged.**
## Translations {#translations}
All translations are provided by the **[crowdin](http://crowdin.com)** platform,
[https://translate.verdaccio.org/](https://translate.verdaccio.org/)
If you want to contribute by adding translations, create an account (GitHub could be used as fast alternative), in the platform you can contribute to two areas, the website or improve User Interface translations.
> Languages with less the 40% of translations available are excluded by the build system.
If a language is not listed, ask for it in the [Discord](https://discord.gg/7qWJxBf) channel #contribute channel.
For adding a new **language** on the UI follow these steps:
1. Ensure the **language** has been enabled, must be visible in the `crowdin` platform.
2. Find in the explorer the file `en.US.json` in the path `packages/plugins/ui-theme/src/i18n/crowdin/ui.json` and complete the translations, **not need to find approval on this**.
3. Into the project, add a new field into `packages/plugins/ui-theme/src/i18n/crowdin/ui.json` file, in the section `lng`, the new language, eg: `{ lng: {korean:"Korean"}}`. (This file is English based, once the PR has been merged, this string will be available in crowdin for translate to the targeted language).
4. Add the language, [flag icon](https://www.npmjs.com/package/country-flag-icons), and the menu key fort he new language eg: `menuKey: 'lng.korean'` to the file `packages/plugins/ui-theme/src/i18n/enabledLanguages.ts`.
5. For local testing, read `packages/plugins/ui-theme/src/i18n/ABOUT_TRANSLATIONS.md`.
6. Add a `changeset` file, see more info below.
## Develop Plugins {#develop-plugins}
Plugins are add-ons that extend the functionality of the application.
If you want to develop your own plugin:
1. Check whether there is a legacy Sinopia plugin for the feature that you need
via [npmjs](https://www.npmjs.com/search?q=sinopia)
2. Keep in mind the [life-cycle to load a plugin
](https://verdaccio.org/docs/en/dev-plugins)
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

41
CONTRIBUTORS.md Normal file
View File

@@ -0,0 +1,41 @@
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://www.linkedin.com/in/jotadeveloper/"><img src="https://avatars0.githubusercontent.com/u/558752?v=4" width="100px;" alt=""/><br /><sub><b>Juan Picado</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=juanpicado" title="Documentation">📖</a> <a href="https://github.com/verdaccio/verdaccio/commits?author=juanpicado" title="Code">💻</a> <a href="#infra-juanpicado" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#eventOrganizing-juanpicado" title="Event Organizing">📋</a> <a href="#blog-juanpicado" title="Blogposts">📝</a> <a href="#maintenance-juanpicado" title="Maintenance">🚧</a></td>
<td align="center"><a href="https://github.com/sergiohgz"><img src="https://avatars3.githubusercontent.com/u/14012309?v=4" width="100px;" alt=""/><br /><sub><b>Sergio Herrera</b></sub></a><br /><a href="#infra-sergiohgz" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-sergiohgz" title="Maintenance">🚧</a></td>
<td align="center"><a href="https://daniel-ruf.de/"><img src="https://avatars1.githubusercontent.com/u/827205?v=4" width="100px;" alt=""/><br /><sub><b>Daniel Ruf</b></sub></a><br /><a href="#security-DanielRuf" title="Security">🛡️</a> <a href="#infra-DanielRuf" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-DanielRuf" title="Maintenance">🚧</a></td>
<td align="center"><a href="https://priscilawebdev.github.io/priscilaoliveira/"><img src="https://avatars1.githubusercontent.com/u/29228205?v=4" width="100px;" alt=""/><br /><sub><b>Priscila Oliveira</b></sub></a><br /><a href="#design-priscilawebdev" title="Design">🎨</a> <a href="https://github.com/verdaccio/verdaccio/commits?author=priscilawebdev" title="Code">💻</a> <a href="#maintenance-priscilawebdev" title="Maintenance">🚧</a></td>
<td align="center"><a href="http://ayusharma.github.io/"><img src="https://avatars0.githubusercontent.com/u/6918450?v=4" width="100px;" alt=""/><br /><sub><b>Ayush Sharma</b></sub></a><br /><a href="#infra-ayusharma" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/verdaccio/verdaccio/commits?author=ayusharma" title="Code">💻</a> <a href="#design-ayusharma" title="Design">🎨</a></td>
<td align="center"><a href="https://github.com/trentearl"><img src="https://avatars2.githubusercontent.com/u/802857?v=4" width="100px;" alt=""/><br /><sub><b>Trent Earl</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=trentearl" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/jmwilkinson"><img src="https://avatars0.githubusercontent.com/u/17836030?v=4" width="100px;" alt=""/><br /><sub><b>jmwilkinson</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=jmwilkinson" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/bufferoverflow"><img src="https://avatars2.githubusercontent.com/u/378909?v=4" width="100px;" alt=""/><br /><sub><b>Roger Meier</b></sub></a><br /><a href="#plugin-bufferoverflow" title="Plugin/utility libraries">🔌</a></td>
<td align="center"><a href="https://ghuser.io/jamesgeorge007"><img src="https://avatars2.githubusercontent.com/u/25279263?v=4" width="100px;" alt=""/><br /><sub><b>James George</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=jamesgeorge007" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/AvailCat"><img src="https://avatars3.githubusercontent.com/u/19658647?v=4" width="100px;" alt=""/><br /><sub><b>AvailCat</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=AvailCat" title="Code">💻</a> <a href="#infra-AvailCat" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-AvailCat" title="Maintenance">🚧</a></td>
<td align="center"><a href="https://www.luciusgaitan.com/"><img src="https://avatars0.githubusercontent.com/u/5970350?v=4" width="100px;" alt=""/><br /><sub><b>Lucius Gaitán</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=lgaitan" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/ramonornela"><img src="https://avatars1.githubusercontent.com/u/187946?v=4" width="100px;" alt=""/><br /><sub><b>Ramon Henrique Ornelas</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=ramonornela" title="Code">💻</a></td>
<td align="center"><a href="https://people.freebsd.org/~mi/resume/"><img src="https://avatars1.githubusercontent.com/u/1486340?v=4" width="100px;" alt=""/><br /><sub><b>UnitedMarsupials-zz</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=UnitedMarsupials-zz" title="Code">💻</a></td>
<td align="center"><a href="http://www.codingintrigue.co.uk/"><img src="https://avatars0.githubusercontent.com/u/9048902?v=4" width="100px;" alt=""/><br /><sub><b>Ryan Graham</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=ryan-codingintrigue" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/coolsp"><img src="https://avatars1.githubusercontent.com/u/1246647?v=4" width="100px;" alt=""/><br /><sub><b>coolsp</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=coolsp" title="Code">💻</a></td>
<td align="center"><a href="http://ashishsurana.in/"><img src="https://avatars0.githubusercontent.com/u/5610944?v=4" width="100px;" alt=""/><br /><sub><b>Ashish Surana</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=ashishsurana" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/buffaybu"><img src="https://avatars3.githubusercontent.com/u/2025661?v=4" width="100px;" alt=""/><br /><sub><b>Wang Yifei</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=buffaybu" title="Code">💻</a></td>
<td align="center"><a href="https://twitter.com/liran_tal"><img src="https://avatars1.githubusercontent.com/u/316371?v=4" width="100px;" alt=""/><br /><sub><b>Liran Tal</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=lirantal" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/brenordr"><img src="https://avatars2.githubusercontent.com/u/19731692?v=4" width="100px;" alt=""/><br /><sub><b>Breno Rodrigues</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=brenordr" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/jachstet-sea"><img src="https://avatars0.githubusercontent.com/u/7993508?v=4" width="100px;" alt=""/><br /><sub><b>jachstet-sea</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=jachstet-sea" title="Code">💻</a></td>
<td align="center"><a href="https://patrik.votocek.cz/"><img src="https://avatars1.githubusercontent.com/u/112567?v=4" width="100px;" alt=""/><br /><sub><b>Patrik Votoček</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=Vrtak-CZ" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/monkeywithacupcake"><img src="https://avatars3.githubusercontent.com/u/7316730?v=4" width="100px;" alt=""/><br /><sub><b>jess</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=monkeywithacupcake" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/toolsofraj"><img src="https://avatars0.githubusercontent.com/u/2507152?v=4" width="100px;" alt=""/><br /><sub><b>toolsofraj</b></sub></a><br /><a href="https://github.com/verdaccio/verdaccio/commits?author=toolsofraj" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/ddhp"><img src="https://avatars1.githubusercontent.com/u/1715380?v=4" width="100px;" alt=""/><br /><sub><b>Jian-Chen Chen (jesse)</b></sub></a><br /><a href="#translation-ddhp" title="Translation">🌍</a> <a href="https://github.com/verdaccio/verdaccio/commits?author=ddhp" title="Code">💻</a></td>
</tr>
</table>
<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

View File

@@ -1,9 +1,13 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:18-alpine as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:22.14.0-alpine as builder
ENV NODE_ENV=development \
VERDACCIO_BUILD_REGISTRY=https://registry.npmjs.org
ENV NODE_ENV=production \
VERDACCIO_BUILD_REGISTRY=https://registry.npmjs.org \
HUSKY_SKIP_INSTALL=1 \
CI=true \
HUSKY_DEBUG=1
RUN apk --no-cache add openssl ca-certificates wget && \
RUN apk add --force-overwrite && \
apk --no-cache add openssl ca-certificates wget && \
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.35-r0/glibc-2.35-r0.apk && \
@@ -11,16 +15,23 @@ RUN apk --no-cache add openssl ca-certificates wget && \
WORKDIR /opt/verdaccio-build
COPY . .
RUN npm -g i pnpm@8.9.0 && \
pnpm config set registry $VERDACCIO_BUILD_REGISTRY && \
pnpm install --frozen-lockfile --ignore-scripts && \
rm -Rf test && \
pnpm run build
# FIXME: need to remove devDependencies from the build
# NODE_ENV=production pnpm install --frozen-lockfile --ignore-scripts
# RUN pnpm install --prod --ignore-scripts
FROM node:18-alpine
## build the project and create a tarball of the project for later
## global installation
RUN yarn config set npmRegistryServer $VERDACCIO_BUILD_REGISTRY && \
yarn config set enableProgressBars true && \
yarn config set enableScripts false && \
yarn install --immutable && \
yarn build
## pack the project
RUN yarn pack --dry-run \
&& yarn pack --out verdaccio.tgz \
&& mkdir -p /opt/tarball \
&& mv /opt/verdaccio-build/verdaccio.tgz /opt/tarball
## clean up and reduce bundle size
RUN rm -Rf /opt/verdaccio-build
FROM node:22.14.0-alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"
ENV VERDACCIO_APPDIR=/opt/verdaccio \
@@ -33,17 +44,30 @@ ENV PATH=$VERDACCIO_APPDIR/docker-bin:$PATH \
WORKDIR $VERDACCIO_APPDIR
# https://github.com/Yelp/dumb-init
RUN apk --no-cache add openssl dumb-init
RUN mkdir -p /verdaccio/storage /verdaccio/plugins /verdaccio/conf
COPY --from=builder /opt/verdaccio-build .
COPY --from=builder /opt/tarball .
RUN ls packages/config/src/conf
ADD packages/config/src/conf/docker.yaml /verdaccio/conf/config.yaml
USER root
# install verdaccio as a global package so is fully handled by npm
# ensure none dependency is being missing and is prod by default
RUN npm install -g $VERDACCIO_APPDIR/verdaccio.tgz \
## clean up cache
&& npm cache clean --force \
&& rm -Rf .npm/ \
&& rm $VERDACCIO_APPDIR/verdaccio.tgz \
# yarn is not need it after this step
# Also remove the symlinks added in the [`node:alpine` Docker image](https://github.com/nodejs/docker-node/blob/02a64a08a98a472c6141cd583d2e9fc47bcd9bfd/18/alpine3.16/Dockerfile#L91-L92).
&& rm -Rf /opt/yarn-v1.22.19/ /usr/local/bin/yarn /usr/local/bin/yarnpkg
ADD conf/docker.yaml /verdaccio/conf/config.yaml
ADD docker-bin $VERDACCIO_APPDIR/docker-bin
RUN adduser -u $VERDACCIO_USER_UID -S -D -h $VERDACCIO_APPDIR -g "$VERDACCIO_USER_NAME user" -s /sbin/nologin $VERDACCIO_USER_NAME && \
chmod -R +x $VERDACCIO_APPDIR/packages/verdaccio/bin $VERDACCIO_APPDIR/docker-bin && \
chmod -R +x /usr/local/lib/node_modules/verdaccio/bin/verdaccio $VERDACCIO_APPDIR/docker-bin && \
chown -R $VERDACCIO_USER_UID:root /verdaccio/storage && \
chmod -R g=u /verdaccio/storage /etc/passwd
@@ -55,4 +79,4 @@ VOLUME /verdaccio/storage
ENTRYPOINT ["uid_entrypoint"]
CMD $VERDACCIO_APPDIR/packages/verdaccio/bin/verdaccio --config /verdaccio/conf/config.yaml --listen $VERDACCIO_PROTOCOL://0.0.0.0:$VERDACCIO_PORT
CMD verdaccio --config /verdaccio/conf/config.yaml --listen $VERDACCIO_PROTOCOL://0.0.0.0:$VERDACCIO_PORT

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021 Verdaccio contributors
Copyright (c) 2023 Verdaccio contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

181
README.md
View File

@@ -1,19 +1,8 @@
[![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 Next (Development branch)
> 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 `next` version
> are hosted on this project `./packages/plugins`, keep on mind `next` plugins will eventually would be
> incompatible with `v5.x` versions.
> Note that contributing guidelines might be different based on the branch.
# Version 7.x
[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
@@ -29,40 +18,35 @@ Google Cloud Storage** or create your own plugin.
[![backers](https://opencollective.com/verdaccio/tiers/backer/badge.svg?label=Backer&color=brightgreen)](https://opencollective.com/verdaccio)
[![stackshare](https://img.shields.io/badge/Follow%20on-StackShare-blue.svg?logo=stackshare&style=flat)](https://stackshare.io/verdaccio)
[![discord](https://img.shields.io/discord/388674437219745793.svg)](http://chat.verdaccio.org/)
[![discord](https://img.shields.io/discord/388674437219745793.svg)](https://discord.gg/7qWJxBf)
[![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/verdaccio/localized.svg)](https://crowdin.com/project/verdaccio)
[![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 v16 required
Install with npm:
> Consider `latest-6` tag as not a definitive release.
```bash
npm install --location=global verdaccio@next
npm install --location=global verdaccio@latest-6
```
With `yarn`
> Node.js v18 or higher is required for Verdaccio 6
or pull [Docker official image](https://verdaccio.org/docs/docker)
```bash
yarn global add verdaccio@next
docker pull verdaccio/verdaccio
```
With `pnpm`
and run
```bash
pnpm i -g verdaccio@next
```
or
```bash
docker pull verdaccio/verdaccio:nightly-master
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
```
or with _helm_ [official chart](https://github.com/verdaccio/charts).
@@ -73,7 +57,19 @@ 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.
## Programmatic API
Verdaccio can be used as a module for launch a server programmatically, [you can find more info at the website](https://verdaccio.org/docs/verdaccio-programmatically#using-the-module-api).
```
const {runServer} = require('verdaccio');
const app = await runServer(); // default configuration
const app = await runServer('./config/config.yaml');
const app = await runServer({ configuration });
app.listen(4873, (event) => {
// do something
});
```
## Plugins
@@ -88,9 +84,9 @@ Learn more [here](https://verdaccio.org/docs/dev-plugins) how to develop plugins
## 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 do a long support donation - **and your logo will be on this section of the 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 and maintenance.
**[Donate](https://github.com/sponsors/verdaccio)** 💵👍🏻 starting from _$1/month_ or just one single contribution.
You can donate **[GitHub Sponsors](https://github.com/sponsors/verdaccio)** or **[Open Collective](https://opencollective.com/verdaccio)** 💵👍🏻 starting from _$1/month_ or just one single contribution.
## What does Verdaccio do for me?
@@ -122,27 +118,13 @@ Furthermore, here few examples how to start:
- [verdaccio-end-to-end-tests](https://github.com/juanpicado/verdaccio-end-to-end-tests)
- [verdaccio-fork](https://github.com/juanpicado/verdaccio-fork)
## Watch our Videos
## Talks
**Node Congress 2022, February 2022, Online Free**
- [**NodeTLV 2022** - Deep dive into Verdaccio, a lightweight Node.js registry - **Juan Picado**](https://portal.gitnation.org/contents/five-ways-of-taking-advantage-of-verdaccio-your-private-and-proxy-nodejs-registry)
- [Five Ways of Taking Advantage of Verdaccio, Your Private and Proxy Node.js Registry **Node Congress 2022** - **Juan Picado**](https://portal.gitnation.org/contents/five-ways-of-taking-advantage-of-verdaccio-your-private-and-proxy-nodejs-registry)
- [Using Docker and Verdaccio to make Integration Testing Easy - **Docker All Hands #4 December - 2021** - **Juan Picado**](https://www.youtube.com/watch?v=zRI0skF1f8I)
<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)
- [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)
- [Verdaccio - A lightweight Private Proxy Registry built in Node.js | **Juan Picado** at The Destro Dev Show](https://www.youtube.com/watch?reload=9&v=P_hxy7W-IL4&ab_channel=TheDestroDevShow)
[View more in the YouTube channel](https://www.youtube.com/channel/UC5i20v6o7lSjXzAHOvatt0w).
## Get Started
@@ -155,7 +137,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:
@@ -179,7 +161,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
@@ -196,11 +178,15 @@ Below are the most commonly needed information,
every aspect of Docker and verdaccio is [documented separately](https://www.verdaccio.org/docs/en/docker.html)
```
docker pull verdaccio/verdaccio:nightly-master
docker pull verdaccio/verdaccio
```
Available as [tags](https://hub.docker.com/r/verdaccio/verdaccio/tags/).
```
docker pull verdaccio/verdaccio:5.x-next
```
### Running verdaccio using Docker
To run the docker container:
@@ -209,7 +195,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/verdaccio/tree/master/docker-examples).
Docker examples are available [in this repository](https://github.com/verdaccio/docker-examples).
## Compatibility
@@ -217,27 +203,27 @@ Verdaccio aims to support all features of a standard npm client that make sense
### Basic features
- Installing packages (npm install, npm upgrade, etc.) - **supported**
- Publishing packages (npm publish) - **supported**
- Installing packages (`npm install`, `npm upgrade`, etc.) - **supported**
- Publishing packages (`npm publish`) - **supported**
### Advanced package control
- Unpublishing packages (npm unpublish) - **supported**
- Tagging (npm tag) - **supported**
- Deprecation (npm deprecate) - **supported**
- Unpublishing packages (`npm unpublish`) - **supported**
- Tagging (`npm tag`) - **supported**
- Deprecation (`npm deprecate`) - **supported**
### User management
- Registering new users (npm adduser {newuser}) - **supported**
- Change password (npm profile set password) - **supported**
- Transferring ownership (npm owner add {user} {pkg}) - not supported, _PR-welcome_
- Token (npm token) - **supported**
- Registering new users (`npm adduser {newuser}`) - **supported**
- Change password (`npm profile set password`) - **supported**
- Transferring ownership (`npm owner add {user} {pkg}`) - not supported, _PR-welcome_
- Token (`npm token`) - **supported** (under flag)
### Miscellany
- Searching (npm search) - **supported** (cli / browser)
- Ping (npm ping) - **supported**
- Starring (npm star, npm unstar, npm stars) - **supported**
- Search (`npm search`) - **supported** (cli (`/-/all` and `v1`) / browser)
- Ping (`npm ping`) - **supported**
- Starring (`npm star`, `npm unstar`, `npm stars`) - **supported**
### Security
@@ -247,48 +233,33 @@ Verdaccio aims to support all features of a standard npm client that make sense
If you want to report a security vulnerability, please follow the steps which we have defined for you in our [security policy](https://github.com/verdaccio/verdaccio/security/policy).
## Special Thanks
## Contributors
Thanks to the following companies to help us to achieve our goals providing free open source licenses. Every company provides enough resources to move this project forward.
| [Juan Picado](https://github.com/juanpicado) | [Ayush Sharma](https://github.com/ayusharma) | [Sergio Hg](https://github.com/sergiohgz) |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| ![jotadeveloper](https://avatars3.githubusercontent.com/u/558752?s=80&v=4) | ![ayusharma](https://avatars2.githubusercontent.com/u/6918450?s=80&v=4) | ![sergiohgz](https://avatars2.githubusercontent.com/u/14012309?s=80&v=4) |
| [@jotadeveloper](https://fosstodon.org/@jotadeveloper) | [@ayusharma\_](https://twitter.com/ayusharma_) | [@sergiohgz](https://twitter.com/sergiohgz) |
| [Priscila Oliveria](https://github.com/priscilawebdev) | [Daniel Ruf](https://github.com/DanielRuf) |
| ![priscilawebdev](https://avatars2.githubusercontent.com/u/29228205?s=80&v=4) | ![DanielRuf](https://avatars3.githubusercontent.com/u/827205?s=80&v=4) |
| [@priscilawebdev](https://twitter.com/priscilawebdev) | [@DanielRufde](https://twitter.com/DanielRufde) |
| Company | Logo | License |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| JetBrains | [![jetbrain](assets/thanks/jetbrains/logo.png)](https://www.jetbrains.com/) | JetBrains provides licenses for products for active maintainers, renewable yearly |
| Crowdin | [![crowdin](assets/thanks/crowdin/logo.png)](https://crowdin.com/) | Crowdin provides platform for translations |
| BrowserStack | [![browserstack](https://cdn.verdaccio.dev/readme/browserstack_logo.png)](https://www.browserstack.com/) | BrowserStack provides plan to run End to End testing for the UI |
| Netlify | [![netlify](https://www.netlify.com/img/global/badges/netlify-color-accent.svg)](https://www.netlify.com/) | Netlify provides pro plan for website deployment |
| Algolia | [![algolia](https://cdn.verdaccio.dev/sponsor/logo/algolia/logo.png)](https://algolia.com/) | Algolia provides search services for the website |
| Docker | [![docker](https://cdn.verdaccio.dev/sponsor/logo/docker/docker.png)](https://www.docker.com/community/open-source/application) | Docker offers unlimited pulls and unlimited egress to any and all users |
## Maintainers
| [Juan Picado](https://github.com/juanpicado) | [Ayush Sharma](https://github.com/ayusharma) | [Sergio Hg](https://github.com/sergiohgz) |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| ![jotadeveloper](https://avatars3.githubusercontent.com/u/558752?s=120&v=4) | ![ayusharma](https://avatars2.githubusercontent.com/u/6918450?s=120&v=4) | ![sergiohgz](https://avatars2.githubusercontent.com/u/14012309?s=120&v=4) |
| [@jotadeveloper](https://twitter.com/jotadeveloper) | [@ayusharma\_](https://twitter.com/ayusharma_) | [@sergiohgz](https://twitter.com/sergiohgz) |
| [Priscila Oliveria](https://github.com/priscilawebdev) | [Daniel Ruf](https://github.com/DanielRuf) |
| ![priscilawebdev](https://avatars2.githubusercontent.com/u/29228205?s=120&v=4) | ![DanielRuf](https://avatars3.githubusercontent.com/u/827205?s=120&v=4) |
| [@priscilawebdev](https://twitter.com/priscilawebdev) | [@DanielRufde](https://twitter.com/DanielRufde) |
You can find and chat with then over Discord, click [here](http://chat.verdaccio.org) or follow them at _Twitter_.
[See the full list of contributors is at the website.](https://verdaccio.org/contributors)
## Who is using Verdaccio?
- [create-react-app](https://github.com/facebook/create-react-app/blob/master/CONTRIBUTING.md#customizing-e2e-registry-configuration) _(+86.2k ⭐️)_
- [Grafana](https://github.com/grafana/grafana/search?q=verdaccio) _(+54.9k ⭐️)_
- [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 ⭐️)_
- [bit](https://github.com/teambit/bit) _(+13k ⭐️)_
- [create-react-app](https://github.com/facebook/create-react-app/blob/master/CONTRIBUTING.md#customizing-e2e-registry-configuration) _(+96.2k ⭐️)_
- [Gatsby](https://github.com/gatsbyjs/gatsby) _(+53.5k ⭐️)_
- [Babel.js](https://github.com/babel/babel) _(+41.3k ⭐️)_
- [Docusaurus](https://github.com/facebook/docusaurus) _(+37k ⭐️)_
- [Vue CLI](https://github.com/vuejs/vue-cli) _(+29.4k ⭐️)_
- [Angular CLI](https://github.com/angular/angular-cli) _(+25.6k ⭐️)_
- [Uppy](https://github.com/transloadit/uppy) _(+25.8k ⭐️)_
- [pnpm](https://github.com/pnpm/pnpm) _(+19.2k ⭐️)_
- [bit](https://github.com/teambit/bit) _(+15k ⭐️)_
- [NX](https://github.com/nrwl/nx) _(+14.1k ⭐️)_
- [Aurelia Framework](https://github.com/aurelia/framework) _(+11.6k ⭐️)_
- [pnpm](https://github.com/pnpm/pnpm) _(+10.1k ⭐️)_
- [ethereum/web3.js](https://github.com/ethereum/web3.js) _(+9.8k ⭐️)_
- [Webiny CMS](https://github.com/webiny/webiny-js) _(+6.6k ⭐️)_
- [NX](https://github.com/nrwl/nx) _(+6.1k ⭐️)_
- [Mozilla Neutrino](https://github.com/neutrinojs/neutrino) _(+3.7k ⭐️)_
- [webiny-js](https://github.com/webiny/webiny-js) _(+5.9k ⭐️)_
- [workshopper how to npm](https://github.com/workshopper/how-to-npm) _(+1k ⭐️)_
- [Amazon SDK v3](https://github.com/aws/aws-sdk-js-v3)
- [Amazon Encryption SDK for Javascript](https://github.com/aws/aws-encryption-sdk-javascript)
@@ -316,6 +287,16 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com
[![backers](https://opencollective.com/verdaccio/backers.svg?width=890)](https://opencollective.com/verdaccio#backers)
## Special Thanks
Thanks to the following companies to help us to achieve our goals providing free open source licenses.
[![jetbrain](assets/thanks/jetbrains/logo.png)](https://www.jetbrains.com/)
[![crowdin](assets/thanks/crowdin/logo.png)](https://crowdin.com/)
[![browserstack](https://cdn.verdaccio.dev/readme/browserstack_logo.png)](https://www.browserstack.com/)
Verdaccio also is part of to the [Docker Open Source Program](https://www.docker.com/blog/expanded-support-for-open-source-software-projects/).
## Contributors
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].

View File

@@ -4,13 +4,13 @@
The following table describes the versions of this project that are currently supported with security updates:
| Version | Supported |
| --------- | ------------------ |
| 2.x | :x: |
| 3.x | :x: |
| 4.x | :x: |
| 5.x | :white_check_mark: |
| 6.x alpha | :x: |
| Version | Supported |
| ------- | -------------------------------------- |
| 2.x | :x: |
| 3.x | :x: |
| 4.x | :x: |
| 5.x | :white_check_mark: (until end of 2024) |
| 6.x | :white_check_mark: |
## Responsible disclosure security policy
@@ -28,11 +28,11 @@ At Verdaccio, we consider the security of our systems a top priority. But no mat
If you discover a security vulnerability, please use one of the following means of communications to report it to us:
- Report the security issue to [Snyk Security Team](https://snyk.io/vulnerability-disclosure). They will help triage the security issue and work with all involved parties to remediate and release a fix.
- Report the security issue to the Node.js Security WG through the [HackerOne program](https://hackerone.com/nodejs-ecosystem) for ecosystem modules on npm, or to [Snyk Security Team](https://snyk.io/vulnerability-disclosure). They will help triage the security issue and work with all involved parties to remediate and release a fix.
Note that time-frame and processes are subject to each programs own policy.
- Report the security issue to the project maintainers directly at verdaccio@pm.me. If the report contains highly sensitive information, please be advised to encrypt your findings using our [PGP key](https://cdn.verdaccio.dev/gpg/publickey.verdaccio@pm.me.asc) which is also available in this document.
- Report the security issue to the project maintainers directly at verdaccio@pm.me. If the report contains highly sensitive information, please be advised to encrypt your findings using our [PGP key](https://verdaccio.nyc3.digitaloceanspaces.com/gpg/publickey.verdaccio@pm.me.asc) which is also available in this document.
Your efforts to responsibly disclose your findings are sincerely appreciated and will be taken into account to acknowledge your contributions.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

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