@savvy-web/silk 3.11.1 → 3.11.3
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 +83 -1
- package/changesets-changelog.d.cts +124 -72
- package/changesets-changelog.d.ts +124 -72
- package/changesets-changelog.js +84 -1
- package/changesets-markdownlint.cjs +83 -1
- package/changesets-markdownlint.d.cts +124 -72
- package/changesets-markdownlint.d.ts +124 -72
- package/changesets-markdownlint.js +84 -1
- package/package.json +4 -4
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
|
@@ -7061,34 +7061,109 @@ declare class ChangesetConfig extends ChangesetConfig_base {
|
|
|
7061
7061
|
static readonly layer: Layer.Layer<ChangesetConfig, never, ChangesetConfigReader>;
|
|
7062
7062
|
}
|
|
7063
7063
|
//#endregion
|
|
7064
|
-
//#region src/changesets/
|
|
7064
|
+
//#region src/changesets/schemas/deps-regen.d.ts
|
|
7065
7065
|
/**
|
|
7066
|
-
*
|
|
7066
|
+
* One dependency-diff row emitted by the deps-regen planner.
|
|
7067
|
+
*
|
|
7068
|
+
* @remarks
|
|
7069
|
+
* `computeWorkspaceDependencyDiffs` intentionally falls back to raw unresolved
|
|
7070
|
+
* specifier strings (`*`, `>=5.7.0`, `^1.2`, `latest`, etc.). This in-memory
|
|
7071
|
+
* plan schema therefore accepts any non-empty `from`/`to` cell instead of the
|
|
7072
|
+
* stricter changelog-table version pattern.
|
|
7067
7073
|
*
|
|
7068
7074
|
* @public
|
|
7069
7075
|
*/
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
readonly
|
|
7073
|
-
|
|
7074
|
-
readonly
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
}
|
|
7076
|
+
declare const RegenDiffRowSchema: Schema.Struct<{
|
|
7077
|
+
readonly dependency: Schema.String;
|
|
7078
|
+
readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config", "runtime", "packageManager"]>;
|
|
7079
|
+
readonly action: Schema.Literals<readonly ["added", "updated", "removed"]>;
|
|
7080
|
+
readonly from: Schema.String;
|
|
7081
|
+
readonly to: Schema.String;
|
|
7082
|
+
}>;
|
|
7078
7083
|
/**
|
|
7079
|
-
*
|
|
7080
|
-
* comparing already-resolved specifier values per side.
|
|
7084
|
+
* One dependency-diff row emitted by the deps-regen planner.
|
|
7081
7085
|
*
|
|
7082
|
-
* @
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
*
|
|
7087
|
-
* omitted.
|
|
7086
|
+
* @public
|
|
7087
|
+
*/
|
|
7088
|
+
type RegenDiffRow = Schema.Schema.Type<typeof RegenDiffRowSchema>;
|
|
7089
|
+
/**
|
|
7090
|
+
* A prose-only changeset that coexists with a deps-regen run (informational).
|
|
7088
7091
|
*
|
|
7089
7092
|
* @public
|
|
7090
7093
|
*/
|
|
7091
|
-
declare
|
|
7094
|
+
declare const CoexistingChangesetSchema: Schema.Struct<{
|
|
7095
|
+
/** Absolute path of the untouched prose changeset. */
|
|
7096
|
+
readonly file: Schema.String;
|
|
7097
|
+
/** In-scope packages released by this changeset's frontmatter. */
|
|
7098
|
+
readonly packages: Schema.$Array<Schema.String>;
|
|
7099
|
+
}>;
|
|
7100
|
+
/**
|
|
7101
|
+
* A prose-only changeset that coexists with a deps-regen run (informational).
|
|
7102
|
+
*
|
|
7103
|
+
* @public
|
|
7104
|
+
*/
|
|
7105
|
+
type CoexistingChangeset = Schema.Schema.Type<typeof CoexistingChangesetSchema>;
|
|
7106
|
+
/**
|
|
7107
|
+
* Complete side-effect-free deps-regen plan.
|
|
7108
|
+
*
|
|
7109
|
+
* @public
|
|
7110
|
+
*/
|
|
7111
|
+
declare const RegenPlanSchema: Schema.Struct<{
|
|
7112
|
+
readonly toDelete: Schema.$Array<Schema.Struct<{
|
|
7113
|
+
readonly file: Schema.String;
|
|
7114
|
+
readonly package: Schema.String;
|
|
7115
|
+
}>>;
|
|
7116
|
+
readonly toWrite: Schema.$Array<Schema.Struct<{
|
|
7117
|
+
readonly file: Schema.String;
|
|
7118
|
+
readonly package: Schema.String;
|
|
7119
|
+
readonly diff: Schema.Struct<{
|
|
7120
|
+
readonly package: Schema.String;
|
|
7121
|
+
readonly relativePath: Schema.String;
|
|
7122
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
7123
|
+
readonly dependency: Schema.String;
|
|
7124
|
+
readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config", "runtime", "packageManager"]>;
|
|
7125
|
+
readonly action: Schema.Literals<readonly ["added", "updated", "removed"]>;
|
|
7126
|
+
readonly from: Schema.String;
|
|
7127
|
+
readonly to: Schema.String;
|
|
7128
|
+
}>>;
|
|
7129
|
+
}>;
|
|
7130
|
+
}>>;
|
|
7131
|
+
readonly skippedMixed: Schema.$Array<Schema.String>;
|
|
7132
|
+
readonly coexisting: Schema.$Array<Schema.Struct<{
|
|
7133
|
+
/** Absolute path of the untouched prose changeset. */
|
|
7134
|
+
readonly file: Schema.String;
|
|
7135
|
+
/** In-scope packages released by this changeset's frontmatter. */
|
|
7136
|
+
readonly packages: Schema.$Array<Schema.String>;
|
|
7137
|
+
}>>;
|
|
7138
|
+
}>;
|
|
7139
|
+
/**
|
|
7140
|
+
* Complete side-effect-free deps-regen plan.
|
|
7141
|
+
*
|
|
7142
|
+
* @public
|
|
7143
|
+
*/
|
|
7144
|
+
type RegenPlan = Schema.Schema.Type<typeof RegenPlanSchema>;
|
|
7145
|
+
/**
|
|
7146
|
+
* Result of applying a {@link RegenPlan}.
|
|
7147
|
+
*
|
|
7148
|
+
* @public
|
|
7149
|
+
*/
|
|
7150
|
+
declare const RegenResultSchema: Schema.Struct<{
|
|
7151
|
+
readonly deleted: Schema.$Array<Schema.String>;
|
|
7152
|
+
readonly written: Schema.$Array<Schema.String>;
|
|
7153
|
+
readonly skippedMixed: Schema.$Array<Schema.String>;
|
|
7154
|
+
readonly coexisting: Schema.$Array<Schema.Struct<{
|
|
7155
|
+
/** Absolute path of the untouched prose changeset. */
|
|
7156
|
+
readonly file: Schema.String;
|
|
7157
|
+
/** In-scope packages released by this changeset's frontmatter. */
|
|
7158
|
+
readonly packages: Schema.$Array<Schema.String>;
|
|
7159
|
+
}>>;
|
|
7160
|
+
}>;
|
|
7161
|
+
/**
|
|
7162
|
+
* Result of applying a {@link RegenPlan}.
|
|
7163
|
+
*
|
|
7164
|
+
* @public
|
|
7165
|
+
*/
|
|
7166
|
+
type RegenResult = Schema.Schema.Type<typeof RegenResultSchema>;
|
|
7092
7167
|
//#endregion
|
|
7093
7168
|
//#region src/changesets/services/deps-regen.d.ts
|
|
7094
7169
|
/**
|
|
@@ -7119,58 +7194,6 @@ declare function isPureDependencyChangeset(content: string): {
|
|
|
7119
7194
|
* @public
|
|
7120
7195
|
*/
|
|
7121
7196
|
declare function parseChangesetPackages(content: string): ReadonlyArray<string>;
|
|
7122
|
-
/**
|
|
7123
|
-
* A prose-only changeset that coexists with the run: it releases at least one
|
|
7124
|
-
* package in scope for this run but was left untouched because it carries no
|
|
7125
|
-
* `## Dependencies` section. Purely informational (#279) — surfaced so the
|
|
7126
|
-
* regen/detect result accounts for every changeset touching an in-scope
|
|
7127
|
-
* package, instead of leaving prose entries invisible and forcing a manual
|
|
7128
|
-
* `.changeset/` cross-check.
|
|
7129
|
-
*
|
|
7130
|
-
* @public
|
|
7131
|
-
*/
|
|
7132
|
-
interface CoexistingChangeset {
|
|
7133
|
-
/** Absolute path of the untouched prose changeset. */
|
|
7134
|
-
readonly file: string;
|
|
7135
|
-
/** The in-scope packages its frontmatter releases (out-of-scope names are dropped). */
|
|
7136
|
-
readonly packages: ReadonlyArray<string>;
|
|
7137
|
-
}
|
|
7138
|
-
/**
|
|
7139
|
-
* A complete, side-effect-free regen plan: which stale pure-dependency
|
|
7140
|
-
* changesets to delete, which fresh changesets to write (carrying the
|
|
7141
|
-
* already-resolved diff), which mixed changesets were left untouched, and
|
|
7142
|
-
* which coexisting prose changesets reference in-scope packages.
|
|
7143
|
-
*
|
|
7144
|
-
* @public
|
|
7145
|
-
*/
|
|
7146
|
-
interface RegenPlan {
|
|
7147
|
-
readonly toDelete: ReadonlyArray<{
|
|
7148
|
-
readonly file: string;
|
|
7149
|
-
readonly package: string;
|
|
7150
|
-
}>;
|
|
7151
|
-
readonly toWrite: ReadonlyArray<{
|
|
7152
|
-
readonly file: string;
|
|
7153
|
-
readonly package: string;
|
|
7154
|
-
readonly diff: WorkspaceDependencyDiff;
|
|
7155
|
-
}>;
|
|
7156
|
-
readonly skippedMixed: ReadonlyArray<string>;
|
|
7157
|
-
/** Informational: untouched prose changesets releasing in-scope packages (#279). */
|
|
7158
|
-
readonly coexisting: ReadonlyArray<CoexistingChangeset>;
|
|
7159
|
-
}
|
|
7160
|
-
/**
|
|
7161
|
-
* The result of applying a {@link RegenPlan}: the files actually deleted
|
|
7162
|
-
* and written, plus the mixed changesets that were skipped and the
|
|
7163
|
-
* coexisting prose changesets carried through from the plan.
|
|
7164
|
-
*
|
|
7165
|
-
* @public
|
|
7166
|
-
*/
|
|
7167
|
-
interface RegenResult {
|
|
7168
|
-
readonly deleted: ReadonlyArray<string>;
|
|
7169
|
-
readonly written: ReadonlyArray<string>;
|
|
7170
|
-
readonly skippedMixed: ReadonlyArray<string>;
|
|
7171
|
-
/** Informational: untouched prose changesets releasing in-scope packages (#279). */
|
|
7172
|
-
readonly coexisting: ReadonlyArray<CoexistingChangeset>;
|
|
7173
|
-
}
|
|
7174
7197
|
/**
|
|
7175
7198
|
* Options for {@link DepsRegenShape.plan}.
|
|
7176
7199
|
*
|
|
@@ -8134,6 +8157,35 @@ declare const LegacyVersionFilesSchema: Schema.$Array<Schema.Struct<{
|
|
|
8134
8157
|
readonly package: Schema.optional<Schema.String>;
|
|
8135
8158
|
}>>;
|
|
8136
8159
|
//#endregion
|
|
8160
|
+
//#region src/changesets/utils/dep-diff.d.ts
|
|
8161
|
+
/**
|
|
8162
|
+
* A workspace package's worth of dependency-table rows.
|
|
8163
|
+
*
|
|
8164
|
+
* @public
|
|
8165
|
+
*/
|
|
8166
|
+
interface WorkspaceDependencyDiff {
|
|
8167
|
+
/** The workspace package whose `package.json` changed. */
|
|
8168
|
+
readonly package: string;
|
|
8169
|
+
/** Repo-relative path of the package directory (taken from the `after` snapshot). */
|
|
8170
|
+
readonly relativePath: string;
|
|
8171
|
+
/** One row per dependency change, sorted by the existing `sortDependencyRows` convention. */
|
|
8172
|
+
readonly rows: ReadonlyArray<DependencyTableRow>;
|
|
8173
|
+
}
|
|
8174
|
+
/**
|
|
8175
|
+
* Diff two workspace snapshots and return per-package dependency-table rows,
|
|
8176
|
+
* comparing already-resolved specifier values per side.
|
|
8177
|
+
*
|
|
8178
|
+
* @param before - Snapshot at the older ref (typically the merge base). A
|
|
8179
|
+
* workspace package absent here reports every declared dep as `"added"`.
|
|
8180
|
+
* @param after - Snapshot at the newer ref (typically the working tree).
|
|
8181
|
+
* @returns One {@link WorkspaceDependencyDiff} entry per workspace package
|
|
8182
|
+
* that has at least one row. Packages with no resolved-value changes are
|
|
8183
|
+
* omitted.
|
|
8184
|
+
*
|
|
8185
|
+
* @public
|
|
8186
|
+
*/
|
|
8187
|
+
declare function computeWorkspaceDependencyDiffs(before: WorkspaceStateSnapshot, after: WorkspaceStateSnapshot): ReadonlyArray<WorkspaceDependencyDiff>;
|
|
8188
|
+
//#endregion
|
|
8137
8189
|
//#region src/changesets/utils/dependency-table.d.ts
|
|
8138
8190
|
/**
|
|
8139
8191
|
* Serialize dependency table rows to a markdown table string.
|
|
@@ -9164,7 +9216,7 @@ declare const RequiredSectionsRule$2: Plugin<Root, unknown>;
|
|
|
9164
9216
|
//#region src/changesets/remark/rules/uncategorized-content.d.ts
|
|
9165
9217
|
declare const UncategorizedContentRule$2: Plugin<Root, unknown>;
|
|
9166
9218
|
declare namespace index_d_exports {
|
|
9167
|
-
export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetIOError, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CoexistingChangeset, CommitHashSchema, ConfigInspector, ConfigInspectorShape, ConfigurationError, ContentStructureRule$2 as ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule$2 as DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, DepsRegen, DepsRegenDefault, DepsRegenOptions, DepsRegenPlanError, DepsRegenShape, FileStatus, FileStatusSchema, GitError, GitHubApiError, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubService, GitHubServiceShape, GlobSchema, HeadingHierarchyRule$2 as HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MaintenanceNoteOptions, MaintenanceNotePlugin, MaintenanceReason, MaintenanceReasonSchema, MaintenanceTrigger, MaintenanceTriggerSchema, MarkdownParseError, ContentStructureRule$1 as MarkdownlintContentStructureRule, DependencyTableFormatRule$1 as MarkdownlintDependencyTableFormatRule, HeadingHierarchyRule$1 as MarkdownlintHeadingHierarchyRule, RequiredSectionsRule$1 as MarkdownlintRequiredSectionsRule, UncategorizedContentRule$1 as MarkdownlintUncategorizedContentRule, MergeSectionsPlugin, NonEmptyString, NormalizeFormatPlugin, PackageScope, PackageScopeSchema, PackagesRecordSchema, PendingChangeset, PendingChangesetSchema, PositiveInteger, PreviewRelease, PreviewReleaseSchema, RegenPlan, RegenResult, ReleasePlanError, ReleasePlanner, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule$2 as RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules$1 as SilkChangesetsRules, TransformOptions, UncategorizedContentRule$2 as UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VERSION_RE, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceVersion, changelogFunctions, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, parseChangesetPackages, serializeDependencyTableToMarkdown, vanillaChangelogFunctions };
|
|
9219
|
+
export { AggregateDependencyTablesPlugin, AppliedRelease, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysis, BranchAnalysisSchema, BranchAnalyzer, BranchAnalyzerShape, BranchFileEntry, BranchFileEntrySchema, BumpType, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogServiceShape, ChangelogTransformer, Changeset, ChangesetIOError, ChangesetLinter, ChangesetOptions, ChangesetOptionsSchema, ChangesetPreview, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, Classification, ClassificationReason, ClassificationReasonSchema, ClassificationSchema, CoexistingChangeset, CoexistingChangesetSchema, CommitHashSchema, ConfigInspector, ConfigInspectorShape, ConfigurationError, ContentStructureRule$2 as ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, DependencyTableFormatRule$2 as DependencyTableFormatRule, DependencyTableRow, DependencyTableRowSchema, DependencyTableSchema, DependencyTableType, DependencyTableTypeSchema, DependencyType, DependencyTypeSchema, DependencyUpdate, DependencyUpdateSchema, DepsRegen, DepsRegenDefault, DepsRegenOptions, DepsRegenPlanError, DepsRegenShape, FileStatus, FileStatusSchema, GitError, GitHubApiError, GitHubCommitInfo, GitHubInfo, GitHubInfoSchema, GitHubService, GitHubServiceShape, GlobSchema, HeadingHierarchyRule$2 as HeadingHierarchyRule, InspectedConfig, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfig, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, LintMessage, MaintenanceNoteOptions, MaintenanceNotePlugin, MaintenanceReason, MaintenanceReasonSchema, MaintenanceTrigger, MaintenanceTriggerSchema, MarkdownParseError, ContentStructureRule$1 as MarkdownlintContentStructureRule, DependencyTableFormatRule$1 as MarkdownlintDependencyTableFormatRule, HeadingHierarchyRule$1 as MarkdownlintHeadingHierarchyRule, RequiredSectionsRule$1 as MarkdownlintRequiredSectionsRule, UncategorizedContentRule$1 as MarkdownlintUncategorizedContentRule, MergeSectionsPlugin, NonEmptyString, NormalizeFormatPlugin, PackageScope, PackageScopeSchema, PackagesRecordSchema, PendingChangeset, PendingChangesetSchema, PositiveInteger, PreviewRelease, PreviewReleaseSchema, RegenDiffRow, RegenDiffRowSchema, RegenPlan, RegenPlanSchema, RegenResult, RegenResultSchema, ReleasePlanError, ReleasePlanner, ReleasePlannerShape, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule$2 as RequiredSectionsRule, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules$1 as SilkChangesetsRules, TransformOptions, UncategorizedContentRule$2 as UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VERSION_RE, VersionFileConfig, VersionFileConfigSchema, VersionFileError, VersionFileUpdate, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionType, VersionTypeSchema, WorkspaceDependencyDiff, WorkspaceVersion, changelogFunctions, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, parseChangesetPackages, serializeDependencyTableToMarkdown, vanillaChangelogFunctions };
|
|
9168
9220
|
}
|
|
9169
9221
|
//#endregion
|
|
9170
9222
|
//#region src/changesets/markdownlint.d.ts
|
|
@@ -55012,6 +55012,8 @@ function makeReleasePlannerTest(fixed) {
|
|
|
55012
55012
|
* either shells out through `npx` (network) or to an ambient binary, so a
|
|
55013
55013
|
* fixture that names one passes or fails on what the machine happens to have
|
|
55014
55014
|
* installed rather than on this rewrite.
|
|
55015
|
+
*
|
|
55016
|
+
* @internal
|
|
55015
55017
|
*/
|
|
55016
55018
|
function withChangelogModules(config, changelogModules, phase) {
|
|
55017
55019
|
const unformatted = {
|
|
@@ -55032,7 +55034,11 @@ function withChangelogModules(config, changelogModules, phase) {
|
|
|
55032
55034
|
changelog: [changelogModules[configuredId], config.changelog[1]]
|
|
55033
55035
|
});
|
|
55034
55036
|
}
|
|
55035
|
-
/**
|
|
55037
|
+
/**
|
|
55038
|
+
* Extract the `## <version>` block (down to the next H2 or EOF) from a changelog.
|
|
55039
|
+
*
|
|
55040
|
+
* @internal
|
|
55041
|
+
*/
|
|
55036
55042
|
function extractVersionBlock(changelog, version) {
|
|
55037
55043
|
const lines = changelog.split("\n");
|
|
55038
55044
|
const start = lines.findIndex((l) => l.trim() === `## ${version}`);
|
|
@@ -55565,6 +55571,79 @@ const DependencyUpdateSchema = Schema.Struct({
|
|
|
55565
55571
|
newVersion: Schema.String
|
|
55566
55572
|
});
|
|
55567
55573
|
|
|
55574
|
+
//#endregion
|
|
55575
|
+
//#region ../silk-effects/dist/dev/pkg/changesets/schemas/deps-regen.js
|
|
55576
|
+
/**
|
|
55577
|
+
* Result schemas for DepsRegen: the side-effect-free regen plan and the result
|
|
55578
|
+
* of applying it.
|
|
55579
|
+
*
|
|
55580
|
+
*/
|
|
55581
|
+
const RegenDeleteEntrySchema = Schema.Struct({
|
|
55582
|
+
file: Schema.String,
|
|
55583
|
+
package: Schema.String
|
|
55584
|
+
}).annotate({ identifier: "RegenDeleteEntry" });
|
|
55585
|
+
/**
|
|
55586
|
+
* One dependency-diff row emitted by the deps-regen planner.
|
|
55587
|
+
*
|
|
55588
|
+
* @remarks
|
|
55589
|
+
* `computeWorkspaceDependencyDiffs` intentionally falls back to raw unresolved
|
|
55590
|
+
* specifier strings (`*`, `>=5.7.0`, `^1.2`, `latest`, etc.). This in-memory
|
|
55591
|
+
* plan schema therefore accepts any non-empty `from`/`to` cell instead of the
|
|
55592
|
+
* stricter changelog-table version pattern.
|
|
55593
|
+
*
|
|
55594
|
+
* @public
|
|
55595
|
+
*/
|
|
55596
|
+
const RegenDiffRowSchema = Schema.Struct({
|
|
55597
|
+
dependency: NonEmptyString,
|
|
55598
|
+
type: DependencyTableTypeSchema,
|
|
55599
|
+
action: DependencyActionSchema,
|
|
55600
|
+
from: NonEmptyString,
|
|
55601
|
+
to: NonEmptyString
|
|
55602
|
+
}).annotate({ identifier: "RegenDiffRow" });
|
|
55603
|
+
const WorkspaceDependencyDiffPayloadSchema = Schema.Struct({
|
|
55604
|
+
package: Schema.String,
|
|
55605
|
+
relativePath: Schema.String,
|
|
55606
|
+
rows: Schema.Array(RegenDiffRowSchema).check(Schema.isMinLength(1))
|
|
55607
|
+
}).annotate({ identifier: "WorkspaceDependencyDiffPayload" });
|
|
55608
|
+
const RegenWriteEntrySchema = Schema.Struct({
|
|
55609
|
+
file: Schema.String,
|
|
55610
|
+
package: Schema.String,
|
|
55611
|
+
diff: WorkspaceDependencyDiffPayloadSchema
|
|
55612
|
+
}).annotate({ identifier: "RegenWriteEntry" });
|
|
55613
|
+
/**
|
|
55614
|
+
* A prose-only changeset that coexists with a deps-regen run (informational).
|
|
55615
|
+
*
|
|
55616
|
+
* @public
|
|
55617
|
+
*/
|
|
55618
|
+
const CoexistingChangesetSchema = Schema.Struct({
|
|
55619
|
+
/** Absolute path of the untouched prose changeset. */
|
|
55620
|
+
file: Schema.String,
|
|
55621
|
+
/** In-scope packages released by this changeset's frontmatter. */
|
|
55622
|
+
packages: Schema.Array(Schema.String)
|
|
55623
|
+
}).annotate({ identifier: "CoexistingChangeset" });
|
|
55624
|
+
/**
|
|
55625
|
+
* Complete side-effect-free deps-regen plan.
|
|
55626
|
+
*
|
|
55627
|
+
* @public
|
|
55628
|
+
*/
|
|
55629
|
+
const RegenPlanSchema = Schema.Struct({
|
|
55630
|
+
toDelete: Schema.Array(RegenDeleteEntrySchema),
|
|
55631
|
+
toWrite: Schema.Array(RegenWriteEntrySchema),
|
|
55632
|
+
skippedMixed: Schema.Array(Schema.String),
|
|
55633
|
+
coexisting: Schema.Array(CoexistingChangesetSchema)
|
|
55634
|
+
}).annotate({ identifier: "RegenPlan" });
|
|
55635
|
+
/**
|
|
55636
|
+
* Result of applying a {@link RegenPlan}.
|
|
55637
|
+
*
|
|
55638
|
+
* @public
|
|
55639
|
+
*/
|
|
55640
|
+
const RegenResultSchema = Schema.Struct({
|
|
55641
|
+
deleted: Schema.Array(Schema.String),
|
|
55642
|
+
written: Schema.Array(Schema.String),
|
|
55643
|
+
skippedMixed: Schema.Array(Schema.String),
|
|
55644
|
+
coexisting: Schema.Array(CoexistingChangesetSchema)
|
|
55645
|
+
}).annotate({ identifier: "RegenResult" });
|
|
55646
|
+
|
|
55568
55647
|
//#endregion
|
|
55569
55648
|
//#region ../silk-effects/dist/dev/pkg/changesets/schemas/release-plan.js
|
|
55570
55649
|
/**
|
|
@@ -56150,6 +56229,7 @@ var changesets_exports = /* @__PURE__ */ __exportAll({
|
|
|
56150
56229
|
ChangesetValidationError: () => ChangesetValidationError,
|
|
56151
56230
|
ClassificationReasonSchema: () => ClassificationReasonSchema,
|
|
56152
56231
|
ClassificationSchema: () => ClassificationSchema,
|
|
56232
|
+
CoexistingChangesetSchema: () => CoexistingChangesetSchema,
|
|
56153
56233
|
CommitHashSchema: () => CommitHashSchema,
|
|
56154
56234
|
ConfigInspector: () => ConfigInspector,
|
|
56155
56235
|
ConfigurationError: () => ConfigurationError,
|
|
@@ -56196,6 +56276,9 @@ var changesets_exports = /* @__PURE__ */ __exportAll({
|
|
|
56196
56276
|
PendingChangesetSchema: () => PendingChangesetSchema,
|
|
56197
56277
|
PositiveInteger: () => PositiveInteger,
|
|
56198
56278
|
PreviewReleaseSchema: () => PreviewReleaseSchema,
|
|
56279
|
+
RegenDiffRowSchema: () => RegenDiffRowSchema,
|
|
56280
|
+
RegenPlanSchema: () => RegenPlanSchema,
|
|
56281
|
+
RegenResultSchema: () => RegenResultSchema,
|
|
56199
56282
|
ReleasePlanError: () => ReleasePlanError,
|
|
56200
56283
|
ReleasePlanner: () => ReleasePlanner,
|
|
56201
56284
|
ReorderSectionsPlugin: () => ReorderSectionsPlugin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/silk",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The single Silk Suite dev-tooling package — changeset, commitlint, lint, and biome conventions",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"@effected/templates": "^0.4.0",
|
|
80
80
|
"@effected/workspaces": "^0.18.3",
|
|
81
81
|
"@savvy-web/changelog": "0.1.1",
|
|
82
|
-
"@savvy-web/cli": "2.8.
|
|
83
|
-
"@savvy-web/mcp": "2.6.
|
|
84
|
-
"@savvy-web/silk-effects": "7.
|
|
82
|
+
"@savvy-web/cli": "2.8.2",
|
|
83
|
+
"@savvy-web/mcp": "2.6.7",
|
|
84
|
+
"@savvy-web/silk-effects": "7.2.0",
|
|
85
85
|
"effect": "4.0.0-rc.109",
|
|
86
86
|
"semver": "^7.8.5"
|
|
87
87
|
},
|