@savvy-web/changelog 0.1.3 → 0.2.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 (3) hide show
  1. package/index.cjs +49 -34
  2. package/index.js +54 -36
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -65,14 +65,14 @@ let semver_ranges_valid_js = require("semver/ranges/valid.js");
65
65
  semver_ranges_valid_js = __toESM(semver_ranges_valid_js, 1);
66
66
  let semver_functions_satisfies_js = require("semver/functions/satisfies.js");
67
67
  semver_functions_satisfies_js = __toESM(semver_functions_satisfies_js, 1);
68
+ let semver_functions_inc_js = require("semver/functions/inc.js");
69
+ semver_functions_inc_js = __toESM(semver_functions_inc_js, 1);
68
70
  let semver_functions_prerelease_js = require("semver/functions/prerelease.js");
69
71
  semver_functions_prerelease_js = __toESM(semver_functions_prerelease_js, 1);
70
72
  let semver_functions_parse_js = require("semver/functions/parse.js");
71
73
  semver_functions_parse_js = __toESM(semver_functions_parse_js, 1);
72
74
  let semver_functions_gt_js = require("semver/functions/gt.js");
73
75
  semver_functions_gt_js = __toESM(semver_functions_gt_js, 1);
74
- let semver_functions_inc_js = require("semver/functions/inc.js");
75
- semver_functions_inc_js = __toESM(semver_functions_inc_js, 1);
76
76
  //#region ../../node_modules/.pnpm/effect@4.0.0-rc.115/node_modules/effect/dist/Pipeable.js
77
77
  /**
78
78
  * The `Pipeable` module defines the shared interface and implementation helpers
@@ -97854,7 +97854,7 @@ function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
97854
97854
  return !packageJson.version;
97855
97855
  }
97856
97856
  //#endregion
97857
- //#region ../../node_modules/.pnpm/@changesets+config@4.0.0/node_modules/@changesets/config/dist/index.mjs
97857
+ //#region ../../node_modules/.pnpm/@changesets+config@4.0.1/node_modules/@changesets/config/dist/index.mjs
97858
97858
  const DEFAULT_CONFIG = {
97859
97859
  lang: void 0,
97860
97860
  message: void 0,
@@ -98649,13 +98649,11 @@ const noDuplicateFixedPackages = ({ config, errors }) => {
98649
98649
  if (config.fixed.length === 0) return;
98650
98650
  const foundNames = /* @__PURE__ */ new Set();
98651
98651
  const duplicatedNames = /* @__PURE__ */ new Set();
98652
- for (const fixedGroup of config.fixed) {
98653
- for (const name of fixedGroup) {
98654
- if (foundNames.has(name)) duplicatedNames.add(name);
98655
- foundNames.add(name);
98656
- }
98657
- errors.push(...Array.from(duplicatedNames, (pkgOrGlob) => `fixed: Invalid group: The package or glob "${pkgOrGlob}" is defined in multiple groups of fixed packages. Packages can only be belong to a single group. ${picomatchNote}`));
98652
+ for (const fixedGroup of config.fixed) for (const name of fixedGroup) {
98653
+ if (foundNames.has(name)) duplicatedNames.add(name);
98654
+ foundNames.add(name);
98658
98655
  }
98656
+ errors.push(...Array.from(duplicatedNames, (pkgOrGlob) => `fixed: Invalid group: The package or glob "${pkgOrGlob}" is defined in multiple groups of fixed packages. Packages can only be belong to a single group. ${picomatchNote}`));
98659
98657
  };
98660
98658
  const linkedGroupsExist = ({ config, writtenConfig, packageNames, warnings }) => {
98661
98659
  if (config.linked.length === 0) return;
@@ -98665,13 +98663,11 @@ const noDuplicateLinkedPackages = ({ config, errors }) => {
98665
98663
  if (config.linked.length === 0) return;
98666
98664
  const foundNames = /* @__PURE__ */ new Set();
98667
98665
  const duplicatedNames = /* @__PURE__ */ new Set();
98668
- for (const linkedGroup of config.linked) {
98669
- for (const name of linkedGroup) {
98670
- if (foundNames.has(name)) duplicatedNames.add(name);
98671
- foundNames.add(name);
98672
- }
98673
- errors.push(...Array.from(duplicatedNames, (pkgOrGlob) => `linked: Invalid group: The package or glob "${pkgOrGlob}" is defined in multiple groups of linked packages. Packages can only be belong to a single group. ${picomatchNote}`));
98666
+ for (const linkedGroup of config.linked) for (const name of linkedGroup) {
98667
+ if (foundNames.has(name)) duplicatedNames.add(name);
98668
+ foundNames.add(name);
98674
98669
  }
98670
+ errors.push(...Array.from(duplicatedNames, (pkgOrGlob) => `linked: Invalid group: The package or glob "${pkgOrGlob}" is defined in multiple groups of linked packages. Packages can only be belong to a single group. ${picomatchNote}`));
98675
98671
  };
98676
98672
  const noFixedAndLinkedPackages = ({ config, errors }) => {
98677
98673
  if (config.fixed.length === 0 || config.linked.length === 0) return;
@@ -98768,7 +98764,7 @@ async function readConfig(cwd, packages) {
98768
98764
  packages ??= await getPackages(cwd);
98769
98765
  return validateConfig(JSON.parse(await node_fs_promises.readFile(node_path.join(packages.rootDir, ".changeset", "config.json"), "utf8")), packages);
98770
98766
  }
98771
- var version = "4.0.0";
98767
+ var version = "4.0.1";
98772
98768
  const defaultConfig = normalizeWrittenConfig({
98773
98769
  packageNames: [],
98774
98770
  writtenConfig: parse(WrittenConfigSchema, {
@@ -102218,7 +102214,7 @@ function applyEdits(text, edits) {
102218
102214
  return text;
102219
102215
  }
102220
102216
  //#endregion
102221
- //#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.1.0/node_modules/@changesets/apply-release-plan/dist/index.mjs
102217
+ //#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.1.1/node_modules/@changesets/apply-release-plan/dist/index.mjs
102222
102218
  /**
102223
102219
  * A simple JSON editing utility that preserves formatting. They specified operation keys
102224
102220
  * must exist in the JSON for this implementation.
@@ -102362,8 +102358,8 @@ function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateI
102362
102358
  for (const depType of DEPENDENCY_TYPES) {
102363
102359
  const deps = packageJson[depType];
102364
102360
  if (deps) for (const release of versionsToUpdate) {
102365
- if (release.newVersion == null) continue;
102366
- const { name, newVersion } = release;
102361
+ const { name, newVersion, type } = release;
102362
+ if (newVersion == null || type === "none") continue;
102367
102363
  let depCurrentVersion = deps[name];
102368
102364
  if (!depCurrentVersion || depCurrentVersion.startsWith("file:") || depCurrentVersion.startsWith("link:") || !shouldUpdateDependencyBasedOnConfig(cwd, release, {
102369
102365
  depVersionRange: depCurrentVersion,
@@ -102380,7 +102376,7 @@ function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateI
102380
102376
  depCurrentVersion = workspaceDepVersion;
102381
102377
  }
102382
102378
  if (new semver_classes_range_js.default(depCurrentVersion).range !== "" || (0, semver_functions_prerelease_js.default)(newVersion) != null) {
102383
- let newNewRange = snapshot ? newVersion : `${getVersionRangeType(depCurrentVersion)}${newVersion}`;
102379
+ let newNewRange = snapshot ? newVersion : getNewDependencyRange(depCurrentVersion, newVersion, type);
102384
102380
  if (usesWorkspaceRange) newNewRange = `workspace:${newNewRange}`;
102385
102381
  pkgJsonEdits.push({
102386
102382
  keys: [depType, name],
@@ -102391,6 +102387,20 @@ function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateI
102391
102387
  }
102392
102388
  return pkgJsonEdits;
102393
102389
  }
102390
+ function getNewDependencyRange(versionRange, newVersion, releaseType) {
102391
+ const comparatorSets = new semver_classes_range_js.default(versionRange).set;
102392
+ const comparators = comparatorSets.length === 1 ? comparatorSets[0] : [];
102393
+ if (comparators.length === 2 && versionRange.includes(">") && versionRange.includes("<")) {
102394
+ const lowerBound = comparators.find(({ operator }) => operator.startsWith(">"));
102395
+ const upperBound = comparators.find(({ operator }) => operator.startsWith("<"));
102396
+ if (lowerBound && upperBound) {
102397
+ let newUpperBound = upperBound.value;
102398
+ if (!(0, semver_functions_satisfies_js.default)(newVersion, newUpperBound)) newUpperBound = `<${(0, semver_functions_inc_js.default)(newVersion, releaseType)}`;
102399
+ return comparators[0] === lowerBound ? `>=${newVersion} ${newUpperBound}` : `${newUpperBound} >=${newVersion}`;
102400
+ }
102401
+ }
102402
+ return `${getVersionRangeType(versionRange)}${newVersion}`;
102403
+ }
102394
102404
  function getVersionRangeType(versionRange) {
102395
102405
  if (versionRange.charAt(0) === "^") return "^";
102396
102406
  if (versionRange.charAt(0) === "~") return "~";
@@ -102488,16 +102498,18 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
102488
102498
  if (!changeset.releases.some((release) => shouldSkipPackage(packagesByName.get(release.name), {
102489
102499
  ignore: config.ignore,
102490
102500
  allowPrivatePackages: config.privatePackages.version
102491
- }))) if (isPreChangesets) {
102492
- const newChangesetPath = node_path.resolve(cwd, ".changeset", "pre", `${changeset.id}.md`);
102493
- await node_fs_promises.rename(changesetPath, newChangesetPath);
102494
- touchedFiles.push(changesetPath, newChangesetPath);
102495
- } else {
102496
- await node_fs_promises.rm(changesetPath, {
102497
- recursive: true,
102498
- force: true
102499
- });
102500
- touchedFiles.push(changesetPath);
102501
+ }))) {
102502
+ if (isPreChangesets) {
102503
+ const newChangesetPath = node_path.resolve(cwd, ".changeset", "pre", `${changeset.id}.md`);
102504
+ await node_fs_promises.rename(changesetPath, newChangesetPath);
102505
+ touchedFiles.push(changesetPath, newChangesetPath);
102506
+ } else {
102507
+ await node_fs_promises.rm(changesetPath, {
102508
+ recursive: true,
102509
+ force: true
102510
+ });
102511
+ touchedFiles.push(changesetPath);
102512
+ }
102501
102513
  }
102502
102514
  }
102503
102515
  }));
@@ -102562,10 +102574,13 @@ async function updateChangelog(changelogPath, changelog, name) {
102562
102574
  await node_fs_promises.writeFile(changelogPath, completelyNewChangelog);
102563
102575
  return;
102564
102576
  }
102565
- const isVersionHeading = /^#{1,6}\s+\d+\.\d+/.test(fileData);
102577
+ const firstVersionHeaderIndex = fileData.search(/^#{1,6}\s+\d+\.\d+/m);
102566
102578
  let newChangelog;
102567
- if (isVersionHeading) newChangelog = templateString.trimStart() + fileData;
102568
- else {
102579
+ if (firstVersionHeaderIndex >= 0) {
102580
+ const prefix = fileData.slice(0, firstVersionHeaderIndex);
102581
+ const suffix = fileData.slice(firstVersionHeaderIndex);
102582
+ newChangelog = prefix + templateString.trimStart() + "\n" + suffix;
102583
+ } else {
102569
102584
  const index = fileData.indexOf("\n");
102570
102585
  newChangelog = index === -1 ? fileData + templateString : fileData.slice(0, index) + templateString + fileData.slice(index + 1);
102571
102586
  }
@@ -103047,7 +103062,7 @@ async function readChangesets(rootDir, sinceRef) {
103047
103062
  return await Promise.all(changesetContents);
103048
103063
  }
103049
103064
  //#endregion
103050
- //#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.1/node_modules/@changesets/get-release-plan/dist/index.mjs
103065
+ //#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.2/node_modules/@changesets/get-release-plan/dist/index.mjs
103051
103066
  async function getReleasePlan(cwd, sinceRef, passedConfig) {
103052
103067
  const packages = await getPackages(cwd);
103053
103068
  const configResult = await readConfig(packages.rootDir, packages);
package/index.js CHANGED
@@ -25,10 +25,10 @@ import * as assert from "node:assert";
25
25
  import * as v8 from "node:v8";
26
26
  import validRange from "semver/ranges/valid.js";
27
27
  import semverSatisfies from "semver/functions/satisfies.js";
28
+ import semverInc from "semver/functions/inc.js";
28
29
  import semverPrerelease from "semver/functions/prerelease.js";
29
30
  import semverParse from "semver/functions/parse.js";
30
31
  import semverGt from "semver/functions/gt.js";
31
- import semverInc from "semver/functions/inc.js";
32
32
 
33
33
  //#region \0rolldown/runtime.js
34
34
  var __create = Object.create;
@@ -101608,7 +101608,7 @@ function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
101608
101608
  }
101609
101609
 
101610
101610
  //#endregion
101611
- //#region ../../node_modules/.pnpm/@changesets+config@4.0.0/node_modules/@changesets/config/dist/index.mjs
101611
+ //#region ../../node_modules/.pnpm/@changesets+config@4.0.1/node_modules/@changesets/config/dist/index.mjs
101612
101612
  const DEFAULT_CONFIG = {
101613
101613
  lang: void 0,
101614
101614
  message: void 0,
@@ -102403,13 +102403,11 @@ const noDuplicateFixedPackages = ({ config, errors }) => {
102403
102403
  if (config.fixed.length === 0) return;
102404
102404
  const foundNames = /* @__PURE__ */ new Set();
102405
102405
  const duplicatedNames = /* @__PURE__ */ new Set();
102406
- for (const fixedGroup of config.fixed) {
102407
- for (const name of fixedGroup) {
102408
- if (foundNames.has(name)) duplicatedNames.add(name);
102409
- foundNames.add(name);
102410
- }
102411
- errors.push(...Array.from(duplicatedNames, (pkgOrGlob) => `fixed: Invalid group: The package or glob "${pkgOrGlob}" is defined in multiple groups of fixed packages. Packages can only be belong to a single group. ${picomatchNote}`));
102406
+ for (const fixedGroup of config.fixed) for (const name of fixedGroup) {
102407
+ if (foundNames.has(name)) duplicatedNames.add(name);
102408
+ foundNames.add(name);
102412
102409
  }
102410
+ errors.push(...Array.from(duplicatedNames, (pkgOrGlob) => `fixed: Invalid group: The package or glob "${pkgOrGlob}" is defined in multiple groups of fixed packages. Packages can only be belong to a single group. ${picomatchNote}`));
102413
102411
  };
102414
102412
  const linkedGroupsExist = ({ config, writtenConfig, packageNames, warnings }) => {
102415
102413
  if (config.linked.length === 0) return;
@@ -102419,13 +102417,11 @@ const noDuplicateLinkedPackages = ({ config, errors }) => {
102419
102417
  if (config.linked.length === 0) return;
102420
102418
  const foundNames = /* @__PURE__ */ new Set();
102421
102419
  const duplicatedNames = /* @__PURE__ */ new Set();
102422
- for (const linkedGroup of config.linked) {
102423
- for (const name of linkedGroup) {
102424
- if (foundNames.has(name)) duplicatedNames.add(name);
102425
- foundNames.add(name);
102426
- }
102427
- errors.push(...Array.from(duplicatedNames, (pkgOrGlob) => `linked: Invalid group: The package or glob "${pkgOrGlob}" is defined in multiple groups of linked packages. Packages can only be belong to a single group. ${picomatchNote}`));
102420
+ for (const linkedGroup of config.linked) for (const name of linkedGroup) {
102421
+ if (foundNames.has(name)) duplicatedNames.add(name);
102422
+ foundNames.add(name);
102428
102423
  }
102424
+ errors.push(...Array.from(duplicatedNames, (pkgOrGlob) => `linked: Invalid group: The package or glob "${pkgOrGlob}" is defined in multiple groups of linked packages. Packages can only be belong to a single group. ${picomatchNote}`));
102429
102425
  };
102430
102426
  const noFixedAndLinkedPackages = ({ config, errors }) => {
102431
102427
  if (config.fixed.length === 0 || config.linked.length === 0) return;
@@ -102522,7 +102518,7 @@ async function readConfig(cwd, packages) {
102522
102518
  packages ??= await getPackages(cwd);
102523
102519
  return validateConfig(JSON.parse(await fs$1.readFile(path$1.join(packages.rootDir, ".changeset", "config.json"), "utf8")), packages);
102524
102520
  }
102525
- var version = "4.0.0";
102521
+ var version = "4.0.1";
102526
102522
  const defaultWrittenConfig = {
102527
102523
  ["$schema"]: `https://unpkg.com/@changesets/config@${version}/schema.json`,
102528
102524
  baseBranch: "main",
@@ -106005,7 +106001,7 @@ function applyEdits(text, edits) {
106005
106001
  }
106006
106002
 
106007
106003
  //#endregion
106008
- //#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.1.0/node_modules/@changesets/apply-release-plan/dist/index.mjs
106004
+ //#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.1.1/node_modules/@changesets/apply-release-plan/dist/index.mjs
106009
106005
  /**
106010
106006
  * A simple JSON editing utility that preserves formatting. They specified operation keys
106011
106007
  * must exist in the JSON for this implementation.
@@ -106022,7 +106018,7 @@ function editJson(json, operations) {
106022
106018
  const error = errors[0];
106023
106019
  throw new Error(`Failed to parse JSON at offset ${error.offset}: ${printParseErrorCode(error.error)}`);
106024
106020
  }
106025
- return applyEdits(json, operations.map((op) => {
106021
+ const edits = operations.map((op) => {
106026
106022
  const valueNode = getValueNode(parsed, op.keys);
106027
106023
  if (!valueNode) throw new Error(`Key path "${op.keys.join(".")}" not found in JSON`);
106028
106024
  return {
@@ -106030,7 +106026,8 @@ function editJson(json, operations) {
106030
106026
  offset: valueNode.offset,
106031
106027
  length: valueNode.length
106032
106028
  };
106033
- }));
106029
+ });
106030
+ return applyEdits(json, edits);
106034
106031
  }
106035
106032
  function getValueNode(root, keys) {
106036
106033
  let node = root;
@@ -106149,8 +106146,8 @@ function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateI
106149
106146
  for (const depType of DEPENDENCY_TYPES) {
106150
106147
  const deps = packageJson[depType];
106151
106148
  if (deps) for (const release of versionsToUpdate) {
106152
- if (release.newVersion == null) continue;
106153
- const { name, newVersion } = release;
106149
+ const { name, newVersion, type } = release;
106150
+ if (newVersion == null || type === "none") continue;
106154
106151
  let depCurrentVersion = deps[name];
106155
106152
  if (!depCurrentVersion || depCurrentVersion.startsWith("file:") || depCurrentVersion.startsWith("link:") || !shouldUpdateDependencyBasedOnConfig(cwd, release, {
106156
106153
  depVersionRange: depCurrentVersion,
@@ -106167,7 +106164,7 @@ function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateI
106167
106164
  depCurrentVersion = workspaceDepVersion;
106168
106165
  }
106169
106166
  if (new Range(depCurrentVersion).range !== "" || semverPrerelease(newVersion) != null) {
106170
- let newNewRange = snapshot ? newVersion : `${getVersionRangeType(depCurrentVersion)}${newVersion}`;
106167
+ let newNewRange = snapshot ? newVersion : getNewDependencyRange(depCurrentVersion, newVersion, type);
106171
106168
  if (usesWorkspaceRange) newNewRange = `workspace:${newNewRange}`;
106172
106169
  pkgJsonEdits.push({
106173
106170
  keys: [depType, name],
@@ -106178,6 +106175,20 @@ function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateI
106178
106175
  }
106179
106176
  return pkgJsonEdits;
106180
106177
  }
106178
+ function getNewDependencyRange(versionRange, newVersion, releaseType) {
106179
+ const comparatorSets = new Range(versionRange).set;
106180
+ const comparators = comparatorSets.length === 1 ? comparatorSets[0] : [];
106181
+ if (comparators.length === 2 && versionRange.includes(">") && versionRange.includes("<")) {
106182
+ const lowerBound = comparators.find(({ operator }) => operator.startsWith(">"));
106183
+ const upperBound = comparators.find(({ operator }) => operator.startsWith("<"));
106184
+ if (lowerBound && upperBound) {
106185
+ let newUpperBound = upperBound.value;
106186
+ if (!semverSatisfies(newVersion, newUpperBound)) newUpperBound = `<${semverInc(newVersion, releaseType)}`;
106187
+ return comparators[0] === lowerBound ? `>=${newVersion} ${newUpperBound}` : `${newUpperBound} >=${newVersion}`;
106188
+ }
106189
+ }
106190
+ return `${getVersionRangeType(versionRange)}${newVersion}`;
106191
+ }
106181
106192
  function getVersionRangeType(versionRange) {
106182
106193
  if (versionRange.charAt(0) === "^") return "^";
106183
106194
  if (versionRange.charAt(0) === "~") return "~";
@@ -106276,16 +106287,18 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
106276
106287
  if (!changeset.releases.some((release) => shouldSkipPackage(packagesByName.get(release.name), {
106277
106288
  ignore: config.ignore,
106278
106289
  allowPrivatePackages: config.privatePackages.version
106279
- }))) if (isPreChangesets) {
106280
- const newChangesetPath = path$1.resolve(cwd, ".changeset", "pre", `${changeset.id}.md`);
106281
- await fs$1.rename(changesetPath, newChangesetPath);
106282
- touchedFiles.push(changesetPath, newChangesetPath);
106283
- } else {
106284
- await fs$1.rm(changesetPath, {
106285
- recursive: true,
106286
- force: true
106287
- });
106288
- touchedFiles.push(changesetPath);
106290
+ }))) {
106291
+ if (isPreChangesets) {
106292
+ const newChangesetPath = path$1.resolve(cwd, ".changeset", "pre", `${changeset.id}.md`);
106293
+ await fs$1.rename(changesetPath, newChangesetPath);
106294
+ touchedFiles.push(changesetPath, newChangesetPath);
106295
+ } else {
106296
+ await fs$1.rm(changesetPath, {
106297
+ recursive: true,
106298
+ force: true
106299
+ });
106300
+ touchedFiles.push(changesetPath);
106301
+ }
106289
106302
  }
106290
106303
  }
106291
106304
  }));
@@ -106350,10 +106363,13 @@ async function updateChangelog(changelogPath, changelog, name) {
106350
106363
  await fs$1.writeFile(changelogPath, completelyNewChangelog);
106351
106364
  return;
106352
106365
  }
106353
- const isVersionHeading = /^#{1,6}\s+\d+\.\d+/.test(fileData);
106366
+ const firstVersionHeaderIndex = fileData.search(/^#{1,6}\s+\d+\.\d+/m);
106354
106367
  let newChangelog;
106355
- if (isVersionHeading) newChangelog = templateString.trimStart() + fileData;
106356
- else {
106368
+ if (firstVersionHeaderIndex >= 0) {
106369
+ const prefix = fileData.slice(0, firstVersionHeaderIndex);
106370
+ const suffix = fileData.slice(firstVersionHeaderIndex);
106371
+ newChangelog = prefix + templateString.trimStart() + "\n" + suffix;
106372
+ } else {
106357
106373
  const index = fileData.indexOf("\n");
106358
106374
  newChangelog = index === -1 ? fileData + templateString : fileData.slice(0, index) + templateString + fileData.slice(index + 1);
106359
106375
  }
@@ -106840,7 +106856,7 @@ async function readChangesets(rootDir, sinceRef) {
106840
106856
  }
106841
106857
 
106842
106858
  //#endregion
106843
- //#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.1/node_modules/@changesets/get-release-plan/dist/index.mjs
106859
+ //#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.2/node_modules/@changesets/get-release-plan/dist/index.mjs
106844
106860
  async function getReleasePlan(cwd, sinceRef, passedConfig) {
106845
106861
  const packages = await getPackages(cwd);
106846
106862
  const configResult = await readConfig(packages.rootDir, packages);
@@ -106849,7 +106865,9 @@ async function getReleasePlan(cwd, sinceRef, passedConfig) {
106849
106865
  ...configResult.config,
106850
106866
  ...passedConfig
106851
106867
  } : configResult.config;
106852
- return assembleReleasePlan(await readChangesets(packages.rootDir, sinceRef), packages, config, await readPreState(packages.rootDir));
106868
+ const changesets = await readChangesets(packages.rootDir, sinceRef);
106869
+ const preState = await readPreState(packages.rootDir);
106870
+ return assembleReleasePlan(changesets, packages, config, preState);
106853
106871
  }
106854
106872
 
106855
106873
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvy-web/changelog",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "description": "The Silk Suite changesets changelog generator as a standalone package",
6
6
  "homepage": "https://github.com/savvy-web/systems/tree/main/packages/changelog",