@savvy-web/silk 3.4.0 → 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
|
@@ -2338,7 +2338,7 @@ var GlobSet = class GlobSet extends effect.Schema.Class("GlobSet")(effect.Schema
|
|
|
2338
2338
|
}
|
|
2339
2339
|
};
|
|
2340
2340
|
//#endregion
|
|
2341
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
2341
|
+
//#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
|
|
2342
2342
|
/**
|
|
2343
2343
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2344
2344
|
* when the format is `"bun"`.
|
|
@@ -2359,7 +2359,7 @@ var BunExtension = class extends effect.Schema.Class("BunExtension")({
|
|
|
2359
2359
|
trustedDependencies: effect.Schema.optionalKey(effect.Schema.Array(effect.Schema.String))
|
|
2360
2360
|
}) {};
|
|
2361
2361
|
//#endregion
|
|
2362
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2362
|
+
//#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
|
|
2363
2363
|
/**
|
|
2364
2364
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2365
2365
|
* version ranges.
|
|
@@ -2405,7 +2405,7 @@ var CatalogResolver = class CatalogResolver extends effect.Context.Service()("@e
|
|
|
2405
2405
|
static noop = effect.Layer.succeed(CatalogResolver, { rangeOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2406
2406
|
};
|
|
2407
2407
|
//#endregion
|
|
2408
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2408
|
+
//#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
|
|
2409
2409
|
/**
|
|
2410
2410
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2411
2411
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2466,7 +2466,7 @@ var WorkspaceResolver = class WorkspaceResolver extends effect.Context.Service()
|
|
|
2466
2466
|
static noop = effect.Layer.succeed(WorkspaceResolver, { versionOf: () => effect.Effect.succeed(effect.Option.none()) });
|
|
2467
2467
|
};
|
|
2468
2468
|
//#endregion
|
|
2469
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2469
|
+
//#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
|
|
2470
2470
|
/**
|
|
2471
2471
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2472
2472
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2510,7 +2510,7 @@ var CatalogAssemblyError = class extends effect.Schema.TaggedErrorClass()("Catal
|
|
|
2510
2510
|
}
|
|
2511
2511
|
};
|
|
2512
2512
|
//#endregion
|
|
2513
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
2513
|
+
//#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
|
|
2514
2514
|
/**
|
|
2515
2515
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2516
2516
|
* way consumers branch on it.
|
|
@@ -2542,7 +2542,7 @@ Object.fromEntries(Object.entries({
|
|
|
2542
2542
|
optional: "optionalDependencies"
|
|
2543
2543
|
}).map(([kind, field]) => [field, kind]));
|
|
2544
2544
|
//#endregion
|
|
2545
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
2545
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/desugar.js
|
|
2546
2546
|
const sv = (major, minor, patch, prerelease = [], build = []) => ({
|
|
2547
2547
|
major,
|
|
2548
2548
|
minor,
|
|
@@ -2631,7 +2631,7 @@ const desugarHyphen = (lower, upper) => {
|
|
|
2631
2631
|
return [comp(">=", lowerVersion)];
|
|
2632
2632
|
};
|
|
2633
2633
|
//#endregion
|
|
2634
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
2634
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/grammar.js
|
|
2635
2635
|
/** Private control-flow exception; never escapes the entry points. */
|
|
2636
2636
|
var ParseFailure = class {
|
|
2637
2637
|
position;
|
|
@@ -3031,7 +3031,7 @@ const formatComparator = (c) => {
|
|
|
3031
3031
|
/** Print comparator sets as `a b || c d`. */
|
|
3032
3032
|
const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
|
|
3033
3033
|
//#endregion
|
|
3034
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3034
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/order.js
|
|
3035
3035
|
/**
|
|
3036
3036
|
* Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
|
|
3037
3037
|
* identifiers always have lower precedence than alphanumeric ones; numerics
|
|
@@ -3084,7 +3084,7 @@ const compareBuild = (a, b) => {
|
|
|
3084
3084
|
return 0;
|
|
3085
3085
|
};
|
|
3086
3086
|
//#endregion
|
|
3087
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3087
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/SemVer.js
|
|
3088
3088
|
/**
|
|
3089
3089
|
* Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
|
|
3090
3090
|
*
|
|
@@ -3595,7 +3595,7 @@ var SemVerBump = class {
|
|
|
3595
3595
|
}
|
|
3596
3596
|
};
|
|
3597
3597
|
//#endregion
|
|
3598
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3598
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/Comparator.js
|
|
3599
3599
|
/**
|
|
3600
3600
|
* Indicates that a string could not be parsed as a single comparator.
|
|
3601
3601
|
*
|
|
@@ -3729,7 +3729,7 @@ var Comparator = class Comparator extends effect.Schema.Class("Comparator")({
|
|
|
3729
3729
|
}
|
|
3730
3730
|
};
|
|
3731
3731
|
//#endregion
|
|
3732
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3732
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/normalize.js
|
|
3733
3733
|
const operatorWeight = (op) => {
|
|
3734
3734
|
switch (op) {
|
|
3735
3735
|
case ">=": return 0;
|
|
@@ -3760,7 +3760,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
|
|
|
3760
3760
|
/** Normalize every comparator set in a range: sort and deduplicate each independently. */
|
|
3761
3761
|
const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
3762
3762
|
//#endregion
|
|
3763
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.3.
|
|
3763
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/Range.js
|
|
3764
3764
|
/**
|
|
3765
3765
|
* Indicates that a string could not be parsed as a range expression.
|
|
3766
3766
|
*
|
|
@@ -3868,17 +3868,54 @@ sets: effect.Schema.Array(effect.Schema.Array(Comparator)) }) {
|
|
|
3868
3868
|
/**
|
|
3869
3869
|
* Test whether a version satisfies a range; see {@link Range.test} for the
|
|
3870
3870
|
* prerelease matching rule. Dual API.
|
|
3871
|
+
*
|
|
3872
|
+
* @remarks
|
|
3873
|
+
* **Data-first order is `(version, range)`** — the version being tested
|
|
3874
|
+
* comes first, the range it is tested against second. The data-last form
|
|
3875
|
+
* takes the range: `Range.satisfies(range)` applied to a version.
|
|
3876
|
+
*
|
|
3877
|
+
* Worth stating because the two parameters are distinct classes and the
|
|
3878
|
+
* order is not recoverable from the call site. TypeScript rejects a flipped
|
|
3879
|
+
* call outright, so this only bites callers without type checking — which
|
|
3880
|
+
* includes the untyped `node --input-type=module` probes this repo's own
|
|
3881
|
+
* evidence ladder calls for. There, `Range.satisfies(range, version)`
|
|
3882
|
+
* dispatches data-first, binds the `Range` to `version`, and dies with
|
|
3883
|
+
* `TypeError: range.test is not a function` — a message naming the
|
|
3884
|
+
* parameter that received the *version*, so it reads as a defect inside
|
|
3885
|
+
* this package rather than a caller error.
|
|
3886
|
+
*
|
|
3887
|
+
* The same order and the same hazard apply to `Range.filter`,
|
|
3888
|
+
* {@link Range.maxSatisfying} and {@link Range.minSatisfying}: subject
|
|
3889
|
+
* first, range second.
|
|
3871
3890
|
*/
|
|
3872
3891
|
static satisfies = effect.Function.dual(2, (version, range) => range.test(version));
|
|
3873
|
-
/**
|
|
3892
|
+
/**
|
|
3893
|
+
* Filter versions that satisfy a range, preserving order. Dual API.
|
|
3894
|
+
*
|
|
3895
|
+
* @remarks
|
|
3896
|
+
* Data-first order is `(versions, range)` — see {@link Range.satisfies}
|
|
3897
|
+
* for why the order is spelled out.
|
|
3898
|
+
*/
|
|
3874
3899
|
static filter = effect.Function.dual(2, (versions, range) => range.filter(versions));
|
|
3875
|
-
/**
|
|
3900
|
+
/**
|
|
3901
|
+
* Highest satisfying version, or `Option.none()`. Dual API.
|
|
3902
|
+
*
|
|
3903
|
+
* @remarks
|
|
3904
|
+
* Data-first order is `(versions, range)` — see {@link Range.satisfies}
|
|
3905
|
+
* for why the order is spelled out.
|
|
3906
|
+
*/
|
|
3876
3907
|
static maxSatisfying = effect.Function.dual(2, (versions, range) => {
|
|
3877
3908
|
let best;
|
|
3878
3909
|
for (const v of versions) if (range.test(v) && (best === void 0 || v.gt(best))) best = v;
|
|
3879
3910
|
return best === void 0 ? effect.Option.none() : effect.Option.some(best);
|
|
3880
3911
|
});
|
|
3881
|
-
/**
|
|
3912
|
+
/**
|
|
3913
|
+
* Lowest satisfying version, or `Option.none()`. Dual API.
|
|
3914
|
+
*
|
|
3915
|
+
* @remarks
|
|
3916
|
+
* Data-first order is `(versions, range)` — see {@link Range.satisfies}
|
|
3917
|
+
* for why the order is spelled out.
|
|
3918
|
+
*/
|
|
3882
3919
|
static minSatisfying = effect.Function.dual(2, (versions, range) => {
|
|
3883
3920
|
let best;
|
|
3884
3921
|
for (const v of versions) if (range.test(v) && (best === void 0 || v.lt(best))) best = v;
|
|
@@ -4088,7 +4125,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4088
4125
|
return true;
|
|
4089
4126
|
};
|
|
4090
4127
|
//#endregion
|
|
4091
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
4128
|
+
//#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
|
|
4092
4129
|
/**
|
|
4093
4130
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
4094
4131
|
*
|
|
@@ -4295,7 +4332,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4295
4332
|
FromString: fromString
|
|
4296
4333
|
});
|
|
4297
4334
|
//#endregion
|
|
4298
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
4335
|
+
//#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
|
|
4299
4336
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4300
4337
|
const COREPACK_RE = /^(sha1|sha224|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4301
4338
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4594,7 +4631,7 @@ var LocalExec = class LocalExec extends effect.Context.Service()("@effected/comm
|
|
|
4594
4631
|
static layerTest = (overrides = {}) => effect.Layer.succeed(LocalExec, LocalExec.makeTest(overrides));
|
|
4595
4632
|
};
|
|
4596
4633
|
//#endregion
|
|
4597
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.8.
|
|
4634
|
+
//#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
|
|
4598
4635
|
const MS_PER_MINUTE = 6e4;
|
|
4599
4636
|
/**
|
|
4600
4637
|
* A source's partial contribution to a {@link ReleaseAgeGate}: the effective
|
|
@@ -4764,7 +4801,7 @@ var ReleaseAgeGate = class ReleaseAgeGate extends effect.Schema.Class("ReleaseAg
|
|
|
4764
4801
|
}
|
|
4765
4802
|
};
|
|
4766
4803
|
//#endregion
|
|
4767
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4804
|
+
//#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
|
|
4768
4805
|
/**
|
|
4769
4806
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
4770
4807
|
*
|
|
@@ -4802,7 +4839,7 @@ var ImporterDependency = class extends effect.Schema.Class("ImporterDependency")
|
|
|
4802
4839
|
depType: DependencyField
|
|
4803
4840
|
}) {};
|
|
4804
4841
|
//#endregion
|
|
4805
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4842
|
+
//#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
|
|
4806
4843
|
/**
|
|
4807
4844
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
4808
4845
|
*
|
|
@@ -4826,7 +4863,7 @@ var LockfileImporter = class extends effect.Schema.Class("LockfileImporter")({
|
|
|
4826
4863
|
dependencies: effect.Schema.Array(ImporterDependency)
|
|
4827
4864
|
}) {};
|
|
4828
4865
|
//#endregion
|
|
4829
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4866
|
+
//#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
|
|
4830
4867
|
const EMPTY_DEPENDENCIES = {};
|
|
4831
4868
|
/**
|
|
4832
4869
|
* A package resolved from a lockfile.
|
|
@@ -4861,7 +4898,7 @@ var ResolvedPackage = class extends effect.Schema.Class("ResolvedPackage")({
|
|
|
4861
4898
|
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)))
|
|
4862
4899
|
}) {};
|
|
4863
4900
|
//#endregion
|
|
4864
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4901
|
+
//#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
|
|
4865
4902
|
/**
|
|
4866
4903
|
* A directed dependency edge between two workspace packages as recorded in
|
|
4867
4904
|
* the lockfile.
|
|
@@ -4883,7 +4920,7 @@ var WorkspaceDependency = class extends effect.Schema.Class("WorkspaceDependency
|
|
|
4883
4920
|
constraint: effect.Schema.String
|
|
4884
4921
|
}) {};
|
|
4885
4922
|
//#endregion
|
|
4886
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4923
|
+
//#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
|
|
4887
4924
|
/**
|
|
4888
4925
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
4889
4926
|
* when the format is `"pnpm"`.
|
|
@@ -4908,7 +4945,7 @@ var PnpmExtension = class extends effect.Schema.Class("PnpmExtension")({
|
|
|
4908
4945
|
}))
|
|
4909
4946
|
}) {};
|
|
4910
4947
|
//#endregion
|
|
4911
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4948
|
+
//#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
|
|
4912
4949
|
/**
|
|
4913
4950
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
4914
4951
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -4946,7 +4983,7 @@ const FILENAMES = {
|
|
|
4946
4983
|
*/
|
|
4947
4984
|
const filenameFor = (format) => FILENAMES[format][0];
|
|
4948
4985
|
//#endregion
|
|
4949
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
4986
|
+
//#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
|
|
4950
4987
|
/**
|
|
4951
4988
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
4952
4989
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -6875,7 +6912,7 @@ var JsoncModifier = class {
|
|
|
6875
6912
|
});
|
|
6876
6913
|
};
|
|
6877
6914
|
//#endregion
|
|
6878
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
6915
|
+
//#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
|
|
6879
6916
|
const DepRecord$2 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
6880
6917
|
const BunWorkspaceEntry = effect.Schema.Struct({
|
|
6881
6918
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -6968,7 +7005,7 @@ const toFields$3 = (raw) => effect.Effect.gen(function* () {
|
|
|
6968
7005
|
};
|
|
6969
7006
|
});
|
|
6970
7007
|
//#endregion
|
|
6971
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
7008
|
+
//#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
|
|
6972
7009
|
const DepRecord$1 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
6973
7010
|
const NpmPackageEntry = effect.Schema.Struct({
|
|
6974
7011
|
name: effect.Schema.optionalKey(effect.Schema.String),
|
|
@@ -13890,7 +13927,7 @@ function deepEqualValues(a, b) {
|
|
|
13890
13927
|
return false;
|
|
13891
13928
|
}
|
|
13892
13929
|
//#endregion
|
|
13893
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
13930
|
+
//#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
|
|
13894
13931
|
/**
|
|
13895
13932
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
13896
13933
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -13960,7 +13997,7 @@ const selectSoleDocument = (content) => effect.Effect.gen(function* () {
|
|
|
13960
13997
|
};
|
|
13961
13998
|
});
|
|
13962
13999
|
//#endregion
|
|
13963
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14000
|
+
//#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
|
|
13964
14001
|
const PnpmImporterDeps = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.Struct({
|
|
13965
14002
|
specifier: effect.Schema.String,
|
|
13966
14003
|
version: effect.Schema.String
|
|
@@ -14085,7 +14122,7 @@ const toFields$1 = (raw) => effect.Effect.gen(function* () {
|
|
|
14085
14122
|
};
|
|
14086
14123
|
});
|
|
14087
14124
|
//#endregion
|
|
14088
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14125
|
+
//#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
|
|
14089
14126
|
const YarnLockfileRaw = effect.Schema.Record(effect.Schema.String, effect.Schema.Unknown);
|
|
14090
14127
|
const DepRecord = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
|
|
14091
14128
|
const YarnEntry = effect.Schema.Struct({
|
|
@@ -14208,7 +14245,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
14208
14245
|
return Object.fromEntries(Object.entries(deps).map(([name, value]) => [name, value.startsWith("npm:") ? value.slice(4) : value]));
|
|
14209
14246
|
};
|
|
14210
14247
|
//#endregion
|
|
14211
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14248
|
+
//#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
|
|
14212
14249
|
const EMPTY_IMPORTERS = [];
|
|
14213
14250
|
/**
|
|
14214
14251
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -14452,7 +14489,7 @@ var Lockfile = class Lockfile extends effect.Schema.Class("Lockfile")({
|
|
|
14452
14489
|
}
|
|
14453
14490
|
};
|
|
14454
14491
|
//#endregion
|
|
14455
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.
|
|
14492
|
+
//#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
|
|
14456
14493
|
/**
|
|
14457
14494
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
14458
14495
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -14568,7 +14605,7 @@ var LockfileIntegrity = class LockfileIntegrity extends effect.Schema.Class("Loc
|
|
|
14568
14605
|
}
|
|
14569
14606
|
};
|
|
14570
14607
|
//#endregion
|
|
14571
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
14608
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Dependency.js
|
|
14572
14609
|
/**
|
|
14573
14610
|
* A resolved dependency entry pairing a package name with its version
|
|
14574
14611
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -14632,7 +14669,7 @@ var Dependency = class extends effect.Schema.Class("Dependency")({
|
|
|
14632
14669
|
}
|
|
14633
14670
|
};
|
|
14634
14671
|
//#endregion
|
|
14635
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
14672
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/DevEngines.js
|
|
14636
14673
|
/**
|
|
14637
14674
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
14638
14675
|
*
|
|
@@ -16187,7 +16224,7 @@ effect.Schema.String.pipe(effect.Schema.decodeTo(SpdxExpressionUnion, effect.Sch
|
|
|
16187
16224
|
encode: (expression) => effect.Effect.succeed(serialize$1(expression))
|
|
16188
16225
|
})));
|
|
16189
16226
|
//#endregion
|
|
16190
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16227
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/License.js
|
|
16191
16228
|
/**
|
|
16192
16229
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
16193
16230
|
*
|
|
@@ -16222,7 +16259,7 @@ const isValidSpdx = (value) => {
|
|
|
16222
16259
|
*/
|
|
16223
16260
|
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"));
|
|
16224
16261
|
//#endregion
|
|
16225
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16262
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageManager.js
|
|
16226
16263
|
const PACKAGE_MANAGER_NAME_RE = /^[a-z]+$/;
|
|
16227
16264
|
const invalid$1 = (input, message) => effect.Effect.fail(new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message }));
|
|
16228
16265
|
/**
|
|
@@ -16333,7 +16370,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
|
|
|
16333
16370
|
}
|
|
16334
16371
|
};
|
|
16335
16372
|
//#endregion
|
|
16336
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16373
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageName.js
|
|
16337
16374
|
/**
|
|
16338
16375
|
* Indicates that a string could not be used as a valid npm package name.
|
|
16339
16376
|
*
|
|
@@ -16391,7 +16428,7 @@ const PackageName = Object.assign(effect.Schema.Union([ScopedPackageName, Unscop
|
|
|
16391
16428
|
isScoped
|
|
16392
16429
|
});
|
|
16393
16430
|
//#endregion
|
|
16394
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16431
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Person.js
|
|
16395
16432
|
const parsePersonString = (input) => {
|
|
16396
16433
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
16397
16434
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -16537,7 +16574,7 @@ var Person = class Person extends effect.Schema.Class("Person")({
|
|
|
16537
16574
|
}
|
|
16538
16575
|
};
|
|
16539
16576
|
//#endregion
|
|
16540
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16577
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Repository.js
|
|
16541
16578
|
/** The shorthand hosts npm resolves without a scheme. */
|
|
16542
16579
|
const SHORTHAND_HOSTS = /* @__PURE__ */ new Map([
|
|
16543
16580
|
["github", "https://github.com"],
|
|
@@ -16712,7 +16749,7 @@ var Bugs = class Bugs extends effect.Schema.Class("Bugs")({
|
|
|
16712
16749
|
})));
|
|
16713
16750
|
};
|
|
16714
16751
|
//#endregion
|
|
16715
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16752
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/internal/format.js
|
|
16716
16753
|
const KEY_INDEX = new Map([
|
|
16717
16754
|
"$schema",
|
|
16718
16755
|
"name",
|
|
@@ -16935,7 +16972,7 @@ const renderJson = (raw, options) => {
|
|
|
16935
16972
|
return options.newline ? `${json}\n` : json;
|
|
16936
16973
|
};
|
|
16937
16974
|
//#endregion
|
|
16938
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.
|
|
16975
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Package.js
|
|
16939
16976
|
const toHashMap = effect.SchemaTransformation.transform({
|
|
16940
16977
|
decode: (record) => effect.HashMap.fromIterable(Object.entries(record)),
|
|
16941
16978
|
encode: (map) => Object.fromEntries(effect.HashMap.toEntries(map))
|
|
@@ -17251,7 +17288,7 @@ var Package = class Package extends effect.Schema.Class("Package")({
|
|
|
17251
17288
|
}
|
|
17252
17289
|
};
|
|
17253
17290
|
//#endregion
|
|
17254
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
17291
|
+
//#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
|
|
17255
17292
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
17256
17293
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
17257
17294
|
/**
|
|
@@ -17849,7 +17886,7 @@ var Walker$1 = class {
|
|
|
17849
17886
|
static findRoot = findRoot$1;
|
|
17850
17887
|
};
|
|
17851
17888
|
//#endregion
|
|
17852
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
17889
|
+
//#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
|
|
17853
17890
|
/**
|
|
17854
17891
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
17855
17892
|
*
|
|
@@ -18036,7 +18073,7 @@ var WorkspaceRoot = class WorkspaceRoot extends effect.Context.Service()("@effec
|
|
|
18036
18073
|
static layerTest = (root) => effect.Layer.effect(WorkspaceRoot, WorkspaceRoot.makeTest(root)).pipe(effect.Layer.provide(effect.Path.layer));
|
|
18037
18074
|
};
|
|
18038
18075
|
//#endregion
|
|
18039
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18076
|
+
//#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
|
|
18040
18077
|
/**
|
|
18041
18078
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
18042
18079
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -18054,7 +18091,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
18054
18091
|
*/
|
|
18055
18092
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
18056
18093
|
//#endregion
|
|
18057
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18094
|
+
//#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
|
|
18058
18095
|
/** Directory names never descended into. */
|
|
18059
18096
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
18060
18097
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -18144,7 +18181,7 @@ var Traversal = class {
|
|
|
18144
18181
|
}
|
|
18145
18182
|
};
|
|
18146
18183
|
//#endregion
|
|
18147
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18184
|
+
//#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
|
|
18148
18185
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
18149
18186
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
18150
18187
|
/**
|
|
@@ -18214,7 +18251,7 @@ const enumerate = (root, globs, options) => effect.Effect.gen(function* () {
|
|
|
18214
18251
|
return results;
|
|
18215
18252
|
});
|
|
18216
18253
|
//#endregion
|
|
18217
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18254
|
+
//#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
|
|
18218
18255
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
18219
18256
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
18220
18257
|
const pnpmPatternsOf = (document) => {
|
|
@@ -18271,7 +18308,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
|
|
|
18271
18308
|
return manifestPatternsOf(manifest);
|
|
18272
18309
|
});
|
|
18273
18310
|
//#endregion
|
|
18274
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18311
|
+
//#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
|
|
18275
18312
|
/**
|
|
18276
18313
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
18277
18314
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -18709,7 +18746,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends effect.Context.Service
|
|
|
18709
18746
|
};
|
|
18710
18747
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
18711
18748
|
//#endregion
|
|
18712
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18749
|
+
//#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
|
|
18713
18750
|
/**
|
|
18714
18751
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
18715
18752
|
* because it contains a cycle.
|
|
@@ -20351,7 +20388,7 @@ var Git = class Git extends effect.Context.Service()("@effected/git/Git") {
|
|
|
20351
20388
|
static layerTest = (overrides = {}) => effect.Layer.succeed(Git, Git.makeTest(overrides));
|
|
20352
20389
|
};
|
|
20353
20390
|
//#endregion
|
|
20354
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20391
|
+
//#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
|
|
20355
20392
|
/**
|
|
20356
20393
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
20357
20394
|
*
|
|
@@ -20480,8 +20517,12 @@ var ChangeDetector = class ChangeDetector extends effect.Context.Service()("@eff
|
|
|
20480
20517
|
static layer = effect.Layer.effect(ChangeDetector, ChangeDetector.make);
|
|
20481
20518
|
};
|
|
20482
20519
|
`${process.platform}${process.arch}${process.version.split(".")[0].substring(1)}`;
|
|
20520
|
+
Object.freeze({
|
|
20521
|
+
gh: "https://npm.pkg.github.com/",
|
|
20522
|
+
npmjs: "https://registry.npmjs.org/"
|
|
20523
|
+
});
|
|
20483
20524
|
//#endregion
|
|
20484
|
-
//#region ../../node_modules/.pnpm/@pnpm+error@1100.1.
|
|
20525
|
+
//#region ../../node_modules/.pnpm/@pnpm+error@1100.1.1/node_modules/@pnpm/error/lib/index.js
|
|
20485
20526
|
var PnpmError = class extends Error {
|
|
20486
20527
|
code;
|
|
20487
20528
|
hint;
|
|
@@ -20496,7 +20537,7 @@ var PnpmError = class extends Error {
|
|
|
20496
20537
|
}
|
|
20497
20538
|
};
|
|
20498
20539
|
//#endregion
|
|
20499
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
20540
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.4/node_modules/@pnpm/catalogs.config/lib/getCatalogsFromWorkspaceManifest.js
|
|
20500
20541
|
function getCatalogsFromWorkspaceManifest(workspaceManifest) {
|
|
20501
20542
|
if (workspaceManifest == null) return {};
|
|
20502
20543
|
checkDefaultCatalogIsDefinedOnce(workspaceManifest);
|
|
@@ -20509,7 +20550,7 @@ function checkDefaultCatalogIsDefinedOnce(manifest) {
|
|
|
20509
20550
|
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.");
|
|
20510
20551
|
}
|
|
20511
20552
|
//#endregion
|
|
20512
|
-
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.
|
|
20553
|
+
//#region ../../node_modules/.pnpm/@pnpm+catalogs.config@1100.0.4/node_modules/@pnpm/catalogs.config/lib/mergeCatalogs.js
|
|
20513
20554
|
/**
|
|
20514
20555
|
* Deep-merges catalog definitions, later arguments taking precedence over
|
|
20515
20556
|
* earlier ones at the individual entry level. Use it to fold the catalog
|
|
@@ -20603,7 +20644,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
20603
20644
|
};
|
|
20604
20645
|
}
|
|
20605
20646
|
//#endregion
|
|
20606
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20647
|
+
//#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
|
|
20607
20648
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
20608
20649
|
const inlineCatalogs = (manifest) => {
|
|
20609
20650
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -20667,7 +20708,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
20667
20708
|
});
|
|
20668
20709
|
};
|
|
20669
20710
|
//#endregion
|
|
20670
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20711
|
+
//#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
|
|
20671
20712
|
/** Whether `value` is a non-null, non-array object. */
|
|
20672
20713
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20673
20714
|
/**
|
|
@@ -20854,7 +20895,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends effect.Context.S
|
|
|
20854
20895
|
}) });
|
|
20855
20896
|
};
|
|
20856
20897
|
//#endregion
|
|
20857
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20898
|
+
//#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
|
|
20858
20899
|
/**
|
|
20859
20900
|
* The four package managers this package understands.
|
|
20860
20901
|
*
|
|
@@ -21182,7 +21223,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
|
|
|
21182
21223
|
static layerTest = (overrides = {}) => effect.Layer.succeed(PackageManagerDetector, PackageManagerDetector.makeTest(overrides));
|
|
21183
21224
|
};
|
|
21184
21225
|
//#endregion
|
|
21185
|
-
//#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/LockfileReader.js
|
|
21186
21227
|
/**
|
|
21187
21228
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
21188
21229
|
*
|
|
@@ -21362,7 +21403,7 @@ var LockfileReader = class LockfileReader extends effect.Context.Service()("@eff
|
|
|
21362
21403
|
static layerTest = (overrides = {}) => effect.Layer.succeed(LockfileReader, LockfileReader.makeTest(overrides));
|
|
21363
21404
|
};
|
|
21364
21405
|
//#endregion
|
|
21365
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21406
|
+
//#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
|
|
21366
21407
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
21367
21408
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
21368
21409
|
/**
|
|
@@ -21521,7 +21562,7 @@ var PublishabilityDetector = class extends effect.Context.Service()("@effected/w
|
|
|
21521
21562
|
static layerNone = effect.Layer.succeed(this, this.none);
|
|
21522
21563
|
};
|
|
21523
21564
|
//#endregion
|
|
21524
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21565
|
+
//#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
|
|
21525
21566
|
/**
|
|
21526
21567
|
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
21527
21568
|
*
|
|
@@ -21607,7 +21648,7 @@ const unanimousVersionOf = (index, dependency) => {
|
|
|
21607
21648
|
return agreed;
|
|
21608
21649
|
};
|
|
21609
21650
|
//#endregion
|
|
21610
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21651
|
+
//#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
|
|
21611
21652
|
/**
|
|
21612
21653
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
21613
21654
|
* resolution semantic in the package.
|
|
@@ -22116,7 +22157,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
|
|
|
22116
22157
|
}));
|
|
22117
22158
|
};
|
|
22118
22159
|
//#endregion
|
|
22119
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22160
|
+
//#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
|
|
22120
22161
|
const EMPTY = Object.freeze(Object.create(null));
|
|
22121
22162
|
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)));
|
|
22122
22163
|
/**
|
|
@@ -22339,7 +22380,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
22339
22380
|
}
|
|
22340
22381
|
};
|
|
22341
22382
|
//#endregion
|
|
22342
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22383
|
+
//#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
|
|
22343
22384
|
/** Whether `value` is a non-null, non-array object. */
|
|
22344
22385
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
22345
22386
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -22616,7 +22657,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
|
|
|
22616
22657
|
static layerTest = (overrides = {}) => effect.Layer.succeed(WorkspaceSnapshots, WorkspaceSnapshots.makeTest(overrides));
|
|
22617
22658
|
};
|
|
22618
22659
|
//#endregion
|
|
22619
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22660
|
+
//#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
|
|
22620
22661
|
const compose = (options, catalogsFactory) => {
|
|
22621
22662
|
const roots = WorkspaceRoot.layer;
|
|
22622
22663
|
const detector = PackageManagerDetector.layer;
|
|
@@ -60547,7 +60588,7 @@ function validatePackages(packages) {
|
|
|
60547
60588
|
}
|
|
60548
60589
|
}
|
|
60549
60590
|
//#endregion
|
|
60550
|
-
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.
|
|
60591
|
+
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.9/node_modules/@changesets/get-dependents-graph/dist/index.mjs
|
|
60551
60592
|
var src_default = new Proxy({}, { get(target, color) {
|
|
60552
60593
|
target[color] ??= (text) => (0, node_util.styleText)(color, text);
|
|
60553
60594
|
return target[color];
|
|
@@ -60667,14 +60708,14 @@ function getDependentsGraph(packages, opts) {
|
|
|
60667
60708
|
return simplifiedDependentsGraph;
|
|
60668
60709
|
}
|
|
60669
60710
|
//#endregion
|
|
60670
|
-
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.
|
|
60711
|
+
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.9/node_modules/@changesets/should-skip-package/dist/index.mjs
|
|
60671
60712
|
function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
|
|
60672
60713
|
if (ignore.includes(packageJson.name)) return true;
|
|
60673
60714
|
if (packageJson.private && !allowPrivatePackages) return true;
|
|
60674
60715
|
return !packageJson.version;
|
|
60675
60716
|
}
|
|
60676
60717
|
//#endregion
|
|
60677
|
-
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.
|
|
60718
|
+
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.9/node_modules/@changesets/config/dist/index.mjs
|
|
60678
60719
|
const DEFAULT_CONFIG = {
|
|
60679
60720
|
lang: void 0,
|
|
60680
60721
|
message: void 0,
|
|
@@ -61416,9 +61457,9 @@ const WrittenConfigSchema = /* @__PURE__ */ object({
|
|
|
61416
61457
|
linked: rootKey(PackageGroupSchema, "Packages that should be linked together so when they are being released, they will be released at the same version.", []),
|
|
61417
61458
|
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"),
|
|
61418
61459
|
privatePackages: rootKey(/* @__PURE__ */ union([/* @__PURE__ */ object({
|
|
61419
|
-
version: /* @__PURE__ */ optional(/* @__PURE__ */ boolean(),
|
|
61460
|
+
version: /* @__PURE__ */ optional(/* @__PURE__ */ boolean(), false),
|
|
61420
61461
|
tag: /* @__PURE__ */ optional(/* @__PURE__ */ boolean(), false)
|
|
61421
|
-
}), /* @__PURE__ */
|
|
61462
|
+
}), /* @__PURE__ */ boolean()]), "Opt in to tracking non-npm / private packages", {}),
|
|
61422
61463
|
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),
|
|
61423
61464
|
snapshot: rootKey(/* @__PURE__ */ object({
|
|
61424
61465
|
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),
|
|
@@ -61442,11 +61483,11 @@ function normalizeWrittenConfig({ packageNames, writtenConfig }) {
|
|
|
61442
61483
|
else if (writtenConfig.commit === true) config.commit = ["@changesets/cli/commit", { skipCI: "version" }];
|
|
61443
61484
|
if (writtenConfig.ignore != null) config.ignore = globMatch(packageNames, writtenConfig.ignore);
|
|
61444
61485
|
if (typeof writtenConfig.privatePackages !== "object") config.privatePackages = {
|
|
61445
|
-
version: writtenConfig.privatePackages ??
|
|
61446
|
-
tag: false
|
|
61486
|
+
version: writtenConfig.privatePackages ?? false,
|
|
61487
|
+
tag: writtenConfig.privatePackages ?? false
|
|
61447
61488
|
};
|
|
61448
61489
|
else config.privatePackages = {
|
|
61449
|
-
version: writtenConfig.privatePackages.version ??
|
|
61490
|
+
version: writtenConfig.privatePackages.version ?? false,
|
|
61450
61491
|
tag: writtenConfig.privatePackages.tag ?? false
|
|
61451
61492
|
};
|
|
61452
61493
|
return config;
|
|
@@ -61586,7 +61627,7 @@ async function readConfig(cwd, packages) {
|
|
|
61586
61627
|
packages ??= await getPackages(cwd);
|
|
61587
61628
|
return validateConfig(JSON.parse(await node_fs_promises.readFile(node_path.join(packages.rootDir, ".changeset", "config.json"), "utf8")), packages);
|
|
61588
61629
|
}
|
|
61589
|
-
var version = "4.0.0-next.
|
|
61630
|
+
var version = "4.0.0-next.9";
|
|
61590
61631
|
const defaultConfig = normalizeWrittenConfig({
|
|
61591
61632
|
packageNames: [],
|
|
61592
61633
|
writtenConfig: parse(WrittenConfigSchema, {
|
|
@@ -62870,7 +62911,7 @@ var InternalError = class extends Error {
|
|
|
62870
62911
|
}
|
|
62871
62912
|
};
|
|
62872
62913
|
//#endregion
|
|
62873
|
-
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.
|
|
62914
|
+
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.9/node_modules/@changesets/git/dist/index.mjs
|
|
62874
62915
|
async function getDivergedCommit(cwd, ref) {
|
|
62875
62916
|
const cmd = await exec("git", [
|
|
62876
62917
|
"merge-base",
|
|
@@ -62894,6 +62935,7 @@ async function getCommitsThatAddFiles(gitPaths, { cwd, short = false }) {
|
|
|
62894
62935
|
const [commitSha, parentSha] = (await exec("git", [
|
|
62895
62936
|
"log",
|
|
62896
62937
|
"--diff-filter=A",
|
|
62938
|
+
"--follow",
|
|
62897
62939
|
"--max-count=1",
|
|
62898
62940
|
short ? "--pretty=format:%h:%p" : "--pretty=format:%H:%p",
|
|
62899
62941
|
gitPath
|
|
@@ -62947,8 +62989,9 @@ async function getChangedChangesetFilesSinceRef({ cwd, ref }) {
|
|
|
62947
62989
|
"--no-relative",
|
|
62948
62990
|
await getDivergedCommit(cwd, ref)
|
|
62949
62991
|
], { nodeOptions: { cwd } });
|
|
62950
|
-
const
|
|
62951
|
-
|
|
62992
|
+
const rootChangesetsRegex = /\.changeset\/[^/]+\.md$/;
|
|
62993
|
+
const preChangesetsRegex = /\.changeset\/pre\/[^/]+\.md$/;
|
|
62994
|
+
return cmd.stdout.toString().trim().split("\n").filter((file) => rootChangesetsRegex.test(file) || preChangesetsRegex.test(file));
|
|
62952
62995
|
} catch (err) {
|
|
62953
62996
|
if (err instanceof GitError) return [];
|
|
62954
62997
|
throw err;
|
|
@@ -65015,7 +65058,7 @@ function applyEdits(text, edits) {
|
|
|
65015
65058
|
return text;
|
|
65016
65059
|
}
|
|
65017
65060
|
//#endregion
|
|
65018
|
-
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.
|
|
65061
|
+
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.10/node_modules/@changesets/apply-release-plan/dist/index.mjs
|
|
65019
65062
|
/**
|
|
65020
65063
|
* A simple JSON editing utility that preserves formatting. They specified operation keys
|
|
65021
65064
|
* must exist in the JSON for this implementation.
|
|
@@ -65234,12 +65277,11 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
65234
65277
|
...pkg
|
|
65235
65278
|
};
|
|
65236
65279
|
}), changesets, config, cwd, contextDir);
|
|
65237
|
-
if (releasePlan.preState
|
|
65238
|
-
|
|
65280
|
+
if (releasePlan.preState?.mode === "exit" && snapshot == null) {
|
|
65281
|
+
await node_fs_promises.rm(node_path.join(cwd, ".changeset", "pre.json"), {
|
|
65239
65282
|
recursive: true,
|
|
65240
65283
|
force: true
|
|
65241
65284
|
});
|
|
65242
|
-
else await node_fs_promises.writeFile(node_path.join(cwd, ".changeset", "pre.json"), JSON.stringify(releasePlan.preState, null, 2) + "\n");
|
|
65243
65285
|
touchedFiles.push(node_path.join(cwd, ".changeset", "pre.json"));
|
|
65244
65286
|
}
|
|
65245
65287
|
const versionsToUpdate = releases.map((release) => ({
|
|
@@ -65276,24 +65318,27 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
65276
65318
|
if (pkgJsonPath) touchedFiles.push(pkgJsonPath);
|
|
65277
65319
|
}
|
|
65278
65320
|
if (filesToFormat.length > 0) await (await getFormatter(config.format, cwd))(filesToFormat);
|
|
65279
|
-
|
|
65280
|
-
|
|
65281
|
-
|
|
65282
|
-
|
|
65283
|
-
|
|
65284
|
-
|
|
65285
|
-
|
|
65286
|
-
|
|
65287
|
-
|
|
65288
|
-
|
|
65289
|
-
|
|
65290
|
-
|
|
65291
|
-
|
|
65292
|
-
|
|
65293
|
-
|
|
65321
|
+
const isPreChangesets = releasePlan.preState?.mode === "pre";
|
|
65322
|
+
if (isPreChangesets && changesets.length > 0) await node_fs_promises.mkdir(node_path.resolve(cwd, ".changeset", "pre"), { recursive: true });
|
|
65323
|
+
await Promise.all(changesets.map(async (changeset) => {
|
|
65324
|
+
const changesetPath = node_path.resolve(cwd, ".changeset", `${changeset.id}.md`);
|
|
65325
|
+
if (await node_fs_promises.access(changesetPath).then(() => true, () => false)) {
|
|
65326
|
+
if (!changeset.releases.some((release) => shouldSkipPackage(packagesByName.get(release.name), {
|
|
65327
|
+
ignore: config.ignore,
|
|
65328
|
+
allowPrivatePackages: config.privatePackages.version
|
|
65329
|
+
}))) if (isPreChangesets) {
|
|
65330
|
+
const newChangesetPath = node_path.resolve(cwd, ".changeset", "pre", `${changeset.id}.md`);
|
|
65331
|
+
await node_fs_promises.rename(changesetPath, newChangesetPath);
|
|
65332
|
+
touchedFiles.push(changesetPath, newChangesetPath);
|
|
65333
|
+
} else {
|
|
65334
|
+
await node_fs_promises.rm(changesetPath, {
|
|
65335
|
+
recursive: true,
|
|
65336
|
+
force: true
|
|
65337
|
+
});
|
|
65338
|
+
touchedFiles.push(changesetPath);
|
|
65294
65339
|
}
|
|
65295
|
-
}
|
|
65296
|
-
}
|
|
65340
|
+
}
|
|
65341
|
+
}));
|
|
65297
65342
|
return touchedFiles;
|
|
65298
65343
|
}
|
|
65299
65344
|
async function getNewChangelogEntry(releasesWithPackage, changesets, config, cwd, contextDir) {
|
|
@@ -65365,7 +65410,7 @@ async function updateChangelog(changelogPath, changelog, name) {
|
|
|
65365
65410
|
await node_fs_promises.writeFile(changelogPath, newChangelog);
|
|
65366
65411
|
}
|
|
65367
65412
|
//#endregion
|
|
65368
|
-
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.
|
|
65413
|
+
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.10/node_modules/@changesets/assemble-release-plan/dist/index.mjs
|
|
65369
65414
|
function getHighestReleaseType(releases) {
|
|
65370
65415
|
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`);
|
|
65371
65416
|
let highestReleaseType = "none";
|
|
@@ -65615,7 +65660,7 @@ function getNewVersion(release, preInfo) {
|
|
|
65615
65660
|
function assembleReleasePlan(changesets, packages, config, preState, snapshot) {
|
|
65616
65661
|
const packagesByName = new Map(packages.packages.map((x) => [x.packageJson.name, x]));
|
|
65617
65662
|
const relevantChangesets = getRelevantChangesets(changesets, packagesByName, config, preState);
|
|
65618
|
-
const preInfo = getPreInfo(
|
|
65663
|
+
const preInfo = getPreInfo(packagesByName, config, preState);
|
|
65619
65664
|
const releases = flattenReleases(relevantChangesets, packagesByName, config);
|
|
65620
65665
|
const dependencyGraph = getDependentsGraph(packages, { bumpVersionsWithWorkspaceProtocolOnly: config.bumpVersionsWithWorkspaceProtocolOnly });
|
|
65621
65666
|
let releasesValidated = false;
|
|
@@ -65669,10 +65714,7 @@ function getRelevantChangesets(changesets, packagesByName, config, preState) {
|
|
|
65669
65714
|
else notSkippedPackages.push(release.name);
|
|
65670
65715
|
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`);
|
|
65671
65716
|
}
|
|
65672
|
-
if (preState && preState.mode !== "exit")
|
|
65673
|
-
const usedChangesetIds = new Set(preState.changesets);
|
|
65674
|
-
return changesets.filter((changeset) => !usedChangesetIds.has(changeset.id));
|
|
65675
|
-
}
|
|
65717
|
+
if (preState && preState.mode !== "exit") return changesets.filter((changeset) => !changeset.id.startsWith("pre/"));
|
|
65676
65718
|
return changesets;
|
|
65677
65719
|
}
|
|
65678
65720
|
function getHighestPreVersion(groupKind, packageGroup, packagesByName) {
|
|
@@ -65683,12 +65725,8 @@ function getHighestPreVersion(groupKind, packageGroup, packagesByName) {
|
|
|
65683
65725
|
}
|
|
65684
65726
|
return highestPreVersion;
|
|
65685
65727
|
}
|
|
65686
|
-
function getPreInfo(
|
|
65728
|
+
function getPreInfo(packagesByName, config, preState) {
|
|
65687
65729
|
if (preState == null) return;
|
|
65688
|
-
const updatedPreState = {
|
|
65689
|
-
...preState,
|
|
65690
|
-
changesets: changesets.map((changeset) => changeset.id)
|
|
65691
|
-
};
|
|
65692
65730
|
const preVersions = /* @__PURE__ */ new Map();
|
|
65693
65731
|
for (const [, pkg] of packagesByName) {
|
|
65694
65732
|
if (shouldSkipPackage(pkg, {
|
|
@@ -65706,12 +65744,12 @@ function getPreInfo(changesets, packagesByName, config, preState) {
|
|
|
65706
65744
|
for (const linkedPackage of linkedGroup) preVersions.set(linkedPackage, highestPreVersion);
|
|
65707
65745
|
}
|
|
65708
65746
|
return {
|
|
65709
|
-
state:
|
|
65747
|
+
state: preState,
|
|
65710
65748
|
preVersions
|
|
65711
65749
|
};
|
|
65712
65750
|
}
|
|
65713
65751
|
//#endregion
|
|
65714
|
-
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.
|
|
65752
|
+
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.9/node_modules/@changesets/pre/dist/index.mjs
|
|
65715
65753
|
async function outputFile(filePath, content) {
|
|
65716
65754
|
await node_fs_promises.mkdir(node_path.dirname(filePath), { recursive: true });
|
|
65717
65755
|
await node_fs_promises.writeFile(filePath, content, "utf8");
|
|
@@ -65734,13 +65772,25 @@ async function readPreState(rootDir) {
|
|
|
65734
65772
|
return preState;
|
|
65735
65773
|
}
|
|
65736
65774
|
async function migratePreState(rootDir, preState) {
|
|
65737
|
-
if (preState.initialVersions == null) return preState;
|
|
65738
|
-
delete preState.initialVersions;
|
|
65775
|
+
if (preState.initialVersions == null && preState.changesets == null) return preState;
|
|
65776
|
+
if (preState.initialVersions != null) delete preState.initialVersions;
|
|
65777
|
+
if (preState.changesets != null) {
|
|
65778
|
+
const preChangesetsDir = node_path.resolve(rootDir, ".changeset", "pre");
|
|
65779
|
+
await node_fs_promises.mkdir(preChangesetsDir, { recursive: true });
|
|
65780
|
+
for (const changeset of preState.changesets) {
|
|
65781
|
+
const oldPath = node_path.resolve(rootDir, ".changeset", `${changeset}.md`);
|
|
65782
|
+
const newPath = node_path.resolve(preChangesetsDir, `${changeset}.md`);
|
|
65783
|
+
try {
|
|
65784
|
+
await node_fs_promises.rename(oldPath, newPath);
|
|
65785
|
+
} catch {}
|
|
65786
|
+
}
|
|
65787
|
+
delete preState.changesets;
|
|
65788
|
+
}
|
|
65739
65789
|
await outputFile(node_path.resolve(rootDir, ".changeset", "pre.json"), JSON.stringify(preState, null, 2) + "\n");
|
|
65740
65790
|
return preState;
|
|
65741
65791
|
}
|
|
65742
65792
|
//#endregion
|
|
65743
|
-
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.
|
|
65793
|
+
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.10/node_modules/@changesets/parse/dist/index.mjs
|
|
65744
65794
|
const mdRegex = /\s*---([^]*?)\r?\n\s*---(\s*(?:\n|$)[^]*)/;
|
|
65745
65795
|
const EXAMPLE_FORMAT = `---\n"package-name": patch\n---`;
|
|
65746
65796
|
const validVersionTypes = [
|
|
@@ -65793,7 +65843,7 @@ YAML error: ${e instanceof Error ? e.message : String(e)}\nFrontmatter content:\
|
|
|
65793
65843
|
};
|
|
65794
65844
|
}
|
|
65795
65845
|
//#endregion
|
|
65796
|
-
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.
|
|
65846
|
+
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.10/node_modules/@changesets/read/dist/index.mjs
|
|
65797
65847
|
const ignoredMdFiles = [
|
|
65798
65848
|
/^README\.md$/i,
|
|
65799
65849
|
"AGENTS.md",
|
|
@@ -65804,29 +65854,39 @@ async function filterChangesetsSinceRef(changesets, changesetBase, sinceRef) {
|
|
|
65804
65854
|
const newHashes = (await getChangedChangesetFilesSinceRef({
|
|
65805
65855
|
cwd: changesetBase,
|
|
65806
65856
|
ref: sinceRef
|
|
65807
|
-
})).map((c) => c.
|
|
65857
|
+
})).map((c) => c.replace(/^.*\.changeset\//, ""));
|
|
65808
65858
|
return changesets.filter((dir) => newHashes.includes(dir));
|
|
65809
65859
|
}
|
|
65810
65860
|
async function readChangesets(rootDir, sinceRef) {
|
|
65811
65861
|
const changesetBase = node_path.join(rootDir, ".changeset");
|
|
65812
|
-
let
|
|
65862
|
+
let changesets = [];
|
|
65813
65863
|
try {
|
|
65814
|
-
|
|
65864
|
+
changesets.push(...await node_fs_promises.readdir(changesetBase));
|
|
65815
65865
|
} catch (err) {
|
|
65816
65866
|
if (err.code === "ENOENT") throw new Error("There is no .changeset directory in this project", { cause: err });
|
|
65817
65867
|
throw err;
|
|
65818
65868
|
}
|
|
65819
|
-
|
|
65820
|
-
|
|
65869
|
+
try {
|
|
65870
|
+
changesets.push(...(await node_fs_promises.readdir(node_path.join(changesetBase, "pre"))).map((file) => `pre/${file}`));
|
|
65871
|
+
} catch (err) {
|
|
65872
|
+
if (err.code !== "ENOENT") throw err;
|
|
65873
|
+
}
|
|
65874
|
+
console.log(changesets);
|
|
65875
|
+
if (sinceRef != null) changesets = await filterChangesetsSinceRef(changesets, changesetBase, sinceRef);
|
|
65876
|
+
changesets = changesets.filter((file) => {
|
|
65877
|
+
file = node_path.basename(file);
|
|
65878
|
+
return !file.startsWith(".") && file.endsWith(".md") && !ignoredMdFiles.some((pattern) => typeof pattern === "string" ? pattern === file : pattern.test(file));
|
|
65879
|
+
});
|
|
65880
|
+
const changesetContents = changesets.map(async (file) => {
|
|
65821
65881
|
return {
|
|
65822
65882
|
...parseChangesetFile(await node_fs_promises.readFile(node_path.join(changesetBase, file), "utf8")),
|
|
65823
|
-
id: file.replace(
|
|
65883
|
+
id: file.replace(/\.md$/, "")
|
|
65824
65884
|
};
|
|
65825
65885
|
});
|
|
65826
65886
|
return await Promise.all(changesetContents);
|
|
65827
65887
|
}
|
|
65828
65888
|
//#endregion
|
|
65829
|
-
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.
|
|
65889
|
+
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.10/node_modules/@changesets/get-release-plan/dist/index.mjs
|
|
65830
65890
|
async function getReleasePlan(cwd, sinceRef, passedConfig) {
|
|
65831
65891
|
const packages = await getPackages(cwd);
|
|
65832
65892
|
const configResult = await readConfig(packages.rootDir, packages);
|