versionary 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -19
- package/dist/cli/index.js +7 -18
- package/dist/config/schema.d.ts +9 -0
- package/dist/config/schema.js +3 -0
- package/dist/{infra/git → git}/commits.d.ts +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +10 -10
- package/dist/release/artifact-rules.d.ts +3 -0
- package/dist/{domain/release → release}/changelog.d.ts +13 -2
- package/dist/{domain/release → release}/changelog.js +59 -6
- package/dist/{domain/release → release}/plan.d.ts +13 -1
- package/dist/{domain/release → release}/plan.js +50 -19
- package/dist/{app/release → release}/pr.d.ts +3 -3
- package/dist/{app/release → release}/pr.js +60 -66
- package/dist/{app/release → release}/recovery.d.ts +2 -1
- package/dist/{app/release → release}/release.d.ts +2 -2
- package/dist/{app/release → release}/release.js +14 -17
- package/dist/{app/release → release}/state.js +1 -1
- package/dist/{verify → release}/verify-project.js +2 -2
- package/dist/scm/client.d.ts +2 -0
- package/dist/scm/client.js +7 -0
- package/dist/scm/github-plugin.d.ts +2 -1
- package/dist/scm/github-plugin.js +2 -0
- package/dist/scm/types.d.ts +37 -0
- package/dist/{domain/strategy → strategy}/node.js +13 -0
- package/dist/{domain/strategy → strategy}/package-context.d.ts +1 -1
- package/dist/{domain/strategy → strategy}/package-context.js +2 -2
- package/dist/{domain/strategy → strategy}/r.js +14 -0
- package/dist/{domain/strategy → strategy}/resolve.d.ts +2 -1
- package/dist/strategy/resolve.js +21 -0
- package/dist/{domain/strategy → strategy}/rust.js +42 -0
- package/dist/strategy/types.d.ts +21 -0
- package/dist/types/config.d.ts +4 -0
- package/dist/types/plugins.d.ts +7 -30
- package/package.json +1 -1
- package/dist/app/release/artifact-rules.d.ts +0 -3
- package/dist/app/release/verify.d.ts +0 -2
- package/dist/app/release/verify.js +0 -5
- package/dist/domain/strategy/resolve.js +0 -19
- package/dist/domain/strategy/types.d.ts +0 -7
- package/dist/infra/scm/github/plugin.d.ts +0 -1
- package/dist/infra/scm/github/plugin.js +0 -5
- package/dist/infra/scm/runtime.d.ts +0 -2
- package/dist/infra/scm/runtime.js +0 -7
- package/dist/infra/scm/types.d.ts +0 -1
- package/dist/plugins/runtime.d.ts +0 -1
- package/dist/plugins/runtime.js +0 -5
- package/dist/strategies/node.d.ts +0 -1
- package/dist/strategies/node.js +0 -5
- package/dist/strategies/resolve.d.ts +0 -1
- package/dist/strategies/resolve.js +0 -5
- package/dist/strategies/simple.d.ts +0 -1
- package/dist/strategies/simple.js +0 -5
- package/dist/strategies/types.d.ts +0 -1
- package/dist/strategies/types.js +0 -2
- /package/dist/{infra/git → git}/commits.js +0 -0
- /package/dist/{infra/git → git}/repo-url.d.ts +0 -0
- /package/dist/{infra/git → git}/repo-url.js +0 -0
- /package/dist/{app/release → release}/artifact-rules.js +0 -0
- /package/dist/{app/release → release}/recovery.js +0 -0
- /package/dist/{domain/release → release}/semver.d.ts +0 -0
- /package/dist/{domain/release → release}/semver.js +0 -0
- /package/dist/{app/release → release}/state.d.ts +0 -0
- /package/dist/{verify → release}/verify-project.d.ts +0 -0
- /package/dist/{plugins → scm}/capabilities.d.ts +0 -0
- /package/dist/{plugins → scm}/capabilities.js +0 -0
- /package/dist/{domain/strategy → scm}/types.js +0 -0
- /package/dist/{domain/strategy → strategy}/node.d.ts +0 -0
- /package/dist/{domain/strategy → strategy}/r.d.ts +0 -0
- /package/dist/{domain/strategy → strategy}/rust.d.ts +0 -0
- /package/dist/{domain/strategy → strategy}/simple.d.ts +0 -0
- /package/dist/{domain/strategy → strategy}/simple.js +0 -0
- /package/dist/{infra/scm → strategy}/types.js +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.verifyProject = void 0;
|
|
4
|
-
var verify_project_js_1 = require("../../verify/verify-project.js");
|
|
5
|
-
Object.defineProperty(exports, "verifyProject", { enumerable: true, get: function () { return verify_project_js_1.verifyProject; } });
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveVersionStrategy = resolveVersionStrategy;
|
|
4
|
-
const node_js_1 = require("./node.js");
|
|
5
|
-
const r_js_1 = require("./r.js");
|
|
6
|
-
const rust_js_1 = require("./rust.js");
|
|
7
|
-
const simple_js_1 = require("./simple.js");
|
|
8
|
-
function resolveVersionStrategy(config) {
|
|
9
|
-
if (config["release-type"] === "node") {
|
|
10
|
-
return node_js_1.nodeVersionStrategy;
|
|
11
|
-
}
|
|
12
|
-
if (config["release-type"] === "rust") {
|
|
13
|
-
return rust_js_1.rustVersionStrategy;
|
|
14
|
-
}
|
|
15
|
-
if (config["release-type"] === "r") {
|
|
16
|
-
return r_js_1.rVersionStrategy;
|
|
17
|
-
}
|
|
18
|
-
return simple_js_1.simpleVersionStrategy;
|
|
19
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { VersionaryConfig } from "../../types/config.js";
|
|
2
|
-
export interface VersionStrategy {
|
|
3
|
-
name: string;
|
|
4
|
-
getVersionFile(config: VersionaryConfig): string;
|
|
5
|
-
readVersion(cwd: string, config: VersionaryConfig): string;
|
|
6
|
-
writeVersion(cwd: string, config: VersionaryConfig, version: string): string[];
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createGitHubPlugin } from "../../../scm/github-plugin.js";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createGitHubPlugin = void 0;
|
|
4
|
-
var github_plugin_js_1 = require("../../../scm/github-plugin.js");
|
|
5
|
-
Object.defineProperty(exports, "createGitHubPlugin", { enumerable: true, get: function () { return github_plugin_js_1.createGitHubPlugin; } });
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadRuntimePlugins = loadRuntimePlugins;
|
|
4
|
-
const plugin_js_1 = require("./github/plugin.js");
|
|
5
|
-
function loadRuntimePlugins() {
|
|
6
|
-
return [(0, plugin_js_1.createGitHubPlugin)()];
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { VersionaryPluginCapability, VersionaryPluginContext, VersionaryPluginRuntime, VersionaryScmReleaseMetadataInput, VersionaryScmReleaseMetadataResult, VersionaryScmReviewRequestInput, VersionaryScmReviewRequestResult, } from "../../types/plugins.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { loadRuntimePlugins } from "../infra/scm/runtime.js";
|
package/dist/plugins/runtime.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.loadRuntimePlugins = void 0;
|
|
4
|
-
var runtime_js_1 = require("../infra/scm/runtime.js");
|
|
5
|
-
Object.defineProperty(exports, "loadRuntimePlugins", { enumerable: true, get: function () { return runtime_js_1.loadRuntimePlugins; } });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { nodeVersionStrategy } from "../domain/strategy/node.js";
|
package/dist/strategies/node.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nodeVersionStrategy = void 0;
|
|
4
|
-
var node_js_1 = require("../domain/strategy/node.js");
|
|
5
|
-
Object.defineProperty(exports, "nodeVersionStrategy", { enumerable: true, get: function () { return node_js_1.nodeVersionStrategy; } });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { resolveVersionStrategy } from "../domain/strategy/resolve.js";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveVersionStrategy = void 0;
|
|
4
|
-
var resolve_js_1 = require("../domain/strategy/resolve.js");
|
|
5
|
-
Object.defineProperty(exports, "resolveVersionStrategy", { enumerable: true, get: function () { return resolve_js_1.resolveVersionStrategy; } });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { simpleVersionStrategy } from "../domain/strategy/simple.js";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.simpleVersionStrategy = void 0;
|
|
4
|
-
var simple_js_1 = require("../domain/strategy/simple.js");
|
|
5
|
-
Object.defineProperty(exports, "simpleVersionStrategy", { enumerable: true, get: function () { return simple_js_1.simpleVersionStrategy; } });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { VersionStrategy } from "../domain/strategy/types.js";
|
package/dist/strategies/types.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|