@savvy-web/silk 2.0.0 → 2.1.1
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 +7 -5
- package/changesets-changelog.cjs +109 -61
- package/changesets-changelog.d.cts +1 -1
- package/changesets-changelog.d.ts +1 -1
- package/changesets-changelog.js +54099 -1
- package/changesets-markdownlint.cjs +109 -61
- package/changesets-markdownlint.d.cts +1 -1
- package/changesets-markdownlint.d.ts +1 -1
- package/changesets-markdownlint.js +54099 -1
- package/package.json +5 -4
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -1
- package/_virtual/_rolldown/runtime.cjs +0 -45
- package/_virtual/_rolldown/runtime.js +0 -45
- package/packages/silk-effects/dist/dev/pkg/_virtual/_rolldown/runtime.cjs +0 -15
- package/packages/silk-effects/dist/dev/pkg/_virtual/_rolldown/runtime.js +0 -14
- package/packages/silk-effects/dist/dev/pkg/changesets/api/categories.cjs +0 -247
- package/packages/silk-effects/dist/dev/pkg/changesets/api/categories.js +0 -247
- package/packages/silk-effects/dist/dev/pkg/changesets/api/changelog.cjs +0 -134
- package/packages/silk-effects/dist/dev/pkg/changesets/api/changelog.js +0 -134
- package/packages/silk-effects/dist/dev/pkg/changesets/api/dependency-table.cjs +0 -163
- package/packages/silk-effects/dist/dev/pkg/changesets/api/dependency-table.js +0 -163
- package/packages/silk-effects/dist/dev/pkg/changesets/api/linter.cjs +0 -170
- package/packages/silk-effects/dist/dev/pkg/changesets/api/linter.js +0 -170
- package/packages/silk-effects/dist/dev/pkg/changesets/api/transformer.cjs +0 -134
- package/packages/silk-effects/dist/dev/pkg/changesets/api/transformer.js +0 -134
- package/packages/silk-effects/dist/dev/pkg/changesets/categories/index.cjs +0 -317
- package/packages/silk-effects/dist/dev/pkg/changesets/categories/index.js +0 -299
- package/packages/silk-effects/dist/dev/pkg/changesets/categories/types.cjs +0 -65
- package/packages/silk-effects/dist/dev/pkg/changesets/categories/types.js +0 -65
- package/packages/silk-effects/dist/dev/pkg/changesets/changelog/formatting.cjs +0 -114
- package/packages/silk-effects/dist/dev/pkg/changesets/changelog/formatting.js +0 -113
- package/packages/silk-effects/dist/dev/pkg/changesets/changelog/getDependencyReleaseLine.cjs +0 -118
- package/packages/silk-effects/dist/dev/pkg/changesets/changelog/getDependencyReleaseLine.js +0 -118
- package/packages/silk-effects/dist/dev/pkg/changesets/changelog/getReleaseLine.cjs +0 -122
- package/packages/silk-effects/dist/dev/pkg/changesets/changelog/getReleaseLine.js +0 -122
- package/packages/silk-effects/dist/dev/pkg/changesets/changelog/index.cjs +0 -97
- package/packages/silk-effects/dist/dev/pkg/changesets/changelog/index.js +0 -97
- package/packages/silk-effects/dist/dev/pkg/changesets/constants.cjs +0 -43
- package/packages/silk-effects/dist/dev/pkg/changesets/constants.js +0 -42
- package/packages/silk-effects/dist/dev/pkg/changesets/errors.cjs +0 -386
- package/packages/silk-effects/dist/dev/pkg/changesets/errors.js +0 -371
- package/packages/silk-effects/dist/dev/pkg/changesets/index.cjs +0 -300
- package/packages/silk-effects/dist/dev/pkg/changesets/index.js +0 -179
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/index.cjs +0 -34
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/index.js +0 -29
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/content-structure.cjs +0 -98
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/content-structure.js +0 -98
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/dependency-table-format.cjs +0 -170
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/dependency-table-format.js +0 -170
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/heading-hierarchy.cjs +0 -61
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/heading-hierarchy.js +0 -61
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/required-sections.cjs +0 -54
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/required-sections.js +0 -54
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/uncategorized-content.cjs +0 -54
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/uncategorized-content.js +0 -54
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/utils.cjs +0 -31
- package/packages/silk-effects/dist/dev/pkg/changesets/markdownlint/rules/utils.js +0 -30
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/aggregate-dependency-tables.cjs +0 -47
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/aggregate-dependency-tables.js +0 -47
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/contributor-footnotes.cjs +0 -123
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/contributor-footnotes.js +0 -123
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/deduplicate-items.cjs +0 -32
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/deduplicate-items.js +0 -32
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/issue-link-refs.cjs +0 -59
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/issue-link-refs.js +0 -59
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/maintenance-note.cjs +0 -61
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/maintenance-note.js +0 -61
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/merge-sections.cjs +0 -43
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/merge-sections.js +0 -43
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/normalize-format.cjs +0 -47
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/normalize-format.js +0 -47
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/reorder-sections.cjs +0 -34
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/plugins/reorder-sections.js +0 -34
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/presets.cjs +0 -120
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/presets.js +0 -119
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/content-structure.cjs +0 -22
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/content-structure.js +0 -22
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/dependency-table-format.cjs +0 -40
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/dependency-table-format.js +0 -40
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/heading-hierarchy.cjs +0 -19
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/heading-hierarchy.js +0 -19
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/required-sections.cjs +0 -17
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/required-sections.js +0 -17
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/uncategorized-content.cjs +0 -31
- package/packages/silk-effects/dist/dev/pkg/changesets/remark/rules/uncategorized-content.js +0 -31
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/changeset.cjs +0 -148
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/changeset.js +0 -145
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/dependency-table.cjs +0 -203
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/dependency-table.js +0 -198
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/git.cjs +0 -69
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/git.js +0 -68
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/github.cjs +0 -177
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/github.js +0 -174
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/options.cjs +0 -183
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/options.js +0 -181
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/package-scope.cjs +0 -129
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/package-scope.js +0 -127
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/primitives.cjs +0 -72
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/primitives.js +0 -71
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/release-plan.cjs +0 -62
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/release-plan.js +0 -56
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/version-files.cjs +0 -154
- package/packages/silk-effects/dist/dev/pkg/changesets/schemas/version-files.js +0 -150
- package/packages/silk-effects/dist/dev/pkg/changesets/services/branch-analyzer.cjs +0 -300
- package/packages/silk-effects/dist/dev/pkg/changesets/services/branch-analyzer.js +0 -294
- package/packages/silk-effects/dist/dev/pkg/changesets/services/changelog.cjs +0 -50
- package/packages/silk-effects/dist/dev/pkg/changesets/services/changelog.js +0 -49
- package/packages/silk-effects/dist/dev/pkg/changesets/services/config-inspector.cjs +0 -489
- package/packages/silk-effects/dist/dev/pkg/changesets/services/config-inspector.js +0 -481
- package/packages/silk-effects/dist/dev/pkg/changesets/services/deps-regen.cjs +0 -375
- package/packages/silk-effects/dist/dev/pkg/changesets/services/deps-regen.js +0 -371
- package/packages/silk-effects/dist/dev/pkg/changesets/services/github.cjs +0 -160
- package/packages/silk-effects/dist/dev/pkg/changesets/services/github.js +0 -157
- package/packages/silk-effects/dist/dev/pkg/changesets/services/maintenance-reason.cjs +0 -68
- package/packages/silk-effects/dist/dev/pkg/changesets/services/maintenance-reason.js +0 -66
- package/packages/silk-effects/dist/dev/pkg/changesets/services/markdown.cjs +0 -87
- package/packages/silk-effects/dist/dev/pkg/changesets/services/markdown.js +0 -85
- package/packages/silk-effects/dist/dev/pkg/changesets/services/release-planner.cjs +0 -352
- package/packages/silk-effects/dist/dev/pkg/changesets/services/release-planner.js +0 -348
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/commit-parser.cjs +0 -81
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/commit-parser.js +0 -80
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/dep-diff.cjs +0 -111
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/dep-diff.js +0 -111
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/dependency-table.cjs +0 -351
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/dependency-table.js +0 -347
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/git.cjs +0 -51
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/git.js +0 -51
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/issue-refs.cjs +0 -102
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/issue-refs.js +0 -101
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/jsonpath.cjs +0 -178
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/jsonpath.js +0 -175
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/logger.cjs +0 -51
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/logger.js +0 -50
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/markdown-link.cjs +0 -59
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/markdown-link.js +0 -57
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/publishability.cjs +0 -50
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/publishability.js +0 -50
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/remark-pipeline.cjs +0 -81
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/remark-pipeline.js +0 -79
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/section-parser.cjs +0 -94
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/section-parser.js +0 -94
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/strip-frontmatter.cjs +0 -47
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/strip-frontmatter.js +0 -46
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/version-blocks.cjs +0 -110
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/version-blocks.js +0 -108
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/version-files.cjs +0 -336
- package/packages/silk-effects/dist/dev/pkg/changesets/utils/version-files.js +0 -336
- package/packages/silk-effects/dist/dev/pkg/changesets/vendor/github-info.cjs +0 -77
- package/packages/silk-effects/dist/dev/pkg/changesets/vendor/github-info.js +0 -77
- package/packages/silk-effects/dist/dev/pkg/errors/ChangesetConfigError.cjs +0 -21
- package/packages/silk-effects/dist/dev/pkg/errors/ChangesetConfigError.js +0 -21
- package/packages/silk-effects/dist/dev/pkg/schemas/VersioningSchemas.cjs +0 -101
- package/packages/silk-effects/dist/dev/pkg/schemas/VersioningSchemas.js +0 -99
- package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfig.cjs +0 -81
- package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfig.js +0 -80
- package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfigReader.cjs +0 -109
- package/packages/silk-effects/dist/dev/pkg/services/ChangesetConfigReader.js +0 -108
- package/packages/silk-effects/dist/dev/pkg/services/SilkPublishability.cjs +0 -238
- package/packages/silk-effects/dist/dev/pkg/services/SilkPublishability.js +0 -236
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../silk-effects/dist/dev/pkg/changesets/categories/index.js
|
|
3
|
-
/**
|
|
4
|
-
* Breaking changes -- backward-incompatible changes.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* Priority 1 (highest). This category has no associated commit types;
|
|
8
|
-
* it is resolved by the `!` suffix on any conventional commit type
|
|
9
|
-
* (e.g., `feat!:`, `fix!:`). Use {@link resolveCommitType} with
|
|
10
|
-
* `breaking: true` to map to this category.
|
|
11
|
-
*
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
const BREAKING_CHANGES = {
|
|
15
|
-
heading: "Breaking Changes",
|
|
16
|
-
priority: 1,
|
|
17
|
-
commitTypes: [],
|
|
18
|
-
description: "Backward-incompatible changes"
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Features -- new functionality.
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* Priority 2. Maps from the `feat` conventional commit type.
|
|
25
|
-
*
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
const FEATURES = {
|
|
29
|
-
heading: "Features",
|
|
30
|
-
priority: 2,
|
|
31
|
-
commitTypes: ["feat"],
|
|
32
|
-
description: "New functionality"
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Bug Fixes -- bug corrections.
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* Priority 3. Maps from the `fix` conventional commit type.
|
|
39
|
-
*
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
const BUG_FIXES = {
|
|
43
|
-
heading: "Bug Fixes",
|
|
44
|
-
priority: 3,
|
|
45
|
-
commitTypes: ["fix"],
|
|
46
|
-
description: "Bug corrections"
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Performance -- performance improvements.
|
|
50
|
-
*
|
|
51
|
-
* @remarks
|
|
52
|
-
* Priority 4. Maps from the `perf` conventional commit type.
|
|
53
|
-
*
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
|
-
const PERFORMANCE = {
|
|
57
|
-
heading: "Performance",
|
|
58
|
-
priority: 4,
|
|
59
|
-
commitTypes: ["perf"],
|
|
60
|
-
description: "Performance improvements"
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Documentation -- documentation changes.
|
|
64
|
-
*
|
|
65
|
-
* @remarks
|
|
66
|
-
* Priority 5. Maps from the `docs` conventional commit type.
|
|
67
|
-
*
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
|
-
const DOCUMENTATION = {
|
|
71
|
-
heading: "Documentation",
|
|
72
|
-
priority: 5,
|
|
73
|
-
commitTypes: ["docs"],
|
|
74
|
-
description: "Documentation changes"
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Refactoring -- code restructuring without behavior change.
|
|
78
|
-
*
|
|
79
|
-
* @remarks
|
|
80
|
-
* Priority 6. Maps from the `refactor` conventional commit type.
|
|
81
|
-
*
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
const REFACTORING = {
|
|
85
|
-
heading: "Refactoring",
|
|
86
|
-
priority: 6,
|
|
87
|
-
commitTypes: ["refactor"],
|
|
88
|
-
description: "Code restructuring"
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Tests -- test additions or modifications.
|
|
92
|
-
*
|
|
93
|
-
* @remarks
|
|
94
|
-
* Priority 7. Maps from the `test` conventional commit type.
|
|
95
|
-
*
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
|
-
const TESTS = {
|
|
99
|
-
heading: "Tests",
|
|
100
|
-
priority: 7,
|
|
101
|
-
commitTypes: ["test"],
|
|
102
|
-
description: "Test additions or modifications"
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Build System -- build configuration changes.
|
|
106
|
-
*
|
|
107
|
-
* @remarks
|
|
108
|
-
* Priority 8. Maps from the `build` conventional commit type.
|
|
109
|
-
*
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
112
|
-
const BUILD_SYSTEM = {
|
|
113
|
-
heading: "Build System",
|
|
114
|
-
priority: 8,
|
|
115
|
-
commitTypes: ["build"],
|
|
116
|
-
description: "Build configuration changes"
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* CI -- continuous integration changes.
|
|
120
|
-
*
|
|
121
|
-
* @remarks
|
|
122
|
-
* Priority 9. Maps from the `ci` conventional commit type.
|
|
123
|
-
*
|
|
124
|
-
* @internal
|
|
125
|
-
*/
|
|
126
|
-
const CI = {
|
|
127
|
-
heading: "CI",
|
|
128
|
-
priority: 9,
|
|
129
|
-
commitTypes: ["ci"],
|
|
130
|
-
description: "Continuous integration changes"
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Dependencies -- dependency updates.
|
|
134
|
-
*
|
|
135
|
-
* @remarks
|
|
136
|
-
* Priority 10. Maps from the `deps` conventional commit type and also
|
|
137
|
-
* from `chore(deps)` via the {@link resolveCommitType} function.
|
|
138
|
-
*
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
141
|
-
const DEPENDENCIES = {
|
|
142
|
-
heading: "Dependencies",
|
|
143
|
-
priority: 10,
|
|
144
|
-
commitTypes: ["deps"],
|
|
145
|
-
description: "Dependency updates"
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Maintenance -- general maintenance tasks.
|
|
149
|
-
*
|
|
150
|
-
* @remarks
|
|
151
|
-
* Priority 11. Maps from the `chore` and `style` conventional commit types.
|
|
152
|
-
* Note that `chore(deps)` is redirected to {@link DEPENDENCIES} by
|
|
153
|
-
* {@link resolveCommitType}.
|
|
154
|
-
*
|
|
155
|
-
* @internal
|
|
156
|
-
*/
|
|
157
|
-
const MAINTENANCE = {
|
|
158
|
-
heading: "Maintenance",
|
|
159
|
-
priority: 11,
|
|
160
|
-
commitTypes: ["chore", "style"],
|
|
161
|
-
description: "General maintenance"
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* Reverts -- reverted changes.
|
|
165
|
-
*
|
|
166
|
-
* @remarks
|
|
167
|
-
* Priority 12. Maps from the `revert` conventional commit type.
|
|
168
|
-
*
|
|
169
|
-
* @internal
|
|
170
|
-
*/
|
|
171
|
-
const REVERTS = {
|
|
172
|
-
heading: "Reverts",
|
|
173
|
-
priority: 12,
|
|
174
|
-
commitTypes: ["revert"],
|
|
175
|
-
description: "Reverted changes"
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* Other -- uncategorized changes.
|
|
179
|
-
*
|
|
180
|
-
* @remarks
|
|
181
|
-
* Priority 13 (lowest). This category has no associated commit types;
|
|
182
|
-
* it serves as the fallback for any commit type not recognized by the
|
|
183
|
-
* category system. Resolved by {@link resolveCommitType} when no other
|
|
184
|
-
* category matches.
|
|
185
|
-
*
|
|
186
|
-
* @internal
|
|
187
|
-
*/
|
|
188
|
-
const OTHER = {
|
|
189
|
-
heading: "Other",
|
|
190
|
-
priority: 13,
|
|
191
|
-
commitTypes: [],
|
|
192
|
-
description: "Uncategorized changes"
|
|
193
|
-
};
|
|
194
|
-
/**
|
|
195
|
-
* All 13 categories ordered by priority (ascending).
|
|
196
|
-
*
|
|
197
|
-
* @remarks
|
|
198
|
-
* This array provides the canonical ordering for section headings in
|
|
199
|
-
* CHANGELOG output. Breaking Changes appear first, Other appears last.
|
|
200
|
-
* The array is frozen (`as const`) to prevent accidental mutation.
|
|
201
|
-
*
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
const CATEGORIES = [
|
|
205
|
-
BREAKING_CHANGES,
|
|
206
|
-
FEATURES,
|
|
207
|
-
BUG_FIXES,
|
|
208
|
-
PERFORMANCE,
|
|
209
|
-
DOCUMENTATION,
|
|
210
|
-
REFACTORING,
|
|
211
|
-
TESTS,
|
|
212
|
-
BUILD_SYSTEM,
|
|
213
|
-
CI,
|
|
214
|
-
DEPENDENCIES,
|
|
215
|
-
MAINTENANCE,
|
|
216
|
-
REVERTS,
|
|
217
|
-
OTHER
|
|
218
|
-
];
|
|
219
|
-
/**
|
|
220
|
-
* Set of all valid section heading strings (case-insensitive lookup).
|
|
221
|
-
* Used by Layer 1 (remark-lint) to validate changeset headings.
|
|
222
|
-
*/
|
|
223
|
-
const headingToCategory = new Map(CATEGORIES.map((cat) => [cat.heading.toLowerCase(), cat]));
|
|
224
|
-
/**
|
|
225
|
-
* Map from commit type string to its category.
|
|
226
|
-
* Handles standard commit types. For `chore(deps)` and breaking `!` suffix,
|
|
227
|
-
* use {@link resolveCommitType} instead.
|
|
228
|
-
*/
|
|
229
|
-
const commitTypeToCategory = /* @__PURE__ */ new Map();
|
|
230
|
-
for (const cat of CATEGORIES) for (const commitType of cat.commitTypes) commitTypeToCategory.set(commitType, cat);
|
|
231
|
-
/**
|
|
232
|
-
* Resolve a conventional commit type (with optional scope and `!` suffix) to a category.
|
|
233
|
-
*
|
|
234
|
-
* @remarks
|
|
235
|
-
* This function implements the full commit-type-to-category mapping logic,
|
|
236
|
-
* including special cases:
|
|
237
|
-
* - Any commit with `breaking: true` maps to {@link BREAKING_CHANGES}
|
|
238
|
-
* - `chore` with scope `deps` maps to {@link DEPENDENCIES} (not Maintenance)
|
|
239
|
-
* - Unrecognized types fall through to {@link OTHER}
|
|
240
|
-
*
|
|
241
|
-
* @param type - The commit type (e.g., `"feat"`, `"fix"`, `"chore"`)
|
|
242
|
-
* @param scope - Optional scope (e.g., `"deps"` in `chore(deps):`)
|
|
243
|
-
* @param breaking - Whether the commit has a `!` suffix indicating a breaking change
|
|
244
|
-
* @returns The resolved section category
|
|
245
|
-
*
|
|
246
|
-
* @internal
|
|
247
|
-
*/
|
|
248
|
-
function resolveCommitType(type, scope, breaking) {
|
|
249
|
-
if (breaking) return BREAKING_CHANGES;
|
|
250
|
-
if (type === "chore" && scope === "deps") return DEPENDENCIES;
|
|
251
|
-
return commitTypeToCategory.get(type) ?? OTHER;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Look up a category by its section heading text.
|
|
255
|
-
*
|
|
256
|
-
* @remarks
|
|
257
|
-
* Comparison is case-insensitive: `"features"`, `"Features"`, and
|
|
258
|
-
* `"FEATURES"` all match the Features category.
|
|
259
|
-
*
|
|
260
|
-
* @param heading - The heading text (e.g., `"Features"`, `"Bug Fixes"`)
|
|
261
|
-
* @returns The matching category, or `undefined` if not recognized
|
|
262
|
-
*
|
|
263
|
-
* @internal
|
|
264
|
-
*/
|
|
265
|
-
function fromHeading(heading) {
|
|
266
|
-
return headingToCategory.get(heading.toLowerCase());
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Check whether a heading string matches a known category.
|
|
270
|
-
*
|
|
271
|
-
* @remarks
|
|
272
|
-
* Comparison is case-insensitive. Useful for validating that a markdown
|
|
273
|
-
* heading in a changeset file corresponds to a recognized section.
|
|
274
|
-
*
|
|
275
|
-
* @param heading - The heading text to check
|
|
276
|
-
* @returns `true` if the heading matches a known category
|
|
277
|
-
*
|
|
278
|
-
* @internal
|
|
279
|
-
*/
|
|
280
|
-
function isValidHeading(heading) {
|
|
281
|
-
return headingToCategory.has(heading.toLowerCase());
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Get all valid section heading strings.
|
|
285
|
-
*
|
|
286
|
-
* @remarks
|
|
287
|
-
* Returns the headings in priority order, matching the order of {@link CATEGORIES}.
|
|
288
|
-
* Useful for generating help text or validation error messages that list
|
|
289
|
-
* accepted headings.
|
|
290
|
-
*
|
|
291
|
-
* @returns Array of heading strings (e.g., `["Breaking Changes", "Features", ...]`)
|
|
292
|
-
*
|
|
293
|
-
* @internal
|
|
294
|
-
*/
|
|
295
|
-
function allHeadings() {
|
|
296
|
-
return CATEGORIES.map((cat) => cat.heading);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
//#endregion
|
|
300
|
-
exports.BREAKING_CHANGES = BREAKING_CHANGES;
|
|
301
|
-
exports.BUG_FIXES = BUG_FIXES;
|
|
302
|
-
exports.BUILD_SYSTEM = BUILD_SYSTEM;
|
|
303
|
-
exports.CATEGORIES = CATEGORIES;
|
|
304
|
-
exports.CI = CI;
|
|
305
|
-
exports.DEPENDENCIES = DEPENDENCIES;
|
|
306
|
-
exports.DOCUMENTATION = DOCUMENTATION;
|
|
307
|
-
exports.FEATURES = FEATURES;
|
|
308
|
-
exports.MAINTENANCE = MAINTENANCE;
|
|
309
|
-
exports.OTHER = OTHER;
|
|
310
|
-
exports.PERFORMANCE = PERFORMANCE;
|
|
311
|
-
exports.REFACTORING = REFACTORING;
|
|
312
|
-
exports.REVERTS = REVERTS;
|
|
313
|
-
exports.TESTS = TESTS;
|
|
314
|
-
exports.allHeadings = allHeadings;
|
|
315
|
-
exports.fromHeading = fromHeading;
|
|
316
|
-
exports.isValidHeading = isValidHeading;
|
|
317
|
-
exports.resolveCommitType = resolveCommitType;
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
//#region ../silk-effects/dist/dev/pkg/changesets/categories/index.js
|
|
2
|
-
/**
|
|
3
|
-
* Breaking changes -- backward-incompatible changes.
|
|
4
|
-
*
|
|
5
|
-
* @remarks
|
|
6
|
-
* Priority 1 (highest). This category has no associated commit types;
|
|
7
|
-
* it is resolved by the `!` suffix on any conventional commit type
|
|
8
|
-
* (e.g., `feat!:`, `fix!:`). Use {@link resolveCommitType} with
|
|
9
|
-
* `breaking: true` to map to this category.
|
|
10
|
-
*
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
const BREAKING_CHANGES = {
|
|
14
|
-
heading: "Breaking Changes",
|
|
15
|
-
priority: 1,
|
|
16
|
-
commitTypes: [],
|
|
17
|
-
description: "Backward-incompatible changes"
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Features -- new functionality.
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Priority 2. Maps from the `feat` conventional commit type.
|
|
24
|
-
*
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
const FEATURES = {
|
|
28
|
-
heading: "Features",
|
|
29
|
-
priority: 2,
|
|
30
|
-
commitTypes: ["feat"],
|
|
31
|
-
description: "New functionality"
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Bug Fixes -- bug corrections.
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* Priority 3. Maps from the `fix` conventional commit type.
|
|
38
|
-
*
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
const BUG_FIXES = {
|
|
42
|
-
heading: "Bug Fixes",
|
|
43
|
-
priority: 3,
|
|
44
|
-
commitTypes: ["fix"],
|
|
45
|
-
description: "Bug corrections"
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Performance -- performance improvements.
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* Priority 4. Maps from the `perf` conventional commit type.
|
|
52
|
-
*
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
|
-
const PERFORMANCE = {
|
|
56
|
-
heading: "Performance",
|
|
57
|
-
priority: 4,
|
|
58
|
-
commitTypes: ["perf"],
|
|
59
|
-
description: "Performance improvements"
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Documentation -- documentation changes.
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
* Priority 5. Maps from the `docs` conventional commit type.
|
|
66
|
-
*
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
const DOCUMENTATION = {
|
|
70
|
-
heading: "Documentation",
|
|
71
|
-
priority: 5,
|
|
72
|
-
commitTypes: ["docs"],
|
|
73
|
-
description: "Documentation changes"
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Refactoring -- code restructuring without behavior change.
|
|
77
|
-
*
|
|
78
|
-
* @remarks
|
|
79
|
-
* Priority 6. Maps from the `refactor` conventional commit type.
|
|
80
|
-
*
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
const REFACTORING = {
|
|
84
|
-
heading: "Refactoring",
|
|
85
|
-
priority: 6,
|
|
86
|
-
commitTypes: ["refactor"],
|
|
87
|
-
description: "Code restructuring"
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* Tests -- test additions or modifications.
|
|
91
|
-
*
|
|
92
|
-
* @remarks
|
|
93
|
-
* Priority 7. Maps from the `test` conventional commit type.
|
|
94
|
-
*
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
const TESTS = {
|
|
98
|
-
heading: "Tests",
|
|
99
|
-
priority: 7,
|
|
100
|
-
commitTypes: ["test"],
|
|
101
|
-
description: "Test additions or modifications"
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Build System -- build configuration changes.
|
|
105
|
-
*
|
|
106
|
-
* @remarks
|
|
107
|
-
* Priority 8. Maps from the `build` conventional commit type.
|
|
108
|
-
*
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
const BUILD_SYSTEM = {
|
|
112
|
-
heading: "Build System",
|
|
113
|
-
priority: 8,
|
|
114
|
-
commitTypes: ["build"],
|
|
115
|
-
description: "Build configuration changes"
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* CI -- continuous integration changes.
|
|
119
|
-
*
|
|
120
|
-
* @remarks
|
|
121
|
-
* Priority 9. Maps from the `ci` conventional commit type.
|
|
122
|
-
*
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
125
|
-
const CI = {
|
|
126
|
-
heading: "CI",
|
|
127
|
-
priority: 9,
|
|
128
|
-
commitTypes: ["ci"],
|
|
129
|
-
description: "Continuous integration changes"
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Dependencies -- dependency updates.
|
|
133
|
-
*
|
|
134
|
-
* @remarks
|
|
135
|
-
* Priority 10. Maps from the `deps` conventional commit type and also
|
|
136
|
-
* from `chore(deps)` via the {@link resolveCommitType} function.
|
|
137
|
-
*
|
|
138
|
-
* @internal
|
|
139
|
-
*/
|
|
140
|
-
const DEPENDENCIES = {
|
|
141
|
-
heading: "Dependencies",
|
|
142
|
-
priority: 10,
|
|
143
|
-
commitTypes: ["deps"],
|
|
144
|
-
description: "Dependency updates"
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* Maintenance -- general maintenance tasks.
|
|
148
|
-
*
|
|
149
|
-
* @remarks
|
|
150
|
-
* Priority 11. Maps from the `chore` and `style` conventional commit types.
|
|
151
|
-
* Note that `chore(deps)` is redirected to {@link DEPENDENCIES} by
|
|
152
|
-
* {@link resolveCommitType}.
|
|
153
|
-
*
|
|
154
|
-
* @internal
|
|
155
|
-
*/
|
|
156
|
-
const MAINTENANCE = {
|
|
157
|
-
heading: "Maintenance",
|
|
158
|
-
priority: 11,
|
|
159
|
-
commitTypes: ["chore", "style"],
|
|
160
|
-
description: "General maintenance"
|
|
161
|
-
};
|
|
162
|
-
/**
|
|
163
|
-
* Reverts -- reverted changes.
|
|
164
|
-
*
|
|
165
|
-
* @remarks
|
|
166
|
-
* Priority 12. Maps from the `revert` conventional commit type.
|
|
167
|
-
*
|
|
168
|
-
* @internal
|
|
169
|
-
*/
|
|
170
|
-
const REVERTS = {
|
|
171
|
-
heading: "Reverts",
|
|
172
|
-
priority: 12,
|
|
173
|
-
commitTypes: ["revert"],
|
|
174
|
-
description: "Reverted changes"
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* Other -- uncategorized changes.
|
|
178
|
-
*
|
|
179
|
-
* @remarks
|
|
180
|
-
* Priority 13 (lowest). This category has no associated commit types;
|
|
181
|
-
* it serves as the fallback for any commit type not recognized by the
|
|
182
|
-
* category system. Resolved by {@link resolveCommitType} when no other
|
|
183
|
-
* category matches.
|
|
184
|
-
*
|
|
185
|
-
* @internal
|
|
186
|
-
*/
|
|
187
|
-
const OTHER = {
|
|
188
|
-
heading: "Other",
|
|
189
|
-
priority: 13,
|
|
190
|
-
commitTypes: [],
|
|
191
|
-
description: "Uncategorized changes"
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* All 13 categories ordered by priority (ascending).
|
|
195
|
-
*
|
|
196
|
-
* @remarks
|
|
197
|
-
* This array provides the canonical ordering for section headings in
|
|
198
|
-
* CHANGELOG output. Breaking Changes appear first, Other appears last.
|
|
199
|
-
* The array is frozen (`as const`) to prevent accidental mutation.
|
|
200
|
-
*
|
|
201
|
-
* @internal
|
|
202
|
-
*/
|
|
203
|
-
const CATEGORIES = [
|
|
204
|
-
BREAKING_CHANGES,
|
|
205
|
-
FEATURES,
|
|
206
|
-
BUG_FIXES,
|
|
207
|
-
PERFORMANCE,
|
|
208
|
-
DOCUMENTATION,
|
|
209
|
-
REFACTORING,
|
|
210
|
-
TESTS,
|
|
211
|
-
BUILD_SYSTEM,
|
|
212
|
-
CI,
|
|
213
|
-
DEPENDENCIES,
|
|
214
|
-
MAINTENANCE,
|
|
215
|
-
REVERTS,
|
|
216
|
-
OTHER
|
|
217
|
-
];
|
|
218
|
-
/**
|
|
219
|
-
* Set of all valid section heading strings (case-insensitive lookup).
|
|
220
|
-
* Used by Layer 1 (remark-lint) to validate changeset headings.
|
|
221
|
-
*/
|
|
222
|
-
const headingToCategory = new Map(CATEGORIES.map((cat) => [cat.heading.toLowerCase(), cat]));
|
|
223
|
-
/**
|
|
224
|
-
* Map from commit type string to its category.
|
|
225
|
-
* Handles standard commit types. For `chore(deps)` and breaking `!` suffix,
|
|
226
|
-
* use {@link resolveCommitType} instead.
|
|
227
|
-
*/
|
|
228
|
-
const commitTypeToCategory = /* @__PURE__ */ new Map();
|
|
229
|
-
for (const cat of CATEGORIES) for (const commitType of cat.commitTypes) commitTypeToCategory.set(commitType, cat);
|
|
230
|
-
/**
|
|
231
|
-
* Resolve a conventional commit type (with optional scope and `!` suffix) to a category.
|
|
232
|
-
*
|
|
233
|
-
* @remarks
|
|
234
|
-
* This function implements the full commit-type-to-category mapping logic,
|
|
235
|
-
* including special cases:
|
|
236
|
-
* - Any commit with `breaking: true` maps to {@link BREAKING_CHANGES}
|
|
237
|
-
* - `chore` with scope `deps` maps to {@link DEPENDENCIES} (not Maintenance)
|
|
238
|
-
* - Unrecognized types fall through to {@link OTHER}
|
|
239
|
-
*
|
|
240
|
-
* @param type - The commit type (e.g., `"feat"`, `"fix"`, `"chore"`)
|
|
241
|
-
* @param scope - Optional scope (e.g., `"deps"` in `chore(deps):`)
|
|
242
|
-
* @param breaking - Whether the commit has a `!` suffix indicating a breaking change
|
|
243
|
-
* @returns The resolved section category
|
|
244
|
-
*
|
|
245
|
-
* @internal
|
|
246
|
-
*/
|
|
247
|
-
function resolveCommitType(type, scope, breaking) {
|
|
248
|
-
if (breaking) return BREAKING_CHANGES;
|
|
249
|
-
if (type === "chore" && scope === "deps") return DEPENDENCIES;
|
|
250
|
-
return commitTypeToCategory.get(type) ?? OTHER;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Look up a category by its section heading text.
|
|
254
|
-
*
|
|
255
|
-
* @remarks
|
|
256
|
-
* Comparison is case-insensitive: `"features"`, `"Features"`, and
|
|
257
|
-
* `"FEATURES"` all match the Features category.
|
|
258
|
-
*
|
|
259
|
-
* @param heading - The heading text (e.g., `"Features"`, `"Bug Fixes"`)
|
|
260
|
-
* @returns The matching category, or `undefined` if not recognized
|
|
261
|
-
*
|
|
262
|
-
* @internal
|
|
263
|
-
*/
|
|
264
|
-
function fromHeading(heading) {
|
|
265
|
-
return headingToCategory.get(heading.toLowerCase());
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Check whether a heading string matches a known category.
|
|
269
|
-
*
|
|
270
|
-
* @remarks
|
|
271
|
-
* Comparison is case-insensitive. Useful for validating that a markdown
|
|
272
|
-
* heading in a changeset file corresponds to a recognized section.
|
|
273
|
-
*
|
|
274
|
-
* @param heading - The heading text to check
|
|
275
|
-
* @returns `true` if the heading matches a known category
|
|
276
|
-
*
|
|
277
|
-
* @internal
|
|
278
|
-
*/
|
|
279
|
-
function isValidHeading(heading) {
|
|
280
|
-
return headingToCategory.has(heading.toLowerCase());
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Get all valid section heading strings.
|
|
284
|
-
*
|
|
285
|
-
* @remarks
|
|
286
|
-
* Returns the headings in priority order, matching the order of {@link CATEGORIES}.
|
|
287
|
-
* Useful for generating help text or validation error messages that list
|
|
288
|
-
* accepted headings.
|
|
289
|
-
*
|
|
290
|
-
* @returns Array of heading strings (e.g., `["Breaking Changes", "Features", ...]`)
|
|
291
|
-
*
|
|
292
|
-
* @internal
|
|
293
|
-
*/
|
|
294
|
-
function allHeadings() {
|
|
295
|
-
return CATEGORIES.map((cat) => cat.heading);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
//#endregion
|
|
299
|
-
export { BREAKING_CHANGES, BUG_FIXES, BUILD_SYSTEM, CATEGORIES, CI, DEPENDENCIES, DOCUMENTATION, FEATURES, MAINTENANCE, OTHER, PERFORMANCE, REFACTORING, REVERTS, TESTS, allHeadings, fromHeading, isValidHeading, resolveCommitType };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
let effect = require("effect");
|
|
2
|
-
|
|
3
|
-
//#region ../silk-effects/dist/dev/pkg/changesets/categories/types.js
|
|
4
|
-
/**
|
|
5
|
-
* Section category schema and type definitions.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Section categories define how changes are grouped and ordered in release
|
|
9
|
-
* notes and CHANGELOGs. Each category maps conventional commit types to a
|
|
10
|
-
* display heading with a priority for ordering. Categories are used across
|
|
11
|
-
* all three processing layers: remark-lint pre-validation (Layer 1),
|
|
12
|
-
* changelog formatting (Layer 2), and remark-transform post-processing
|
|
13
|
-
* (Layer 3).
|
|
14
|
-
*
|
|
15
|
-
* @see {@link CATEGORIES} for the predefined list of 13 section categories
|
|
16
|
-
* @see {@link resolveCommitType} for mapping commit types to categories
|
|
17
|
-
* @see {@link https://effect.website/docs/schema/introduction | Effect Schema documentation}
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* Schema for a section category that defines how changes are grouped in release notes.
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* A section category has four fields:
|
|
25
|
-
* - `heading` -- the display heading used in CHANGELOG output (e.g., `"Features"`, `"Bug Fixes"`)
|
|
26
|
-
* - `priority` -- an integer controlling display order (lower = higher priority)
|
|
27
|
-
* - `commitTypes` -- conventional commit type prefixes that map to this category (e.g., `["feat"]`)
|
|
28
|
-
* - `description` -- a brief human-readable description for documentation
|
|
29
|
-
*
|
|
30
|
-
* Categories with an empty `commitTypes` array are resolved through other means:
|
|
31
|
-
* `BREAKING_CHANGES` is resolved via the `!` suffix on any commit type, and
|
|
32
|
-
* `OTHER` is the fallback for unrecognized types.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```typescript
|
|
36
|
-
* import { Schema } from "effect";
|
|
37
|
-
* import { SectionCategorySchema } from "@savvy-web/changesets";
|
|
38
|
-
* import type { SectionCategory } from "@savvy-web/changesets";
|
|
39
|
-
*
|
|
40
|
-
* const category: SectionCategory = Schema.decodeUnknownSync(SectionCategorySchema)({
|
|
41
|
-
* heading: "Features",
|
|
42
|
-
* priority: 2,
|
|
43
|
-
* commitTypes: ["feat"],
|
|
44
|
-
* description: "New functionality",
|
|
45
|
-
* });
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @see {@link SectionCategory} for the inferred TypeScript type
|
|
49
|
-
* @see {@link CATEGORIES} for all predefined categories
|
|
50
|
-
*
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
const SectionCategorySchema = effect.Schema.Struct({
|
|
54
|
-
/** Display heading used in CHANGELOG output. */
|
|
55
|
-
heading: effect.Schema.String,
|
|
56
|
-
/** Priority for ordering (lower = higher priority). */
|
|
57
|
-
priority: effect.Schema.Number,
|
|
58
|
-
/** Conventional commit types that map to this category. */
|
|
59
|
-
commitTypes: effect.Schema.Array(effect.Schema.String),
|
|
60
|
-
/** Brief description for documentation. */
|
|
61
|
-
description: effect.Schema.String
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
//#endregion
|
|
65
|
-
exports.SectionCategorySchema = SectionCategorySchema;
|