@savvy-web/silk 3.3.2 → 3.4.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/changesets-changelog.cjs +180 -120
- package/changesets-changelog.d.cts +46 -10
- package/changesets-changelog.d.ts +46 -10
- package/changesets-changelog.js +195 -121
- package/changesets-markdownlint.cjs +180 -120
- package/changesets-markdownlint.d.cts +46 -10
- package/changesets-markdownlint.d.ts +46 -10
- package/changesets-markdownlint.js +195 -121
- package/package.json +4 -4
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
package/changesets-changelog.cjs
CHANGED
|
@@ -2334,7 +2334,7 @@ var GlobSet = class GlobSet extends effect.Schema.Class("GlobSet")(effect.Schema
|
|
|
2334
2334
|
}
|
|
2335
2335
|
};
|
|
2336
2336
|
//#endregion
|
|
2337
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
2337
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/BunExtension.js
|
|
2338
2338
|
/**
|
|
2339
2339
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2340
2340
|
* when the format is `"bun"`.
|
|
@@ -2355,7 +2355,7 @@ var BunExtension = class extends effect.Schema.Class("BunExtension")({
|
|
|
2355
2355
|
trustedDependencies: effect.Schema.optionalKey(effect.Schema.Array(effect.Schema.String))
|
|
2356
2356
|
}) {};
|
|
2357
2357
|
//#endregion
|
|
2358
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2358
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.8.2_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/CatalogResolver.js
|
|
2359
2359
|
/**
|
|
2360
2360
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2361
2361
|
* version ranges.
|
|
@@ -2401,7 +2401,7 @@ var CatalogResolver = class CatalogResolver extends effect.Context.Service()("@e
|
|
|
2401
2401
|
static noop = effect.Layer.succeed(CatalogResolver, { rangeOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2402
2402
|
};
|
|
2403
2403
|
//#endregion
|
|
2404
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2404
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.8.2_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/WorkspaceResolver.js
|
|
2405
2405
|
/**
|
|
2406
2406
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2407
2407
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2462,7 +2462,7 @@ var WorkspaceResolver = class WorkspaceResolver extends effect.Context.Service()
|
|
|
2462
2462
|
static noop = effect.Layer.succeed(WorkspaceResolver, { versionOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2463
2463
|
};
|
|
2464
2464
|
//#endregion
|
|
2465
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2465
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.8.2_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/CatalogAssemblyError.js
|
|
2466
2466
|
/**
|
|
2467
2467
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2468
2468
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2506,7 +2506,7 @@ var CatalogAssemblyError = class extends effect.Schema.TaggedErrorClass()("Catal
|
|
|
2506
2506
|
}
|
|
2507
2507
|
};
|
|
2508
2508
|
//#endregion
|
|
2509
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2509
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.8.2_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/DependencySection.js
|
|
2510
2510
|
/**
|
|
2511
2511
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2512
2512
|
* way consumers branch on it.
|
|
@@ -2538,7 +2538,7 @@ Object.fromEntries(Object.entries({
|
|
|
2538
2538
|
optional: "optionalDependencies"
|
|
2539
2539
|
}).map(([kind, field]) => [field, kind]));
|
|
2540
2540
|
//#endregion
|
|
2541
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
2541
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/desugar.js
|
|
2542
2542
|
const sv = (major, minor, patch, prerelease = [], build = []) => ({
|
|
2543
2543
|
major,
|
|
2544
2544
|
minor,
|
|
@@ -2627,7 +2627,7 @@ const desugarHyphen = (lower, upper) => {
|
|
|
2627
2627
|
return [comp(">=", lowerVersion)];
|
|
2628
2628
|
};
|
|
2629
2629
|
//#endregion
|
|
2630
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
2630
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/grammar.js
|
|
2631
2631
|
/** Private control-flow exception; never escapes the entry points. */
|
|
2632
2632
|
var ParseFailure = class {
|
|
2633
2633
|
position;
|
|
@@ -3027,7 +3027,7 @@ const formatComparator = (c) => {
|
|
|
3027
3027
|
/** Print comparator sets as `a b || c d`. */
|
|
3028
3028
|
const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
|
|
3029
3029
|
//#endregion
|
|
3030
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3030
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/order.js
|
|
3031
3031
|
/**
|
|
3032
3032
|
* Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
|
|
3033
3033
|
* identifiers always have lower precedence than alphanumeric ones; numerics
|
|
@@ -3080,7 +3080,7 @@ const compareBuild = (a, b) => {
|
|
|
3080
3080
|
return 0;
|
|
3081
3081
|
};
|
|
3082
3082
|
//#endregion
|
|
3083
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3083
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/SemVer.js
|
|
3084
3084
|
/**
|
|
3085
3085
|
* Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
|
|
3086
3086
|
*
|
|
@@ -3591,7 +3591,7 @@ var SemVerBump = class {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
};
|
|
3593
3593
|
//#endregion
|
|
3594
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3594
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/Comparator.js
|
|
3595
3595
|
/**
|
|
3596
3596
|
* Indicates that a string could not be parsed as a single comparator.
|
|
3597
3597
|
*
|
|
@@ -3725,7 +3725,7 @@ var Comparator = class Comparator extends effect.Schema.Class("Comparator")({
|
|
|
3725
3725
|
}
|
|
3726
3726
|
};
|
|
3727
3727
|
//#endregion
|
|
3728
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3728
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/normalize.js
|
|
3729
3729
|
const operatorWeight = (op) => {
|
|
3730
3730
|
switch (op) {
|
|
3731
3731
|
case ">=": return 0;
|
|
@@ -3756,7 +3756,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
|
|
|
3756
3756
|
/** Normalize every comparator set in a range: sort and deduplicate each independently. */
|
|
3757
3757
|
const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
3758
3758
|
//#endregion
|
|
3759
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3759
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/Range.js
|
|
3760
3760
|
/**
|
|
3761
3761
|
* Indicates that a string could not be parsed as a range expression.
|
|
3762
3762
|
*
|
|
@@ -3864,17 +3864,54 @@ sets: effect.Schema.Array(effect.Schema.Array(Comparator)) }) {
|
|
|
3864
3864
|
/**
|
|
3865
3865
|
* Test whether a version satisfies a range; see {@link Range.test} for the
|
|
3866
3866
|
* prerelease matching rule. Dual API.
|
|
3867
|
+
*
|
|
3868
|
+
* @remarks
|
|
3869
|
+
* **Data-first order is `(version, range)`** — the version being tested
|
|
3870
|
+
* comes first, the range it is tested against second. The data-last form
|
|
3871
|
+
* takes the range: `Range.satisfies(range)` applied to a version.
|
|
3872
|
+
*
|
|
3873
|
+
* Worth stating because the two parameters are distinct classes and the
|
|
3874
|
+
* order is not recoverable from the call site. TypeScript rejects a flipped
|
|
3875
|
+
* call outright, so this only bites callers without type checking — which
|
|
3876
|
+
* includes the untyped `node --input-type=module` probes this repo's own
|
|
3877
|
+
* evidence ladder calls for. There, `Range.satisfies(range, version)`
|
|
3878
|
+
* dispatches data-first, binds the `Range` to `version`, and dies with
|
|
3879
|
+
* `TypeError: range.test is not a function` — a message naming the
|
|
3880
|
+
* parameter that received the *version*, so it reads as a defect inside
|
|
3881
|
+
* this package rather than a caller error.
|
|
3882
|
+
*
|
|
3883
|
+
* The same order and the same hazard apply to `Range.filter`,
|
|
3884
|
+
* {@link Range.maxSatisfying} and {@link Range.minSatisfying}: subject
|
|
3885
|
+
* first, range second.
|
|
3867
3886
|
*/
|
|
3868
3887
|
static satisfies = effect.Function.dual(2, (version, range) => range.test(version));
|
|
3869
|
-
/**
|
|
3888
|
+
/**
|
|
3889
|
+
* Filter versions that satisfy a range, preserving order. Dual API.
|
|
3890
|
+
*
|
|
3891
|
+
* @remarks
|
|
3892
|
+
* Data-first order is `(versions, range)` — see {@link Range.satisfies}
|
|
3893
|
+
* for why the order is spelled out.
|
|
3894
|
+
*/
|
|
3870
3895
|
static filter = effect.Function.dual(2, (versions, range) => range.filter(versions));
|
|
3871
|
-
/**
|
|
3896
|
+
/**
|
|
3897
|
+
* Highest satisfying version, or `Option.none()`. Dual API.
|
|
3898
|
+
*
|
|
3899
|
+
* @remarks
|
|
3900
|
+
* Data-first order is `(versions, range)` — see {@link Range.satisfies}
|
|
3901
|
+
* for why the order is spelled out.
|
|
3902
|
+
*/
|
|
3872
3903
|
static maxSatisfying = effect.Function.dual(2, (versions, range) => {
|
|
3873
3904
|
let best;
|
|
3874
3905
|
for (const v of versions) if (range.test(v) && (best === void 0 || v.gt(best))) best = v;
|
|
3875
3906
|
return best === void 0 ? effect.Option.none() : effect.Option.some(best);
|
|
3876
3907
|
});
|
|
3877
|
-
/**
|
|
3908
|
+
/**
|
|
3909
|
+
* Lowest satisfying version, or `Option.none()`. Dual API.
|
|
3910
|
+
*
|
|
3911
|
+
* @remarks
|
|
3912
|
+
* Data-first order is `(versions, range)` — see {@link Range.satisfies}
|
|
3913
|
+
* for why the order is spelled out.
|
|
3914
|
+
*/
|
|
3878
3915
|
static minSatisfying = effect.Function.dual(2, (versions, range) => {
|
|
3879
3916
|
let best;
|
|
3880
3917
|
for (const v of versions) if (range.test(v) && (best === void 0 || v.lt(best))) best = v;
|
|
@@ -4084,7 +4121,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4084
4121
|
return true;
|
|
4085
4122
|
};
|
|
4086
4123
|
//#endregion
|
|
4087
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
4124
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.8.2_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/DependencySpecifier.js
|
|
4088
4125
|
/**
|
|
4089
4126
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
4090
4127
|
*
|
|
@@ -4291,7 +4328,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4291
4328
|
FromString: fromString
|
|
4292
4329
|
});
|
|
4293
4330
|
//#endregion
|
|
4294
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
4331
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.8.2_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/IntegrityHash.js
|
|
4295
4332
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4296
4333
|
const COREPACK_RE = /^(sha1|sha224|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4297
4334
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4590,7 +4627,7 @@ var LocalExec = class LocalExec extends effect.Context.Service()("@effected/comm
|
|
|
4590
4627
|
static layerTest = (overrides = {}) => effect.Layer.succeed(LocalExec, LocalExec.makeTest(overrides));
|
|
4591
4628
|
};
|
|
4592
4629
|
//#endregion
|
|
4593
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
4630
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.8.2_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/ReleaseAgeGate.js
|
|
4594
4631
|
const MS_PER_MINUTE = 6e4;
|
|
4595
4632
|
/**
|
|
4596
4633
|
* A source's partial contribution to a {@link ReleaseAgeGate}: the effective
|
|
@@ -4760,7 +4797,7 @@ var ReleaseAgeGate = class ReleaseAgeGate extends effect.Schema.Class("ReleaseAg
|
|
|
4760
4797
|
}
|
|
4761
4798
|
};
|
|
4762
4799
|
//#endregion
|
|
4763
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4800
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/ImporterDependency.js
|
|
4764
4801
|
/**
|
|
4765
4802
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
4766
4803
|
*
|
|
@@ -4798,7 +4835,7 @@ var ImporterDependency = class extends effect.Schema.Class("ImporterDependency")
|
|
|
4798
4835
|
depType: DependencyField
|
|
4799
4836
|
}) {};
|
|
4800
4837
|
//#endregion
|
|
4801
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4838
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/LockfileImporter.js
|
|
4802
4839
|
/**
|
|
4803
4840
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
4804
4841
|
*
|
|
@@ -4822,7 +4859,7 @@ var LockfileImporter = class extends effect.Schema.Class("LockfileImporter")({
|
|
|
4822
4859
|
dependencies: effect.Schema.Array(ImporterDependency)
|
|
4823
4860
|
}) {};
|
|
4824
4861
|
//#endregion
|
|
4825
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4862
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/ResolvedPackage.js
|
|
4826
4863
|
const EMPTY_DEPENDENCIES = {};
|
|
4827
4864
|
/**
|
|
4828
4865
|
* A package resolved from a lockfile.
|
|
@@ -4857,7 +4894,7 @@ var ResolvedPackage = class extends effect.Schema.Class("ResolvedPackage")({
|
|
|
4857
4894
|
dependencies: effect.Schema.Record(effect.Schema.String, effect.Schema.String).pipe(effect.Schema.withDecodingDefaultKey(effect.Effect.succeed(EMPTY_DEPENDENCIES)), effect.Schema.withConstructorDefault(effect.Effect.succeed(EMPTY_DEPENDENCIES)))
|
|
4858
4895
|
}) {};
|
|
4859
4896
|
//#endregion
|
|
4860
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4897
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/WorkspaceDependency.js
|
|
4861
4898
|
/**
|
|
4862
4899
|
* A directed dependency edge between two workspace packages as recorded in
|
|
4863
4900
|
* the lockfile.
|
|
@@ -4879,7 +4916,7 @@ var WorkspaceDependency = class extends effect.Schema.Class("WorkspaceDependency
|
|
|
4879
4916
|
constraint: effect.Schema.String
|
|
4880
4917
|
}) {};
|
|
4881
4918
|
//#endregion
|
|
4882
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4919
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/PnpmExtension.js
|
|
4883
4920
|
/**
|
|
4884
4921
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
4885
4922
|
* when the format is `"pnpm"`.
|
|
@@ -4904,7 +4941,7 @@ var PnpmExtension = class extends effect.Schema.Class("PnpmExtension")({
|
|
|
4904
4941
|
}))
|
|
4905
4942
|
}) {};
|
|
4906
4943
|
//#endregion
|
|
4907
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4944
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/LockfileFormat.js
|
|
4908
4945
|
/**
|
|
4909
4946
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
4910
4947
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -4942,7 +4979,7 @@ const FILENAMES = {
|
|
|
4942
4979
|
*/
|
|
4943
4980
|
const filenameFor = (format) => FILENAMES[format][0];
|
|
4944
4981
|
//#endregion
|
|
4945
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4982
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/internal/shared.js
|
|
4946
4983
|
/**
|
|
4947
4984
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
4948
4985
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -6871,7 +6908,7 @@ var JsoncModifier = class {
|
|
|
6871
6908
|
});
|
|
6872
6909
|
};
|
|
6873
6910
|
//#endregion
|
|
6874
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
6911
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/internal/bun.js
|
|
6875
6912
|
const DepRecord$2 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
6876
6913
|
const BunWorkspaceEntry = effect.Schema.Struct({
|
|
6877
6914
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -6964,7 +7001,7 @@ const toFields$3 = (raw) => effect.Effect.gen(function* () {
|
|
|
6964
7001
|
};
|
|
6965
7002
|
});
|
|
6966
7003
|
//#endregion
|
|
6967
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
7004
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/internal/npm.js
|
|
6968
7005
|
const DepRecord$1 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
6969
7006
|
const NpmPackageEntry = effect.Schema.Struct({
|
|
6970
7007
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -13886,7 +13923,7 @@ function deepEqualValues(a, b) {
|
|
|
13886
13923
|
return false;
|
|
13887
13924
|
}
|
|
13888
13925
|
//#endregion
|
|
13889
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
13926
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/internal/documents.js
|
|
13890
13927
|
/**
|
|
13891
13928
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
13892
13929
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -13956,7 +13993,7 @@ const selectSoleDocument = (content) => effect.Effect.gen(function* () {
|
|
|
13956
13993
|
};
|
|
13957
13994
|
});
|
|
13958
13995
|
//#endregion
|
|
13959
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
13996
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/internal/pnpm.js
|
|
13960
13997
|
const PnpmImporterDeps = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.Struct({
|
|
13961
13998
|
specifier: effect.Schema.String,
|
|
13962
13999
|
version: effect.Schema.String
|
|
@@ -14081,7 +14118,7 @@ const toFields$1 = (raw) => effect.Effect.gen(function* () {
|
|
|
14081
14118
|
};
|
|
14082
14119
|
});
|
|
14083
14120
|
//#endregion
|
|
14084
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14121
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/internal/yarn.js
|
|
14085
14122
|
const YarnLockfileRaw = effect.Schema.Record(effect.Schema.String, effect.Schema.Unknown);
|
|
14086
14123
|
const DepRecord = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
14087
14124
|
const YarnEntry = effect.Schema.Struct({
|
|
@@ -14204,7 +14241,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
14204
14241
|
return Object.fromEntries(Object.entries(deps).map(([name, value]) => [name, value.startsWith("npm:") ? value.slice(4) : value]));
|
|
14205
14242
|
};
|
|
14206
14243
|
//#endregion
|
|
14207
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14244
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/Lockfile.js
|
|
14208
14245
|
const EMPTY_IMPORTERS = [];
|
|
14209
14246
|
/**
|
|
14210
14247
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -14448,7 +14485,7 @@ var Lockfile = class Lockfile extends effect.Schema.Class("Lockfile")({
|
|
|
14448
14485
|
}
|
|
14449
14486
|
};
|
|
14450
14487
|
//#endregion
|
|
14451
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14488
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._ff048038a9678f5144f817ad24d8f96e/node_modules/@effected/lockfiles/LockfileIntegrity.js
|
|
14452
14489
|
/**
|
|
14453
14490
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
14454
14491
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -14564,7 +14601,7 @@ var LockfileIntegrity = class LockfileIntegrity extends effect.Schema.Class("Loc
|
|
|
14564
14601
|
}
|
|
14565
14602
|
};
|
|
14566
14603
|
//#endregion
|
|
14567
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
14604
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Dependency.js
|
|
14568
14605
|
/**
|
|
14569
14606
|
* A resolved dependency entry pairing a package name with its version
|
|
14570
14607
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -14628,7 +14665,7 @@ var Dependency = class extends effect.Schema.Class("Dependency")({
|
|
|
14628
14665
|
}
|
|
14629
14666
|
};
|
|
14630
14667
|
//#endregion
|
|
14631
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
14668
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/DevEngines.js
|
|
14632
14669
|
/**
|
|
14633
14670
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
14634
14671
|
*
|
|
@@ -16183,7 +16220,7 @@ effect.Schema.String.pipe(effect.Schema.decodeTo(SpdxExpressionUnion, effect.Sch
|
|
|
16183
16220
|
encode: (expression) => effect.Effect.succeed(serialize$1(expression))
|
|
16184
16221
|
})));
|
|
16185
16222
|
//#endregion
|
|
16186
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16223
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/License.js
|
|
16187
16224
|
/**
|
|
16188
16225
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
16189
16226
|
*
|
|
@@ -16218,7 +16255,7 @@ const isValidSpdx = (value) => {
|
|
|
16218
16255
|
*/
|
|
16219
16256
|
const SpdxLicense = effect.Schema.String.pipe(effect.Schema.check(effect.Schema.makeFilter((value) => isValidSpdx(value) ? void 0 : "Expected a valid SPDX license expression")), effect.Schema.brand("SpdxLicense"));
|
|
16220
16257
|
//#endregion
|
|
16221
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16258
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageManager.js
|
|
16222
16259
|
const PACKAGE_MANAGER_NAME_RE = /^[a-z]+$/;
|
|
16223
16260
|
const invalid$1 = (input, message) => effect.Effect.fail(new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message }));
|
|
16224
16261
|
/**
|
|
@@ -16329,7 +16366,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
|
|
|
16329
16366
|
}
|
|
16330
16367
|
};
|
|
16331
16368
|
//#endregion
|
|
16332
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16369
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageName.js
|
|
16333
16370
|
/**
|
|
16334
16371
|
* Indicates that a string could not be used as a valid npm package name.
|
|
16335
16372
|
*
|
|
@@ -16387,7 +16424,7 @@ const PackageName = Object.assign(effect.Schema.Union([ScopedPackageName, Unscop
|
|
|
16387
16424
|
isScoped
|
|
16388
16425
|
});
|
|
16389
16426
|
//#endregion
|
|
16390
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16427
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Person.js
|
|
16391
16428
|
const parsePersonString = (input) => {
|
|
16392
16429
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
16393
16430
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -16533,7 +16570,7 @@ var Person = class Person extends effect.Schema.Class("Person")({
|
|
|
16533
16570
|
}
|
|
16534
16571
|
};
|
|
16535
16572
|
//#endregion
|
|
16536
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16573
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Repository.js
|
|
16537
16574
|
/** The shorthand hosts npm resolves without a scheme. */
|
|
16538
16575
|
const SHORTHAND_HOSTS = /* @__PURE__ */ new Map([
|
|
16539
16576
|
["github", "https://github.com"],
|
|
@@ -16708,7 +16745,7 @@ var Bugs = class Bugs extends effect.Schema.Class("Bugs")({
|
|
|
16708
16745
|
})));
|
|
16709
16746
|
};
|
|
16710
16747
|
//#endregion
|
|
16711
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16748
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/internal/format.js
|
|
16712
16749
|
const KEY_INDEX = new Map([
|
|
16713
16750
|
"$schema",
|
|
16714
16751
|
"name",
|
|
@@ -16931,7 +16968,7 @@ const renderJson = (raw, options) => {
|
|
|
16931
16968
|
return options.newline ? `${json}\n` : json;
|
|
16932
16969
|
};
|
|
16933
16970
|
//#endregion
|
|
16934
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16971
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Package.js
|
|
16935
16972
|
const toHashMap = effect.SchemaTransformation.transform({
|
|
16936
16973
|
decode: (record) => effect.HashMap.fromIterable(Object.entries(record)),
|
|
16937
16974
|
encode: (map) => Object.fromEntries(effect.HashMap.toEntries(map))
|
|
@@ -17247,7 +17284,7 @@ var Package = class Package extends effect.Schema.Class("Package")({
|
|
|
17247
17284
|
}
|
|
17248
17285
|
};
|
|
17249
17286
|
//#endregion
|
|
17250
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
17287
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspacePackage.js
|
|
17251
17288
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
17252
17289
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
17253
17290
|
/**
|
|
@@ -17845,7 +17882,7 @@ var Walker$1 = class {
|
|
|
17845
17882
|
static findRoot = findRoot$1;
|
|
17846
17883
|
};
|
|
17847
17884
|
//#endregion
|
|
17848
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
17885
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceRoot.js
|
|
17849
17886
|
/**
|
|
17850
17887
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
17851
17888
|
*
|
|
@@ -18032,7 +18069,7 @@ var WorkspaceRoot = class WorkspaceRoot extends effect.Context.Service()("@effec
|
|
|
18032
18069
|
static layerTest = (root) => effect.Layer.effect(WorkspaceRoot, WorkspaceRoot.makeTest(root)).pipe(effect.Layer.provide(effect.Path.layer));
|
|
18033
18070
|
};
|
|
18034
18071
|
//#endregion
|
|
18035
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18072
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/limits.js
|
|
18036
18073
|
/**
|
|
18037
18074
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
18038
18075
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -18050,7 +18087,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
18050
18087
|
*/
|
|
18051
18088
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
18052
18089
|
//#endregion
|
|
18053
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18090
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/traverse.js
|
|
18054
18091
|
/** Directory names never descended into. */
|
|
18055
18092
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
18056
18093
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -18140,7 +18177,7 @@ var Traversal = class {
|
|
|
18140
18177
|
}
|
|
18141
18178
|
};
|
|
18142
18179
|
//#endregion
|
|
18143
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18180
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/enumerate.js
|
|
18144
18181
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
18145
18182
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
18146
18183
|
/**
|
|
@@ -18210,7 +18247,7 @@ const enumerate = (root, globs, options) => effect.Effect.gen(function* () {
|
|
|
18210
18247
|
return results;
|
|
18211
18248
|
});
|
|
18212
18249
|
//#endregion
|
|
18213
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18250
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/patterns.js
|
|
18214
18251
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
18215
18252
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
18216
18253
|
const pnpmPatternsOf = (document) => {
|
|
@@ -18267,7 +18304,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
|
|
|
18267
18304
|
return manifestPatternsOf(manifest);
|
|
18268
18305
|
});
|
|
18269
18306
|
//#endregion
|
|
18270
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18307
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceDiscovery.js
|
|
18271
18308
|
/**
|
|
18272
18309
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
18273
18310
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -18705,7 +18742,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends effect.Context.Service
|
|
|
18705
18742
|
};
|
|
18706
18743
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
18707
18744
|
//#endregion
|
|
18708
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18745
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/DependencyGraph.js
|
|
18709
18746
|
/**
|
|
18710
18747
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
18711
18748
|
* because it contains a cycle.
|
|
@@ -20347,7 +20384,7 @@ var Git = class Git extends effect.Context.Service()("@effected/git/Git") {
|
|
|
20347
20384
|
static layerTest = (overrides = {}) => effect.Layer.succeed(Git, Git.makeTest(overrides));
|
|
20348
20385
|
};
|
|
20349
20386
|
//#endregion
|
|
20350
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20387
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/ChangeDetector.js
|
|
20351
20388
|
/**
|
|
20352
20389
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
20353
20390
|
*
|
|
@@ -20476,8 +20513,12 @@ var ChangeDetector = class ChangeDetector extends effect.Context.Service()("@eff
|
|
|
20476
20513
|
static layer = effect.Layer.effect(ChangeDetector, ChangeDetector.make);
|
|
20477
20514
|
};
|
|
20478
20515
|
`${process.platform}${process.arch}${process.version.split(".")[0].substring(1)}`;
|
|
20516
|
+
Object.freeze({
|
|
20517
|
+
gh: "https://npm.pkg.github.com/",
|
|
20518
|
+
npmjs: "https://registry.npmjs.org/"
|
|
20519
|
+
});
|
|
20479
20520
|
//#endregion
|
|
20480
|
-
//#region ../../node_modules/.pnpm/@pnpm+error@1100.1.
|
|
20521
|
+
//#region ../../node_modules/.pnpm/@pnpm+error@1100.1.1/node_modules/@pnpm/error/lib/index.js
|
|
20481
20522
|
var PnpmError = class extends Error {
|
|
20482
20523
|
code;
|
|
20483
20524
|
hint;
|
|
@@ -20492,7 +20533,7 @@ var PnpmError = class extends Error {
|
|
|
20492
20533
|
}
|
|
20493
20534
|
};
|
|
20494
20535
|
//#endregion
|
|
20495
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
20536
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.4/node_modules/@pnpm/catalogs.config/lib/getCatalogsFromWorkspaceManifest.js
|
|
20496
20537
|
function getCatalogsFromWorkspaceManifest(workspaceManifest) {
|
|
20497
20538
|
if (workspaceManifest == null) return {};
|
|
20498
20539
|
checkDefaultCatalogIsDefinedOnce(workspaceManifest);
|
|
@@ -20505,7 +20546,7 @@ function checkDefaultCatalogIsDefinedOnce(manifest) {
|
|
|
20505
20546
|
if (manifest.catalog != null && manifest.catalogs?.default != null) throw new PnpmError("INVALID_CATALOGS_CONFIGURATION", "The 'default' catalog was defined multiple times. Use the 'catalog' field or 'catalogs.default', but not both.");
|
|
20506
20547
|
}
|
|
20507
20548
|
//#endregion
|
|
20508
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
20549
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.4/node_modules/@pnpm/catalogs.config/lib/mergeCatalogs.js
|
|
20509
20550
|
/**
|
|
20510
20551
|
* Deep-merges catalog definitions, later arguments taking precedence over
|
|
20511
20552
|
* earlier ones at the individual entry level. Use it to fold the catalog
|
|
@@ -20599,7 +20640,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
20599
20640
|
};
|
|
20600
20641
|
}
|
|
20601
20642
|
//#endregion
|
|
20602
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20643
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/catalogs.js
|
|
20603
20644
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
20604
20645
|
const inlineCatalogs = (manifest) => {
|
|
20605
20646
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -20663,7 +20704,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
20663
20704
|
});
|
|
20664
20705
|
};
|
|
20665
20706
|
//#endregion
|
|
20666
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20707
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/ConfigDependencyHooks.js
|
|
20667
20708
|
/** Whether `value` is a non-null, non-array object. */
|
|
20668
20709
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20669
20710
|
/**
|
|
@@ -20850,7 +20891,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends effect.Context.S
|
|
|
20850
20891
|
}) });
|
|
20851
20892
|
};
|
|
20852
20893
|
//#endregion
|
|
20853
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20894
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/PackageManagerName.js
|
|
20854
20895
|
/**
|
|
20855
20896
|
* The four package managers this package understands.
|
|
20856
20897
|
*
|
|
@@ -21178,7 +21219,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
21178
21219
|
static layerTest = (overrides = {}) => effect.Layer.succeed(PackageManagerDetector, PackageManagerDetector.makeTest(overrides));
|
|
21179
21220
|
};
|
|
21180
21221
|
//#endregion
|
|
21181
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21222
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/LockfileReader.js
|
|
21182
21223
|
/**
|
|
21183
21224
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
21184
21225
|
*
|
|
@@ -21358,7 +21399,7 @@ var LockfileReader = class LockfileReader extends effect.Context.Service()("@eff
|
|
|
21358
21399
|
static layerTest = (overrides = {}) => effect.Layer.succeed(LockfileReader, LockfileReader.makeTest(overrides));
|
|
21359
21400
|
};
|
|
21360
21401
|
//#endregion
|
|
21361
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21402
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/Publishability.js
|
|
21362
21403
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
21363
21404
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
21364
21405
|
/**
|
|
@@ -21517,7 +21558,7 @@ var PublishabilityDetector = class extends effect.Context.Service()("@effected/w
|
|
|
21517
21558
|
static layerNone = effect.Layer.succeed(this, this.none);
|
|
21518
21559
|
};
|
|
21519
21560
|
//#endregion
|
|
21520
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21561
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/importerVersions.js
|
|
21521
21562
|
/**
|
|
21522
21563
|
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
21523
21564
|
*
|
|
@@ -21603,7 +21644,7 @@ const unanimousVersionOf = (index, dependency) => {
|
|
|
21603
21644
|
return agreed;
|
|
21604
21645
|
};
|
|
21605
21646
|
//#endregion
|
|
21606
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21647
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceCatalogs.js
|
|
21607
21648
|
/**
|
|
21608
21649
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
21609
21650
|
* resolution semantic in the package.
|
|
@@ -22112,7 +22153,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
22112
22153
|
}));
|
|
22113
22154
|
};
|
|
22114
22155
|
//#endregion
|
|
22115
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22156
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceStateSnapshot.js
|
|
22116
22157
|
const EMPTY = Object.freeze(Object.create(null));
|
|
22117
22158
|
const DependencyMap = effect.Schema.Record(effect.Schema.String, effect.Schema.String).pipe(effect.Schema.withDecodingDefaultKey(effect.Effect.succeed(EMPTY)), effect.Schema.withConstructorDefault(effect.Effect.succeed(EMPTY)));
|
|
22118
22159
|
/**
|
|
@@ -22335,7 +22376,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
22335
22376
|
}
|
|
22336
22377
|
};
|
|
22337
22378
|
//#endregion
|
|
22338
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22379
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceSnapshots.js
|
|
22339
22380
|
/** Whether `value` is a non-null, non-array object. */
|
|
22340
22381
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
22341
22382
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -22612,7 +22653,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
22612
22653
|
static layerTest = (overrides = {}) => effect.Layer.succeed(WorkspaceSnapshots, WorkspaceSnapshots.makeTest(overrides));
|
|
22613
22654
|
};
|
|
22614
22655
|
//#endregion
|
|
22615
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22656
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.5_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/Workspaces.js
|
|
22616
22657
|
const compose = (options, catalogsFactory) => {
|
|
22617
22658
|
const roots = WorkspaceRoot.layer;
|
|
22618
22659
|
const detector = PackageManagerDetector.layer;
|
|
@@ -60543,7 +60584,7 @@ function validatePackages(packages) {
|
|
|
60543
60584
|
}
|
|
60544
60585
|
}
|
|
60545
60586
|
//#endregion
|
|
60546
|
-
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.
|
|
60587
|
+
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.9/node_modules/@changesets/get-dependents-graph/dist/index.mjs
|
|
60547
60588
|
var src_default = new Proxy({}, { get(target, color) {
|
|
60548
60589
|
target[color] ??= (text) => (0, node_util.styleText)(color, text);
|
|
60549
60590
|
return target[color];
|
|
@@ -60663,14 +60704,14 @@ function getDependentsGraph(packages, opts) {
|
|
|
60663
60704
|
return simplifiedDependentsGraph;
|
|
60664
60705
|
}
|
|
60665
60706
|
//#endregion
|
|
60666
|
-
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.
|
|
60707
|
+
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.9/node_modules/@changesets/should-skip-package/dist/index.mjs
|
|
60667
60708
|
function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
|
|
60668
60709
|
if (ignore.includes(packageJson.name)) return true;
|
|
60669
60710
|
if (packageJson.private && !allowPrivatePackages) return true;
|
|
60670
60711
|
return !packageJson.version;
|
|
60671
60712
|
}
|
|
60672
60713
|
//#endregion
|
|
60673
|
-
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.
|
|
60714
|
+
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.9/node_modules/@changesets/config/dist/index.mjs
|
|
60674
60715
|
const DEFAULT_CONFIG = {
|
|
60675
60716
|
lang: void 0,
|
|
60676
60717
|
message: void 0,
|
|
@@ -61412,9 +61453,9 @@ const WrittenConfigSchema = /* @__PURE__ */ object({
|
|
|
61412
61453
|
linked: rootKey(PackageGroupSchema, "Packages that should be linked together so when they are being released, they will be released at the same version.", []),
|
|
61413
61454
|
updateInternalDependencies: rootKey(/* @__PURE__ */ union([/* @__PURE__ */ literal("minor"), /* @__PURE__ */ literal("patch")]), "The minimum bump type to trigger automatic update of internal dependencies that are part of the same release.", "patch"),
|
|
61414
61455
|
privatePackages: rootKey(/* @__PURE__ */ union([/* @__PURE__ */ object({
|
|
61415
|
-
version: /* @__PURE__ */ optional(/* @__PURE__ */ boolean(),
|
|
61456
|
+
version: /* @__PURE__ */ optional(/* @__PURE__ */ boolean(), false),
|
|
61416
61457
|
tag: /* @__PURE__ */ optional(/* @__PURE__ */ boolean(), false)
|
|
61417
|
-
}), /* @__PURE__ */
|
|
61458
|
+
}), /* @__PURE__ */ boolean()]), "Opt in to tracking non-npm / private packages", {}),
|
|
61418
61459
|
bumpVersionsWithWorkspaceProtocolOnly: rootKey(/* @__PURE__ */ boolean(), "Determines whether Changesets should only bump dependency ranges that use workspace protocol of packages that are part of the workspace.", false),
|
|
61419
61460
|
snapshot: rootKey(/* @__PURE__ */ object({
|
|
61420
61461
|
useCalculatedVersion: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Makes generated snapshot versions use the calculated version (based on the changeset files) as a base version, instead of 0.0.0")), false),
|
|
@@ -61438,11 +61479,11 @@ function normalizeWrittenConfig({ packageNames, writtenConfig }) {
|
|
|
61438
61479
|
else if (writtenConfig.commit === true) config.commit = ["@changesets/cli/commit", { skipCI: "version" }];
|
|
61439
61480
|
if (writtenConfig.ignore != null) config.ignore = globMatch(packageNames, writtenConfig.ignore);
|
|
61440
61481
|
if (typeof writtenConfig.privatePackages !== "object") config.privatePackages = {
|
|
61441
|
-
version: writtenConfig.privatePackages ??
|
|
61442
|
-
tag: false
|
|
61482
|
+
version: writtenConfig.privatePackages ?? false,
|
|
61483
|
+
tag: writtenConfig.privatePackages ?? false
|
|
61443
61484
|
};
|
|
61444
61485
|
else config.privatePackages = {
|
|
61445
|
-
version: writtenConfig.privatePackages.version ??
|
|
61486
|
+
version: writtenConfig.privatePackages.version ?? false,
|
|
61446
61487
|
tag: writtenConfig.privatePackages.tag ?? false
|
|
61447
61488
|
};
|
|
61448
61489
|
return config;
|
|
@@ -61582,7 +61623,7 @@ async function readConfig(cwd, packages) {
|
|
|
61582
61623
|
packages ??= await getPackages(cwd);
|
|
61583
61624
|
return validateConfig(JSON.parse(await node_fs_promises.readFile(node_path.join(packages.rootDir, ".changeset", "config.json"), "utf8")), packages);
|
|
61584
61625
|
}
|
|
61585
|
-
var version = "4.0.0-next.
|
|
61626
|
+
var version = "4.0.0-next.9";
|
|
61586
61627
|
const defaultConfig = normalizeWrittenConfig({
|
|
61587
61628
|
packageNames: [],
|
|
61588
61629
|
writtenConfig: parse(WrittenConfigSchema, {
|
|
@@ -62866,7 +62907,7 @@ var InternalError = class extends Error {
|
|
|
62866
62907
|
}
|
|
62867
62908
|
};
|
|
62868
62909
|
//#endregion
|
|
62869
|
-
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.
|
|
62910
|
+
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.9/node_modules/@changesets/git/dist/index.mjs
|
|
62870
62911
|
async function getDivergedCommit(cwd, ref) {
|
|
62871
62912
|
const cmd = await exec("git", [
|
|
62872
62913
|
"merge-base",
|
|
@@ -62890,6 +62931,7 @@ async function getCommitsThatAddFiles(gitPaths, { cwd, short = false }) {
|
|
|
62890
62931
|
const [commitSha, parentSha] = (await exec("git", [
|
|
62891
62932
|
"log",
|
|
62892
62933
|
"--diff-filter=A",
|
|
62934
|
+
"--follow",
|
|
62893
62935
|
"--max-count=1",
|
|
62894
62936
|
short ? "--pretty=format:%h:%p" : "--pretty=format:%H:%p",
|
|
62895
62937
|
gitPath
|
|
@@ -62943,8 +62985,9 @@ async function getChangedChangesetFilesSinceRef({ cwd, ref }) {
|
|
|
62943
62985
|
"--no-relative",
|
|
62944
62986
|
await getDivergedCommit(cwd, ref)
|
|
62945
62987
|
], { nodeOptions: { cwd } });
|
|
62946
|
-
const
|
|
62947
|
-
|
|
62988
|
+
const rootChangesetsRegex = /\.changeset\/[^/]+\.md$/;
|
|
62989
|
+
const preChangesetsRegex = /\.changeset\/pre\/[^/]+\.md$/;
|
|
62990
|
+
return cmd.stdout.toString().trim().split("\n").filter((file) => rootChangesetsRegex.test(file) || preChangesetsRegex.test(file));
|
|
62948
62991
|
} catch (err) {
|
|
62949
62992
|
if (err instanceof GitError) return [];
|
|
62950
62993
|
throw err;
|
|
@@ -65011,7 +65054,7 @@ function applyEdits(text, edits) {
|
|
|
65011
65054
|
return text;
|
|
65012
65055
|
}
|
|
65013
65056
|
//#endregion
|
|
65014
|
-
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.
|
|
65057
|
+
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.10/node_modules/@changesets/apply-release-plan/dist/index.mjs
|
|
65015
65058
|
/**
|
|
65016
65059
|
* A simple JSON editing utility that preserves formatting. They specified operation keys
|
|
65017
65060
|
* must exist in the JSON for this implementation.
|
|
@@ -65230,12 +65273,11 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
65230
65273
|
...pkg
|
|
65231
65274
|
};
|
|
65232
65275
|
}), changesets, config, cwd, contextDir);
|
|
65233
|
-
if (releasePlan.preState
|
|
65234
|
-
|
|
65276
|
+
if (releasePlan.preState?.mode === "exit" && snapshot == null) {
|
|
65277
|
+
await node_fs_promises.rm(node_path.join(cwd, ".changeset", "pre.json"), {
|
|
65235
65278
|
recursive: true,
|
|
65236
65279
|
force: true
|
|
65237
65280
|
});
|
|
65238
|
-
else await node_fs_promises.writeFile(node_path.join(cwd, ".changeset", "pre.json"), JSON.stringify(releasePlan.preState, null, 2) + "\n");
|
|
65239
65281
|
touchedFiles.push(node_path.join(cwd, ".changeset", "pre.json"));
|
|
65240
65282
|
}
|
|
65241
65283
|
const versionsToUpdate = releases.map((release) => ({
|
|
@@ -65272,24 +65314,27 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
65272
65314
|
if (pkgJsonPath) touchedFiles.push(pkgJsonPath);
|
|
65273
65315
|
}
|
|
65274
65316
|
if (filesToFormat.length > 0) await (await getFormatter(config.format, cwd))(filesToFormat);
|
|
65275
|
-
|
|
65276
|
-
|
|
65277
|
-
|
|
65278
|
-
|
|
65279
|
-
|
|
65280
|
-
|
|
65281
|
-
|
|
65282
|
-
|
|
65283
|
-
|
|
65284
|
-
|
|
65285
|
-
|
|
65286
|
-
|
|
65287
|
-
|
|
65288
|
-
|
|
65289
|
-
|
|
65317
|
+
const isPreChangesets = releasePlan.preState?.mode === "pre";
|
|
65318
|
+
if (isPreChangesets && changesets.length > 0) await node_fs_promises.mkdir(node_path.resolve(cwd, ".changeset", "pre"), { recursive: true });
|
|
65319
|
+
await Promise.all(changesets.map(async (changeset) => {
|
|
65320
|
+
const changesetPath = node_path.resolve(cwd, ".changeset", `${changeset.id}.md`);
|
|
65321
|
+
if (await node_fs_promises.access(changesetPath).then(() => true, () => false)) {
|
|
65322
|
+
if (!changeset.releases.some((release) => shouldSkipPackage(packagesByName.get(release.name), {
|
|
65323
|
+
ignore: config.ignore,
|
|
65324
|
+
allowPrivatePackages: config.privatePackages.version
|
|
65325
|
+
}))) if (isPreChangesets) {
|
|
65326
|
+
const newChangesetPath = node_path.resolve(cwd, ".changeset", "pre", `${changeset.id}.md`);
|
|
65327
|
+
await node_fs_promises.rename(changesetPath, newChangesetPath);
|
|
65328
|
+
touchedFiles.push(changesetPath, newChangesetPath);
|
|
65329
|
+
} else {
|
|
65330
|
+
await node_fs_promises.rm(changesetPath, {
|
|
65331
|
+
recursive: true,
|
|
65332
|
+
force: true
|
|
65333
|
+
});
|
|
65334
|
+
touchedFiles.push(changesetPath);
|
|
65290
65335
|
}
|
|
65291
|
-
}
|
|
65292
|
-
}
|
|
65336
|
+
}
|
|
65337
|
+
}));
|
|
65293
65338
|
return touchedFiles;
|
|
65294
65339
|
}
|
|
65295
65340
|
async function getNewChangelogEntry(releasesWithPackage, changesets, config, cwd, contextDir) {
|
|
@@ -65361,7 +65406,7 @@ async function updateChangelog(changelogPath, changelog, name) {
|
|
|
65361
65406
|
await node_fs_promises.writeFile(changelogPath, newChangelog);
|
|
65362
65407
|
}
|
|
65363
65408
|
//#endregion
|
|
65364
|
-
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.
|
|
65409
|
+
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.10/node_modules/@changesets/assemble-release-plan/dist/index.mjs
|
|
65365
65410
|
function getHighestReleaseType(releases) {
|
|
65366
65411
|
if (releases.length === 0) throw new Error(`Large internal Changesets error when calculating highest release type in the set of releases. Please contact the maintainers`);
|
|
65367
65412
|
let highestReleaseType = "none";
|
|
@@ -65611,7 +65656,7 @@ function getNewVersion(release, preInfo) {
|
|
|
65611
65656
|
function assembleReleasePlan(changesets, packages, config, preState, snapshot) {
|
|
65612
65657
|
const packagesByName = new Map(packages.packages.map((x) => [x.packageJson.name, x]));
|
|
65613
65658
|
const relevantChangesets = getRelevantChangesets(changesets, packagesByName, config, preState);
|
|
65614
|
-
const preInfo = getPreInfo(
|
|
65659
|
+
const preInfo = getPreInfo(packagesByName, config, preState);
|
|
65615
65660
|
const releases = flattenReleases(relevantChangesets, packagesByName, config);
|
|
65616
65661
|
const dependencyGraph = getDependentsGraph(packages, { bumpVersionsWithWorkspaceProtocolOnly: config.bumpVersionsWithWorkspaceProtocolOnly });
|
|
65617
65662
|
let releasesValidated = false;
|
|
@@ -65665,10 +65710,7 @@ function getRelevantChangesets(changesets, packagesByName, config, preState) {
|
|
|
65665
65710
|
else notSkippedPackages.push(release.name);
|
|
65666
65711
|
if (skippedPackages.length > 0 && notSkippedPackages.length > 0) throw new Error(`Found mixed changeset ${changeset.id}\nFound ignored packages: ${skippedPackages.join(" ")}\nFound not ignored packages: ${notSkippedPackages.join(" ")}\nMixed changesets that contain both ignored and not ignored packages are not allowed`);
|
|
65667
65712
|
}
|
|
65668
|
-
if (preState && preState.mode !== "exit")
|
|
65669
|
-
const usedChangesetIds = new Set(preState.changesets);
|
|
65670
|
-
return changesets.filter((changeset) => !usedChangesetIds.has(changeset.id));
|
|
65671
|
-
}
|
|
65713
|
+
if (preState && preState.mode !== "exit") return changesets.filter((changeset) => !changeset.id.startsWith("pre/"));
|
|
65672
65714
|
return changesets;
|
|
65673
65715
|
}
|
|
65674
65716
|
function getHighestPreVersion(groupKind, packageGroup, packagesByName) {
|
|
@@ -65679,12 +65721,8 @@ function getHighestPreVersion(groupKind, packageGroup, packagesByName) {
|
|
|
65679
65721
|
}
|
|
65680
65722
|
return highestPreVersion;
|
|
65681
65723
|
}
|
|
65682
|
-
function getPreInfo(
|
|
65724
|
+
function getPreInfo(packagesByName, config, preState) {
|
|
65683
65725
|
if (preState == null) return;
|
|
65684
|
-
const updatedPreState = {
|
|
65685
|
-
...preState,
|
|
65686
|
-
changesets: changesets.map((changeset) => changeset.id)
|
|
65687
|
-
};
|
|
65688
65726
|
const preVersions = /* @__PURE__ */ new Map();
|
|
65689
65727
|
for (const [, pkg] of packagesByName) {
|
|
65690
65728
|
if (shouldSkipPackage(pkg, {
|
|
@@ -65702,12 +65740,12 @@ function getPreInfo(changesets, packagesByName, config, preState) {
|
|
|
65702
65740
|
for (const linkedPackage of linkedGroup) preVersions.set(linkedPackage, highestPreVersion);
|
|
65703
65741
|
}
|
|
65704
65742
|
return {
|
|
65705
|
-
state:
|
|
65743
|
+
state: preState,
|
|
65706
65744
|
preVersions
|
|
65707
65745
|
};
|
|
65708
65746
|
}
|
|
65709
65747
|
//#endregion
|
|
65710
|
-
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.
|
|
65748
|
+
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.9/node_modules/@changesets/pre/dist/index.mjs
|
|
65711
65749
|
async function outputFile(filePath, content) {
|
|
65712
65750
|
await node_fs_promises.mkdir(node_path.dirname(filePath), { recursive: true });
|
|
65713
65751
|
await node_fs_promises.writeFile(filePath, content, "utf8");
|
|
@@ -65730,13 +65768,25 @@ async function readPreState(rootDir) {
|
|
|
65730
65768
|
return preState;
|
|
65731
65769
|
}
|
|
65732
65770
|
async function migratePreState(rootDir, preState) {
|
|
65733
|
-
if (preState.initialVersions == null) return preState;
|
|
65734
|
-
delete preState.initialVersions;
|
|
65771
|
+
if (preState.initialVersions == null && preState.changesets == null) return preState;
|
|
65772
|
+
if (preState.initialVersions != null) delete preState.initialVersions;
|
|
65773
|
+
if (preState.changesets != null) {
|
|
65774
|
+
const preChangesetsDir = node_path.resolve(rootDir, ".changeset", "pre");
|
|
65775
|
+
await node_fs_promises.mkdir(preChangesetsDir, { recursive: true });
|
|
65776
|
+
for (const changeset of preState.changesets) {
|
|
65777
|
+
const oldPath = node_path.resolve(rootDir, ".changeset", `${changeset}.md`);
|
|
65778
|
+
const newPath = node_path.resolve(preChangesetsDir, `${changeset}.md`);
|
|
65779
|
+
try {
|
|
65780
|
+
await node_fs_promises.rename(oldPath, newPath);
|
|
65781
|
+
} catch {}
|
|
65782
|
+
}
|
|
65783
|
+
delete preState.changesets;
|
|
65784
|
+
}
|
|
65735
65785
|
await outputFile(node_path.resolve(rootDir, ".changeset", "pre.json"), JSON.stringify(preState, null, 2) + "\n");
|
|
65736
65786
|
return preState;
|
|
65737
65787
|
}
|
|
65738
65788
|
//#endregion
|
|
65739
|
-
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.
|
|
65789
|
+
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.10/node_modules/@changesets/parse/dist/index.mjs
|
|
65740
65790
|
const mdRegex = /\s*---([^]*?)\r?\n\s*---(\s*(?:\n|$)[^]*)/;
|
|
65741
65791
|
const EXAMPLE_FORMAT = `---\n"package-name": patch\n---`;
|
|
65742
65792
|
const validVersionTypes = [
|
|
@@ -65789,7 +65839,7 @@ YAML error: ${e instanceof Error ? e.message : String(e)}\nFrontmatter content:\
|
|
|
65789
65839
|
};
|
|
65790
65840
|
}
|
|
65791
65841
|
//#endregion
|
|
65792
|
-
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.
|
|
65842
|
+
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.10/node_modules/@changesets/read/dist/index.mjs
|
|
65793
65843
|
const ignoredMdFiles = [
|
|
65794
65844
|
/^README\.md$/i,
|
|
65795
65845
|
"AGENTS.md",
|
|
@@ -65800,29 +65850,39 @@ async function filterChangesetsSinceRef(changesets, changesetBase, sinceRef) {
|
|
|
65800
65850
|
const newHashes = (await getChangedChangesetFilesSinceRef({
|
|
65801
65851
|
cwd: changesetBase,
|
|
65802
65852
|
ref: sinceRef
|
|
65803
|
-
})).map((c) => c.
|
|
65853
|
+
})).map((c) => c.replace(/^.*\.changeset\//, ""));
|
|
65804
65854
|
return changesets.filter((dir) => newHashes.includes(dir));
|
|
65805
65855
|
}
|
|
65806
65856
|
async function readChangesets(rootDir, sinceRef) {
|
|
65807
65857
|
const changesetBase = node_path.join(rootDir, ".changeset");
|
|
65808
|
-
let
|
|
65858
|
+
let changesets = [];
|
|
65809
65859
|
try {
|
|
65810
|
-
|
|
65860
|
+
changesets.push(...await node_fs_promises.readdir(changesetBase));
|
|
65811
65861
|
} catch (err) {
|
|
65812
65862
|
if (err.code === "ENOENT") throw new Error("There is no .changeset directory in this project", { cause: err });
|
|
65813
65863
|
throw err;
|
|
65814
65864
|
}
|
|
65815
|
-
|
|
65816
|
-
|
|
65865
|
+
try {
|
|
65866
|
+
changesets.push(...(await node_fs_promises.readdir(node_path.join(changesetBase, "pre"))).map((file) => `pre/${file}`));
|
|
65867
|
+
} catch (err) {
|
|
65868
|
+
if (err.code !== "ENOENT") throw err;
|
|
65869
|
+
}
|
|
65870
|
+
console.log(changesets);
|
|
65871
|
+
if (sinceRef != null) changesets = await filterChangesetsSinceRef(changesets, changesetBase, sinceRef);
|
|
65872
|
+
changesets = changesets.filter((file) => {
|
|
65873
|
+
file = node_path.basename(file);
|
|
65874
|
+
return !file.startsWith(".") && file.endsWith(".md") && !ignoredMdFiles.some((pattern) => typeof pattern === "string" ? pattern === file : pattern.test(file));
|
|
65875
|
+
});
|
|
65876
|
+
const changesetContents = changesets.map(async (file) => {
|
|
65817
65877
|
return {
|
|
65818
65878
|
...parseChangesetFile(await node_fs_promises.readFile(node_path.join(changesetBase, file), "utf8")),
|
|
65819
|
-
id: file.replace(
|
|
65879
|
+
id: file.replace(/\.md$/, "")
|
|
65820
65880
|
};
|
|
65821
65881
|
});
|
|
65822
65882
|
return await Promise.all(changesetContents);
|
|
65823
65883
|
}
|
|
65824
65884
|
//#endregion
|
|
65825
|
-
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.
|
|
65885
|
+
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.10/node_modules/@changesets/get-release-plan/dist/index.mjs
|
|
65826
65886
|
async function getReleasePlan(cwd, sinceRef, passedConfig) {
|
|
65827
65887
|
const packages = await getPackages(cwd);
|
|
65828
65888
|
const configResult = await readConfig(packages.rootDir, packages);
|