@savvy-web/silk-effects 9.5.5 → 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 +1 -2
- 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 +1 -2
- package/changesets/utils/markdown-link.js +1 -2
- package/changesets/utils/publishability.js +1 -2
- package/changesets/utils/remark-pipeline.js +1 -2
- package/changesets/utils/section-parser.js +1 -2
- 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 -14
- 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 };
|
|
@@ -10,7 +10,7 @@ import { formatChangelogEntry, formatPRAndUserAttribution } from "./formatting.j
|
|
|
10
10
|
import { Effect, Result, Schema } from "effect";
|
|
11
11
|
import { Markdown, MarkdownTransform, Paragraph, Text } from "@effected/markdown";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/changesets/changelog/getReleaseLine.ts
|
|
14
14
|
/**
|
|
15
15
|
* Stringify a single block node back to markdown, trimmed.
|
|
16
16
|
*
|
|
@@ -176,5 +176,4 @@ function getReleaseLine(changeset, versionType, options) {
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
//#endregion
|
|
180
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 };
|
|
@@ -4,7 +4,7 @@ import { toString } from "mdast-util-to-string";
|
|
|
4
4
|
import { lintRule } from "unified-lint-rule";
|
|
5
5
|
import { visit } from "unist-util-visit";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/changesets/remark/rules/required-sections.ts
|
|
8
8
|
const RequiredSectionsRule = lintRule("remark-lint:changeset-required-sections", (tree, file) => {
|
|
9
9
|
visit(tree, "heading", (node) => {
|
|
10
10
|
if (node.depth !== 2) return;
|
|
@@ -13,5 +13,4 @@ const RequiredSectionsRule = lintRule("remark-lint:changeset-required-sections",
|
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { RequiredSectionsRule };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RULE_DOCS } from "../../constants.js";
|
|
2
2
|
import { lintRule } from "unified-lint-rule";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/remark/rules/uncategorized-content.ts
|
|
5
5
|
/**
|
|
6
6
|
* Node types to ignore when detecting uncategorized content (e.g., HTML comments).
|
|
7
7
|
*
|
|
@@ -27,5 +27,4 @@ const UncategorizedContentRule = lintRule("remark-lint:changeset-uncategorized-c
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
//#endregion
|
|
31
30
|
export { UncategorizedContentRule };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommitHashSchema } from "./git.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/schemas/changeset.ts
|
|
5
5
|
/**
|
|
6
6
|
* Effect schemas for changeset entries and dependency updates.
|
|
7
7
|
*
|
|
@@ -145,5 +145,4 @@ const DependencyUpdateSchema = Schema.Struct({
|
|
|
145
145
|
newVersion: Schema.String
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
//#endregion
|
|
149
148
|
export { ChangesetSchema, ChangesetSummarySchema, DependencyTypeSchema, DependencyUpdateSchema };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NonEmptyString } from "./primitives.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/changesets/schemas/dependency-table.ts
|
|
5
5
|
/**
|
|
6
6
|
* Effect schemas for structured dependency table entries.
|
|
7
7
|
*
|
|
@@ -213,5 +213,4 @@ const DependencyTableRowSchema = Schema.Struct({
|
|
|
213
213
|
*/
|
|
214
214
|
const DependencyTableSchema = Schema.Array(DependencyTableRowSchema).check(Schema.isMinLength(1));
|
|
215
215
|
|
|
216
|
-
//#endregion
|
|
217
216
|
export { DependencyActionSchema, DependencyTableRowSchema, DependencyTableSchema, DependencyTableTypeSchema, VERSION_RE, VersionOrEmptySchema };
|
|
@@ -2,7 +2,7 @@ import { NonEmptyString } from "./primitives.js";
|
|
|
2
2
|
import { DependencyActionSchema, DependencyTableTypeSchema } from "./dependency-table.js";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/changesets/schemas/deps-regen.ts
|
|
6
6
|
/**
|
|
7
7
|
* Result schemas for DepsRegen: the side-effect-free regen plan and the result
|
|
8
8
|
* of applying it.
|
|
@@ -74,5 +74,4 @@ const RegenResultSchema = Schema.Struct({
|
|
|
74
74
|
coexisting: Schema.Array(CoexistingChangesetSchema)
|
|
75
75
|
}).annotate({ identifier: "RegenResult" });
|
|
76
76
|
|
|
77
|
-
//#endregion
|
|
78
77
|
export { CoexistingChangesetSchema, RegenDiffRowSchema, RegenPlanSchema, RegenResultSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/changesets/schemas/git.ts
|
|
4
4
|
/**
|
|
5
5
|
* Git-related Effect schemas for commit hashes and version bump types.
|
|
6
6
|
*
|
|
@@ -69,5 +69,4 @@ const VersionTypeSchema = Schema.Literals([
|
|
|
69
69
|
"none"
|
|
70
70
|
]);
|
|
71
71
|
|
|
72
|
-
//#endregion
|
|
73
72
|
export { CommitHashSchema, VersionTypeSchema };
|
|
@@ -2,7 +2,7 @@ import { PositiveInteger } from "./primitives.js";
|
|
|
2
2
|
import { MARKDOWN_LINK_PATTERN } from "../utils/markdown-link.js";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/changesets/schemas/github.ts
|
|
6
6
|
/**
|
|
7
7
|
* GitHub-related Effect schemas for usernames, issue numbers, and API responses.
|
|
8
8
|
*
|
|
@@ -170,5 +170,4 @@ const GitHubInfoSchema = Schema.Struct({
|
|
|
170
170
|
})
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
//#endregion
|
|
174
173
|
export { GitHubInfoSchema, IssueNumberSchema, UrlOrMarkdownLinkSchema, UsernameSchema };
|