@savvy-web/silk 3.0.2 → 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 +758 -387
- package/changesets-changelog.d.cts +84 -15
- package/changesets-changelog.d.ts +84 -15
- package/changesets-changelog.js +776 -392
- package/changesets-markdownlint.cjs +758 -387
- package/changesets-markdownlint.d.cts +84 -15
- package/changesets-markdownlint.d.ts +84 -15
- package/changesets-markdownlint.js +776 -392
- package/package.json +5 -5
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
|
@@ -3296,7 +3296,7 @@ type Label = Label$1;
|
|
|
3296
3296
|
type Severity = Severity$1;
|
|
3297
3297
|
type Plugin<Tree extends Node$3 = Node$3, Option extends unknown = unknown> = (config?: [level: Label | Severity | boolean, option?: Option] | Label | Option | Severity) => ((tree: Tree, file: VFile, next: TransformCallback<Tree>) => undefined) | undefined;
|
|
3298
3298
|
//#endregion
|
|
3299
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
3299
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.1_effect@4.0.0-beta.99/node_modules/@effected/git/index.d.ts
|
|
3300
3300
|
//#region src/Git.d.ts
|
|
3301
3301
|
declare const GitCommandError_base: Schema.Class<GitCommandError, Schema.TaggedStruct<"GitCommandError", {
|
|
3302
3302
|
/**
|
|
@@ -3327,7 +3327,7 @@ declare const GitCommandError_base: Schema.Class<GitCommandError, Schema.TaggedS
|
|
|
3327
3327
|
* `exitCode` and `stderr` are populated when git actually ran. `detail`
|
|
3328
3328
|
* carries a human-readable explanation of an absorbed spawn-level
|
|
3329
3329
|
* `PlatformError` or a per-run timeout — the two cases where git never
|
|
3330
|
-
* produced an exit code at all.
|
|
3330
|
+
* produced an exit code at all. `kind`
|
|
3331
3331
|
* discriminates a pre-spawn guard rejection (`"refused"`) from a genuine git
|
|
3332
3332
|
* failure (`"failed"`) structurally, so composed retry/fallback logic never has
|
|
3333
3333
|
* to parse the prose in `message` or `detail`.
|
|
@@ -3650,7 +3650,7 @@ declare class Git extends Git_base {
|
|
|
3650
3650
|
static readonly layer: Layer.Layer<Git, never, ChildProcessSpawner.ChildProcessSpawner>;
|
|
3651
3651
|
}
|
|
3652
3652
|
//#endregion
|
|
3653
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3653
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/index.d.ts
|
|
3654
3654
|
//#region src/SemVer.d.ts
|
|
3655
3655
|
declare const InvalidVersionError_base: Schema.Class<InvalidVersionError, Schema.TaggedStruct<"InvalidVersionError", {
|
|
3656
3656
|
/** The raw input string that failed to parse. */
|
|
@@ -4091,7 +4091,7 @@ declare class UnsatisfiableConstraintError extends UnsatisfiableConstraintError_
|
|
|
4091
4091
|
get message(): string;
|
|
4092
4092
|
}
|
|
4093
4093
|
//#endregion
|
|
4094
|
-
//#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/index.d.ts
|
|
4095
4095
|
//#region src/CatalogAssemblyError.d.ts
|
|
4096
4096
|
declare const CatalogAssemblyError_base: Schema.Class<CatalogAssemblyError, Schema.TaggedStruct<"CatalogAssemblyError", {
|
|
4097
4097
|
/**
|
|
@@ -4363,7 +4363,7 @@ declare class InvalidIntegrityHashError extends InvalidIntegrityHashError_base {
|
|
|
4363
4363
|
*/
|
|
4364
4364
|
type IntegrityHashBrand = string & Brand.Brand<"IntegrityHash">;
|
|
4365
4365
|
//#endregion
|
|
4366
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
4366
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/index.d.ts
|
|
4367
4367
|
//#region src/GlobPattern.d.ts
|
|
4368
4368
|
declare const GlobPatternError_base: Schema.Class<GlobPatternError, Schema.TaggedStruct<"GlobPatternError", {
|
|
4369
4369
|
readonly pattern: Schema.String;
|
|
@@ -4503,7 +4503,7 @@ declare class GlobPattern extends GlobPattern_base {
|
|
|
4503
4503
|
static readonly FromString: Schema.Codec<GlobPattern, string>;
|
|
4504
4504
|
}
|
|
4505
4505
|
//#endregion
|
|
4506
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4506
|
+
//#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/index.d.ts
|
|
4507
4507
|
//#region src/BunExtension.d.ts
|
|
4508
4508
|
declare const BunExtension_base: Schema.Class<BunExtension, Schema.Struct<{
|
|
4509
4509
|
readonly _tag: Schema.tag<"bun">;
|
|
@@ -4923,7 +4923,7 @@ declare class LockfileIntegrity extends LockfileIntegrity_base {
|
|
|
4923
4923
|
static compare(lockfile: Lockfile, manifests: ReadonlyArray<WorkspaceManifest>): LockfileIntegrity;
|
|
4924
4924
|
}
|
|
4925
4925
|
//#endregion
|
|
4926
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
4926
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/index.d.ts
|
|
4927
4927
|
//#region src/Dependency.d.ts
|
|
4928
4928
|
declare const Dependency_base: Schema.Class<Dependency, Schema.Struct<{
|
|
4929
4929
|
/** The package name. */
|
|
@@ -5330,7 +5330,7 @@ declare class Package extends Package_base {
|
|
|
5330
5330
|
toJsonString(options?: PackageFormatOptions): string;
|
|
5331
5331
|
}
|
|
5332
5332
|
//#endregion
|
|
5333
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
5333
|
+
//#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/index.d.ts
|
|
5334
5334
|
//#region src/WorkspacePackage.d.ts
|
|
5335
5335
|
declare const PublishConfig_base: Schema.Class<PublishConfig, Schema.Struct<{
|
|
5336
5336
|
/** Scoped-package visibility. Its presence overrides `private`. */
|
|
@@ -5758,6 +5758,72 @@ declare class WorkspaceDiscovery extends WorkspaceDiscovery_base {
|
|
|
5758
5758
|
* rather than calling `layer(...)` at each composition site.
|
|
5759
5759
|
*/
|
|
5760
5760
|
static readonly layer: (options?: WorkspaceDiscoveryOptions) => Layer.Layer<WorkspaceDiscovery, never, WorkspaceRoot | FileSystem.FileSystem | Path.Path>;
|
|
5761
|
+
/**
|
|
5762
|
+
* An in-memory test double of the service shape, with every method
|
|
5763
|
+
* defaulted so a test stubs only what it exercises.
|
|
5764
|
+
*
|
|
5765
|
+
* @remarks
|
|
5766
|
+
* The defaults model an **empty workspace**, and the derived methods run
|
|
5767
|
+
* over the *effective* `listPackages` — the override when one is supplied —
|
|
5768
|
+
* so stubbing only `listPackages` yields a consistent double:
|
|
5769
|
+
*
|
|
5770
|
+
* - `listPackages` — succeeds with `[]`.
|
|
5771
|
+
* - `importerMap` — derived: the packages keyed by `relativePath`.
|
|
5772
|
+
* - `getPackage` — derived: a name lookup that fails with the service's own
|
|
5773
|
+
* typed {@link PackageNotFoundError} on a miss, exactly as the live
|
|
5774
|
+
* implementation does.
|
|
5775
|
+
* - `resolveFile` / `resolveFiles` — derived: longest-prefix ownership over
|
|
5776
|
+
* `pkg.path`, POSIX-terminated (`"/"`); supply a win32 double explicitly
|
|
5777
|
+
* if your fixture paths are win32.
|
|
5778
|
+
* - `refresh` — a no-op (`Effect.void`); there is nothing memoized to drop.
|
|
5779
|
+
* - `info` — **dies** with an explanatory defect. No honest default exists
|
|
5780
|
+
* (a fabricated root path would leak into consumer path logic), so an
|
|
5781
|
+
* unstubbed `info()` call is a test-wiring mistake and fails loudly as a
|
|
5782
|
+
* defect rather than succeeding with a lie or failing with a dishonest
|
|
5783
|
+
* typed error.
|
|
5784
|
+
*
|
|
5785
|
+
* @example
|
|
5786
|
+
* ```ts
|
|
5787
|
+
* import { WorkspaceDiscovery, WorkspacePackage } from "@effected/workspaces";
|
|
5788
|
+
* import { Effect } from "effect";
|
|
5789
|
+
*
|
|
5790
|
+
* const double = WorkspaceDiscovery.makeTest({
|
|
5791
|
+
* listPackages: () =>
|
|
5792
|
+
* Effect.succeed([
|
|
5793
|
+
* WorkspacePackage.make({
|
|
5794
|
+
* name: "@my-org/utils",
|
|
5795
|
+
* version: "1.0.0",
|
|
5796
|
+
* path: "/repo/packages/utils",
|
|
5797
|
+
* packageJsonPath: "/repo/packages/utils/package.json",
|
|
5798
|
+
* relativePath: "packages/utils",
|
|
5799
|
+
* }),
|
|
5800
|
+
* ]),
|
|
5801
|
+
* });
|
|
5802
|
+
* // `getPackage`, `importerMap`, `resolveFile(s)` now answer consistently.
|
|
5803
|
+
* ```
|
|
5804
|
+
*/
|
|
5805
|
+
static readonly makeTest: (overrides?: Partial<WorkspaceDiscoveryShape>) => WorkspaceDiscoveryShape;
|
|
5806
|
+
/**
|
|
5807
|
+
* The test layer: {@link WorkspaceDiscovery.makeTest} behind
|
|
5808
|
+
* `Layer.succeed`, so a suite provides only the methods it exercises.
|
|
5809
|
+
*
|
|
5810
|
+
* @remarks
|
|
5811
|
+
* A parameterized layer factory mints a **fresh reference per call**, and
|
|
5812
|
+
* layers memoize by reference — bind the result to a `const` and reuse it
|
|
5813
|
+
* rather than calling `layerTest(...)` at each composition site.
|
|
5814
|
+
*
|
|
5815
|
+
* @example
|
|
5816
|
+
* ```ts
|
|
5817
|
+
* import { WorkspaceDiscovery } from "@effected/workspaces";
|
|
5818
|
+
* import { Effect } from "effect";
|
|
5819
|
+
*
|
|
5820
|
+
* const TestDiscovery = WorkspaceDiscovery.layerTest({
|
|
5821
|
+
* listPackages: () => Effect.succeed([]),
|
|
5822
|
+
* });
|
|
5823
|
+
* // program.pipe(Effect.provide(TestDiscovery))
|
|
5824
|
+
* ```
|
|
5825
|
+
*/
|
|
5826
|
+
static readonly layerTest: (overrides?: Partial<WorkspaceDiscoveryShape>) => Layer.Layer<WorkspaceDiscovery>;
|
|
5761
5827
|
/**
|
|
5762
5828
|
* The real implementation of `@effected/npm`'s `WorkspaceResolver` contract
|
|
5763
5829
|
* — the one `@effected/package-json` declares but cannot fill.
|
|
@@ -6603,7 +6669,7 @@ interface WorkspacesOptions {
|
|
|
6603
6669
|
readonly maxDepth?: number;
|
|
6604
6670
|
}
|
|
6605
6671
|
//#endregion
|
|
6606
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.2.
|
|
6672
|
+
//#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/index.d.ts
|
|
6607
6673
|
declare const DescendError_base: Schema.Class<DescendError, Schema.TaggedStruct<"DescendError", {
|
|
6608
6674
|
/** The glob pattern's source text. */
|
|
6609
6675
|
readonly pattern: Schema.String;
|
|
@@ -6909,7 +6975,7 @@ declare class Categories {
|
|
|
6909
6975
|
static isValidHeading(heading: string): boolean;
|
|
6910
6976
|
}
|
|
6911
6977
|
//#endregion
|
|
6912
|
-
//#region ../../node_modules/.pnpm/@changesets+types@7.0.0-next.
|
|
6978
|
+
//#region ../../node_modules/.pnpm/@changesets+types@7.0.0-next.7/node_modules/@changesets/types/dist/index.d.mts
|
|
6913
6979
|
//#region src/index.d.ts
|
|
6914
6980
|
type MaybePromise<T> = T | Promise<T>;
|
|
6915
6981
|
type VersionType$1 = "major" | "minor" | "patch" | "none";
|
|
@@ -6982,10 +7048,13 @@ type Config = {
|
|
|
6982
7048
|
* The formatter to use to format changesets and changelogs. Set `false` to disable formatting.
|
|
6983
7049
|
* The default value of `"auto"` will auto-detect the formatter based on the project's configuration files.
|
|
6984
7050
|
*/
|
|
6985
|
-
format: "auto" | "prettier" | "oxfmt" | "deno" | "dprint" | false;
|
|
6986
|
-
|
|
7051
|
+
format: "auto" | "prettier" | "oxfmt" | "deno" | "dprint" | false;
|
|
7052
|
+
/** Features enabled for Private packages */
|
|
7053
|
+
privatePackages: PrivatePackages;
|
|
7054
|
+
/** The minimum bump type to trigger automatic update of internal dependencies that are part of the same release */
|
|
6987
7055
|
updateInternalDependencies: "patch" | "minor";
|
|
6988
|
-
ignore: ReadonlyArray<string>;
|
|
7056
|
+
ignore: ReadonlyArray<string>;
|
|
7057
|
+
/** This is supposed to be used with pnpm's `link-workspace-packages: false` and Berry's `enableTransparentWorkspaces: false` */
|
|
6989
7058
|
bumpVersionsWithWorkspaceProtocolOnly?: boolean;
|
|
6990
7059
|
___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: Required<ExperimentalOptions>;
|
|
6991
7060
|
snapshot: {
|
|
@@ -11737,7 +11806,7 @@ interface TokenTypeMap {
|
|
|
11737
11806
|
chunkString: 'chunkString';
|
|
11738
11807
|
}
|
|
11739
11808
|
//#endregion
|
|
11740
|
-
//#region ../../node_modules/.pnpm/markdownlint@0.41.1/node_modules/markdownlint/lib/markdownlint.d.mts
|
|
11809
|
+
//#region ../../node_modules/.pnpm/markdownlint@0.41.1_supports-color@8.1.1/node_modules/markdownlint/lib/markdownlint.d.mts
|
|
11741
11810
|
/**
|
|
11742
11811
|
* Function to implement rule logic.
|
|
11743
11812
|
*/
|
|
@@ -12010,7 +12079,7 @@ type Rule$2 = {
|
|
|
12010
12079
|
*/
|
|
12011
12080
|
type RuleConfiguration = boolean | any;
|
|
12012
12081
|
//#endregion
|
|
12013
|
-
//#region ../../node_modules/.pnpm/markdownlint@0.41.1/node_modules/markdownlint/lib/exports.d.mts
|
|
12082
|
+
//#region ../../node_modules/.pnpm/markdownlint@0.41.1_supports-color@8.1.1/node_modules/markdownlint/lib/exports.d.mts
|
|
12014
12083
|
type Rule$1 = Rule$2;
|
|
12015
12084
|
//#endregion
|
|
12016
12085
|
//#region src/changesets/markdownlint/rules/content-structure.d.ts
|
|
@@ -3296,7 +3296,7 @@ type Label = Label$1;
|
|
|
3296
3296
|
type Severity = Severity$1;
|
|
3297
3297
|
type Plugin<Tree extends Node$3 = Node$3, Option extends unknown = unknown> = (config?: [level: Label | Severity | boolean, option?: Option] | Label | Option | Severity) => ((tree: Tree, file: VFile, next: TransformCallback<Tree>) => undefined) | undefined;
|
|
3298
3298
|
//#endregion
|
|
3299
|
-
//#region ../../node_modules/.pnpm/@effected+git@0.4.
|
|
3299
|
+
//#region ../../node_modules/.pnpm/@effected+git@0.4.1_effect@4.0.0-beta.99/node_modules/@effected/git/index.d.ts
|
|
3300
3300
|
//#region src/Git.d.ts
|
|
3301
3301
|
declare const GitCommandError_base: Schema.Class<GitCommandError, Schema.TaggedStruct<"GitCommandError", {
|
|
3302
3302
|
/**
|
|
@@ -3327,7 +3327,7 @@ declare const GitCommandError_base: Schema.Class<GitCommandError, Schema.TaggedS
|
|
|
3327
3327
|
* `exitCode` and `stderr` are populated when git actually ran. `detail`
|
|
3328
3328
|
* carries a human-readable explanation of an absorbed spawn-level
|
|
3329
3329
|
* `PlatformError` or a per-run timeout — the two cases where git never
|
|
3330
|
-
* produced an exit code at all.
|
|
3330
|
+
* produced an exit code at all. `kind`
|
|
3331
3331
|
* discriminates a pre-spawn guard rejection (`"refused"`) from a genuine git
|
|
3332
3332
|
* failure (`"failed"`) structurally, so composed retry/fallback logic never has
|
|
3333
3333
|
* to parse the prose in `message` or `detail`.
|
|
@@ -3650,7 +3650,7 @@ declare class Git extends Git_base {
|
|
|
3650
3650
|
static readonly layer: Layer.Layer<Git, never, ChildProcessSpawner.ChildProcessSpawner>;
|
|
3651
3651
|
}
|
|
3652
3652
|
//#endregion
|
|
3653
|
-
//#region ../../node_modules/.pnpm/@effected+semver@0.1.
|
|
3653
|
+
//#region ../../node_modules/.pnpm/@effected+semver@0.1.1_effect@4.0.0-beta.99/node_modules/@effected/semver/index.d.ts
|
|
3654
3654
|
//#region src/SemVer.d.ts
|
|
3655
3655
|
declare const InvalidVersionError_base: Schema.Class<InvalidVersionError, Schema.TaggedStruct<"InvalidVersionError", {
|
|
3656
3656
|
/** The raw input string that failed to parse. */
|
|
@@ -4091,7 +4091,7 @@ declare class UnsatisfiableConstraintError extends UnsatisfiableConstraintError_
|
|
|
4091
4091
|
get message(): string;
|
|
4092
4092
|
}
|
|
4093
4093
|
//#endregion
|
|
4094
|
-
//#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/index.d.ts
|
|
4095
4095
|
//#region src/CatalogAssemblyError.d.ts
|
|
4096
4096
|
declare const CatalogAssemblyError_base: Schema.Class<CatalogAssemblyError, Schema.TaggedStruct<"CatalogAssemblyError", {
|
|
4097
4097
|
/**
|
|
@@ -4363,7 +4363,7 @@ declare class InvalidIntegrityHashError extends InvalidIntegrityHashError_base {
|
|
|
4363
4363
|
*/
|
|
4364
4364
|
type IntegrityHashBrand = string & Brand.Brand<"IntegrityHash">;
|
|
4365
4365
|
//#endregion
|
|
4366
|
-
//#region ../../node_modules/.pnpm/@effected+glob@0.1.
|
|
4366
|
+
//#region ../../node_modules/.pnpm/@effected+glob@0.1.2_effect@4.0.0-beta.99/node_modules/@effected/glob/index.d.ts
|
|
4367
4367
|
//#region src/GlobPattern.d.ts
|
|
4368
4368
|
declare const GlobPatternError_base: Schema.Class<GlobPatternError, Schema.TaggedStruct<"GlobPatternError", {
|
|
4369
4369
|
readonly pattern: Schema.String;
|
|
@@ -4503,7 +4503,7 @@ declare class GlobPattern extends GlobPattern_base {
|
|
|
4503
4503
|
static readonly FromString: Schema.Codec<GlobPattern, string>;
|
|
4504
4504
|
}
|
|
4505
4505
|
//#endregion
|
|
4506
|
-
//#region ../../node_modules/.pnpm/@effected+lockfiles@0.1.
|
|
4506
|
+
//#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/index.d.ts
|
|
4507
4507
|
//#region src/BunExtension.d.ts
|
|
4508
4508
|
declare const BunExtension_base: Schema.Class<BunExtension, Schema.Struct<{
|
|
4509
4509
|
readonly _tag: Schema.tag<"bun">;
|
|
@@ -4923,7 +4923,7 @@ declare class LockfileIntegrity extends LockfileIntegrity_base {
|
|
|
4923
4923
|
static compare(lockfile: Lockfile, manifests: ReadonlyArray<WorkspaceManifest>): LockfileIntegrity;
|
|
4924
4924
|
}
|
|
4925
4925
|
//#endregion
|
|
4926
|
-
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.
|
|
4926
|
+
//#region ../../node_modules/.pnpm/@effected+package-json@0.3.1_effect@4.0.0-beta.99/node_modules/@effected/package-json/index.d.ts
|
|
4927
4927
|
//#region src/Dependency.d.ts
|
|
4928
4928
|
declare const Dependency_base: Schema.Class<Dependency, Schema.Struct<{
|
|
4929
4929
|
/** The package name. */
|
|
@@ -5330,7 +5330,7 @@ declare class Package extends Package_base {
|
|
|
5330
5330
|
toJsonString(options?: PackageFormatOptions): string;
|
|
5331
5331
|
}
|
|
5332
5332
|
//#endregion
|
|
5333
|
-
//#region ../../node_modules/.pnpm/@effected+workspaces@0.
|
|
5333
|
+
//#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/index.d.ts
|
|
5334
5334
|
//#region src/WorkspacePackage.d.ts
|
|
5335
5335
|
declare const PublishConfig_base: Schema.Class<PublishConfig, Schema.Struct<{
|
|
5336
5336
|
/** Scoped-package visibility. Its presence overrides `private`. */
|
|
@@ -5758,6 +5758,72 @@ declare class WorkspaceDiscovery extends WorkspaceDiscovery_base {
|
|
|
5758
5758
|
* rather than calling `layer(...)` at each composition site.
|
|
5759
5759
|
*/
|
|
5760
5760
|
static readonly layer: (options?: WorkspaceDiscoveryOptions) => Layer.Layer<WorkspaceDiscovery, never, WorkspaceRoot | FileSystem.FileSystem | Path.Path>;
|
|
5761
|
+
/**
|
|
5762
|
+
* An in-memory test double of the service shape, with every method
|
|
5763
|
+
* defaulted so a test stubs only what it exercises.
|
|
5764
|
+
*
|
|
5765
|
+
* @remarks
|
|
5766
|
+
* The defaults model an **empty workspace**, and the derived methods run
|
|
5767
|
+
* over the *effective* `listPackages` — the override when one is supplied —
|
|
5768
|
+
* so stubbing only `listPackages` yields a consistent double:
|
|
5769
|
+
*
|
|
5770
|
+
* - `listPackages` — succeeds with `[]`.
|
|
5771
|
+
* - `importerMap` — derived: the packages keyed by `relativePath`.
|
|
5772
|
+
* - `getPackage` — derived: a name lookup that fails with the service's own
|
|
5773
|
+
* typed {@link PackageNotFoundError} on a miss, exactly as the live
|
|
5774
|
+
* implementation does.
|
|
5775
|
+
* - `resolveFile` / `resolveFiles` — derived: longest-prefix ownership over
|
|
5776
|
+
* `pkg.path`, POSIX-terminated (`"/"`); supply a win32 double explicitly
|
|
5777
|
+
* if your fixture paths are win32.
|
|
5778
|
+
* - `refresh` — a no-op (`Effect.void`); there is nothing memoized to drop.
|
|
5779
|
+
* - `info` — **dies** with an explanatory defect. No honest default exists
|
|
5780
|
+
* (a fabricated root path would leak into consumer path logic), so an
|
|
5781
|
+
* unstubbed `info()` call is a test-wiring mistake and fails loudly as a
|
|
5782
|
+
* defect rather than succeeding with a lie or failing with a dishonest
|
|
5783
|
+
* typed error.
|
|
5784
|
+
*
|
|
5785
|
+
* @example
|
|
5786
|
+
* ```ts
|
|
5787
|
+
* import { WorkspaceDiscovery, WorkspacePackage } from "@effected/workspaces";
|
|
5788
|
+
* import { Effect } from "effect";
|
|
5789
|
+
*
|
|
5790
|
+
* const double = WorkspaceDiscovery.makeTest({
|
|
5791
|
+
* listPackages: () =>
|
|
5792
|
+
* Effect.succeed([
|
|
5793
|
+
* WorkspacePackage.make({
|
|
5794
|
+
* name: "@my-org/utils",
|
|
5795
|
+
* version: "1.0.0",
|
|
5796
|
+
* path: "/repo/packages/utils",
|
|
5797
|
+
* packageJsonPath: "/repo/packages/utils/package.json",
|
|
5798
|
+
* relativePath: "packages/utils",
|
|
5799
|
+
* }),
|
|
5800
|
+
* ]),
|
|
5801
|
+
* });
|
|
5802
|
+
* // `getPackage`, `importerMap`, `resolveFile(s)` now answer consistently.
|
|
5803
|
+
* ```
|
|
5804
|
+
*/
|
|
5805
|
+
static readonly makeTest: (overrides?: Partial<WorkspaceDiscoveryShape>) => WorkspaceDiscoveryShape;
|
|
5806
|
+
/**
|
|
5807
|
+
* The test layer: {@link WorkspaceDiscovery.makeTest} behind
|
|
5808
|
+
* `Layer.succeed`, so a suite provides only the methods it exercises.
|
|
5809
|
+
*
|
|
5810
|
+
* @remarks
|
|
5811
|
+
* A parameterized layer factory mints a **fresh reference per call**, and
|
|
5812
|
+
* layers memoize by reference — bind the result to a `const` and reuse it
|
|
5813
|
+
* rather than calling `layerTest(...)` at each composition site.
|
|
5814
|
+
*
|
|
5815
|
+
* @example
|
|
5816
|
+
* ```ts
|
|
5817
|
+
* import { WorkspaceDiscovery } from "@effected/workspaces";
|
|
5818
|
+
* import { Effect } from "effect";
|
|
5819
|
+
*
|
|
5820
|
+
* const TestDiscovery = WorkspaceDiscovery.layerTest({
|
|
5821
|
+
* listPackages: () => Effect.succeed([]),
|
|
5822
|
+
* });
|
|
5823
|
+
* // program.pipe(Effect.provide(TestDiscovery))
|
|
5824
|
+
* ```
|
|
5825
|
+
*/
|
|
5826
|
+
static readonly layerTest: (overrides?: Partial<WorkspaceDiscoveryShape>) => Layer.Layer<WorkspaceDiscovery>;
|
|
5761
5827
|
/**
|
|
5762
5828
|
* The real implementation of `@effected/npm`'s `WorkspaceResolver` contract
|
|
5763
5829
|
* — the one `@effected/package-json` declares but cannot fill.
|
|
@@ -6603,7 +6669,7 @@ interface WorkspacesOptions {
|
|
|
6603
6669
|
readonly maxDepth?: number;
|
|
6604
6670
|
}
|
|
6605
6671
|
//#endregion
|
|
6606
|
-
//#region ../../node_modules/.pnpm/@effected+walker@0.2.
|
|
6672
|
+
//#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/index.d.ts
|
|
6607
6673
|
declare const DescendError_base: Schema.Class<DescendError, Schema.TaggedStruct<"DescendError", {
|
|
6608
6674
|
/** The glob pattern's source text. */
|
|
6609
6675
|
readonly pattern: Schema.String;
|
|
@@ -6909,7 +6975,7 @@ declare class Categories {
|
|
|
6909
6975
|
static isValidHeading(heading: string): boolean;
|
|
6910
6976
|
}
|
|
6911
6977
|
//#endregion
|
|
6912
|
-
//#region ../../node_modules/.pnpm/@changesets+types@7.0.0-next.
|
|
6978
|
+
//#region ../../node_modules/.pnpm/@changesets+types@7.0.0-next.7/node_modules/@changesets/types/dist/index.d.mts
|
|
6913
6979
|
//#region src/index.d.ts
|
|
6914
6980
|
type MaybePromise<T> = T | Promise<T>;
|
|
6915
6981
|
type VersionType$1 = "major" | "minor" | "patch" | "none";
|
|
@@ -6982,10 +7048,13 @@ type Config = {
|
|
|
6982
7048
|
* The formatter to use to format changesets and changelogs. Set `false` to disable formatting.
|
|
6983
7049
|
* The default value of `"auto"` will auto-detect the formatter based on the project's configuration files.
|
|
6984
7050
|
*/
|
|
6985
|
-
format: "auto" | "prettier" | "oxfmt" | "deno" | "dprint" | false;
|
|
6986
|
-
|
|
7051
|
+
format: "auto" | "prettier" | "oxfmt" | "deno" | "dprint" | false;
|
|
7052
|
+
/** Features enabled for Private packages */
|
|
7053
|
+
privatePackages: PrivatePackages;
|
|
7054
|
+
/** The minimum bump type to trigger automatic update of internal dependencies that are part of the same release */
|
|
6987
7055
|
updateInternalDependencies: "patch" | "minor";
|
|
6988
|
-
ignore: ReadonlyArray<string>;
|
|
7056
|
+
ignore: ReadonlyArray<string>;
|
|
7057
|
+
/** This is supposed to be used with pnpm's `link-workspace-packages: false` and Berry's `enableTransparentWorkspaces: false` */
|
|
6989
7058
|
bumpVersionsWithWorkspaceProtocolOnly?: boolean;
|
|
6990
7059
|
___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: Required<ExperimentalOptions>;
|
|
6991
7060
|
snapshot: {
|
|
@@ -11737,7 +11806,7 @@ interface TokenTypeMap {
|
|
|
11737
11806
|
chunkString: 'chunkString';
|
|
11738
11807
|
}
|
|
11739
11808
|
//#endregion
|
|
11740
|
-
//#region ../../node_modules/.pnpm/markdownlint@0.41.1/node_modules/markdownlint/lib/markdownlint.d.mts
|
|
11809
|
+
//#region ../../node_modules/.pnpm/markdownlint@0.41.1_supports-color@8.1.1/node_modules/markdownlint/lib/markdownlint.d.mts
|
|
11741
11810
|
/**
|
|
11742
11811
|
* Function to implement rule logic.
|
|
11743
11812
|
*/
|
|
@@ -12010,7 +12079,7 @@ type Rule$2 = {
|
|
|
12010
12079
|
*/
|
|
12011
12080
|
type RuleConfiguration = boolean | any;
|
|
12012
12081
|
//#endregion
|
|
12013
|
-
//#region ../../node_modules/.pnpm/markdownlint@0.41.1/node_modules/markdownlint/lib/exports.d.mts
|
|
12082
|
+
//#region ../../node_modules/.pnpm/markdownlint@0.41.1_supports-color@8.1.1/node_modules/markdownlint/lib/exports.d.mts
|
|
12014
12083
|
type Rule$1 = Rule$2;
|
|
12015
12084
|
//#endregion
|
|
12016
12085
|
//#region src/changesets/markdownlint/rules/content-structure.d.ts
|