@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
|
@@ -2352,7 +2352,7 @@ var GlobSet = class GlobSet extends Schema.Class("GlobSet")(Schema.Struct({ patt
|
|
|
2352
2352
|
};
|
|
2353
2353
|
|
|
2354
2354
|
//#endregion
|
|
2355
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
2355
|
+
//#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
|
|
2356
2356
|
/**
|
|
2357
2357
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2358
2358
|
* when the format is `"bun"`.
|
|
@@ -2374,7 +2374,7 @@ var BunExtension = class extends Schema.Class("BunExtension")({
|
|
|
2374
2374
|
}) {};
|
|
2375
2375
|
|
|
2376
2376
|
//#endregion
|
|
2377
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2377
|
+
//#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
|
|
2378
2378
|
/**
|
|
2379
2379
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2380
2380
|
* version ranges.
|
|
@@ -2421,7 +2421,7 @@ var CatalogResolver = class CatalogResolver extends Context.Service()("@effected
|
|
|
2421
2421
|
};
|
|
2422
2422
|
|
|
2423
2423
|
//#endregion
|
|
2424
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2424
|
+
//#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
|
|
2425
2425
|
/**
|
|
2426
2426
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2427
2427
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2483,7 +2483,7 @@ var WorkspaceResolver = class WorkspaceResolver extends Context.Service()("@effe
|
|
|
2483
2483
|
};
|
|
2484
2484
|
|
|
2485
2485
|
//#endregion
|
|
2486
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2486
|
+
//#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
|
|
2487
2487
|
/**
|
|
2488
2488
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2489
2489
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2528,7 +2528,7 @@ var CatalogAssemblyError = class extends Schema.TaggedErrorClass()("CatalogAssem
|
|
|
2528
2528
|
};
|
|
2529
2529
|
|
|
2530
2530
|
//#endregion
|
|
2531
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2531
|
+
//#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
|
|
2532
2532
|
/**
|
|
2533
2533
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2534
2534
|
* way consumers branch on it.
|
|
@@ -2562,7 +2562,7 @@ const KIND_TO_FIELD = {
|
|
|
2562
2562
|
const FIELD_TO_KIND = Object.fromEntries(Object.entries(KIND_TO_FIELD).map(([kind, field]) => [field, kind]));
|
|
2563
2563
|
|
|
2564
2564
|
//#endregion
|
|
2565
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
2565
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/desugar.js
|
|
2566
2566
|
const sv = (major, minor, patch, prerelease = [], build = []) => ({
|
|
2567
2567
|
major,
|
|
2568
2568
|
minor,
|
|
@@ -2652,7 +2652,7 @@ const desugarHyphen = (lower, upper) => {
|
|
|
2652
2652
|
};
|
|
2653
2653
|
|
|
2654
2654
|
//#endregion
|
|
2655
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
2655
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/grammar.js
|
|
2656
2656
|
/** Private control-flow exception; never escapes the entry points. */
|
|
2657
2657
|
var ParseFailure = class {
|
|
2658
2658
|
position;
|
|
@@ -3053,7 +3053,7 @@ const formatComparator = (c) => {
|
|
|
3053
3053
|
const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
|
|
3054
3054
|
|
|
3055
3055
|
//#endregion
|
|
3056
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3056
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/order.js
|
|
3057
3057
|
/**
|
|
3058
3058
|
* Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
|
|
3059
3059
|
* identifiers always have lower precedence than alphanumeric ones; numerics
|
|
@@ -3107,7 +3107,7 @@ const compareBuild = (a, b) => {
|
|
|
3107
3107
|
};
|
|
3108
3108
|
|
|
3109
3109
|
//#endregion
|
|
3110
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3110
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/SemVer.js
|
|
3111
3111
|
/**
|
|
3112
3112
|
* Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
|
|
3113
3113
|
*
|
|
@@ -3619,7 +3619,7 @@ var SemVerBump = class {
|
|
|
3619
3619
|
};
|
|
3620
3620
|
|
|
3621
3621
|
//#endregion
|
|
3622
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3622
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/Comparator.js
|
|
3623
3623
|
/**
|
|
3624
3624
|
* Indicates that a string could not be parsed as a single comparator.
|
|
3625
3625
|
*
|
|
@@ -3754,7 +3754,7 @@ var Comparator = class Comparator extends Schema.Class("Comparator")({
|
|
|
3754
3754
|
};
|
|
3755
3755
|
|
|
3756
3756
|
//#endregion
|
|
3757
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3757
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/normalize.js
|
|
3758
3758
|
const operatorWeight = (op) => {
|
|
3759
3759
|
switch (op) {
|
|
3760
3760
|
case ">=": return 0;
|
|
@@ -3786,7 +3786,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
|
|
|
3786
3786
|
const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
3787
3787
|
|
|
3788
3788
|
//#endregion
|
|
3789
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3789
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/Range.js
|
|
3790
3790
|
/**
|
|
3791
3791
|
* Indicates that a string could not be parsed as a range expression.
|
|
3792
3792
|
*
|
|
@@ -3894,17 +3894,54 @@ sets: Schema.Array(Schema.Array(Comparator)) }) {
|
|
|
3894
3894
|
/**
|
|
3895
3895
|
* Test whether a version satisfies a range; see {@link Range.test} for the
|
|
3896
3896
|
* prerelease matching rule. Dual API.
|
|
3897
|
+
*
|
|
3898
|
+
* @remarks
|
|
3899
|
+
* **Data-first order is `(version, range)`** — the version being tested
|
|
3900
|
+
* comes first, the range it is tested against second. The data-last form
|
|
3901
|
+
* takes the range: `Range.satisfies(range)` applied to a version.
|
|
3902
|
+
*
|
|
3903
|
+
* Worth stating because the two parameters are distinct classes and the
|
|
3904
|
+
* order is not recoverable from the call site. TypeScript rejects a flipped
|
|
3905
|
+
* call outright, so this only bites callers without type checking — which
|
|
3906
|
+
* includes the untyped `node --input-type=module` probes this repo's own
|
|
3907
|
+
* evidence ladder calls for. There, `Range.satisfies(range, version)`
|
|
3908
|
+
* dispatches data-first, binds the `Range` to `version`, and dies with
|
|
3909
|
+
* `TypeError: range.test is not a function` — a message naming the
|
|
3910
|
+
* parameter that received the *version*, so it reads as a defect inside
|
|
3911
|
+
* this package rather than a caller error.
|
|
3912
|
+
*
|
|
3913
|
+
* The same order and the same hazard apply to `Range.filter`,
|
|
3914
|
+
* {@link Range.maxSatisfying} and {@link Range.minSatisfying}: subject
|
|
3915
|
+
* first, range second.
|
|
3897
3916
|
*/
|
|
3898
3917
|
static satisfies = Function.dual(2, (version, range) => range.test(version));
|
|
3899
|
-
/**
|
|
3918
|
+
/**
|
|
3919
|
+
* Filter versions that satisfy a range, preserving order. Dual API.
|
|
3920
|
+
*
|
|
3921
|
+
* @remarks
|
|
3922
|
+
* Data-first order is `(versions, range)` — see {@link Range.satisfies}
|
|
3923
|
+
* for why the order is spelled out.
|
|
3924
|
+
*/
|
|
3900
3925
|
static filter = Function.dual(2, (versions, range) => range.filter(versions));
|
|
3901
|
-
/**
|
|
3926
|
+
/**
|
|
3927
|
+
* Highest satisfying version, or `Option.none()`. Dual API.
|
|
3928
|
+
*
|
|
3929
|
+
* @remarks
|
|
3930
|
+
* Data-first order is `(versions, range)` — see {@link Range.satisfies}
|
|
3931
|
+
* for why the order is spelled out.
|
|
3932
|
+
*/
|
|
3902
3933
|
static maxSatisfying = Function.dual(2, (versions, range) => {
|
|
3903
3934
|
let best;
|
|
3904
3935
|
for (const v of versions) if (range.test(v) && (best === void 0 || v.gt(best))) best = v;
|
|
3905
3936
|
return best === void 0 ? Option.none() : Option.some(best);
|
|
3906
3937
|
});
|
|
3907
|
-
/**
|
|
3938
|
+
/**
|
|
3939
|
+
* Lowest satisfying version, or `Option.none()`. Dual API.
|
|
3940
|
+
*
|
|
3941
|
+
* @remarks
|
|
3942
|
+
* Data-first order is `(versions, range)` — see {@link Range.satisfies}
|
|
3943
|
+
* for why the order is spelled out.
|
|
3944
|
+
*/
|
|
3908
3945
|
static minSatisfying = Function.dual(2, (versions, range) => {
|
|
3909
3946
|
let best;
|
|
3910
3947
|
for (const v of versions) if (range.test(v) && (best === void 0 || v.lt(best))) best = v;
|
|
@@ -4115,7 +4152,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4115
4152
|
};
|
|
4116
4153
|
|
|
4117
4154
|
//#endregion
|
|
4118
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
4155
|
+
//#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
|
|
4119
4156
|
/**
|
|
4120
4157
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
4121
4158
|
*
|
|
@@ -4323,7 +4360,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4323
4360
|
});
|
|
4324
4361
|
|
|
4325
4362
|
//#endregion
|
|
4326
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
4363
|
+
//#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
|
|
4327
4364
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4328
4365
|
const COREPACK_RE = /^(sha1|sha224|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4329
4366
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4638,7 +4675,7 @@ var LocalExec = class LocalExec extends Context.Service()("@effected/commands/Lo
|
|
|
4638
4675
|
};
|
|
4639
4676
|
|
|
4640
4677
|
//#endregion
|
|
4641
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
4678
|
+
//#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
|
|
4642
4679
|
const MS_PER_MINUTE = 6e4;
|
|
4643
4680
|
/**
|
|
4644
4681
|
* A source's partial contribution to a {@link ReleaseAgeGate}: the effective
|
|
@@ -4809,7 +4846,7 @@ var ReleaseAgeGate = class ReleaseAgeGate extends Schema.Class("ReleaseAgeGate")
|
|
|
4809
4846
|
};
|
|
4810
4847
|
|
|
4811
4848
|
//#endregion
|
|
4812
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4849
|
+
//#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
|
|
4813
4850
|
/**
|
|
4814
4851
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
4815
4852
|
*
|
|
@@ -4848,7 +4885,7 @@ var ImporterDependency = class extends Schema.Class("ImporterDependency")({
|
|
|
4848
4885
|
}) {};
|
|
4849
4886
|
|
|
4850
4887
|
//#endregion
|
|
4851
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4888
|
+
//#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
|
|
4852
4889
|
/**
|
|
4853
4890
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
4854
4891
|
*
|
|
@@ -4873,7 +4910,7 @@ var LockfileImporter = class extends Schema.Class("LockfileImporter")({
|
|
|
4873
4910
|
}) {};
|
|
4874
4911
|
|
|
4875
4912
|
//#endregion
|
|
4876
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4913
|
+
//#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
|
|
4877
4914
|
const EMPTY_DEPENDENCIES = {};
|
|
4878
4915
|
/**
|
|
4879
4916
|
* A package resolved from a lockfile.
|
|
@@ -4909,7 +4946,7 @@ var ResolvedPackage = class extends Schema.Class("ResolvedPackage")({
|
|
|
4909
4946
|
}) {};
|
|
4910
4947
|
|
|
4911
4948
|
//#endregion
|
|
4912
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4949
|
+
//#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
|
|
4913
4950
|
/**
|
|
4914
4951
|
* A directed dependency edge between two workspace packages as recorded in
|
|
4915
4952
|
* the lockfile.
|
|
@@ -4932,7 +4969,7 @@ var WorkspaceDependency = class extends Schema.Class("WorkspaceDependency")({
|
|
|
4932
4969
|
}) {};
|
|
4933
4970
|
|
|
4934
4971
|
//#endregion
|
|
4935
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4972
|
+
//#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
|
|
4936
4973
|
/**
|
|
4937
4974
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
4938
4975
|
* when the format is `"pnpm"`.
|
|
@@ -4958,7 +4995,7 @@ var PnpmExtension = class extends Schema.Class("PnpmExtension")({
|
|
|
4958
4995
|
}) {};
|
|
4959
4996
|
|
|
4960
4997
|
//#endregion
|
|
4961
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4998
|
+
//#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
|
|
4962
4999
|
/**
|
|
4963
5000
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
4964
5001
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -4997,7 +5034,7 @@ const FILENAMES = {
|
|
|
4997
5034
|
const filenameFor = (format) => FILENAMES[format][0];
|
|
4998
5035
|
|
|
4999
5036
|
//#endregion
|
|
5000
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
5037
|
+
//#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
|
|
5001
5038
|
/**
|
|
5002
5039
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
5003
5040
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -6969,7 +7006,7 @@ var JsoncModifier = class {
|
|
|
6969
7006
|
};
|
|
6970
7007
|
|
|
6971
7008
|
//#endregion
|
|
6972
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
7009
|
+
//#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
|
|
6973
7010
|
const DepRecord$2 = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
6974
7011
|
const BunWorkspaceEntry = Schema.Struct({
|
|
6975
7012
|
name: Schema.optionalKey(Schema.String),
|
|
@@ -7063,7 +7100,7 @@ const toFields$3 = (raw) => Effect.gen(function* () {
|
|
|
7063
7100
|
});
|
|
7064
7101
|
|
|
7065
7102
|
//#endregion
|
|
7066
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
7103
|
+
//#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
|
|
7067
7104
|
const DepRecord$1 = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
7068
7105
|
const NpmPackageEntry = Schema.Struct({
|
|
7069
7106
|
name: Schema.optionalKey(Schema.String),
|
|
@@ -14091,7 +14128,7 @@ function deepEqualValues(a, b) {
|
|
|
14091
14128
|
}
|
|
14092
14129
|
|
|
14093
14130
|
//#endregion
|
|
14094
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14131
|
+
//#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
|
|
14095
14132
|
/**
|
|
14096
14133
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
14097
14134
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -14162,7 +14199,7 @@ const selectSoleDocument = (content) => Effect.gen(function* () {
|
|
|
14162
14199
|
});
|
|
14163
14200
|
|
|
14164
14201
|
//#endregion
|
|
14165
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14202
|
+
//#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
|
|
14166
14203
|
const PnpmImporterDeps = Schema.optionalKey(Schema.Record(Schema.String, Schema.Struct({
|
|
14167
14204
|
specifier: Schema.String,
|
|
14168
14205
|
version: Schema.String
|
|
@@ -14288,7 +14325,7 @@ const toFields$1 = (raw) => Effect.gen(function* () {
|
|
|
14288
14325
|
});
|
|
14289
14326
|
|
|
14290
14327
|
//#endregion
|
|
14291
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14328
|
+
//#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
|
|
14292
14329
|
const YarnLockfileRaw = Schema.Record(Schema.String, Schema.Unknown);
|
|
14293
14330
|
const DepRecord = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
14294
14331
|
const YarnEntry = Schema.Struct({
|
|
@@ -14412,7 +14449,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
14412
14449
|
};
|
|
14413
14450
|
|
|
14414
14451
|
//#endregion
|
|
14415
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14452
|
+
//#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
|
|
14416
14453
|
const EMPTY_IMPORTERS = [];
|
|
14417
14454
|
/**
|
|
14418
14455
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -14657,7 +14694,7 @@ var Lockfile = class Lockfile extends Schema.Class("Lockfile")({
|
|
|
14657
14694
|
};
|
|
14658
14695
|
|
|
14659
14696
|
//#endregion
|
|
14660
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14697
|
+
//#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
|
|
14661
14698
|
/**
|
|
14662
14699
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
14663
14700
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -14774,7 +14811,7 @@ var LockfileIntegrity = class LockfileIntegrity extends Schema.Class("LockfileIn
|
|
|
14774
14811
|
};
|
|
14775
14812
|
|
|
14776
14813
|
//#endregion
|
|
14777
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
14814
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Dependency.js
|
|
14778
14815
|
/**
|
|
14779
14816
|
* A resolved dependency entry pairing a package name with its version
|
|
14780
14817
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -14839,7 +14876,7 @@ var Dependency = class extends Schema.Class("Dependency")({
|
|
|
14839
14876
|
};
|
|
14840
14877
|
|
|
14841
14878
|
//#endregion
|
|
14842
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
14879
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/DevEngines.js
|
|
14843
14880
|
/**
|
|
14844
14881
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
14845
14882
|
*
|
|
@@ -16437,7 +16474,7 @@ const SpdxExpression = {
|
|
|
16437
16474
|
};
|
|
16438
16475
|
|
|
16439
16476
|
//#endregion
|
|
16440
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16477
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/License.js
|
|
16441
16478
|
/**
|
|
16442
16479
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
16443
16480
|
*
|
|
@@ -16473,7 +16510,7 @@ const isValidSpdx = (value) => {
|
|
|
16473
16510
|
const SpdxLicense = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => isValidSpdx(value) ? void 0 : "Expected a valid SPDX license expression")), Schema.brand("SpdxLicense"));
|
|
16474
16511
|
|
|
16475
16512
|
//#endregion
|
|
16476
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16513
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageManager.js
|
|
16477
16514
|
const PACKAGE_MANAGER_NAME_RE = /^[a-z]+$/;
|
|
16478
16515
|
const invalid$1 = (input, message) => Effect.fail(new SchemaIssue.InvalidValue(Option.some(input), { message }));
|
|
16479
16516
|
/**
|
|
@@ -16585,7 +16622,7 @@ var PackageManager = class PackageManager extends Schema.Class("PackageManager")
|
|
|
16585
16622
|
};
|
|
16586
16623
|
|
|
16587
16624
|
//#endregion
|
|
16588
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16625
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageName.js
|
|
16589
16626
|
/**
|
|
16590
16627
|
* Indicates that a string could not be used as a valid npm package name.
|
|
16591
16628
|
*
|
|
@@ -16644,7 +16681,7 @@ const PackageName = Object.assign(Schema.Union([ScopedPackageName, UnscopedPacka
|
|
|
16644
16681
|
});
|
|
16645
16682
|
|
|
16646
16683
|
//#endregion
|
|
16647
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16684
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Person.js
|
|
16648
16685
|
const parsePersonString = (input) => {
|
|
16649
16686
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
16650
16687
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -16791,7 +16828,7 @@ var Person = class Person extends Schema.Class("Person")({
|
|
|
16791
16828
|
};
|
|
16792
16829
|
|
|
16793
16830
|
//#endregion
|
|
16794
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16831
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Repository.js
|
|
16795
16832
|
/** The shorthand hosts npm resolves without a scheme. */
|
|
16796
16833
|
const SHORTHAND_HOSTS = /* @__PURE__ */ new Map([
|
|
16797
16834
|
["github", "https://github.com"],
|
|
@@ -16967,7 +17004,7 @@ var Bugs = class Bugs extends Schema.Class("Bugs")({
|
|
|
16967
17004
|
};
|
|
16968
17005
|
|
|
16969
17006
|
//#endregion
|
|
16970
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
17007
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/internal/format.js
|
|
16971
17008
|
const KEY_INDEX = new Map([
|
|
16972
17009
|
"$schema",
|
|
16973
17010
|
"name",
|
|
@@ -17191,7 +17228,7 @@ const renderJson = (raw, options) => {
|
|
|
17191
17228
|
};
|
|
17192
17229
|
|
|
17193
17230
|
//#endregion
|
|
17194
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
17231
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Package.js
|
|
17195
17232
|
const toHashMap = SchemaTransformation.transform({
|
|
17196
17233
|
decode: (record) => HashMap.fromIterable(Object.entries(record)),
|
|
17197
17234
|
encode: (map) => Object.fromEntries(HashMap.toEntries(map))
|
|
@@ -17518,7 +17555,7 @@ var Package = class Package extends Schema.Class("Package")({
|
|
|
17518
17555
|
};
|
|
17519
17556
|
|
|
17520
17557
|
//#endregion
|
|
17521
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
17558
|
+
//#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
|
|
17522
17559
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
17523
17560
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
17524
17561
|
/**
|
|
@@ -18120,7 +18157,7 @@ var Walker$1 = class {
|
|
|
18120
18157
|
};
|
|
18121
18158
|
|
|
18122
18159
|
//#endregion
|
|
18123
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18160
|
+
//#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
|
|
18124
18161
|
/**
|
|
18125
18162
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
18126
18163
|
*
|
|
@@ -18308,7 +18345,7 @@ var WorkspaceRoot = class WorkspaceRoot extends Context.Service()("@effected/wor
|
|
|
18308
18345
|
};
|
|
18309
18346
|
|
|
18310
18347
|
//#endregion
|
|
18311
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18348
|
+
//#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
|
|
18312
18349
|
/**
|
|
18313
18350
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
18314
18351
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -18327,7 +18364,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
18327
18364
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
18328
18365
|
|
|
18329
18366
|
//#endregion
|
|
18330
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18367
|
+
//#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
|
|
18331
18368
|
/** Directory names never descended into. */
|
|
18332
18369
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
18333
18370
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -18418,7 +18455,7 @@ var Traversal = class {
|
|
|
18418
18455
|
};
|
|
18419
18456
|
|
|
18420
18457
|
//#endregion
|
|
18421
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18458
|
+
//#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
|
|
18422
18459
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
18423
18460
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
18424
18461
|
/**
|
|
@@ -18489,7 +18526,7 @@ const enumerate = (root, globs, options) => Effect.gen(function* () {
|
|
|
18489
18526
|
});
|
|
18490
18527
|
|
|
18491
18528
|
//#endregion
|
|
18492
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18529
|
+
//#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
|
|
18493
18530
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
18494
18531
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
18495
18532
|
const pnpmPatternsOf = (document) => {
|
|
@@ -18547,7 +18584,7 @@ const readPatterns = (root) => Effect.gen(function* () {
|
|
|
18547
18584
|
});
|
|
18548
18585
|
|
|
18549
18586
|
//#endregion
|
|
18550
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18587
|
+
//#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
|
|
18551
18588
|
/**
|
|
18552
18589
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
18553
18590
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -18986,7 +19023,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends Context.Service()("@ef
|
|
|
18986
19023
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
18987
19024
|
|
|
18988
19025
|
//#endregion
|
|
18989
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
19026
|
+
//#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
|
|
18990
19027
|
/**
|
|
18991
19028
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
18992
19029
|
* because it contains a cycle.
|
|
@@ -20632,7 +20669,7 @@ var Git = class Git extends Context.Service()("@effected/git/Git") {
|
|
|
20632
20669
|
};
|
|
20633
20670
|
|
|
20634
20671
|
//#endregion
|
|
20635
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20672
|
+
//#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
|
|
20636
20673
|
/**
|
|
20637
20674
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
20638
20675
|
*
|
|
@@ -20780,13 +20817,31 @@ var ChangeDetector = class ChangeDetector extends Context.Service()("@effected/w
|
|
|
20780
20817
|
};
|
|
20781
20818
|
|
|
20782
20819
|
//#endregion
|
|
20783
|
-
//#region ../../node_modules/.pnpm/@pnpm+constants@
|
|
20820
|
+
//#region ../../node_modules/.pnpm/@pnpm+constants@1101.0.0/node_modules/@pnpm/constants/lib/index.js
|
|
20784
20821
|
const LOCKFILE_MAJOR_VERSION = "9";
|
|
20785
20822
|
const LOCKFILE_VERSION = `${"9"}.0`;
|
|
20786
20823
|
const ENGINE_NAME = `${process.platform};${process.arch};node${process.version.split(".")[0].substring(1)}`;
|
|
20824
|
+
/**
|
|
20825
|
+
* Named-registry aliases that work without any configuration. User entries in
|
|
20826
|
+
* the `namedRegistries` setting are merged on top and may override these
|
|
20827
|
+
* (e.g. GHES users can point `gh` at their own enterprise host).
|
|
20828
|
+
*
|
|
20829
|
+
* `npmjs` is here so a dependency can be pinned to the public registry even
|
|
20830
|
+
* when `registry` points somewhere else, such as an internal proxy. The `npm`
|
|
20831
|
+
* prefix cannot serve that purpose: it is reserved for the alias protocol
|
|
20832
|
+
* (`npm:<name>@<range>`), which resolves through the default registry.
|
|
20833
|
+
*
|
|
20834
|
+
* Because these URLs are also the prefixes a recorded tarball URL is matched
|
|
20835
|
+
* against, an org that proxies npmjs should point `npmjs` at their proxy so
|
|
20836
|
+
* verification keeps going there rather than to the public host.
|
|
20837
|
+
*/
|
|
20838
|
+
const BUILTIN_NAMED_REGISTRIES = Object.freeze({
|
|
20839
|
+
gh: "https://npm.pkg.github.com/",
|
|
20840
|
+
npmjs: "https://registry.npmjs.org/"
|
|
20841
|
+
});
|
|
20787
20842
|
|
|
20788
20843
|
//#endregion
|
|
20789
|
-
//#region ../../node_modules/.pnpm/@pnpm+error@1100.1.
|
|
20844
|
+
//#region ../../node_modules/.pnpm/@pnpm+error@1100.1.1/node_modules/@pnpm/error/lib/index.js
|
|
20790
20845
|
var PnpmError = class extends Error {
|
|
20791
20846
|
code;
|
|
20792
20847
|
hint;
|
|
@@ -20802,7 +20857,7 @@ var PnpmError = class extends Error {
|
|
|
20802
20857
|
};
|
|
20803
20858
|
|
|
20804
20859
|
//#endregion
|
|
20805
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
20860
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.4/node_modules/@pnpm/catalogs.config/lib/getCatalogsFromWorkspaceManifest.js
|
|
20806
20861
|
function getCatalogsFromWorkspaceManifest(workspaceManifest) {
|
|
20807
20862
|
if (workspaceManifest == null) return {};
|
|
20808
20863
|
checkDefaultCatalogIsDefinedOnce(workspaceManifest);
|
|
@@ -20816,7 +20871,7 @@ function checkDefaultCatalogIsDefinedOnce(manifest) {
|
|
|
20816
20871
|
}
|
|
20817
20872
|
|
|
20818
20873
|
//#endregion
|
|
20819
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
20874
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.4/node_modules/@pnpm/catalogs.config/lib/mergeCatalogs.js
|
|
20820
20875
|
/**
|
|
20821
20876
|
* Deep-merges catalog definitions, later arguments taking precedence over
|
|
20822
20877
|
* earlier ones at the individual entry level. Use it to fold the catalog
|
|
@@ -20914,7 +20969,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
20914
20969
|
}
|
|
20915
20970
|
|
|
20916
20971
|
//#endregion
|
|
20917
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20972
|
+
//#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
|
|
20918
20973
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
20919
20974
|
const inlineCatalogs = (manifest) => {
|
|
20920
20975
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -20980,7 +21035,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
20980
21035
|
};
|
|
20981
21036
|
|
|
20982
21037
|
//#endregion
|
|
20983
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21038
|
+
//#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
|
|
20984
21039
|
/** Whether `value` is a non-null, non-array object. */
|
|
20985
21040
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20986
21041
|
/**
|
|
@@ -21168,7 +21223,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends Context.Service(
|
|
|
21168
21223
|
};
|
|
21169
21224
|
|
|
21170
21225
|
//#endregion
|
|
21171
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21226
|
+
//#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
|
|
21172
21227
|
/**
|
|
21173
21228
|
* The four package managers this package understands.
|
|
21174
21229
|
*
|
|
@@ -21497,7 +21552,7 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
21497
21552
|
};
|
|
21498
21553
|
|
|
21499
21554
|
//#endregion
|
|
21500
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21555
|
+
//#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
|
|
21501
21556
|
/**
|
|
21502
21557
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
21503
21558
|
*
|
|
@@ -21678,7 +21733,7 @@ var LockfileReader = class LockfileReader extends Context.Service()("@effected/w
|
|
|
21678
21733
|
};
|
|
21679
21734
|
|
|
21680
21735
|
//#endregion
|
|
21681
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21736
|
+
//#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
|
|
21682
21737
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
21683
21738
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
21684
21739
|
/**
|
|
@@ -21838,7 +21893,7 @@ var PublishabilityDetector = class extends Context.Service()("@effected/workspac
|
|
|
21838
21893
|
};
|
|
21839
21894
|
|
|
21840
21895
|
//#endregion
|
|
21841
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21896
|
+
//#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
|
|
21842
21897
|
/**
|
|
21843
21898
|
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
21844
21899
|
*
|
|
@@ -21925,7 +21980,7 @@ const unanimousVersionOf = (index, dependency) => {
|
|
|
21925
21980
|
};
|
|
21926
21981
|
|
|
21927
21982
|
//#endregion
|
|
21928
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21983
|
+
//#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
|
|
21929
21984
|
/**
|
|
21930
21985
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
21931
21986
|
* resolution semantic in the package.
|
|
@@ -22435,7 +22490,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends Context.Service()("@effe
|
|
|
22435
22490
|
};
|
|
22436
22491
|
|
|
22437
22492
|
//#endregion
|
|
22438
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22493
|
+
//#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
|
|
22439
22494
|
const EMPTY = Object.freeze(Object.create(null));
|
|
22440
22495
|
const DependencyMap = Schema.Record(Schema.String, Schema.String).pipe(Schema.withDecodingDefaultKey(Effect.succeed(EMPTY)), Schema.withConstructorDefault(Effect.succeed(EMPTY)));
|
|
22441
22496
|
/**
|
|
@@ -22659,7 +22714,7 @@ var WorkspaceStateSnapshot = class extends Schema.Class("WorkspaceStateSnapshot"
|
|
|
22659
22714
|
};
|
|
22660
22715
|
|
|
22661
22716
|
//#endregion
|
|
22662
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22717
|
+
//#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
|
|
22663
22718
|
/** Whether `value` is a non-null, non-array object. */
|
|
22664
22719
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
22665
22720
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -22937,7 +22992,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends Context.Service()("@ef
|
|
|
22937
22992
|
};
|
|
22938
22993
|
|
|
22939
22994
|
//#endregion
|
|
22940
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22995
|
+
//#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
|
|
22941
22996
|
const compose = (options, catalogsFactory) => {
|
|
22942
22997
|
const roots = WorkspaceRoot.layer;
|
|
22943
22998
|
const detector = PackageManagerDetector.layer;
|
|
@@ -61219,7 +61274,7 @@ function validatePackages(packages) {
|
|
|
61219
61274
|
}
|
|
61220
61275
|
|
|
61221
61276
|
//#endregion
|
|
61222
|
-
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.
|
|
61277
|
+
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.9/node_modules/@changesets/get-dependents-graph/dist/index.mjs
|
|
61223
61278
|
var src_default = new Proxy({}, { get(target, color) {
|
|
61224
61279
|
target[color] ??= (text) => styleText(color, text);
|
|
61225
61280
|
return target[color];
|
|
@@ -61340,7 +61395,7 @@ function getDependentsGraph(packages, opts) {
|
|
|
61340
61395
|
}
|
|
61341
61396
|
|
|
61342
61397
|
//#endregion
|
|
61343
|
-
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.
|
|
61398
|
+
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.9/node_modules/@changesets/should-skip-package/dist/index.mjs
|
|
61344
61399
|
function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
|
|
61345
61400
|
if (ignore.includes(packageJson.name)) return true;
|
|
61346
61401
|
if (packageJson.private && !allowPrivatePackages) return true;
|
|
@@ -61348,7 +61403,7 @@ function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
|
|
|
61348
61403
|
}
|
|
61349
61404
|
|
|
61350
61405
|
//#endregion
|
|
61351
|
-
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.
|
|
61406
|
+
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.9/node_modules/@changesets/config/dist/index.mjs
|
|
61352
61407
|
const DEFAULT_CONFIG = {
|
|
61353
61408
|
lang: void 0,
|
|
61354
61409
|
message: void 0,
|
|
@@ -62090,9 +62145,9 @@ const WrittenConfigSchema = /* @__PURE__ */ object({
|
|
|
62090
62145
|
linked: rootKey(PackageGroupSchema, "Packages that should be linked together so when they are being released, they will be released at the same version.", []),
|
|
62091
62146
|
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"),
|
|
62092
62147
|
privatePackages: rootKey(/* @__PURE__ */ union([/* @__PURE__ */ object({
|
|
62093
|
-
version: /* @__PURE__ */ optional(/* @__PURE__ */ boolean(),
|
|
62148
|
+
version: /* @__PURE__ */ optional(/* @__PURE__ */ boolean(), false),
|
|
62094
62149
|
tag: /* @__PURE__ */ optional(/* @__PURE__ */ boolean(), false)
|
|
62095
|
-
}), /* @__PURE__ */
|
|
62150
|
+
}), /* @__PURE__ */ boolean()]), "Opt in to tracking non-npm / private packages", {}),
|
|
62096
62151
|
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),
|
|
62097
62152
|
snapshot: rootKey(/* @__PURE__ */ object({
|
|
62098
62153
|
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),
|
|
@@ -62116,11 +62171,11 @@ function normalizeWrittenConfig({ packageNames, writtenConfig }) {
|
|
|
62116
62171
|
else if (writtenConfig.commit === true) config.commit = ["@changesets/cli/commit", { skipCI: "version" }];
|
|
62117
62172
|
if (writtenConfig.ignore != null) config.ignore = globMatch(packageNames, writtenConfig.ignore);
|
|
62118
62173
|
if (typeof writtenConfig.privatePackages !== "object") config.privatePackages = {
|
|
62119
|
-
version: writtenConfig.privatePackages ??
|
|
62120
|
-
tag: false
|
|
62174
|
+
version: writtenConfig.privatePackages ?? false,
|
|
62175
|
+
tag: writtenConfig.privatePackages ?? false
|
|
62121
62176
|
};
|
|
62122
62177
|
else config.privatePackages = {
|
|
62123
|
-
version: writtenConfig.privatePackages.version ??
|
|
62178
|
+
version: writtenConfig.privatePackages.version ?? false,
|
|
62124
62179
|
tag: writtenConfig.privatePackages.tag ?? false
|
|
62125
62180
|
};
|
|
62126
62181
|
return config;
|
|
@@ -62260,7 +62315,7 @@ async function readConfig(cwd, packages) {
|
|
|
62260
62315
|
packages ??= await getPackages(cwd);
|
|
62261
62316
|
return validateConfig(JSON.parse(await fs$1.readFile(path$1.join(packages.rootDir, ".changeset", "config.json"), "utf8")), packages);
|
|
62262
62317
|
}
|
|
62263
|
-
var version = "4.0.0-next.
|
|
62318
|
+
var version = "4.0.0-next.9";
|
|
62264
62319
|
const defaultWrittenConfig = {
|
|
62265
62320
|
["$schema"]: `https://unpkg.com/@changesets/config@${version}/schema.json`,
|
|
62266
62321
|
baseBranch: "main",
|
|
@@ -63552,7 +63607,7 @@ var InternalError = class extends Error {
|
|
|
63552
63607
|
};
|
|
63553
63608
|
|
|
63554
63609
|
//#endregion
|
|
63555
|
-
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.
|
|
63610
|
+
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.9/node_modules/@changesets/git/dist/index.mjs
|
|
63556
63611
|
async function getDivergedCommit(cwd, ref) {
|
|
63557
63612
|
const cmd = await exec("git", [
|
|
63558
63613
|
"merge-base",
|
|
@@ -63576,6 +63631,7 @@ async function getCommitsThatAddFiles(gitPaths, { cwd, short = false }) {
|
|
|
63576
63631
|
const [commitSha, parentSha] = (await exec("git", [
|
|
63577
63632
|
"log",
|
|
63578
63633
|
"--diff-filter=A",
|
|
63634
|
+
"--follow",
|
|
63579
63635
|
"--max-count=1",
|
|
63580
63636
|
short ? "--pretty=format:%h:%p" : "--pretty=format:%H:%p",
|
|
63581
63637
|
gitPath
|
|
@@ -63629,8 +63685,9 @@ async function getChangedChangesetFilesSinceRef({ cwd, ref }) {
|
|
|
63629
63685
|
"--no-relative",
|
|
63630
63686
|
await getDivergedCommit(cwd, ref)
|
|
63631
63687
|
], { nodeOptions: { cwd } });
|
|
63632
|
-
const
|
|
63633
|
-
|
|
63688
|
+
const rootChangesetsRegex = /\.changeset\/[^/]+\.md$/;
|
|
63689
|
+
const preChangesetsRegex = /\.changeset\/pre\/[^/]+\.md$/;
|
|
63690
|
+
return cmd.stdout.toString().trim().split("\n").filter((file) => rootChangesetsRegex.test(file) || preChangesetsRegex.test(file));
|
|
63634
63691
|
} catch (err) {
|
|
63635
63692
|
if (err instanceof GitError) return [];
|
|
63636
63693
|
throw err;
|
|
@@ -65722,7 +65779,7 @@ function applyEdits(text, edits) {
|
|
|
65722
65779
|
}
|
|
65723
65780
|
|
|
65724
65781
|
//#endregion
|
|
65725
|
-
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.
|
|
65782
|
+
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.10/node_modules/@changesets/apply-release-plan/dist/index.mjs
|
|
65726
65783
|
/**
|
|
65727
65784
|
* A simple JSON editing utility that preserves formatting. They specified operation keys
|
|
65728
65785
|
* must exist in the JSON for this implementation.
|
|
@@ -65942,12 +65999,11 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
65942
65999
|
...pkg
|
|
65943
66000
|
};
|
|
65944
66001
|
}), changesets, config, cwd, contextDir);
|
|
65945
|
-
if (releasePlan.preState
|
|
65946
|
-
|
|
66002
|
+
if (releasePlan.preState?.mode === "exit" && snapshot == null) {
|
|
66003
|
+
await fs$1.rm(path$1.join(cwd, ".changeset", "pre.json"), {
|
|
65947
66004
|
recursive: true,
|
|
65948
66005
|
force: true
|
|
65949
66006
|
});
|
|
65950
|
-
else await fs$1.writeFile(path$1.join(cwd, ".changeset", "pre.json"), JSON.stringify(releasePlan.preState, null, 2) + "\n");
|
|
65951
66007
|
touchedFiles.push(path$1.join(cwd, ".changeset", "pre.json"));
|
|
65952
66008
|
}
|
|
65953
66009
|
const versionsToUpdate = releases.map((release) => ({
|
|
@@ -65984,24 +66040,27 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
65984
66040
|
if (pkgJsonPath) touchedFiles.push(pkgJsonPath);
|
|
65985
66041
|
}
|
|
65986
66042
|
if (filesToFormat.length > 0) await (await getFormatter(config.format, cwd))(filesToFormat);
|
|
65987
|
-
|
|
65988
|
-
|
|
65989
|
-
|
|
65990
|
-
|
|
65991
|
-
|
|
65992
|
-
|
|
65993
|
-
|
|
65994
|
-
|
|
65995
|
-
|
|
65996
|
-
|
|
65997
|
-
|
|
65998
|
-
|
|
65999
|
-
|
|
66000
|
-
|
|
66001
|
-
|
|
66043
|
+
const isPreChangesets = releasePlan.preState?.mode === "pre";
|
|
66044
|
+
if (isPreChangesets && changesets.length > 0) await fs$1.mkdir(path$1.resolve(cwd, ".changeset", "pre"), { recursive: true });
|
|
66045
|
+
await Promise.all(changesets.map(async (changeset) => {
|
|
66046
|
+
const changesetPath = path$1.resolve(cwd, ".changeset", `${changeset.id}.md`);
|
|
66047
|
+
if (await fs$1.access(changesetPath).then(() => true, () => false)) {
|
|
66048
|
+
if (!changeset.releases.some((release) => shouldSkipPackage(packagesByName.get(release.name), {
|
|
66049
|
+
ignore: config.ignore,
|
|
66050
|
+
allowPrivatePackages: config.privatePackages.version
|
|
66051
|
+
}))) if (isPreChangesets) {
|
|
66052
|
+
const newChangesetPath = path$1.resolve(cwd, ".changeset", "pre", `${changeset.id}.md`);
|
|
66053
|
+
await fs$1.rename(changesetPath, newChangesetPath);
|
|
66054
|
+
touchedFiles.push(changesetPath, newChangesetPath);
|
|
66055
|
+
} else {
|
|
66056
|
+
await fs$1.rm(changesetPath, {
|
|
66057
|
+
recursive: true,
|
|
66058
|
+
force: true
|
|
66059
|
+
});
|
|
66060
|
+
touchedFiles.push(changesetPath);
|
|
66002
66061
|
}
|
|
66003
|
-
}
|
|
66004
|
-
}
|
|
66062
|
+
}
|
|
66063
|
+
}));
|
|
66005
66064
|
return touchedFiles;
|
|
66006
66065
|
}
|
|
66007
66066
|
async function getNewChangelogEntry(releasesWithPackage, changesets, config, cwd, contextDir) {
|
|
@@ -66074,7 +66133,7 @@ async function updateChangelog(changelogPath, changelog, name) {
|
|
|
66074
66133
|
}
|
|
66075
66134
|
|
|
66076
66135
|
//#endregion
|
|
66077
|
-
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.
|
|
66136
|
+
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.10/node_modules/@changesets/assemble-release-plan/dist/index.mjs
|
|
66078
66137
|
function getHighestReleaseType(releases) {
|
|
66079
66138
|
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`);
|
|
66080
66139
|
let highestReleaseType = "none";
|
|
@@ -66324,7 +66383,7 @@ function getNewVersion(release, preInfo) {
|
|
|
66324
66383
|
function assembleReleasePlan(changesets, packages, config, preState, snapshot) {
|
|
66325
66384
|
const packagesByName = new Map(packages.packages.map((x) => [x.packageJson.name, x]));
|
|
66326
66385
|
const relevantChangesets = getRelevantChangesets(changesets, packagesByName, config, preState);
|
|
66327
|
-
const preInfo = getPreInfo(
|
|
66386
|
+
const preInfo = getPreInfo(packagesByName, config, preState);
|
|
66328
66387
|
const releases = flattenReleases(relevantChangesets, packagesByName, config);
|
|
66329
66388
|
const dependencyGraph = getDependentsGraph(packages, { bumpVersionsWithWorkspaceProtocolOnly: config.bumpVersionsWithWorkspaceProtocolOnly });
|
|
66330
66389
|
let releasesValidated = false;
|
|
@@ -66378,10 +66437,7 @@ function getRelevantChangesets(changesets, packagesByName, config, preState) {
|
|
|
66378
66437
|
else notSkippedPackages.push(release.name);
|
|
66379
66438
|
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`);
|
|
66380
66439
|
}
|
|
66381
|
-
if (preState && preState.mode !== "exit")
|
|
66382
|
-
const usedChangesetIds = new Set(preState.changesets);
|
|
66383
|
-
return changesets.filter((changeset) => !usedChangesetIds.has(changeset.id));
|
|
66384
|
-
}
|
|
66440
|
+
if (preState && preState.mode !== "exit") return changesets.filter((changeset) => !changeset.id.startsWith("pre/"));
|
|
66385
66441
|
return changesets;
|
|
66386
66442
|
}
|
|
66387
66443
|
function getHighestPreVersion(groupKind, packageGroup, packagesByName) {
|
|
@@ -66392,12 +66448,8 @@ function getHighestPreVersion(groupKind, packageGroup, packagesByName) {
|
|
|
66392
66448
|
}
|
|
66393
66449
|
return highestPreVersion;
|
|
66394
66450
|
}
|
|
66395
|
-
function getPreInfo(
|
|
66451
|
+
function getPreInfo(packagesByName, config, preState) {
|
|
66396
66452
|
if (preState == null) return;
|
|
66397
|
-
const updatedPreState = {
|
|
66398
|
-
...preState,
|
|
66399
|
-
changesets: changesets.map((changeset) => changeset.id)
|
|
66400
|
-
};
|
|
66401
66453
|
const preVersions = /* @__PURE__ */ new Map();
|
|
66402
66454
|
for (const [, pkg] of packagesByName) {
|
|
66403
66455
|
if (shouldSkipPackage(pkg, {
|
|
@@ -66415,13 +66467,13 @@ function getPreInfo(changesets, packagesByName, config, preState) {
|
|
|
66415
66467
|
for (const linkedPackage of linkedGroup) preVersions.set(linkedPackage, highestPreVersion);
|
|
66416
66468
|
}
|
|
66417
66469
|
return {
|
|
66418
|
-
state:
|
|
66470
|
+
state: preState,
|
|
66419
66471
|
preVersions
|
|
66420
66472
|
};
|
|
66421
66473
|
}
|
|
66422
66474
|
|
|
66423
66475
|
//#endregion
|
|
66424
|
-
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.
|
|
66476
|
+
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.9/node_modules/@changesets/pre/dist/index.mjs
|
|
66425
66477
|
async function outputFile(filePath, content) {
|
|
66426
66478
|
await fs$1.mkdir(path$1.dirname(filePath), { recursive: true });
|
|
66427
66479
|
await fs$1.writeFile(filePath, content, "utf8");
|
|
@@ -66444,14 +66496,26 @@ async function readPreState(rootDir) {
|
|
|
66444
66496
|
return preState;
|
|
66445
66497
|
}
|
|
66446
66498
|
async function migratePreState(rootDir, preState) {
|
|
66447
|
-
if (preState.initialVersions == null) return preState;
|
|
66448
|
-
delete preState.initialVersions;
|
|
66499
|
+
if (preState.initialVersions == null && preState.changesets == null) return preState;
|
|
66500
|
+
if (preState.initialVersions != null) delete preState.initialVersions;
|
|
66501
|
+
if (preState.changesets != null) {
|
|
66502
|
+
const preChangesetsDir = path$1.resolve(rootDir, ".changeset", "pre");
|
|
66503
|
+
await fs$1.mkdir(preChangesetsDir, { recursive: true });
|
|
66504
|
+
for (const changeset of preState.changesets) {
|
|
66505
|
+
const oldPath = path$1.resolve(rootDir, ".changeset", `${changeset}.md`);
|
|
66506
|
+
const newPath = path$1.resolve(preChangesetsDir, `${changeset}.md`);
|
|
66507
|
+
try {
|
|
66508
|
+
await fs$1.rename(oldPath, newPath);
|
|
66509
|
+
} catch {}
|
|
66510
|
+
}
|
|
66511
|
+
delete preState.changesets;
|
|
66512
|
+
}
|
|
66449
66513
|
await outputFile(path$1.resolve(rootDir, ".changeset", "pre.json"), JSON.stringify(preState, null, 2) + "\n");
|
|
66450
66514
|
return preState;
|
|
66451
66515
|
}
|
|
66452
66516
|
|
|
66453
66517
|
//#endregion
|
|
66454
|
-
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.
|
|
66518
|
+
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.10/node_modules/@changesets/parse/dist/index.mjs
|
|
66455
66519
|
const mdRegex = /\s*---([^]*?)\r?\n\s*---(\s*(?:\n|$)[^]*)/;
|
|
66456
66520
|
const EXAMPLE_FORMAT = `---\n"package-name": patch\n---`;
|
|
66457
66521
|
const validVersionTypes = [
|
|
@@ -66505,7 +66569,7 @@ YAML error: ${e instanceof Error ? e.message : String(e)}\nFrontmatter content:\
|
|
|
66505
66569
|
}
|
|
66506
66570
|
|
|
66507
66571
|
//#endregion
|
|
66508
|
-
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.
|
|
66572
|
+
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.10/node_modules/@changesets/read/dist/index.mjs
|
|
66509
66573
|
const ignoredMdFiles = [
|
|
66510
66574
|
/^README\.md$/i,
|
|
66511
66575
|
"AGENTS.md",
|
|
@@ -66516,30 +66580,40 @@ async function filterChangesetsSinceRef(changesets, changesetBase, sinceRef) {
|
|
|
66516
66580
|
const newHashes = (await getChangedChangesetFilesSinceRef({
|
|
66517
66581
|
cwd: changesetBase,
|
|
66518
66582
|
ref: sinceRef
|
|
66519
|
-
})).map((c) => c.
|
|
66583
|
+
})).map((c) => c.replace(/^.*\.changeset\//, ""));
|
|
66520
66584
|
return changesets.filter((dir) => newHashes.includes(dir));
|
|
66521
66585
|
}
|
|
66522
66586
|
async function readChangesets(rootDir, sinceRef) {
|
|
66523
66587
|
const changesetBase = path$1.join(rootDir, ".changeset");
|
|
66524
|
-
let
|
|
66588
|
+
let changesets = [];
|
|
66525
66589
|
try {
|
|
66526
|
-
|
|
66590
|
+
changesets.push(...await fs$1.readdir(changesetBase));
|
|
66527
66591
|
} catch (err) {
|
|
66528
66592
|
if (err.code === "ENOENT") throw new Error("There is no .changeset directory in this project", { cause: err });
|
|
66529
66593
|
throw err;
|
|
66530
66594
|
}
|
|
66531
|
-
|
|
66532
|
-
|
|
66595
|
+
try {
|
|
66596
|
+
changesets.push(...(await fs$1.readdir(path$1.join(changesetBase, "pre"))).map((file) => `pre/${file}`));
|
|
66597
|
+
} catch (err) {
|
|
66598
|
+
if (err.code !== "ENOENT") throw err;
|
|
66599
|
+
}
|
|
66600
|
+
console.log(changesets);
|
|
66601
|
+
if (sinceRef != null) changesets = await filterChangesetsSinceRef(changesets, changesetBase, sinceRef);
|
|
66602
|
+
changesets = changesets.filter((file) => {
|
|
66603
|
+
file = path$1.basename(file);
|
|
66604
|
+
return !file.startsWith(".") && file.endsWith(".md") && !ignoredMdFiles.some((pattern) => typeof pattern === "string" ? pattern === file : pattern.test(file));
|
|
66605
|
+
});
|
|
66606
|
+
const changesetContents = changesets.map(async (file) => {
|
|
66533
66607
|
return {
|
|
66534
66608
|
...parseChangesetFile(await fs$1.readFile(path$1.join(changesetBase, file), "utf8")),
|
|
66535
|
-
id: file.replace(
|
|
66609
|
+
id: file.replace(/\.md$/, "")
|
|
66536
66610
|
};
|
|
66537
66611
|
});
|
|
66538
66612
|
return await Promise.all(changesetContents);
|
|
66539
66613
|
}
|
|
66540
66614
|
|
|
66541
66615
|
//#endregion
|
|
66542
|
-
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.
|
|
66616
|
+
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.10/node_modules/@changesets/get-release-plan/dist/index.mjs
|
|
66543
66617
|
async function getReleasePlan(cwd, sinceRef, passedConfig) {
|
|
66544
66618
|
const packages = await getPackages(cwd);
|
|
66545
66619
|
const configResult = await readConfig(packages.rootDir, packages);
|