@effected/engine 0.17.1 → 0.17.2
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/package.json +3 -3
- package/schema/ConfigLoader.js +1 -1
- package/schema/VersionCheck.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/engine",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The effected tool's shared logic, consumed by its CLI and MCP front ends",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@effected/bundler": "0.
|
|
49
|
+
"@effected/bundler": "0.5.0",
|
|
50
50
|
"@effected/files": "0.3.0",
|
|
51
51
|
"@effected/jsonc": "0.25.0",
|
|
52
52
|
"@effected/jsonl": "0.19.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@effected/workspaces": "0.47.0",
|
|
57
57
|
"ajv": "8.20.0",
|
|
58
58
|
"ajv-formats": "3.0.1",
|
|
59
|
-
"effect": "4.1.
|
|
59
|
+
"effect": "4.1.4",
|
|
60
60
|
"jiti": "~2.7.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
package/schema/ConfigLoader.js
CHANGED
|
@@ -62,7 +62,7 @@ const jitiImport = async (path, source) => {
|
|
|
62
62
|
const describeCause = (cause) => {
|
|
63
63
|
return (Predicate.hasProperty(cause, "stack") && Predicate.isString(cause.stack) && cause.stack.trim() !== "" ? cause.stack : void 0) ?? causeMessage(cause) ?? String(cause);
|
|
64
64
|
};
|
|
65
|
-
const IMPORT_HINTS = [[/Cannot find (?:module|package) '@effected\/plugin['/]/, "Install it as a devDependency: pnpm add -D @effected/plugin"], [/Expected a HostedSchema/, "The config's @effected/schemastore may be older than the tool's.
|
|
65
|
+
const IMPORT_HINTS = [[/Cannot find (?:module|package) '@effected\/plugin['/]/, "Install it as a devDependency: pnpm add -D @effected/plugin"], [/Expected a HostedSchema/, "The config's @effected/schemastore may be older than the tool's. Import defineSchemastore and HostedSchema from @effected/plugin, which is the tool's own copy, or align @effected/schemastore with the version @effected/plugin carries, as catalog:effected does"]];
|
|
66
66
|
const describeImportFailure = (cause) => {
|
|
67
67
|
const text = describeCause(cause);
|
|
68
68
|
const hint = IMPORT_HINTS.find(([pattern]) => pattern.test(text))?.[1];
|
package/schema/VersionCheck.js
CHANGED
|
@@ -73,7 +73,7 @@ var VersionCheck = class {
|
|
|
73
73
|
return Option.some(VersionMismatch.make({
|
|
74
74
|
tool,
|
|
75
75
|
found,
|
|
76
|
-
message: `The tool uses @effected/schemastore ${tool}, but the config's values come from another version (${lines}).
|
|
76
|
+
message: `The tool uses @effected/schemastore ${tool}, but the config's values come from another version (${lines}). Build the config's values with the authoring surface @effected/plugin exports (defineSchemastore, HostedSchema, SchemaTarget and the rest), which is the tool's own copy, or align @effected/schemastore with the version @effected/plugin carries, as catalog:effected does.`
|
|
77
77
|
}));
|
|
78
78
|
}
|
|
79
79
|
};
|