Compare commits

...

155 Commits

Author SHA1 Message Date
Juan Picado
e85648f017 chore: update versions (next-8) (#5129)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-09 15:15:16 +01:00
Marc Bernard
95ac1242dc chore: add package parameter to storage plugin interface (#5127) 2025-03-09 12:37:24 +01:00
Juan Picado
00c142f480 chore: update versions (next-8) (#5105)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-09 11:51:41 +01:00
Marc Bernard
411087391a chore(middleware): improve loop detection (#5111)
* chore(middleware): improve loop detection

* rename loop > antiloop.spec

* replace regex
2025-03-09 11:12:17 +01:00
renovate[bot]
016f0c2bcd chore(deps): update babel monorepo to v7.26.9 (#5118)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-09 10:56:26 +01:00
Marc Bernard
85e0e135aa fix: internal error for unpublished tarball (#5119) 2025-03-09 10:56:00 +01:00
Marc Bernard
13e0fdef08 fix(proxy): validate protocol of proxy settings (#5125)
* fix(proxy): validate protocol of proxy settings

* Update docs
2025-03-09 10:42:11 +01:00
Marc Bernard
83dbde5154 fix(store): internal error when checking manifest (#5123) 2025-03-08 14:39:53 +01:00
Marc Bernard
7e48ac6cde fix(store): update deprecate state (#5121) 2025-03-08 14:36:46 +01:00
Marc Bernard
d1dcb2ccc3 chore: sort package.json (#5122) 2025-03-08 13:35:07 +01:00
Marc Bernard
66bc2843e1 chore: middleware package update (#5126) 2025-03-08 13:34:36 +01:00
verdacciobot
dd2fa34e1f chore: updated static data 2025-03-06 00:15:32 +00:00
Juan Picado
0bd3e8e7e7 Update changesets-pr.yml 2025-03-04 17:09:34 +01:00
renovate[bot]
dc89fa0269 chore(deps): update all build dependencies (#5117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-03 12:33:28 +01:00
verdacciobot
ae9944ebf8 chore: updated static data 2025-03-03 00:15:32 +00:00
Juan Picado
fc9447e805 chore: update ci 2025-03-02 18:26:07 +01:00
Juan Picado
12712f5547 Update ui-components.yml 2025-03-02 18:19:01 +01:00
Juan Picado
e33f8446af chore: ui-component ci 2025-03-02 18:13:54 +01:00
verdacciobot
c7d0290127 chore: updated static data 2025-03-02 16:25:25 +00:00
Juan Picado
9fbae9a5c7 chore: fix msw local development (#5116)
* chore: fix msw local development

* Create changesets-pr.yml

* Update changesets-pr.yml

* Update changesets-pr.yml

* Update changesets-pr.yml

* Update changesets-pr.yml
2025-03-02 17:21:15 +01:00
Juan Picado
b6e9f4606e chore: update ui-i18n package settings 2025-03-02 13:12:55 +01:00
Juan Picado
3b72253c9c chore: update ui-components workflow 2025-03-02 13:10:15 +01:00
Juan Picado
f6a4f9f582 Update pnpm-lock.yaml 2025-03-02 13:06:15 +01:00
Juan Picado
4166b31540 chore: fix changesets 2025-03-02 13:04:37 +01:00
Juan Picado
a7c1f36ec1 Update pre.json 2025-03-02 12:54:58 +01:00
Juan Picado
c256b1d97e Update changesets.yml 2025-03-02 12:51:17 +01:00
Juan Picado
92c128f735 Update changesets.yml 2025-03-02 12:50:47 +01:00
Juan Picado
e78686e961 Update changesets.yml 2025-03-02 12:43:39 +01:00
Juan Picado
d4225867df chore: improve ci 2025-03-02 12:37:35 +01:00
Juan Picado
8d30c50c89 chore: remove test files 2025-03-02 12:32:03 +01:00
Juan Picado
be28e6cc1b Update .gitignore 2025-03-02 12:30:53 +01:00
Juan Picado
d9e8da40c4 chore: add ui translation package (#5115)
* chore: add ui translation package

* Update package.json

* Create itchy-glasses-end.md
2025-03-02 12:07:36 +01:00
Marc Bernard
6260eae1e8 fix(ui-components): remove test warnings (#5113) 2025-03-02 11:39:04 +01:00
Marc Bernard
8eb8975d66 fix: notification/alert box formatting (#5112) 2025-03-02 10:54:40 +01:00
Marc Bernard
96fdf89d20 fix(web): anonymous user handling (#5114)
* fix(web): "??" operator warning

* fix(web): anonymous user handling

* remove duplicate changeset
2025-03-02 10:50:56 +01:00
dependabot[bot]
cd61cd4dab chore(deps): bump actions/cache from 4.2.0 to 4.2.2 (#5108)
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.0 to 4.2.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](1bd1e32a3b...d4323d4df1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-01 13:26:41 +01:00
dependabot[bot]
e1ceeb051c chore(deps): bump github/codeql-action from 3.28.8 to 3.28.10 (#5107)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.8 to 3.28.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](dd746615b3...b56ba49b26)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-01 13:26:34 +01:00
dependabot[bot]
ace32e1dd9 chore(deps): bump docker/setup-qemu-action from 3.3.0 to 3.6.0 (#5109)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.3.0 to 3.6.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](53851d1459...29109295f8)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-01 13:26:25 +01:00
dependabot[bot]
bcd90863f1 chore(deps): bump actions/upload-artifact from 4.6.0 to 4.6.1 (#5110)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](65c4c4a1dd...4cec3d8aa0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-01 13:26:03 +01:00
Juan Picado
add1b7674b chore: fix dependency reference 2025-03-01 11:50:43 +01:00
Juan Picado
0823c446aa chore: corepack inside dockerfile 2025-03-01 11:35:10 +01:00
Juan Picado
ffcf865ba8 chore: update pnpm command 2025-03-01 11:33:17 +01:00
Juan Picado
150ac6e231 chore: update pnm10 (#5106)
* chore: update pnm10

* Update e2e-ci.yml

* Update e2e-ci.yml

* Update e2e-ci.yml
2025-03-01 11:31:32 +01:00
Marc Bernard
02f28e928e fix(ui-components): typings for vitest/jest-dom (#5103) 2025-03-01 10:26:35 +01:00
Marc Bernard
a85a6c58d6 fix: set eol default (#5104) 2025-03-01 09:51:47 +01:00
verdacciobot
ea6b31a4e5 chore: updated static data 2025-02-27 00:15:24 +00:00
verdacciobot
1d4972bf93 chore: updated static data 2025-02-24 00:15:02 +00:00
Juan Picado
0494295240 chore: update versions (next-8) (#5102)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-23 12:30:03 +01:00
renovate[bot]
d9628a8fa4 chore(deps): update dependency vite-tsconfig-paths to v5.1.4 (#5098)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-23 12:19:48 +01:00
renovate[bot]
53869d8eed fix(deps): update dependency react-hook-form to v7.54.2 (#5099)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-23 12:19:37 +01:00
Paul Gschwendtner
bf0e09a509 fix: runtime dependency missing as explicit dependency (#5101)
* fix: runtime dependency missing as explicit dependency

Currently, when `@verdaccio/signature` is loaded, in particular the `signature.js` file, the `@verdaccio/config` module is being loaded but it's not an explicit dependency. It's just a dev dependency. This is problematic with e.g. pnpm as package manager which intentionally tries to prevent such "leaking"/"escaping" of dependencies.

* lock file

---------

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2025-02-23 12:19:04 +01:00
verdacciobot
3711b20816 chore: updated static data 2025-02-20 00:14:16 +00:00
verdacciobot
a29e7d4b27 chore: updated static data 2025-02-17 00:14:16 +00:00
Juan Picado
11055f6eb3 chore: update versions (next-8) (#5095)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-16 22:30:04 +01:00
renovate[bot]
5ab899fa57 fix(deps): update dependency core-js to v3.40.0 (#5097) 2025-02-16 22:02:50 +01:00
renovate[bot]
87e410478e fix(deps): update dependency compression to v1.8.0 (#5096) 2025-02-16 22:02:32 +01:00
Juan Picado
96e0011655 chore: update versions (#5094) 2025-02-16 20:28:02 +01:00
renovate[bot]
22c3455918 fix(deps): update dependency country-flag-icons to v1.5.16 (#5092)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-15 16:40:38 +01:00
verdacciobot
27bda4c4b2 chore: updated static data 2025-02-13 00:14:18 +00:00
verdacciobot
e80fa2df04 chore: updated static data 2025-02-10 00:14:57 +00:00
Aditya Mathur
6a4f03b97b refactor(api): update user routes to use constants for endpoints (#5089) 2025-02-06 08:30:44 +01:00
verdacciobot
7ee74706b4 chore: updated static data 2025-02-06 00:14:05 +00:00
renovate[bot]
ef94596558 chore(deps): update dependency storybook to v8.5.3 (#5087)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 22:22:48 +01:00
renovate[bot]
ecddde1870 fix(deps): update dependency semver to v7.7.1 (#5088)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 22:06:28 +01:00
renovate[bot]
b744cfec2a chore(deps): update dependency @changesets/cli to v2.27.12 (#5085)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-04 21:11:22 +01:00
verdacciobot
5e394ce970 chore: updated static data 2025-02-04 07:06:17 +00:00
renovate[bot]
9d4aa6ae32 chore(deps): update dependency undici-types to v5.28.4 (master) (#5086)
* chore(deps): update dependency undici-types to v5.28.4

* Update action.yml

* update ci

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2025-02-03 22:55:46 +01:00
Juan Picado
b091c256ea chore: update versions (next-8) (#5015) 2025-02-02 18:34:35 +01:00
Juan Picado
5ca87c34b4 chore: update local scripts (#5084)
* add local scripts

* add scripts

* add charts

* Update static-data.yml

* label
2025-02-02 16:14:43 +01:00
Marc Bernard
058860593a chore: keep_readmes docs (#5052)
* chore: `keep_readmes` docs

* clean-up type

* fix indent (tab to space)
2025-02-02 11:02:14 +01:00
dependabot[bot]
7fb6950996 chore(deps): bump github/codeql-action from 3.28.0 to 3.28.8 (#5083)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.0 to 3.28.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](48ab28a6f5...dd746615b3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 11:00:13 +01:00
dependabot[bot]
16aba09ab2 chore(deps): bump docker/setup-qemu-action from 3.2.0 to 3.3.0 (#5082)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](49b3bc8e6b...53851d1459)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-02 10:52:25 +01:00
Juan Picado
4247cb1d3b chore: update versions 2025-02-02 10:50:54 +01:00
Juan Picado
ab427ffda5 chore: update versions 2025-02-02 10:43:53 +01:00
renovate[bot]
8ed867a7f9 chore(deps): update dependency update-ts-references to v3.6.0 (#5080)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-30 10:05:25 +01:00
verdacciobot
6714686111 chore: updated static data 2025-01-30 00:13:01 +00:00
renovate[bot]
1f90ef1ca3 fix(deps): update dependency envinfo to v7.14.0 (#5079)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-29 09:15:07 +01:00
renovate[bot]
9d91368b46 fix(deps): update dependency dompurify to v3.2.3 (master) (#5064)
* fix(deps): update dependency dompurify to v3.2.3

* fix dep

* Update utils.ts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2025-01-28 22:50:54 +01:00
renovate[bot]
71a0b06e31 fix(deps): update dependency abortcontroller-polyfill to v1.7.8 (#5076)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-28 10:20:19 +01:00
renovate[bot]
5bc3951fb8 fix(deps): update dependency country-flag-icons to v1.5.14 (#5077)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-28 10:19:20 +01:00
renovate[bot]
e1b0c9bb9a fix(deps): update dependency react-markdown to v9.0.3 (#5078)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-28 10:18:47 +01:00
Marc Bernard
69f2e66b92 fix(ui): sort versions (#5049)
* fix(ui): sort versions

* Add test
2025-01-27 23:48:30 +01:00
renovate[bot]
4b16136a05 chore(deps): update babel monorepo (#5073)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-27 23:47:28 +01:00
renovate[bot]
72afb98a62 fix(deps): update dependency marked to v15.0.6 (#5074)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-27 22:38:40 +01:00
renovate[bot]
d8eaf85a32 fix(deps): update dependency react-virtualized to v9.22.6 (#5075)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-27 22:38:24 +01:00
Marc Bernard
eb4a24b2fc chore(deps): upgrade storybook to v8 (#5056)
* chore(deps): upgrade storybook to v8

* Update
2025-01-27 15:28:22 +01:00
renovate[bot]
3935e2f0a9 chore(deps): update actions/setup-node action to v4.2.0 (#5071) 2025-01-27 07:01:01 +01:00
verdacciobot
05d3e78083 chore: updated static data 2025-01-27 00:14:03 +00:00
renovate[bot]
b11cd7d11a chore(deps): update all test dependencies (master) (major) (#5067)
* chore(deps): update all test dependencies

* fix tests and skip one

* restore nock

drops v18 and still being used

* Update pnpm-lock.yaml

* simplify nock deps

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2025-01-26 22:44:12 +01:00
renovate[bot]
31c9ec48b0 fix(deps): update dependency marked-highlight to v2.2.1 (#5066)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-26 12:21:35 +01:00
renovate[bot]
b6fa1a9a8f fix(deps): update dependency highlight.js to v11.11.1 (#5065)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-26 12:20:37 +01:00
renovate[bot]
735a378917 chore(deps): update dependency sass to v1.83.4 (#5062)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-26 11:10:10 +01:00
renovate[bot]
f1477cc4f4 chore(deps): update dependency yaml to v2.7.0 (#5060)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-25 16:00:29 +01:00
verdacciobot
da6afe3098 chore: updated static data 2025-01-23 00:13:31 +00:00
Carmelo Scandaliato
fce79e9d40 docs: fix typo in plugin-middleware.md (#5058) 2025-01-23 00:06:25 +01:00
Juan Picado
a461a2e4cf chore: improve charts (#5057)
chore: improve charts
2025-01-20 20:56:43 +01:00
verdacciobot
36b8930f0e chore: updated static data 2025-01-20 00:13:48 +00:00
renovate[bot]
0ae636da09 chore(deps): update actions/upload-artifact action to v4.6.0 (#5048) 2025-01-16 21:48:55 +01:00
Marc Bernard
ca91b9af48 fix: config builder addLogger (#5053) 2025-01-16 21:33:38 +01:00
Marc Bernard
3ab6b670cb website: update env and migration docs (#5051) 2025-01-16 21:19:48 +01:00
verdacciobot
d6718a671b chore: updated static data 2025-01-16 00:13:28 +00:00
Marc Bernard
b3a1499223 chore: bump user agent (#5050) 2025-01-15 18:57:57 +01:00
Marc Bernard
8289cc67b8 fix: ui-component vitest api (#5054) 2025-01-14 20:04:51 +01:00
verdacciobot
49dde15fc8 chore: updated static data 2025-01-13 00:14:33 +00:00
verdacciobot
a34f761e44 chore: updated static data 2025-01-09 00:14:07 +00:00
verdacciobot
768b5b10ce chore: updated static data 2025-01-06 00:14:21 +00:00
Marc Bernard
8e9850bc93 website: fix color of selection in dark mode (#5042) 2025-01-05 21:25:07 +01:00
dependabot[bot]
3ff441b881 chore(deps): bump github/codeql-action from 3.27.5 to 3.28.0 (#5038)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.27.5 to 3.28.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](f09c1c0a94...48ab28a6f5)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-05 09:16:38 +01:00
renovate[bot]
73ae57996f chore(deps): update dependency ts-jest to v29.2.5 (#5040)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-05 09:16:28 +01:00
verdacciobot
f3c88bae03 chore: updated static data 2025-01-05 08:03:32 +00:00
Juan Picado
98d808bcd1 chore: fix local script 2025-01-05 09:00:53 +01:00
renovate[bot]
061e9a9dee chore(deps): update dependency @changesets/cli to v2.27.11 (#5039)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-05 00:12:20 +01:00
verdacciobot
0539b40182 chore: updated static data 2025-01-04 20:58:24 +00:00
Juan Picado
12e91aa3cd Update static-data.yml 2025-01-04 21:55:15 +01:00
Juan Picado
2ab3f41bb1 Update static-data.yml 2025-01-04 21:46:45 +01:00
Juan Picado
46b1238bc0 Update static-data.yml 2025-01-04 21:40:37 +01:00
Juan Picado
c5e174cdc5 chore: website metrics (#5041)
* metrics charts example

* metrics charts example

* metrics charts example

* Update npmjs_downloads.json
2025-01-04 21:38:52 +01:00
verdacciobot
4b16eb2c35 chore: updated static data 2025-01-02 00:15:44 +00:00
Jason N. White
d771aabf09 Update LICENSE, fix license year (#5037)
Signed-off-by: JasonnnW3000 <sufssl04@gmail.com>
2025-01-01 11:44:44 +01:00
renovate[bot]
4b787046d2 chore(deps): update node.js to v22 (#5035)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-30 21:06:49 +01:00
renovate[bot]
4340227775 chore(deps): update dependency ubuntu to v24 (#5034) 2024-12-30 19:51:00 +01:00
renovate[bot]
b46dd013b1 chore(deps): update dependency esbuild to v0.24.2 (#5032)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-30 11:21:38 +01:00
renovate[bot]
ba23a2d26d chore(deps): update dependency jsdom to v25 (#5031)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-30 10:41:15 +01:00
renovate[bot]
82ea8eb3e0 fix(deps): update dependency marked to v15 (#5029)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-30 10:20:43 +01:00
verdacciobot
1be1f20629 chore: updated static data 2024-12-30 00:16:17 +00:00
Juan Picado
f1ce900afa chore: renovate allow major PR upgrades 2024-12-29 22:08:09 +01:00
renovate[bot]
319b3847f3 chore(deps): update all actions (#5027)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-29 22:03:29 +01:00
renovate[bot]
2255a38ea2 chore(deps): update babel monorepo (#5028)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-29 21:37:01 +01:00
renovate[bot]
7c0577733b chore(deps): update all test dependencies (master) (#5023)
* chore(deps): update all test dependencies

* Update renovate.json

* fix test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2024-12-29 21:34:47 +01:00
renovate[bot]
738b656096 chore(deps): update all build dependencies (#5022) 2024-12-29 20:36:11 +01:00
renovate[bot]
e2f81fc0f6 fix(deps): update react monorepo to v18.3.1 (#5026) 2024-12-29 20:02:39 +01:00
renovate[bot]
c288c18535 chore(deps): update dependency yaml to v2.6.1 (#5025) 2024-12-29 20:02:25 +01:00
renovate[bot]
19918ae956 chore(deps): update dependency update-ts-references to v3.4.0 (#5024) 2024-12-29 20:02:05 +01:00
Juan Picado
d9e9bc048c Update plugin-generator-e2e.yaml 2024-12-29 18:55:34 +01:00
Juan Picado
4f1818471f chore: update website deployment 2024-12-29 17:31:13 +01:00
Juan Picado
fe8d16fde4 chore: website upgrade docusaurus v3 part 4
- remove esbuild
2024-12-29 17:26:01 +01:00
Juan Picado
f06881f4bb chore: website upgrade docusaurus v3 part 3
- ignore broken links (at least warning)
- clean up readme and old links
2024-12-29 17:13:17 +01:00
Juan Picado
dd3fcbd416 chore: website upgrade docusaurus v3 part 2
- fix broken mdx3 issues
2024-12-29 16:53:10 +01:00
Juan Picado
fde3e2440b chore: website upgrade docusaurus v3 part 1 (#5021)
* chore: migrate website docusaurus

* Update pnpm-lock.yaml

* Update website.yml

* remove plugin

* Update pnpm-lock.yaml

* reuse docs aws

* fix mdx3 issues

* Update website.yml
2024-12-29 16:21:12 +01:00
renovate[bot]
c7325acf3c fix(deps): update dependency pino to v9.6.0 (#5018) 2024-12-26 18:57:27 +01:00
Juan Picado
e9a3b95cff chore: fix test 2024-12-26 15:26:56 +01:00
verdacciobot
6cb3c52830 chore: updated static data 2024-12-26 00:15:20 +00:00
Xingwang Liao
970e0c9157 feat(ui-components): update hover background color of package list (#5016)
This color was fixed in #4687 and looks too dark.
Use the original hover color defined in [@mui/material](https://github.com/mui/material-ui/blob/v5.16.5/packages/mui-material/src/styles/createPalette.js#L36)
2024-12-23 09:38:04 +01:00
verdacciobot
b2c6d3a769 chore: updated static data 2024-12-23 00:16:05 +00:00
Marc Bernard
a7afdc73e8 feat: show version-specific readmes in web ui (#4977) 2024-12-21 10:03:46 +01:00
Juan Picado
b745c8246f chore: update versions (next-8) (#5012)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-20 19:02:00 +01:00
Marc Bernard
589ea7fc3f chore: move tarball utils to core (#4972)
* chore: move tarball utils to core

* update middleware, storage

* better regex

* Fix redos vulnerability
2024-12-20 14:21:09 +01:00
Xingwang Liao
5a91448653 feat(ui-components): support packages with multiple module types (#5008) 2024-12-20 10:06:38 +01:00
Juan Picado
139861eb08 fix #4984 crashes with path-to-regexp v0.1.12 (#5011)
* fix: express dependencies

* reuse endpoints

* reuse endpoints

* web urls reused

* fix test

* Create smooth-games-share.md
2024-12-20 09:52:34 +01:00
verdacciobot
f26fb5187a chore: updated static data 2024-12-19 00:16:38 +00:00
renovate[bot]
4640fc3d42 chore(deps): update dependency prettier to v3.4.2 (#5005)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 06:46:56 +01:00
verdacciobot
fbd763267d chore: updated static data 2024-12-16 00:17:29 +00:00
Juan Picado
fe4c4f3b21 chore: fix website build 2024-12-15 20:59:54 +01:00
renovate[bot]
827d36582c fix(deps): update dependency pino to v9.5.0 (#5004)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-15 15:15:22 +01:00
renovate[bot]
68bc817479 fix(deps): update dependency debug to v4.4.0 (#5003)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-15 15:15:09 +01:00
376 changed files with 41388 additions and 24160 deletions

View File

@@ -0,0 +1,9 @@
---
'@verdaccio/tarball': patch
'@verdaccio/core': patch
'@verdaccio/utils': patch
'@verdaccio/middleware': patch
'@verdaccio/store': patch
---
chore: move tarball utils to core

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-components': patch
---
fix(ui): sort versions

View File

@@ -0,0 +1,7 @@
---
'@verdaccio/config': patch
'@verdaccio/types': patch
'@verdaccio/website': patch
---
chore: `keep_readmes` docs

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/store': patch
---
fix(store): internal error when checking manifest

View File

@@ -13,7 +13,11 @@
]
],
"ignoredPackages": [
"@verdaccio/local-publish",
"docusaurus-plugin-downloads",
"docusaurus-plugin-contributors",
"@verdaccio/test-cli-commons",
"@verdaccio/local-scripts",
"@verdaccio/e2e-cli-npm6",
"@verdaccio/e2e-cli-npm7",
"@verdaccio/e2e-cli-npm8",

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/middleware': patch
---
chore(middleware): improve loop detection

View File

@@ -0,0 +1,5 @@
---
'verdaccio': patch
---
chore: bump user agent

View File

@@ -0,0 +1,7 @@
---
'verdaccio': patch
'@verdaccio/store': patch
'@verdaccio/utils': patch
---
fix: internal error for unpublished tarball

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/proxy': patch
'@verdaccio/website': patch
---
fix(proxy): validate protocol of proxy settings

View File

@@ -0,0 +1,7 @@
---
'@verdaccio/ui-theme': minor
'@verdaccio/ui-components': minor
'@verdaccio/ui-i18n': minor
---
feat: new i18n package for ui

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/config': patch
---
fix: runtime dependency missing as explicit dependency

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-components': patch
---
fix(ui-components): remove test warnings

View File

@@ -14,6 +14,7 @@
"@verdaccio/e2e-cli-yarn3": "1.0.1",
"@verdaccio/e2e-cli-yarn4": "1.0.1",
"@verdaccio/e2e-ui": "2.0.0",
"@verdaccio/ui-i18n": "8.0.0",
"@verdaccio/api": "7.0.0",
"@verdaccio/auth": "7.0.0",
"@verdaccio/cli": "7.0.0",
@@ -48,8 +49,7 @@
"@verdaccio/eslint-config": "3.0.0",
"generator-verdaccio-plugin": "5.0.0",
"@verdaccio/test-helper": "3.0.0",
"@verdaccio/local-publish": "0.0.2",
"@verdaccio/crowdin-translations": "1.0.0",
"@verdaccio/local-scripts": "1.0.0",
"customprefix-auth": "2.0.0",
"@verdaccio/ui-components": "3.0.0",
"@verdaccio/utils": "7.0.0",
@@ -58,20 +58,30 @@
"@verdaccio/website": "6.0.0",
"@verdaccio/e2e-cli-npm-common": "1.0.0",
"@verdaccio/e2e-cli-pnpm-common": "1.0.2-next-8.0",
"@verdaccio/e2e-cli-pnpm10": "1.0.0"
"@verdaccio/e2e-cli-pnpm10": "1.0.0",
"docusaurus-plugin-downloads": "2.0.0",
"@verdaccio/local-publish": "0.0.2"
},
"changesets": [
"angry-doors-tan",
"beige-lions-type",
"blue-paws-cheer",
"breezy-geckos-search",
"bright-bobcats-ring",
"brown-planets-approve",
"calm-mangos-compare",
"chatty-apricots-report",
"clean-beds-wash",
"clever-bees-happen",
"cool-seals-watch",
"curly-mirrors-smile",
"curvy-rockets-camp",
"cyan-snakes-kiss",
"early-eyes-float",
"eleven-rocks-dream",
"fifty-falcons-design",
"forty-hounds-matter",
"funny-fireants-tan",
"gentle-stingrays-repeat",
"gold-squids-watch",
"green-eagles-boil",
@@ -79,21 +89,38 @@
"healthy-zoos-lie",
"hip-eggs-serve",
"hot-crews-live",
"itchy-glasses-end",
"long-eyes-drum",
"long-singers-drive",
"lucky-crabs-enjoy",
"nine-countries-remember",
"ninety-geese-do",
"popular-trees-grin",
"proud-houses-switch",
"quick-avocados-type",
"quick-seas-deny",
"real-seahorses-change",
"rotten-melons-notice",
"rotton-readers-shave",
"rude-birds-design",
"rude-socks-walk",
"serious-apes-rule",
"short-mails-smoke",
"silent-bags-listen",
"silent-tips-admire",
"silver-houses-remain",
"slow-cars-guess",
"smooth-games-share",
"strange-pants-chew",
"stupid-camels-build",
"sweet-crabs-deliver",
"thirty-comics-trade",
"tricky-impalas-shake",
"tricky-knives-end",
"violet-baboons-beg",
"violet-bobcats-allow",
"violet-boxes-float",
"weak-cherries-serve"
"weak-cherries-serve",
"wet-cats-behave"
]
}

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/web': patch
---
fix(web): anonymous user handling

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-components': patch
---
fix(ui-components): typings for vitest/jest-dom

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-components': minor
---
update hover background color of package list

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/types': patch
'@verdaccio/config': patch
---
fix: config builder `addLogger`

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-components': patch
---
chore(deps): upgrade storybook to v8

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/middleware': patch
'@verdaccio/web': patch
---
chore: export and constant on middleware

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-components': patch
---
fix: ui-component vitest api

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-components': minor
---
support packages with multiple module types

View File

@@ -0,0 +1,11 @@
---
'@verdaccio/server': patch
'verdaccio-audit': patch
'@verdaccio/test-helper': patch
'@verdaccio/middleware': patch
'@verdaccio/auth': patch
'@verdaccio/api': patch
'@verdaccio/web': patch
---
fix: crashes with path-to-regexp v0.1.12 express

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/web': patch
---
feat: show version-specific readmes in web ui

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/store': patch
---
fix(store): update deprecate state

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/middleware': patch
'@verdaccio/web': patch
---
chore: middleware package update

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/core': patch
'@verdaccio/store': patch
---
chore: add package parameter to storage plugin interface

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-i18n': patch
---
fix: ignore duplicted files

View File

@@ -1,3 +1,4 @@
assets/**/*
**/fixtures/**
**/mock/store/**
**/partials/**

5
.gitattributes vendored
View File

@@ -13,7 +13,7 @@
## 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
* text eol=lf
# Source code
*.bash text eol=lf
@@ -197,3 +197,6 @@ Procfile text eol=lf
# Ignore files (like .npmignore or .gitignore)
*.*ignore text eol=lf
# Test Snapshots
*.snap text eol=lf

View File

@@ -6,7 +6,7 @@ runs:
steps:
- name: Cache Packages
id: cache-packages
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.0.2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ./packages/
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}

View File

@@ -6,7 +6,7 @@ runs:
steps:
- name: Cache .pnpm-store
id: cache-npm
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.0.2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.event.pull_request.number }}-${{ runner.os }}

View File

@@ -22,11 +22,12 @@ runs:
using: composite
steps:
- name: Use Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: ${{ inputs.node-version }}
- name: Install pnpm
run: |
npm install --global corepack@latest
corepack enable
corepack prepare
shell: bash

View File

@@ -15,11 +15,12 @@ runs:
using: composite
steps:
- name: Use Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
npm install --global corepack@latest
corepack enable
corepack prepare
shell: bash

View File

@@ -25,6 +25,7 @@ jobs:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
npm install --global corepack@latest
corepack enable
corepack install
- name: set store

36
.github/workflows/changesets-pr.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Changesets Publish Test
on:
pull_request:
concurrency:
group: changeset-pr-${{ github.ref }}
cancel-in-progress: true
jobs:
version:
if: github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install dependencies with a custom registry
uses: ./.github/actions/install-app
- 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: Docker test
run: |
docker run -d -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:6
- name: login
run: npx npm-cli-login -u test -p 1234 -e test@domain.test -r http://localhost:4873
- name: Prepare
# to allow local snapshot
run: rm .changeset/pre.json
- name: Create snapshot
run: pnpm local:snapshots
- name: Changeset version
run: pnpm local:publish

View File

@@ -1,9 +1,7 @@
name: Changesets
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
push:
branches:
- master
@@ -19,40 +17,16 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
steps:
- name: checkout code repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: '.nvmrc'
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: Install pnpm
run: |
corepack enable
corepack install
- 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 }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install dependencies with a custom registry
uses: ./.github/actions/install-app
- name: crowdin download
env:
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production
run: pnpm crowdin:download
run: pnpm crowdin:download
- name: build
run: pnpm build
- name: create versions
uses: changesets/action@master
with:

View File

@@ -86,14 +86,15 @@ jobs:
if: (github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
npm install --global corepack@latest
corepack enable
corepack install
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.0.2
- uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}

View File

@@ -37,7 +37,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
with:
config: |
paths-ignore:
@@ -50,7 +50,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
uses: github/codeql-action/autobuild@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10

View File

@@ -15,7 +15,7 @@ on:
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
@@ -26,7 +26,7 @@ jobs:
run: docker compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" up -d --build
- name: Install node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: npm setup

View File

@@ -13,7 +13,7 @@ on:
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
@@ -24,7 +24,7 @@ jobs:
run: docker compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" up -d --build
- name: Install node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: npm setup

View File

@@ -25,7 +25,7 @@ jobs:
if: github.repository == 'verdaccio/verdaccio'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
- uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host

View File

@@ -45,7 +45,7 @@ jobs:
npm9,
npm10
]
node: [18, 23]
node: [22]
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
@@ -59,7 +59,7 @@ jobs:
- name: Restore cache pnpm store
uses: ./.github/actions/cache-packages
- name: Test CLI
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}
run: cd e2e/cli/e2e-${{matrix.pkg}} && NODE_ENV=production pnpm test
e2e-cli-pnpm:
needs: [prepare, build]
@@ -72,7 +72,7 @@ jobs:
pnpm9,
pnpm10,
]
node: [18, 23]
node: [22]
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
@@ -86,7 +86,7 @@ jobs:
- name: Restore cache pnpm store
uses: ./.github/actions/cache-packages
- name: Test CLI
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}
run: cd e2e/cli/e2e-${{matrix.pkg}} && NODE_ENV=production pnpm test
e2e-cli-yarn:
needs: [prepare, build]
strategy:
@@ -99,7 +99,7 @@ jobs:
yarn3,
yarn4
]
node: [18, 23]
node: [22]
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
@@ -113,5 +113,5 @@ jobs:
- name: Restore cache pnpm store
uses: ./.github/actions/cache-packages
- name: Test CLI
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}
run: cd e2e/cli/e2e-${{matrix.pkg}} && NODE_ENV=production pnpm test

View File

@@ -26,7 +26,7 @@ jobs:
node-version: 20
- name: Test UI
run: pnpm test:e2e:ui
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: videos
path: /home/runner/work/verdaccio/verdaccio/e2e/ui/cypress/videos

View File

@@ -1,11 +1,11 @@
name: E2E Generator Verdaccio Plugin
on:
pull_request:
# pull_request:
workflow_dispatch:
push:
branches:
- 'master'
# push:
# branches:
# - 'master'
concurrency:
group: generator-plugin-${{ github.ref }}

View File

@@ -24,7 +24,7 @@ jobs:
if: github.repository == 'verdaccio/verdaccio'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
- uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host

View File

@@ -6,7 +6,7 @@ on:
# pull_request:
schedule:
# twice peer week
- cron: '0 0 * * 1,4'
- cron: "0 0 * * 1,4"
# for now, scheduled, we can enable on push master but not make much sense now
# push:
# branches:
@@ -29,8 +29,16 @@ jobs:
uses: ./.github/actions/install-app
with:
reporter: 'default'
- name: Build Translations percentage
run: pnpm --filter @verdaccio/crowdin-translations build
- name: Build package
run: pnpm --filter @verdaccio/local-scripts run build
- name: Get npmjs downloads
run: pnpm --filter @verdaccio/local-scripts run downloads:npmjs
- name: Get docker downloads
run: pnpm --filter @verdaccio/local-scripts run pull:docker
- name: Get npmjs monhtly downloads
run: pnpm --filter @verdaccio/local-scripts run downloads:mounthly
- name: Get npmjs year downloads
run: pnpm --filter @verdaccio/local-scripts run downloads:yearly
- name: update contributors
run: pnpm run contributors
env:

View File

@@ -1,40 +1,36 @@
name: UI Components
on:
# pull_request:
# Disabled temporary
# push:
# branches:
# - master
workflow_dispatch:
# schedule:
# - cron: '0 0 * * *'
concurrency:
group: ui-deploy-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
env:
DEBUG: verdaccio*
contents: read
jobs:
deploy:
permissions:
contents: read # to fetch code (actions/checkout)
deployments: write
pull-requests: write # to comment on pull-requests
runs-on: ubuntu-latest
if: github.repository == 'verdaccio/verdaccio'
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install dependencies with a custom registry
uses: ./.github/actions/install-app
- name: Install pnpm
run: |
corepack enable
corepack prepare
- name: Install
run: pnpm install
- name: crowdin download
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production
run: pnpm crowdin:download
- name: Build modules
run: pnpm build
- name: Build storybook
run: pnpm ui:storybook:build
- name: Copy public content

View File

@@ -2,6 +2,8 @@ name: Verdaccio Website CI
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * 0' # every Sunday at 2am UTC (10pm EST)
permissions:
contents: read # to fetch code (actions/checkout)
@@ -35,9 +37,9 @@ jobs:
with:
node-version: 20
- name: Build Translations percentage
run: pnpm --filter @verdaccio/crowdin-translations build
run: pnpm --filter @verdaccio/local-scripts build
- name: Cache Docusaurus Build
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.0.2
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
with:
path: website/node_modules/.cache/webpack
key: cache/webpack-${{github.ref}}-${{ hashFiles('**/pnpm-lock.yaml') }}

View File

@@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install latest npm'
@@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install latest npm 9'
@@ -83,7 +83,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install latest npm 10'

View File

@@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install latest npm 10'

View File

@@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install npm 9'
@@ -45,7 +45,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install npm 10'

View File

@@ -1,6 +1,6 @@
on:
workflow_call:
jobs:
yarn:
name: 'yarn:jest example'
@@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: Install Dependencies
@@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: Install Dependencies
@@ -75,7 +75,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install latest npm'
@@ -108,7 +108,7 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install latest npm 9'
@@ -132,7 +132,7 @@ jobs:
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
yarn jest module.test.js
npm10:
name: 'npm10:jest example'
runs-on: ubuntu-latest
@@ -141,11 +141,11 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install latest npm 10'
run: npm i -g npm@next-10
run: npm i -g npm@next-10
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
@@ -165,7 +165,7 @@ jobs:
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
yarn jest module.test.js
pnpm8:
name: 'pnpm8:jest example'
runs-on: ubuntu-latest
@@ -174,11 +174,11 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install latest pnpm'
run: npm i -g pnpm@latest-8
run: npm i -g pnpm@10.5.2
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'
@@ -207,11 +207,11 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Use Node.js'
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: 'install latest pnpm'
run: npm i -g pnpm@latest-9
run: npm i -g pnpm@10.5.2
- name: Install Dependencies
run: yarn install
- name: 'Run verdaccio in the background'

View File

@@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node (latest)
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: Install

View File

@@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node (latest)
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: Install

View File

@@ -16,7 +16,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: Docker test

View File

@@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node (latest)
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: Docker test

View File

@@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
- name: Install

View File

@@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node ${{ inputs.node_version }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: ${{ inputs.node_version }}
- name: Install

7
.gitignore vendored
View File

@@ -17,6 +17,10 @@ test-storage*
# docker examples
docker-examples/v5/reverse_proxy/nginx/relative_path/storage/*
docker-examples/v5/**/storage/*
docker-examples/v4/**/storage/*
docker-examples/v6/**/storage/*
docker-examples/v7/**/storage/*
docker-examples/v8/**/storage/*
# jest
reports/
@@ -36,7 +40,10 @@ packages/standalone/dist/
packages/plugins/ui-theme/static
/packages/plugins/ui-theme/src/i18n/download_translations/
!/packages/plugins/ui-theme/src/i18n/crowdin/ui.json
/packages/core/**/download_translations/
## ui tests
!/packages/ui-components/vitest/api/*.tgz
# CI Pnpm cache
.pnpm-store/

2
.nvmrc
View File

@@ -1 +1 @@
20
22

View File

@@ -1,4 +1,5 @@
.cache/
assets/**/*
**/corrupted-package/package.json
**/corrupted.json
**/invalid.js

View File

@@ -25,7 +25,7 @@ The Verdaccio project is split into several areas, the first three hosted in the
- **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}).
> There are other areas to contribute, like [documentation](https://github.com/verdaccio/verdaccio/tree/master/website/docs) or translations.
## Prepare local setup {#local-setup}
@@ -379,7 +379,7 @@ If you need help with how testing works, please [refer to the following guide
**If you are introducing new features, you MUST include new tests. PRs for
features without tests will not be merged.**
## Translations {#translations}
## Translations
All translations are provided by the **[crowdin](http://crowdin.com)** platform,
[https://translate.verdaccio.org/](https://translate.verdaccio.org/)

View File

@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:21-alpine AS builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:22-alpine AS builder
ENV NODE_ENV=development \
VERDACCIO_BUILD_REGISTRY=https://registry.npmjs.org
@@ -11,16 +11,17 @@ RUN apk --no-cache add openssl ca-certificates wget && \
WORKDIR /opt/verdaccio-build
COPY . .
RUN npm -g i pnpm@8.9.0 && \
RUN npm -g i corepack && \
corepack install && \
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
# 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:21-alpine
FROM node:22-alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"
ENV VERDACCIO_APPDIR=/opt/verdaccio \

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2024 Verdaccio contributors
Copyright (c) 2025 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

View File

@@ -88,7 +88,7 @@ npm install -g generator-verdaccio-plugin
Learn more [here](https://verdaccio.org/docs/dev-plugins) how to develop plugins. Share your plugins with the community.
## Integration Tests
## End to End Testing
In our compatibility testing project, we're dedicated to ensuring that your favorite commands work seamlessly across different versions of npm, pnpm, and Yarn. From publishing packages to managing dependencies.
Our goal is to give you the confidence to use your preferred package manager without any issues. So dive in, check out our matrix, and see how your commands fare across the board!
@@ -299,12 +299,12 @@ Thanks to the following companies to help us to achieve our goals providing free
| [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) |
| | [@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 them over Discord, click [here](http://chat.verdaccio.org) or follow them at _Twitter_.
You can find and chat with them over Discord, click [here](http://chat.verdaccio.org).
## Who is using Verdaccio?

View File

@@ -2,7 +2,7 @@
## Supported versions
You can find details about the supported versions of Verdaccio in the [version history](VERSIONS.md).
You can find details about the supported versions of Verdaccio in the [version history](https://github.com/verdaccio/verdaccio/blob/master/VERSIONS.md).
## Responsible disclosure security policy

View File

@@ -2,13 +2,26 @@
The following table describes the versions of this project:
| Version | Supported | Minimum Node.js | Branch | Npm Tag | Docker Images | Helm Charts |
| ---------------- | ------------------ | --------------- | ------ | ---------------- | ----------------------- | ----------- |
| 4.x | :x: (deprecated) | 10 | 4.x | latest-4 | 4, 4.x, 4.x.x, 4.x-next | 3.x |
| 5.x previous | :x: (deprecated) | 14 | 5.x | latest-5 | 5, 5.x, 5.x.x, 5.x-next | 4.0 - 4.18 |
| 6.x current | :white_check_mark: | 18 | 6.x | latest-6, latest | 6, 6.x, 6.x.x, 6.x-next | 4.19 - ... |
| 7.x next | :x: | 18 | 7.x | next-7 | 7.x-next | n/a |
| 8.x experimental | :x: | 18 | master | next-8 | nightly-master | n/a |
| Version | Supported | Minimum Node.js | Branch | Npm Tag | Docker Images | Helm Charts | E2E Tests |
| ---------------- | ------------------ | --------------- | ------ | ---------------- | ----------------------- | ----------- | ------------------------------------------------------------------ |
| 4.x | :x: (deprecated) | 10 | 4.x | latest-4 | 4, 4.x, 4.x.x, 4.x-next | 3.x | ❌ |
| 5.x previous | :x: (deprecated) | 14 | 5.x | latest-5 | 5, 5.x, 5.x.x, 5.x-next | 4.0 - 4.18 | ❌ |
| 6.x current | :white_check_mark: | 18 | 6.x | latest-6, latest | 6, 6.x, 6.x.x, 6.x-next | 4.19 - ... | [e2e-tests/main](https://github.com/verdaccio/e2e-tests/tree/main) |
| 7.x next | :x: | 18 | 7.x | next-7 | 7.x-next | n/a | [e2e-tests/6.x](https://github.com/verdaccio/e2e-tests/tree/6.x) |
| 8.x experimental | :x: | 18 | master | next-8 | nightly-master | n/a | master branch |
## Migration Guide
The migration from Verdaccio v5/v6 to v7 contains breaking changes. Refer to the priliminary [migration guide](https://github.com/verdaccio/verdaccio/blob/master/docs/migration-v5-to-v6.md) for more information.
For migrations from older versions to v5/6 refer to the [v5 migration guide](https://verdaccio.org/blog/2021/04/14/verdaccio-5-migration-guide/).
### Deprecated Versions
Deprecated versions arent supported anymore and shouldnt be used in production. They dont get updates—including security fixes—and we dont run E2E tests on them.
Once the deprecation period is over, the source code will be archived and wont be maintained anymore.
We try to keep things as backward-compatible as possible, but sometimes deprecating old versions is necessary to keep the project moving forward.
## Npm Registry
@@ -21,3 +34,9 @@ The official Verdaccio Docker Images are found at https://hub.docker.com/r/verda
## Helms Charts
The official Verdaccio Helm Charts are found at https://artifacthub.io/packages/helm/verdaccio/verdaccio.
## E2E Tests
The e2e test are set of basic test running on each release to ensure the basic functionality of Verdaccio. The tests are located at
different branches, depending on the version. For versions `6.x` and `7.x` the tests are located at the [e2e-test](https://github.com/verdaccio/e2e-tests) and everything else on this repository.
For more details what's being tested, please refer to the [readme file](https://github.com/verdaccio/verdaccio?tab=readme-ov-file#integration-tests) on this repository.

Binary file not shown.

View File

@@ -6,6 +6,8 @@ api_token_env: CROWDIN_VERDACCIO_API_KEY
preserve_hierarchy: true
files:
- source: /packages/core/i18n/src/crowdin/*.json
translation: '/packages/core/i18n/src/download_translations/%locale%/%original_file_name%'
- source: /packages/plugins/ui-theme/src/i18n/crowdin/*.json
translation: '/packages/plugins/ui-theme/src/i18n/download_translations/%locale%/%original_file_name%'
- source: /website/i18n/en/**/*
@@ -16,4 +18,3 @@ files:
- source: /website/versioned_docs/**/*
translation: /website/i18n/%locale%/docusaurus-plugin-content-docs/**/%original_file_name%
ignore: [/website/versioned_docs/version-6.x/api/**/*]

View File

@@ -1,55 +0,0 @@
# Environment variables
A full list of available environment variables that allow override
internal features.
#### VERDACCIO_LEGACY_ALGORITHM
Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`. The algorithm must be supported by `crypto.createCipheriv` and `crypto.createDecipheriv`.
Read more here: https://nodejs.org/api/crypto.html#crypto_crypto_createcipheriv_algorithm_key_iv_options
#### VERDACCIO_LEGACY_ENCRYPTION_KEY
By default, the token stores in the database, but using this variable allows to get it from memory, the length must be 32 characters otherwise will throw an error.
Read more here: https://nodejs.org/api/crypto.html#crypto_crypto_createcipheriv_algorithm_key_iv_options
#### VERDACCIO_PUBLIC_URL
Define a specific public url for your server, it overrules the `Host` and `X-Forwarded-Proto` header if a reverse proxy is being used, it takes in account the `url_prefix` if is defined.
This is handy in such situations where a dynamic url is required.
eg:
```
VERDACCIO_PUBLIC_URL='https://somedomain.org';
url_prefix: '/my_prefix'
// url -> https://somedomain.org/my_prefix/
VERDACCIO_PUBLIC_URL='https://somedomain.org';
url_prefix: '/'
// url -> https://somedomain.org/
VERDACCIO_PUBLIC_URL='https://somedomain.org/first_prefix';
url_prefix: '/second_prefix'
// url -> https://somedomain.org/second_prefix/'
```
#### VERDACCIO_FORWARDED_PROTO
The default header to identify the protocol is `X-Forwarded-Proto`, but there are some environments which [uses something different](https://github.com/verdaccio/verdaccio/issues/990), to change it use the variable `VERDACCIO_FORWARDED_PROTO`
```
$ VERDACCIO_FORWARDED_PROTO=CloudFront-Forwarded-Proto verdaccio --listen 5000
```
#### VERDACCIO_STORAGE_PATH
By default, the storage is taken from config file, but using this variable allows to set it from environment variable.
#### VERDACCIO_STORAGE_NAME
The database name for `@verdaccio/local-storage` is by default `.verdaccio-db.json`, but this can be update by using this variable.

View File

@@ -1,4 +1,4 @@
# Migration Guide from Verdaccio 5 to Verdaccio 6
# Migration Guide from Verdaccio v5 and v6 to Verdaccio v7
Notes regarding breaking changes for next major release.
@@ -79,8 +79,15 @@ for more details.
Introduce environment variables for legacy tokens.
- `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
- `VERDACCIO_LEGACY_ALGORITHM`:
Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`. The algorithm must be supported by `crypto.createCipheriv` and `crypto.createDecipheriv`.
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`:
By default, the token are stored in the database, but using this variable allows to get tokens from memory. The length of the key must be 32 characters otherwise will throw an error.
Read more on [nodejs.org](https://nodejs.org/api/crypto.html#crypto_crypto_createcipheriv_algorithm_key_iv_options).
#### @verdaccio/commons-api migration

View File

@@ -1,3 +0,0 @@
## Developing plugins
TBA

View File

@@ -2,29 +2,44 @@
## VERWAR001
Verdaccio doesn't need superuser privileges. Don't run it under root.
`Verdaccio doesn't need superuser privileges. Don't run it under root.`
## VERWAR002
logger is not defined
`The configuration property "logs" has been deprecated, please rename to "log" for future compatibility`
## VERWAR003
'rotating-file type is not longer supported, consider use [logrotate] instead'
`rotating-file type is not longer supported, consider use [logrotate] instead`
## VERWAR004
invalid address - xxxxxx, we expect a port (e.g. "4873"),
`invalid address - %s, we expect a port (e.g. "4873"), host:port (e.g. "localhost:4873") or full url '(e.g. "http://localhost:4873/")`
Learn more at https://verdaccio.org/docs/en/configuration#listen-port
## VERWAR005
`n/a`
## VERWAR006
`the auth plugin method "add_user" in the auth plugin is deprecated and will be removed in next major release, rename to "adduser"`
## VERWAR007
`the secret length is too long, it must be 32 characters long, please consider generate a new one`
Learn more at https://verdaccio.org/docs/configuration/#.verdaccio-db
## VERDEP001
'config.logs is deprecated, rename configuration to "config.log" in singular'
> Changed to VERWAR002 (see above)
## VERDEP002
> After version `verdaccio@6.0.0-6-next.38` this is not longer a warning and
> will crash your application
> After version `verdaccio@6.0.0-6-next.38` this is not longer a warning and will crash your application
## VERDEP003
'multiple addresses will be deprecated in the next major, only use one'
`multiple addresses will be deprecated in the next major, only use one`

View File

@@ -4,16 +4,16 @@
"version": "2.0.0-next-8.0",
"main": "src/index.ts",
"devDependencies": {
"@verdaccio/config": "workspace:8.0.0-next-8.6",
"@verdaccio/core": "workspace:8.0.0-next-8.6",
"@verdaccio/types": "workspace:13.0.0-next-8.2",
"debug": "4.3.7",
"@verdaccio/config": "workspace:8.0.0-next-8.12",
"@verdaccio/core": "workspace:8.0.0-next-8.12",
"@verdaccio/types": "workspace:13.0.0-next-8.3",
"debug": "4.4.0",
"fs-extra": "11.2.0",
"get-port": "5.1.1",
"got": "11.8.6",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
"verdaccio": "workspace:8.0.0-next-8.6"
"verdaccio": "workspace:8.0.0-next-8.12"
},
"scripts": {
"test": "echo no test",

View File

@@ -3,11 +3,11 @@
"name": "@verdaccio/e2e-ui",
"version": "2.0.0",
"devDependencies": {
"verdaccio": "workspace:8.0.0-next-8.6",
"@verdaccio/core": "workspace:8.0.0-next-8.6",
"@verdaccio/config": "workspace:8.0.0-next-8.6",
"@verdaccio/test-helper": "workspace:4.0.0-next-8.2",
"debug": "4.3.7",
"verdaccio": "workspace:8.0.0-next-8.12",
"@verdaccio/core": "workspace:8.0.0-next-8.12",
"@verdaccio/config": "workspace:8.0.0-next-8.12",
"@verdaccio/test-helper": "workspace:4.0.0-next-8.3",
"debug": "4.4.0",
"cypress": "^13.6.0",
"get-port": "5.1.1"
},

View File

@@ -15,40 +15,40 @@
"url": "https://opencollective.com/verdaccio"
},
"devDependencies": {
"@babel/cli": "7.24.8",
"@babel/core": "7.24.9",
"@babel/cli": "7.26.4",
"@babel/core": "7.26.9",
"@babel/eslint-parser": "7.25.9",
"@babel/node": "7.25.0",
"@babel/plugin-proposal-decorators": "7.24.7",
"@babel/plugin-proposal-function-sent": "7.24.7",
"@babel/plugin-proposal-throw-expressions": "7.24.7",
"@babel/node": "7.26.0",
"@babel/plugin-proposal-decorators": "7.25.9",
"@babel/plugin-proposal-function-sent": "7.25.9",
"@babel/plugin-proposal-throw-expressions": "7.25.9",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/plugin-syntax-import-meta": "7.10.4",
"@babel/plugin-transform-async-to-generator": "7.24.7",
"@babel/plugin-transform-class-properties": "7.24.7",
"@babel/plugin-transform-classes": "7.25.0",
"@babel/plugin-transform-export-namespace-from": "7.24.7",
"@babel/plugin-transform-json-strings": "7.24.7",
"@babel/plugin-transform-nullish-coalescing-operator": "7.24.7",
"@babel/plugin-transform-numeric-separator": "7.24.7",
"@babel/plugin-transform-object-rest-spread": "7.24.7",
"@babel/plugin-transform-optional-chaining": "7.24.8",
"@babel/plugin-transform-runtime": "7.24.7",
"@babel/preset-env": "7.25.0",
"@babel/preset-react": "7.24.7",
"@babel/plugin-transform-async-to-generator": "7.25.9",
"@babel/plugin-transform-class-properties": "7.25.9",
"@babel/plugin-transform-classes": "7.25.9",
"@babel/plugin-transform-export-namespace-from": "7.25.9",
"@babel/plugin-transform-json-strings": "7.25.9",
"@babel/plugin-transform-nullish-coalescing-operator": "7.26.6",
"@babel/plugin-transform-numeric-separator": "7.25.9",
"@babel/plugin-transform-object-rest-spread": "7.25.9",
"@babel/plugin-transform-optional-chaining": "7.25.9",
"@babel/plugin-transform-runtime": "7.26.9",
"@babel/preset-env": "7.26.9",
"@babel/preset-react": "7.26.3",
"@babel/preset-typescript": "7.24.7",
"@babel/register": "7.24.6",
"@babel/runtime": "7.25.0",
"@babel/register": "7.25.9",
"@babel/runtime": "7.26.9",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.10",
"@changesets/cli": "2.27.12",
"@changesets/get-dependents-graph": "2.1.2",
"@crowdin/cli": "4.4.1",
"@dianmora/contributors": "5.0.0",
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.4.8",
"@testing-library/react": "16.0.0",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.1.0",
"@testing-library/user-event": "14.5.2",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/body-parser": "1.19.5",
@@ -58,10 +58,10 @@
"@types/express": "4.17.21",
"@types/express-serve-static-core": "4.19.5",
"@types/http-errors": "2.0.4",
"@types/jest": "29.5.14",
"@types/jsonwebtoken": "9.0.6",
"@types/lodash": "4.17.7",
"@types/mime": "3.0.4",
"@types/jest": "29.5.14",
"@types/minimatch": "5.1.2",
"@types/node": "20.14.12",
"@types/node-fetch": "2.6.11",
@@ -84,18 +84,18 @@
"@types/yeoman-test": "4.0.6",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@verdaccio/crowdin-translations": "workspace:*",
"@verdaccio/eslint-config": "workspace:*",
"@verdaccio/local-scripts": "workspace:*",
"@verdaccio/types": "workspace:*",
"@verdaccio/ui-theme": "workspace:*",
"@vitest/coverage-v8": "2.0.5",
"@vitest/coverage-v8": "3.0.4",
"aria-query": "5.1.3",
"babel-core": "7.0.0-bridge.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"babel-plugin-emotion": "11.0.0",
"concurrently": "8.2.2",
"cross-env": "7.0.3",
"debug": "4.3.7",
"debug": "4.4.0",
"detect-secrets": "1.0.6",
"eslint": "8.57.1",
"fs-extra": "11.2.0",
@@ -104,24 +104,25 @@
"in-publish": "2.0.1",
"kleur": "4.1.5",
"lint-staged": "11.2.6",
"nock": "13.5.1",
"nock": "13.5.6",
"nodemon": "3.0.3",
"npm-run-all2": "5.0.2",
"prettier": "3.3.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"prettier": "3.4.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"rimraf": "5.0.10",
"selfsigned": "2.4.1",
"semver": "^7.6.3",
"supertest": "7.0.0",
"ts-node": "10.9.2",
"typescript": "5.3.3",
"undici-types": "5.28.2",
"update-ts-references": "3.3.0",
"undici-types": "5.28.4",
"update-ts-references": "3.6.0",
"verdaccio-audit": "workspace:*",
"verdaccio-auth-memory": "workspace:*",
"verdaccio-htpasswd": "workspace:*",
"verdaccio-memory": "workspace:*",
"vitest": "2.1.2"
"vitest": "3.0.4"
},
"scripts": {
"prepare": "husky install",
@@ -175,5 +176,5 @@
"*.{js,jsx,ts,tsx,json,yml,yaml,md}": "prettier --write",
"*.{js,jsx,ts,tsx}": "eslint --cache --fix"
},
"packageManager": "pnpm@8.14.0+sha256.9cebf61abd83f68177b29484da72da9751390eaad46dfc3072d266bfbb1ba7bf"
"packageManager": "pnpm@10.5.2"
}

View File

@@ -1,5 +1,90 @@
# @verdaccio/api
## 8.1.0-next-8.12
### Patch Changes
- Updated dependencies [95ac124]
- @verdaccio/core@8.0.0-next-8.12
- @verdaccio/store@8.0.0-next-8.12
- @verdaccio/auth@8.0.0-next-8.12
- @verdaccio/config@8.0.0-next-8.12
- @verdaccio/middleware@8.0.0-next-8.12
- @verdaccio/utils@8.1.0-next-8.12
- @verdaccio/logger@8.0.0-next-8.12
## 8.1.0-next-8.11
### Patch Changes
- Updated dependencies [83dbde5]
- Updated dependencies [4110873]
- Updated dependencies [85e0e13]
- Updated dependencies [7e48ac6]
- Updated dependencies [66bc284]
- @verdaccio/store@8.0.0-next-8.11
- @verdaccio/middleware@8.0.0-next-8.11
- @verdaccio/utils@8.1.0-next-8.11
- @verdaccio/auth@8.0.0-next-8.11
- @verdaccio/config@8.0.0-next-8.11
- @verdaccio/core@8.0.0-next-8.11
- @verdaccio/logger@8.0.0-next-8.11
## 8.1.0-next-8.10
### Patch Changes
- Updated dependencies [bf0e09a]
- @verdaccio/config@8.0.0-next-8.10
- @verdaccio/auth@8.0.0-next-8.10
- @verdaccio/middleware@8.0.0-next-8.10
- @verdaccio/store@8.0.0-next-8.10
- @verdaccio/core@8.0.0-next-8.10
- @verdaccio/utils@8.1.0-next-8.10
- @verdaccio/logger@8.0.0-next-8.10
## 8.1.0-next-8.9
### Patch Changes
- Updated dependencies [96e0011]
- @verdaccio/middleware@8.0.0-next-8.9
- @verdaccio/auth@8.0.0-next-8.9
- @verdaccio/core@8.0.0-next-8.9
- @verdaccio/config@8.0.0-next-8.9
- @verdaccio/store@8.0.0-next-8.9
- @verdaccio/utils@8.1.0-next-8.9
- @verdaccio/logger@8.0.0-next-8.9
## 8.1.0-next-8.8
### Patch Changes
- Updated dependencies [0588605]
- Updated dependencies [ca91b9a]
- @verdaccio/config@8.0.0-next-8.8
- @verdaccio/auth@8.0.0-next-8.8
- @verdaccio/middleware@8.0.0-next-8.8
- @verdaccio/store@8.0.0-next-8.8
- @verdaccio/core@8.0.0-next-8.8
- @verdaccio/logger@8.0.0-next-8.8
- @verdaccio/utils@8.1.0-next-8.8
## 8.1.0-next-8.7
### Patch Changes
- 139861e: fix: crashes with path-to-regexp v0.1.12 express
- Updated dependencies [589ea7f]
- Updated dependencies [139861e]
- @verdaccio/core@8.0.0-next-8.7
- @verdaccio/utils@8.1.0-next-8.7
- @verdaccio/middleware@8.0.0-next-8.7
- @verdaccio/store@8.0.0-next-8.7
- @verdaccio/auth@8.0.0-next-8.7
- @verdaccio/config@8.0.0-next-8.7
- @verdaccio/logger@8.0.0-next-8.7
## 8.1.0-next-8.6
### Patch Changes

View File

@@ -6,7 +6,6 @@
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/verdaccio/localized.svg)](https://crowdin.com/project/verdaccio)
[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/verdaccio/verdaccio)](https://www.tickgit.com/browse?repo=github.com/verdaccio/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)
## Donations

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/api",
"version": "8.1.0-next-8.6",
"version": "8.1.0-next-8.12",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -38,27 +38,26 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/auth": "workspace:8.0.0-next-8.6",
"@verdaccio/config": "workspace:8.0.0-next-8.6",
"@verdaccio/core": "workspace:8.0.0-next-8.6",
"@verdaccio/logger": "workspace:8.0.0-next-8.6",
"@verdaccio/middleware": "workspace:8.0.0-next-8.6",
"@verdaccio/store": "workspace:8.0.0-next-8.6",
"@verdaccio/utils": "workspace:8.1.0-next-8.6",
"abortcontroller-polyfill": "1.7.6",
"@verdaccio/auth": "workspace:8.0.0-next-8.12",
"@verdaccio/config": "workspace:8.0.0-next-8.12",
"@verdaccio/core": "workspace:8.0.0-next-8.12",
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
"@verdaccio/middleware": "workspace:8.0.0-next-8.12",
"@verdaccio/store": "workspace:8.0.0-next-8.12",
"@verdaccio/utils": "workspace:8.1.0-next-8.12",
"abortcontroller-polyfill": "1.7.8",
"body-parser": "1.20.3",
"cookies": "0.9.1",
"debug": "4.3.7",
"debug": "4.4.0",
"express": "4.21.2",
"lodash": "4.17.21",
"mime": "2.6.0",
"semver": "7.6.3"
"semver": "7.7.1"
},
"devDependencies": {
"@verdaccio/test-helper": "workspace:4.0.0-next-8.2",
"@verdaccio/types": "workspace:13.0.0-next-8.2",
"@verdaccio/test-helper": "workspace:4.0.0-next-8.3",
"@verdaccio/types": "workspace:13.0.0-next-8.3",
"mockdate": "3.0.5",
"nock": "13.5.1",
"supertest": "7.0.0"
},
"funding": {

View File

@@ -5,6 +5,7 @@ import mime from 'mime';
import { Auth } from '@verdaccio/auth';
import { constants, errorUtils } from '@verdaccio/core';
import { allow, media } from '@verdaccio/middleware';
import { DIST_TAGS_API_ENDPOINTS } from '@verdaccio/middleware';
import { Storage } from '@verdaccio/store';
import { Logger } from '@verdaccio/types';
@@ -39,21 +40,21 @@ export default function (route: Router, auth: Auth, storage: Storage, logger: Lo
// tagging a package.
route.put(
'/:package/:tag',
DIST_TAGS_API_ENDPOINTS.tagging,
can('publish'),
media(mime.getType('json')),
addTagPackageVersionMiddleware
);
route.put(
'/-/package/:package/dist-tags/:tag',
DIST_TAGS_API_ENDPOINTS.tagging_package,
can('publish'),
media(mime.getType('json')),
addTagPackageVersionMiddleware
);
route.delete(
'/-/package/:package/dist-tags/:tag',
DIST_TAGS_API_ENDPOINTS.tagging_package,
can('publish'),
async function (
req: $RequestExtend,
@@ -75,7 +76,7 @@ export default function (route: Router, auth: Auth, storage: Storage, logger: Lo
);
route.get(
'/-/package/:package/dist-tags',
DIST_TAGS_API_ENDPOINTS.get_dist_tags,
can('access'),
async function (
req: $RequestExtend,

View File

@@ -4,6 +4,7 @@ import { Router } from 'express';
import { Auth } from '@verdaccio/auth';
import { HEADERS, HEADER_TYPE, stringUtils } from '@verdaccio/core';
import { allow } from '@verdaccio/middleware';
import { PACKAGE_API_ENDPOINTS } from '@verdaccio/middleware';
import { Storage } from '@verdaccio/store';
import { Logger } from '@verdaccio/types';
@@ -17,7 +18,7 @@ export default function (route: Router, auth: Auth, storage: Storage, logger: Lo
afterAll: (a, b) => logger.trace(a, b),
});
route.get(
'/:package/:version?',
PACKAGE_API_ENDPOINTS.get_package_by_version,
can('access'),
async function (
req: $RequestExtend,
@@ -76,7 +77,7 @@ export default function (route: Router, auth: Auth, storage: Storage, logger: Lo
);
route.get(
'/:package/-/:filename',
PACKAGE_API_ENDPOINTS.get_package_tarball,
can('access'),
async function (req: $RequestExtend, res: $ResponseExtend, next): Promise<void> {
const { package: pkgName, filename } = req.params;

View File

@@ -1,10 +1,12 @@
import { Router } from 'express';
import { PING_API_ENDPOINTS } from '@verdaccio/middleware';
import { $NextFunctionVer, $RequestExtend, $ResponseExtend } from '../types/custom';
export default function (route: Router): void {
route.get(
'/-/ping',
PING_API_ENDPOINTS.ping,
function (req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer) {
next({});
}

View File

@@ -5,13 +5,13 @@ import mime from 'mime';
import { Auth } from '@verdaccio/auth';
import { API_MESSAGE, HTTP_STATUS } from '@verdaccio/core';
import { allow, expectJson, media } from '@verdaccio/middleware';
// import star from './star';
import { PUBLISH_API_ENDPOINTS } from '@verdaccio/middleware';
import { Storage } from '@verdaccio/store';
import { Logger } from '@verdaccio/types';
import { $NextFunctionVer, $RequestExtend, $ResponseExtend } from '../types/custom';
// import star from './star';
const debug = buildDebug('verdaccio:api:publish');
/**
@@ -120,7 +120,7 @@ export default function publish(
afterAll: (a, b) => logger.trace(a, b),
});
router.put(
'/:package',
PUBLISH_API_ENDPOINTS.add_package,
can('publish'),
media(mime.getType('json')),
expectJson,
@@ -128,7 +128,7 @@ export default function publish(
);
router.put(
'/:package/-rev/:revision',
PUBLISH_API_ENDPOINTS.publish_package,
can('unpublish'),
media(mime.getType('json')),
expectJson,
@@ -143,7 +143,7 @@ export default function publish(
* - no version is specified in the unpublish call
* - all versions are removed npm unpublish package@*
* - there is no versions on the metadata
* then the client decides to DELETE the resource
* Example:
* Get fresh manifest (write=true is a flag to get the latest revision)
@@ -153,7 +153,7 @@ export default function publish(
* npm http fetch DELETE 201 http://localhost:4873/package-name/-rev/18-d8ebe3020bd4ac9c 22ms
*/
router.delete(
'/:package/-rev/:revision',
PUBLISH_API_ENDPOINTS.publish_package,
can('unpublish'),
async function (req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer) {
const packageName = req.params.package;
@@ -177,7 +177,7 @@ export default function publish(
npm http fetch DELETE 201 http://localhost:4873/package-name/-rev/18-d8ebe3020bd4ac9c 22ms
*/
router.delete(
'/:package/-/:filename/-rev/:revision',
PUBLISH_API_ENDPOINTS.remove_tarball,
can('unpublish'),
can('publish'),
async function (

View File

@@ -1,9 +1,10 @@
import { HTTP_STATUS } from '@verdaccio/core';
import { SEARCH_API_ENDPOINTS } from '@verdaccio/middleware';
import { Logger } from '@verdaccio/types';
export default function (route, logger: Logger): void {
// TODO: next major version, remove this
route.get('/-/all(/since)?', function (_req, res) {
route.get(SEARCH_API_ENDPOINTS.deprecated_search, function (_req, res) {
logger.warn('search endpoint has been removed, please use search v1');
res.status(HTTP_STATUS.NOT_FOUND);
res.json({ error: 'not found, endpoint was removed' });

View File

@@ -2,6 +2,7 @@ import { Response, Router } from 'express';
import _ from 'lodash';
import { HTTP_STATUS, USERS, errorUtils } from '@verdaccio/core';
import { STARS_API_ENDPOINTS } from '@verdaccio/middleware';
import { Storage } from '@verdaccio/store';
import { Version } from '@verdaccio/types';
@@ -9,7 +10,7 @@ import { $NextFunctionVer, $RequestExtend } from '../types/custom';
export default function (route: Router, storage: Storage): void {
route.get(
'/-/_view/starredByUser',
STARS_API_ENDPOINTS.get_user_starred_packages,
async (req: $RequestExtend, res: Response, next: $NextFunctionVer): Promise<void> => {
const query: { key: string } = req.query;
if (typeof query?.key !== 'string') {

View File

@@ -12,7 +12,7 @@ import {
errorUtils,
validatioUtils,
} from '@verdaccio/core';
import { rateLimit } from '@verdaccio/middleware';
import { USER_API_ENDPOINTS, rateLimit } from '@verdaccio/middleware';
import { Logger } from '@verdaccio/types';
import { Config, RemoteUser } from '@verdaccio/types';
import { getAuthenticatedMessage, mask } from '@verdaccio/utils';
@@ -23,7 +23,7 @@ const debug = buildDebug('verdaccio:api:user');
export default function (route: Router, auth: Auth, config: Config, logger: Logger): void {
route.get(
'/-/user/:org_couchdb_user',
USER_API_ENDPOINTS.get_user,
rateLimit(config?.userRateLimit),
function (req: $RequestExtend, res: Response, next: $NextFunctionVer): void {
debug('verifying user');
@@ -70,7 +70,7 @@ export default function (route: Router, auth: Auth, config: Config, logger: Logg
* @param {Config} config
*/
route.put(
'/-/user/:org_couchdb_user/:_rev?/:revision?',
USER_API_ENDPOINTS.add_user,
rateLimit(config?.userRateLimit),
function (req: $RequestExtend, res: Response, next: $NextFunctionVer): void {
const { name, password } = req.body;
@@ -168,7 +168,7 @@ export default function (route: Router, auth: Auth, config: Config, logger: Logg
);
route.delete(
'/-/user/token/*',
USER_API_ENDPOINTS.user_token,
function (req: $RequestExtend, res: Response, next: $NextFunctionVer): void {
res.status(HTTP_STATUS.OK);
next({

View File

@@ -10,6 +10,7 @@ import {
errorUtils,
validatioUtils,
} from '@verdaccio/core';
import { PROFILE_API_ENDPOINTS } from '@verdaccio/middleware';
import { rateLimit } from '@verdaccio/middleware';
import { Config } from '@verdaccio/types';
@@ -41,7 +42,7 @@ export default function (route: Router, auth: Auth, config: Config): void {
}
route.get(
'/-/npm/v1/user',
PROFILE_API_ENDPOINTS.get_profile,
rateLimit(config?.userRateLimit),
function (req: $RequestExtend, res: Response, next: $NextFunctionVer): void {
if (_.isNil(req.remote_user.name) === false) {
@@ -56,7 +57,7 @@ export default function (route: Router, auth: Auth, config: Config): void {
);
route.post(
'/-/npm/v1/user',
PROFILE_API_ENDPOINTS.get_profile,
rateLimit(config?.userRateLimit),
function (req: $RequestExtend, res: Response, next: $NextFunctionVer): void {
if (_.isNil(req.remote_user.name)) {

View File

@@ -3,6 +3,7 @@ import _ from 'lodash';
import { Auth } from '@verdaccio/auth';
import { HTTP_STATUS, searchUtils } from '@verdaccio/core';
import { SEARCH_API_ENDPOINTS } from '@verdaccio/middleware';
import { Storage } from '@verdaccio/store';
import { Manifest } from '@verdaccio/types';
import { Logger } from '@verdaccio/types';
@@ -35,7 +36,7 @@ export default function (route, auth: Auth, storage: Storage, logger: Logger): v
});
}
route.get('/-/v1/search', async (req, res, next) => {
route.get(SEARCH_API_ENDPOINTS.search, async (req, res, next) => {
const { query, url } = req;
let [size, from] = ['size', 'from'].map((k) => query[k]);
let data;

View File

@@ -5,6 +5,7 @@ import { getApiToken } from '@verdaccio/auth';
import { Auth } from '@verdaccio/auth';
import { HEADERS, HTTP_STATUS, SUPPORT_ERRORS, errorUtils } from '@verdaccio/core';
import { rateLimit } from '@verdaccio/middleware';
import { TOKEN_API_ENDPOINTS } from '@verdaccio/middleware';
import { Storage } from '@verdaccio/store';
import { Config, RemoteUser, Token } from '@verdaccio/types';
import { Logger } from '@verdaccio/types';
@@ -32,7 +33,7 @@ export default function (
logger: Logger
): void {
route.get(
'/-/npm/v1/tokens',
TOKEN_API_ENDPOINTS.get_tokens,
rateLimit(config?.userRateLimit),
async function (req: $RequestExtend, res: Response, next: $NextFunctionVer) {
const { name } = req.remote_user;
@@ -60,7 +61,7 @@ export default function (
);
route.post(
'/-/npm/v1/tokens',
TOKEN_API_ENDPOINTS.get_tokens,
rateLimit(config?.userRateLimit),
function (req: $RequestExtend, res: Response, next: $NextFunctionVer) {
const { password, readonly, cidr_whitelist } = req.body;
@@ -131,7 +132,7 @@ export default function (
);
route.delete(
'/-/npm/v1/tokens/token/:tokenKey',
TOKEN_API_ENDPOINTS.delete_token,
rateLimit(config?.userRateLimit),
async (req: $RequestExtend, res: Response, next: $NextFunctionVer) => {
const {

View File

@@ -2,21 +2,25 @@ import buildDebug from 'debug';
import { Response, Router } from 'express';
import { errorUtils } from '@verdaccio/core';
import { USER_API_ENDPOINTS } from '@verdaccio/middleware';
import { $NextFunctionVer, $RequestExtend } from '../types/custom';
const debug = buildDebug('verdaccio:api:user');
export default function (route: Router): void {
route.get('/-/whoami', (req: $RequestExtend, _res: Response, next: $NextFunctionVer): any => {
// remote_user is set by the auth middleware
const username = req?.remote_user?.name;
if (!username) {
debug('whoami: user not found');
return next(errorUtils.getUnauthorized('Unauthorized'));
}
route.get(
USER_API_ENDPOINTS.whoami,
(req: $RequestExtend, _res: Response, next: $NextFunctionVer): any => {
// remote_user is set by the auth middleware
const username = req?.remote_user?.name;
if (!username) {
debug('whoami: user not found');
return next(errorUtils.getUnauthorized('Unauthorized'));
}
debug('whoami: response %o', username);
return next({ username: username });
});
debug('whoami: response %o', username);
return next({ username: username });
}
);
}

View File

@@ -1,5 +1,78 @@
# @verdaccio/auth
## 8.0.0-next-8.12
### Patch Changes
- Updated dependencies [95ac124]
- @verdaccio/core@8.0.0-next-8.12
- @verdaccio/config@8.0.0-next-8.12
- @verdaccio/loaders@8.0.0-next-8.4
- verdaccio-htpasswd@13.0.0-next-8.12
- @verdaccio/utils@8.1.0-next-8.12
- @verdaccio/signature@8.0.0-next-8.4
## 8.0.0-next-8.11
### Patch Changes
- Updated dependencies [85e0e13]
- @verdaccio/utils@8.1.0-next-8.11
- @verdaccio/config@8.0.0-next-8.11
- @verdaccio/loaders@8.0.0-next-8.4
- verdaccio-htpasswd@13.0.0-next-8.11
- @verdaccio/signature@8.0.0-next-8.3
- @verdaccio/core@8.0.0-next-8.11
## 8.0.0-next-8.10
### Patch Changes
- Updated dependencies [bf0e09a]
- @verdaccio/config@8.0.0-next-8.10
- @verdaccio/loaders@8.0.0-next-8.4
- verdaccio-htpasswd@13.0.0-next-8.10
- @verdaccio/signature@8.0.0-next-8.2
- @verdaccio/core@8.0.0-next-8.10
- @verdaccio/utils@8.1.0-next-8.10
## 8.0.0-next-8.9
### Patch Changes
- @verdaccio/core@8.0.0-next-8.9
- @verdaccio/config@8.0.0-next-8.9
- @verdaccio/loaders@8.0.0-next-8.4
- verdaccio-htpasswd@13.0.0-next-8.9
- @verdaccio/utils@8.1.0-next-8.9
- @verdaccio/signature@8.0.0-next-8.1
## 8.0.0-next-8.8
### Patch Changes
- Updated dependencies [0588605]
- Updated dependencies [ca91b9a]
- @verdaccio/config@8.0.0-next-8.8
- @verdaccio/loaders@8.0.0-next-8.4
- verdaccio-htpasswd@13.0.0-next-8.8
- @verdaccio/signature@8.0.0-next-8.1
- @verdaccio/core@8.0.0-next-8.8
- @verdaccio/utils@8.1.0-next-8.8
## 8.0.0-next-8.7
### Patch Changes
- 139861e: fix: crashes with path-to-regexp v0.1.12 express
- Updated dependencies [589ea7f]
- @verdaccio/core@8.0.0-next-8.7
- @verdaccio/utils@8.1.0-next-8.7
- @verdaccio/config@8.0.0-next-8.7
- @verdaccio/loaders@8.0.0-next-8.4
- verdaccio-htpasswd@13.0.0-next-8.7
- @verdaccio/signature@8.0.0-next-8.1
## 8.0.0-next-8.6
### Patch Changes

View File

@@ -6,7 +6,6 @@
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/verdaccio/localized.svg)](https://crowdin.com/project/verdaccio)
[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/verdaccio/verdaccio)](https://www.tickgit.com/browse?repo=github.com/verdaccio/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)
## Donations

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/auth",
"version": "8.0.0-next-8.6",
"version": "8.0.0-next-8.12",
"description": "logger",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -38,20 +38,20 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/config": "workspace:8.0.0-next-8.6",
"@verdaccio/core": "workspace:8.0.0-next-8.6",
"@verdaccio/config": "workspace:8.0.0-next-8.12",
"@verdaccio/core": "workspace:8.0.0-next-8.12",
"@verdaccio/loaders": "workspace:8.0.0-next-8.4",
"@verdaccio/signature": "workspace:8.0.0-next-8.1",
"@verdaccio/utils": "workspace:8.1.0-next-8.6",
"debug": "4.3.7",
"@verdaccio/signature": "workspace:8.0.0-next-8.4",
"@verdaccio/utils": "workspace:8.1.0-next-8.12",
"debug": "4.4.0",
"lodash": "4.17.21",
"verdaccio-htpasswd": "workspace:13.0.0-next-8.6"
"verdaccio-htpasswd": "workspace:13.0.0-next-8.12"
},
"devDependencies": {
"@verdaccio/middleware": "workspace:8.0.0-next-8.6",
"@verdaccio/types": "workspace:13.0.0-next-8.2",
"@verdaccio/logger": "workspace:8.0.0-next-8.6",
"express": "4.21.1",
"@verdaccio/middleware": "workspace:8.0.0-next-8.12",
"@verdaccio/types": "workspace:13.0.0-next-8.3",
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
"express": "4.21.2",
"supertest": "7.0.0"
},
"funding": {

View File

@@ -1,5 +1,64 @@
# @verdaccio/cli
## 8.0.0-next-8.12
### Patch Changes
- Updated dependencies [95ac124]
- @verdaccio/core@8.0.0-next-8.12
- @verdaccio/config@8.0.0-next-8.12
- @verdaccio/node-api@8.0.0-next-8.12
- @verdaccio/logger@8.0.0-next-8.12
## 8.0.0-next-8.11
### Patch Changes
- @verdaccio/config@8.0.0-next-8.11
- @verdaccio/node-api@8.0.0-next-8.11
- @verdaccio/core@8.0.0-next-8.11
- @verdaccio/logger@8.0.0-next-8.11
## 8.0.0-next-8.10
### Patch Changes
- Updated dependencies [bf0e09a]
- @verdaccio/config@8.0.0-next-8.10
- @verdaccio/node-api@8.0.0-next-8.10
- @verdaccio/core@8.0.0-next-8.10
- @verdaccio/logger@8.0.0-next-8.10
## 8.0.0-next-8.9
### Patch Changes
- @verdaccio/node-api@8.0.0-next-8.9
- @verdaccio/core@8.0.0-next-8.9
- @verdaccio/config@8.0.0-next-8.9
- @verdaccio/logger@8.0.0-next-8.9
## 8.0.0-next-8.8
### Patch Changes
- Updated dependencies [0588605]
- Updated dependencies [ca91b9a]
- @verdaccio/config@8.0.0-next-8.8
- @verdaccio/node-api@8.0.0-next-8.8
- @verdaccio/core@8.0.0-next-8.8
- @verdaccio/logger@8.0.0-next-8.8
## 8.0.0-next-8.7
### Patch Changes
- Updated dependencies [589ea7f]
- @verdaccio/core@8.0.0-next-8.7
- @verdaccio/config@8.0.0-next-8.7
- @verdaccio/node-api@8.0.0-next-8.7
- @verdaccio/logger@8.0.0-next-8.7
## 8.0.0-next-8.6
### Patch Changes

View File

@@ -6,7 +6,6 @@
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/verdaccio/localized.svg)](https://crowdin.com/project/verdaccio)
[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/verdaccio/verdaccio)](https://www.tickgit.com/browse?repo=github.com/verdaccio/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)
## Donations

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/cli",
"version": "8.0.0-next-8.6",
"version": "8.0.0-next-8.12",
"author": {
"name": "Juan Picado",
"email": "juanpicado19@gmail.com"
@@ -43,14 +43,14 @@
"start": "ts-node src/index.ts"
},
"dependencies": {
"@verdaccio/config": "workspace:8.0.0-next-8.6",
"@verdaccio/core": "workspace:8.0.0-next-8.6",
"@verdaccio/logger": "workspace:8.0.0-next-8.6",
"@verdaccio/node-api": "workspace:8.0.0-next-8.6",
"@verdaccio/config": "workspace:8.0.0-next-8.12",
"@verdaccio/core": "workspace:8.0.0-next-8.12",
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
"@verdaccio/node-api": "workspace:8.0.0-next-8.12",
"clipanion": "4.0.0-rc.4",
"envinfo": "7.13.0",
"envinfo": "7.14.0",
"kleur": "4.1.5",
"semver": "7.6.3"
"semver": "7.7.1"
},
"devDependencies": {
"ts-node": "10.9.2"

View File

@@ -1,5 +1,53 @@
# @verdaccio/config
## 8.0.0-next-8.12
### Patch Changes
- Updated dependencies [95ac124]
- @verdaccio/core@8.0.0-next-8.12
- @verdaccio/utils@8.1.0-next-8.12
## 8.0.0-next-8.11
### Patch Changes
- Updated dependencies [85e0e13]
- @verdaccio/utils@8.1.0-next-8.11
- @verdaccio/core@8.0.0-next-8.11
## 8.0.0-next-8.10
### Patch Changes
- bf0e09a: fix: runtime dependency missing as explicit dependency
- @verdaccio/core@8.0.0-next-8.10
- @verdaccio/utils@8.1.0-next-8.10
## 8.0.0-next-8.9
### Patch Changes
- @verdaccio/core@8.0.0-next-8.9
- @verdaccio/utils@8.1.0-next-8.9
## 8.0.0-next-8.8
### Patch Changes
- 0588605: chore: `keep_readmes` docs
- ca91b9a: fix: config builder `addLogger`
- @verdaccio/core@8.0.0-next-8.8
- @verdaccio/utils@8.1.0-next-8.8
## 8.0.0-next-8.7
### Patch Changes
- Updated dependencies [589ea7f]
- @verdaccio/core@8.0.0-next-8.7
- @verdaccio/utils@8.1.0-next-8.7
## 8.0.0-next-8.6
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/config",
"version": "8.0.0-next-8.6",
"version": "8.0.0-next-8.12",
"description": "logger",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -38,9 +38,9 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/core": "workspace:8.0.0-next-8.6",
"@verdaccio/utils": "workspace:8.1.0-next-8.6",
"debug": "4.3.7",
"@verdaccio/core": "workspace:8.0.0-next-8.12",
"@verdaccio/utils": "workspace:8.1.0-next-8.12",
"debug": "4.4.0",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
"minimatch": "7.4.6"

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