verdaccio 7.0.0-next.5 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +259 -4
  3. package/bin/verdaccio +1 -1
  4. package/build/cjs/_virtual/_rolldown/runtime.cjs +23 -0
  5. package/build/cjs/index.cjs +33 -0
  6. package/build/cjs/lib/auth-utils.cjs +14 -0
  7. package/build/cjs/lib/auth-utils.cjs.map +1 -0
  8. package/build/cjs/lib/auth.cjs +10 -0
  9. package/build/cjs/lib/auth.cjs.map +1 -0
  10. package/build/cjs/lib/cli.cjs +15 -0
  11. package/build/cjs/lib/cli.cjs.map +1 -0
  12. package/build/cjs/lib/config.cjs +20 -0
  13. package/build/cjs/lib/config.cjs.map +1 -0
  14. package/build/cjs/lib/constants.cjs +76 -0
  15. package/build/cjs/lib/constants.cjs.map +1 -0
  16. package/build/cjs/lib/legacy-storage-adapter.cjs +214 -0
  17. package/build/cjs/lib/legacy-storage-adapter.cjs.map +1 -0
  18. package/build/cjs/lib/logger/index.cjs +26 -0
  19. package/build/cjs/lib/logger/index.cjs.map +1 -0
  20. package/build/cjs/lib/run-server.cjs +64 -0
  21. package/build/cjs/lib/run-server.cjs.map +1 -0
  22. package/build/cjs/lib/storage.cjs +103 -0
  23. package/build/cjs/lib/storage.cjs.map +1 -0
  24. package/build/cjs/lib/up-storage.cjs +29 -0
  25. package/build/cjs/lib/utils.cjs +20 -0
  26. package/build/cjs/lib/utils.cjs.map +1 -0
  27. package/build/cjs/types/index.cjs +1 -0
  28. package/build/esm/index.mjs +3 -0
  29. package/build/esm/lib/auth-utils.mjs +11 -0
  30. package/build/esm/lib/auth-utils.mjs.map +1 -0
  31. package/build/esm/lib/auth.mjs +7 -0
  32. package/build/esm/lib/auth.mjs.map +1 -0
  33. package/build/esm/lib/cli.mjs +14 -0
  34. package/build/esm/lib/cli.mjs.map +1 -0
  35. package/build/esm/lib/config.mjs +16 -0
  36. package/build/esm/lib/config.mjs.map +1 -0
  37. package/build/esm/lib/constants.mjs +11 -0
  38. package/build/esm/lib/constants.mjs.map +1 -0
  39. package/build/esm/lib/legacy-storage-adapter.mjs +210 -0
  40. package/build/esm/lib/legacy-storage-adapter.mjs.map +1 -0
  41. package/build/esm/lib/logger/index.mjs +17 -0
  42. package/build/esm/lib/logger/index.mjs.map +1 -0
  43. package/build/esm/lib/run-server.mjs +58 -0
  44. package/build/esm/lib/run-server.mjs.map +1 -0
  45. package/build/esm/lib/storage.mjs +94 -0
  46. package/build/esm/lib/storage.mjs.map +1 -0
  47. package/build/esm/lib/up-storage.mjs +1 -0
  48. package/build/esm/lib/utils.mjs +17 -0
  49. package/build/esm/lib/utils.mjs.map +1 -0
  50. package/build/index.d.ts +2 -2
  51. package/build/lib/auth-utils.d.ts +2 -0
  52. package/build/lib/auth.d.ts +2 -0
  53. package/build/lib/cli.d.ts +2 -0
  54. package/build/lib/config.d.ts +5 -0
  55. package/build/lib/constants.d.ts +16 -0
  56. package/build/lib/legacy-storage-adapter.d.ts +14 -0
  57. package/build/lib/logger/index.d.ts +6 -0
  58. package/build/lib/run-server.d.ts +35 -0
  59. package/build/lib/storage.d.ts +16 -0
  60. package/build/lib/up-storage.d.ts +2 -0
  61. package/build/lib/utils.d.ts +2 -0
  62. package/build/types/index.d.ts +58 -0
  63. package/conf/.gitkeep +0 -0
  64. package/cypress/e2e/01-home.cy.ts +11 -0
  65. package/cypress/e2e/02-signin.cy.ts +11 -0
  66. package/cypress/e2e/03-layout.cy.ts +11 -0
  67. package/cypress/e2e/04-search.cy.ts +33 -0
  68. package/cypress/e2e/05-settings.cy.ts +24 -0
  69. package/cypress/e2e/06-publish.cy.ts +16 -0
  70. package/cypress/e2e/07-detail.cy.ts +19 -0
  71. package/cypress/e2e/08-failure-modes.cy.ts +21 -0
  72. package/cypress/e2e/09-manifest-rendering.cy.ts +20 -0
  73. package/cypress/e2e/10-session.cy.ts +17 -0
  74. package/cypress/e2e/11-i18n-keys.cy.ts +17 -0
  75. package/cypress/e2e/12-signup.cy.ts +19 -0
  76. package/cypress/e2e/13-change-password.cy.ts +24 -0
  77. package/cypress/support/e2e.ts +1 -0
  78. package/cypress/support/node-builtins-stub.cjs +6 -0
  79. package/cypress.config.ts +86 -0
  80. package/index.js +1 -0
  81. package/package.json +119 -62
  82. package/pnpm-workspace.yaml +32 -0
  83. package/renovate.json +22 -0
  84. package/security.txt +5 -0
  85. package/systemd/verdaccio.service +11 -0
  86. package/types/custom.d.ts +13 -0
  87. package/vite.config.ts +101 -0
  88. package/build/index.js +0 -32
  89. package/build/index.js.map +0 -1
  90. package/build/server/index.d.ts +0 -2
  91. package/build/server/index.js +0 -32
  92. package/build/server/index.js.map +0 -1
  93. package/build/server/registry.d.ts +0 -39
  94. package/build/server/registry.js +0 -154
  95. package/build/server/registry.js.map +0 -1
  96. package/build/server/request.d.ts +0 -64
  97. package/build/server/request.js +0 -264
  98. package/build/server/request.js.map +0 -1
  99. package/build/start.js +0 -4
  100. package/build/start.js.map +0 -1
  101. /package/build/{start.d.ts → esm/types/index.mjs} +0 -0
@@ -0,0 +1,58 @@
1
+ import type { NextFunction, Request, Response } from 'express';
2
+ import type { pluginUtils } from '@verdaccio/core';
3
+ import type { Callback, Config, Logger, Manifest, PackageAccess, RemoteUser, StringValue as verdaccio$StringValue } from '@verdaccio/types';
4
+ export type StringValue = verdaccio$StringValue;
5
+ export interface LegacyPackageList {
6
+ [key: string]: LegacyPackageAccess;
7
+ }
8
+ export type LegacyPackageAccess = PackageAccess & {
9
+ allow_publish?: string[];
10
+ allow_proxy?: string[];
11
+ allow_access?: string[];
12
+ proxy_access?: string[];
13
+ unpublish?: string[];
14
+ };
15
+ export type MatchedPackage = PackageAccess | void;
16
+ export type JWTPayload = RemoteUser & {
17
+ password?: string;
18
+ };
19
+ export interface AESPayload {
20
+ user: string;
21
+ password: string;
22
+ }
23
+ export interface Utils {
24
+ ErrorCode: any;
25
+ getLatestVersion: Callback;
26
+ isObject: (value: any) => boolean;
27
+ validate_name: (value: any) => boolean;
28
+ tag_version: (value: any, version: string, tag: string) => void;
29
+ semverSort: (keys: string[]) => string[];
30
+ }
31
+ export interface Profile {
32
+ tfa: boolean;
33
+ name: string;
34
+ email: string;
35
+ email_verified: string;
36
+ created: string;
37
+ updated: string;
38
+ cidr_whitelist: any;
39
+ fullname: string;
40
+ }
41
+ export type $RequestExtend = Omit<Request, 'params'> & {
42
+ remote_user?: any;
43
+ log: Logger;
44
+ params: Record<string, string>;
45
+ };
46
+ export type $ResponseExtend = Response & {
47
+ cookies?: any;
48
+ };
49
+ export type $NextFunctionVer = NextFunction & any;
50
+ export type $SidebarPackage = Manifest & {
51
+ latest: any;
52
+ };
53
+ export interface ISyncUplinks {
54
+ uplinksLook?: boolean;
55
+ etag?: string;
56
+ req?: Request;
57
+ }
58
+ export type IPluginFilters = pluginUtils.ManifestFilter<Config>[];
package/conf/.gitkeep ADDED
File without changes
@@ -0,0 +1,11 @@
1
+ import { createRegistryConfig, homeTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ });
10
+
11
+ homeTests(config);
@@ -0,0 +1,11 @@
1
+ import { createRegistryConfig, signinTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ });
10
+
11
+ signinTests(config);
@@ -0,0 +1,11 @@
1
+ import { createRegistryConfig, layoutTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ });
10
+
11
+ layoutTests(config);
@@ -0,0 +1,33 @@
1
+ import { createRegistryConfig, searchTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ });
10
+
11
+ // The upstream `searchTests` "no results" assertion types an impossible query
12
+ // like `xyzzy-no-such-package-<timestamp>` and expects an empty-state label.
13
+ // This Verdaccio build proxies search to the npmjs uplink, which returns
14
+ // fuzzy matches even for nonsense queries, so the empty state never renders.
15
+ //
16
+ // Stub the search endpoints so that any request whose path contains
17
+ // "xyzzy-no-such-package" responds with an empty result. The library's own
18
+ // `cy.intercept` for these URLs is a spy (no handler), and Cypress falls
19
+ // through to other matching routes when a spy fires — so this stub wins for
20
+ // the impossible query without affecting the other search tests, which use
21
+ // real queries that don't match this pattern.
22
+ beforeEach(() => {
23
+ cy.intercept('GET', '**/-/verdaccio/data/search/*xyzzy-no-such-package*', {
24
+ statusCode: 200,
25
+ body: [],
26
+ });
27
+ cy.intercept('GET', '**/-/v1/search*xyzzy-no-such-package*', {
28
+ statusCode: 200,
29
+ body: { objects: [], total: 0, time: '' },
30
+ });
31
+ });
32
+
33
+ searchTests(config);
@@ -0,0 +1,24 @@
1
+ import { createRegistryConfig, settingsTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ features: {
10
+ settings: {
11
+ // The workspace ui-theme builds its bundle from
12
+ // packages/plugins/ui-theme/src/i18n without crowdin's
13
+ // download_translations/, so non-English locales fall back to
14
+ // English at runtime. The language switcher click visibly does
15
+ // nothing, which makes the upstream "should change the UI language"
16
+ // assertion permanently fail. Re-enable once the e2e-ui CI job
17
+ // (and `pnpm e2e:ui:local`) has a way to cache the crowdin
18
+ // translations into the ui-theme build.
19
+ languageSwitcher: false,
20
+ },
21
+ },
22
+ });
23
+
24
+ settingsTests(config);
@@ -0,0 +1,16 @@
1
+ import { createRegistryConfig, publishTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ features: {
10
+ publish: {
11
+ privateDownloadTarball: true,
12
+ },
13
+ },
14
+ });
15
+
16
+ publishTests(config);
@@ -0,0 +1,19 @@
1
+ import { createRegistryConfig, detailTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ features: {
10
+ detail: {
11
+ // master 404s an unknown version and no longer leaks the previous
12
+ // package's version filter across SPA navigation (verdaccio#6210 + follow-ups)
13
+ versionNotFound: true,
14
+ staleVersionsNavigation: true,
15
+ },
16
+ },
17
+ });
18
+
19
+ detailTests(config);
@@ -0,0 +1,21 @@
1
+ import { createRegistryConfig, failureModeTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ features: {
10
+ failureModes: {
11
+ // master surfaces error states instead of blank pages / empty-registry
12
+ // onboarding / "no results found" on network and 5xx failures (verdaccio#6210)
13
+ homeNetworkError: true,
14
+ detailErrorState: true,
15
+ searchError: true,
16
+ downloadError: true,
17
+ },
18
+ },
19
+ });
20
+
21
+ failureModeTests(config);
@@ -0,0 +1,20 @@
1
+ import { createRegistryConfig, manifestRenderingTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ features: {
10
+ manifestRendering: {
11
+ // master renders string/array repository, funding and bugs, gravatar
12
+ // avatars and email-less contributors (verdaccio#6210)
13
+ stringForms: true,
14
+ gravatarAvatars: true,
15
+ developersWithoutEmail: true,
16
+ },
17
+ },
18
+ });
19
+
20
+ manifestRenderingTests(config);
@@ -0,0 +1,17 @@
1
+ import { createRegistryConfig, sessionTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ features: {
10
+ session: {
11
+ // master purges an expired token from localStorage on boot (verdaccio#6210)
12
+ expiredTokenPurged: true,
13
+ },
14
+ },
15
+ });
16
+
17
+ sessionTests(config);
@@ -0,0 +1,17 @@
1
+ import { createRegistryConfig, i18nKeyTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ features: {
10
+ i18n: {
11
+ // the security.* namespace now ships in the bundle (verdaccio#6210)
12
+ noRawKeysSecurityPages: true,
13
+ },
14
+ },
15
+ });
16
+
17
+ i18nKeyTests(config);
@@ -0,0 +1,19 @@
1
+ import { createRegistryConfig, signupTests } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ const config = createRegistryConfig({
6
+ registryUrl,
7
+ title: 'Verdaccio e2e',
8
+ credentials: { user: 'test', password: 'test' },
9
+ features: {
10
+ signup: {
11
+ // master posts to the real signup endpoint and logs the new user in
12
+ // (verdaccio#6210 + follow-ups); requires flags.createUser: true
13
+ happyPath: true,
14
+ validation: true,
15
+ },
16
+ },
17
+ });
18
+
19
+ signupTests(config);
@@ -0,0 +1,24 @@
1
+ import { changePasswordTests, createRegistryConfig } from '@verdaccio/e2e-ui';
2
+
3
+ const registryUrl = Cypress.expose('VERDACCIO_URL') || 'http://localhost:4873';
4
+
5
+ // requires flags.changePassword: true on the registry
6
+ const config = createRegistryConfig({
7
+ registryUrl,
8
+ title: 'Verdaccio e2e',
9
+ credentials: { user: 'test', password: 'test' },
10
+ features: {
11
+ changePassword: {
12
+ // The happy-path BODY works on master (a valid change lands on the
13
+ // success page), but the suite's after() cleanup calls cy.login to
14
+ // restore the original password assuming a logged-out header — and
15
+ // changing the password does not invalidate the JWT still in
16
+ // localStorage, so the user stays logged in and cy.login can't find
17
+ // the login button. Re-enable once the e2e-ui change-password after()
18
+ // hook clears the session before its restore login.
19
+ happyPath: false,
20
+ },
21
+ },
22
+ });
23
+
24
+ changePasswordTests(config);
@@ -0,0 +1 @@
1
+ import '@verdaccio/e2e-ui/commands';
@@ -0,0 +1,6 @@
1
+ // Empty stand-in for Node builtins (fs, child_process, ...) when bundling
2
+ // specs for the browser. @verdaccio/e2e-ui exposes its Node-only cy.task
3
+ // implementations from the same entry point as the browser test suites; the
4
+ // Node APIs are only invoked inside the tasks, which run in the Cypress
5
+ // server process, so the browser bundle never calls into this stub.
6
+ module.exports = {};
@@ -0,0 +1,86 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+
4
+ import { defineConfig } from 'cypress';
5
+
6
+ import { setupVerdaccioTasks } from '@verdaccio/e2e-ui';
7
+
8
+ const registryUrl = process.env.VERDACCIO_URL || 'http://localhost:4873';
9
+
10
+ const watchers: Record<string, fs.FSWatcher> = {};
11
+
12
+ /**
13
+ * Bundle spec/support files with Vite. TypeScript 7 no longer ships the JS
14
+ * compiler API that Cypress's default webpack/ts-loader preprocessor relies
15
+ * on. Vite is imported dynamically at preprocess time: Cypress bundles this
16
+ * config file (and anything it imports statically) with its own packaged
17
+ * webpack, and a bundled copy of Vite crashes rolldown's native binding.
18
+ */
19
+ async function viteBundle(file: Cypress.FileObject): Promise<string> {
20
+ const { filePath, outputPath, shouldWatch } = file;
21
+
22
+ if (shouldWatch && !watchers[filePath]) {
23
+ watchers[filePath] = fs.watch(filePath, () => file.emit('rerun'));
24
+ file.on('close', () => {
25
+ watchers[filePath]?.close();
26
+ delete watchers[filePath];
27
+ });
28
+ }
29
+
30
+ const { build } = await import('vite');
31
+ const fileName = path.basename(outputPath);
32
+ const globalName = `spec_${fileName.replace(/\W/g, '_')}`;
33
+
34
+ await build({
35
+ configFile: false,
36
+ logLevel: 'warn',
37
+ define: {
38
+ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'test'),
39
+ },
40
+ resolve: {
41
+ alias: [
42
+ // @verdaccio/e2e-ui mixes browser test suites and Node-only cy.task
43
+ // implementations in one entry point; stub the Node builtins out of
44
+ // the browser spec bundle (they are only invoked inside the tasks,
45
+ // which run in the Cypress server process).
46
+ {
47
+ find: /^(node:)?(fs|fs\/promises|child_process|os|path)$/,
48
+ replacement: path.resolve(__dirname, './cypress/support/node-builtins-stub.cjs'),
49
+ },
50
+ ],
51
+ },
52
+ build: {
53
+ emptyOutDir: false,
54
+ minify: false,
55
+ outDir: path.dirname(outputPath),
56
+ sourcemap: true,
57
+ write: true,
58
+ watch: null,
59
+ lib: {
60
+ entry: filePath,
61
+ fileName: () => fileName,
62
+ formats: ['umd'],
63
+ name: globalName,
64
+ },
65
+ },
66
+ });
67
+
68
+ return outputPath;
69
+ }
70
+
71
+ export default defineConfig({
72
+ e2e: {
73
+ baseUrl: registryUrl,
74
+ specPattern: 'cypress/e2e/**/*.cy.ts',
75
+ supportFile: 'cypress/support/e2e.ts',
76
+ setupNodeEvents(on) {
77
+ on('file:preprocessor', viteBundle);
78
+ setupVerdaccioTasks(on, { registryUrl });
79
+ },
80
+ },
81
+ video: false,
82
+ screenshotOnRunFailure: false,
83
+ expose: {
84
+ VERDACCIO_URL: registryUrl,
85
+ },
86
+ });
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export { default as runServer } from './build/cjs/index';
package/package.json CHANGED
@@ -1,86 +1,143 @@
1
1
  {
2
2
  "name": "verdaccio",
3
- "version": "7.0.0-next.5",
3
+ "version": "7.0.0",
4
4
  "description": "A lightweight private npm proxy registry",
5
- "main": "build/index.js",
6
- "types": "build/index.d.ts",
7
- "bin": {
8
- "verdaccio": "./bin/verdaccio"
5
+ "keywords": [
6
+ "enterprise",
7
+ "modules",
8
+ "package",
9
+ "private",
10
+ "proxy",
11
+ "registry",
12
+ "repository",
13
+ "server",
14
+ "verdaccio"
15
+ ],
16
+ "homepage": "https://verdaccio.org",
17
+ "license": "MIT",
18
+ "author": {
19
+ "name": "Verdaccio Maintainers",
20
+ "email": "verdaccio.npm@gmail.com"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git://github.com/verdaccio/verdaccio"
9
25
  },
10
26
  "funding": {
11
27
  "type": "opencollective",
12
28
  "url": "https://opencollective.com/verdaccio"
13
29
  },
14
- "files": [
15
- "bin",
16
- "build"
17
- ],
18
- "author": {
19
- "name": "Juan Picado",
20
- "email": "juanpicado19@gmail.com"
30
+ "bin": {
31
+ "verdaccio": "./bin/verdaccio"
21
32
  },
22
- "repository": {
23
- "type": "https",
24
- "url": "https://github.com/verdaccio/verdaccio"
33
+ "main": "build/cjs/index.cjs",
34
+ "module": "build/esm/index.mjs",
35
+ "types": "build/index.d.ts",
36
+ "exports": {
37
+ ".": {
38
+ "import": {
39
+ "types": "./build/index.d.ts",
40
+ "default": "./build/esm/index.mjs"
41
+ },
42
+ "require": {
43
+ "types": "./build/index.d.ts",
44
+ "default": "./build/cjs/index.cjs"
45
+ }
46
+ }
25
47
  },
26
- "homepage": "https://verdaccio.org",
27
48
  "dependencies": {
28
- "@verdaccio/cli": "7.0.0-next.5",
29
- "@verdaccio/hooks": "7.0.0-next.5",
30
- "@verdaccio/logger": "7.0.0-next.5",
31
- "@verdaccio/node-api": "7.0.0-next.5",
32
- "@verdaccio/ui-theme": "7.0.0-next.5",
33
- "@verdaccio/utils": "7.0.0-next.5",
34
- "verdaccio-audit": "12.0.0-next.5",
35
- "verdaccio-htpasswd": "12.0.0-next.5"
49
+ "@verdaccio/auth": "9.0.0-next-9.40",
50
+ "@verdaccio/cli": "9.0.0-next-9.40",
51
+ "@verdaccio/config": "9.0.0-next-9.40",
52
+ "@verdaccio/core": "9.0.0-next-9.40",
53
+ "@verdaccio/loaders": "9.0.0-next-9.40",
54
+ "@verdaccio/local-storage": "14.0.0-next-9.40",
55
+ "@verdaccio/logger": "9.0.0-next-9.40",
56
+ "@verdaccio/middleware": "9.0.0-next-9.40",
57
+ "@verdaccio/node-api": "9.0.0-next-9.40",
58
+ "@verdaccio/proxy": "9.0.0-next-9.40",
59
+ "@verdaccio/server": "9.0.0-next-9.40",
60
+ "@verdaccio/store": "9.0.0-next-9.40",
61
+ "@verdaccio/ui-theme": "9.0.0-next-9.40",
62
+ "debug": "4.4.3",
63
+ "express": "5.3.0",
64
+ "lodash-es": "4.18.1",
65
+ "semver": "7.8.5",
66
+ "verdaccio-audit": "14.0.0-next-9.40",
67
+ "verdaccio-htpasswd": "14.0.0-next-9.40"
36
68
  },
37
69
  "devDependencies": {
38
- "@verdaccio/auth": "7.0.0-next.5",
39
- "@verdaccio/config": "7.0.0-next.5",
40
- "@verdaccio/core": "7.0.0-next.5",
41
- "@verdaccio/store": "7.0.0-next.5",
42
- "@verdaccio/test-helper": "3.0.0-next.1",
43
- "fastify": "4.25.2",
44
- "get-port": "5.1.1",
45
- "got": "11.8.6",
46
- "lodash": "4.17.21",
47
- "nock": "13.4.0",
48
- "node-mocks-http": "1.14.0",
49
- "typedoc-plugin-markdown": "3.14.0",
50
- "typedoc-plugin-missing-exports": "1.0.0",
51
- "yaml": "2.3.4"
70
+ "@changesets/changelog-github": "1.0.1",
71
+ "@changesets/cli": "3.0.3",
72
+ "@changesets/get-dependents-graph": "3.0.0",
73
+ "@orama/orama": "3.1.18",
74
+ "@types/debug": "4.1.13",
75
+ "@types/express": "5.0.6",
76
+ "@types/http-errors": "2.0.5",
77
+ "@types/lodash-es": "^4",
78
+ "@types/node": "25.5.0",
79
+ "@types/semver": "7.8.0",
80
+ "@types/supertest": "7.2.1",
81
+ "@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
82
+ "@verdaccio/api": "9.0.0-next-9.40",
83
+ "@verdaccio/e2e-cli": "4.0.1",
84
+ "@verdaccio/e2e-ui": "2.8.0",
85
+ "@verdaccio/test-helper": "5.0.0-next-9.41",
86
+ "@verdaccio/types": "14.0.0-next-9.18",
87
+ "@verdaccio/web": "9.0.0-next-9.40",
88
+ "@vitest/coverage-v8": "5.0.5",
89
+ "cross-env": "10.1.0",
90
+ "cypress": "16.2.0",
91
+ "fs-extra": "11.4.1",
92
+ "get-port": "7.2.0",
93
+ "kleur": "4.1.5",
94
+ "nock": "15.0.2",
95
+ "node-mocks-http": "^1.18.1",
96
+ "oxfmt": "0.73.0",
97
+ "oxlint": "1.88.0",
98
+ "selfsigned": "5.5.0",
99
+ "supertest": "7.3.1",
100
+ "tsx": "4.23.15",
101
+ "typescript": "7.0.2",
102
+ "verdaccio-auth-memory": "14.0.0-next-9.40",
103
+ "verdaccio-memory": "14.0.0-next-9.40",
104
+ "vite": "8.3.4",
105
+ "vitest": "5.0.5"
52
106
  },
53
- "keywords": [
54
- "private",
55
- "package",
56
- "repository",
57
- "registry",
58
- "enterprise",
59
- "modules",
60
- "proxy",
61
- "server",
62
- "verdaccio"
63
- ],
107
+ "preferGlobal": true,
64
108
  "engines": {
65
- "node": ">=18"
109
+ "node": ">=24"
66
110
  },
67
- "preferGlobal": true,
68
111
  "collective": {
69
112
  "type": "opencollective",
70
113
  "url": "https://opencollective.com/verdaccio",
71
114
  "logo": "https://opencollective.com/verdaccio/logo.txt"
72
115
  },
73
116
  "scripts": {
74
- "clean": "rimraf ./build",
75
- "lint": "eslint . --ext .js,.ts",
76
- "test": "jest --detectOpenHandles",
77
- "ge:docs": "typedoc src/index.ts --tsconfig tsconfig.build.json --plugin typedoc-plugin-markdown",
78
- "test:debug": "node --inspect-brk ../../node_modules/jest/bin/jest.js --config ./test/jest.config.functional.js --testPathPattern ./test/unit/* --passWithNoTests",
79
- "type-check": "tsc --noEmit -p tsconfig.build.json",
80
- "build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
81
- "build:js": "babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps",
82
- "build": "pnpm run build:js && pnpm run build:types",
83
- "code:docker-build": "babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\"",
84
- "build:docker": "docker build -t verdaccio/verdaccio:local . --no-cache"
117
+ "ci:version": "pnpm ci:version:changeset && pnpm ci:version:install",
118
+ "ci:version:changeset": "changeset version",
119
+ "ci:version:install": "pnpm install --no-frozen-lockfile --config.prefer-online=true",
120
+ "ci:publish": "changeset publish",
121
+ "type-check": "tsc --noEmit",
122
+ "cache:clean": "pnpm store prune",
123
+ "type-check:watch": "pnpm run type-check -- --watch",
124
+ "format": "oxfmt",
125
+ "format:check": "oxfmt --check",
126
+ "test": "cross-env NODE_ENV=test TZ=UTC FORCE_COLOR=1 vitest run",
127
+ "e2e:ui:start": "node bin/verdaccio --config ./scripts/e2e-ui-config.yaml",
128
+ "e2e:ui:run": "cypress run",
129
+ "e2e:ui:open": "cypress open",
130
+ "pre:ci": "pnpm run lint",
131
+ "lint:ts": "pnpm run type-check",
132
+ "lint": "oxlint --max-warnings 0",
133
+ "lint:fix": "oxlint --fix",
134
+ "lint:lockfile": "echo 'No lockfile linting available'",
135
+ "start": "NODE_OPTIONS='--trace-deprecation' tsx src/lib/cli",
136
+ "start:brk": "tsx src/lib/cli --inspect-brk",
137
+ "start:debug": "tsx --inspect debug/run-server.ts",
138
+ "start:run-server": "tsx debug/run-server.ts",
139
+ "build": "rm -Rf build && vite build",
140
+ "docker": "docker build -t verdaccio/verdaccio:local-7.x . --no-cache",
141
+ "docker:run": "docker run -it --rm -p 4873:4873 -e \"DEBUG=verdaccio*\" verdaccio/verdaccio:local-7.x"
85
142
  }
86
143
  }