@savvy-web/silk 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changesets-changelog.cjs +593 -374
- package/changesets-changelog.d.cts +18 -15
- package/changesets-changelog.d.ts +18 -15
- package/changesets-changelog.js +608 -378
- package/changesets-markdownlint.cjs +593 -374
- package/changesets-markdownlint.d.cts +18 -15
- package/changesets-markdownlint.d.ts +18 -15
- package/changesets-markdownlint.js +608 -378
- package/package.json +5 -5
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
|
@@ -18,7 +18,6 @@ import { basename as basename$1, dirname as dirname$1, isAbsolute as isAbsolute$
|
|
|
18
18
|
import { fileURLToPath as fileURLToPath$1 } from "url";
|
|
19
19
|
import { createRequire as createRequire$1 } from "module";
|
|
20
20
|
import Range from "semver/classes/range.js";
|
|
21
|
-
import * as cp from "node:child_process";
|
|
22
21
|
import { spawn } from "node:child_process";
|
|
23
22
|
import { pipeline } from "node:stream/promises";
|
|
24
23
|
import { PassThrough } from "node:stream";
|
|
@@ -436,7 +435,7 @@ const trimTrailingSlashes = (s) => {
|
|
|
436
435
|
};
|
|
437
436
|
|
|
438
437
|
//#endregion
|
|
439
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
438
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/limits.js
|
|
440
439
|
/** Hard cap on pattern length. Upstream minimatch's MAX_PATTERN_LENGTH (64KB). */
|
|
441
440
|
const MAX_PATTERN_LENGTH = 1024 * 64;
|
|
442
441
|
/** Default brace-expansion output budget. Upstream brace-expansion's EXPANSION_MAX. */
|
|
@@ -471,7 +470,7 @@ const assertCap = (name, value) => {
|
|
|
471
470
|
};
|
|
472
471
|
|
|
473
472
|
//#endregion
|
|
474
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
473
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/unescape.js
|
|
475
474
|
/**
|
|
476
475
|
* Un-escape a string that has been escaped with `escape`.
|
|
477
476
|
*
|
|
@@ -495,12 +494,12 @@ const unescapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = true
|
|
|
495
494
|
};
|
|
496
495
|
|
|
497
496
|
//#endregion
|
|
498
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
497
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/types.js
|
|
499
498
|
/** The globstar marker in a compiled pattern set. */
|
|
500
499
|
const GLOBSTAR = Symbol("globstar **");
|
|
501
500
|
|
|
502
501
|
//#endregion
|
|
503
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
502
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/escape.js
|
|
504
503
|
/**
|
|
505
504
|
* Escape all magic characters in a glob pattern.
|
|
506
505
|
*
|
|
@@ -519,14 +518,14 @@ const escapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = false
|
|
|
519
518
|
};
|
|
520
519
|
|
|
521
520
|
//#endregion
|
|
522
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
521
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/assertValidPattern.js
|
|
523
522
|
const assertValidPattern = (pattern) => {
|
|
524
523
|
if (typeof pattern !== "string") throw new TypeError("invalid pattern");
|
|
525
524
|
if (pattern.length > 65536) throw new GuardExceeded("PatternTooLong", MAX_PATTERN_LENGTH, pattern.length);
|
|
526
525
|
};
|
|
527
526
|
|
|
528
527
|
//#endregion
|
|
529
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
528
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/braceExpressions.js
|
|
530
529
|
const posixClasses = {
|
|
531
530
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
532
531
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -650,7 +649,7 @@ const parseClass = (glob, position) => {
|
|
|
650
649
|
};
|
|
651
650
|
|
|
652
651
|
//#endregion
|
|
653
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
652
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/ast.js
|
|
654
653
|
const types = /* @__PURE__ */ new Set([
|
|
655
654
|
"!",
|
|
656
655
|
"?",
|
|
@@ -1168,7 +1167,7 @@ var AST = class AST {
|
|
|
1168
1167
|
};
|
|
1169
1168
|
|
|
1170
1169
|
//#endregion
|
|
1171
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
1170
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/balancedMatch.js
|
|
1172
1171
|
const maybeMatch = (reg, str) => {
|
|
1173
1172
|
const m = str.match(reg);
|
|
1174
1173
|
return m ? m[0] : null;
|
|
@@ -1227,7 +1226,7 @@ const range = (a, b, str) => {
|
|
|
1227
1226
|
};
|
|
1228
1227
|
|
|
1229
1228
|
//#endregion
|
|
1230
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
1229
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/braceExpansion.js
|
|
1231
1230
|
const escSlash = `\0SLASH${Math.random()}\0`;
|
|
1232
1231
|
const escOpen = `\0OPEN${Math.random()}\0`;
|
|
1233
1232
|
const escClose = `\0CLOSE${Math.random()}\0`;
|
|
@@ -1375,7 +1374,7 @@ function expand_(str, max, isTopInput, depth) {
|
|
|
1375
1374
|
}
|
|
1376
1375
|
|
|
1377
1376
|
//#endregion
|
|
1378
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
1377
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/internal/minimatch.js
|
|
1379
1378
|
const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
|
|
1380
1379
|
const starDotExtTest = (ext) => (f) => !f.startsWith(".") && f.endsWith(ext);
|
|
1381
1380
|
const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
|
|
@@ -1947,7 +1946,7 @@ var Minimatch = class {
|
|
|
1947
1946
|
};
|
|
1948
1947
|
|
|
1949
1948
|
//#endregion
|
|
1950
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
1949
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/GlobPattern.js
|
|
1951
1950
|
/**
|
|
1952
1951
|
* Typed failure raised when a glob pattern trips a compile-time guard:
|
|
1953
1952
|
* over-length, brace-expansion budget exhaustion, or nesting past the depth
|
|
@@ -2200,7 +2199,7 @@ var GlobPattern = class GlobPattern extends Schema.Class("GlobPattern")(Schema.S
|
|
|
2200
2199
|
};
|
|
2201
2200
|
|
|
2202
2201
|
//#endregion
|
|
2203
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
2202
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/GlobSet.js
|
|
2204
2203
|
const exclusionTarget = (pattern) => pattern.startsWith("!") ? pattern.slice(1) : void 0;
|
|
2205
2204
|
const allCompileUnderDefaults = (patterns) => {
|
|
2206
2205
|
for (const pattern of patterns) {
|
|
@@ -2329,7 +2328,7 @@ var GlobSet = class GlobSet extends Schema.Class("GlobSet")(Schema.Struct({ patt
|
|
|
2329
2328
|
};
|
|
2330
2329
|
|
|
2331
2330
|
//#endregion
|
|
2332
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
2331
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/BunExtension.js
|
|
2333
2332
|
/**
|
|
2334
2333
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2335
2334
|
* when the format is `"bun"`.
|
|
@@ -2351,7 +2350,7 @@ var BunExtension = class extends Schema.Class("BunExtension")({
|
|
|
2351
2350
|
}) {};
|
|
2352
2351
|
|
|
2353
2352
|
//#endregion
|
|
2354
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
2353
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/CatalogResolver.js
|
|
2355
2354
|
/**
|
|
2356
2355
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2357
2356
|
* version ranges.
|
|
@@ -2398,7 +2397,7 @@ var CatalogResolver = class CatalogResolver extends Context.Service()("@effected
|
|
|
2398
2397
|
};
|
|
2399
2398
|
|
|
2400
2399
|
//#endregion
|
|
2401
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
2400
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/WorkspaceResolver.js
|
|
2402
2401
|
/**
|
|
2403
2402
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2404
2403
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2460,7 +2459,7 @@ var WorkspaceResolver = class WorkspaceResolver extends Context.Service()("@effe
|
|
|
2460
2459
|
};
|
|
2461
2460
|
|
|
2462
2461
|
//#endregion
|
|
2463
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
2462
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/CatalogAssemblyError.js
|
|
2464
2463
|
/**
|
|
2465
2464
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2466
2465
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2505,7 +2504,7 @@ var CatalogAssemblyError = class extends Schema.TaggedErrorClass()("CatalogAssem
|
|
|
2505
2504
|
};
|
|
2506
2505
|
|
|
2507
2506
|
//#endregion
|
|
2508
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
2507
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/DependencySection.js
|
|
2509
2508
|
/**
|
|
2510
2509
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2511
2510
|
* way consumers branch on it.
|
|
@@ -2539,7 +2538,7 @@ const KIND_TO_FIELD = {
|
|
|
2539
2538
|
const FIELD_TO_KIND = Object.fromEntries(Object.entries(KIND_TO_FIELD).map(([kind, field]) => [field, kind]));
|
|
2540
2539
|
|
|
2541
2540
|
//#endregion
|
|
2542
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
2541
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/internal/desugar.js
|
|
2543
2542
|
const sv = (major, minor, patch, prerelease = [], build = []) => ({
|
|
2544
2543
|
major,
|
|
2545
2544
|
minor,
|
|
@@ -2629,7 +2628,7 @@ const desugarHyphen = (lower, upper) => {
|
|
|
2629
2628
|
};
|
|
2630
2629
|
|
|
2631
2630
|
//#endregion
|
|
2632
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
2631
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/internal/grammar.js
|
|
2633
2632
|
/** Private control-flow exception; never escapes the entry points. */
|
|
2634
2633
|
var ParseFailure = class {
|
|
2635
2634
|
position;
|
|
@@ -3025,7 +3024,7 @@ const formatComparator = (c) => {
|
|
|
3025
3024
|
const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
|
|
3026
3025
|
|
|
3027
3026
|
//#endregion
|
|
3028
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3027
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/internal/order.js
|
|
3029
3028
|
/**
|
|
3030
3029
|
* Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
|
|
3031
3030
|
* identifiers always have lower precedence than alphanumeric ones; numerics
|
|
@@ -3079,7 +3078,7 @@ const compareBuild = (a, b) => {
|
|
|
3079
3078
|
};
|
|
3080
3079
|
|
|
3081
3080
|
//#endregion
|
|
3082
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3081
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/SemVer.js
|
|
3083
3082
|
/**
|
|
3084
3083
|
* Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
|
|
3085
3084
|
*
|
|
@@ -3481,7 +3480,7 @@ var SemVerBump = class {
|
|
|
3481
3480
|
};
|
|
3482
3481
|
|
|
3483
3482
|
//#endregion
|
|
3484
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3483
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/Comparator.js
|
|
3485
3484
|
/**
|
|
3486
3485
|
* Indicates that a string could not be parsed as a single comparator.
|
|
3487
3486
|
*
|
|
@@ -3582,7 +3581,7 @@ var Comparator = class Comparator extends Schema.Class("Comparator")({
|
|
|
3582
3581
|
};
|
|
3583
3582
|
|
|
3584
3583
|
//#endregion
|
|
3585
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3584
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/internal/normalize.js
|
|
3586
3585
|
const operatorWeight = (op) => {
|
|
3587
3586
|
switch (op) {
|
|
3588
3587
|
case ">=": return 0;
|
|
@@ -3614,7 +3613,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
|
|
|
3614
3613
|
const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
|
|
3615
3614
|
|
|
3616
3615
|
//#endregion
|
|
3617
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3616
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/Range.js
|
|
3618
3617
|
/**
|
|
3619
3618
|
* Indicates that a string could not be parsed as a range expression.
|
|
3620
3619
|
*
|
|
@@ -3884,7 +3883,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
3884
3883
|
};
|
|
3885
3884
|
|
|
3886
3885
|
//#endregion
|
|
3887
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
3886
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/DependencySpecifier.js
|
|
3888
3887
|
/**
|
|
3889
3888
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
3890
3889
|
*
|
|
@@ -4092,7 +4091,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4092
4091
|
});
|
|
4093
4092
|
|
|
4094
4093
|
//#endregion
|
|
4095
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.2.
|
|
4094
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.2.1_@effected+semver@0.1.1_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/npm/IntegrityHash.js
|
|
4096
4095
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4097
4096
|
const COREPACK_RE = /^(sha1|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4098
4097
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4146,7 +4145,7 @@ const IntegrityHash = Object.assign(brandedIntegrity, {
|
|
|
4146
4145
|
});
|
|
4147
4146
|
|
|
4148
4147
|
//#endregion
|
|
4149
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4148
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/ImporterDependency.js
|
|
4150
4149
|
/**
|
|
4151
4150
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
4152
4151
|
*
|
|
@@ -4175,7 +4174,7 @@ var ImporterDependency = class extends Schema.Class("ImporterDependency")({
|
|
|
4175
4174
|
}) {};
|
|
4176
4175
|
|
|
4177
4176
|
//#endregion
|
|
4178
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4177
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/LockfileImporter.js
|
|
4179
4178
|
/**
|
|
4180
4179
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
4181
4180
|
*
|
|
@@ -4200,7 +4199,7 @@ var LockfileImporter = class extends Schema.Class("LockfileImporter")({
|
|
|
4200
4199
|
}) {};
|
|
4201
4200
|
|
|
4202
4201
|
//#endregion
|
|
4203
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4202
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/ResolvedPackage.js
|
|
4204
4203
|
const EMPTY_DEPENDENCIES = {};
|
|
4205
4204
|
/**
|
|
4206
4205
|
* A package resolved from a lockfile.
|
|
@@ -4236,7 +4235,7 @@ var ResolvedPackage = class extends Schema.Class("ResolvedPackage")({
|
|
|
4236
4235
|
}) {};
|
|
4237
4236
|
|
|
4238
4237
|
//#endregion
|
|
4239
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4238
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/WorkspaceDependency.js
|
|
4240
4239
|
/**
|
|
4241
4240
|
* A directed dependency edge between two workspace packages as recorded in
|
|
4242
4241
|
* the lockfile.
|
|
@@ -4259,7 +4258,7 @@ var WorkspaceDependency = class extends Schema.Class("WorkspaceDependency")({
|
|
|
4259
4258
|
}) {};
|
|
4260
4259
|
|
|
4261
4260
|
//#endregion
|
|
4262
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4261
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/PnpmExtension.js
|
|
4263
4262
|
/**
|
|
4264
4263
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
4265
4264
|
* when the format is `"pnpm"`.
|
|
@@ -4285,7 +4284,7 @@ var PnpmExtension = class extends Schema.Class("PnpmExtension")({
|
|
|
4285
4284
|
}) {};
|
|
4286
4285
|
|
|
4287
4286
|
//#endregion
|
|
4288
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4287
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/LockfileFormat.js
|
|
4289
4288
|
/**
|
|
4290
4289
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
4291
4290
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -4320,7 +4319,7 @@ const FILENAMES = {
|
|
|
4320
4319
|
const filenameFor = (format) => FILENAMES[format];
|
|
4321
4320
|
|
|
4322
4321
|
//#endregion
|
|
4323
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4322
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/shared.js
|
|
4324
4323
|
/**
|
|
4325
4324
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
4326
4325
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -4447,7 +4446,7 @@ const extractWorkspaceDeps = (workspaces, workspaceNames) => {
|
|
|
4447
4446
|
};
|
|
4448
4447
|
|
|
4449
4448
|
//#endregion
|
|
4450
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
4449
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/JsoncNode.js
|
|
4451
4450
|
/**
|
|
4452
4451
|
* Discriminator values for JSONC AST node types: the JSON value types
|
|
4453
4452
|
* (`string`/`number`/`boolean`/`null`), the structural types
|
|
@@ -4623,7 +4622,7 @@ function evaluateNode(node, depth) {
|
|
|
4623
4622
|
}
|
|
4624
4623
|
|
|
4625
4624
|
//#endregion
|
|
4626
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
4625
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/internal/scanner.js
|
|
4627
4626
|
const isWhitespace = (ch) => ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 65279;
|
|
4628
4627
|
const isLineBreak$1 = (ch) => ch === 10 || ch === 13 || ch === 8232 || ch === 8233;
|
|
4629
4628
|
const isDigit$1 = (ch) => ch >= 48 && ch <= 57;
|
|
@@ -4920,7 +4919,7 @@ const createScanner$2 = (text, ignoreTrivia = false) => {
|
|
|
4920
4919
|
};
|
|
4921
4920
|
|
|
4922
4921
|
//#endregion
|
|
4923
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
4922
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/internal/skip.js
|
|
4924
4923
|
/**
|
|
4925
4924
|
* Iteratively consume the value beginning at the cursor's current token and
|
|
4926
4925
|
* return its tight end offset (excludes trailing whitespace/comments).
|
|
@@ -4951,7 +4950,7 @@ const skipBalancedValue = (cursor) => {
|
|
|
4951
4950
|
};
|
|
4952
4951
|
|
|
4953
4952
|
//#endregion
|
|
4954
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
4953
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/internal/parser.js
|
|
4955
4954
|
/**
|
|
4956
4955
|
* The public parse-error code vocabulary. The facade builds its `@public`
|
|
4957
4956
|
* `JsoncParseErrorCode` schema from this array; the parser produces these codes
|
|
@@ -5365,7 +5364,7 @@ const parseTree$2 = (text, flags) => {
|
|
|
5365
5364
|
};
|
|
5366
5365
|
|
|
5367
5366
|
//#endregion
|
|
5368
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
5367
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/Jsonc.js
|
|
5369
5368
|
/**
|
|
5370
5369
|
* The single public parse-error code vocabulary, appearing as the `code` field
|
|
5371
5370
|
* of {@link JsoncParseErrorDetail}.
|
|
@@ -5424,6 +5423,58 @@ var JsoncParseOptions = class extends Schema.Class("JsoncParseOptions")({
|
|
|
5424
5423
|
allowTrailingComma: Schema.optionalKey(Schema.Boolean),
|
|
5425
5424
|
allowEmptyContent: Schema.optionalKey(Schema.Boolean)
|
|
5426
5425
|
}) {};
|
|
5426
|
+
/**
|
|
5427
|
+
* The public stringify-error code vocabulary, appearing as the `code` field of
|
|
5428
|
+
* {@link JsoncStringifyError}:
|
|
5429
|
+
*
|
|
5430
|
+
* - `CircularReference` — the value contains a reference cycle, so no finite
|
|
5431
|
+
* JSON text exists for it.
|
|
5432
|
+
* - `BigIntValue` — the value contains a `bigint` (anywhere, top-level or
|
|
5433
|
+
* nested), which JSON cannot represent.
|
|
5434
|
+
* - `TopLevelUnrepresentable` — the top-level value (`undefined`, a function
|
|
5435
|
+
* or a symbol) serializes to no output at all.
|
|
5436
|
+
*
|
|
5437
|
+
* @public
|
|
5438
|
+
*/
|
|
5439
|
+
const JsoncStringifyErrorCode = Schema.Literals([
|
|
5440
|
+
"CircularReference",
|
|
5441
|
+
"BigIntValue",
|
|
5442
|
+
"TopLevelUnrepresentable"
|
|
5443
|
+
]);
|
|
5444
|
+
/**
|
|
5445
|
+
* Options controlling stringify behavior. All fields are omissible; the
|
|
5446
|
+
* vocabulary matches `JsoncFormattingOptions`.
|
|
5447
|
+
*
|
|
5448
|
+
* - `tabSize` — the indent width in spaces when `insertSpaces` is `true`.
|
|
5449
|
+
* Defaults to `2`; `0` produces compact single-line output.
|
|
5450
|
+
* - `insertSpaces` — indent with spaces (`tabSize` of them) when `true`, or a
|
|
5451
|
+
* single tab character when `false`. Defaults to `true`.
|
|
5452
|
+
*
|
|
5453
|
+
* @public
|
|
5454
|
+
*/
|
|
5455
|
+
var JsoncStringifyOptions = class extends Schema.Class("JsoncStringifyOptions")({
|
|
5456
|
+
tabSize: Schema.optionalKey(Schema.Number),
|
|
5457
|
+
insertSpaces: Schema.optionalKey(Schema.Boolean)
|
|
5458
|
+
}) {};
|
|
5459
|
+
/**
|
|
5460
|
+
* Stringification failure: a `JsoncStringifyErrorCode` naming the
|
|
5461
|
+
* failure mode, a human-readable `detail` (the engine's message for thrown
|
|
5462
|
+
* cases — on V8 the circular-reference message includes the offending property
|
|
5463
|
+
* path), and the offending `value`. Raised by {@link Jsonc.stringify},
|
|
5464
|
+
* {@link Jsonc.stringifyResult} and the encode direction of the schema
|
|
5465
|
+
* factories.
|
|
5466
|
+
*
|
|
5467
|
+
* @public
|
|
5468
|
+
*/
|
|
5469
|
+
var JsoncStringifyError = class extends Schema.TaggedErrorClass()("JsoncStringifyError", {
|
|
5470
|
+
code: JsoncStringifyErrorCode,
|
|
5471
|
+
detail: Schema.String,
|
|
5472
|
+
value: Schema.Unknown
|
|
5473
|
+
}) {
|
|
5474
|
+
get message() {
|
|
5475
|
+
return `JSONC stringify failed: ${this.code} — ${this.detail}`;
|
|
5476
|
+
}
|
|
5477
|
+
};
|
|
5427
5478
|
const toFlags = (options) => options === void 0 ? {} : {
|
|
5428
5479
|
disallowComments: options.disallowComments,
|
|
5429
5480
|
allowTrailingComma: options.allowTrailingComma,
|
|
@@ -5583,6 +5634,95 @@ var Jsonc = class Jsonc {
|
|
|
5583
5634
|
return root !== void 0 ? Option.some(root) : Option.none();
|
|
5584
5635
|
});
|
|
5585
5636
|
/**
|
|
5637
|
+
* Stringify a plain JavaScript value as JSON text, synchronously, returning
|
|
5638
|
+
* a `Result` instead of an `Effect`. With no options the output is
|
|
5639
|
+
* byte-identical to `JSON.stringify(value, null, 2)`.
|
|
5640
|
+
*
|
|
5641
|
+
* Plain JSON emission: JSONC comments exist only in the document/edit layer
|
|
5642
|
+
* (`JsoncNode`, `JsoncEdit`, `JsoncFormatter`), so no comment survives — or
|
|
5643
|
+
* can be produced by — value-level stringification.
|
|
5644
|
+
*
|
|
5645
|
+
* Nested unrepresentable values follow `JSON.stringify`'s documented
|
|
5646
|
+
* semantics: `undefined`, functions and symbols are dropped from objects and
|
|
5647
|
+
* become `null` in arrays. The typed failure channel covers only the cases
|
|
5648
|
+
* where output would be absent or an exception thrown — see
|
|
5649
|
+
* `JsoncStringifyErrorCode`. A throwing `toJSON` method or getter is
|
|
5650
|
+
* caller code failing and rethrows as a defect, never a typed error.
|
|
5651
|
+
*
|
|
5652
|
+
* @remarks
|
|
5653
|
+
* {@link Jsonc.stringify} is defined in terms of this function; the two
|
|
5654
|
+
* never diverge. Reach for the `Effect` variant inside Effect code — it
|
|
5655
|
+
* carries the `Jsonc.stringify` tracing span — and for this one at
|
|
5656
|
+
* synchronous boundaries.
|
|
5657
|
+
*
|
|
5658
|
+
* @example
|
|
5659
|
+
* ```ts
|
|
5660
|
+
* import { Jsonc } from "@effected/jsonc";
|
|
5661
|
+
* import { Result } from "effect";
|
|
5662
|
+
*
|
|
5663
|
+
* const ok = Jsonc.stringifyResult({ port: 3000 });
|
|
5664
|
+
* if (Result.isSuccess(ok)) {
|
|
5665
|
+
* console.log(ok.success); // => '{\n "port": 3000\n}'
|
|
5666
|
+
* }
|
|
5667
|
+
*
|
|
5668
|
+
* const bad = Jsonc.stringifyResult(0n);
|
|
5669
|
+
* if (Result.isFailure(bad)) {
|
|
5670
|
+
* console.log(bad.failure.code); // => "BigIntValue"
|
|
5671
|
+
* }
|
|
5672
|
+
* ```
|
|
5673
|
+
*
|
|
5674
|
+
* @param value - The plain JavaScript value to stringify.
|
|
5675
|
+
* @param options - Optional {@link JsoncStringifyOptions}; defaults apply
|
|
5676
|
+
* for omitted fields.
|
|
5677
|
+
* @returns A `Result` succeeding with the JSON text, or failing with a
|
|
5678
|
+
* {@link JsoncStringifyError}.
|
|
5679
|
+
*/
|
|
5680
|
+
static stringifyResult(value, options) {
|
|
5681
|
+
const space = options?.insertSpaces === false ? " " : options?.tabSize ?? 2;
|
|
5682
|
+
let text;
|
|
5683
|
+
try {
|
|
5684
|
+
text = JSON.stringify(value, null, space);
|
|
5685
|
+
} catch (defect) {
|
|
5686
|
+
if (defect instanceof TypeError) {
|
|
5687
|
+
if (/circular|cyclic/i.test(defect.message)) return Result.fail(new JsoncStringifyError({
|
|
5688
|
+
code: "CircularReference",
|
|
5689
|
+
detail: defect.message,
|
|
5690
|
+
value
|
|
5691
|
+
}));
|
|
5692
|
+
if (/bigint/i.test(defect.message)) return Result.fail(new JsoncStringifyError({
|
|
5693
|
+
code: "BigIntValue",
|
|
5694
|
+
detail: defect.message,
|
|
5695
|
+
value
|
|
5696
|
+
}));
|
|
5697
|
+
}
|
|
5698
|
+
throw defect;
|
|
5699
|
+
}
|
|
5700
|
+
if (text === void 0) return Result.fail(new JsoncStringifyError({
|
|
5701
|
+
code: "TopLevelUnrepresentable",
|
|
5702
|
+
detail: "the top-level value (undefined, a function or a symbol) has no JSON representation",
|
|
5703
|
+
value
|
|
5704
|
+
}));
|
|
5705
|
+
return Result.succeed(text);
|
|
5706
|
+
}
|
|
5707
|
+
/**
|
|
5708
|
+
* Stringify a plain JavaScript value as JSON text. With no options the
|
|
5709
|
+
* output is byte-identical to `JSON.stringify(value, null, 2)`. Fails with
|
|
5710
|
+
* {@link JsoncStringifyError} on circular references, `bigint` values and a
|
|
5711
|
+
* top-level value with no JSON representation; nested `undefined`, functions
|
|
5712
|
+
* and symbols follow `JSON.stringify`'s documented semantics (dropped from
|
|
5713
|
+
* objects, `null` in arrays). Comments are a document/edit-layer concern —
|
|
5714
|
+
* value-level stringification never emits them. Defined in terms of
|
|
5715
|
+
* {@link Jsonc.stringifyResult} — synchronous callers can use that variant
|
|
5716
|
+
* directly.
|
|
5717
|
+
*
|
|
5718
|
+
* @param value - The plain JavaScript value to stringify.
|
|
5719
|
+
* @param options - Optional {@link JsoncStringifyOptions}; defaults apply
|
|
5720
|
+
* for omitted fields.
|
|
5721
|
+
* @returns An `Effect` that succeeds with the JSON text, or fails with a
|
|
5722
|
+
* {@link JsoncStringifyError}.
|
|
5723
|
+
*/
|
|
5724
|
+
static stringify = Effect.fn("Jsonc.stringify")((value, options) => Effect.fromResult(Jsonc.stringifyResult(value, options)));
|
|
5725
|
+
/**
|
|
5586
5726
|
* Remove all comments from JSONC, producing valid JSON. Pass a `replaceCh`
|
|
5587
5727
|
* (e.g. `" "`) to replace each comment character instead of deleting it,
|
|
5588
5728
|
* keeping all offsets stable (line breaks inside block comments are kept).
|
|
@@ -5649,8 +5789,11 @@ var Jsonc = class Jsonc {
|
|
|
5649
5789
|
}
|
|
5650
5790
|
/**
|
|
5651
5791
|
* A `Schema<unknown, string>` decoding JSONC with the given `options`
|
|
5652
|
-
* (defaults when omitted). Encoding is
|
|
5653
|
-
*
|
|
5792
|
+
* (defaults when omitted). Encoding is {@link Jsonc.stringifyResult} with
|
|
5793
|
+
* default options (2-space indent, byte-identical to
|
|
5794
|
+
* `JSON.stringify(value, null, 2)`), so comments do not survive a
|
|
5795
|
+
* round-trip encode; a {@link JsoncStringifyError} on the encode side
|
|
5796
|
+
* surfaces as a schema issue.
|
|
5654
5797
|
*
|
|
5655
5798
|
* @remarks
|
|
5656
5799
|
* Schema-producing: each call returns a fresh schema whose derivation caches
|
|
@@ -5677,7 +5820,7 @@ var Jsonc = class Jsonc {
|
|
|
5677
5820
|
}
|
|
5678
5821
|
return Effect.succeed(value);
|
|
5679
5822
|
},
|
|
5680
|
-
encode: (value) => Effect.
|
|
5823
|
+
encode: (value) => Effect.fromResult(Jsonc.stringifyResult(value)).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue(Option.some(value), { message: error.message })))
|
|
5681
5824
|
})));
|
|
5682
5825
|
}
|
|
5683
5826
|
/**
|
|
@@ -5703,10 +5846,53 @@ var Jsonc = class Jsonc {
|
|
|
5703
5846
|
static schema(target, options) {
|
|
5704
5847
|
return Jsonc.fromString(options).pipe(Schema.decodeTo(target));
|
|
5705
5848
|
}
|
|
5849
|
+
/**
|
|
5850
|
+
* Bind a target schema to the JSONC codec once, yielding the composed
|
|
5851
|
+
* schema plus pre-derived `decode`/`encode` directions — the
|
|
5852
|
+
* {@link Jsonc.schema} composition without the generic `Schema` machinery
|
|
5853
|
+
* at every use site. Binds the plain form only: default
|
|
5854
|
+
* {@link JsoncParseOptions} on decode, default stringify options on encode.
|
|
5855
|
+
*
|
|
5856
|
+
* Both directions fail with `Schema.SchemaError`, exactly as
|
|
5857
|
+
* `Schema.decodeEffect`/`Schema.encodeEffect` over {@link Jsonc.schema}
|
|
5858
|
+
* would; the target's decoding/encoding service requirements flow through.
|
|
5859
|
+
*
|
|
5860
|
+
* @remarks
|
|
5861
|
+
* Schema-producing: each call composes a fresh schema and derives both
|
|
5862
|
+
* directions from it. Bind the result to a `const` — that single binding is
|
|
5863
|
+
* the point.
|
|
5864
|
+
*
|
|
5865
|
+
* @example
|
|
5866
|
+
* ```ts
|
|
5867
|
+
* import { Jsonc } from "@effected/jsonc";
|
|
5868
|
+
* import { Effect, Schema } from "effect";
|
|
5869
|
+
*
|
|
5870
|
+
* const Config = Schema.Struct({ port: Schema.Number });
|
|
5871
|
+
* const config = Jsonc.bind(Config);
|
|
5872
|
+
*
|
|
5873
|
+
* const program = Effect.gen(function* () {
|
|
5874
|
+
* const value = yield* config.decode('{ "port": 3000 // dev\n }');
|
|
5875
|
+
* const text = yield* config.encode(value);
|
|
5876
|
+
* return [value, text] as const;
|
|
5877
|
+
* });
|
|
5878
|
+
* ```
|
|
5879
|
+
*
|
|
5880
|
+
* @param target - The domain schema decoded values must satisfy.
|
|
5881
|
+
* @returns A {@link JsoncBoundCodec} carrying the composed schema and its
|
|
5882
|
+
* two pre-bound directions.
|
|
5883
|
+
*/
|
|
5884
|
+
static bind(target) {
|
|
5885
|
+
const schema = Jsonc.schema(target);
|
|
5886
|
+
return {
|
|
5887
|
+
schema,
|
|
5888
|
+
decode: Schema.decodeEffect(schema),
|
|
5889
|
+
encode: Schema.encodeEffect(schema)
|
|
5890
|
+
};
|
|
5891
|
+
}
|
|
5706
5892
|
};
|
|
5707
5893
|
|
|
5708
5894
|
//#endregion
|
|
5709
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
5895
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/JsoncEdit.js
|
|
5710
5896
|
/**
|
|
5711
5897
|
* A range within a JSONC document, expressed as a zero-based character
|
|
5712
5898
|
* `offset` and a `length` in UTF-16 code units. Pass to `JsoncFormatter.format`
|
|
@@ -5756,7 +5942,8 @@ var JsoncEdit = class extends Schema.Class("JsoncEdit")({
|
|
|
5756
5942
|
/**
|
|
5757
5943
|
* Apply `edits` to `text`, producing a new string. Edits are applied in
|
|
5758
5944
|
* reverse-offset order so earlier offsets stay valid; the input `edits`
|
|
5759
|
-
* array is not mutated.
|
|
5945
|
+
* array is not mutated. Overlapping edits are a programmer error and throw
|
|
5946
|
+
* as a defect — `JsoncFormatter` never produces them.
|
|
5760
5947
|
*
|
|
5761
5948
|
* @param text - The source text to edit.
|
|
5762
5949
|
* @param edits - The edits to apply, in any order.
|
|
@@ -5764,6 +5951,11 @@ var JsoncEdit = class extends Schema.Class("JsoncEdit")({
|
|
|
5764
5951
|
*/
|
|
5765
5952
|
static applyAll(text, edits) {
|
|
5766
5953
|
const sorted = [...edits].sort((a, b) => b.offset - a.offset);
|
|
5954
|
+
for (let i = 0; i + 1 < sorted.length; i++) {
|
|
5955
|
+
const upper = sorted[i];
|
|
5956
|
+
const lower = sorted[i + 1];
|
|
5957
|
+
if (lower.offset + lower.length > upper.offset) throw new Error(`JsoncEdit.applyAll received overlapping edits at offsets ${lower.offset} and ${upper.offset} — overlapping edits are a programmer error`);
|
|
5958
|
+
}
|
|
5767
5959
|
let result = text;
|
|
5768
5960
|
for (const edit of sorted) result = result.substring(0, edit.offset) + edit.content + result.substring(edit.offset + edit.length);
|
|
5769
5961
|
return result;
|
|
@@ -5771,7 +5963,7 @@ var JsoncEdit = class extends Schema.Class("JsoncEdit")({
|
|
|
5771
5963
|
};
|
|
5772
5964
|
|
|
5773
5965
|
//#endregion
|
|
5774
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
5966
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/internal/navigate.js
|
|
5775
5967
|
/**
|
|
5776
5968
|
* Resolve `path` against `text`, returning where the target is (or where it
|
|
5777
5969
|
* would be inserted). `path` must be non-empty — the whole-document case is
|
|
@@ -5899,7 +6091,7 @@ function navigate(text, path) {
|
|
|
5899
6091
|
}
|
|
5900
6092
|
|
|
5901
6093
|
//#endregion
|
|
5902
|
-
//#region ../../node_modules/.pnpm/@effected+jsonc@0.
|
|
6094
|
+
//#region ../../node_modules/.pnpm/@effected+jsonc@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/jsonc/JsoncModifier.js
|
|
5903
6095
|
/**
|
|
5904
6096
|
* Raised when `JsoncModifier.modify` cannot navigate the requested path: the
|
|
5905
6097
|
* value at `depth` is not the container kind (`expected`) the next path segment
|
|
@@ -6028,7 +6220,7 @@ var JsoncModifier = class {
|
|
|
6028
6220
|
};
|
|
6029
6221
|
|
|
6030
6222
|
//#endregion
|
|
6031
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
6223
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/bun.js
|
|
6032
6224
|
const DepRecord$2 = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
6033
6225
|
const BunWorkspaceEntry = Schema.Struct({
|
|
6034
6226
|
name: Schema.optionalKey(Schema.String),
|
|
@@ -6122,7 +6314,7 @@ const toFields$3 = (raw) => Effect.gen(function* () {
|
|
|
6122
6314
|
});
|
|
6123
6315
|
|
|
6124
6316
|
//#endregion
|
|
6125
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
6317
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/npm.js
|
|
6126
6318
|
const DepRecord$1 = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
6127
6319
|
const NpmPackageEntry = Schema.Struct({
|
|
6128
6320
|
name: Schema.optionalKey(Schema.String),
|
|
@@ -6221,7 +6413,7 @@ const toFields$2 = (raw) => Effect.gen(function* () {
|
|
|
6221
6413
|
});
|
|
6222
6414
|
|
|
6223
6415
|
//#endregion
|
|
6224
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
6416
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/YamlNode.js
|
|
6225
6417
|
/**
|
|
6226
6418
|
* YAML scalar presentation styles.
|
|
6227
6419
|
*
|
|
@@ -6614,7 +6806,7 @@ function nodeToValue(node, anchors, budget, counting = false) {
|
|
|
6614
6806
|
}
|
|
6615
6807
|
|
|
6616
6808
|
//#endregion
|
|
6617
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
6809
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/diagnostics.js
|
|
6618
6810
|
/** Error codes emitted by the lexer stage. */
|
|
6619
6811
|
const YAML_LEX_ERROR_CODES = [
|
|
6620
6812
|
"UnexpectedCharacter",
|
|
@@ -6693,7 +6885,7 @@ function isFatalCode(code) {
|
|
|
6693
6885
|
}
|
|
6694
6886
|
|
|
6695
6887
|
//#endregion
|
|
6696
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
6888
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/YamlDiagnostic.js
|
|
6697
6889
|
/**
|
|
6698
6890
|
* Error codes emitted by the lexer stage.
|
|
6699
6891
|
*
|
|
@@ -6815,7 +7007,7 @@ function lineChar(text, offset) {
|
|
|
6815
7007
|
}
|
|
6816
7008
|
|
|
6817
7009
|
//#endregion
|
|
6818
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
7010
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/anchors.js
|
|
6819
7011
|
/**
|
|
6820
7012
|
* Check if a pending anchor is being applied to an alias node (invalid in YAML 1.2 §3.2.2).
|
|
6821
7013
|
* Aliases represent references to existing anchored nodes and cannot have their own anchors.
|
|
@@ -6909,7 +7101,7 @@ function collectAnchors(node, anchors) {
|
|
|
6909
7101
|
}
|
|
6910
7102
|
|
|
6911
7103
|
//#endregion
|
|
6912
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
7104
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/lexer.js
|
|
6913
7105
|
/**
|
|
6914
7106
|
* Create a new YAML scanner for the given source text.
|
|
6915
7107
|
*
|
|
@@ -7867,7 +8059,7 @@ function lexAll(text) {
|
|
|
7867
8059
|
}
|
|
7868
8060
|
|
|
7869
8061
|
//#endregion
|
|
7870
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8062
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/cst-parser.js
|
|
7871
8063
|
/**
|
|
7872
8064
|
* Hardening: cap CST nesting so hostile inputs cannot overflow the stack
|
|
7873
8065
|
* while the tree is being BUILT. Set slightly above the composer's
|
|
@@ -8580,7 +8772,7 @@ function parseCSTAll(text) {
|
|
|
8580
8772
|
}
|
|
8581
8773
|
|
|
8582
8774
|
//#endregion
|
|
8583
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8775
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/state.js
|
|
8584
8776
|
let lineStartsText;
|
|
8585
8777
|
let lineStartsCache = [];
|
|
8586
8778
|
function getLineStarts(text) {
|
|
@@ -8687,7 +8879,7 @@ function exitNesting(state) {
|
|
|
8687
8879
|
}
|
|
8688
8880
|
|
|
8689
8881
|
//#endregion
|
|
8690
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8882
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/tags.js
|
|
8691
8883
|
/**
|
|
8692
8884
|
* Resolve a tag shorthand using the document's %TAG directives.
|
|
8693
8885
|
* For example, with `%TAG !! tag:example.com,2000:app/`, the tag `!!int`
|
|
@@ -8774,7 +8966,7 @@ function validateTagHandlesInDocument(docCst, state) {
|
|
|
8774
8966
|
}
|
|
8775
8967
|
|
|
8776
8968
|
//#endregion
|
|
8777
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
8969
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/scalars.js
|
|
8778
8970
|
const NULL_RE$1 = /^(?:null|Null|NULL|~)$/;
|
|
8779
8971
|
const TRUE_RE$1 = /^(?:true|True|TRUE)$/;
|
|
8780
8972
|
const FALSE_RE$1 = /^(?:false|False|FALSE)$/;
|
|
@@ -9653,7 +9845,7 @@ function shouldPreserveRaw(rawValue, value) {
|
|
|
9653
9845
|
}
|
|
9654
9846
|
|
|
9655
9847
|
//#endregion
|
|
9656
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
9848
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/block.js
|
|
9657
9849
|
/**
|
|
9658
9850
|
* Compose a block map from its CST children, with an optional external first key.
|
|
9659
9851
|
*
|
|
@@ -10802,7 +10994,7 @@ function composeFlatBlockMap(children, startIdx, parentCst, state, externalFirst
|
|
|
10802
10994
|
}
|
|
10803
10995
|
|
|
10804
10996
|
//#endregion
|
|
10805
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
10997
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/flow.js
|
|
10806
10998
|
/**
|
|
10807
10999
|
* Validate that flow collection entries are separated by commas.
|
|
10808
11000
|
*
|
|
@@ -11195,7 +11387,7 @@ function composeFlowSeqInner(cst, state, meta, parentBlockColumn) {
|
|
|
11195
11387
|
}
|
|
11196
11388
|
|
|
11197
11389
|
//#endregion
|
|
11198
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
11390
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/composer/document.js
|
|
11199
11391
|
/** The flow-composer dispatch wired into every state this module creates. */
|
|
11200
11392
|
const FLOW = {
|
|
11201
11393
|
composeFlowMap,
|
|
@@ -11862,7 +12054,7 @@ function composeAllDocuments(text, options) {
|
|
|
11862
12054
|
}
|
|
11863
12055
|
|
|
11864
12056
|
//#endregion
|
|
11865
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
12057
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/fold.js
|
|
11866
12058
|
/**
|
|
11867
12059
|
* Column-based line folding for a single logical scalar line (YAML 1.2 flow
|
|
11868
12060
|
* folding, §7.3 / §8.2.1). Breaks the content at "safe" single-space
|
|
@@ -12099,7 +12291,7 @@ function renderBlockFolded(s, indent) {
|
|
|
12099
12291
|
}
|
|
12100
12292
|
|
|
12101
12293
|
//#endregion
|
|
12102
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
12294
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/internal/stringifier.js
|
|
12103
12295
|
/**
|
|
12104
12296
|
* Thrown by the stringifier on its failure paths (circular references). The
|
|
12105
12297
|
* facade catches this and materializes the public stringify error.
|
|
@@ -12464,7 +12656,7 @@ function stringifyValue(value, options) {
|
|
|
12464
12656
|
}
|
|
12465
12657
|
|
|
12466
12658
|
//#endregion
|
|
12467
|
-
//#region ../../node_modules/.pnpm/@effected+yaml@0.
|
|
12659
|
+
//#region ../../node_modules/.pnpm/@effected+yaml@0.4.0_effect@4.0.0-beta.99/node_modules/@effected/yaml/Yaml.js
|
|
12468
12660
|
/**
|
|
12469
12661
|
* Options controlling parse behavior. All fields are omissible; absent fields
|
|
12470
12662
|
* resolve to `strict` `true`, `maxAliasCount` `100` (the alias-based
|
|
@@ -12985,6 +13177,51 @@ var Yaml = class Yaml {
|
|
|
12985
13177
|
static schema(target, options) {
|
|
12986
13178
|
return Yaml.fromString(options).pipe(Schema.decodeTo(target));
|
|
12987
13179
|
}
|
|
13180
|
+
/**
|
|
13181
|
+
* Bind a target schema to the YAML codec once, yielding the composed
|
|
13182
|
+
* schema plus pre-derived `decode`/`encode` directions — the
|
|
13183
|
+
* {@link Yaml.schema} composition without the generic `Schema` machinery
|
|
13184
|
+
* at every use site. Binds the plain single-document form only: default
|
|
13185
|
+
* {@link YamlParseOptions} on decode, default stringify options on encode;
|
|
13186
|
+
* for multi-document streams compose over {@link Yaml.allFromString}
|
|
13187
|
+
* directly.
|
|
13188
|
+
*
|
|
13189
|
+
* Both directions fail with `Schema.SchemaError`, exactly as
|
|
13190
|
+
* `Schema.decodeEffect`/`Schema.encodeEffect` over {@link Yaml.schema}
|
|
13191
|
+
* would; the target's decoding/encoding service requirements flow through.
|
|
13192
|
+
*
|
|
13193
|
+
* @remarks
|
|
13194
|
+
* Schema-producing: each call composes a fresh schema and derives both
|
|
13195
|
+
* directions from it. Bind the result to a `const` — that single binding is
|
|
13196
|
+
* the point.
|
|
13197
|
+
*
|
|
13198
|
+
* @example
|
|
13199
|
+
* ```ts
|
|
13200
|
+
* import { Yaml } from "@effected/yaml";
|
|
13201
|
+
* import { Effect, Schema } from "effect";
|
|
13202
|
+
*
|
|
13203
|
+
* const Config = Schema.Struct({ port: Schema.Number });
|
|
13204
|
+
* const config = Yaml.bind(Config);
|
|
13205
|
+
*
|
|
13206
|
+
* const program = Effect.gen(function* () {
|
|
13207
|
+
* const value = yield* config.decode("port: 3000");
|
|
13208
|
+
* const text = yield* config.encode(value);
|
|
13209
|
+
* return [value, text] as const;
|
|
13210
|
+
* });
|
|
13211
|
+
* ```
|
|
13212
|
+
*
|
|
13213
|
+
* @param target - The domain schema decoded values must satisfy.
|
|
13214
|
+
* @returns A {@link YamlBoundCodec} carrying the composed schema and its
|
|
13215
|
+
* two pre-bound directions.
|
|
13216
|
+
*/
|
|
13217
|
+
static bind(target) {
|
|
13218
|
+
const schema = Yaml.schema(target);
|
|
13219
|
+
return {
|
|
13220
|
+
schema,
|
|
13221
|
+
decode: Schema.decodeEffect(schema),
|
|
13222
|
+
encode: Schema.encodeEffect(schema)
|
|
13223
|
+
};
|
|
13224
|
+
}
|
|
12988
13225
|
};
|
|
12989
13226
|
/**
|
|
12990
13227
|
* Parse for `equals`/`equalsValue`: any recorded error — fatal or not — or a
|
|
@@ -13038,7 +13275,7 @@ function deepEqualValues(a, b) {
|
|
|
13038
13275
|
}
|
|
13039
13276
|
|
|
13040
13277
|
//#endregion
|
|
13041
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13278
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/documents.js
|
|
13042
13279
|
/**
|
|
13043
13280
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
13044
13281
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -13109,7 +13346,7 @@ const selectSoleDocument = (content) => Effect.gen(function* () {
|
|
|
13109
13346
|
});
|
|
13110
13347
|
|
|
13111
13348
|
//#endregion
|
|
13112
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13349
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/pnpm.js
|
|
13113
13350
|
const PnpmImporterDeps = Schema.optionalKey(Schema.Record(Schema.String, Schema.Struct({
|
|
13114
13351
|
specifier: Schema.String,
|
|
13115
13352
|
version: Schema.String
|
|
@@ -13236,7 +13473,7 @@ const toFields$1 = (raw) => Effect.gen(function* () {
|
|
|
13236
13473
|
});
|
|
13237
13474
|
|
|
13238
13475
|
//#endregion
|
|
13239
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13476
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/internal/yarn.js
|
|
13240
13477
|
const YarnLockfileRaw = Schema.Record(Schema.String, Schema.Unknown);
|
|
13241
13478
|
const DepRecord = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
13242
13479
|
const YarnEntry = Schema.Struct({
|
|
@@ -13360,7 +13597,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
13360
13597
|
};
|
|
13361
13598
|
|
|
13362
13599
|
//#endregion
|
|
13363
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13600
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/Lockfile.js
|
|
13364
13601
|
const EMPTY_IMPORTERS = [];
|
|
13365
13602
|
/**
|
|
13366
13603
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -13605,7 +13842,7 @@ var Lockfile = class Lockfile extends Schema.Class("Lockfile")({
|
|
|
13605
13842
|
};
|
|
13606
13843
|
|
|
13607
13844
|
//#endregion
|
|
13608
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
13845
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.5_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__@effected+npm@0.2_b1d671782d9bef489a2d22b7bd2ef126/node_modules/@effected/lockfiles/LockfileIntegrity.js
|
|
13609
13846
|
/**
|
|
13610
13847
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
13611
13848
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -13722,7 +13959,7 @@ var LockfileIntegrity = class LockfileIntegrity extends Schema.Class("LockfileIn
|
|
|
13722
13959
|
};
|
|
13723
13960
|
|
|
13724
13961
|
//#endregion
|
|
13725
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
13962
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/Dependency.js
|
|
13726
13963
|
/**
|
|
13727
13964
|
* A resolved dependency entry pairing a package name with its version
|
|
13728
13965
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -13787,7 +14024,7 @@ var Dependency = class extends Schema.Class("Dependency")({
|
|
|
13787
14024
|
};
|
|
13788
14025
|
|
|
13789
14026
|
//#endregion
|
|
13790
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
14027
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/DevEngines.js
|
|
13791
14028
|
/**
|
|
13792
14029
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
13793
14030
|
*
|
|
@@ -14828,7 +15065,7 @@ var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
14828
15065
|
}));
|
|
14829
15066
|
|
|
14830
15067
|
//#endregion
|
|
14831
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
15068
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/License.js
|
|
14832
15069
|
var import_spdx_expression_parse = /* @__PURE__ */ __toESM(require_spdx_expression_parse(), 1);
|
|
14833
15070
|
/**
|
|
14834
15071
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
@@ -14870,7 +15107,7 @@ const isValidSpdx = (value) => {
|
|
|
14870
15107
|
const SpdxLicense = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => isValidSpdx(value) ? void 0 : "Expected a valid SPDX license expression")), Schema.brand("SpdxLicense"));
|
|
14871
15108
|
|
|
14872
15109
|
//#endregion
|
|
14873
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
15110
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/PackageManager.js
|
|
14874
15111
|
const PACKAGE_MANAGER_RE = /^([a-z]+)@(\d+\.\d+\.\d+(?:-[a-zA-Z0-9._-]+)?)(?:\+(.+))?$/;
|
|
14875
15112
|
/**
|
|
14876
15113
|
* The `packageManager` field only ever carries corepack's `<algo>.<hex>`
|
|
@@ -14929,7 +15166,7 @@ var PackageManager = class PackageManager extends Schema.Class("PackageManager")
|
|
|
14929
15166
|
};
|
|
14930
15167
|
|
|
14931
15168
|
//#endregion
|
|
14932
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
15169
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/PackageName.js
|
|
14933
15170
|
/**
|
|
14934
15171
|
* Indicates that a string could not be used as a valid npm package name.
|
|
14935
15172
|
*
|
|
@@ -14988,7 +15225,7 @@ const PackageName = Object.assign(Schema.Union([ScopedPackageName, UnscopedPacka
|
|
|
14988
15225
|
});
|
|
14989
15226
|
|
|
14990
15227
|
//#endregion
|
|
14991
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
15228
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/Person.js
|
|
14992
15229
|
const parsePersonString = (input) => {
|
|
14993
15230
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
14994
15231
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -15036,7 +15273,7 @@ var Person = class Person extends Schema.Class("Person")({
|
|
|
15036
15273
|
};
|
|
15037
15274
|
|
|
15038
15275
|
//#endregion
|
|
15039
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
15276
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/internal/format.js
|
|
15040
15277
|
const KEY_INDEX = new Map([
|
|
15041
15278
|
"$schema",
|
|
15042
15279
|
"name",
|
|
@@ -15260,7 +15497,7 @@ const renderJson = (raw, options) => {
|
|
|
15260
15497
|
};
|
|
15261
15498
|
|
|
15262
15499
|
//#endregion
|
|
15263
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
15500
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/Package.js
|
|
15264
15501
|
const toHashMap = SchemaTransformation.transform({
|
|
15265
15502
|
decode: (record) => HashMap.fromIterable(Object.entries(record)),
|
|
15266
15503
|
encode: (map) => Object.fromEntries(HashMap.toEntries(map))
|
|
@@ -15579,7 +15816,7 @@ var Package = class Package extends Schema.Class("Package")({
|
|
|
15579
15816
|
};
|
|
15580
15817
|
|
|
15581
15818
|
//#endregion
|
|
15582
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
15819
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspacePackage.js
|
|
15583
15820
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
15584
15821
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
15585
15822
|
/**
|
|
@@ -15842,7 +16079,7 @@ var WorkspacePackage = class WorkspacePackage extends Schema.Class("WorkspacePac
|
|
|
15842
16079
|
};
|
|
15843
16080
|
|
|
15844
16081
|
//#endregion
|
|
15845
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.2.
|
|
16082
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.2.2_@effected+glob@0.1.2_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/walker/Descend.js
|
|
15846
16083
|
/**
|
|
15847
16084
|
* Typed failure raised by {@link descend}: a directory mid-walk was unreadable
|
|
15848
16085
|
* (under `onUnreadable: "fail"`), or the walk descended past `maxDepth`. Depth
|
|
@@ -15978,7 +16215,7 @@ const descend = Effect.fn("Walker.descend")(function* (pattern, options) {
|
|
|
15978
16215
|
});
|
|
15979
16216
|
|
|
15980
16217
|
//#endregion
|
|
15981
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.2.
|
|
16218
|
+
//#region ../../node_modules/.pnpm/@effected+walker@0.2.2_@effected+glob@0.1.2_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/walker/Walker.js
|
|
15982
16219
|
/**
|
|
15983
16220
|
* Ascend from `start` toward the filesystem root, yielding each directory,
|
|
15984
16221
|
* nearest first.
|
|
@@ -16069,7 +16306,7 @@ const Walker$1 = {
|
|
|
16069
16306
|
};
|
|
16070
16307
|
|
|
16071
16308
|
//#endregion
|
|
16072
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16309
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceRoot.js
|
|
16073
16310
|
/**
|
|
16074
16311
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
16075
16312
|
*
|
|
@@ -16155,7 +16392,7 @@ var WorkspaceRoot = class WorkspaceRoot extends Context.Service()("@effected/wor
|
|
|
16155
16392
|
};
|
|
16156
16393
|
|
|
16157
16394
|
//#endregion
|
|
16158
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16395
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/limits.js
|
|
16159
16396
|
/**
|
|
16160
16397
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
16161
16398
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -16174,7 +16411,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
16174
16411
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
16175
16412
|
|
|
16176
16413
|
//#endregion
|
|
16177
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16414
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/traverse.js
|
|
16178
16415
|
/** Directory names never descended into. */
|
|
16179
16416
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
16180
16417
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -16265,7 +16502,7 @@ var Traversal = class {
|
|
|
16265
16502
|
};
|
|
16266
16503
|
|
|
16267
16504
|
//#endregion
|
|
16268
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16505
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/enumerate.js
|
|
16269
16506
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
16270
16507
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
16271
16508
|
/**
|
|
@@ -16336,7 +16573,7 @@ const enumerate = (root, globs, options) => Effect.gen(function* () {
|
|
|
16336
16573
|
});
|
|
16337
16574
|
|
|
16338
16575
|
//#endregion
|
|
16339
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16576
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/patterns.js
|
|
16340
16577
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
16341
16578
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
16342
16579
|
const pnpmPatternsOf = (document) => {
|
|
@@ -16394,7 +16631,7 @@ const readPatterns = (root) => Effect.gen(function* () {
|
|
|
16394
16631
|
});
|
|
16395
16632
|
|
|
16396
16633
|
//#endregion
|
|
16397
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
16634
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceDiscovery.js
|
|
16398
16635
|
/**
|
|
16399
16636
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
16400
16637
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -16827,7 +17064,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends Context.Service()("@ef
|
|
|
16827
17064
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
16828
17065
|
|
|
16829
17066
|
//#endregion
|
|
16830
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
17067
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/DependencyGraph.js
|
|
16831
17068
|
/**
|
|
16832
17069
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
16833
17070
|
* because it contains a cycle.
|
|
@@ -17063,7 +17300,7 @@ const kahn = (edges) => {
|
|
|
17063
17300
|
};
|
|
17064
17301
|
|
|
17065
17302
|
//#endregion
|
|
17066
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
17303
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.1_effect@4.0.0-beta.99/node_modules/@effected/git/GitCommand.js
|
|
17067
17304
|
/**
|
|
17068
17305
|
* Builds a `git` `ChildProcess.StandardCommand` with the argv this package
|
|
17069
17306
|
* classifies against.
|
|
@@ -17483,7 +17720,7 @@ const GitCommand = {
|
|
|
17483
17720
|
};
|
|
17484
17721
|
|
|
17485
17722
|
//#endregion
|
|
17486
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
17723
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.1_effect@4.0.0-beta.99/node_modules/@effected/git/internal/run.js
|
|
17487
17724
|
/**
|
|
17488
17725
|
* Spawns `command` and collects its stdout, stderr, and exit code as a single
|
|
17489
17726
|
* triple.
|
|
@@ -17511,7 +17748,7 @@ const runCollected = (command) => Effect.scoped(Effect.gen(function* () {
|
|
|
17511
17748
|
}));
|
|
17512
17749
|
|
|
17513
17750
|
//#endregion
|
|
17514
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
17751
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.1_effect@4.0.0-beta.99/node_modules/@effected/git/Git.js
|
|
17515
17752
|
/** git's own ceiling: a run that has not answered in 30s is not going to. */
|
|
17516
17753
|
const GIT_TIMEOUT = Duration.seconds(30);
|
|
17517
17754
|
/**
|
|
@@ -17523,7 +17760,7 @@ const GIT_TIMEOUT = Duration.seconds(30);
|
|
|
17523
17760
|
* `exitCode` and `stderr` are populated when git actually ran. `detail`
|
|
17524
17761
|
* carries a human-readable explanation of an absorbed spawn-level
|
|
17525
17762
|
* `PlatformError` or a per-run timeout — the two cases where git never
|
|
17526
|
-
* produced an exit code at all.
|
|
17763
|
+
* produced an exit code at all. `kind`
|
|
17527
17764
|
* discriminates a pre-spawn guard rejection (`"refused"`) from a genuine git
|
|
17528
17765
|
* failure (`"failed"`) structurally, so composed retry/fallback logic never has
|
|
17529
17766
|
* to parse the prose in `message` or `detail`.
|
|
@@ -18429,7 +18666,7 @@ var Git = class extends Context.Service()("@effected/git/Git") {
|
|
|
18429
18666
|
};
|
|
18430
18667
|
|
|
18431
18668
|
//#endregion
|
|
18432
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
18669
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/ChangeDetector.js
|
|
18433
18670
|
/**
|
|
18434
18671
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
18435
18672
|
*
|
|
@@ -18711,7 +18948,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
18711
18948
|
}
|
|
18712
18949
|
|
|
18713
18950
|
//#endregion
|
|
18714
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
18951
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/internal/catalogs.js
|
|
18715
18952
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
18716
18953
|
const inlineCatalogs = (manifest) => {
|
|
18717
18954
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -18776,7 +19013,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
18776
19013
|
};
|
|
18777
19014
|
|
|
18778
19015
|
//#endregion
|
|
18779
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19016
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/ConfigDependencyHooks.js
|
|
18780
19017
|
/** Whether `value` is a non-null, non-array object. */
|
|
18781
19018
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
18782
19019
|
/**
|
|
@@ -18922,7 +19159,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends Context.Service(
|
|
|
18922
19159
|
};
|
|
18923
19160
|
|
|
18924
19161
|
//#endregion
|
|
18925
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19162
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/PackageManagerName.js
|
|
18926
19163
|
/**
|
|
18927
19164
|
* The four package managers this package understands.
|
|
18928
19165
|
*
|
|
@@ -19165,7 +19402,7 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
19165
19402
|
};
|
|
19166
19403
|
|
|
19167
19404
|
//#endregion
|
|
19168
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19405
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/LockfileReader.js
|
|
19169
19406
|
/**
|
|
19170
19407
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
19171
19408
|
*
|
|
@@ -19276,7 +19513,7 @@ var LockfileReader = class LockfileReader extends Context.Service()("@effected/w
|
|
|
19276
19513
|
};
|
|
19277
19514
|
|
|
19278
19515
|
//#endregion
|
|
19279
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19516
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/Publishability.js
|
|
19280
19517
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
19281
19518
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
19282
19519
|
/**
|
|
@@ -19377,7 +19614,7 @@ var PublishabilityDetector = class PublishabilityDetector extends Context.Servic
|
|
|
19377
19614
|
};
|
|
19378
19615
|
|
|
19379
19616
|
//#endregion
|
|
19380
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
19617
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceCatalogs.js
|
|
19381
19618
|
/**
|
|
19382
19619
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
19383
19620
|
* resolution semantic in the package.
|
|
@@ -19762,7 +19999,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends Context.Service()("@effe
|
|
|
19762
19999
|
};
|
|
19763
20000
|
|
|
19764
20001
|
//#endregion
|
|
19765
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
20002
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceStateSnapshot.js
|
|
19766
20003
|
const EMPTY = Object.freeze(Object.create(null));
|
|
19767
20004
|
const DependencyMap = Schema.Record(Schema.String, Schema.String).pipe(Schema.withDecodingDefaultKey(Effect.succeed(EMPTY)), Schema.withConstructorDefault(Effect.succeed(EMPTY)));
|
|
19768
20005
|
/**
|
|
@@ -19928,7 +20165,7 @@ var WorkspaceStateSnapshot = class extends Schema.Class("WorkspaceStateSnapshot"
|
|
|
19928
20165
|
};
|
|
19929
20166
|
|
|
19930
20167
|
//#endregion
|
|
19931
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
20168
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/WorkspaceSnapshots.js
|
|
19932
20169
|
/** Whether `value` is a non-null, non-array object. */
|
|
19933
20170
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19934
20171
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -20121,7 +20358,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends Context.Service()("@ef
|
|
|
20121
20358
|
};
|
|
20122
20359
|
|
|
20123
20360
|
//#endregion
|
|
20124
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.
|
|
20361
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.4.1_@effected+jsonc@0.4.0_effect@4.0.0-beta.99__effect@4.0.0-beta.99/node_modules/@effected/workspaces/Workspaces.js
|
|
20125
20362
|
/**
|
|
20126
20363
|
* Every service that needs only a filesystem: root, package-manager detection,
|
|
20127
20364
|
* discovery, lockfile reading, catalogs and publishability.
|
|
@@ -22126,7 +22363,7 @@ var require_dataloader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22126
22363
|
}));
|
|
22127
22364
|
|
|
22128
22365
|
//#endregion
|
|
22129
|
-
//#region ../../node_modules/.pnpm/@changesets+get-github-info@1.0.0-next.
|
|
22366
|
+
//#region ../../node_modules/.pnpm/@changesets+get-github-info@1.0.0-next.4/node_modules/@changesets/get-github-info/dist/index.mjs
|
|
22130
22367
|
var import_dataloader = /* @__PURE__ */ __toESM(require_dataloader(), 1);
|
|
22131
22368
|
async function readEnvFile() {
|
|
22132
22369
|
const envFile = path$1.resolve(process.cwd(), ".env");
|
|
@@ -23698,7 +23935,7 @@ function normalizeIdentifier(value) {
|
|
|
23698
23935
|
}
|
|
23699
23936
|
|
|
23700
23937
|
//#endregion
|
|
23701
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm-footnote@2.1.
|
|
23938
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0_supports-color@8.1.1/node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
23702
23939
|
/**
|
|
23703
23940
|
* @import {
|
|
23704
23941
|
* CompileContext,
|
|
@@ -23891,7 +24128,7 @@ function mapAll(line, index, blank) {
|
|
|
23891
24128
|
}
|
|
23892
24129
|
|
|
23893
24130
|
//#endregion
|
|
23894
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.
|
|
24131
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0_supports-color@8.1.1/node_modules/mdast-util-gfm-strikethrough/lib/index.js
|
|
23895
24132
|
/**
|
|
23896
24133
|
* @typedef {import('mdast').Delete} Delete
|
|
23897
24134
|
*
|
|
@@ -29001,7 +29238,7 @@ function safeBound(value, config) {
|
|
|
29001
29238
|
}
|
|
29002
29239
|
|
|
29003
29240
|
//#endregion
|
|
29004
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm-table@2.0.
|
|
29241
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm-table@2.0.0_supports-color@8.1.1/node_modules/mdast-util-gfm-table/lib/index.js
|
|
29005
29242
|
/**
|
|
29006
29243
|
* @typedef {import('mdast').InlineCode} InlineCode
|
|
29007
29244
|
* @typedef {import('mdast').Table} Table
|
|
@@ -29267,7 +29504,7 @@ function gfmTableToMarkdown(options) {
|
|
|
29267
29504
|
}
|
|
29268
29505
|
|
|
29269
29506
|
//#endregion
|
|
29270
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.
|
|
29507
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0_supports-color@8.1.1/node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
29271
29508
|
/**
|
|
29272
29509
|
* @typedef {import('mdast').ListItem} ListItem
|
|
29273
29510
|
* @typedef {import('mdast').Paragraph} Paragraph
|
|
@@ -29378,7 +29615,7 @@ function listItemWithTaskListItem(node, parent, state, info) {
|
|
|
29378
29615
|
}
|
|
29379
29616
|
|
|
29380
29617
|
//#endregion
|
|
29381
|
-
//#region ../../node_modules/.pnpm/mdast-util-gfm@3.1.
|
|
29618
|
+
//#region ../../node_modules/.pnpm/mdast-util-gfm@3.1.0_supports-color@8.1.1/node_modules/mdast-util-gfm/lib/index.js
|
|
29382
29619
|
/**
|
|
29383
29620
|
* @import {Extension as FromMarkdownExtension} from 'mdast-util-from-markdown'
|
|
29384
29621
|
* @import {Options} from 'mdast-util-gfm'
|
|
@@ -37504,7 +37741,7 @@ function gfm(options) {
|
|
|
37504
37741
|
}
|
|
37505
37742
|
|
|
37506
37743
|
//#endregion
|
|
37507
|
-
//#region ../../node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js
|
|
37744
|
+
//#region ../../node_modules/.pnpm/remark-gfm@4.0.1_supports-color@8.1.1/node_modules/remark-gfm/lib/index.js
|
|
37508
37745
|
/**
|
|
37509
37746
|
* @import {Root} from 'mdast'
|
|
37510
37747
|
* @import {Options} from 'remark-gfm'
|
|
@@ -37536,7 +37773,7 @@ function remarkGfm(options) {
|
|
|
37536
37773
|
}
|
|
37537
37774
|
|
|
37538
37775
|
//#endregion
|
|
37539
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
37776
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/initialize/content.js
|
|
37540
37777
|
/**
|
|
37541
37778
|
* @import {
|
|
37542
37779
|
* InitialConstruct,
|
|
@@ -37604,7 +37841,7 @@ function initializeContent(effects) {
|
|
|
37604
37841
|
}
|
|
37605
37842
|
|
|
37606
37843
|
//#endregion
|
|
37607
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
37844
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/initialize/document.js
|
|
37608
37845
|
/**
|
|
37609
37846
|
* @import {
|
|
37610
37847
|
* Construct,
|
|
@@ -37821,7 +38058,7 @@ function tokenizeContainer(effects, ok, nok) {
|
|
|
37821
38058
|
}
|
|
37822
38059
|
|
|
37823
38060
|
//#endregion
|
|
37824
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38061
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/initialize/flow.js
|
|
37825
38062
|
/**
|
|
37826
38063
|
* @import {
|
|
37827
38064
|
* InitialConstruct,
|
|
@@ -37869,7 +38106,7 @@ function initializeFlow(effects) {
|
|
|
37869
38106
|
}
|
|
37870
38107
|
|
|
37871
38108
|
//#endregion
|
|
37872
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38109
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/initialize/text.js
|
|
37873
38110
|
/**
|
|
37874
38111
|
* @import {
|
|
37875
38112
|
* Code,
|
|
@@ -38047,7 +38284,7 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
38047
38284
|
}
|
|
38048
38285
|
|
|
38049
38286
|
//#endregion
|
|
38050
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38287
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/constructs.js
|
|
38051
38288
|
/**
|
|
38052
38289
|
* @import {Extension} from 'micromark-util-types'
|
|
38053
38290
|
*/
|
|
@@ -38126,7 +38363,7 @@ const attentionMarkers = { null: [42, 95] };
|
|
|
38126
38363
|
const disable = { null: [] };
|
|
38127
38364
|
|
|
38128
38365
|
//#endregion
|
|
38129
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38366
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/create-tokenizer.js
|
|
38130
38367
|
/**
|
|
38131
38368
|
* @import {
|
|
38132
38369
|
* Chunk,
|
|
@@ -38596,7 +38833,7 @@ function serializeChunks(chunks, expandTabs) {
|
|
|
38596
38833
|
}
|
|
38597
38834
|
|
|
38598
38835
|
//#endregion
|
|
38599
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38836
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/parse.js
|
|
38600
38837
|
/**
|
|
38601
38838
|
* @import {
|
|
38602
38839
|
* Create,
|
|
@@ -38641,7 +38878,7 @@ function parse$1(options) {
|
|
|
38641
38878
|
}
|
|
38642
38879
|
|
|
38643
38880
|
//#endregion
|
|
38644
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38881
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/postprocess.js
|
|
38645
38882
|
/**
|
|
38646
38883
|
* @import {Event} from 'micromark-util-types'
|
|
38647
38884
|
*/
|
|
@@ -38657,7 +38894,7 @@ function postprocess(events) {
|
|
|
38657
38894
|
}
|
|
38658
38895
|
|
|
38659
38896
|
//#endregion
|
|
38660
|
-
//#region ../../node_modules/.pnpm/micromark@4.0.
|
|
38897
|
+
//#region ../../node_modules/.pnpm/micromark@4.0.2_supports-color@8.1.1/node_modules/micromark/lib/preprocess.js
|
|
38661
38898
|
/**
|
|
38662
38899
|
* @import {Chunk, Code, Encoding, Value} from 'micromark-util-types'
|
|
38663
38900
|
*/
|
|
@@ -38824,7 +39061,7 @@ function index(value) {
|
|
|
38824
39061
|
}
|
|
38825
39062
|
|
|
38826
39063
|
//#endregion
|
|
38827
|
-
//#region ../../node_modules/.pnpm/mdast-util-from-markdown@2.0.
|
|
39064
|
+
//#region ../../node_modules/.pnpm/mdast-util-from-markdown@2.0.3_supports-color@8.1.1/node_modules/mdast-util-from-markdown/lib/index.js
|
|
38828
39065
|
/**
|
|
38829
39066
|
* @import {
|
|
38830
39067
|
* Break,
|
|
@@ -39791,7 +40028,7 @@ function defaultOnError(left, right) {
|
|
|
39791
40028
|
}
|
|
39792
40029
|
|
|
39793
40030
|
//#endregion
|
|
39794
|
-
//#region ../../node_modules/.pnpm/remark-parse@11.0.
|
|
40031
|
+
//#region ../../node_modules/.pnpm/remark-parse@11.0.0_supports-color@8.1.1/node_modules/remark-parse/lib/index.js
|
|
39795
40032
|
/**
|
|
39796
40033
|
* @typedef {import('mdast').Root} Root
|
|
39797
40034
|
* @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions
|
|
@@ -58262,7 +58499,7 @@ function validatePackages(packages) {
|
|
|
58262
58499
|
}
|
|
58263
58500
|
|
|
58264
58501
|
//#endregion
|
|
58265
|
-
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.
|
|
58502
|
+
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.7/node_modules/@changesets/get-dependents-graph/dist/index.mjs
|
|
58266
58503
|
var src_default = new Proxy({}, { get(target, color) {
|
|
58267
58504
|
target[color] ??= (text) => styleText(color, text);
|
|
58268
58505
|
return target[color];
|
|
@@ -58383,7 +58620,7 @@ function getDependentsGraph(packages, opts) {
|
|
|
58383
58620
|
}
|
|
58384
58621
|
|
|
58385
58622
|
//#endregion
|
|
58386
|
-
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.
|
|
58623
|
+
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.7/node_modules/@changesets/should-skip-package/dist/index.mjs
|
|
58387
58624
|
function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
|
|
58388
58625
|
if (ignore.includes(packageJson.name)) return true;
|
|
58389
58626
|
if (packageJson.private && !allowPrivatePackages) return true;
|
|
@@ -58391,7 +58628,7 @@ function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
|
|
|
58391
58628
|
}
|
|
58392
58629
|
|
|
58393
58630
|
//#endregion
|
|
58394
|
-
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.
|
|
58631
|
+
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.7/node_modules/@changesets/config/dist/index.mjs
|
|
58395
58632
|
const DEFAULT_CONFIG = {
|
|
58396
58633
|
lang: void 0,
|
|
58397
58634
|
message: void 0,
|
|
@@ -59303,7 +59540,7 @@ async function readConfig(cwd, packages) {
|
|
|
59303
59540
|
packages ??= await getPackages(cwd);
|
|
59304
59541
|
return validateConfig(JSON.parse(await fs$1.readFile(path$1.join(packages.rootDir, ".changeset", "config.json"), "utf8")), packages);
|
|
59305
59542
|
}
|
|
59306
|
-
var version = "4.0.0-next.
|
|
59543
|
+
var version = "4.0.0-next.7";
|
|
59307
59544
|
const defaultWrittenConfig = {
|
|
59308
59545
|
["$schema"]: `https://unpkg.com/@changesets/config@${version}/schema.json`,
|
|
59309
59546
|
baseBranch: "main",
|
|
@@ -60030,230 +60267,6 @@ function isMetadataYarnClassic(metadataPath) {
|
|
|
60030
60267
|
return metadataPath.endsWith(".yarn_integrity");
|
|
60031
60268
|
}
|
|
60032
60269
|
|
|
60033
|
-
//#endregion
|
|
60034
|
-
//#region ../../node_modules/.pnpm/@changesets+format@0.1.0/node_modules/@changesets/format/dist/index.js
|
|
60035
|
-
/**
|
|
60036
|
-
* Traverse upwards from `startDir` to `stopDir` (inclusive), calling `cb` in each directory. If
|
|
60037
|
-
* `cb` returns a non-null value, it'll stop and return that value.
|
|
60038
|
-
*/
|
|
60039
|
-
function traverseUpwards(startDir, stopDir, cb) {
|
|
60040
|
-
let dir = startDir;
|
|
60041
|
-
while (dir) {
|
|
60042
|
-
const result = cb(dir);
|
|
60043
|
-
if (result !== void 0) return result;
|
|
60044
|
-
if (dir === stopDir) break;
|
|
60045
|
-
const nextDir = path$1.dirname(dir);
|
|
60046
|
-
if (nextDir === dir) break;
|
|
60047
|
-
dir = nextDir;
|
|
60048
|
-
}
|
|
60049
|
-
}
|
|
60050
|
-
async function packageManagerExecute(packageManager, args, cwd) {
|
|
60051
|
-
const cmd = resolveCommand(packageManager, "execute-local", args) ?? {
|
|
60052
|
-
command: "npx",
|
|
60053
|
-
args
|
|
60054
|
-
};
|
|
60055
|
-
return await spawnProcess(cmd.command, cmd.args, cwd);
|
|
60056
|
-
}
|
|
60057
|
-
async function spawnProcess(command, args, cwd) {
|
|
60058
|
-
return new Promise((resolve, reject) => {
|
|
60059
|
-
const child = cp.spawn(command, args, { cwd });
|
|
60060
|
-
let stderr = "";
|
|
60061
|
-
child.stderr.on("data", (data) => {
|
|
60062
|
-
stderr += data.toString();
|
|
60063
|
-
});
|
|
60064
|
-
child.on("exit", (code) => {
|
|
60065
|
-
if (code === 0) resolve();
|
|
60066
|
-
else reject(/* @__PURE__ */ new Error(`${command} exited with code ${code}. Stderr:\n${stderr}`));
|
|
60067
|
-
});
|
|
60068
|
-
child.on("error", (err) => {
|
|
60069
|
-
reject(err);
|
|
60070
|
-
});
|
|
60071
|
-
});
|
|
60072
|
-
}
|
|
60073
|
-
const formatters = {
|
|
60074
|
-
prettier: {
|
|
60075
|
-
name: "prettier",
|
|
60076
|
-
packageName: "prettier",
|
|
60077
|
-
configFiles: [
|
|
60078
|
-
".prettierrc",
|
|
60079
|
-
".prettierrc.json",
|
|
60080
|
-
".prettierrc.yml",
|
|
60081
|
-
".prettierrc.yaml",
|
|
60082
|
-
".prettierrc.json5",
|
|
60083
|
-
".prettierrc.js",
|
|
60084
|
-
"prettier.config.js",
|
|
60085
|
-
".prettierrc.ts",
|
|
60086
|
-
"prettier.config.ts",
|
|
60087
|
-
".prettierrc.mjs",
|
|
60088
|
-
"prettier.config.mjs",
|
|
60089
|
-
".prettierrc.mts",
|
|
60090
|
-
"prettier.config.mts",
|
|
60091
|
-
".prettierrc.cjs",
|
|
60092
|
-
"prettier.config.cjs",
|
|
60093
|
-
".prettierrc.cts",
|
|
60094
|
-
"prettier.config.cts",
|
|
60095
|
-
".prettierrc.toml",
|
|
60096
|
-
{
|
|
60097
|
-
file: "package.json",
|
|
60098
|
-
key: "prettier"
|
|
60099
|
-
}
|
|
60100
|
-
],
|
|
60101
|
-
async format(files, ctx) {
|
|
60102
|
-
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60103
|
-
"prettier",
|
|
60104
|
-
"--write",
|
|
60105
|
-
...files
|
|
60106
|
-
], ctx.cwd);
|
|
60107
|
-
}
|
|
60108
|
-
},
|
|
60109
|
-
biome: {
|
|
60110
|
-
name: "biome",
|
|
60111
|
-
packageName: "@biomejs/biome",
|
|
60112
|
-
configFiles: [
|
|
60113
|
-
"biome.json",
|
|
60114
|
-
"biome.jsonc",
|
|
60115
|
-
".biome.json",
|
|
60116
|
-
".biome.jsonc"
|
|
60117
|
-
],
|
|
60118
|
-
async format(files, ctx) {
|
|
60119
|
-
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60120
|
-
"@biomejs/biome",
|
|
60121
|
-
"format",
|
|
60122
|
-
"--write",
|
|
60123
|
-
...files
|
|
60124
|
-
], ctx.cwd);
|
|
60125
|
-
}
|
|
60126
|
-
},
|
|
60127
|
-
oxfmt: {
|
|
60128
|
-
name: "oxfmt",
|
|
60129
|
-
packageName: "oxfmt",
|
|
60130
|
-
configFiles: [
|
|
60131
|
-
".oxfmtrc.json",
|
|
60132
|
-
".oxfmtrc.jsonc",
|
|
60133
|
-
"oxfmt.config.ts"
|
|
60134
|
-
],
|
|
60135
|
-
async format(files, ctx) {
|
|
60136
|
-
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60137
|
-
"oxfmt",
|
|
60138
|
-
"--write",
|
|
60139
|
-
...files
|
|
60140
|
-
], ctx.cwd);
|
|
60141
|
-
}
|
|
60142
|
-
},
|
|
60143
|
-
deno: {
|
|
60144
|
-
name: "deno",
|
|
60145
|
-
configFiles: [
|
|
60146
|
-
"deno.json",
|
|
60147
|
-
"deno.jsonc",
|
|
60148
|
-
{
|
|
60149
|
-
file: "deno.json",
|
|
60150
|
-
key: "fmt"
|
|
60151
|
-
}
|
|
60152
|
-
],
|
|
60153
|
-
async format(files, ctx) {
|
|
60154
|
-
await spawnProcess("deno", ["fmt", ...files], ctx.cwd);
|
|
60155
|
-
}
|
|
60156
|
-
},
|
|
60157
|
-
dprint: {
|
|
60158
|
-
name: "dprint",
|
|
60159
|
-
packageName: "dprint",
|
|
60160
|
-
configFiles: [
|
|
60161
|
-
"dprint.json",
|
|
60162
|
-
"dprint.jsonc",
|
|
60163
|
-
".dprint.json",
|
|
60164
|
-
".dprint.jsonc"
|
|
60165
|
-
],
|
|
60166
|
-
async format(files, ctx) {
|
|
60167
|
-
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60168
|
-
"dprint",
|
|
60169
|
-
"fmt",
|
|
60170
|
-
...files
|
|
60171
|
-
], ctx.cwd);
|
|
60172
|
-
}
|
|
60173
|
-
}
|
|
60174
|
-
};
|
|
60175
|
-
const defaultDetectOrder = Object.freeze([
|
|
60176
|
-
"dprint",
|
|
60177
|
-
"deno",
|
|
60178
|
-
"oxfmt",
|
|
60179
|
-
"biome",
|
|
60180
|
-
"prettier"
|
|
60181
|
-
]);
|
|
60182
|
-
/**
|
|
60183
|
-
* Detect the preferred formatter used in the project.
|
|
60184
|
-
*/
|
|
60185
|
-
async function detect(options = {}) {
|
|
60186
|
-
const cwd = options.cwd ? path$1.resolve(options.cwd) : process.cwd();
|
|
60187
|
-
const stopDir = options.stopDir ? path$1.resolve(cwd, options.stopDir) : void 0;
|
|
60188
|
-
const order = options.order ?? defaultDetectOrder;
|
|
60189
|
-
let found = traverseUpwards(cwd, stopDir, (dir) => {
|
|
60190
|
-
for (const formatterName of order) {
|
|
60191
|
-
const formatter = formatters[formatterName];
|
|
60192
|
-
for (const configFile of formatter.configFiles) if (typeof configFile === "string") {
|
|
60193
|
-
const configFilePath = path$1.join(dir, configFile);
|
|
60194
|
-
if (fs.existsSync(configFilePath)) return formatter.name;
|
|
60195
|
-
} else if (checkConfigFileWithKeyExists(path$1.join(dir, configFile.file), configFile.key)) return formatter.name;
|
|
60196
|
-
}
|
|
60197
|
-
});
|
|
60198
|
-
found ??= traverseUpwards(cwd, stopDir, (dir) => {
|
|
60199
|
-
for (const formatterName of order) {
|
|
60200
|
-
const formatter = formatters[formatterName];
|
|
60201
|
-
if (formatter.packageName) {
|
|
60202
|
-
const packagePath = path$1.join(dir, "node_modules", formatter.packageName);
|
|
60203
|
-
if (fs.existsSync(packagePath)) return formatter.name;
|
|
60204
|
-
}
|
|
60205
|
-
}
|
|
60206
|
-
});
|
|
60207
|
-
return found;
|
|
60208
|
-
}
|
|
60209
|
-
function checkConfigFileWithKeyExists(configFile, key) {
|
|
60210
|
-
try {
|
|
60211
|
-
const content = fs.readFileSync(configFile, "utf-8");
|
|
60212
|
-
return key in JSON.parse(content);
|
|
60213
|
-
} catch {
|
|
60214
|
-
return false;
|
|
60215
|
-
}
|
|
60216
|
-
}
|
|
60217
|
-
/**
|
|
60218
|
-
* Format the given patterns with a specified or auto-detected formatter. It returns `true` if a
|
|
60219
|
-
* formatter is found and the formatting process passes, otherwise returns `false`.
|
|
60220
|
-
*/
|
|
60221
|
-
async function format$1(patterns, options = {}) {
|
|
60222
|
-
const formatterName = options.formatter ?? await detect({
|
|
60223
|
-
cwd: options.cwd,
|
|
60224
|
-
stopDir: options.stopDir
|
|
60225
|
-
});
|
|
60226
|
-
if (!formatterName) return false;
|
|
60227
|
-
const formatter = formatters[formatterName];
|
|
60228
|
-
const ctx = {
|
|
60229
|
-
cwd: options.cwd ? path$1.resolve(options.cwd) : process.cwd(),
|
|
60230
|
-
async getPackageManager() {
|
|
60231
|
-
if (options.packageManager) return options.packageManager;
|
|
60232
|
-
return (await detect$1({
|
|
60233
|
-
cwd: options.cwd,
|
|
60234
|
-
stopDir: options.stopDir
|
|
60235
|
-
}))?.agent ?? "npm";
|
|
60236
|
-
}
|
|
60237
|
-
};
|
|
60238
|
-
await formatter.format(patterns, ctx);
|
|
60239
|
-
return true;
|
|
60240
|
-
}
|
|
60241
|
-
|
|
60242
|
-
//#endregion
|
|
60243
|
-
//#region ../../node_modules/.pnpm/@changesets+errors@1.0.0-next.3/node_modules/@changesets/errors/dist/index.mjs
|
|
60244
|
-
var GitError = class extends Error {
|
|
60245
|
-
code;
|
|
60246
|
-
constructor(code, message) {
|
|
60247
|
-
super(`${message}, exit code: ${code}`);
|
|
60248
|
-
this.code = code;
|
|
60249
|
-
}
|
|
60250
|
-
};
|
|
60251
|
-
var InternalError = class extends Error {
|
|
60252
|
-
constructor(message) {
|
|
60253
|
-
super(message);
|
|
60254
|
-
}
|
|
60255
|
-
};
|
|
60256
|
-
|
|
60257
60270
|
//#endregion
|
|
60258
60271
|
//#region ../../node_modules/.pnpm/tinyexec@1.2.4/node_modules/tinyexec/dist/main.mjs
|
|
60259
60272
|
const h = /^path$/i;
|
|
@@ -60582,7 +60595,221 @@ const R = (e, t, n) => {
|
|
|
60582
60595
|
const z = R;
|
|
60583
60596
|
|
|
60584
60597
|
//#endregion
|
|
60585
|
-
//#region ../../node_modules/.pnpm/@changesets+
|
|
60598
|
+
//#region ../../node_modules/.pnpm/@changesets+format@0.1.1/node_modules/@changesets/format/dist/index.js
|
|
60599
|
+
/**
|
|
60600
|
+
* Traverse upwards from `startDir` to `stopDir` (inclusive), calling `cb` in each directory. If
|
|
60601
|
+
* `cb` returns a non-null value, it'll stop and return that value.
|
|
60602
|
+
*/
|
|
60603
|
+
function traverseUpwards(startDir, stopDir, cb) {
|
|
60604
|
+
let dir = startDir;
|
|
60605
|
+
while (dir) {
|
|
60606
|
+
const result = cb(dir);
|
|
60607
|
+
if (result !== void 0) return result;
|
|
60608
|
+
if (dir === stopDir) break;
|
|
60609
|
+
const nextDir = path$1.dirname(dir);
|
|
60610
|
+
if (nextDir === dir) break;
|
|
60611
|
+
dir = nextDir;
|
|
60612
|
+
}
|
|
60613
|
+
}
|
|
60614
|
+
async function packageManagerExecute(packageManager, args, cwd) {
|
|
60615
|
+
const cmd = resolveCommand(packageManager, "execute-local", args) ?? {
|
|
60616
|
+
command: "npx",
|
|
60617
|
+
args
|
|
60618
|
+
};
|
|
60619
|
+
return await spawnProcess(cmd.command, cmd.args, cwd);
|
|
60620
|
+
}
|
|
60621
|
+
async function spawnProcess(command, args, cwd) {
|
|
60622
|
+
await z(command, args, {
|
|
60623
|
+
nodeOptions: { cwd },
|
|
60624
|
+
throwOnError: true
|
|
60625
|
+
});
|
|
60626
|
+
}
|
|
60627
|
+
const formatters = {
|
|
60628
|
+
prettier: {
|
|
60629
|
+
name: "prettier",
|
|
60630
|
+
packageName: "prettier",
|
|
60631
|
+
configFiles: [
|
|
60632
|
+
".prettierrc",
|
|
60633
|
+
".prettierrc.json",
|
|
60634
|
+
".prettierrc.yml",
|
|
60635
|
+
".prettierrc.yaml",
|
|
60636
|
+
".prettierrc.json5",
|
|
60637
|
+
".prettierrc.js",
|
|
60638
|
+
"prettier.config.js",
|
|
60639
|
+
".prettierrc.ts",
|
|
60640
|
+
"prettier.config.ts",
|
|
60641
|
+
".prettierrc.mjs",
|
|
60642
|
+
"prettier.config.mjs",
|
|
60643
|
+
".prettierrc.mts",
|
|
60644
|
+
"prettier.config.mts",
|
|
60645
|
+
".prettierrc.cjs",
|
|
60646
|
+
"prettier.config.cjs",
|
|
60647
|
+
".prettierrc.cts",
|
|
60648
|
+
"prettier.config.cts",
|
|
60649
|
+
".prettierrc.toml",
|
|
60650
|
+
{
|
|
60651
|
+
file: "package.json",
|
|
60652
|
+
key: "prettier"
|
|
60653
|
+
}
|
|
60654
|
+
],
|
|
60655
|
+
async format(files, ctx) {
|
|
60656
|
+
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60657
|
+
"prettier",
|
|
60658
|
+
"--write",
|
|
60659
|
+
...files
|
|
60660
|
+
], ctx.cwd);
|
|
60661
|
+
}
|
|
60662
|
+
},
|
|
60663
|
+
biome: {
|
|
60664
|
+
name: "biome",
|
|
60665
|
+
packageName: "@biomejs/biome",
|
|
60666
|
+
configFiles: [
|
|
60667
|
+
"biome.json",
|
|
60668
|
+
"biome.jsonc",
|
|
60669
|
+
".biome.json",
|
|
60670
|
+
".biome.jsonc"
|
|
60671
|
+
],
|
|
60672
|
+
async format(files, ctx) {
|
|
60673
|
+
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60674
|
+
"@biomejs/biome",
|
|
60675
|
+
"format",
|
|
60676
|
+
"--write",
|
|
60677
|
+
...files
|
|
60678
|
+
], ctx.cwd);
|
|
60679
|
+
}
|
|
60680
|
+
},
|
|
60681
|
+
oxfmt: {
|
|
60682
|
+
name: "oxfmt",
|
|
60683
|
+
packageName: "oxfmt",
|
|
60684
|
+
configFiles: [
|
|
60685
|
+
".oxfmtrc.json",
|
|
60686
|
+
".oxfmtrc.jsonc",
|
|
60687
|
+
"oxfmt.config.ts"
|
|
60688
|
+
],
|
|
60689
|
+
async format(files, ctx) {
|
|
60690
|
+
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60691
|
+
"oxfmt",
|
|
60692
|
+
"--write",
|
|
60693
|
+
...files
|
|
60694
|
+
], ctx.cwd);
|
|
60695
|
+
}
|
|
60696
|
+
},
|
|
60697
|
+
deno: {
|
|
60698
|
+
name: "deno",
|
|
60699
|
+
configFiles: [
|
|
60700
|
+
"deno.json",
|
|
60701
|
+
"deno.jsonc",
|
|
60702
|
+
{
|
|
60703
|
+
file: "deno.json",
|
|
60704
|
+
key: "fmt"
|
|
60705
|
+
}
|
|
60706
|
+
],
|
|
60707
|
+
async format(files, ctx) {
|
|
60708
|
+
await spawnProcess("deno", ["fmt", ...files], ctx.cwd);
|
|
60709
|
+
}
|
|
60710
|
+
},
|
|
60711
|
+
dprint: {
|
|
60712
|
+
name: "dprint",
|
|
60713
|
+
packageName: "dprint",
|
|
60714
|
+
configFiles: [
|
|
60715
|
+
"dprint.json",
|
|
60716
|
+
"dprint.jsonc",
|
|
60717
|
+
".dprint.json",
|
|
60718
|
+
".dprint.jsonc"
|
|
60719
|
+
],
|
|
60720
|
+
async format(files, ctx) {
|
|
60721
|
+
await packageManagerExecute(await ctx.getPackageManager(), [
|
|
60722
|
+
"dprint",
|
|
60723
|
+
"fmt",
|
|
60724
|
+
...files
|
|
60725
|
+
], ctx.cwd);
|
|
60726
|
+
}
|
|
60727
|
+
}
|
|
60728
|
+
};
|
|
60729
|
+
const defaultDetectOrder = Object.freeze([
|
|
60730
|
+
"dprint",
|
|
60731
|
+
"deno",
|
|
60732
|
+
"oxfmt",
|
|
60733
|
+
"biome",
|
|
60734
|
+
"prettier"
|
|
60735
|
+
]);
|
|
60736
|
+
/**
|
|
60737
|
+
* Detect the preferred formatter used in the project.
|
|
60738
|
+
*/
|
|
60739
|
+
async function detect(options = {}) {
|
|
60740
|
+
const cwd = options.cwd ? path$1.resolve(options.cwd) : process.cwd();
|
|
60741
|
+
const stopDir = options.stopDir ? path$1.resolve(cwd, options.stopDir) : void 0;
|
|
60742
|
+
const order = options.order ?? defaultDetectOrder;
|
|
60743
|
+
let found = traverseUpwards(cwd, stopDir, (dir) => {
|
|
60744
|
+
for (const formatterName of order) {
|
|
60745
|
+
const formatter = formatters[formatterName];
|
|
60746
|
+
for (const configFile of formatter.configFiles) if (typeof configFile === "string") {
|
|
60747
|
+
const configFilePath = path$1.join(dir, configFile);
|
|
60748
|
+
if (fs.existsSync(configFilePath)) return formatter.name;
|
|
60749
|
+
} else if (checkConfigFileWithKeyExists(path$1.join(dir, configFile.file), configFile.key)) return formatter.name;
|
|
60750
|
+
}
|
|
60751
|
+
});
|
|
60752
|
+
found ??= traverseUpwards(cwd, stopDir, (dir) => {
|
|
60753
|
+
for (const formatterName of order) {
|
|
60754
|
+
const formatter = formatters[formatterName];
|
|
60755
|
+
if (formatter.packageName) {
|
|
60756
|
+
const packagePath = path$1.join(dir, "node_modules", formatter.packageName);
|
|
60757
|
+
if (fs.existsSync(packagePath)) return formatter.name;
|
|
60758
|
+
}
|
|
60759
|
+
}
|
|
60760
|
+
});
|
|
60761
|
+
return found;
|
|
60762
|
+
}
|
|
60763
|
+
function checkConfigFileWithKeyExists(configFile, key) {
|
|
60764
|
+
try {
|
|
60765
|
+
const content = fs.readFileSync(configFile, "utf-8");
|
|
60766
|
+
return key in JSON.parse(content);
|
|
60767
|
+
} catch {
|
|
60768
|
+
return false;
|
|
60769
|
+
}
|
|
60770
|
+
}
|
|
60771
|
+
/**
|
|
60772
|
+
* Format the given patterns with a specified or auto-detected formatter. It returns `true` if a
|
|
60773
|
+
* formatter is found and the formatting process passes, otherwise returns `false`.
|
|
60774
|
+
*/
|
|
60775
|
+
async function format$1(patterns, options = {}) {
|
|
60776
|
+
const formatterName = options.formatter ?? await detect({
|
|
60777
|
+
cwd: options.cwd,
|
|
60778
|
+
stopDir: options.stopDir
|
|
60779
|
+
});
|
|
60780
|
+
if (!formatterName) return false;
|
|
60781
|
+
const formatter = formatters[formatterName];
|
|
60782
|
+
const ctx = {
|
|
60783
|
+
cwd: options.cwd ? path$1.resolve(options.cwd) : process.cwd(),
|
|
60784
|
+
async getPackageManager() {
|
|
60785
|
+
if (options.packageManager) return options.packageManager;
|
|
60786
|
+
return (await detect$1({
|
|
60787
|
+
cwd: options.cwd,
|
|
60788
|
+
stopDir: options.stopDir
|
|
60789
|
+
}))?.agent ?? "npm";
|
|
60790
|
+
}
|
|
60791
|
+
};
|
|
60792
|
+
await formatter.format(patterns, ctx);
|
|
60793
|
+
return true;
|
|
60794
|
+
}
|
|
60795
|
+
|
|
60796
|
+
//#endregion
|
|
60797
|
+
//#region ../../node_modules/.pnpm/@changesets+errors@1.0.0-next.4/node_modules/@changesets/errors/dist/index.mjs
|
|
60798
|
+
var GitError = class extends Error {
|
|
60799
|
+
code;
|
|
60800
|
+
constructor(code, message) {
|
|
60801
|
+
super(`${message}, exit code: ${code}`);
|
|
60802
|
+
this.code = code;
|
|
60803
|
+
}
|
|
60804
|
+
};
|
|
60805
|
+
var InternalError = class extends Error {
|
|
60806
|
+
constructor(message) {
|
|
60807
|
+
super(message);
|
|
60808
|
+
}
|
|
60809
|
+
};
|
|
60810
|
+
|
|
60811
|
+
//#endregion
|
|
60812
|
+
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.7/node_modules/@changesets/git/dist/index.mjs
|
|
60586
60813
|
async function getDivergedCommit(cwd, ref) {
|
|
60587
60814
|
const cmd = await z("git", [
|
|
60588
60815
|
"merge-base",
|
|
@@ -62754,7 +62981,7 @@ function applyEdits(text, edits) {
|
|
|
62754
62981
|
}
|
|
62755
62982
|
|
|
62756
62983
|
//#endregion
|
|
62757
|
-
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.
|
|
62984
|
+
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.8/node_modules/@changesets/apply-release-plan/dist/index.mjs
|
|
62758
62985
|
/**
|
|
62759
62986
|
* A simple JSON editing utility that preserves formatting. They specified operation keys
|
|
62760
62987
|
* must exist in the JSON for this implementation.
|
|
@@ -62895,13 +63122,8 @@ const DEPENDENCY_TYPES = [
|
|
|
62895
63122
|
"peerDependencies",
|
|
62896
63123
|
"optionalDependencies"
|
|
62897
63124
|
];
|
|
62898
|
-
function
|
|
63125
|
+
function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateInternalDependencies, onlyUpdatePeerDependentsWhenOutOfRange, bumpVersionsWithWorkspaceProtocolOnly, snapshot }) {
|
|
62899
63126
|
const pkgJsonEdits = [];
|
|
62900
|
-
const { newVersion, packageJson } = release;
|
|
62901
|
-
pkgJsonEdits.push({
|
|
62902
|
-
keys: ["version"],
|
|
62903
|
-
value: newVersion
|
|
62904
|
-
});
|
|
62905
63127
|
for (const depType of DEPENDENCY_TYPES) {
|
|
62906
63128
|
const deps = packageJson[depType];
|
|
62907
63129
|
if (deps) for (const { name, version, oldVersion, type, dir } of versionsToUpdate) {
|
|
@@ -62935,10 +63157,7 @@ function versionPackage(release, versionsToUpdate, { cwd, updateInternalDependen
|
|
|
62935
63157
|
}
|
|
62936
63158
|
}
|
|
62937
63159
|
}
|
|
62938
|
-
return
|
|
62939
|
-
...release,
|
|
62940
|
-
pkgJsonEdits
|
|
62941
|
-
};
|
|
63160
|
+
return pkgJsonEdits;
|
|
62942
63161
|
}
|
|
62943
63162
|
function getVersionRangeType(versionRange) {
|
|
62944
63163
|
if (versionRange.charAt(0) === "^") return "^";
|
|
@@ -62969,6 +63188,13 @@ async function getFormatter(config, cwd) {
|
|
|
62969
63188
|
});
|
|
62970
63189
|
};
|
|
62971
63190
|
}
|
|
63191
|
+
async function updatePackageJson(dir, edits) {
|
|
63192
|
+
if (edits.length === 0) return;
|
|
63193
|
+
const pkgJsonPath = path$1.resolve(dir, "package.json");
|
|
63194
|
+
const pkgUpdated = editJson(await fs$1.readFile(pkgJsonPath, "utf8"), edits);
|
|
63195
|
+
await fs$1.writeFile(pkgJsonPath, pkgUpdated);
|
|
63196
|
+
return pkgJsonPath;
|
|
63197
|
+
}
|
|
62972
63198
|
async function applyReleasePlan(releasePlan, packages, config = defaultConfig, snapshot, contextDir = import.meta.dirname) {
|
|
62973
63199
|
const cwd = packages.rootDir;
|
|
62974
63200
|
const touchedFiles = [];
|
|
@@ -62997,22 +63223,21 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
62997
63223
|
type,
|
|
62998
63224
|
dir: packagesByName.get(name).dir
|
|
62999
63225
|
}));
|
|
63000
|
-
const
|
|
63001
|
-
|
|
63002
|
-
|
|
63003
|
-
|
|
63004
|
-
|
|
63005
|
-
|
|
63006
|
-
|
|
63007
|
-
});
|
|
63008
|
-
});
|
|
63226
|
+
const dependencyUpdateOptions = {
|
|
63227
|
+
cwd,
|
|
63228
|
+
updateInternalDependencies: config.updateInternalDependencies,
|
|
63229
|
+
onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange,
|
|
63230
|
+
bumpVersionsWithWorkspaceProtocolOnly: config.bumpVersionsWithWorkspaceProtocolOnly,
|
|
63231
|
+
snapshot
|
|
63232
|
+
};
|
|
63009
63233
|
const filesToFormat = [];
|
|
63010
|
-
for (const release of
|
|
63011
|
-
const { changelog,
|
|
63012
|
-
const pkgJsonPath =
|
|
63013
|
-
|
|
63014
|
-
|
|
63015
|
-
|
|
63234
|
+
for (const release of releaseWithChangelogs) {
|
|
63235
|
+
const { changelog, dir, name, newVersion, packageJson } = release;
|
|
63236
|
+
const pkgJsonPath = await updatePackageJson(dir, [{
|
|
63237
|
+
keys: ["version"],
|
|
63238
|
+
value: newVersion
|
|
63239
|
+
}, ...getDependencyVersionEdits(packageJson, versionsToUpdate, dependencyUpdateOptions)]);
|
|
63240
|
+
if (pkgJsonPath) touchedFiles.push(pkgJsonPath);
|
|
63016
63241
|
if (changelog && changelog.length > 0) {
|
|
63017
63242
|
const changelogPath = path$1.resolve(dir, "CHANGELOG.md");
|
|
63018
63243
|
await updateChangelog(changelogPath, changelog, name);
|
|
@@ -63020,6 +63245,11 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
63020
63245
|
filesToFormat.push(changelogPath);
|
|
63021
63246
|
}
|
|
63022
63247
|
}
|
|
63248
|
+
if (packages.rootPackage) {
|
|
63249
|
+
const pkgJsonEdits = getDependencyVersionEdits(packages.rootPackage.packageJson, versionsToUpdate, dependencyUpdateOptions);
|
|
63250
|
+
const pkgJsonPath = await updatePackageJson(packages.rootPackage.dir, pkgJsonEdits);
|
|
63251
|
+
if (pkgJsonPath) touchedFiles.push(pkgJsonPath);
|
|
63252
|
+
}
|
|
63023
63253
|
if (filesToFormat.length > 0) await (await getFormatter(config.format, cwd))(filesToFormat);
|
|
63024
63254
|
if (releasePlan.preState == null || releasePlan.preState.mode === "exit") {
|
|
63025
63255
|
const changesetFolder = path$1.resolve(cwd, ".changeset");
|
|
@@ -63111,7 +63341,7 @@ async function updateChangelog(changelogPath, changelog, name) {
|
|
|
63111
63341
|
}
|
|
63112
63342
|
|
|
63113
63343
|
//#endregion
|
|
63114
|
-
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.
|
|
63344
|
+
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.8/node_modules/@changesets/assemble-release-plan/dist/index.mjs
|
|
63115
63345
|
function getHighestReleaseType(releases) {
|
|
63116
63346
|
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`);
|
|
63117
63347
|
let highestReleaseType = "none";
|
|
@@ -63458,7 +63688,7 @@ function getPreInfo(changesets, packagesByName, config, preState) {
|
|
|
63458
63688
|
}
|
|
63459
63689
|
|
|
63460
63690
|
//#endregion
|
|
63461
|
-
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.
|
|
63691
|
+
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.7/node_modules/@changesets/pre/dist/index.mjs
|
|
63462
63692
|
async function outputFile(filePath, content) {
|
|
63463
63693
|
await fs$1.mkdir(path$1.dirname(filePath), { recursive: true });
|
|
63464
63694
|
await fs$1.writeFile(filePath, content, "utf8");
|
|
@@ -63488,7 +63718,7 @@ async function migratePreState(rootDir, preState) {
|
|
|
63488
63718
|
}
|
|
63489
63719
|
|
|
63490
63720
|
//#endregion
|
|
63491
|
-
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.
|
|
63721
|
+
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.8/node_modules/@changesets/parse/dist/index.mjs
|
|
63492
63722
|
const mdRegex = /\s*---([^]*?)\r?\n\s*---(\s*(?:\n|$)[^]*)/;
|
|
63493
63723
|
const EXAMPLE_FORMAT = `---\n"package-name": patch\n---`;
|
|
63494
63724
|
const validVersionTypes = [
|
|
@@ -63542,7 +63772,7 @@ YAML error: ${e instanceof Error ? e.message : String(e)}\nFrontmatter content:\
|
|
|
63542
63772
|
}
|
|
63543
63773
|
|
|
63544
63774
|
//#endregion
|
|
63545
|
-
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.
|
|
63775
|
+
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.8/node_modules/@changesets/read/dist/index.mjs
|
|
63546
63776
|
const ignoredMdFiles = [
|
|
63547
63777
|
/^README\.md$/i,
|
|
63548
63778
|
"AGENTS.md",
|
|
@@ -63576,7 +63806,7 @@ async function readChangesets(rootDir, sinceRef) {
|
|
|
63576
63806
|
}
|
|
63577
63807
|
|
|
63578
63808
|
//#endregion
|
|
63579
|
-
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.
|
|
63809
|
+
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.8/node_modules/@changesets/get-release-plan/dist/index.mjs
|
|
63580
63810
|
async function getReleasePlan(cwd, sinceRef, passedConfig) {
|
|
63581
63811
|
const packages = await getPackages(cwd);
|
|
63582
63812
|
const configResult = await readConfig(packages.rootDir, packages);
|