@pnpm/workspace.workspace-manifest-writer 1100.0.13 → 1100.0.14

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 (2) hide show
  1. package/lib/index.js +4 -4
  2. package/package.json +11 -10
package/lib/index.js CHANGED
@@ -2,6 +2,7 @@ import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import util from 'node:util';
4
4
  import { parsePkgAndParentSelector } from '@pnpm/config.parse-overrides';
5
+ import { mergePackageVersionSpecs } from '@pnpm/config.version-policy';
5
6
  import { WORKSPACE_MANIFEST_FILENAME } from '@pnpm/constants';
6
7
  import { lexCompare } from '@pnpm/util.lex-comparator';
7
8
  import { validateWorkspaceManifest } from '@pnpm/workspace.workspace-manifest-reader';
@@ -66,11 +67,10 @@ export async function updateWorkspaceManifest(dir, opts) {
66
67
  }
67
68
  if (opts.addedMinimumReleaseAgeExcludes?.length) {
68
69
  const existing = manifest.minimumReleaseAgeExclude ?? [];
69
- const existingSet = new Set(existing);
70
- const newEntries = [...new Set(opts.addedMinimumReleaseAgeExcludes)].filter((entry) => !existingSet.has(entry));
71
- if (newEntries.length > 0) {
70
+ const merged = mergePackageVersionSpecs([...existing, ...opts.addedMinimumReleaseAgeExcludes]);
71
+ if (!equals(existing, merged)) {
72
72
  shouldBeUpdated = true;
73
- manifest.minimumReleaseAgeExclude = [...existing, ...newEntries];
73
+ manifest.minimumReleaseAgeExclude = merged;
74
74
  }
75
75
  }
76
76
  if (!shouldBeUpdated) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/workspace.workspace-manifest-writer",
3
- "version": "1100.0.13",
3
+ "version": "1100.0.14",
4
4
  "description": "Updates the workspace manifest file",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -10,9 +10,9 @@
10
10
  "funding": "https://opencollective.com/pnpm",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://github.com/pnpm/pnpm/tree/main/workspace/workspace-manifest-writer"
13
+ "url": "https://github.com/pnpm/pnpm/tree/main/pnpm11/workspace/workspace-manifest-writer"
14
14
  },
15
- "homepage": "https://github.com/pnpm/pnpm/tree/main/workspace/workspace-manifest-writer#readme",
15
+ "homepage": "https://github.com/pnpm/pnpm/tree/main/pnpm11/workspace/workspace-manifest-writer#readme",
16
16
  "bugs": {
17
17
  "url": "https://github.com/pnpm/pnpm/issues"
18
18
  },
@@ -31,13 +31,14 @@
31
31
  "ramda": "npm:@pnpm/ramda@0.28.1",
32
32
  "write-file-atomic": "^7.0.1",
33
33
  "yaml": "^2.9.0",
34
- "@pnpm/lockfile.types": "1100.0.11",
35
34
  "@pnpm/catalogs.types": "1100.0.0",
36
35
  "@pnpm/constants": "1100.0.0",
37
- "@pnpm/config.parse-overrides": "1100.0.1",
36
+ "@pnpm/config.version-policy": "1100.1.6",
37
+ "@pnpm/lockfile.types": "1100.0.12",
38
38
  "@pnpm/types": "1101.3.2",
39
- "@pnpm/yaml.document-sync": "1100.0.0",
40
- "@pnpm/workspace.workspace-manifest-reader": "1100.0.8"
39
+ "@pnpm/config.parse-overrides": "1100.0.2",
40
+ "@pnpm/workspace.workspace-manifest-reader": "1100.0.9",
41
+ "@pnpm/yaml.document-sync": "1100.0.0"
41
42
  },
42
43
  "devDependencies": {
43
44
  "@jest/globals": "30.4.1",
@@ -45,10 +46,10 @@
45
46
  "@types/write-file-atomic": "^4.0.3",
46
47
  "read-yaml-file": "^3.0.0",
47
48
  "write-yaml-file": "^6.0.0",
48
- "@pnpm/prepare": "1100.0.16",
49
- "@pnpm/workspace.workspace-manifest-writer": "1100.0.13",
49
+ "@pnpm/prepare": "1100.0.17",
50
50
  "@pnpm/prepare-temp-dir": "1100.0.0",
51
- "@pnpm/workspace.projects-reader": "1101.0.12"
51
+ "@pnpm/workspace.projects-reader": "1101.0.13",
52
+ "@pnpm/workspace.workspace-manifest-writer": "1100.0.14"
52
53
  },
53
54
  "engines": {
54
55
  "node": ">=22.13"