@bleedingdev/modern-js-code-tools 3.9.0-ultramodern.9 → 3.9.3-ultramodern.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/bin/modern-api-check-files.mjs +4 -1
- package/bin/modern-api-check.mjs +1 -1
- package/bin/modern-i18n-check.mjs +4 -0
- package/dist/cjs/cli/microvertical-api-check.cjs +36 -7
- package/dist/cjs/cli/workspace-source-check.cjs +90 -17
- package/dist/cjs/microvertical-api-baseline.cjs +81 -244
- package/dist/cjs/microvertical-api-boundary.cjs +116 -38
- package/dist/cjs/microvertical-api-owner.cjs +5 -2
- package/dist/cjs/module-graph.cjs +1820 -0
- package/dist/cjs/oxlint-plugin/rules/strict-effect-api-boundaries.cjs +1 -1
- package/dist/cjs/source-analysis.cjs +108 -0
- package/dist/cjs/strict-effect-runtime.cjs +16 -51
- package/dist/esm/cli/microvertical-api-check.js +26 -7
- package/dist/esm/cli/workspace-source-check.js +86 -13
- package/dist/esm/microvertical-api-baseline.js +66 -214
- package/dist/esm/microvertical-api-boundary.js +114 -39
- package/dist/esm/microvertical-api-owner.js +5 -2
- package/dist/esm/module-graph.js +1762 -0
- package/dist/esm/oxlint-plugin/rules/strict-effect-api-boundaries.js +1 -1
- package/dist/esm/source-analysis.js +48 -0
- package/dist/esm/strict-effect-runtime.js +16 -50
- package/dist/esm-node/cli/microvertical-api-check.js +26 -7
- package/dist/esm-node/cli/workspace-source-check.js +86 -13
- package/dist/esm-node/microvertical-api-baseline.js +66 -214
- package/dist/esm-node/microvertical-api-boundary.js +114 -39
- package/dist/esm-node/microvertical-api-owner.js +5 -2
- package/dist/esm-node/module-graph.js +1763 -0
- package/dist/esm-node/oxlint-plugin/rules/strict-effect-api-boundaries.js +1 -1
- package/dist/esm-node/source-analysis.js +49 -0
- package/dist/esm-node/strict-effect-runtime.js +16 -50
- package/dist/types/cli/microvertical-api-check.d.ts +1 -1
- package/dist/types/cli/workspace-source-check.d.ts +1 -1
- package/dist/types/microvertical-api-baseline.d.ts +0 -5
- package/dist/types/microvertical-api-boundary.d.ts +15 -1
- package/dist/types/microvertical-api-owner.d.ts +1 -1
- package/dist/types/module-graph.d.ts +92 -0
- package/dist/types/source-analysis.d.ts +13 -0
- package/package.json +17 -13
|
@@ -37,7 +37,7 @@ function importTarget(value) {
|
|
|
37
37
|
if (resolved) return resolved;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function baselinePublicIdentityIsExact(fromFile, expectation) {
|
|
40
|
+
function baselinePublicIdentityIsExact(fromFile, expectation, reportMismatch) {
|
|
41
41
|
const owner = node_fs.realpathSync(expectation.baselinePackageDirectory);
|
|
42
42
|
const manifest = JSON.parse(node_fs.readFileSync(node_path.join(owner, 'package.json'), 'utf8'));
|
|
43
43
|
if (expectation.baselinePackage !== baselinePackage || ![
|
|
@@ -51,7 +51,10 @@ function baselinePublicIdentityIsExact(fromFile, expectation) {
|
|
|
51
51
|
if (error instanceof Error && error.message.includes('resolved to unrelated package')) return false;
|
|
52
52
|
throw error;
|
|
53
53
|
}
|
|
54
|
-
if (resolvedOwner !== owner)
|
|
54
|
+
if (resolvedOwner !== owner) {
|
|
55
|
+
reportMismatch?.(`selected owner ${owner}; consumer resolves ${resolvedOwner}`);
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
55
58
|
const target = importTarget(manifest.exports?.['./microvertical-api']);
|
|
56
59
|
if (!target?.startsWith('./')) return false;
|
|
57
60
|
const modules = new Map();
|