@savvy-web/silk 3.2.9 → 3.2.11
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 +193 -108
- package/changesets-changelog.d.cts +59 -12
- package/changesets-changelog.d.ts +59 -12
- package/changesets-changelog.js +194 -109
- package/changesets-markdownlint.cjs +193 -108
- package/changesets-markdownlint.d.cts +59 -12
- package/changesets-markdownlint.d.ts +59 -12
- package/changesets-markdownlint.js +194 -109
- package/package.json +6 -6
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
package/changesets-changelog.js
CHANGED
|
@@ -2350,7 +2350,7 @@ var GlobSet = class GlobSet extends Schema.Class("GlobSet")(Schema.Struct({ patt
|
|
|
2350
2350
|
};
|
|
2351
2351
|
|
|
2352
2352
|
//#endregion
|
|
2353
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
2353
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/BunExtension.js
|
|
2354
2354
|
/**
|
|
2355
2355
|
* Extension data specific to bun lockfiles, attached to `Lockfile.extension`
|
|
2356
2356
|
* when the format is `"bun"`.
|
|
@@ -2372,7 +2372,7 @@ var BunExtension = class extends Schema.Class("BunExtension")({
|
|
|
2372
2372
|
}) {};
|
|
2373
2373
|
|
|
2374
2374
|
//#endregion
|
|
2375
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2375
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.6.0_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/CatalogResolver.js
|
|
2376
2376
|
/**
|
|
2377
2377
|
* Contract for resolving pnpm `catalog:` dependency specifiers to concrete
|
|
2378
2378
|
* version ranges.
|
|
@@ -2419,7 +2419,7 @@ var CatalogResolver = class CatalogResolver extends Context.Service()("@effected
|
|
|
2419
2419
|
};
|
|
2420
2420
|
|
|
2421
2421
|
//#endregion
|
|
2422
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2422
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.6.0_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/WorkspaceResolver.js
|
|
2423
2423
|
/**
|
|
2424
2424
|
* Raised when a `catalog:` or `workspace:` specifier cannot be resolved
|
|
2425
2425
|
* because the resolution mechanism itself failed — not for an ordinary
|
|
@@ -2481,7 +2481,7 @@ var WorkspaceResolver = class WorkspaceResolver extends Context.Service()("@effe
|
|
|
2481
2481
|
};
|
|
2482
2482
|
|
|
2483
2483
|
//#endregion
|
|
2484
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2484
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.6.0_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/CatalogAssemblyError.js
|
|
2485
2485
|
/**
|
|
2486
2486
|
* Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
|
|
2487
2487
|
* that is unreadable or not valid YAML, a root `package.json` `workspaces` field
|
|
@@ -2526,7 +2526,7 @@ var CatalogAssemblyError = class extends Schema.TaggedErrorClass()("CatalogAssem
|
|
|
2526
2526
|
};
|
|
2527
2527
|
|
|
2528
2528
|
//#endregion
|
|
2529
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
2529
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.6.0_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/DependencySection.js
|
|
2530
2530
|
/**
|
|
2531
2531
|
* The short dependency kind: which dependency map an entry came from, named the
|
|
2532
2532
|
* way consumers branch on it.
|
|
@@ -4036,7 +4036,7 @@ const isComparatorSetSubset = (sub, sup) => {
|
|
|
4036
4036
|
};
|
|
4037
4037
|
|
|
4038
4038
|
//#endregion
|
|
4039
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
4039
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.6.0_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/DependencySpecifier.js
|
|
4040
4040
|
/**
|
|
4041
4041
|
* Indicates that a string could not be parsed as a valid dependency specifier.
|
|
4042
4042
|
*
|
|
@@ -4244,7 +4244,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
|
|
|
4244
4244
|
});
|
|
4245
4245
|
|
|
4246
4246
|
//#endregion
|
|
4247
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
4247
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.6.0_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/IntegrityHash.js
|
|
4248
4248
|
const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
|
|
4249
4249
|
const COREPACK_RE = /^(sha1|sha256|sha384|sha512)\.[0-9a-f]+$/;
|
|
4250
4250
|
const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
|
|
@@ -4298,7 +4298,7 @@ const IntegrityHash = Object.assign(brandedIntegrity, {
|
|
|
4298
4298
|
});
|
|
4299
4299
|
|
|
4300
4300
|
//#endregion
|
|
4301
|
-
//#region ../../node_modules/.pnpm/@effected+commands@0.
|
|
4301
|
+
//#region ../../node_modules/.pnpm/@effected+commands@0.2.0_effect@4.0.0-beta.101/node_modules/@effected/commands/LocalExec.js
|
|
4302
4302
|
/**
|
|
4303
4303
|
* The package managers whose project-local exec argv this package knows.
|
|
4304
4304
|
*
|
|
@@ -4325,15 +4325,22 @@ const PREFIXES = {
|
|
|
4325
4325
|
"--no",
|
|
4326
4326
|
"--"
|
|
4327
4327
|
],
|
|
4328
|
-
dlxPrefix: ["npx"]
|
|
4328
|
+
dlxPrefix: ["npx"],
|
|
4329
|
+
scriptPrefix: [
|
|
4330
|
+
"npm",
|
|
4331
|
+
"run",
|
|
4332
|
+
"--"
|
|
4333
|
+
]
|
|
4329
4334
|
},
|
|
4330
4335
|
pnpm: {
|
|
4331
4336
|
prefix: ["pnpm", "exec"],
|
|
4332
|
-
dlxPrefix: ["pnpm", "dlx"]
|
|
4337
|
+
dlxPrefix: ["pnpm", "dlx"],
|
|
4338
|
+
scriptPrefix: ["pnpm", "run"]
|
|
4333
4339
|
},
|
|
4334
4340
|
yarn: {
|
|
4335
4341
|
prefix: ["yarn", "exec"],
|
|
4336
|
-
dlxPrefix: ["yarn", "dlx"]
|
|
4342
|
+
dlxPrefix: ["yarn", "dlx"],
|
|
4343
|
+
scriptPrefix: ["yarn", "run"]
|
|
4337
4344
|
},
|
|
4338
4345
|
bun: {
|
|
4339
4346
|
prefix: [
|
|
@@ -4341,15 +4348,16 @@ const PREFIXES = {
|
|
|
4341
4348
|
"x",
|
|
4342
4349
|
"--no-install"
|
|
4343
4350
|
],
|
|
4344
|
-
dlxPrefix: ["bun", "x"]
|
|
4351
|
+
dlxPrefix: ["bun", "x"],
|
|
4352
|
+
scriptPrefix: ["bun", "run"]
|
|
4345
4353
|
}
|
|
4346
4354
|
};
|
|
4347
4355
|
/**
|
|
4348
4356
|
* How to run a project-local binary here.
|
|
4349
4357
|
*
|
|
4350
4358
|
* @remarks
|
|
4351
|
-
* This is the whole of what tool discovery needs from a workspace:
|
|
4352
|
-
*
|
|
4359
|
+
* This is the whole of what tool discovery needs from a workspace: argv
|
|
4360
|
+
* prefixes and a directory to run them in. It deliberately carries no workspace
|
|
4353
4361
|
* root, no manifest and no package-manager semantics — `label` is for
|
|
4354
4362
|
* reporting only, and nothing in this package branches on it.
|
|
4355
4363
|
*
|
|
@@ -4362,6 +4370,8 @@ var ExecContext = class extends Schema.Class("ExecContext")({
|
|
|
4362
4370
|
prefix: Schema.Array(Schema.String),
|
|
4363
4371
|
/** argv prefix that fetch-and-runs a package binary, e.g. `["pnpm", "dlx"]`. */
|
|
4364
4372
|
dlxPrefix: Schema.Array(Schema.String),
|
|
4373
|
+
/** argv prefix that runs a `package.json` script, e.g. `["pnpm", "run"]`. */
|
|
4374
|
+
scriptPrefix: Schema.Array(Schema.String),
|
|
4365
4375
|
/** Directory the prefix must run in. Omitted means "wherever the caller is". */
|
|
4366
4376
|
directory: Schema.optionalKey(Schema.String)
|
|
4367
4377
|
}) {
|
|
@@ -4374,6 +4384,19 @@ var ExecContext = class extends Schema.Class("ExecContext")({
|
|
|
4374
4384
|
return this.withPrefix(command, this.dlxPrefix);
|
|
4375
4385
|
}
|
|
4376
4386
|
/**
|
|
4387
|
+
* As {@link ExecContext.apply}, using `scriptPrefix` — runs a
|
|
4388
|
+
* `package.json` script by name.
|
|
4389
|
+
*
|
|
4390
|
+
* @remarks
|
|
4391
|
+
* The command's `command` is the script name and its `args` are the script's
|
|
4392
|
+
* arguments. Every launcher uses the explicit `run` form, and npm's prefix
|
|
4393
|
+
* carries a trailing `--` because bare `npm run <script> --flag` silently
|
|
4394
|
+
* claims `--flag` for npm itself instead of the script.
|
|
4395
|
+
*/
|
|
4396
|
+
applyScript(command) {
|
|
4397
|
+
return this.withPrefix(command, this.scriptPrefix);
|
|
4398
|
+
}
|
|
4399
|
+
/**
|
|
4377
4400
|
* Core's `prefix` and `setCwd` both return NEW commands, so the caller's
|
|
4378
4401
|
* value is never mutated.
|
|
4379
4402
|
*/
|
|
@@ -4424,9 +4447,21 @@ var LocalExecError = class extends Schema.TaggedErrorClass()("LocalExecError", {
|
|
|
4424
4447
|
* @public
|
|
4425
4448
|
*/
|
|
4426
4449
|
var LocalExec = class LocalExec extends Context.Service()("@effected/commands/LocalExec") {
|
|
4427
|
-
/** The exec and
|
|
4450
|
+
/** The exec, dlx and script-runner argv prefixes for a launcher — the single home of that knowledge. */
|
|
4428
4451
|
static prefixes = (launcher) => PREFIXES[launcher];
|
|
4429
4452
|
/**
|
|
4453
|
+
* The argv prefix that runs a `package.json` script for `launcher`.
|
|
4454
|
+
*
|
|
4455
|
+
* @remarks
|
|
4456
|
+
* A projection of {@link LocalExec.prefixes} for the caller that only runs
|
|
4457
|
+
* scripts. Every launcher uses the explicit `run` form —
|
|
4458
|
+
* `["npm", "run", "--"]`, `["pnpm", "run"]`, `["yarn", "run"]` and
|
|
4459
|
+
* `["bun", "run"]` — and npm's carries a trailing `--` because bare
|
|
4460
|
+
* `npm run <script> --flag` silently claims `--flag` for npm itself; the
|
|
4461
|
+
* other three forward post-script arguments without it.
|
|
4462
|
+
*/
|
|
4463
|
+
static scriptPrefix = (launcher) => PREFIXES[launcher].scriptPrefix;
|
|
4464
|
+
/**
|
|
4430
4465
|
* No project-local execution context: every tool resolves globally.
|
|
4431
4466
|
*
|
|
4432
4467
|
* @remarks
|
|
@@ -4436,11 +4471,12 @@ var LocalExec = class LocalExec extends Context.Service()("@effected/commands/Lo
|
|
|
4436
4471
|
static layerNone = Layer.succeed(this, { context: Effect.succeed(Option.none()) });
|
|
4437
4472
|
/** A context for a known package manager, from the static prefix table. */
|
|
4438
4473
|
static layerFor = (launcher, options) => {
|
|
4439
|
-
const { prefix, dlxPrefix } = PREFIXES[launcher];
|
|
4474
|
+
const { prefix, dlxPrefix, scriptPrefix } = PREFIXES[launcher];
|
|
4440
4475
|
return LocalExec.layerContext(ExecContext.make({
|
|
4441
4476
|
label: launcher,
|
|
4442
4477
|
prefix,
|
|
4443
4478
|
dlxPrefix,
|
|
4479
|
+
scriptPrefix,
|
|
4444
4480
|
...options?.directory === void 0 ? {} : { directory: options.directory }
|
|
4445
4481
|
}));
|
|
4446
4482
|
};
|
|
@@ -4471,7 +4507,7 @@ var LocalExec = class LocalExec extends Context.Service()("@effected/commands/Lo
|
|
|
4471
4507
|
};
|
|
4472
4508
|
|
|
4473
4509
|
//#endregion
|
|
4474
|
-
//#region ../../node_modules/.pnpm/@effected+npm@0.
|
|
4510
|
+
//#region ../../node_modules/.pnpm/@effected+npm@0.6.0_@effected+semver@0.2.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/ReleaseAgeGate.js
|
|
4475
4511
|
const MS_PER_MINUTE = 6e4;
|
|
4476
4512
|
/**
|
|
4477
4513
|
* A source's partial contribution to a {@link ReleaseAgeGate}: the effective
|
|
@@ -4642,7 +4678,7 @@ var ReleaseAgeGate = class ReleaseAgeGate extends Schema.Class("ReleaseAgeGate")
|
|
|
4642
4678
|
};
|
|
4643
4679
|
|
|
4644
4680
|
//#endregion
|
|
4645
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
4681
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/ImporterDependency.js
|
|
4646
4682
|
/**
|
|
4647
4683
|
* One declared dependency of one workspace importer, as the lockfile records it.
|
|
4648
4684
|
*
|
|
@@ -4681,7 +4717,7 @@ var ImporterDependency = class extends Schema.Class("ImporterDependency")({
|
|
|
4681
4717
|
}) {};
|
|
4682
4718
|
|
|
4683
4719
|
//#endregion
|
|
4684
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
4720
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/LockfileImporter.js
|
|
4685
4721
|
/**
|
|
4686
4722
|
* One workspace importer's declared dependencies, as the lockfile records them.
|
|
4687
4723
|
*
|
|
@@ -4706,7 +4742,7 @@ var LockfileImporter = class extends Schema.Class("LockfileImporter")({
|
|
|
4706
4742
|
}) {};
|
|
4707
4743
|
|
|
4708
4744
|
//#endregion
|
|
4709
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
4745
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/ResolvedPackage.js
|
|
4710
4746
|
const EMPTY_DEPENDENCIES = {};
|
|
4711
4747
|
/**
|
|
4712
4748
|
* A package resolved from a lockfile.
|
|
@@ -4742,7 +4778,7 @@ var ResolvedPackage = class extends Schema.Class("ResolvedPackage")({
|
|
|
4742
4778
|
}) {};
|
|
4743
4779
|
|
|
4744
4780
|
//#endregion
|
|
4745
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
4781
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/WorkspaceDependency.js
|
|
4746
4782
|
/**
|
|
4747
4783
|
* A directed dependency edge between two workspace packages as recorded in
|
|
4748
4784
|
* the lockfile.
|
|
@@ -4765,7 +4801,7 @@ var WorkspaceDependency = class extends Schema.Class("WorkspaceDependency")({
|
|
|
4765
4801
|
}) {};
|
|
4766
4802
|
|
|
4767
4803
|
//#endregion
|
|
4768
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
4804
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/PnpmExtension.js
|
|
4769
4805
|
/**
|
|
4770
4806
|
* Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
|
|
4771
4807
|
* when the format is `"pnpm"`.
|
|
@@ -4791,7 +4827,7 @@ var PnpmExtension = class extends Schema.Class("PnpmExtension")({
|
|
|
4791
4827
|
}) {};
|
|
4792
4828
|
|
|
4793
4829
|
//#endregion
|
|
4794
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
4830
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/LockfileFormat.js
|
|
4795
4831
|
/**
|
|
4796
4832
|
* The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
|
|
4797
4833
|
* `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
|
|
@@ -4826,7 +4862,7 @@ const FILENAMES = {
|
|
|
4826
4862
|
const filenameFor = (format) => FILENAMES[format];
|
|
4827
4863
|
|
|
4828
4864
|
//#endregion
|
|
4829
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
4865
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/internal/shared.js
|
|
4830
4866
|
/**
|
|
4831
4867
|
* The four dependency sections of a manifest, in a stable order — the shared
|
|
4832
4868
|
* dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
|
|
@@ -6800,7 +6836,7 @@ var JsoncModifier = class {
|
|
|
6800
6836
|
};
|
|
6801
6837
|
|
|
6802
6838
|
//#endregion
|
|
6803
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
6839
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/internal/bun.js
|
|
6804
6840
|
const DepRecord$2 = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
6805
6841
|
const BunWorkspaceEntry = Schema.Struct({
|
|
6806
6842
|
name: Schema.optionalKey(Schema.String),
|
|
@@ -6894,7 +6930,7 @@ const toFields$3 = (raw) => Effect.gen(function* () {
|
|
|
6894
6930
|
});
|
|
6895
6931
|
|
|
6896
6932
|
//#endregion
|
|
6897
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
6933
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/internal/npm.js
|
|
6898
6934
|
const DepRecord$1 = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
6899
6935
|
const NpmPackageEntry = Schema.Struct({
|
|
6900
6936
|
name: Schema.optionalKey(Schema.String),
|
|
@@ -13905,7 +13941,7 @@ function deepEqualValues(a, b) {
|
|
|
13905
13941
|
}
|
|
13906
13942
|
|
|
13907
13943
|
//#endregion
|
|
13908
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
13944
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/internal/documents.js
|
|
13909
13945
|
/**
|
|
13910
13946
|
* An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
|
|
13911
13947
|
* and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
|
|
@@ -13976,7 +14012,7 @@ const selectSoleDocument = (content) => Effect.gen(function* () {
|
|
|
13976
14012
|
});
|
|
13977
14013
|
|
|
13978
14014
|
//#endregion
|
|
13979
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
14015
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/internal/pnpm.js
|
|
13980
14016
|
const PnpmImporterDeps = Schema.optionalKey(Schema.Record(Schema.String, Schema.Struct({
|
|
13981
14017
|
specifier: Schema.String,
|
|
13982
14018
|
version: Schema.String
|
|
@@ -14102,7 +14138,7 @@ const toFields$1 = (raw) => Effect.gen(function* () {
|
|
|
14102
14138
|
});
|
|
14103
14139
|
|
|
14104
14140
|
//#endregion
|
|
14105
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
14141
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/internal/yarn.js
|
|
14106
14142
|
const YarnLockfileRaw = Schema.Record(Schema.String, Schema.Unknown);
|
|
14107
14143
|
const DepRecord = Schema.optionalKey(Schema.Record(Schema.String, Schema.String));
|
|
14108
14144
|
const YarnEntry = Schema.Struct({
|
|
@@ -14226,7 +14262,7 @@ const cleanYarnDeps = (deps) => {
|
|
|
14226
14262
|
};
|
|
14227
14263
|
|
|
14228
14264
|
//#endregion
|
|
14229
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
14265
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/Lockfile.js
|
|
14230
14266
|
const EMPTY_IMPORTERS = [];
|
|
14231
14267
|
/**
|
|
14232
14268
|
* Failure of `Lockfile.parse`: the given content is not a valid lockfile of
|
|
@@ -14471,7 +14507,7 @@ var Lockfile = class Lockfile extends Schema.Class("Lockfile")({
|
|
|
14471
14507
|
};
|
|
14472
14508
|
|
|
14473
14509
|
//#endregion
|
|
14474
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.
|
|
14510
|
+
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.2.2_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__@effected+npm@0._96898a3d00962223825b2ef21022f405/node_modules/@effected/lockfiles/LockfileIntegrity.js
|
|
14475
14511
|
/**
|
|
14476
14512
|
* The minimal manifest shape {@link LockfileIntegrity.compare} checks a
|
|
14477
14513
|
* lockfile against: a package name plus the four optional dependency maps.
|
|
@@ -14588,7 +14624,7 @@ var LockfileIntegrity = class LockfileIntegrity extends Schema.Class("LockfileIn
|
|
|
14588
14624
|
};
|
|
14589
14625
|
|
|
14590
14626
|
//#endregion
|
|
14591
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.
|
|
14627
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Dependency.js
|
|
14592
14628
|
/**
|
|
14593
14629
|
* A resolved dependency entry pairing a package name with its version
|
|
14594
14630
|
* specifier and the `kind` of map it came from (`@effected/npm`'s
|
|
@@ -14653,7 +14689,7 @@ var Dependency = class extends Schema.Class("Dependency")({
|
|
|
14653
14689
|
};
|
|
14654
14690
|
|
|
14655
14691
|
//#endregion
|
|
14656
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.
|
|
14692
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/DevEngines.js
|
|
14657
14693
|
/**
|
|
14658
14694
|
* A single `devEngines` constraint with a name and optional `version` / `onFail`.
|
|
14659
14695
|
*
|
|
@@ -16251,7 +16287,7 @@ const SpdxExpression = {
|
|
|
16251
16287
|
};
|
|
16252
16288
|
|
|
16253
16289
|
//#endregion
|
|
16254
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.
|
|
16290
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/License.js
|
|
16255
16291
|
/**
|
|
16256
16292
|
* Indicates that a string is not a valid SPDX license identifier or expression.
|
|
16257
16293
|
*
|
|
@@ -16287,7 +16323,7 @@ const isValidSpdx = (value) => {
|
|
|
16287
16323
|
const SpdxLicense = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => isValidSpdx(value) ? void 0 : "Expected a valid SPDX license expression")), Schema.brand("SpdxLicense"));
|
|
16288
16324
|
|
|
16289
16325
|
//#endregion
|
|
16290
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.
|
|
16326
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageManager.js
|
|
16291
16327
|
const PACKAGE_MANAGER_RE = /^([a-z]+)@(\d+\.\d+\.\d+(?:-[a-zA-Z0-9._-]+)?)(?:\+(.+))?$/;
|
|
16292
16328
|
/**
|
|
16293
16329
|
* The `packageManager` field only ever carries corepack's `<algo>.<hex>`
|
|
@@ -16346,7 +16382,7 @@ var PackageManager = class PackageManager extends Schema.Class("PackageManager")
|
|
|
16346
16382
|
};
|
|
16347
16383
|
|
|
16348
16384
|
//#endregion
|
|
16349
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.
|
|
16385
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageName.js
|
|
16350
16386
|
/**
|
|
16351
16387
|
* Indicates that a string could not be used as a valid npm package name.
|
|
16352
16388
|
*
|
|
@@ -16405,7 +16441,7 @@ const PackageName = Object.assign(Schema.Union([ScopedPackageName, UnscopedPacka
|
|
|
16405
16441
|
});
|
|
16406
16442
|
|
|
16407
16443
|
//#endregion
|
|
16408
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.
|
|
16444
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Person.js
|
|
16409
16445
|
const parsePersonString = (input) => {
|
|
16410
16446
|
const emailMatch = input.match(/<([^>]+)>/);
|
|
16411
16447
|
const urlMatch = input.match(/\(([^)]+)\)/);
|
|
@@ -16552,7 +16588,7 @@ var Person = class Person extends Schema.Class("Person")({
|
|
|
16552
16588
|
};
|
|
16553
16589
|
|
|
16554
16590
|
//#endregion
|
|
16555
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.
|
|
16591
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Repository.js
|
|
16556
16592
|
/** The shorthand hosts npm resolves without a scheme. */
|
|
16557
16593
|
const SHORTHAND_HOSTS = /* @__PURE__ */ new Map([
|
|
16558
16594
|
["github", "https://github.com"],
|
|
@@ -16728,7 +16764,7 @@ var Bugs = class Bugs extends Schema.Class("Bugs")({
|
|
|
16728
16764
|
};
|
|
16729
16765
|
|
|
16730
16766
|
//#endregion
|
|
16731
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.
|
|
16767
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/internal/format.js
|
|
16732
16768
|
const KEY_INDEX = new Map([
|
|
16733
16769
|
"$schema",
|
|
16734
16770
|
"name",
|
|
@@ -16952,7 +16988,7 @@ const renderJson = (raw, options) => {
|
|
|
16952
16988
|
};
|
|
16953
16989
|
|
|
16954
16990
|
//#endregion
|
|
16955
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.
|
|
16991
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/package-json/Package.js
|
|
16956
16992
|
const toHashMap = SchemaTransformation.transform({
|
|
16957
16993
|
decode: (record) => HashMap.fromIterable(Object.entries(record)),
|
|
16958
16994
|
encode: (map) => Object.fromEntries(HashMap.toEntries(map))
|
|
@@ -17278,7 +17314,7 @@ var Package = class Package extends Schema.Class("Package")({
|
|
|
17278
17314
|
};
|
|
17279
17315
|
|
|
17280
17316
|
//#endregion
|
|
17281
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
17317
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspacePackage.js
|
|
17282
17318
|
const EMPTY$1 = Object.freeze(Object.create(null));
|
|
17283
17319
|
const EMPTY_MANIFEST = Object.freeze(Object.create(null));
|
|
17284
17320
|
/**
|
|
@@ -17880,7 +17916,7 @@ var Walker$1 = class {
|
|
|
17880
17916
|
};
|
|
17881
17917
|
|
|
17882
17918
|
//#endregion
|
|
17883
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
17919
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceRoot.js
|
|
17884
17920
|
/**
|
|
17885
17921
|
* The marker filenames {@link WorkspaceRoot} probes for, in priority order.
|
|
17886
17922
|
*
|
|
@@ -18068,7 +18104,7 @@ var WorkspaceRoot = class WorkspaceRoot extends Context.Service()("@effected/wor
|
|
|
18068
18104
|
};
|
|
18069
18105
|
|
|
18070
18106
|
//#endregion
|
|
18071
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18107
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/limits.js
|
|
18072
18108
|
/**
|
|
18073
18109
|
* Hard ceiling on directories the enumerator will visit for one pattern set.
|
|
18074
18110
|
* Guards the pathological case a depth cap alone does not: a wide, shallow
|
|
@@ -18087,7 +18123,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
|
|
|
18087
18123
|
const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
18088
18124
|
|
|
18089
18125
|
//#endregion
|
|
18090
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18126
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/traverse.js
|
|
18091
18127
|
/** Directory names never descended into. */
|
|
18092
18128
|
const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
|
|
18093
18129
|
/** Join root-relative POSIX segments; `""` is the root itself. */
|
|
@@ -18178,7 +18214,7 @@ var Traversal = class {
|
|
|
18178
18214
|
};
|
|
18179
18215
|
|
|
18180
18216
|
//#endregion
|
|
18181
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18217
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/enumerate.js
|
|
18182
18218
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
|
18183
18219
|
const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
|
|
18184
18220
|
/**
|
|
@@ -18249,7 +18285,7 @@ const enumerate = (root, globs, options) => Effect.gen(function* () {
|
|
|
18249
18285
|
});
|
|
18250
18286
|
|
|
18251
18287
|
//#endregion
|
|
18252
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18288
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/patterns.js
|
|
18253
18289
|
const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
|
|
18254
18290
|
/** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
|
|
18255
18291
|
const pnpmPatternsOf = (document) => {
|
|
@@ -18307,7 +18343,7 @@ const readPatterns = (root) => Effect.gen(function* () {
|
|
|
18307
18343
|
});
|
|
18308
18344
|
|
|
18309
18345
|
//#endregion
|
|
18310
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18346
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceDiscovery.js
|
|
18311
18347
|
/**
|
|
18312
18348
|
* Raised when a workspace member's `package.json` cannot be read, parsed, or
|
|
18313
18349
|
* used — it is missing, malformed, or lacks a `name` or `version`.
|
|
@@ -18627,7 +18663,10 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends Context.Service()("@ef
|
|
|
18627
18663
|
* (a fabricated root path would leak into consumer path logic), so an
|
|
18628
18664
|
* unstubbed `info()` call is a test-wiring mistake and fails loudly as a
|
|
18629
18665
|
* defect rather than succeeding with a lie or failing with a dishonest
|
|
18630
|
-
* typed error.
|
|
18666
|
+
* typed error. A defect is not absorbed by `Effect.catch` or any
|
|
18667
|
+
* typed-error handler — deliberately, so code under test with a
|
|
18668
|
+
* best-effort `catch` cannot make the mandatory stub look optional; the
|
|
18669
|
+
* unstubbed call still fails the test.
|
|
18631
18670
|
*
|
|
18632
18671
|
* @example
|
|
18633
18672
|
* ```ts
|
|
@@ -18742,7 +18781,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends Context.Service()("@ef
|
|
|
18742
18781
|
const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
|
|
18743
18782
|
|
|
18744
18783
|
//#endregion
|
|
18745
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
18784
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/DependencyGraph.js
|
|
18746
18785
|
/**
|
|
18747
18786
|
* Raised when the workspace dependency graph cannot be topologically ordered
|
|
18748
18787
|
* because it contains a cycle.
|
|
@@ -20390,7 +20429,7 @@ var Git = class Git extends Context.Service()("@effected/git/Git") {
|
|
|
20390
20429
|
};
|
|
20391
20430
|
|
|
20392
20431
|
//#endregion
|
|
20393
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20432
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/ChangeDetector.js
|
|
20394
20433
|
/**
|
|
20395
20434
|
* Which git refs to compare, and whether to fold in the working tree.
|
|
20396
20435
|
*
|
|
@@ -20672,7 +20711,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
20672
20711
|
}
|
|
20673
20712
|
|
|
20674
20713
|
//#endregion
|
|
20675
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20714
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/catalogs.js
|
|
20676
20715
|
/** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
|
|
20677
20716
|
const inlineCatalogs = (manifest) => {
|
|
20678
20717
|
if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
|
|
@@ -20737,7 +20776,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
|
|
|
20737
20776
|
};
|
|
20738
20777
|
|
|
20739
20778
|
//#endregion
|
|
20740
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20779
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/ConfigDependencyHooks.js
|
|
20741
20780
|
/** Whether `value` is a non-null, non-array object. */
|
|
20742
20781
|
const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20743
20782
|
/**
|
|
@@ -20924,7 +20963,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends Context.Service(
|
|
|
20924
20963
|
};
|
|
20925
20964
|
|
|
20926
20965
|
//#endregion
|
|
20927
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
20966
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/PackageManagerName.js
|
|
20928
20967
|
/**
|
|
20929
20968
|
* The four package managers this package understands.
|
|
20930
20969
|
*
|
|
@@ -21214,6 +21253,11 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
21214
21253
|
* reads as a legitimate "no manager here" answer, so a consumer would branch
|
|
21215
21254
|
* on it and proceed, never learning that the test simply forgot to stub.
|
|
21216
21255
|
*
|
|
21256
|
+
* The defect is also not absorbed by `Effect.catch` or any typed-error
|
|
21257
|
+
* handler — deliberately, so code under test with a best-effort `catch`
|
|
21258
|
+
* around detection cannot make the mandatory stub look optional; the
|
|
21259
|
+
* unstubbed call still fails the test.
|
|
21260
|
+
*
|
|
21217
21261
|
* @param overrides - Members to supply; anything omitted dies on use.
|
|
21218
21262
|
*
|
|
21219
21263
|
* @example
|
|
@@ -21248,7 +21292,7 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
|
|
|
21248
21292
|
};
|
|
21249
21293
|
|
|
21250
21294
|
//#endregion
|
|
21251
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21295
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/LockfileReader.js
|
|
21252
21296
|
/**
|
|
21253
21297
|
* Raised when the workspace's lockfile cannot be read off disk.
|
|
21254
21298
|
*
|
|
@@ -21429,7 +21473,7 @@ var LockfileReader = class LockfileReader extends Context.Service()("@effected/w
|
|
|
21429
21473
|
};
|
|
21430
21474
|
|
|
21431
21475
|
//#endregion
|
|
21432
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21476
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/Publishability.js
|
|
21433
21477
|
/** The public npm registry, used when `publishConfig.registry` says nothing. */
|
|
21434
21478
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
|
|
21435
21479
|
/**
|
|
@@ -21566,8 +21610,15 @@ var PublishabilityDetector = class extends Context.Service()("@effected/workspac
|
|
|
21566
21610
|
* silence — `Layer.mergeAll(myDetector, Workspaces.layer())` resolved to the
|
|
21567
21611
|
* default, because `mergeAll` is last-wins. For a service that decides
|
|
21568
21612
|
* whether a package publishes and to which registry, that silent revert was
|
|
21569
|
-
* the worst available failure.
|
|
21570
|
-
*
|
|
21613
|
+
* the worst available failure.
|
|
21614
|
+
*
|
|
21615
|
+
* The composites do not *require* a detector either — nothing inside them
|
|
21616
|
+
* asks a publishability question, so their `R` stays `FileSystem | Path`.
|
|
21617
|
+
* The requirement instead surfaces in the `R` of each operation that asks
|
|
21618
|
+
* (`VersioningStrategy.detect`, e.g.): a program that asks and never wires
|
|
21619
|
+
* a detector fails to compile where that operation's `R` must close — which
|
|
21620
|
+
* can be far from the layer-wiring site — and a program that never asks
|
|
21621
|
+
* never supplies a publish policy at all.
|
|
21571
21622
|
*/
|
|
21572
21623
|
static layerNpm = Layer.succeed(this, this.npm);
|
|
21573
21624
|
/**
|
|
@@ -21582,7 +21633,7 @@ var PublishabilityDetector = class extends Context.Service()("@effected/workspac
|
|
|
21582
21633
|
};
|
|
21583
21634
|
|
|
21584
21635
|
//#endregion
|
|
21585
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21636
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/internal/importerVersions.js
|
|
21586
21637
|
/**
|
|
21587
21638
|
* Strip pnpm's peer-disambiguation suffix from a recorded importer version.
|
|
21588
21639
|
*
|
|
@@ -21669,7 +21720,7 @@ const unanimousVersionOf = (index, dependency) => {
|
|
|
21669
21720
|
};
|
|
21670
21721
|
|
|
21671
21722
|
//#endregion
|
|
21672
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
21723
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceCatalogs.js
|
|
21673
21724
|
/**
|
|
21674
21725
|
* An immutable, fully-normalized catalog collection — the one catalog
|
|
21675
21726
|
* resolution semantic in the package.
|
|
@@ -22179,7 +22230,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends Context.Service()("@effe
|
|
|
22179
22230
|
};
|
|
22180
22231
|
|
|
22181
22232
|
//#endregion
|
|
22182
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22233
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceStateSnapshot.js
|
|
22183
22234
|
const EMPTY = Object.freeze(Object.create(null));
|
|
22184
22235
|
const DependencyMap = Schema.Record(Schema.String, Schema.String).pipe(Schema.withDecodingDefaultKey(Effect.succeed(EMPTY)), Schema.withConstructorDefault(Effect.succeed(EMPTY)));
|
|
22185
22236
|
/**
|
|
@@ -22403,7 +22454,7 @@ var WorkspaceStateSnapshot = class extends Schema.Class("WorkspaceStateSnapshot"
|
|
|
22403
22454
|
};
|
|
22404
22455
|
|
|
22405
22456
|
//#endregion
|
|
22406
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22457
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/WorkspaceSnapshots.js
|
|
22407
22458
|
/** Whether `value` is a non-null, non-array object. */
|
|
22408
22459
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
22409
22460
|
/** Whether every value in a record is a string — a usable dependency map. */
|
|
@@ -22567,7 +22618,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends Context.Service()("@ef
|
|
|
22567
22618
|
return {
|
|
22568
22619
|
at: Effect.fn("WorkspaceSnapshots.at")(function* (ref) {
|
|
22569
22620
|
const root = yield* Effect.suspend(() => roots.find(options?.cwd ?? process.cwd()));
|
|
22570
|
-
const key = `${root}
|
|
22621
|
+
const key = `${root}\0${ref}`;
|
|
22571
22622
|
let memo = atCaches.get(key);
|
|
22572
22623
|
if (memo === void 0) {
|
|
22573
22624
|
const [resolveOnce, invalidate] = yield* Effect.cachedInvalidateWithTTL(computeAt(root, ref), Duration.infinity);
|
|
@@ -22625,6 +22676,13 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends Context.Service()("@ef
|
|
|
22625
22676
|
* test-wiring mistake fails loudly as a defect rather than succeeding with a
|
|
22626
22677
|
* lie.
|
|
22627
22678
|
*
|
|
22679
|
+
* **A defect is not absorbed by `Effect.catch` or any typed-error handler**,
|
|
22680
|
+
* and that is the point: code under test with a best-effort `catch` around
|
|
22681
|
+
* its snapshot reads cannot make a mandatory stub look optional — the
|
|
22682
|
+
* unstubbed call still fails the test instead of quietly taking the catch
|
|
22683
|
+
* branch. Only defect-level combinators (`Effect.catchDefect`,
|
|
22684
|
+
* `Effect.exit`) would see it.
|
|
22685
|
+
*
|
|
22628
22686
|
* @example
|
|
22629
22687
|
* ```ts
|
|
22630
22688
|
* import { CatalogSet, WorkspaceSnapshots, WorkspaceStateSnapshot } from "@effected/workspaces";
|
|
@@ -22673,7 +22731,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends Context.Service()("@ef
|
|
|
22673
22731
|
};
|
|
22674
22732
|
|
|
22675
22733
|
//#endregion
|
|
22676
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.
|
|
22734
|
+
//#region ../../node_modules/.pnpm/@effected+workspaces@0.9.1_@effected+jsonc@0.5.1_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/workspaces/Workspaces.js
|
|
22677
22735
|
const compose = (options, catalogsFactory) => {
|
|
22678
22736
|
const roots = WorkspaceRoot.layer;
|
|
22679
22737
|
const detector = PackageManagerDetector.layer;
|
|
@@ -22706,11 +22764,12 @@ const localExecLayer = (options) => Layer.effect(LocalExec, Effect.gen(function*
|
|
|
22706
22764
|
cause
|
|
22707
22765
|
})));
|
|
22708
22766
|
if (Option.isNone(detected)) return Option.none();
|
|
22709
|
-
const { prefix, dlxPrefix } = LocalExec.prefixes(detected.value.name);
|
|
22767
|
+
const { prefix, dlxPrefix, scriptPrefix } = LocalExec.prefixes(detected.value.name);
|
|
22710
22768
|
return Option.some(ExecContext.make({
|
|
22711
22769
|
label: detected.value.name,
|
|
22712
22770
|
prefix,
|
|
22713
22771
|
dlxPrefix,
|
|
22772
|
+
scriptPrefix,
|
|
22714
22773
|
directory: root.value
|
|
22715
22774
|
}));
|
|
22716
22775
|
}) };
|
|
@@ -22724,13 +22783,23 @@ var Workspaces = class {
|
|
|
22724
22783
|
constructor() {}
|
|
22725
22784
|
/**
|
|
22726
22785
|
* Every service that needs only a filesystem: root, package-manager
|
|
22727
|
-
* detection, discovery, lockfile reading
|
|
22786
|
+
* detection, discovery, lockfile reading and catalogs.
|
|
22728
22787
|
*
|
|
22729
22788
|
* @remarks
|
|
22730
22789
|
* Requires core `FileSystem` and `Path`, which the consumer provides at the
|
|
22731
22790
|
* edge (`@effect/platform-node`, `@effect/platform-bun`, or a test's
|
|
22732
22791
|
* `FileSystem.layerNoop`).
|
|
22733
22792
|
*
|
|
22793
|
+
* **`PublishabilityDetector` is neither provided nor required here.** The
|
|
22794
|
+
* composite used to bake in npm semantics, which a naively-ordered override
|
|
22795
|
+
* silently lost to; now it supplies no default, and — because nothing inside
|
|
22796
|
+
* the composite asks a publishability question — it does not require one in
|
|
22797
|
+
* `R` either. The requirement surfaces in the `R` of each operation that
|
|
22798
|
+
* asks (`VersioningStrategy.detect`, e.g.), so a program that asks and never
|
|
22799
|
+
* wires a detector fails to compile at that operation, and a program that
|
|
22800
|
+
* never asks never supplies a publish policy. Wire one explicitly where
|
|
22801
|
+
* needed: `Layer.mergeAll(Workspaces.layer(), PublishabilityDetector.layerNpm)`.
|
|
22802
|
+
*
|
|
22734
22803
|
* **Bind the result to a `const`.** This is a parameterized factory and
|
|
22735
22804
|
* layers memoize by reference, so calling it twice builds everything twice.
|
|
22736
22805
|
*
|
|
@@ -22786,7 +22855,8 @@ var Workspaces = class {
|
|
|
22786
22855
|
* it. So `commands` declares the narrow contract and we ship the layer.
|
|
22787
22856
|
*
|
|
22788
22857
|
* **The argv knowledge is not duplicated.** `LocalExec.prefixes(name)` is
|
|
22789
|
-
* the one home of the four managers' `exec`/`dlx
|
|
22858
|
+
* the one home of the four managers' `exec`/`dlx`/script-runner prefixes;
|
|
22859
|
+
* this layer
|
|
22790
22860
|
* detects *which* manager owns the directory and asks `commands` what that
|
|
22791
22861
|
* manager's argv looks like. Neither package reimplements the other's
|
|
22792
22862
|
* half.
|
|
@@ -45709,6 +45779,22 @@ function inferDependencyType(dep) {
|
|
|
45709
45779
|
return "dependency";
|
|
45710
45780
|
}
|
|
45711
45781
|
/**
|
|
45782
|
+
* Narrow a dependency update to one with both version endpoints present.
|
|
45783
|
+
*
|
|
45784
|
+
* `@changesets/types` only guarantees `oldVersion`/`newVersion` on the
|
|
45785
|
+
* `major`/`minor`/`patch` arms of `ComprehensiveRelease`; a `type: "none"`
|
|
45786
|
+
* entry may carry neither. The table's `From`/`To` columns are validated
|
|
45787
|
+
* version strings, so an entry missing either endpoint has no row to render.
|
|
45788
|
+
*
|
|
45789
|
+
* @param dep - The dependency update to test
|
|
45790
|
+
* @returns `true` when both `oldVersion` and `newVersion` are present
|
|
45791
|
+
*
|
|
45792
|
+
* @internal
|
|
45793
|
+
*/
|
|
45794
|
+
function isVersioned(dep) {
|
|
45795
|
+
return dep.oldVersion !== void 0 && dep.newVersion !== void 0;
|
|
45796
|
+
}
|
|
45797
|
+
/**
|
|
45712
45798
|
* Format dependency release lines as a structured markdown table.
|
|
45713
45799
|
*
|
|
45714
45800
|
* This is the core Effect program that implements the `getDependencyReleaseLine`
|
|
@@ -45719,8 +45805,9 @@ function inferDependencyType(dep) {
|
|
|
45719
45805
|
* The function maps each `ModCompWithPackage` entry to a `DependencyTableRow`,
|
|
45720
45806
|
* inferring the dependency type from the consuming package's `package.json`,
|
|
45721
45807
|
* then delegates to `serializeDependencyTableToMarkdown` for GFM table
|
|
45722
|
-
* rendering, prefixed with a `### Dependencies` heading.
|
|
45723
|
-
*
|
|
45808
|
+
* rendering, prefixed with a `### Dependencies` heading. Entries missing
|
|
45809
|
+
* either version endpoint are dropped by {@link isVersioned}; the function
|
|
45810
|
+
* returns an empty string when no rows survive.
|
|
45724
45811
|
*
|
|
45725
45812
|
* The `_changesets` and `_options` parameters are part of the Changesets API
|
|
45726
45813
|
* contract but are not used in the table format. They are retained for
|
|
@@ -45729,19 +45816,21 @@ function inferDependencyType(dep) {
|
|
|
45729
45816
|
* @param _changesets - Changesets that caused the dependency updates (unused in table format)
|
|
45730
45817
|
* @param dependenciesUpdated - The list of dependencies that were updated, including old/new versions
|
|
45731
45818
|
* @param _options - Validated configuration options (unused in table format)
|
|
45732
|
-
* @returns An `Effect` that resolves to a `### Dependencies` heading followed by a formatted markdown table string, or empty string if no dependencies were updated
|
|
45819
|
+
* @returns An `Effect` that resolves to a `### Dependencies` heading followed by a formatted markdown table string, or empty string if no dependencies with both version endpoints were updated
|
|
45733
45820
|
*/
|
|
45734
45821
|
function getDependencyReleaseLine(_changesets, dependenciesUpdated, _options) {
|
|
45735
45822
|
return Effect.gen(function* () {
|
|
45736
45823
|
if (dependenciesUpdated.length === 0) return "";
|
|
45737
45824
|
yield* GitHubService;
|
|
45738
|
-
|
|
45825
|
+
const rows = dependenciesUpdated.filter(isVersioned).map((dep) => ({
|
|
45739
45826
|
dependency: dep.name,
|
|
45740
45827
|
type: inferDependencyType(dep),
|
|
45741
45828
|
action: "updated",
|
|
45742
45829
|
from: dep.oldVersion,
|
|
45743
45830
|
to: dep.newVersion
|
|
45744
|
-
}))
|
|
45831
|
+
}));
|
|
45832
|
+
if (rows.length === 0) return "";
|
|
45833
|
+
return `### Dependencies\n\n${serializeDependencyTableToMarkdown(rows)}`;
|
|
45745
45834
|
});
|
|
45746
45835
|
}
|
|
45747
45836
|
|
|
@@ -49155,6 +49244,10 @@ const MaintenanceReasonSchema = Schema.Struct({
|
|
|
49155
49244
|
* will not match here; the release then degrades gracefully to the
|
|
49156
49245
|
* `"unspecified"` fallback sentence instead of naming its triggers.
|
|
49157
49246
|
*
|
|
49247
|
+
* Co-members releasing as `type: "none"` are never triggers — they carry no
|
|
49248
|
+
* version bump (and, per `@changesets/types`, no guaranteed `newVersion`), so
|
|
49249
|
+
* naming one would print an unchanged version as the cause of the release.
|
|
49250
|
+
*
|
|
49158
49251
|
* @public
|
|
49159
49252
|
*/
|
|
49160
49253
|
function deriveMaintenanceReason(release, plan, config) {
|
|
@@ -49162,7 +49255,7 @@ function deriveMaintenanceReason(release, plan, config) {
|
|
|
49162
49255
|
const groupKinds = [["fixed", config.fixed], ["linked", config.linked]];
|
|
49163
49256
|
for (const [kind, groups] of groupKinds) for (const group of groups) {
|
|
49164
49257
|
if (!group.some((pattern) => ChangesetConfig.matches(release.name, pattern))) continue;
|
|
49165
|
-
const triggers = plan.releases.filter((r) => r.name !== release.name && r.changesets.length > 0 && group.some((pattern) => ChangesetConfig.matches(r.name, pattern))).map((r) => ({
|
|
49258
|
+
const triggers = plan.releases.filter((r) => r.name !== release.name && r.type !== "none" && r.changesets.length > 0 && group.some((pattern) => ChangesetConfig.matches(r.name, pattern))).map((r) => ({
|
|
49166
49259
|
name: r.name,
|
|
49167
49260
|
version: r.newVersion
|
|
49168
49261
|
}));
|
|
@@ -60915,7 +61008,7 @@ function validatePackages(packages) {
|
|
|
60915
61008
|
}
|
|
60916
61009
|
|
|
60917
61010
|
//#endregion
|
|
60918
|
-
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.
|
|
61011
|
+
//#region ../../node_modules/.pnpm/@changesets+get-dependents-graph@3.0.0-next.8/node_modules/@changesets/get-dependents-graph/dist/index.mjs
|
|
60919
61012
|
var src_default = new Proxy({}, { get(target, color) {
|
|
60920
61013
|
target[color] ??= (text) => styleText(color, text);
|
|
60921
61014
|
return target[color];
|
|
@@ -61029,14 +61122,14 @@ function getDependentsGraph(packages, opts) {
|
|
|
61029
61122
|
graph.set(key, dependentsLookup[key]);
|
|
61030
61123
|
});
|
|
61031
61124
|
const simplifiedDependentsGraph = /* @__PURE__ */ new Map();
|
|
61032
|
-
graph.forEach((
|
|
61033
|
-
simplifiedDependentsGraph.set(pkgName,
|
|
61125
|
+
graph.forEach((info, pkgName) => {
|
|
61126
|
+
simplifiedDependentsGraph.set(pkgName, info.dependents);
|
|
61034
61127
|
});
|
|
61035
61128
|
return simplifiedDependentsGraph;
|
|
61036
61129
|
}
|
|
61037
61130
|
|
|
61038
61131
|
//#endregion
|
|
61039
|
-
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.
|
|
61132
|
+
//#region ../../node_modules/.pnpm/@changesets+should-skip-package@1.0.0-next.8/node_modules/@changesets/should-skip-package/dist/index.mjs
|
|
61040
61133
|
function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
|
|
61041
61134
|
if (ignore.includes(packageJson.name)) return true;
|
|
61042
61135
|
if (packageJson.private && !allowPrivatePackages) return true;
|
|
@@ -61044,7 +61137,7 @@ function shouldSkipPackage({ packageJson }, { ignore, allowPrivatePackages }) {
|
|
|
61044
61137
|
}
|
|
61045
61138
|
|
|
61046
61139
|
//#endregion
|
|
61047
|
-
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.
|
|
61140
|
+
//#region ../../node_modules/.pnpm/@changesets+config@4.0.0-next.8/node_modules/@changesets/config/dist/index.mjs
|
|
61048
61141
|
const DEFAULT_CONFIG = {
|
|
61049
61142
|
lang: void 0,
|
|
61050
61143
|
message: void 0,
|
|
@@ -61956,7 +62049,7 @@ async function readConfig(cwd, packages) {
|
|
|
61956
62049
|
packages ??= await getPackages(cwd);
|
|
61957
62050
|
return validateConfig(JSON.parse(await fs$1.readFile(path$1.join(packages.rootDir, ".changeset", "config.json"), "utf8")), packages);
|
|
61958
62051
|
}
|
|
61959
|
-
var version = "4.0.0-next.
|
|
62052
|
+
var version = "4.0.0-next.8";
|
|
61960
62053
|
const defaultWrittenConfig = {
|
|
61961
62054
|
["$schema"]: `https://unpkg.com/@changesets/config@${version}/schema.json`,
|
|
61962
62055
|
baseBranch: "main",
|
|
@@ -63236,7 +63329,7 @@ var InternalError = class extends Error {
|
|
|
63236
63329
|
};
|
|
63237
63330
|
|
|
63238
63331
|
//#endregion
|
|
63239
|
-
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.
|
|
63332
|
+
//#region ../../node_modules/.pnpm/@changesets+git@4.0.0-next.8/node_modules/@changesets/git/dist/index.mjs
|
|
63240
63333
|
async function getDivergedCommit(cwd, ref) {
|
|
63241
63334
|
const cmd = await z("git", [
|
|
63242
63335
|
"merge-base",
|
|
@@ -65408,7 +65501,7 @@ function applyEdits(text, edits) {
|
|
|
65408
65501
|
}
|
|
65409
65502
|
|
|
65410
65503
|
//#endregion
|
|
65411
|
-
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.
|
|
65504
|
+
//#region ../../node_modules/.pnpm/@changesets+apply-release-plan@8.0.0-next.9/node_modules/@changesets/apply-release-plan/dist/index.mjs
|
|
65412
65505
|
/**
|
|
65413
65506
|
* A simple JSON editing utility that preserves formatting. They specified operation keys
|
|
65414
65507
|
* must exist in the JSON for this implementation.
|
|
@@ -65460,6 +65553,7 @@ function getBumpLevel(type) {
|
|
|
65460
65553
|
return level;
|
|
65461
65554
|
}
|
|
65462
65555
|
function shouldUpdateDependencyBasedOnConfig(cwd, release, { depVersionRange, depType }, { minReleaseType, onlyUpdatePeerDependentsWhenOutOfRange }) {
|
|
65556
|
+
if (release.newVersion == null) return false;
|
|
65463
65557
|
if (depVersionRange.startsWith("workspace:")) {
|
|
65464
65558
|
depVersionRange = depVersionRange.replace(/^workspace:/, "");
|
|
65465
65559
|
switch (depVersionRange) {
|
|
@@ -65471,7 +65565,7 @@ function shouldUpdateDependencyBasedOnConfig(cwd, release, { depVersionRange, de
|
|
|
65471
65565
|
default: if (!validRange(depVersionRange)) return path$1.posix.normalize(depVersionRange) === path$1.relative(cwd, release.dir).replace(/\\/g, "/");
|
|
65472
65566
|
}
|
|
65473
65567
|
}
|
|
65474
|
-
if (!semverSatisfies(release.
|
|
65568
|
+
if (!semverSatisfies(release.newVersion, depVersionRange)) return true;
|
|
65475
65569
|
const minLevel = getBumpLevel(minReleaseType);
|
|
65476
65570
|
let shouldUpdate = getBumpLevel(release.type) >= minLevel;
|
|
65477
65571
|
if (depType === "peerDependencies") shouldUpdate = !onlyUpdatePeerDependentsWhenOutOfRange;
|
|
@@ -65496,12 +65590,7 @@ async function getChangelogEntry(cwd, release, releases, changesets, changelogFu
|
|
|
65496
65590
|
const peerDependencyVersionRange = release.packageJson.peerDependencies?.[rel.name];
|
|
65497
65591
|
const versionRange = dependencyVersionRange || peerDependencyVersionRange;
|
|
65498
65592
|
const usesWorkspaceRange = versionRange?.startsWith("workspace:");
|
|
65499
|
-
return versionRange && (usesWorkspaceRange || validRange(versionRange) != null) && shouldUpdateDependencyBasedOnConfig(cwd, {
|
|
65500
|
-
type: rel.type,
|
|
65501
|
-
version: rel.newVersion,
|
|
65502
|
-
oldVersion: rel.oldVersion,
|
|
65503
|
-
dir: rel.dir
|
|
65504
|
-
}, {
|
|
65593
|
+
return versionRange && (usesWorkspaceRange || validRange(versionRange) != null) && shouldUpdateDependencyBasedOnConfig(cwd, rel, {
|
|
65505
65594
|
depVersionRange: versionRange,
|
|
65506
65595
|
depType: dependencyVersionRange ? "dependencies" : "peerDependencies"
|
|
65507
65596
|
}, {
|
|
@@ -65553,14 +65642,11 @@ function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateI
|
|
|
65553
65642
|
const pkgJsonEdits = [];
|
|
65554
65643
|
for (const depType of DEPENDENCY_TYPES) {
|
|
65555
65644
|
const deps = packageJson[depType];
|
|
65556
|
-
if (deps) for (const
|
|
65645
|
+
if (deps) for (const release of versionsToUpdate) {
|
|
65646
|
+
if (release.newVersion == null) continue;
|
|
65647
|
+
const { name, newVersion } = release;
|
|
65557
65648
|
let depCurrentVersion = deps[name];
|
|
65558
|
-
if (!depCurrentVersion || depCurrentVersion.startsWith("file:") || depCurrentVersion.startsWith("link:") || !shouldUpdateDependencyBasedOnConfig(cwd, {
|
|
65559
|
-
version,
|
|
65560
|
-
oldVersion,
|
|
65561
|
-
type,
|
|
65562
|
-
dir
|
|
65563
|
-
}, {
|
|
65649
|
+
if (!depCurrentVersion || depCurrentVersion.startsWith("file:") || depCurrentVersion.startsWith("link:") || !shouldUpdateDependencyBasedOnConfig(cwd, release, {
|
|
65564
65650
|
depVersionRange: depCurrentVersion,
|
|
65565
65651
|
depType
|
|
65566
65652
|
}, {
|
|
@@ -65574,8 +65660,8 @@ function getDependencyVersionEdits(packageJson, versionsToUpdate, { cwd, updateI
|
|
|
65574
65660
|
if (workspaceDepVersion === "*" || workspaceDepVersion === "^" || workspaceDepVersion === "~" || validRange(workspaceDepVersion) == null) continue;
|
|
65575
65661
|
depCurrentVersion = workspaceDepVersion;
|
|
65576
65662
|
}
|
|
65577
|
-
if (new Range(depCurrentVersion).range !== "" || semverPrerelease(
|
|
65578
|
-
let newNewRange = snapshot ?
|
|
65663
|
+
if (new Range(depCurrentVersion).range !== "" || semverPrerelease(newVersion) != null) {
|
|
65664
|
+
let newNewRange = snapshot ? newVersion : `${getVersionRangeType(depCurrentVersion)}${newVersion}`;
|
|
65579
65665
|
if (usesWorkspaceRange) newNewRange = `workspace:${newNewRange}`;
|
|
65580
65666
|
pkgJsonEdits.push({
|
|
65581
65667
|
keys: [depType, name],
|
|
@@ -65643,12 +65729,9 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
65643
65729
|
else await fs$1.writeFile(path$1.join(cwd, ".changeset", "pre.json"), JSON.stringify(releasePlan.preState, null, 2) + "\n");
|
|
65644
65730
|
touchedFiles.push(path$1.join(cwd, ".changeset", "pre.json"));
|
|
65645
65731
|
}
|
|
65646
|
-
const versionsToUpdate = releases.map((
|
|
65647
|
-
|
|
65648
|
-
|
|
65649
|
-
oldVersion,
|
|
65650
|
-
type,
|
|
65651
|
-
dir: packagesByName.get(name).dir
|
|
65732
|
+
const versionsToUpdate = releases.map((release) => ({
|
|
65733
|
+
...release,
|
|
65734
|
+
dir: packagesByName.get(release.name).dir
|
|
65652
65735
|
}));
|
|
65653
65736
|
const dependencyUpdateOptions = {
|
|
65654
65737
|
cwd,
|
|
@@ -65660,10 +65743,12 @@ async function applyReleasePlan(releasePlan, packages, config = defaultConfig, s
|
|
|
65660
65743
|
const filesToFormat = [];
|
|
65661
65744
|
for (const release of releaseWithChangelogs) {
|
|
65662
65745
|
const { changelog, dir, name, newVersion, packageJson } = release;
|
|
65663
|
-
const
|
|
65746
|
+
const pkgJsonEdits = getDependencyVersionEdits(packageJson, versionsToUpdate, dependencyUpdateOptions);
|
|
65747
|
+
if (newVersion != null) pkgJsonEdits.push({
|
|
65664
65748
|
keys: ["version"],
|
|
65665
65749
|
value: newVersion
|
|
65666
|
-
}
|
|
65750
|
+
});
|
|
65751
|
+
const pkgJsonPath = await updatePackageJson(dir, pkgJsonEdits);
|
|
65667
65752
|
if (pkgJsonPath) touchedFiles.push(pkgJsonPath);
|
|
65668
65753
|
if (changelog && changelog.length > 0) {
|
|
65669
65754
|
const changelogPath = path$1.resolve(dir, "CHANGELOG.md");
|
|
@@ -65768,7 +65853,7 @@ async function updateChangelog(changelogPath, changelog, name) {
|
|
|
65768
65853
|
}
|
|
65769
65854
|
|
|
65770
65855
|
//#endregion
|
|
65771
|
-
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.
|
|
65856
|
+
//#region ../../node_modules/.pnpm/@changesets+assemble-release-plan@7.0.0-next.9/node_modules/@changesets/assemble-release-plan/dist/index.mjs
|
|
65772
65857
|
function getHighestReleaseType(releases) {
|
|
65773
65858
|
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`);
|
|
65774
65859
|
let highestReleaseType = "none";
|
|
@@ -66115,7 +66200,7 @@ function getPreInfo(changesets, packagesByName, config, preState) {
|
|
|
66115
66200
|
}
|
|
66116
66201
|
|
|
66117
66202
|
//#endregion
|
|
66118
|
-
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.
|
|
66203
|
+
//#region ../../node_modules/.pnpm/@changesets+pre@3.0.0-next.8/node_modules/@changesets/pre/dist/index.mjs
|
|
66119
66204
|
async function outputFile(filePath, content) {
|
|
66120
66205
|
await fs$1.mkdir(path$1.dirname(filePath), { recursive: true });
|
|
66121
66206
|
await fs$1.writeFile(filePath, content, "utf8");
|
|
@@ -66145,7 +66230,7 @@ async function migratePreState(rootDir, preState) {
|
|
|
66145
66230
|
}
|
|
66146
66231
|
|
|
66147
66232
|
//#endregion
|
|
66148
|
-
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.
|
|
66233
|
+
//#region ../../node_modules/.pnpm/@changesets+parse@1.0.0-next.9/node_modules/@changesets/parse/dist/index.mjs
|
|
66149
66234
|
const mdRegex = /\s*---([^]*?)\r?\n\s*---(\s*(?:\n|$)[^]*)/;
|
|
66150
66235
|
const EXAMPLE_FORMAT = `---\n"package-name": patch\n---`;
|
|
66151
66236
|
const validVersionTypes = [
|
|
@@ -66199,7 +66284,7 @@ YAML error: ${e instanceof Error ? e.message : String(e)}\nFrontmatter content:\
|
|
|
66199
66284
|
}
|
|
66200
66285
|
|
|
66201
66286
|
//#endregion
|
|
66202
|
-
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.
|
|
66287
|
+
//#region ../../node_modules/.pnpm/@changesets+read@1.0.0-next.9/node_modules/@changesets/read/dist/index.mjs
|
|
66203
66288
|
const ignoredMdFiles = [
|
|
66204
66289
|
/^README\.md$/i,
|
|
66205
66290
|
"AGENTS.md",
|
|
@@ -66233,7 +66318,7 @@ async function readChangesets(rootDir, sinceRef) {
|
|
|
66233
66318
|
}
|
|
66234
66319
|
|
|
66235
66320
|
//#endregion
|
|
66236
|
-
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.
|
|
66321
|
+
//#region ../../node_modules/.pnpm/@changesets+get-release-plan@5.0.0-next.9/node_modules/@changesets/get-release-plan/dist/index.mjs
|
|
66237
66322
|
async function getReleasePlan(cwd, sinceRef, passedConfig) {
|
|
66238
66323
|
const packages = await getPackages(cwd);
|
|
66239
66324
|
const configResult = await readConfig(packages.rootDir, packages);
|