@savvy-web/silk 1.3.11 → 2.0.0

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.
@@ -4748,7 +4748,9 @@ declare class Categories {
4748
4748
  */
4749
4749
  static isValidHeading(heading: string): boolean;
4750
4750
  } //#endregion
4751
- //#region ../../node_modules/.pnpm/@changesets+types@6.1.0/node_modules/@changesets/types/dist/declarations/src/index.d.ts
4751
+ //#region ../../node_modules/.pnpm/@changesets+types@7.0.0-next.6/node_modules/@changesets/types/dist/index.d.mts
4752
+ //#region src/index.d.ts
4753
+ type MaybePromise<T> = T | Promise<T>;
4752
4754
  type VersionType$1 = "major" | "minor" | "patch" | "none";
4753
4755
  type AccessType = "public" | "restricted";
4754
4756
  type Release = {
@@ -4797,6 +4799,7 @@ type PackageJSON = {
4797
4799
  access?: AccessType;
4798
4800
  directory?: string;
4799
4801
  registry?: string;
4802
+ [registry: `${string}:registry`]: string;
4800
4803
  };
4801
4804
  };
4802
4805
  type PackageGroup = ReadonlyArray<string>;
@@ -4807,19 +4810,23 @@ interface PrivatePackages {
4807
4810
  tag: boolean;
4808
4811
  }
4809
4812
  type Config = {
4810
- changelog: false | readonly [string, any];
4811
- commit: false | readonly [string, any];
4813
+ changelog: false | readonly [string, null | Record<string, unknown>];
4814
+ commit: false | readonly [string, null | Record<string, unknown>];
4812
4815
  fixed: Fixed;
4813
4816
  linked: Linked;
4814
4817
  access: AccessType;
4815
4818
  baseBranch: string;
4816
- changedFilePatterns: readonly string[]; /** When false, Changesets won't format with Prettier */
4817
- prettier: boolean; /** Features enabled for Private packages */
4819
+ changedFilePatterns: readonly string[];
4820
+ /**
4821
+ * The formatter to use to format changesets and changelogs. Set `false` to disable formatting.
4822
+ * The default value of `"auto"` will auto-detect the formatter based on the project's configuration files.
4823
+ */
4824
+ format: "auto" | "prettier" | "oxfmt" | "deno" | "dprint" | false; /** Features enabled for Private packages */
4818
4825
  privatePackages: PrivatePackages; /** The minimum bump type to trigger automatic update of internal dependencies that are part of the same release */
4819
4826
  updateInternalDependencies: "patch" | "minor";
4820
4827
  ignore: ReadonlyArray<string>; /** This is supposed to be used with pnpm's `link-workspace-packages: false` and Berry's `enableTransparentWorkspaces: false` */
4821
4828
  bumpVersionsWithWorkspaceProtocolOnly?: boolean;
4822
- ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: Omit<Required<ExperimentalOptions>, "useCalculatedVersionForSnapshots">;
4829
+ ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: Required<ExperimentalOptions>;
4823
4830
  snapshot: {
4824
4831
  useCalculatedVersion: boolean;
4825
4832
  prereleaseTemplate: string | null;
@@ -4827,8 +4834,7 @@ type Config = {
4827
4834
  };
4828
4835
  type ExperimentalOptions = {
4829
4836
  onlyUpdatePeerDependentsWhenOutOfRange?: boolean;
4830
- updateInternalDependents?: "always" | "out-of-range"; /** @deprecated Since snapshot feature is now stable, you should migrate to use "snapshot.useCalculatedVersion". */
4831
- useCalculatedVersionForSnapshots?: boolean;
4837
+ updateInternalDependents?: "always" | "out-of-range";
4832
4838
  };
4833
4839
  type NewChangesetWithCommit = NewChangeset & {
4834
4840
  commit?: string;
@@ -4837,8 +4843,8 @@ type ModCompWithPackage = ComprehensiveRelease & {
4837
4843
  packageJson: PackageJSON;
4838
4844
  dir: string;
4839
4845
  };
4840
- type GetReleaseLine = (changeset: NewChangesetWithCommit, type: VersionType$1, changelogOpts: null | Record<string, any>) => Promise<string>;
4841
- type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], changelogOpts: any) => Promise<string>;
4846
+ type GetReleaseLine = (changeset: NewChangesetWithCommit, type: VersionType$1, changelogOpts: null | Record<string, unknown>) => MaybePromise<string>;
4847
+ type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], changelogOpts: null | Record<string, unknown>) => MaybePromise<string>;
4842
4848
  type ChangelogFunctions = {
4843
4849
  getReleaseLine: GetReleaseLine;
4844
4850
  getDependencyReleaseLine: GetDependencyReleaseLine;
@@ -4846,9 +4852,6 @@ type ChangelogFunctions = {
4846
4852
  type PreState = {
4847
4853
  mode: "pre" | "exit";
4848
4854
  tag: string;
4849
- initialVersions: {
4850
- [pkgName: string]: string;
4851
- };
4852
4855
  changesets: string[];
4853
4856
  }; //#endregion
4854
4857
  //#region src/changesets/api/changelog.d.ts
@@ -7143,7 +7146,7 @@ declare class ChangesetConfigError extends ChangesetConfigError_base<{
7143
7146
  } //#endregion
7144
7147
  //#region src/schemas/VersioningSchemas.d.ts
7145
7148
  /**
7146
- * Standard changesets configuration matching the `@changesets/config@3.1.1` spec.
7149
+ * Standard changesets configuration matching the `@changesets/config@4.0.0-next.6` spec.
7147
7150
  *
7148
7151
  * @remarks
7149
7152
  * Represents the parsed `.changeset/config.json` file. All fields are optional
@@ -8369,6 +8372,13 @@ interface ReleasePlannerShape {
8369
8372
  /** Natively apply the release (destructive unless `dryRun`). */
8370
8373
  readonly apply: (root: string, options?: {
8371
8374
  readonly dryRun?: boolean;
8375
+ /**
8376
+ * Map configured changelog ids to absolute module paths. When set,
8377
+ * `config.changelog[0]` must be a key of this map (rewritten before the
8378
+ * engine call; unmapped ids fail) and the engine's `format` integration
8379
+ * is disabled — callers in no-`node_modules` contexts own formatting.
8380
+ */
8381
+ readonly changelogModules?: Readonly<Record<string, string>>;
8372
8382
  }) => Effect.Effect<AppliedRelease, ReleasePlanError>;
8373
8383
  }
8374
8384
  /**
@@ -4748,7 +4748,9 @@ declare class Categories {
4748
4748
  */
4749
4749
  static isValidHeading(heading: string): boolean;
4750
4750
  } //#endregion
4751
- //#region ../../node_modules/.pnpm/@changesets+types@6.1.0/node_modules/@changesets/types/dist/declarations/src/index.d.ts
4751
+ //#region ../../node_modules/.pnpm/@changesets+types@7.0.0-next.6/node_modules/@changesets/types/dist/index.d.mts
4752
+ //#region src/index.d.ts
4753
+ type MaybePromise<T> = T | Promise<T>;
4752
4754
  type VersionType$1 = "major" | "minor" | "patch" | "none";
4753
4755
  type AccessType = "public" | "restricted";
4754
4756
  type Release = {
@@ -4797,6 +4799,7 @@ type PackageJSON = {
4797
4799
  access?: AccessType;
4798
4800
  directory?: string;
4799
4801
  registry?: string;
4802
+ [registry: `${string}:registry`]: string;
4800
4803
  };
4801
4804
  };
4802
4805
  type PackageGroup = ReadonlyArray<string>;
@@ -4807,19 +4810,23 @@ interface PrivatePackages {
4807
4810
  tag: boolean;
4808
4811
  }
4809
4812
  type Config = {
4810
- changelog: false | readonly [string, any];
4811
- commit: false | readonly [string, any];
4813
+ changelog: false | readonly [string, null | Record<string, unknown>];
4814
+ commit: false | readonly [string, null | Record<string, unknown>];
4812
4815
  fixed: Fixed;
4813
4816
  linked: Linked;
4814
4817
  access: AccessType;
4815
4818
  baseBranch: string;
4816
- changedFilePatterns: readonly string[]; /** When false, Changesets won't format with Prettier */
4817
- prettier: boolean; /** Features enabled for Private packages */
4819
+ changedFilePatterns: readonly string[];
4820
+ /**
4821
+ * The formatter to use to format changesets and changelogs. Set `false` to disable formatting.
4822
+ * The default value of `"auto"` will auto-detect the formatter based on the project's configuration files.
4823
+ */
4824
+ format: "auto" | "prettier" | "oxfmt" | "deno" | "dprint" | false; /** Features enabled for Private packages */
4818
4825
  privatePackages: PrivatePackages; /** The minimum bump type to trigger automatic update of internal dependencies that are part of the same release */
4819
4826
  updateInternalDependencies: "patch" | "minor";
4820
4827
  ignore: ReadonlyArray<string>; /** This is supposed to be used with pnpm's `link-workspace-packages: false` and Berry's `enableTransparentWorkspaces: false` */
4821
4828
  bumpVersionsWithWorkspaceProtocolOnly?: boolean;
4822
- ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: Omit<Required<ExperimentalOptions>, "useCalculatedVersionForSnapshots">;
4829
+ ___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH: Required<ExperimentalOptions>;
4823
4830
  snapshot: {
4824
4831
  useCalculatedVersion: boolean;
4825
4832
  prereleaseTemplate: string | null;
@@ -4827,8 +4834,7 @@ type Config = {
4827
4834
  };
4828
4835
  type ExperimentalOptions = {
4829
4836
  onlyUpdatePeerDependentsWhenOutOfRange?: boolean;
4830
- updateInternalDependents?: "always" | "out-of-range"; /** @deprecated Since snapshot feature is now stable, you should migrate to use "snapshot.useCalculatedVersion". */
4831
- useCalculatedVersionForSnapshots?: boolean;
4837
+ updateInternalDependents?: "always" | "out-of-range";
4832
4838
  };
4833
4839
  type NewChangesetWithCommit = NewChangeset & {
4834
4840
  commit?: string;
@@ -4837,8 +4843,8 @@ type ModCompWithPackage = ComprehensiveRelease & {
4837
4843
  packageJson: PackageJSON;
4838
4844
  dir: string;
4839
4845
  };
4840
- type GetReleaseLine = (changeset: NewChangesetWithCommit, type: VersionType$1, changelogOpts: null | Record<string, any>) => Promise<string>;
4841
- type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], changelogOpts: any) => Promise<string>;
4846
+ type GetReleaseLine = (changeset: NewChangesetWithCommit, type: VersionType$1, changelogOpts: null | Record<string, unknown>) => MaybePromise<string>;
4847
+ type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], changelogOpts: null | Record<string, unknown>) => MaybePromise<string>;
4842
4848
  type ChangelogFunctions = {
4843
4849
  getReleaseLine: GetReleaseLine;
4844
4850
  getDependencyReleaseLine: GetDependencyReleaseLine;
@@ -4846,9 +4852,6 @@ type ChangelogFunctions = {
4846
4852
  type PreState = {
4847
4853
  mode: "pre" | "exit";
4848
4854
  tag: string;
4849
- initialVersions: {
4850
- [pkgName: string]: string;
4851
- };
4852
4855
  changesets: string[];
4853
4856
  }; //#endregion
4854
4857
  //#region src/changesets/api/changelog.d.ts
@@ -7143,7 +7146,7 @@ declare class ChangesetConfigError extends ChangesetConfigError_base<{
7143
7146
  } //#endregion
7144
7147
  //#region src/schemas/VersioningSchemas.d.ts
7145
7148
  /**
7146
- * Standard changesets configuration matching the `@changesets/config@3.1.1` spec.
7149
+ * Standard changesets configuration matching the `@changesets/config@4.0.0-next.6` spec.
7147
7150
  *
7148
7151
  * @remarks
7149
7152
  * Represents the parsed `.changeset/config.json` file. All fields are optional
@@ -8369,6 +8372,13 @@ interface ReleasePlannerShape {
8369
8372
  /** Natively apply the release (destructive unless `dryRun`). */
8370
8373
  readonly apply: (root: string, options?: {
8371
8374
  readonly dryRun?: boolean;
8375
+ /**
8376
+ * Map configured changelog ids to absolute module paths. When set,
8377
+ * `config.changelog[0]` must be a key of this map (rewritten before the
8378
+ * engine call; unmapped ids fail) and the engine's `format` integration
8379
+ * is disabled — callers in no-`node_modules` contexts own formatting.
8380
+ */
8381
+ readonly changelogModules?: Readonly<Record<string, string>>;
8372
8382
  }) => Effect.Effect<AppliedRelease, ReleasePlanError>;
8373
8383
  }
8374
8384
  /**