@pnpm/workspace.workspace-manifest-writer 1100.2.0 → 1100.2.1

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,16 @@
1
1
  # @pnpm/workspace.manifest-writer
2
2
 
3
+ ## 1100.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - pnpm now preserves scalar YAML anchors and aliases when editing `pnpm-workspace.yaml`. Removing the entry that defines an anchor keeps surviving aliases valid. Entries updated to different values are written separately [#8245](https://github.com/pnpm/pnpm/issues/8245).
8
+
9
+ - Updated dependencies:
10
+ - @pnpm/building.policy@1100.1.2
11
+ - @pnpm/lockfile.types@1100.1.2
12
+ - @pnpm/yaml.document-sync@1100.0.2
13
+
3
14
  ## 1100.2.0
4
15
 
5
16
  ### Minor Changes
package/lib/index.js CHANGED
@@ -108,7 +108,7 @@ export async function updateWorkspaceManifest(dir, opts) {
108
108
  return;
109
109
  }
110
110
  manifest = reorderRecursive(originalKeyOrder, manifest);
111
- patchDocument(document, manifest);
111
+ patchDocument(document, manifest, { preserveScalarAliases: true });
112
112
  propagateBlankLinesToNewPairs(document, originalKeyOrder?.keys ?? []);
113
113
  await writeManifestFile(dir, fileName, document);
114
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/workspace.workspace-manifest-writer",
3
- "version": "1100.2.0",
3
+ "version": "1100.2.1",
4
4
  "description": "Updates the workspace manifest file",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -27,26 +27,26 @@
27
27
  "!*.map"
28
28
  ],
29
29
  "dependencies": {
30
- "@pnpm/building.policy": "1100.1.1",
30
+ "@pnpm/building.policy": "1100.1.2",
31
31
  "@pnpm/catalogs.types": "1100.0.1",
32
32
  "@pnpm/config.parse-overrides": "1100.1.5",
33
33
  "@pnpm/config.version-policy": "1100.2.3",
34
34
  "@pnpm/constants": "1102.0.0",
35
- "@pnpm/lockfile.types": "1100.1.1",
35
+ "@pnpm/lockfile.types": "1100.1.2",
36
36
  "@pnpm/text.ordinal-comparator": "1100.0.0",
37
37
  "@pnpm/types": "1102.1.0",
38
38
  "@pnpm/workspace.workspace-manifest-reader": "1100.1.9",
39
- "@pnpm/yaml.document-sync": "1100.0.1",
39
+ "@pnpm/yaml.document-sync": "1100.0.2",
40
40
  "ramda": "npm:@pnpm/ramda@0.28.1",
41
41
  "write-file-atomic": "^7.0.1",
42
- "yaml": "^2.9.0"
42
+ "yaml": "^2.9.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@jest/globals": "30.4.1",
46
- "@pnpm/prepare": "1100.0.30",
46
+ "@pnpm/prepare": "1100.0.31",
47
47
  "@pnpm/prepare-temp-dir": "1100.0.1",
48
- "@pnpm/workspace.projects-reader": "1101.0.27",
49
- "@pnpm/workspace.workspace-manifest-writer": "1100.2.0",
48
+ "@pnpm/workspace.projects-reader": "1101.0.28",
49
+ "@pnpm/workspace.workspace-manifest-writer": "1100.2.1",
50
50
  "@types/ramda": "0.32.0",
51
51
  "@types/write-file-atomic": "^4.0.3",
52
52
  "read-yaml-file": "^3.0.0",