@savvy-web/silk-effects 9.5.4 → 9.6.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/_virtual/_rolldown/runtime.js +1 -2
- package/changesets/api/categories.js +1 -2
- package/changesets/api/changelog.js +1 -2
- package/changesets/api/dependency-table.js +1 -2
- package/changesets/api/linter.js +1 -2
- package/changesets/api/transformer.js +1 -2
- package/changesets/categories/index.js +1 -2
- package/changesets/categories/types.js +1 -2
- package/changesets/changelog/formatting.js +1 -2
- package/changesets/changelog/getDependencyReleaseLine.js +1 -2
- package/changesets/changelog/getReleaseLine.js +20 -57
- package/changesets/changelog/index.js +1 -2
- package/changesets/changelog/vanilla.js +1 -2
- package/changesets/constants.js +1 -2
- package/changesets/errors.js +1 -2
- package/changesets/index.js +1 -2
- package/changesets/markdownlint/index.js +1 -2
- package/changesets/markdownlint/rules/content-structure.js +1 -2
- package/changesets/markdownlint/rules/dependency-table-format.js +1 -2
- package/changesets/markdownlint/rules/heading-hierarchy.js +1 -2
- package/changesets/markdownlint/rules/required-sections.js +1 -2
- package/changesets/markdownlint/rules/uncategorized-content.js +1 -2
- package/changesets/markdownlint/rules/utils.js +1 -2
- package/changesets/remark/plugins/aggregate-dependency-tables.js +1 -2
- package/changesets/remark/plugins/contributor-footnotes.js +1 -2
- package/changesets/remark/plugins/deduplicate-items.js +1 -2
- package/changesets/remark/plugins/issue-link-refs.js +1 -2
- package/changesets/remark/plugins/maintenance-note.js +1 -2
- package/changesets/remark/plugins/merge-sections.js +1 -2
- package/changesets/remark/plugins/normalize-format.js +1 -2
- package/changesets/remark/plugins/reorder-sections.js +1 -2
- package/changesets/remark/presets.js +1 -2
- package/changesets/remark/rules/content-structure.js +1 -2
- package/changesets/remark/rules/dependency-table-format.js +1 -2
- package/changesets/remark/rules/heading-hierarchy.js +1 -2
- package/changesets/remark/rules/required-sections.js +1 -2
- package/changesets/remark/rules/uncategorized-content.js +1 -2
- package/changesets/schemas/changeset.js +1 -2
- package/changesets/schemas/dependency-table.js +1 -2
- package/changesets/schemas/deps-regen.js +1 -2
- package/changesets/schemas/git.js +1 -2
- package/changesets/schemas/github.js +1 -2
- package/changesets/schemas/options.js +1 -2
- package/changesets/schemas/package-scope.js +1 -2
- package/changesets/schemas/primitives.js +1 -2
- package/changesets/schemas/release-plan.js +1 -2
- package/changesets/schemas/version-files.js +1 -2
- package/changesets/services/branch-analyzer.js +1 -2
- package/changesets/services/changelog.js +1 -2
- package/changesets/services/config-inspector.js +1 -2
- package/changesets/services/deps-regen.js +1 -2
- package/changesets/services/github.js +1 -2
- package/changesets/services/maintenance-reason.js +1 -2
- package/changesets/services/release-planner.js +1 -2
- package/changesets/utils/commit-parser.js +1 -2
- package/changesets/utils/dep-diff.js +1 -2
- package/changesets/utils/dependency-section.js +1 -2
- package/changesets/utils/dependency-table.js +1 -2
- package/changesets/utils/git.js +1 -2
- package/changesets/utils/issue-refs.js +1 -2
- package/changesets/utils/jsonpath.js +1 -2
- package/changesets/utils/logger.js +1 -2
- package/changesets/utils/markdown-emit.js +42 -19
- package/changesets/utils/markdown-link.js +1 -2
- package/changesets/utils/publishability.js +1 -2
- package/changesets/utils/remark-pipeline.js +2 -50
- package/changesets/utils/section-parser.js +33 -64
- package/changesets/utils/strip-frontmatter.js +1 -2
- package/changesets/utils/version-blocks.js +1 -2
- package/changesets/utils/version-files.js +1 -2
- package/changesets/vendor/github-info.js +1 -2
- package/commitlint/config/factory.js +1 -2
- package/commitlint/config/plugins.js +1 -2
- package/commitlint/config/rules.js +1 -2
- package/commitlint/config/schema.js +1 -2
- package/commitlint/detection/dco.js +1 -2
- package/commitlint/detection/scopes.js +1 -2
- package/commitlint/formatter/format.js +1 -2
- package/commitlint/formatter/messages.js +1 -2
- package/commitlint/hook/diagnostics/branch.js +1 -2
- package/commitlint/hook/diagnostics/cache.js +1 -2
- package/commitlint/hook/diagnostics/commitlint-config.js +1 -2
- package/commitlint/hook/diagnostics/open-issues.js +1 -2
- package/commitlint/hook/diagnostics/package-manager.js +1 -2
- package/commitlint/hook/diagnostics/signing.js +1 -2
- package/commitlint/hook/envelope.js +1 -2
- package/commitlint/hook/output.js +1 -2
- package/commitlint/hook/parse-bash-command.js +1 -2
- package/commitlint/hook/rules/closes-trailer.js +1 -2
- package/commitlint/hook/rules/forbidden-content.js +1 -2
- package/commitlint/hook/rules/plan-leakage.js +1 -2
- package/commitlint/hook/rules/signing-flag-conflict.js +1 -2
- package/commitlint/hook/rules/soft-wrap.js +1 -2
- package/commitlint/hook/rules/types.js +1 -2
- package/commitlint/hook/rules/verbosity.js +1 -2
- package/commitlint/hook/silence-logger.js +1 -2
- package/commitlint/index.js +1 -2
- package/commitlint/prompt/config.js +1 -2
- package/commitlint/prompt/emojis.js +1 -2
- package/commitlint/prompt/prompter.js +1 -2
- package/commitlint/static.js +1 -2
- package/index.d.ts +87 -251
- package/index.js +2 -2
- package/lint/Handler.js +1 -2
- package/lint/cli/sections.js +1 -2
- package/lint/cli/templates/markdownlint.gen.js +1 -2
- package/lint/config/Preset.js +1 -2
- package/lint/config/createConfig.js +1 -2
- package/lint/handlers/Biome.js +1 -2
- package/lint/handlers/Markdown.js +1 -2
- package/lint/handlers/PackageJson.js +1 -2
- package/lint/handlers/PnpmWorkspace.js +1 -2
- package/lint/handlers/ShellScripts.js +1 -2
- package/lint/handlers/TextFiles.js +1 -2
- package/lint/handlers/TypeScript.js +1 -2
- package/lint/handlers/Yaml.js +1 -2
- package/lint/index.js +1 -2
- package/lint/utils/Command.js +1 -2
- package/lint/utils/Filter.js +1 -2
- package/lint/utils/Workspace.js +1 -2
- package/package.json +14 -15
- package/repos/constants.js +1 -2
- package/repos/errors.js +1 -2
- package/repos/index.js +1 -2
- package/repos/schemas/drift.js +1 -2
- package/repos/schemas/manifest.js +1 -2
- package/repos/schemas/reports.js +1 -2
- package/repos/services/config-store.js +1 -2
- package/repos/services/drift.js +1 -2
- package/repos/services/lockdown.js +1 -2
- package/repos/services/manager.js +1 -2
- package/services/BiomeSchemaSync.js +1 -2
- package/services/ChangesetConfig.js +1 -2
- package/services/ChangesetConfigReader.js +1 -2
- package/services/ConfigDiscovery.js +1 -2
- package/services/SilkPublishability.js +147 -6
- package/services/SilkWorkspaceAnalyzer.js +1 -2
- package/turbo/digest.js +1 -2
- package/turbo/errors.js +1 -2
- package/turbo/index.js +1 -2
- package/turbo/schemas/DryRun.js +1 -2
- package/turbo/schemas/results.js +1 -2
- package/turbo/services/TurboInspector.js +1 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __exportAll = (all, no_symbols) => {
|
|
4
4
|
let target = {};
|
|
@@ -14,5 +14,4 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
return target;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
//#endregion
|
|
18
17
|
export { __exportAll };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BREAKING_CHANGES, BUG_FIXES, BUILD_SYSTEM, CATEGORIES, CI, DEPENDENCIES, DOCUMENTATION, FEATURES, MAINTENANCE, OTHER, PERFORMANCE, REFACTORING, REVERTS, TESTS, allHeadings, fromHeading, isValidHeading, resolveCommitType } from "../categories/index.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/changesets/api/categories.ts
|
|
4
4
|
/**
|
|
5
5
|
* Class-based API wrapper for section categories.
|
|
6
6
|
*
|
|
@@ -243,5 +243,4 @@ var Categories = class {
|
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
|
|
246
|
-
//#endregion
|
|
247
246
|
export { Categories };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeChangelogFunctions } from "../changelog/index.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/changesets/api/changelog.ts
|
|
4
4
|
/**
|
|
5
5
|
* Class-based API wrapper for changelog formatting.
|
|
6
6
|
*
|
|
@@ -134,5 +134,4 @@ var Changelog = class {
|
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
//#endregion
|
|
138
137
|
export { Changelog };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { collapseDependencyRows, parseDependencyTable, serializeDependencyTable, serializeDependencyTableToMarkdown, sortDependencyRows } from "../utils/dependency-table.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/changesets/api/dependency-table.ts
|
|
4
4
|
/**
|
|
5
5
|
* Static class for dependency table manipulation.
|
|
6
6
|
*
|
|
@@ -159,5 +159,4 @@ var DependencyTable = class {
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
-
//#endregion
|
|
163
162
|
export { DependencyTable };
|
package/changesets/api/linter.js
CHANGED
|
@@ -11,7 +11,7 @@ import { readFileSync, readdirSync } from "node:fs";
|
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
import remarkStringify from "remark-stringify";
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// src/changesets/api/linter.ts
|
|
15
15
|
/**
|
|
16
16
|
* Class-based API wrapper for changeset linting.
|
|
17
17
|
*
|
|
@@ -166,5 +166,4 @@ var ChangesetLinter = class ChangesetLinter {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
//#endregion
|
|
170
169
|
export { ChangesetLinter };
|
|
@@ -7,7 +7,7 @@ import remarkParse from "remark-parse";
|
|
|
7
7
|
import { unified } from "unified";
|
|
8
8
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/changesets/api/transformer.ts
|
|
11
11
|
/**
|
|
12
12
|
* Class-based API wrapper for changelog transformation.
|
|
13
13
|
*
|
|
@@ -134,5 +134,4 @@ var ChangelogTransformer = class ChangelogTransformer {
|
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
//#endregion
|
|
138
137
|
export { ChangelogTransformer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/changesets/categories/index.ts
|
|
2
2
|
/**
|
|
3
3
|
* Breaking changes -- backward-incompatible changes.
|
|
4
4
|
*
|
|
@@ -295,5 +295,4 @@ function allHeadings() {
|
|
|
295
295
|
return CATEGORIES.map((cat) => cat.heading);
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
//#endregion
|
|
299
298
|
export { BREAKING_CHANGES, BUG_FIXES, BUILD_SYSTEM, CATEGORIES, CI, DEPENDENCIES, DOCUMENTATION, FEATURES, MAINTENANCE, OTHER, PERFORMANCE, REFACTORING, REVERTS, TESTS, allHeadings, fromHeading, isValidHeading, resolveCommitType };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/changesets/categories/types.ts
|
|
4
4
|
/**
|
|
5
5
|
* Section category schema and type definitions.
|
|
6
6
|
*
|
|
@@ -61,5 +61,4 @@ const SectionCategorySchema = Schema.Struct({
|
|
|
61
61
|
description: Schema.String
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { SectionCategorySchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { extractUrlFromMarkdown } from "../utils/markdown-link.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/changesets/changelog/formatting.ts
|
|
4
4
|
/**
|
|
5
5
|
* Issue reference categories and their display labels.
|
|
6
6
|
*
|
|
@@ -111,5 +111,4 @@ function formatPRAndUserAttribution(pr, user, links) {
|
|
|
111
111
|
return prReference;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
//#endregion
|
|
115
114
|
export { formatChangelogEntry, formatPRAndUserAttribution };
|
|
@@ -2,7 +2,7 @@ import { GitHubService } from "../services/github.js";
|
|
|
2
2
|
import { serializeDependencyTableToMarkdown } from "../utils/dependency-table.js";
|
|
3
3
|
import { Effect } from "effect";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/changesets/changelog/getDependencyReleaseLine.ts
|
|
6
6
|
/**
|
|
7
7
|
* Core formatter: getDependencyReleaseLine.
|
|
8
8
|
*
|
|
@@ -133,5 +133,4 @@ function getDependencyReleaseLine(_changesets, dependenciesUpdated, _options) {
|
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
//#endregion
|
|
137
136
|
export { getDependencyReleaseLine };
|
|
@@ -1,56 +1,23 @@
|
|
|
1
1
|
import { resolveCommitType } from "../categories/index.js";
|
|
2
2
|
import { GitHubService } from "../services/github.js";
|
|
3
3
|
import { logWarning } from "../utils/logger.js";
|
|
4
|
-
import {
|
|
4
|
+
import { emitKitMarkdown, parseKitMarkdown } from "../utils/markdown-emit.js";
|
|
5
5
|
import { GitHubInfoSchema } from "../schemas/github.js";
|
|
6
6
|
import { parseCommitMessage } from "../utils/commit-parser.js";
|
|
7
7
|
import { parseIssueReferences } from "../utils/issue-refs.js";
|
|
8
|
-
import {
|
|
8
|
+
import { sectionsOf } from "../utils/section-parser.js";
|
|
9
9
|
import { formatChangelogEntry, formatPRAndUserAttribution } from "./formatting.js";
|
|
10
|
-
import { Effect, Schema } from "effect";
|
|
10
|
+
import { Effect, Result, Schema } from "effect";
|
|
11
|
+
import { Markdown, MarkdownTransform, Paragraph, Text } from "@effected/markdown";
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
// src/changesets/changelog/getReleaseLine.ts
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* Formats a single changeset into a changelog entry. This is the primary
|
|
17
|
-
* formatting function in the changelog pipeline, responsible for transforming
|
|
18
|
-
* a `NewChangesetWithCommit` into structured markdown output.
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* The formatter supports two distinct input modes:
|
|
22
|
-
*
|
|
23
|
-
* 1. **Section-aware changesets** — When the changeset summary contains h2
|
|
24
|
-
* headings (e.g., `## Features`, `## Bug Fixes`), each section is rendered
|
|
25
|
-
* as an h3 heading with list items beneath it. This mode
|
|
26
|
-
* produces multi-line output suitable for rich changelogs.
|
|
27
|
-
*
|
|
28
|
-
* 2. **Flat-text changesets** — When the summary is plain text without section
|
|
29
|
-
* headings, the formatter falls back to backward-compatible single-line
|
|
30
|
-
* output. The conventional commit type is resolved via `resolveCommitType`
|
|
31
|
-
* to determine the changelog category.
|
|
32
|
-
*
|
|
33
|
-
* In both modes, the formatter:
|
|
34
|
-
* - Fetches GitHub metadata (PR number, author) via {@link GitHubService}
|
|
35
|
-
* - Extracts and renders issue references (Closes, Fixes, Refs)
|
|
36
|
-
* - Appends PR and user attribution when available
|
|
37
|
-
*
|
|
38
|
-
* @see {@link formatChangelogEntry} for the low-level entry formatting
|
|
39
|
-
* @see {@link formatPRAndUserAttribution} for attribution suffix generation
|
|
40
|
-
* @see {@link getDependencyReleaseLine} for the companion dependency formatter
|
|
41
|
-
*
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
/**
|
|
45
|
-
* Stringify a single MDAST block node back to markdown, trimmed.
|
|
15
|
+
* Stringify a single block node back to markdown, trimmed.
|
|
46
16
|
*
|
|
47
17
|
* @internal
|
|
48
18
|
*/
|
|
49
19
|
function stringifyNode(node) {
|
|
50
|
-
return
|
|
51
|
-
type: "root",
|
|
52
|
-
children: [node]
|
|
53
|
-
}).trimEnd();
|
|
20
|
+
return emitKitMarkdown(node).trimEnd();
|
|
54
21
|
}
|
|
55
22
|
/**
|
|
56
23
|
* Render one top-level section content node to markdown.
|
|
@@ -77,13 +44,7 @@ function renderSectionNode(node) {
|
|
|
77
44
|
const [first, ...rest] = stringifyNode(node).split("\n");
|
|
78
45
|
return [`- ${first}`, ...rest.map((line) => line.length > 0 ? ` ${line}` : line)].join("\n");
|
|
79
46
|
}
|
|
80
|
-
if (node.type === "heading") {
|
|
81
|
-
const heading = node;
|
|
82
|
-
return stringifyNode({
|
|
83
|
-
...heading,
|
|
84
|
-
depth: Math.min(Math.max(heading.depth + 1, 4), 6)
|
|
85
|
-
});
|
|
86
|
-
}
|
|
47
|
+
if (node.type === "heading") return stringifyNode(MarkdownTransform.shiftHeadings(node, 1, { min: 4 }));
|
|
87
48
|
return stringifyNode(node);
|
|
88
49
|
}
|
|
89
50
|
/**
|
|
@@ -96,12 +57,9 @@ function renderSectionNode(node) {
|
|
|
96
57
|
function attributionPhrasing(attribution) {
|
|
97
58
|
const trimmed = attribution.trim();
|
|
98
59
|
if (trimmed === "") return void 0;
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
101
|
-
return [{
|
|
102
|
-
type: "text",
|
|
103
|
-
value: " "
|
|
104
|
-
}, ...first.children];
|
|
60
|
+
const parsed = Markdown.parsePhrasingResult(trimmed);
|
|
61
|
+
if (Result.isFailure(parsed) || parsed.success.length === 0) return void 0;
|
|
62
|
+
return [new Text({ value: " " }), ...parsed.success];
|
|
105
63
|
}
|
|
106
64
|
/**
|
|
107
65
|
* Find the paragraph of a list's FINAL RENDERED bullet: the last paragraph
|
|
@@ -178,7 +136,8 @@ function getReleaseLine(changeset, versionType, options) {
|
|
|
178
136
|
commit: changeset.commit,
|
|
179
137
|
repo: options.repo
|
|
180
138
|
}).pipe(Effect.flatMap((raw) => Schema.decodeUnknownEffect(GitHubInfoSchema)(raw).pipe(Effect.map(() => raw), Effect.catch(() => Effect.succeed(raw)))), Effect.catch((error) => logWarning("Could not fetch GitHub info for commit:", changeset.commit ?? "", String(error)).pipe(Effect.as(null))));
|
|
181
|
-
const
|
|
139
|
+
const tree = parseKitMarkdown(changeset.summary);
|
|
140
|
+
let parsed = sectionsOf(tree, changeset.summary);
|
|
182
141
|
const firstLine = changeset.summary.split("\n")[0];
|
|
183
142
|
const commitMsg = parseCommitMessage(firstLine);
|
|
184
143
|
const bodyText = changeset.summary.split("\n").slice(1).join("\n");
|
|
@@ -190,8 +149,13 @@ function getReleaseLine(changeset, versionType, options) {
|
|
|
190
149
|
let standaloneAttribution;
|
|
191
150
|
if (phrasing) {
|
|
192
151
|
const target = findAttributionTarget(parsed.sections);
|
|
193
|
-
if (target)
|
|
194
|
-
|
|
152
|
+
if (target) {
|
|
153
|
+
const attributed = MarkdownTransform.map(tree, { paragraph: (para) => para === target ? new Paragraph({
|
|
154
|
+
...para,
|
|
155
|
+
children: [...para.children, ...phrasing]
|
|
156
|
+
}) : para });
|
|
157
|
+
parsed = sectionsOf(attributed, changeset.summary);
|
|
158
|
+
} else standaloneAttribution = attribution.trim();
|
|
195
159
|
}
|
|
196
160
|
const blocks = [];
|
|
197
161
|
if (parsed.preamble) blocks.push(parsed.preamble);
|
|
@@ -212,5 +176,4 @@ function getReleaseLine(changeset, versionType, options) {
|
|
|
212
176
|
});
|
|
213
177
|
}
|
|
214
178
|
|
|
215
|
-
//#endregion
|
|
216
179
|
export { getReleaseLine };
|
|
@@ -5,7 +5,7 @@ import { getDependencyReleaseLine } from "./getDependencyReleaseLine.js";
|
|
|
5
5
|
import { getReleaseLine } from "./getReleaseLine.js";
|
|
6
6
|
import { Effect } from "effect";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/changesets/changelog/index.ts
|
|
9
9
|
/**
|
|
10
10
|
* Changesets API changelog formatter — `\@savvy-web/changesets/changelog`
|
|
11
11
|
*
|
|
@@ -113,5 +113,4 @@ function makeChangelogFunctions(options = {}) {
|
|
|
113
113
|
*/
|
|
114
114
|
const changelogFunctions = makeChangelogFunctions();
|
|
115
115
|
|
|
116
|
-
//#endregion
|
|
117
116
|
export { changelogFunctions as default, makeChangelogFunctions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import changelogGit from "@changesets/changelog-git";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/changesets/changelog/vanilla.ts
|
|
4
4
|
/**
|
|
5
5
|
* The vanilla changesets changelog renderer — `\@changesets/changelog-git`,
|
|
6
6
|
* re-exported.
|
|
@@ -43,5 +43,4 @@ import changelogGit from "@changesets/changelog-git";
|
|
|
43
43
|
*/
|
|
44
44
|
const vanillaChangelogFunctions = changelogGit;
|
|
45
45
|
|
|
46
|
-
//#endregion
|
|
47
46
|
export { vanillaChangelogFunctions };
|
package/changesets/constants.js
CHANGED
package/changesets/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/changesets/errors.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tagged errors for \@savvy-web/changesets.
|
|
6
6
|
*
|
|
@@ -396,5 +396,4 @@ var ReleasePlanError = class extends ReleasePlanErrorBase {
|
|
|
396
396
|
}
|
|
397
397
|
};
|
|
398
398
|
|
|
399
|
-
//#endregion
|
|
400
399
|
export { ChangesetIOError, ChangesetIOErrorBase, ChangesetValidationError, ChangesetValidationErrorBase, ConfigurationError, ConfigurationErrorBase, GitError, GitErrorBase, GitHubApiError, GitHubApiErrorBase, HookReplayError, HookReplayErrorBase, MarkdownParseError, MarkdownParseErrorBase, ReleasePlanError, ReleasePlanErrorBase, VersionFileError, VersionFileErrorBase };
|
package/changesets/index.js
CHANGED
|
@@ -52,7 +52,7 @@ import { RequiredSectionsRule as RequiredSectionsRule$1 } from "./markdownlint/r
|
|
|
52
52
|
import { UncategorizedContentRule as UncategorizedContentRule$1 } from "./markdownlint/rules/uncategorized-content.js";
|
|
53
53
|
import SilkChangesetsRules from "./markdownlint/index.js";
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
// src/changesets/index.ts
|
|
56
56
|
var changesets_exports = /* @__PURE__ */ __exportAll({
|
|
57
57
|
AggregateDependencyTablesPlugin: () => AggregateDependencyTablesPlugin,
|
|
58
58
|
AppliedReleaseEntrySchema: () => AppliedReleaseEntrySchema,
|
|
@@ -165,5 +165,4 @@ var changesets_exports = /* @__PURE__ */ __exportAll({
|
|
|
165
165
|
vanillaChangelogFunctions: () => vanillaChangelogFunctions
|
|
166
166
|
});
|
|
167
167
|
|
|
168
|
-
//#endregion
|
|
169
168
|
export { AggregateDependencyTablesPlugin, AppliedReleaseEntrySchema, AppliedReleaseSchema, BranchAnalysisSchema, BranchAnalyzer, BranchFileEntrySchema, BumpTypeSchema, Categories, Changelog, ChangelogService, ChangelogTransformer, ChangesetIOError, ChangesetLinter, ChangesetLogMode, ChangesetOptionsSchema, ChangesetPreviewSchema, ChangesetSchema, ChangesetSummarySchema, ChangesetValidationError, ClassificationReasonSchema, ClassificationSchema, CoexistingChangesetSchema, CommitHashSchema, ConfigInspector, ConfigurationError, ContentStructureRule, ContributorFootnotesPlugin, DeduplicateItemsPlugin, DependencyActionSchema, DependencyTable, DependencyTableFormatRule, DependencyTableRowSchema, DependencyTableSchema, DependencyTableTypeSchema, DependencyTypeSchema, DependencyUpdateSchema, DepsRegen, DepsRegenDefault, FileStatusSchema, GitError, GitHubApiError, GitHubInfoSchema, GitHubService, GlobSchema, HeadingHierarchyRule, HookReplayError, InspectedConfigSchema, IssueLinkRefsPlugin, IssueNumberSchema, JsonPathSchema, LegacyVersionFileConfigSchema, LegacyVersionFilesSchema, MaintenanceNotePlugin, MaintenanceReasonSchema, 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, PackageScopeSchema, PackagesRecordSchema, PendingChangesetSchema, PositiveInteger, PreviewReleaseSchema, RegenDiffRowSchema, RegenPlanSchema, RegenResultSchema, ReleasePlanError, ReleasePlanner, ReorderSectionsPlugin, RepoSchema, RequiredSectionsRule, ResolvedPackageScopeSchema, ResolvedVersionFileSchema, SectionCategorySchema, SilkChangesetPreset, SilkChangesetTransformPreset, SilkChangesetsRules, UncategorizedContentRule, UrlOrMarkdownLinkSchema, UsernameSchema, VERSION_RE, VersionFileConfigSchema, VersionFileError, VersionFileUpdateRecordSchema, VersionFiles, VersionFilesSchema, VersionOrEmptySchema, VersionTypeSchema, changelogFunctions, changesets_exports, computeWorkspaceDependencyDiffs, deriveMaintenanceReason, gitMergeBase, isPureDependencyChangeset, listPublishablePackageNames, makeBranchAnalyzerTest, makeChangelogFunctions, makeConfigInspectorTest, makeDepsRegenDefault, makeGitHubTest, makeReleasePlannerTest, parseChangesetPackages, serializeDependencyTableToMarkdown, vanillaChangelogFunctions };
|
|
@@ -4,7 +4,7 @@ import { HeadingHierarchyRule } from "./rules/heading-hierarchy.js";
|
|
|
4
4
|
import { RequiredSectionsRule } from "./rules/required-sections.js";
|
|
5
5
|
import { UncategorizedContentRule } from "./rules/uncategorized-content.js";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/changesets/markdownlint/index.ts
|
|
8
8
|
/**
|
|
9
9
|
* All changeset rules as an array for markdownlint-cli2 `customRules` config.
|
|
10
10
|
*
|
|
@@ -25,5 +25,4 @@ const SilkChangesetsRules = [
|
|
|
25
25
|
DependencyTableFormatRule
|
|
26
26
|
];
|
|
27
27
|
|
|
28
|
-
//#endregion
|
|
29
28
|
export { ContentStructureRule, DependencyTableFormatRule, HeadingHierarchyRule, RequiredSectionsRule, UncategorizedContentRule, SilkChangesetsRules as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RULE_DOCS } from "../../constants.js";
|
|
2
2
|
import { getHeadingLevel } from "./utils.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/markdownlint/rules/content-structure.ts
|
|
5
5
|
/**
|
|
6
6
|
* Check whether any non-blank tokens exist between two indices in the token stream.
|
|
7
7
|
*
|
|
@@ -94,5 +94,4 @@ const ContentStructureRule = {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
//#endregion
|
|
98
97
|
export { ContentStructureRule };
|
|
@@ -3,7 +3,7 @@ import { RULE_DOCS } from "../../constants.js";
|
|
|
3
3
|
import { scanDependencySection } from "../../utils/dependency-section.js";
|
|
4
4
|
import { getHeadingLevel, getHeadingText, unescapeMarkdown } from "./utils.js";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/changesets/markdownlint/rules/dependency-table-format.ts
|
|
7
7
|
const EM_DASH = "—";
|
|
8
8
|
const VALID_TYPES = /* @__PURE__ */ new Set([
|
|
9
9
|
"dependency",
|
|
@@ -167,5 +167,4 @@ const DependencyTableFormatRule = {
|
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
//#endregion
|
|
171
170
|
export { DependencyTableFormatRule };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RULE_DOCS } from "../../constants.js";
|
|
2
2
|
import { getHeadingLevel } from "./utils.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/markdownlint/rules/heading-hierarchy.ts
|
|
5
5
|
/**
|
|
6
6
|
* markdownlint rule: `changeset-heading-hierarchy` (CSH001).
|
|
7
7
|
*
|
|
@@ -57,5 +57,4 @@ const HeadingHierarchyRule = {
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
//#endregion
|
|
61
60
|
export { HeadingHierarchyRule };
|
|
@@ -2,7 +2,7 @@ import { allHeadings, isValidHeading } from "../../categories/index.js";
|
|
|
2
2
|
import { RULE_DOCS } from "../../constants.js";
|
|
3
3
|
import { getHeadingLevel, getHeadingText } from "./utils.js";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/changesets/markdownlint/rules/required-sections.ts
|
|
6
6
|
/**
|
|
7
7
|
* markdownlint rule: `changeset-required-sections` (CSH002).
|
|
8
8
|
*
|
|
@@ -50,5 +50,4 @@ const RequiredSectionsRule = {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
//#endregion
|
|
54
53
|
export { RequiredSectionsRule };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RULE_DOCS } from "../../constants.js";
|
|
2
2
|
import { getHeadingLevel } from "./utils.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/markdownlint/rules/uncategorized-content.ts
|
|
5
5
|
/**
|
|
6
6
|
* markdownlint rule: `changeset-uncategorized-content` (CSH004).
|
|
7
7
|
*
|
|
@@ -50,5 +50,4 @@ const UncategorizedContentRule = {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
//#endregion
|
|
54
53
|
export { UncategorizedContentRule };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RULE_DOCS } from "../../constants.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/changesets/markdownlint/rules/utils.ts
|
|
4
4
|
/**
|
|
5
5
|
* Get the heading level (1-6) from an `atxHeading` or `setextHeading` token.
|
|
6
6
|
*
|
|
@@ -67,5 +67,4 @@ function getHeadingText(heading) {
|
|
|
67
67
|
return textToken ? unescapeMarkdown(textToken.text) : "";
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
//#endregion
|
|
71
70
|
export { RULE_DOCS, getHeadingLevel, getHeadingText, unescapeMarkdown };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { collapseDependencyRows, parseDependencyTable, serializeDependencyTable, sortDependencyRows } from "../../utils/dependency-table.js";
|
|
2
2
|
import { getBlockSections, getHeadingText, getVersionBlocks } from "../../utils/version-blocks.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/remark/plugins/aggregate-dependency-tables.ts
|
|
5
5
|
/**
|
|
6
6
|
* Unwrap dependency tables that an earlier (broken) formatter nested inside
|
|
7
7
|
* list items.
|
|
@@ -95,5 +95,4 @@ const AggregateDependencyTablesPlugin = () => {
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
//#endregion
|
|
99
98
|
export { AggregateDependencyTablesPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getVersionBlocks } from "../../utils/version-blocks.js";
|
|
2
2
|
import { visit } from "unist-util-visit";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/remark/plugins/contributor-footnotes.ts
|
|
5
5
|
/**
|
|
6
6
|
* Pattern matching `Thanks @user!` at end of text.
|
|
7
7
|
*
|
|
@@ -331,5 +331,4 @@ const ContributorFootnotesPlugin = (options) => {
|
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
333
|
|
|
334
|
-
//#endregion
|
|
335
334
|
export { ContributorFootnotesPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getBlockSections, getVersionBlocks } from "../../utils/version-blocks.js";
|
|
2
2
|
import { toString } from "mdast-util-to-string";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/remark/plugins/deduplicate-items.ts
|
|
5
5
|
const DeduplicateItemsPlugin = () => {
|
|
6
6
|
return (tree) => {
|
|
7
7
|
const blocks = getVersionBlocks(tree);
|
|
@@ -28,5 +28,4 @@ const DeduplicateItemsPlugin = () => {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
//#endregion
|
|
32
31
|
export { DeduplicateItemsPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getVersionBlocks } from "../../utils/version-blocks.js";
|
|
2
2
|
import { SKIP, visit } from "unist-util-visit";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/remark/plugins/issue-link-refs.ts
|
|
5
5
|
/**
|
|
6
6
|
* Pattern matching issue numbers like `#123`.
|
|
7
7
|
*
|
|
@@ -54,5 +54,4 @@ const IssueLinkRefsPlugin = () => {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
//#endregion
|
|
58
57
|
export { IssueLinkRefsPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getHeadingText, getVersionBlocks } from "../../utils/version-blocks.js";
|
|
2
2
|
import { toString } from "mdast-util-to-string";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/remark/plugins/maintenance-note.ts
|
|
5
5
|
/**
|
|
6
6
|
* Placeholder sentence `@changesets/apply-release-plan` (>= 8.1.0) emits as the
|
|
7
7
|
* body of a version block that would otherwise render as a bare heading. Older
|
|
@@ -71,5 +71,4 @@ const MaintenanceNotePlugin = (options) => {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
//#endregion
|
|
75
74
|
export { MaintenanceNotePlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fromHeading } from "../../categories/index.js";
|
|
2
2
|
import { getBlockSections, getHeadingText, getVersionBlocks } from "../../utils/version-blocks.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/remark/plugins/merge-sections.ts
|
|
5
5
|
const MergeSectionsPlugin = () => {
|
|
6
6
|
return (tree) => {
|
|
7
7
|
const blocks = getVersionBlocks(tree);
|
|
@@ -39,5 +39,4 @@ const MergeSectionsPlugin = () => {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
//#endregion
|
|
43
42
|
export { MergeSectionsPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getVersionBlocks } from "../../utils/version-blocks.js";
|
|
2
2
|
import { toString } from "mdast-util-to-string";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/remark/plugins/normalize-format.ts
|
|
5
5
|
/**
|
|
6
6
|
* Check if a node is a heading at one of the given depths.
|
|
7
7
|
*
|
|
@@ -43,5 +43,4 @@ const NormalizeFormatPlugin = () => {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
//#endregion
|
|
47
46
|
export { NormalizeFormatPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fromHeading } from "../../categories/index.js";
|
|
2
2
|
import { getBlockSections, getHeadingText, getVersionBlocks } from "../../utils/version-blocks.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/remark/plugins/reorder-sections.ts
|
|
5
5
|
/**
|
|
6
6
|
* Default priority for unrecognized headings (sorts after all known categories).
|
|
7
7
|
*
|
|
@@ -45,5 +45,4 @@ const ReorderSectionsPlugin = () => {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
//#endregion
|
|
49
48
|
export { ReorderSectionsPlugin };
|
|
@@ -11,7 +11,7 @@ import { MergeSectionsPlugin } from "./plugins/merge-sections.js";
|
|
|
11
11
|
import { NormalizeFormatPlugin } from "./plugins/normalize-format.js";
|
|
12
12
|
import { ReorderSectionsPlugin } from "./plugins/reorder-sections.js";
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// src/changesets/remark/presets.ts
|
|
15
15
|
/**
|
|
16
16
|
* Remark preset collections for changeset lint rules and transform plugins.
|
|
17
17
|
*
|
|
@@ -115,5 +115,4 @@ const SilkChangesetTransformPreset = [
|
|
|
115
115
|
NormalizeFormatPlugin
|
|
116
116
|
];
|
|
117
117
|
|
|
118
|
-
//#endregion
|
|
119
118
|
export { SilkChangesetPreset, SilkChangesetTransformPreset };
|
|
@@ -3,7 +3,7 @@ import { toString } from "mdast-util-to-string";
|
|
|
3
3
|
import { lintRule } from "unified-lint-rule";
|
|
4
4
|
import { visit } from "unist-util-visit";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/changesets/remark/rules/content-structure.ts
|
|
7
7
|
const ContentStructureRule = lintRule("remark-lint:changeset-content-structure", (tree, file) => {
|
|
8
8
|
visit(tree, "heading", (node, index, parent) => {
|
|
9
9
|
if (node.depth !== 2 || parent == null || index == null) return;
|
|
@@ -18,5 +18,4 @@ const ContentStructureRule = lintRule("remark-lint:changeset-content-structure",
|
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { ContentStructureRule };
|
|
@@ -5,7 +5,7 @@ import { toString } from "mdast-util-to-string";
|
|
|
5
5
|
import { lintRule } from "unified-lint-rule";
|
|
6
6
|
import { visit } from "unist-util-visit";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/changesets/remark/rules/dependency-table-format.ts
|
|
9
9
|
/** @internal */
|
|
10
10
|
const EM_DASH = "—";
|
|
11
11
|
const DependencyTableFormatRule = lintRule("remark-lint:changeset-dependency-table-format", (tree, file) => {
|
|
@@ -34,5 +34,4 @@ const DependencyTableFormatRule = lintRule("remark-lint:changeset-dependency-tab
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
//#endregion
|
|
38
37
|
export { DependencyTableFormatRule };
|
|
@@ -2,7 +2,7 @@ import { RULE_DOCS } from "../../constants.js";
|
|
|
2
2
|
import { lintRule } from "unified-lint-rule";
|
|
3
3
|
import { visit } from "unist-util-visit";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/changesets/remark/rules/heading-hierarchy.ts
|
|
6
6
|
const HeadingHierarchyRule = lintRule("remark-lint:changeset-heading-hierarchy", (tree, file) => {
|
|
7
7
|
let prevDepth = 0;
|
|
8
8
|
visit(tree, "heading", (node) => {
|
|
@@ -15,5 +15,4 @@ const HeadingHierarchyRule = lintRule("remark-lint:changeset-heading-hierarchy",
|
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
//#endregion
|
|
19
18
|
export { HeadingHierarchyRule };
|