verdaccio 6.11.2 → 6.11.3

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.11.3
4
+
5
+ ### Patch Changes
6
+
7
+ - c7903be: Fix the web UI showing "Error loading manifests" when a middleware plugin performs asynchronous work before continuing the request.
8
+
9
+ Web API routes now match the paths relative to their router mount. Package listing, search, sidebar, README, login and password changes no longer rely on request logging restoring the original URL at a particular time. Public URLs, authentication requirements and package visibility rules remain unchanged.
10
+
11
+ This corrects a regression introduced in 6.2.0 and still present in 6.11.2. The release includes both the corrected web routes and the companion middleware update that preserves request URLs while logging. Operators do not need to change their package access rules or disable asynchronous middleware plugins.
12
+ - 6ed44c4: Update verdaccio dependencies to the `latest` npm dist-tag (`@verdaccio/ui-theme` tracks `next-9`):
13
+
14
+ - `@verdaccio/ui-theme`: `9.0.0-next-9.45` → `9.0.0-next-9.46`
15
+
16
+ **Patch changes**
17
+
18
+ - `@verdaccio/ui-theme`: Fix the web UI failing to load parts of itself when Verdaccio is served under `url_prefix`. ([#6480](https://github.com/verdaccio/verdaccio/pull/6480))
19
+
20
+ The UI loads some of its files on demand, such as the code and styles of the package detail page. Those requests went to `/-/static/` at the root of the host instead of below `url_prefix`, so behind a reverse proxy that only forwards the prefix they failed with 404. Package pages then showed "Something went wrong", and other pages could lose styles. The UI now requests these files relative to its own location, so they follow `url_prefix`. Registries served at the root of a host behave as before.
21
+
22
+ This affected `@verdaccio/ui-theme` 9.0.0-next-9.2 and later, the web UI Verdaccio 6 and 7 ship. A reverse proxy rule that forwards `/-/static/` at the root to Verdaccio as a workaround is no longer needed.
23
+
24
+ No configuration change is needed.
25
+
3
26
  ## 6.11.2
4
27
 
5
28
  ### Patch Changes
@@ -27,7 +27,7 @@ let cors = require("cors");
27
27
  cors = require_runtime.__toESM(cors);
28
28
  let _verdaccio_loaders = require("@verdaccio/loaders");
29
29
  //#region src/api/index.ts
30
- var version = "6.11.2";
30
+ var version = "6.11.3";
31
31
  var defineAPI = async function(config, storage) {
32
32
  const auth = new _verdaccio_auth.Auth(config, require_lib_logger_index.logger, { legacyMergeConfigs: true });
33
33
  await auth.init();
@@ -18,7 +18,7 @@ import compression from "compression";
18
18
  import cors from "cors";
19
19
  import { asyncLoadPlugin } from "@verdaccio/loaders";
20
20
  //#region src/api/index.ts
21
- var version = "6.11.2";
21
+ var version = "6.11.3";
22
22
  var defineAPI = async function(config, storage) {
23
23
  const auth = new Auth(config, logger, { legacyMergeConfigs: true });
24
24
  await auth.init();
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region src/api/web/api/utils.ts
3
3
  function wrapPath(urlPath) {
4
- return `/-/verdaccio/data${urlPath}`;
4
+ return `/data${urlPath}`;
5
5
  }
6
6
  function wrapSecPath(urlPath) {
7
- return `/-/verdaccio/sec${urlPath}`;
7
+ return `/sec${urlPath}`;
8
8
  }
9
9
  //#endregion
10
10
  exports.wrapPath = wrapPath;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":[],"sources":["../../../../src/api/web/api/utils.ts"],"sourcesContent":["export function wrapPath(urlPath: string) {\n return `/-/verdaccio/data${urlPath}`;\n}\n\nexport function wrapSecPath(urlPath: string) {\n return `/-/verdaccio/sec${urlPath}`;\n}\n"],"mappings":";;AAAA,SAAgB,SAAS,SAAiB;CACxC,OAAO,oBAAoB;AAC7B;AAEA,SAAgB,YAAY,SAAiB;CAC3C,OAAO,mBAAmB;AAC5B"}
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../../../../src/api/web/api/utils.ts"],"sourcesContent":["export function wrapPath(urlPath: string) {\n return `/data${urlPath}`;\n}\n\nexport function wrapSecPath(urlPath: string) {\n return `/sec${urlPath}`;\n}\n"],"mappings":";;AAAA,SAAgB,SAAS,SAAiB;CACxC,OAAO,QAAQ;AACjB;AAEA,SAAgB,YAAY,SAAiB;CAC3C,OAAO,OAAO;AAChB"}
@@ -1,9 +1,9 @@
1
1
  //#region src/api/web/api/utils.ts
2
2
  function wrapPath(urlPath) {
3
- return `/-/verdaccio/data${urlPath}`;
3
+ return `/data${urlPath}`;
4
4
  }
5
5
  function wrapSecPath(urlPath) {
6
- return `/-/verdaccio/sec${urlPath}`;
6
+ return `/sec${urlPath}`;
7
7
  }
8
8
  //#endregion
9
9
  export { wrapPath, wrapSecPath };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs","names":[],"sources":["../../../../src/api/web/api/utils.ts"],"sourcesContent":["export function wrapPath(urlPath: string) {\n return `/-/verdaccio/data${urlPath}`;\n}\n\nexport function wrapSecPath(urlPath: string) {\n return `/-/verdaccio/sec${urlPath}`;\n}\n"],"mappings":";AAAA,SAAgB,SAAS,SAAiB;CACxC,OAAO,oBAAoB;AAC7B;AAEA,SAAgB,YAAY,SAAiB;CAC3C,OAAO,mBAAmB;AAC5B"}
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../../../../src/api/web/api/utils.ts"],"sourcesContent":["export function wrapPath(urlPath: string) {\n return `/data${urlPath}`;\n}\n\nexport function wrapSecPath(urlPath: string) {\n return `/sec${urlPath}`;\n}\n"],"mappings":";AAAA,SAAgB,SAAS,SAAiB;CACxC,OAAO,QAAQ;AACjB;AAEA,SAAgB,YAAY,SAAiB;CAC3C,OAAO,OAAO;AAChB"}
@@ -5,7 +5,7 @@ const require_lib_cli_commands_init = require("./commands/init.js");
5
5
  const require_lib_cli_commands_version = require("./commands/version.js");
6
6
  let clipanion = require("clipanion");
7
7
  //#region src/lib/cli/cli.ts
8
- var pkgVersion = "6.11.2";
8
+ var pkgVersion = "6.11.3";
9
9
  if (process.getuid && process.getuid() === 0) process.emitWarning(`Verdaccio doesn't need superuser privileges. don't run it under root`);
10
10
  if (!require_lib_cli_utils.isVersionValid(process.version)) throw new Error(`Verdaccio requires at least Node.js v22 or higher and you have installed ${process.version},
11
11
  please upgrade your Node.js distribution`);
@@ -4,7 +4,7 @@ import { InitCommand } from "./commands/init.mjs";
4
4
  import { VersionCommand } from "./commands/version.mjs";
5
5
  import { Cli } from "clipanion";
6
6
  //#region src/lib/cli/cli.ts
7
- var pkgVersion = "6.11.2";
7
+ var pkgVersion = "6.11.3";
8
8
  if (process.getuid && process.getuid() === 0) process.emitWarning(`Verdaccio doesn't need superuser privileges. don't run it under root`);
9
9
  if (!isVersionValid(process.version)) throw new Error(`Verdaccio requires at least Node.js v22 or higher and you have installed ${process.version},
10
10
  please upgrade your Node.js distribution`);
@@ -10,7 +10,7 @@ let path = require("path");
10
10
  path = require_runtime.__toESM(path);
11
11
  let clipanion = require("clipanion");
12
12
  //#region src/lib/cli/commands/init.ts
13
- var pkgVersion = "6.11.2";
13
+ var pkgVersion = "6.11.3";
14
14
  var pkgName = "verdaccio";
15
15
  var DEFAULT_PROCESS_NAME = "verdaccio";
16
16
  var InitCommand = class extends clipanion.Command {
@@ -7,7 +7,7 @@ import { findConfigFile, getListenAddress } from "@verdaccio/config";
7
7
  import Path from "path";
8
8
  import { Command, Option } from "clipanion";
9
9
  //#region src/lib/cli/commands/init.ts
10
- var pkgVersion = "6.11.2";
10
+ var pkgVersion = "6.11.3";
11
11
  var pkgName = "verdaccio";
12
12
  var DEFAULT_PROCESS_NAME = "verdaccio";
13
13
  var InitCommand = class extends Command {
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let clipanion = require("clipanion");
3
3
  //#region src/lib/cli/commands/version.ts
4
- var pkgVersion = "6.11.2";
4
+ var pkgVersion = "6.11.3";
5
5
  var VersionCommand = class extends clipanion.Command {
6
6
  static paths = [[`--version`], [`-v`]];
7
7
  async execute() {
@@ -1,6 +1,6 @@
1
1
  import { Command } from "clipanion";
2
2
  //#region src/lib/cli/commands/version.ts
3
- var pkgVersion = "6.11.2";
3
+ var pkgVersion = "6.11.3";
4
4
  var VersionCommand = class extends Command {
5
5
  static paths = [[`--version`], [`-v`]];
6
6
  async execute() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verdaccio",
3
- "version": "6.11.2",
3
+ "version": "6.11.3",
4
4
  "description": "A lightweight private npm proxy registry",
5
5
  "keywords": [
6
6
  "enterprise",
@@ -85,13 +85,13 @@
85
85
  "@verdaccio/loaders": "8.1.7",
86
86
  "@verdaccio/local-storage-legacy": "11.4.7",
87
87
  "@verdaccio/logger": "8.1.7",
88
- "@verdaccio/middleware": "8.2.0",
88
+ "@verdaccio/middleware": "8.2.1",
89
89
  "@verdaccio/package-filter": "13.2.5",
90
90
  "@verdaccio/search-indexer": "8.1.0",
91
91
  "@verdaccio/signature": "8.1.7",
92
92
  "@verdaccio/streams": "10.3.0",
93
93
  "@verdaccio/tarball": "13.1.7",
94
- "@verdaccio/ui-theme": "9.0.0-next-9.45",
94
+ "@verdaccio/ui-theme": "9.0.0-next-9.46",
95
95
  "@verdaccio/url": "13.1.7",
96
96
  "JSONStream": "1.3.5",
97
97
  "async": "3.2.6",
@@ -126,7 +126,7 @@
126
126
  "@types/supertest": "6.0.3",
127
127
  "@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
128
128
  "@verdaccio/e2e-cli": "4.2.0",
129
- "@verdaccio/e2e-ui": "2.8.0",
129
+ "@verdaccio/e2e-ui": "2.10.0",
130
130
  "@verdaccio/test-helper": "4.1.8",
131
131
  "@verdaccio/types": "13.1.0",
132
132
  "@vitest/coverage-v8": "4.1.11",