@savvy-web/silk-effects 7.0.0 → 7.1.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.
- package/README.md +4 -1
- package/changesets/api/linter.js +1 -1
- package/changesets/api/transformer.js +10 -7
- package/changesets/changelog/getReleaseLine.js +114 -20
- package/changesets/changelog/vanilla.js +47 -0
- package/changesets/constants.js +7 -2
- package/changesets/index.js +7 -4
- package/changesets/markdownlint/rules/content-structure.js +2 -2
- package/changesets/markdownlint/rules/dependency-table-format.js +12 -11
- package/changesets/markdownlint/rules/heading-hierarchy.js +2 -2
- package/changesets/markdownlint/rules/required-sections.js +2 -2
- package/changesets/markdownlint/rules/uncategorized-content.js +3 -3
- package/changesets/markdownlint/rules/utils.js +17 -6
- package/changesets/remark/plugins/aggregate-dependency-tables.js +53 -1
- package/changesets/remark/plugins/contributor-footnotes.js +276 -64
- package/changesets/remark/plugins/reorder-sections.js +18 -3
- package/changesets/remark/presets.js +1 -1
- package/changesets/remark/rules/dependency-table-format.js +7 -9
- package/changesets/schemas/dependency-table.js +11 -3
- package/changesets/schemas/options.js +8 -0
- package/changesets/services/config-inspector.js +51 -4
- package/changesets/services/deps-regen.js +106 -10
- package/changesets/services/release-planner.js +29 -8
- package/changesets/utils/dep-diff.js +34 -5
- package/changesets/utils/dependency-section.js +34 -0
- package/changesets/utils/dependency-table.js +14 -9
- package/changesets/utils/markdown-emit.js +86 -0
- package/changesets/utils/remark-pipeline.js +14 -85
- package/changesets/utils/section-parser.js +4 -2
- package/index.d.ts +158 -24
- package/index.js +1 -1
- package/lint/index.js +1 -1
- package/package.json +5 -3
package/index.d.ts
CHANGED
|
@@ -1605,8 +1605,14 @@ type DependencyAction = typeof DependencyActionSchema.Type;
|
|
|
1605
1605
|
* @remarks
|
|
1606
1606
|
* Unlike {@link DependencyTypeSchema} (which uses plural npm field names like
|
|
1607
1607
|
* `"dependencies"`), this schema uses singular forms (`"dependency"`) and adds
|
|
1608
|
-
*
|
|
1609
|
-
* `"
|
|
1608
|
+
* four additional types with no `package.json` dependency-field counterpart:
|
|
1609
|
+
* `"workspace"` for monorepo workspace references, `"config"` for
|
|
1610
|
+
* configuration toolchain updates (e.g., ESLint, TypeScript), `"runtime"` for
|
|
1611
|
+
* language-runtime upgrades (e.g., the Node.js engine itself), and
|
|
1612
|
+
* `"packageManager"` for the package manager's own self-upgrade (pnpm, bun,
|
|
1613
|
+
* npm). `"runtime"` and `"packageManager"` are release-neutral — like
|
|
1614
|
+
* `devDependency` rows they document toolchain movement without implying a
|
|
1615
|
+
* consumer-facing version bump.
|
|
1610
1616
|
*
|
|
1611
1617
|
* @example
|
|
1612
1618
|
* ```typescript
|
|
@@ -1623,13 +1629,14 @@ type DependencyAction = typeof DependencyActionSchema.Type;
|
|
|
1623
1629
|
*
|
|
1624
1630
|
* @public
|
|
1625
1631
|
*/
|
|
1626
|
-
declare const DependencyTableTypeSchema: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config"]>;
|
|
1632
|
+
declare const DependencyTableTypeSchema: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config", "runtime", "packageManager"]>;
|
|
1627
1633
|
/**
|
|
1628
1634
|
* Inferred type for {@link DependencyTableTypeSchema}.
|
|
1629
1635
|
*
|
|
1630
1636
|
* @remarks
|
|
1631
1637
|
* One of `"dependency"`, `"devDependency"`, `"peerDependency"`,
|
|
1632
|
-
* `"optionalDependency"`, `"workspace"`,
|
|
1638
|
+
* `"optionalDependency"`, `"workspace"`, `"config"`, `"runtime"`, or
|
|
1639
|
+
* `"packageManager"`.
|
|
1633
1640
|
*
|
|
1634
1641
|
* @public
|
|
1635
1642
|
*/
|
|
@@ -1714,7 +1721,7 @@ declare const DependencyTableRowSchema: Schema.Struct<{
|
|
|
1714
1721
|
/** Package or toolchain name. */
|
|
1715
1722
|
readonly dependency: Schema.String;
|
|
1716
1723
|
/** Dependency type. */
|
|
1717
|
-
readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config"]>;
|
|
1724
|
+
readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config", "runtime", "packageManager"]>;
|
|
1718
1725
|
/** Change action. */
|
|
1719
1726
|
readonly action: Schema.Literals<readonly ["added", "updated", "removed"]>;
|
|
1720
1727
|
/** Previous version (em dash for added). */
|
|
@@ -1769,7 +1776,7 @@ declare const DependencyTableSchema: Schema.$Array<Schema.Struct<{
|
|
|
1769
1776
|
/** Package or toolchain name. */
|
|
1770
1777
|
readonly dependency: Schema.String;
|
|
1771
1778
|
/** Dependency type. */
|
|
1772
|
-
readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config"]>;
|
|
1779
|
+
readonly type: Schema.Literals<readonly ["dependency", "devDependency", "peerDependency", "optionalDependency", "workspace", "config", "runtime", "packageManager"]>;
|
|
1773
1780
|
/** Change action. */
|
|
1774
1781
|
readonly action: Schema.Literals<readonly ["added", "updated", "removed"]>;
|
|
1775
1782
|
/** Previous version (em dash for added). */
|
|
@@ -2216,6 +2223,13 @@ declare const MaintenanceNotePlugin: Plugin<[MaintenanceNoteOptions], Root>;
|
|
|
2216
2223
|
interface TransformOptions {
|
|
2217
2224
|
/** Insert a Maintenance note into this version block when it ends up empty. */
|
|
2218
2225
|
readonly maintenance?: MaintenanceNoteOptions;
|
|
2226
|
+
/**
|
|
2227
|
+
* Whether to aggregate `Thanks \@user!` attributions into a `### Thanks`
|
|
2228
|
+
* section (default `true`). When `false`, inline attributions and any
|
|
2229
|
+
* existing Thanks section are stripped and no section is emitted.
|
|
2230
|
+
* Mirrors the `thanks` changelog option in `.changeset/config.json`.
|
|
2231
|
+
*/
|
|
2232
|
+
readonly thanks?: boolean;
|
|
2219
2233
|
}
|
|
2220
2234
|
/**
|
|
2221
2235
|
* Static class for post-processing CHANGELOG.md files.
|
|
@@ -2292,8 +2306,9 @@ declare class ChangelogTransformer {
|
|
|
2292
2306
|
* @remarks
|
|
2293
2307
|
* The input is parsed with `remark-parse` and `remark-gfm` (for table
|
|
2294
2308
|
* support), processed through every plugin in {@link SilkChangesetTransformPreset}
|
|
2295
|
-
* in order, and
|
|
2296
|
-
*
|
|
2309
|
+
* in order, and emitted back to markdown through the canonical
|
|
2310
|
+
* `@effected/markdown` stringifier. The operation is synchronous and
|
|
2311
|
+
* idempotent.
|
|
2297
2312
|
*
|
|
2298
2313
|
* @param content - Raw CHANGELOG markdown string (may contain multiple
|
|
2299
2314
|
* version blocks, GFM tables, footnotes, and reference links)
|
|
@@ -2333,6 +2348,33 @@ declare class ChangelogTransformer {
|
|
|
2333
2348
|
*/
|
|
2334
2349
|
declare const changelogFunctions: ChangelogFunctions;
|
|
2335
2350
|
//#endregion
|
|
2351
|
+
//#region src/changesets/changelog/vanilla.d.ts
|
|
2352
|
+
/**
|
|
2353
|
+
* The stock `\@changesets/changelog-git` changelog implementation.
|
|
2354
|
+
*
|
|
2355
|
+
* @remarks
|
|
2356
|
+
* This is the exact upstream default export (identity-equal, pinned by
|
|
2357
|
+
* test), typed against this package's re-exported {@link ChangelogFunctions}
|
|
2358
|
+
* interface. Use it wherever the plain changesets rendering is wanted
|
|
2359
|
+
* instead of the silk section-aware formatter — e.g. in
|
|
2360
|
+
* `.changeset/config.json` via a changelog module that forwards it, or
|
|
2361
|
+
* programmatically from a release pipeline.
|
|
2362
|
+
*
|
|
2363
|
+
* @example
|
|
2364
|
+
* ```typescript
|
|
2365
|
+
* import { Changesets } from "@savvy-web/silk-effects";
|
|
2366
|
+
*
|
|
2367
|
+
* const line = await Changesets.vanillaChangelogFunctions.getReleaseLine(
|
|
2368
|
+
* { id: "x", summary: "Fix a thing", releases: [{ name: "pkg", type: "patch" }] },
|
|
2369
|
+
* "patch",
|
|
2370
|
+
* null,
|
|
2371
|
+
* );
|
|
2372
|
+
* ```
|
|
2373
|
+
*
|
|
2374
|
+
* @public
|
|
2375
|
+
*/
|
|
2376
|
+
declare const vanillaChangelogFunctions: ChangelogFunctions;
|
|
2377
|
+
//#endregion
|
|
2336
2378
|
//#region src/changesets/errors.d.ts
|
|
2337
2379
|
/**
|
|
2338
2380
|
* Tagged errors for \@savvy-web/changesets.
|
|
@@ -2959,6 +3001,9 @@ declare const ClassificationReasonSchema: Schema.Union<readonly [Schema.Literal<
|
|
|
2959
3001
|
}>, Schema.Struct<{
|
|
2960
3002
|
readonly kind: Schema.Literal<"versionFile">;
|
|
2961
3003
|
readonly glob: Schema.String;
|
|
3004
|
+
}>, Schema.Struct<{
|
|
3005
|
+
readonly kind: Schema.Literal<"unmappedHint">;
|
|
3006
|
+
readonly hint: Schema.String;
|
|
2962
3007
|
}>, Schema.Null]>;
|
|
2963
3008
|
/** Reason a path was attributed to a package (or left unmapped). @public */
|
|
2964
3009
|
type ClassificationReason = typeof ClassificationReasonSchema.Type;
|
|
@@ -2972,6 +3017,9 @@ declare const ClassificationSchema: Schema.Struct<{
|
|
|
2972
3017
|
}>, Schema.Struct<{
|
|
2973
3018
|
readonly kind: Schema.Literal<"versionFile">;
|
|
2974
3019
|
readonly glob: Schema.String;
|
|
3020
|
+
}>, Schema.Struct<{
|
|
3021
|
+
readonly kind: Schema.Literal<"unmappedHint">;
|
|
3022
|
+
readonly hint: Schema.String;
|
|
2975
3023
|
}>, Schema.Null]>;
|
|
2976
3024
|
}>;
|
|
2977
3025
|
/** The result of classifying a single path against a resolved config. @public */
|
|
@@ -3011,6 +3059,25 @@ interface ConfigInspectorShape {
|
|
|
3011
3059
|
* @returns An Effect that clears the cache and succeeds with `void`.
|
|
3012
3060
|
*/
|
|
3013
3061
|
readonly refresh: () => Effect.Effect<void>;
|
|
3062
|
+
/**
|
|
3063
|
+
* Drop the cached {@link InspectedConfig} for ONE root — the workspace
|
|
3064
|
+
* containing `directory` — leaving every other root's cache and discovery
|
|
3065
|
+
* memo untouched. The per-root counterpart to
|
|
3066
|
+
* {@link ConfigInspectorShape.refresh} for a long-lived host serving many
|
|
3067
|
+
* roots (the savvy-mcp server): refreshing before a per-call `inspect`
|
|
3068
|
+
* should not discard sibling worktrees' state that did not change.
|
|
3069
|
+
*
|
|
3070
|
+
* @remarks
|
|
3071
|
+
* Best-effort by design: a `directory` in no workspace is ignored here and
|
|
3072
|
+
* fails with a proper `ConfigurationError` at the subsequent
|
|
3073
|
+
* `inspect`/`classify` call instead.
|
|
3074
|
+
*
|
|
3075
|
+
* @param directory - Absolute path to the project root (or any directory
|
|
3076
|
+
* inside it).
|
|
3077
|
+
* @returns An Effect that clears that root's cache and succeeds with
|
|
3078
|
+
* `void`.
|
|
3079
|
+
*/
|
|
3080
|
+
readonly refreshIn: (directory: string) => Effect.Effect<void>;
|
|
3014
3081
|
}
|
|
3015
3082
|
declare const ConfigInspector_base: Context.ServiceClass<ConfigInspector, "ConfigInspector", ConfigInspectorShape>;
|
|
3016
3083
|
/**
|
|
@@ -3071,6 +3138,9 @@ declare const BranchFileEntrySchema: Schema.Struct<{
|
|
|
3071
3138
|
}>, Schema.Struct<{
|
|
3072
3139
|
readonly kind: Schema.Literal<"versionFile">;
|
|
3073
3140
|
readonly glob: Schema.String;
|
|
3141
|
+
}>, Schema.Struct<{
|
|
3142
|
+
readonly kind: Schema.Literal<"unmappedHint">;
|
|
3143
|
+
readonly hint: Schema.String;
|
|
3074
3144
|
}>, Schema.Null]>;
|
|
3075
3145
|
}>;
|
|
3076
3146
|
/** One file entry in the branch analysis output. @public */
|
|
@@ -3089,6 +3159,9 @@ declare const BranchAnalysisSchema: Schema.Struct<{
|
|
|
3089
3159
|
}>, Schema.Struct<{
|
|
3090
3160
|
readonly kind: Schema.Literal<"versionFile">;
|
|
3091
3161
|
readonly glob: Schema.String;
|
|
3162
|
+
}>, Schema.Struct<{
|
|
3163
|
+
readonly kind: Schema.Literal<"unmappedHint">;
|
|
3164
|
+
readonly hint: Schema.String;
|
|
3092
3165
|
}>, Schema.Null]>;
|
|
3093
3166
|
}>>;
|
|
3094
3167
|
readonly packagesAffected: Schema.$Array<Schema.String>;
|
|
@@ -3244,6 +3317,14 @@ declare const ChangesetOptionsSchema: Schema.Struct<{
|
|
|
3244
3317
|
readonly issueLinks: Schema.optional<Schema.Boolean>;
|
|
3245
3318
|
/** Custom issue reference prefixes (e.g., `["#", "GH-"]`). */
|
|
3246
3319
|
readonly issuePrefixes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
3320
|
+
/**
|
|
3321
|
+
* Whether to credit contributors with `Thanks \@user!` attributions
|
|
3322
|
+
* (aggregated into a `### Thanks` section by the transform pipeline).
|
|
3323
|
+
* Defaults to `true`; set `false` to strip attribution entirely —
|
|
3324
|
+
* no inline thanks and no Thanks section. PR references are kept
|
|
3325
|
+
* either way.
|
|
3326
|
+
*/
|
|
3327
|
+
readonly thanks: Schema.optional<Schema.Boolean>;
|
|
3247
3328
|
/**
|
|
3248
3329
|
* Per-package release surfaces. Each entry declares `additionalScopes`
|
|
3249
3330
|
* (globs outside the workspace dir that belong to the package) and
|
|
@@ -3656,10 +3737,39 @@ declare function isPureDependencyChangeset(content: string): {
|
|
|
3656
3737
|
isPure: boolean;
|
|
3657
3738
|
package: string | null;
|
|
3658
3739
|
};
|
|
3740
|
+
/**
|
|
3741
|
+
* Every package name a changeset's YAML frontmatter releases, parsed with the
|
|
3742
|
+
* same lenient `"@pkg": bump` line grammar {@link isPureDependencyChangeset}
|
|
3743
|
+
* uses. A file with no frontmatter, or one whose lines all fail the grammar,
|
|
3744
|
+
* yields an empty list — this feeds an informational surface, so lenient
|
|
3745
|
+
* degradation beats a typed failure.
|
|
3746
|
+
*
|
|
3747
|
+
* @param content - Raw `.changeset/*.md` file contents.
|
|
3748
|
+
*
|
|
3749
|
+
* @public
|
|
3750
|
+
*/
|
|
3751
|
+
declare function parseChangesetPackages(content: string): ReadonlyArray<string>;
|
|
3752
|
+
/**
|
|
3753
|
+
* A prose-only changeset that coexists with the run: it releases at least one
|
|
3754
|
+
* package in scope for this run but was left untouched because it carries no
|
|
3755
|
+
* `## Dependencies` section. Purely informational (#279) — surfaced so the
|
|
3756
|
+
* regen/detect result accounts for every changeset touching an in-scope
|
|
3757
|
+
* package, instead of leaving prose entries invisible and forcing a manual
|
|
3758
|
+
* `.changeset/` cross-check.
|
|
3759
|
+
*
|
|
3760
|
+
* @public
|
|
3761
|
+
*/
|
|
3762
|
+
interface CoexistingChangeset {
|
|
3763
|
+
/** Absolute path of the untouched prose changeset. */
|
|
3764
|
+
readonly file: string;
|
|
3765
|
+
/** The in-scope packages its frontmatter releases (out-of-scope names are dropped). */
|
|
3766
|
+
readonly packages: ReadonlyArray<string>;
|
|
3767
|
+
}
|
|
3659
3768
|
/**
|
|
3660
3769
|
* A complete, side-effect-free regen plan: which stale pure-dependency
|
|
3661
3770
|
* changesets to delete, which fresh changesets to write (carrying the
|
|
3662
|
-
* already-resolved diff),
|
|
3771
|
+
* already-resolved diff), which mixed changesets were left untouched, and
|
|
3772
|
+
* which coexisting prose changesets reference in-scope packages.
|
|
3663
3773
|
*
|
|
3664
3774
|
* @public
|
|
3665
3775
|
*/
|
|
@@ -3674,10 +3784,13 @@ interface RegenPlan {
|
|
|
3674
3784
|
readonly diff: WorkspaceDependencyDiff;
|
|
3675
3785
|
}>;
|
|
3676
3786
|
readonly skippedMixed: ReadonlyArray<string>;
|
|
3787
|
+
/** Informational: untouched prose changesets releasing in-scope packages (#279). */
|
|
3788
|
+
readonly coexisting: ReadonlyArray<CoexistingChangeset>;
|
|
3677
3789
|
}
|
|
3678
3790
|
/**
|
|
3679
3791
|
* The result of applying a {@link RegenPlan}: the files actually deleted
|
|
3680
|
-
* and written, plus the mixed changesets that were skipped
|
|
3792
|
+
* and written, plus the mixed changesets that were skipped and the
|
|
3793
|
+
* coexisting prose changesets carried through from the plan.
|
|
3681
3794
|
*
|
|
3682
3795
|
* @public
|
|
3683
3796
|
*/
|
|
@@ -3685,6 +3798,8 @@ interface RegenResult {
|
|
|
3685
3798
|
readonly deleted: ReadonlyArray<string>;
|
|
3686
3799
|
readonly written: ReadonlyArray<string>;
|
|
3687
3800
|
readonly skippedMixed: ReadonlyArray<string>;
|
|
3801
|
+
/** Informational: untouched prose changesets releasing in-scope packages (#279). */
|
|
3802
|
+
readonly coexisting: ReadonlyArray<CoexistingChangeset>;
|
|
3688
3803
|
}
|
|
3689
3804
|
/**
|
|
3690
3805
|
* Options for {@link DepsRegenShape.plan}.
|
|
@@ -3808,10 +3923,16 @@ declare class DepsRegen extends DepsRegen_base {
|
|
|
3808
3923
|
* lazily); pass an explicit `cwd` when planning against a different root
|
|
3809
3924
|
* (fixtures, multi-repo hosts).
|
|
3810
3925
|
*
|
|
3811
|
-
* `Workspaces.
|
|
3812
|
-
*
|
|
3813
|
-
*
|
|
3814
|
-
*
|
|
3926
|
+
* The graph is `Workspaces.layerWithGitAndConfigDependenciesSubprocess` —
|
|
3927
|
+
* `layerWithGit`'s service set with config-dependency hook replay in catalog
|
|
3928
|
+
* assembly, so hook-injected catalogs resolve to ranges (#539). The subprocess
|
|
3929
|
+
* replay is chosen over the in-process one because silk's consumers (the
|
|
3930
|
+
* `savvy` CLI, the `savvy-mcp` server) are bundled, and a bundler compiles the
|
|
3931
|
+
* in-process replay's computed dynamic `import()` into a context module that
|
|
3932
|
+
* cannot resolve at runtime. The kit mints a fresh layer reference per call,
|
|
3933
|
+
* so the graph is bound ONCE per builder call and shared across every internal
|
|
3934
|
+
* branch — layer memoization by reference constructs each kit service exactly
|
|
3935
|
+
* once.
|
|
3815
3936
|
*
|
|
3816
3937
|
* @public
|
|
3817
3938
|
*/
|
|
@@ -4648,9 +4769,9 @@ declare const LegacyVersionFilesSchema: Schema.$Array<Schema.Struct<{
|
|
|
4648
4769
|
* Serialize dependency table rows to a markdown table string.
|
|
4649
4770
|
*
|
|
4650
4771
|
* @remarks
|
|
4651
|
-
* Combines {@link serializeDependencyTable} with
|
|
4652
|
-
* to produce a ready-to-use GFM markdown
|
|
4653
|
-
* of leading/trailing whitespace.
|
|
4772
|
+
* Combines {@link serializeDependencyTable} with the canonical
|
|
4773
|
+
* `@effected/markdown` emit boundary to produce a ready-to-use GFM markdown
|
|
4774
|
+
* table string. The result is trimmed of leading/trailing whitespace.
|
|
4654
4775
|
*
|
|
4655
4776
|
* @param rows - Array of `DependencyTableRow` objects
|
|
4656
4777
|
* @returns Markdown table string (GFM format)
|
|
@@ -5407,7 +5528,7 @@ type Rule$1 = Rule$2;
|
|
|
5407
5528
|
* }
|
|
5408
5529
|
* ```
|
|
5409
5530
|
*
|
|
5410
|
-
* @see {@link https://github.com/savvy-web/
|
|
5531
|
+
* @see {@link https://github.com/savvy-web/systems/blob/main/packages/silk-effects/docs/rules/CSH003.md | CSH003 rule documentation}
|
|
5411
5532
|
* @see `src/remark/rules/content-structure.ts` for the corresponding remark-lint rule
|
|
5412
5533
|
*
|
|
5413
5534
|
* @public
|
|
@@ -5447,7 +5568,7 @@ declare const DependencyTableFormatRule$1: Rule$1;
|
|
|
5447
5568
|
* }
|
|
5448
5569
|
* ```
|
|
5449
5570
|
*
|
|
5450
|
-
* @see {@link https://github.com/savvy-web/
|
|
5571
|
+
* @see {@link https://github.com/savvy-web/systems/blob/main/packages/silk-effects/docs/rules/CSH001.md | CSH001 rule documentation}
|
|
5451
5572
|
* @see `src/remark/rules/heading-hierarchy.ts` for the corresponding remark-lint rule
|
|
5452
5573
|
*
|
|
5453
5574
|
* @public
|
|
@@ -5479,7 +5600,7 @@ declare const HeadingHierarchyRule$1: Rule$1;
|
|
|
5479
5600
|
* }
|
|
5480
5601
|
* ```
|
|
5481
5602
|
*
|
|
5482
|
-
* @see {@link https://github.com/savvy-web/
|
|
5603
|
+
* @see {@link https://github.com/savvy-web/systems/blob/main/packages/silk-effects/docs/rules/CSH002.md | CSH002 rule documentation}
|
|
5483
5604
|
* @see `src/remark/rules/required-sections.ts` for the corresponding remark-lint rule
|
|
5484
5605
|
*
|
|
5485
5606
|
* @public
|
|
@@ -5512,7 +5633,7 @@ declare const RequiredSectionsRule$1: Rule$1;
|
|
|
5512
5633
|
* }
|
|
5513
5634
|
* ```
|
|
5514
5635
|
*
|
|
5515
|
-
* @see {@link https://github.com/savvy-web/
|
|
5636
|
+
* @see {@link https://github.com/savvy-web/systems/blob/main/packages/silk-effects/docs/rules/CSH004.md | CSH004 rule documentation}
|
|
5516
5637
|
* @see `src/remark/rules/uncategorized-content.ts` for the corresponding remark-lint rule
|
|
5517
5638
|
*
|
|
5518
5639
|
* @public
|
|
@@ -5538,7 +5659,20 @@ declare const SilkChangesetsRules: Rule$1[];
|
|
|
5538
5659
|
declare const AggregateDependencyTablesPlugin: Plugin<[], Root>;
|
|
5539
5660
|
//#endregion
|
|
5540
5661
|
//#region src/changesets/remark/plugins/contributor-footnotes.d.ts
|
|
5541
|
-
|
|
5662
|
+
/**
|
|
5663
|
+
* Options for {@link ContributorFootnotesPlugin}.
|
|
5664
|
+
*
|
|
5665
|
+
* @public
|
|
5666
|
+
*/
|
|
5667
|
+
interface ContributorFootnotesOptions {
|
|
5668
|
+
/**
|
|
5669
|
+
* Whether to emit the aggregated `### Thanks` section. Defaults to
|
|
5670
|
+
* `true`. When `false`, inline attributions and any existing Thanks
|
|
5671
|
+
* section are stripped and nothing is emitted.
|
|
5672
|
+
*/
|
|
5673
|
+
readonly thanks?: boolean;
|
|
5674
|
+
}
|
|
5675
|
+
declare const ContributorFootnotesPlugin: Plugin<[ContributorFootnotesOptions?], Root>;
|
|
5542
5676
|
//#endregion
|
|
5543
5677
|
//#region src/changesets/remark/plugins/deduplicate-items.d.ts
|
|
5544
5678
|
declare const DeduplicateItemsPlugin: Plugin<[], Root>;
|
|
@@ -5643,7 +5777,7 @@ declare const SilkChangesetPreset: readonly [import("unified-lint-rule").Plugin<
|
|
|
5643
5777
|
*
|
|
5644
5778
|
* @public
|
|
5645
5779
|
*/
|
|
5646
|
-
declare const SilkChangesetTransformPreset: readonly [import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>];
|
|
5780
|
+
declare const SilkChangesetTransformPreset: readonly [import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>, import("unified").Plugin<[ContributorFootnotesOptions?], Root>, import("unified").Plugin<[], Root>, import("unified").Plugin<[], Root>];
|
|
5647
5781
|
//#endregion
|
|
5648
5782
|
//#region src/changesets/remark/rules/content-structure.d.ts
|
|
5649
5783
|
declare const ContentStructureRule: import("unified-lint-rule").Plugin<Root, unknown>;
|
|
@@ -5660,7 +5794,7 @@ declare const RequiredSectionsRule: import("unified-lint-rule").Plugin<Root, unk
|
|
|
5660
5794
|
//#region src/changesets/remark/rules/uncategorized-content.d.ts
|
|
5661
5795
|
declare const UncategorizedContentRule: import("unified-lint-rule").Plugin<Root, unknown>;
|
|
5662
5796
|
declare namespace index_d_exports {
|
|
5663
|
-
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, CommitHashSchema, ConfigInspector, ConfigInspectorShape, ConfigurationError, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, 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, 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, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, TransformOptions, 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, serializeDependencyTableToMarkdown };
|
|
5797
|
+
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, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyAction, DependencyActionSchema, DependencyTable, 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, 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, ResolvedPackageScope, ResolvedPackageScopeSchema, ResolvedVersionFile, ResolvedVersionFileSchema, SectionCategory, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, TransformOptions, 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 };
|
|
5664
5798
|
}
|
|
5665
5799
|
//#endregion
|
|
5666
5800
|
//#region src/commitlint/config/schema.d.ts
|
package/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SavvyBaseSection, SavvyHooksSection, savvyBasePreamble, savvyHooksHygiene, savvyToolSection } from "./schemas/SavvySections.js";
|
|
1
2
|
import { ChangesetConfigError } from "./errors/ChangesetConfigError.js";
|
|
2
3
|
import { ChangesetConfigReader } from "./services/ChangesetConfigReader.js";
|
|
3
4
|
import { PublishTargetBindingError } from "./errors/PublishTargetBindingError.js";
|
|
@@ -8,7 +9,6 @@ import { commitlint_exports } from "./commitlint/index.js";
|
|
|
8
9
|
import { BiomeSyncError } from "./errors/BiomeSyncError.js";
|
|
9
10
|
import { ConfigNotFoundError } from "./errors/ConfigNotFoundError.js";
|
|
10
11
|
import { WorkspaceAnalysisError } from "./errors/WorkspaceAnalysisError.js";
|
|
11
|
-
import { SavvyBaseSection, SavvyHooksSection, savvyBasePreamble, savvyHooksHygiene, savvyToolSection } from "./schemas/SavvySections.js";
|
|
12
12
|
import { lint_exports } from "./lint/index.js";
|
|
13
13
|
import { pr_body_exports } from "./pr-body/index.js";
|
|
14
14
|
import { repos_exports } from "./repos/index.js";
|
package/lint/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { DEFAULT_CONFIG_PATH, HUSKY_HOOK_PATH, LegacySavvyLintHygieneDef, MARKDOWNLINT_CONFIG_PATH, POST_CHECKOUT_HOOK_PATH, POST_COMMIT_HOOK_PATH, POST_MERGE_HOOK_PATH, SavvyLintSectionDef, generateManagedContent, savvyLintBlock } from "./cli/sections.js";
|
|
2
3
|
import { Handler } from "./Handler.js";
|
|
3
4
|
import { Command } from "./utils/Command.js";
|
|
4
5
|
import { Filter } from "./utils/Filter.js";
|
|
@@ -12,7 +13,6 @@ import { TypeScript } from "./handlers/TypeScript.js";
|
|
|
12
13
|
import { Yaml } from "./handlers/Yaml.js";
|
|
13
14
|
import { createConfig } from "./config/createConfig.js";
|
|
14
15
|
import { Preset } from "./config/Preset.js";
|
|
15
|
-
import { DEFAULT_CONFIG_PATH, HUSKY_HOOK_PATH, LegacySavvyLintHygieneDef, MARKDOWNLINT_CONFIG_PATH, POST_CHECKOUT_HOOK_PATH, POST_COMMIT_HOOK_PATH, POST_MERGE_HOOK_PATH, SavvyLintSectionDef, generateManagedContent, savvyLintBlock } from "./cli/sections.js";
|
|
16
16
|
import { MARKDOWNLINT_CONFIG, MARKDOWNLINT_SCHEMA, MARKDOWNLINT_TEMPLATE } from "./cli/templates/markdownlint.gen.js";
|
|
17
17
|
|
|
18
18
|
//#region src/lint/index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/silk-effects",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Effect library for Silk Suite conventions",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk-effects",
|
|
@@ -30,16 +30,18 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@changesets/apply-release-plan": "^8.0.0",
|
|
33
|
+
"@changesets/changelog-git": "^1.0.0",
|
|
33
34
|
"@changesets/config": "^4.0.0",
|
|
34
35
|
"@changesets/get-github-info": "^1.0.0",
|
|
35
36
|
"@changesets/get-release-plan": "^5.0.0",
|
|
36
37
|
"@effected/github-references": "^0.1.0",
|
|
37
38
|
"@effected/glob": "^0.4.0",
|
|
38
39
|
"@effected/jsonc": "^0.7.0",
|
|
40
|
+
"@effected/markdown": "^0.6.3",
|
|
39
41
|
"@effected/package-json": "^0.10.2",
|
|
40
42
|
"@effected/templates": "^0.4.0",
|
|
41
43
|
"@effected/walker": "^0.5.0",
|
|
42
|
-
"@effected/yaml": "^0.
|
|
44
|
+
"@effected/yaml": "^0.11.0",
|
|
43
45
|
"@manypkg/get-packages": "^3.1.0",
|
|
44
46
|
"mdast-util-heading-range": "^4.0.0",
|
|
45
47
|
"mdast-util-to-string": "^4.0.0",
|
|
@@ -54,7 +56,7 @@
|
|
|
54
56
|
"peerDependencies": {
|
|
55
57
|
"@effected/commands": "^0.5.0",
|
|
56
58
|
"@effected/git": "^0.9.0",
|
|
57
|
-
"@effected/workspaces": "^0.
|
|
59
|
+
"@effected/workspaces": "^0.18.0",
|
|
58
60
|
"effect": "4.0.0-rc.109"
|
|
59
61
|
}
|
|
60
62
|
}
|