@savvy-web/silk-effects 1.3.1 → 1.5.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/changesets/categories/types.js +0 -1
- package/changesets/changelog/index.js +0 -2
- package/changesets/constants.js +0 -1
- package/changesets/errors.js +25 -2
- package/changesets/index.js +17 -2
- package/changesets/markdownlint/rules/dependency-table-format.js +2 -2
- package/changesets/remark/rules/uncategorized-content.js +1 -1
- package/changesets/schemas/changeset.js +0 -1
- package/changesets/schemas/dependency-table.js +0 -1
- package/changesets/schemas/git.js +0 -1
- package/changesets/schemas/github.js +0 -1
- package/changesets/schemas/options.js +0 -1
- package/changesets/schemas/package-scope.js +0 -1
- package/changesets/schemas/primitives.js +0 -1
- package/changesets/schemas/release-plan.js +56 -0
- package/changesets/schemas/version-files.js +0 -1
- package/changesets/services/branch-analyzer.js +0 -1
- package/changesets/services/config-inspector.js +1 -2
- package/changesets/services/release-planner.js +251 -0
- package/changesets/services/workspace-snapshot.js +0 -1
- package/changesets/utils/publishability.js +2 -3
- package/changesets/utils/worktree-snapshot.js +1 -1
- package/commitlint/config/factory.js +1 -1
- package/commitlint/hook/diagnostics/package-manager.js +1 -1
- package/commitlint/index.js +0 -1
- package/errors/BiomeSyncError.js +2 -1
- package/errors/ChangesetConfigError.js +2 -1
- package/errors/ConfigNotFoundError.js +2 -1
- package/errors/SectionParseError.js +1 -0
- package/errors/SectionValidationError.js +1 -0
- package/errors/SectionWriteError.js +1 -0
- package/errors/TagFormatError.js +2 -1
- package/errors/ToolNotFoundError.js +1 -0
- package/errors/ToolResolutionError.js +1 -0
- package/errors/ToolVersionMismatchError.js +1 -0
- package/errors/VersioningDetectionError.js +2 -1
- package/errors/WorkspaceAnalysisError.js +2 -1
- package/index.d.ts +420 -85
- package/lint/handlers/PnpmWorkspace.js +1 -1
- package/package.json +5 -1
- package/schemas/CommentStyle.js +1 -0
- package/schemas/ResolvedTool.js +2 -1
- package/schemas/SavvySections.js +6 -1
- package/schemas/SectionBlock.js +3 -2
- package/schemas/SectionDefinition.js +4 -2
- package/schemas/SectionResults.js +12 -3
- package/schemas/TagStrategySchemas.js +2 -1
- package/schemas/ToolDefinition.js +2 -1
- package/schemas/ToolResults.js +18 -4
- package/schemas/VersioningSchemas.js +7 -3
- package/schemas/WorkspaceAnalysisSchemas.js +3 -0
- package/services/BiomeSchemaSync.js +4 -0
- package/services/ChangesetConfig.js +2 -0
- package/services/ChangesetConfigReader.js +4 -2
- package/services/ConfigDiscovery.js +2 -0
- package/services/ManagedSection.js +2 -0
- package/services/SilkPublishability.js +16 -12
- package/services/SilkWorkspaceAnalyzer.js +4 -2
- package/services/TagStrategy.js +3 -1
- package/services/ToolDiscovery.js +2 -0
- package/services/VersioningStrategy.js +2 -0
- package/utils/ToolCommand.js +2 -1
package/errors/BiomeSyncError.js
CHANGED
|
@@ -5,11 +5,12 @@ import { Data } from "effect";
|
|
|
5
5
|
* Raised when a Biome config file cannot be read or its `$schema` URL cannot be updated.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Returned by
|
|
8
|
+
* Returned by `BiomeSchemaSync.sync` and `BiomeSchemaSync.check` when
|
|
9
9
|
* a `biome.json` or `biome.jsonc` file exists but cannot be read, contains invalid JSON,
|
|
10
10
|
* or cannot be written back to disk.
|
|
11
11
|
*
|
|
12
12
|
* @since 0.1.0
|
|
13
|
+
* @public
|
|
13
14
|
*/
|
|
14
15
|
var BiomeSyncError = class extends Data.TaggedError("BiomeSyncError") {
|
|
15
16
|
get message() {
|
|
@@ -5,10 +5,11 @@ import { Data } from "effect";
|
|
|
5
5
|
* Raised when the `.changeset/config.json` file cannot be read or decoded.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Returned by
|
|
8
|
+
* Returned by `ChangesetConfigReader.read` when the file is missing,
|
|
9
9
|
* contains invalid JSON, or fails Effect Schema validation.
|
|
10
10
|
*
|
|
11
11
|
* @since 0.1.0
|
|
12
|
+
* @public
|
|
12
13
|
*/
|
|
13
14
|
var ChangesetConfigError = class extends Data.TaggedError("ChangesetConfigError") {
|
|
14
15
|
get message() {
|
|
@@ -5,11 +5,12 @@ import { Data } from "effect";
|
|
|
5
5
|
* Raised when a config file cannot be located in any of the expected locations.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Returned by consumers that require a config file to exist.
|
|
8
|
+
* Returned by consumers that require a config file to exist. `ConfigDiscovery.find`
|
|
9
9
|
* itself returns `null` instead of failing — callers that need a hard failure should
|
|
10
10
|
* map `null` to this error.
|
|
11
11
|
*
|
|
12
12
|
* @since 0.1.0
|
|
13
|
+
* @public
|
|
13
14
|
*/
|
|
14
15
|
var ConfigNotFoundError = class extends Data.TaggedError("ConfigNotFoundError") {
|
|
15
16
|
get message() {
|
package/errors/TagFormatError.js
CHANGED
|
@@ -5,10 +5,11 @@ import { Data } from "effect";
|
|
|
5
5
|
* Raised when a git tag string cannot be formatted for the given package name and version.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Returned by
|
|
8
|
+
* Returned by `TagStrategy.formatTag` when the `version` argument is an empty string
|
|
9
9
|
* or another invariant prevents tag construction.
|
|
10
10
|
*
|
|
11
11
|
* @since 0.1.0
|
|
12
|
+
* @public
|
|
12
13
|
*/
|
|
13
14
|
var TagFormatError = class extends Data.TaggedError("TagFormatError") {
|
|
14
15
|
get message() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
3
|
//#region src/errors/ToolVersionMismatchError.ts
|
|
4
|
+
/** @public */
|
|
4
5
|
var ToolVersionMismatchError = class extends Data.TaggedError("ToolVersionMismatchError") {
|
|
5
6
|
get message() {
|
|
6
7
|
return `Tool version mismatch: ${this.name} — global ${this.globalVersion} vs local ${this.localVersion}`;
|
|
@@ -5,10 +5,11 @@ import { Data } from "effect";
|
|
|
5
5
|
* Raised when the versioning strategy cannot be determined from the workspace state.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Returned by
|
|
8
|
+
* Returned by `VersioningStrategy.detect` when an unexpected condition
|
|
9
9
|
* prevents strategy classification.
|
|
10
10
|
*
|
|
11
11
|
* @since 0.1.0
|
|
12
|
+
* @public
|
|
12
13
|
*/
|
|
13
14
|
var VersioningDetectionError = class extends Data.TaggedError("VersioningDetectionError") {
|
|
14
15
|
get message() {
|
|
@@ -5,11 +5,12 @@ import { Data } from "effect";
|
|
|
5
5
|
* Raised when workspace analysis fails for a given root directory.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Returned by
|
|
8
|
+
* Returned by `SilkWorkspaceAnalyzer.analyze` when the analysis pipeline
|
|
9
9
|
* encounters an unrecoverable error — e.g. workspace discovery failure,
|
|
10
10
|
* package manager detection failure, or publishability detection errors.
|
|
11
11
|
*
|
|
12
12
|
* @since 0.2.0
|
|
13
|
+
* @public
|
|
13
14
|
*/
|
|
14
15
|
var WorkspaceAnalysisError = class extends Data.TaggedError("WorkspaceAnalysisError") {
|
|
15
16
|
get message() {
|