@savvy-web/silk-effects 9.5.3 → 9.5.4

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/index.d.ts CHANGED
@@ -7500,7 +7500,7 @@ interface PnpmWorkspaceContent {
7500
7500
  * This handler processes the workspace file entirely in JavaScript:
7501
7501
  * - Sorts the `packages` array alphabetically (if present)
7502
7502
  * - Sorts `onlyBuiltDependencies` and `publicHoistPattern` arrays (if present)
7503
- * - Sorts all top-level keys alphabetically, keeping `packages` first
7503
+ * - Sorts all top-level keys alphabetically, `packages` included
7504
7504
  * - Formats the output with consistent YAML styling
7505
7505
  * - Validates the YAML structure
7506
7506
  *
@@ -7541,7 +7541,7 @@ declare class PnpmWorkspace {
7541
7541
  * - `packages` array alphabetically
7542
7542
  * - `onlyBuiltDependencies` array (if present)
7543
7543
  * - `publicHoistPattern` array (if present)
7544
- * - All keys alphabetically, keeping `packages` first
7544
+ * - All keys alphabetically, `packages` included
7545
7545
  *
7546
7546
  * @param content - Parsed pnpm-workspace.yaml content
7547
7547
  * @returns Sorted content
@@ -38,7 +38,7 @@ const DEFAULT_STRINGIFY_OPTIONS = new YamlStringifyOptions({
38
38
  * This handler processes the workspace file entirely in JavaScript:
39
39
  * - Sorts the `packages` array alphabetically (if present)
40
40
  * - Sorts `onlyBuiltDependencies` and `publicHoistPattern` arrays (if present)
41
- * - Sorts all top-level keys alphabetically, keeping `packages` first
41
+ * - Sorts all top-level keys alphabetically, `packages` included
42
42
  * - Formats the output with consistent YAML styling
43
43
  * - Validates the YAML structure
44
44
  *
@@ -83,18 +83,14 @@ var PnpmWorkspace = class PnpmWorkspace {
83
83
  * - `packages` array alphabetically
84
84
  * - `onlyBuiltDependencies` array (if present)
85
85
  * - `publicHoistPattern` array (if present)
86
- * - All keys alphabetically, keeping `packages` first
86
+ * - All keys alphabetically, `packages` included
87
87
  *
88
88
  * @param content - Parsed pnpm-workspace.yaml content
89
89
  * @returns Sorted content
90
90
  */
91
91
  static sortContent(content) {
92
92
  const result = {};
93
- const keys = Object.keys(content).sort((a, b) => {
94
- if (a === "packages") return -1;
95
- if (b === "packages") return 1;
96
- return a.localeCompare(b);
97
- });
93
+ const keys = Object.keys(content).sort((a, b) => a.localeCompare(b));
98
94
  for (const key of keys) {
99
95
  const value = content[key];
100
96
  if (PnpmWorkspace.SORTABLE_ARRAY_KEYS.has(key) && Array.isArray(value)) result[key] = [...value].sort();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvy-web/silk-effects",
3
- "version": "9.5.3",
3
+ "version": "9.5.4",
4
4
  "private": false,
5
5
  "description": "Shared Effect library for Silk Suite conventions",
6
6
  "homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk-effects",
@@ -37,16 +37,16 @@
37
37
  "@changesets/get-release-plan": "^5.0.2",
38
38
  "@changesets/pre": "^3.0.0",
39
39
  "@changesets/read": "^1.0.1",
40
- "@effected/github-references": "^0.9.0",
41
- "@effected/glob": "^0.12.0",
42
- "@effected/jsonc": "^0.17.0",
43
- "@effected/markdown": "^0.17.0",
44
- "@effected/package-json": "^0.22.0",
45
- "@effected/toml": "^0.13.0",
46
- "@effected/walker": "^0.17.0",
47
- "@effected/yaml": "^0.21.0",
40
+ "@effected/github-references": "^0.10.0",
41
+ "@effected/glob": "^0.13.0",
42
+ "@effected/jsonc": "^0.18.0",
43
+ "@effected/markdown": "^0.18.0",
44
+ "@effected/package-json": "^0.23.0",
45
+ "@effected/toml": "^0.14.0",
46
+ "@effected/walker": "^0.18.0",
47
+ "@effected/yaml": "^0.22.0",
48
48
  "@manypkg/get-packages": "^3.1.0",
49
- "@savvy-web/silk-core": "0.4.13",
49
+ "@savvy-web/silk-core": "0.4.14",
50
50
  "mdast-util-heading-range": "^4.0.0",
51
51
  "mdast-util-to-string": "^4.0.0",
52
52
  "remark-gfm": "^4.0.1",
@@ -58,10 +58,10 @@
58
58
  "unist-util-visit": "^5.1.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "@effected/commands": "^0.13.0",
62
- "@effected/git": "^0.22.0",
63
- "@effected/templates": "^0.12.0",
64
- "@effected/workspaces": "^0.34.0",
61
+ "@effected/commands": "^0.14.0",
62
+ "@effected/git": "^0.23.0",
63
+ "@effected/templates": "^0.13.0",
64
+ "@effected/workspaces": "^0.35.0",
65
65
  "effect": "^4.0.0"
66
66
  }
67
67
  }