zedbee 0.1.0-beta.16 → 0.1.0-beta.18
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/THIRD_PARTY_NOTICES.md +68 -74
- package/dist/attribution/metrics.d.ts.map +1 -1
- package/dist/attribution/metrics.js +8 -5
- package/dist/attribution/metrics.js.map +1 -1
- package/dist/attribution/pair-source-moves.d.ts +12 -0
- package/dist/attribution/pair-source-moves.d.ts.map +1 -0
- package/dist/attribution/pair-source-moves.js +108 -0
- package/dist/attribution/pair-source-moves.js.map +1 -0
- package/dist/attribution/source-moves.d.ts +47 -0
- package/dist/attribution/source-moves.d.ts.map +1 -0
- package/dist/attribution/source-moves.js +199 -0
- package/dist/attribution/source-moves.js.map +1 -0
- package/dist/cache/captured-dependencies.d.ts +24 -1
- package/dist/cache/captured-dependencies.d.ts.map +1 -1
- package/dist/cache/captured-dependencies.js +146 -25
- package/dist/cache/captured-dependencies.js.map +1 -1
- package/dist/cache/dependency-inputs.d.ts +3 -1
- package/dist/cache/dependency-inputs.d.ts.map +1 -1
- package/dist/cache/dependency-inputs.js +7 -3
- package/dist/cache/dependency-inputs.js.map +1 -1
- package/dist/checks/adapter.d.ts +1 -0
- package/dist/checks/adapter.d.ts.map +1 -1
- package/dist/checks/applicability.d.ts.map +1 -1
- package/dist/checks/applicability.js +1 -1
- package/dist/checks/applicability.js.map +1 -1
- package/dist/checks/changed-file-paths.d.ts.map +1 -1
- package/dist/checks/changed-file-paths.js +7 -1
- package/dist/checks/changed-file-paths.js.map +1 -1
- package/dist/checks/closed-compiler-project.d.ts +5 -0
- package/dist/checks/closed-compiler-project.d.ts.map +1 -0
- package/dist/checks/closed-compiler-project.js +106 -0
- package/dist/checks/closed-compiler-project.js.map +1 -0
- package/dist/checks/comparison-context.d.ts +3 -1
- package/dist/checks/comparison-context.d.ts.map +1 -1
- package/dist/checks/comparison-context.js +122 -7
- package/dist/checks/comparison-context.js.map +1 -1
- package/dist/checks/compiler-change-inputs.d.ts +12 -0
- package/dist/checks/compiler-change-inputs.d.ts.map +1 -0
- package/dist/checks/compiler-change-inputs.js +104 -0
- package/dist/checks/compiler-change-inputs.js.map +1 -0
- package/dist/checks/compiler-inputs.d.ts +1 -1
- package/dist/checks/compiler-inputs.d.ts.map +1 -1
- package/dist/checks/compiler-inputs.js +65 -5
- package/dist/checks/compiler-inputs.js.map +1 -1
- package/dist/checks/complexity/adapter.d.ts.map +1 -1
- package/dist/checks/complexity/adapter.js +21 -2
- package/dist/checks/complexity/adapter.js.map +1 -1
- package/dist/checks/dead-code/adapter.d.ts.map +1 -1
- package/dist/checks/dead-code/adapter.js +16 -5
- package/dist/checks/dead-code/adapter.js.map +1 -1
- package/dist/checks/dead-code/entry-configuration.d.ts +6 -0
- package/dist/checks/dead-code/entry-configuration.d.ts.map +1 -0
- package/dist/checks/dead-code/entry-configuration.js +48 -0
- package/dist/checks/dead-code/entry-configuration.js.map +1 -0
- package/dist/checks/dead-code/managed-config.d.ts +1 -1
- package/dist/checks/dead-code/managed-config.d.ts.map +1 -1
- package/dist/checks/dead-code/managed-config.js +24 -3
- package/dist/checks/dead-code/managed-config.js.map +1 -1
- package/dist/checks/dead-code/vite-entrypoints.d.ts +13 -0
- package/dist/checks/dead-code/vite-entrypoints.d.ts.map +1 -0
- package/dist/checks/dead-code/vite-entrypoints.js +314 -0
- package/dist/checks/dead-code/vite-entrypoints.js.map +1 -0
- package/dist/checks/diagnostic-details.d.ts.map +1 -1
- package/dist/checks/diagnostic-details.js +32 -0
- package/dist/checks/diagnostic-details.js.map +1 -1
- package/dist/checks/dispatch-cache.d.ts.map +1 -1
- package/dist/checks/dispatch-cache.js +9 -0
- package/dist/checks/dispatch-cache.js.map +1 -1
- package/dist/checks/dispatch-context.d.ts.map +1 -1
- package/dist/checks/dispatch-context.js +1 -0
- package/dist/checks/dispatch-context.js.map +1 -1
- package/dist/checks/dispatch-target.d.ts.map +1 -1
- package/dist/checks/dispatch-target.js +36 -5
- package/dist/checks/dispatch-target.js.map +1 -1
- package/dist/checks/dispatcher.d.ts.map +1 -1
- package/dist/checks/dispatcher.js +20 -7
- package/dist/checks/dispatcher.js.map +1 -1
- package/dist/checks/engine-identity.d.ts.map +1 -1
- package/dist/checks/engine-identity.js +9 -8
- package/dist/checks/engine-identity.js.map +1 -1
- package/dist/checks/eslint/convert-message.d.ts.map +1 -1
- package/dist/checks/eslint/convert-message.js +5 -2
- package/dist/checks/eslint/convert-message.js.map +1 -1
- package/dist/checks/incomplete-error.d.ts +3 -0
- package/dist/checks/incomplete-error.d.ts.map +1 -1
- package/dist/checks/incomplete-error.js +4 -0
- package/dist/checks/incomplete-error.js.map +1 -1
- package/dist/checks/incomplete-result.d.ts +1 -0
- package/dist/checks/incomplete-result.d.ts.map +1 -1
- package/dist/checks/incomplete-result.js +3 -0
- package/dist/checks/incomplete-result.js.map +1 -1
- package/dist/checks/installation-diagnostic.d.ts +11 -0
- package/dist/checks/installation-diagnostic.d.ts.map +1 -0
- package/dist/checks/installation-diagnostic.js +71 -0
- package/dist/checks/installation-diagnostic.js.map +1 -0
- package/dist/checks/observation-result.d.ts.map +1 -1
- package/dist/checks/observation-result.js +69 -7
- package/dist/checks/observation-result.js.map +1 -1
- package/dist/checks/prettier/settings.d.ts +2 -2
- package/dist/checks/project-inputs.d.ts +1 -1
- package/dist/checks/project-inputs.d.ts.map +1 -1
- package/dist/checks/project-inputs.js +13 -4
- package/dist/checks/project-inputs.js.map +1 -1
- package/dist/checks/react/adapter.d.ts.map +1 -1
- package/dist/checks/react/adapter.js +38 -5
- package/dist/checks/react/adapter.js.map +1 -1
- package/dist/checks/runner/envelope.d.ts.map +1 -1
- package/dist/checks/runner/envelope.js +1 -0
- package/dist/checks/runner/envelope.js.map +1 -1
- package/dist/checks/runner/worker.js +3 -0
- package/dist/checks/runner/worker.js.map +1 -1
- package/dist/checks/sanitize-result.d.ts +1 -0
- package/dist/checks/sanitize-result.d.ts.map +1 -1
- package/dist/checks/sanitize-result.js +7 -0
- package/dist/checks/sanitize-result.js.map +1 -1
- package/dist/checks/source-moves.d.ts +9 -0
- package/dist/checks/source-moves.d.ts.map +1 -0
- package/dist/checks/source-moves.js +184 -0
- package/dist/checks/source-moves.js.map +1 -0
- package/dist/checks/structural-security/adapter.d.ts.map +1 -1
- package/dist/checks/structural-security/adapter.js +35 -55
- package/dist/checks/structural-security/adapter.js.map +1 -1
- package/dist/checks/structural-security/parse-failures.d.ts +6 -0
- package/dist/checks/structural-security/parse-failures.d.ts.map +1 -0
- package/dist/checks/structural-security/parse-failures.js +76 -0
- package/dist/checks/structural-security/parse-failures.js.map +1 -0
- package/dist/checks/structural-security/parser.d.ts +18 -0
- package/dist/checks/structural-security/parser.d.ts.map +1 -0
- package/dist/checks/structural-security/parser.js +96 -0
- package/dist/checks/structural-security/parser.js.map +1 -0
- package/dist/checks/structural-security/rules.d.ts.map +1 -1
- package/dist/checks/structural-security/rules.js +67 -113
- package/dist/checks/structural-security/rules.js.map +1 -1
- package/dist/checks/typescript/compiler-host.d.ts.map +1 -1
- package/dist/checks/typescript/compiler-host.js +68 -49
- package/dist/checks/typescript/compiler-host.js.map +1 -1
- package/dist/checks/typescript/compiler-scope-graph.d.ts +11 -0
- package/dist/checks/typescript/compiler-scope-graph.d.ts.map +1 -0
- package/dist/checks/typescript/compiler-scope-graph.js +694 -0
- package/dist/checks/typescript/compiler-scope-graph.js.map +1 -0
- package/dist/checks/typescript/compiler-scope-inputs.d.ts +20 -0
- package/dist/checks/typescript/compiler-scope-inputs.d.ts.map +1 -0
- package/dist/checks/typescript/compiler-scope-inputs.js +183 -0
- package/dist/checks/typescript/compiler-scope-inputs.js.map +1 -0
- package/dist/checks/typescript/config.d.ts +3 -0
- package/dist/checks/typescript/config.d.ts.map +1 -1
- package/dist/checks/typescript/config.js +2 -2
- package/dist/checks/typescript/config.js.map +1 -1
- package/dist/checks/typescript/configuration-paths.d.ts +3 -2
- package/dist/checks/typescript/configuration-paths.d.ts.map +1 -1
- package/dist/checks/typescript/configuration-paths.js +67 -12
- package/dist/checks/typescript/configuration-paths.js.map +1 -1
- package/dist/checks/typescript/convert-diagnostic.d.ts +1 -2
- package/dist/checks/typescript/convert-diagnostic.d.ts.map +1 -1
- package/dist/checks/typescript/convert-diagnostic.js +2 -16
- package/dist/checks/typescript/convert-diagnostic.js.map +1 -1
- package/dist/checks/typescript/diagnostic-message.d.ts +3 -0
- package/dist/checks/typescript/diagnostic-message.d.ts.map +1 -0
- package/dist/checks/typescript/diagnostic-message.js +18 -0
- package/dist/checks/typescript/diagnostic-message.js.map +1 -0
- package/dist/checks/typescript/project-coverage.d.ts.map +1 -1
- package/dist/checks/typescript/project-coverage.js +3 -2
- package/dist/checks/typescript/project-coverage.js.map +1 -1
- package/dist/checks/typescript/reuse-inputs.d.ts +3 -0
- package/dist/checks/typescript/reuse-inputs.d.ts.map +1 -1
- package/dist/checks/typescript/reuse-inputs.js +14 -4
- package/dist/checks/typescript/reuse-inputs.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/checks.js +3 -3
- package/dist/commands/checks.js.map +1 -1
- package/dist/commands/diagnostics.d.ts +2 -0
- package/dist/commands/diagnostics.d.ts.map +1 -1
- package/dist/commands/diagnostics.js +34 -0
- package/dist/commands/diagnostics.js.map +1 -1
- package/dist/commands/fix.d.ts.map +1 -1
- package/dist/commands/fix.js +4 -1
- package/dist/commands/fix.js.map +1 -1
- package/dist/commands/scan.d.ts +1 -0
- package/dist/commands/scan.d.ts.map +1 -1
- package/dist/commands/scan.js +31 -3
- package/dist/commands/scan.js.map +1 -1
- package/dist/config/profiles.d.ts.map +1 -1
- package/dist/config/profiles.js +6 -0
- package/dist/config/profiles.js.map +1 -1
- package/dist/config/schema.d.ts +43 -23
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +16 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/config/settings-registry.js +2 -2
- package/dist/config/settings-registry.js.map +1 -1
- package/dist/core/types.d.ts +14 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/diagnostics/local-scan-diagnostics.d.ts +12 -0
- package/dist/diagnostics/local-scan-diagnostics.d.ts.map +1 -0
- package/dist/diagnostics/local-scan-diagnostics.js +138 -0
- package/dist/diagnostics/local-scan-diagnostics.js.map +1 -0
- package/dist/diagnostics/scan-performance.d.ts +2 -0
- package/dist/diagnostics/scan-performance.d.ts.map +1 -1
- package/dist/diagnostics/scan-performance.js +22 -20
- package/dist/diagnostics/scan-performance.js.map +1 -1
- package/dist/doctor/diagnostics.d.ts.map +1 -1
- package/dist/doctor/diagnostics.js +22 -3
- package/dist/doctor/diagnostics.js.map +1 -1
- package/dist/doctor/workspace-installation.d.ts +9 -0
- package/dist/doctor/workspace-installation.d.ts.map +1 -0
- package/dist/doctor/workspace-installation.js +165 -0
- package/dist/doctor/workspace-installation.js.map +1 -0
- package/dist/hooks/detect.d.ts +4 -0
- package/dist/hooks/detect.d.ts.map +1 -1
- package/dist/hooks/detect.js +5 -4
- package/dist/hooks/detect.js.map +1 -1
- package/dist/hooks/update-notice.d.ts +5 -0
- package/dist/hooks/update-notice.d.ts.map +1 -0
- package/dist/hooks/update-notice.js +145 -0
- package/dist/hooks/update-notice.js.map +1 -0
- package/dist/init/presentation.d.ts +2 -2
- package/dist/renderers/incomplete.d.ts +5 -1
- package/dist/renderers/incomplete.d.ts.map +1 -1
- package/dist/renderers/incomplete.js +29 -2
- package/dist/renderers/incomplete.js.map +1 -1
- package/dist/renderers/json.d.ts.map +1 -1
- package/dist/renderers/json.js +20 -3
- package/dist/renderers/json.js.map +1 -1
- package/dist/renderers/sarif.d.ts.map +1 -1
- package/dist/renderers/sarif.js +7 -0
- package/dist/renderers/sarif.js.map +1 -1
- package/dist/renderers/text.d.ts.map +1 -1
- package/dist/renderers/text.js +20 -0
- package/dist/renderers/text.js.map +1 -1
- package/dist/reporting/agent-guidance.d.ts.map +1 -1
- package/dist/reporting/agent-guidance.js +7 -0
- package/dist/reporting/agent-guidance.js.map +1 -1
- package/dist/reporting/finding-priority.d.ts +6 -0
- package/dist/reporting/finding-priority.d.ts.map +1 -0
- package/dist/reporting/finding-priority.js +69 -0
- package/dist/reporting/finding-priority.js.map +1 -0
- package/dist/reporting/fix-plan-store.d.ts +2 -5
- package/dist/reporting/fix-plan-store.d.ts.map +1 -1
- package/dist/reporting/fix-plan-store.js +2 -1
- package/dist/reporting/fix-plan-store.js.map +1 -1
- package/dist/reporting/fix-presentation.d.ts +1 -1
- package/dist/reporting/hook-update-notice.d.ts +12 -0
- package/dist/reporting/hook-update-notice.d.ts.map +1 -0
- package/dist/reporting/hook-update-notice.js +13 -0
- package/dist/reporting/hook-update-notice.js.map +1 -0
- package/dist/reporting/presentation.d.ts +3 -1
- package/dist/reporting/presentation.d.ts.map +1 -1
- package/dist/reporting/presentation.js +19 -7
- package/dist/reporting/presentation.js.map +1 -1
- package/dist/reporting/result-sections.d.ts +1 -0
- package/dist/reporting/result-sections.d.ts.map +1 -1
- package/dist/reporting/result-sections.js +12 -0
- package/dist/reporting/result-sections.js.map +1 -1
- package/dist/reporting/temporary-report-common.d.ts +13 -1
- package/dist/reporting/temporary-report-common.d.ts.map +1 -1
- package/dist/reporting/temporary-report-common.js +4 -1
- package/dist/reporting/temporary-report-common.js.map +1 -1
- package/dist/reporting/temporary-report-lifecycle.d.ts +3 -3
- package/dist/reporting/temporary-report-lifecycle.d.ts.map +1 -1
- package/dist/reporting/temporary-report-lifecycle.js +18 -4
- package/dist/reporting/temporary-report-lifecycle.js.map +1 -1
- package/dist/reporting/temporary-reports.d.ts +1 -1
- package/dist/reporting/temporary-reports.d.ts.map +1 -1
- package/dist/reporting/temporary-reports.js +22 -3
- package/dist/reporting/temporary-reports.js.map +1 -1
- package/dist/scan/analysis-session.d.ts.map +1 -1
- package/dist/scan/analysis-session.js +15 -1
- package/dist/scan/analysis-session.js.map +1 -1
- package/dist/scan/report.d.ts +6 -0
- package/dist/scan/report.d.ts.map +1 -1
- package/dist/scan/run-scan.d.ts.map +1 -1
- package/dist/scan/run-scan.js +17 -8
- package/dist/scan/run-scan.js.map +1 -1
- package/dist/service/server-connection.d.ts.map +1 -1
- package/dist/service/server-connection.js +2 -1
- package/dist/service/server-connection.js.map +1 -1
- package/dist/telemetry/schema.d.ts +45 -45
- package/dist/telemetry/state.d.ts +5 -5
- package/dist/ui/incomplete-list.d.ts.map +1 -1
- package/dist/ui/incomplete-list.js +4 -2
- package/dist/ui/incomplete-list.js.map +1 -1
- package/dist/ui/scan-result-dashboard.d.ts.map +1 -1
- package/dist/ui/scan-result-dashboard.js +7 -3
- package/dist/ui/scan-result-dashboard.js.map +1 -1
- package/docs/checks.md +106 -2
- package/docs/cli-reference.md +7 -1
- package/docs/privacy.md +15 -0
- package/docs/react-analysis.md +7 -0
- package/docs/reporting.md +43 -1
- package/docs/support.md +19 -0
- package/{node_modules/dependency-cruiser/node_modules/picomatch/LICENSE → licenses/overrides/jscpd-5.4.2-LICENSE} +5 -5
- package/licenses/overrides/napi-rs-wasm-runtime-1.2.5-LICENSE +43 -0
- package/licenses/reviewed-overrides.json +70 -0
- package/node_modules/acorn/CHANGELOG.md +14 -0
- package/node_modules/acorn/dist/acorn.js +42 -14
- package/node_modules/acorn/dist/acorn.mjs +42 -14
- package/node_modules/acorn/package.json +1 -1
- package/node_modules/dependency-cruiser/README.md +7 -8
- package/node_modules/dependency-cruiser/bin/depcruise-baseline.mjs +12 -5
- package/node_modules/dependency-cruiser/bin/{dependency-cruise.mjs → dependency-cruiser.mjs} +24 -14
- package/node_modules/dependency-cruiser/configs/rules/no-duplicate-dependency-types.cjs +1 -1
- package/node_modules/dependency-cruiser/node_modules/ignore/README.md +138 -8
- package/node_modules/dependency-cruiser/node_modules/ignore/index.d.ts +56 -20
- package/node_modules/dependency-cruiser/node_modules/ignore/index.js +1032 -229
- package/node_modules/dependency-cruiser/node_modules/ignore/legacy.js +868 -184
- package/node_modules/dependency-cruiser/node_modules/ignore/package.json +10 -4
- package/node_modules/dependency-cruiser/node_modules/semver/LICENSE +15 -0
- package/node_modules/dependency-cruiser/node_modules/semver/README.md +680 -0
- package/node_modules/dependency-cruiser/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/dependency-cruiser/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/dependency-cruiser/node_modules/semver/classes/index.js +7 -0
- package/node_modules/dependency-cruiser/node_modules/semver/classes/range.js +577 -0
- package/node_modules/dependency-cruiser/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/major.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/dependency-cruiser/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/dependency-cruiser/node_modules/semver/index.js +93 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/constants.js +67 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/re.js +223 -0
- package/node_modules/dependency-cruiser/node_modules/semver/internal/trim-comparator-whitespace.js +438 -0
- package/node_modules/dependency-cruiser/node_modules/semver/package.json +78 -0
- package/node_modules/dependency-cruiser/node_modules/semver/preload.js +4 -0
- package/node_modules/dependency-cruiser/node_modules/semver/range.bnf +17 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/dependency-cruiser/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/dependency-cruiser/package.json +16 -10
- package/node_modules/dependency-cruiser/src/analyze/analyze-modules.mjs +5 -1
- package/node_modules/dependency-cruiser/src/analyze/index.mjs +3 -3
- package/node_modules/dependency-cruiser/src/analyze/soften-known-violations.mjs +4 -2
- package/node_modules/dependency-cruiser/src/analyze/summarize/get-stats.mjs +38 -3
- package/node_modules/dependency-cruiser/src/analyze/summarize/index.mjs +28 -105
- package/node_modules/dependency-cruiser/src/analyze/summarize/summarize-options.mjs +3 -0
- package/node_modules/dependency-cruiser/src/analyze/summarize/verify-environment.mjs +146 -0
- package/node_modules/dependency-cruiser/src/cache/cache.mjs +1 -1
- package/node_modules/dependency-cruiser/src/cache/options-compatible.mjs +3 -0
- package/node_modules/dependency-cruiser/src/cli/defaults.mjs +0 -1
- package/node_modules/dependency-cruiser/src/cli/index.mjs +11 -3
- package/node_modules/dependency-cruiser/src/cli/init-config/build-config.mjs +14 -0
- package/node_modules/dependency-cruiser/src/cli/init-config/config-template.mjs +7 -2
- package/node_modules/dependency-cruiser/src/cli/init-config/environment-helpers.mjs +5 -1
- package/node_modules/dependency-cruiser/src/cli/init-config/get-user-input.mjs +11 -0
- package/node_modules/dependency-cruiser/src/cli/init-config/index.mjs +1 -0
- package/node_modules/dependency-cruiser/src/cli/init-config/normalize-init-options.mjs +1 -1
- package/node_modules/dependency-cruiser/src/cli/init-config/types.d.mts +4 -0
- package/node_modules/dependency-cruiser/src/cli/init-config/write-run-scripts-to-manifest.mjs +7 -7
- package/node_modules/dependency-cruiser/src/cli/normalize-cli-options.mjs +63 -2
- package/node_modules/dependency-cruiser/src/config-utl/extract-ts-config.mjs +1 -1
- package/node_modules/dependency-cruiser/src/extract/helpers.mjs +1 -0
- package/node_modules/dependency-cruiser/src/extract/resolve/determine-dependency-types.mjs +15 -7
- package/node_modules/dependency-cruiser/src/extract/resolve/merge-manifests.mjs +6 -3
- package/node_modules/dependency-cruiser/src/extract/swc/dependency-visitor.mjs +21 -4
- package/node_modules/dependency-cruiser/src/extract/swc/parse.mjs +14 -4
- package/node_modules/dependency-cruiser/src/extract/transpile/index.mjs +1 -1
- package/node_modules/dependency-cruiser/src/extract/transpile/meta.mjs +15 -3
- package/node_modules/dependency-cruiser/src/extract/transpile/svelte-wrap.mjs +23 -2
- package/node_modules/dependency-cruiser/src/extract/transpile/try-import-available.mjs +2 -2
- package/node_modules/dependency-cruiser/src/extract/transpile/typescript-wrap.mjs +23 -1
- package/node_modules/dependency-cruiser/src/extract/tsc/extract-typescript-deps.mjs +57 -12
- package/node_modules/dependency-cruiser/src/extract/tsc/extract.mjs +2 -0
- package/node_modules/dependency-cruiser/src/graph-utl/add-focus.mjs +2 -2
- package/node_modules/dependency-cruiser/src/graph-utl/compare.mjs +113 -14
- package/node_modules/dependency-cruiser/src/main/cruise.mjs +1 -2
- package/node_modules/dependency-cruiser/src/main/format.mjs +1 -1
- package/node_modules/dependency-cruiser/src/main/options/defaults.mjs +1 -0
- package/node_modules/dependency-cruiser/src/main/options/normalize.mjs +13 -4
- package/node_modules/dependency-cruiser/src/main/report-wrap.mjs +4 -2
- package/node_modules/dependency-cruiser/src/main/resolve-options/normalize.mjs +0 -27
- package/node_modules/dependency-cruiser/src/meta.cjs +1 -1
- package/node_modules/dependency-cruiser/src/report/anon/index.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/azure-devops.mjs +15 -11
- package/node_modules/dependency-cruiser/src/report/baseline.mjs +67 -10
- package/node_modules/dependency-cruiser/src/report/csv.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/dot/index.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/dot-webpage/dot-module.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/error-html/error-html-template.mjs +2 -0
- package/node_modules/dependency-cruiser/src/report/error-html/index.mjs +84 -8
- package/node_modules/dependency-cruiser/src/report/error.mjs +62 -13
- package/node_modules/dependency-cruiser/src/report/html/index.mjs +1 -1
- package/node_modules/dependency-cruiser/src/report/index.mjs +3 -2
- package/node_modules/dependency-cruiser/src/report/markdown.mjs +89 -19
- package/node_modules/dependency-cruiser/src/report/metrics.mjs +3 -3
- package/node_modules/dependency-cruiser/src/report/null.mjs +6 -3
- package/node_modules/dependency-cruiser/src/report/teamcity.mjs +4 -1
- package/node_modules/dependency-cruiser/src/schema/configuration.validate.mjs +1 -1
- package/node_modules/dependency-cruiser/src/schema/cruise-result.validate.mjs +1 -1
- package/node_modules/dependency-cruiser/src/utl/try-import.mjs +1 -1
- package/node_modules/dependency-cruiser/types/cruise-result.d.mts +14 -0
- package/node_modules/dependency-cruiser/types/dependency-cruiser.d.mts +6 -0
- package/node_modules/dependency-cruiser/types/options.d.mts +37 -2
- package/node_modules/dependency-cruiser/types/reporter-options.d.mts +30 -5
- package/node_modules/dependency-cruiser/types/restrictions.d.mts +2 -2
- package/node_modules/dependency-cruiser/types/shared-types.d.mts +16 -13
- package/node_modules/enhanced-resolve/README.md +46 -1
- package/node_modules/enhanced-resolve/lib/ExportsFieldPlugin.js +31 -6
- package/node_modules/enhanced-resolve/lib/ImportsFieldPlugin.js +27 -6
- package/node_modules/enhanced-resolve/lib/PackageMapPlugin.js +297 -0
- package/node_modules/enhanced-resolve/lib/Resolver.js +37 -30
- package/node_modules/enhanced-resolve/lib/ResolverFactory.js +104 -11
- package/node_modules/enhanced-resolve/lib/getPaths.js +6 -1
- package/node_modules/enhanced-resolve/lib/index.js +4 -0
- package/node_modules/enhanced-resolve/lib/util/entrypoints.js +104 -0
- package/node_modules/enhanced-resolve/lib/util/graceful-fs-browser.js +5 -1
- package/node_modules/enhanced-resolve/lib/util/identifier.js +4 -2
- package/node_modules/enhanced-resolve/lib/util/packageMap.js +224 -0
- package/node_modules/enhanced-resolve/lib/util/path.js +29 -8
- package/node_modules/enhanced-resolve/lib/util/pathToFileURL.js +87 -0
- package/node_modules/enhanced-resolve/package.json +8 -9
- package/node_modules/enhanced-resolve/types/AliasFieldPlugin.d.ts +41 -0
- package/node_modules/enhanced-resolve/types/AliasPlugin.d.ts +32 -0
- package/node_modules/enhanced-resolve/types/AliasUtils.d.ts +128 -0
- package/node_modules/enhanced-resolve/types/AppendPlugin.d.ts +27 -0
- package/node_modules/enhanced-resolve/types/CachedInputFileSystem.d.ts +224 -0
- package/node_modules/enhanced-resolve/types/CloneBasenamePlugin.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/ConditionalPlugin.d.ts +33 -0
- package/node_modules/enhanced-resolve/types/DescriptionFilePlugin.d.ts +30 -0
- package/node_modules/enhanced-resolve/types/DescriptionFileUtils.d.ts +83 -0
- package/node_modules/enhanced-resolve/types/DirectoryExistsPlugin.d.ts +23 -0
- package/node_modules/enhanced-resolve/types/ExportsFieldPlugin.d.ts +45 -0
- package/node_modules/enhanced-resolve/types/ExtensionAliasPlugin.d.ts +31 -0
- package/node_modules/enhanced-resolve/types/FileExistsPlugin.d.ts +23 -0
- package/node_modules/enhanced-resolve/types/ImportsFieldPlugin.d.ts +45 -0
- package/node_modules/enhanced-resolve/types/JoinRequestPartPlugin.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/JoinRequestPlugin.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/LogInfoPlugin.d.ts +18 -0
- package/node_modules/enhanced-resolve/types/MainFieldPlugin.d.ts +41 -0
- package/node_modules/enhanced-resolve/types/ModulesInHierachicDirectoriesPlugin.d.ts +2 -0
- package/node_modules/enhanced-resolve/types/ModulesInHierarchicalDirectoriesPlugin.d.ts +26 -0
- package/node_modules/enhanced-resolve/types/ModulesInRootPlugin.d.ts +27 -0
- package/node_modules/enhanced-resolve/types/ModulesUtils.d.ts +25 -0
- package/node_modules/enhanced-resolve/types/NextPlugin.d.ts +23 -0
- package/node_modules/enhanced-resolve/types/PackageMapPlugin.d.ts +85 -0
- package/node_modules/enhanced-resolve/types/ParsePlugin.d.ts +27 -0
- package/node_modules/enhanced-resolve/types/PnpPlugin.d.ts +42 -0
- package/node_modules/enhanced-resolve/types/Resolver.d.ts +1545 -0
- package/node_modules/enhanced-resolve/types/ResolverFactory.d.ts +340 -0
- package/node_modules/enhanced-resolve/types/RestrictionsPlugin.d.ts +52 -0
- package/node_modules/enhanced-resolve/types/ResultPlugin.d.ts +18 -0
- package/node_modules/enhanced-resolve/types/RootsPlugin.d.ts +30 -0
- package/node_modules/enhanced-resolve/types/SelfReferencePlugin.d.ts +31 -0
- package/node_modules/enhanced-resolve/types/SymlinkPlugin.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/SyncAsyncFileSystemDecorator.d.ts +52 -0
- package/node_modules/enhanced-resolve/types/TryNextPlugin.d.ts +26 -0
- package/node_modules/enhanced-resolve/types/TsconfigPathsPlugin.d.ts +204 -0
- package/node_modules/enhanced-resolve/types/UnsafeCachePlugin.d.ts +43 -0
- package/node_modules/enhanced-resolve/types/UseFilePlugin.d.ts +27 -0
- package/node_modules/enhanced-resolve/types/createInnerContext.d.ts +10 -0
- package/node_modules/enhanced-resolve/types/forEachBail.d.ts +15 -0
- package/node_modules/enhanced-resolve/types/getInnerRequest.d.ts +7 -0
- package/node_modules/enhanced-resolve/types/getPaths.d.ts +34 -0
- package/node_modules/enhanced-resolve/types/index.d.ts +131 -0
- package/node_modules/enhanced-resolve/types/util/entrypoints.d.ts +62 -0
- package/node_modules/enhanced-resolve/types/util/fileURLToPath.d.ts +14 -0
- package/node_modules/enhanced-resolve/types/util/fs.d.ts +38 -0
- package/node_modules/enhanced-resolve/types/util/graceful-fs-browser.d.ts +22 -0
- package/node_modules/enhanced-resolve/types/util/identifier.d.ts +7 -0
- package/node_modules/enhanced-resolve/types/util/memoize.d.ts +15 -0
- package/node_modules/enhanced-resolve/types/util/module-browser.d.ts +1 -0
- package/node_modules/enhanced-resolve/types/util/packageMap.d.ts +118 -0
- package/node_modules/enhanced-resolve/types/util/path-browser.d.ts +45 -0
- package/node_modules/enhanced-resolve/types/util/path.d.ts +125 -0
- package/node_modules/enhanced-resolve/types/util/pathToFileURL.d.ts +14 -0
- package/node_modules/enhanced-resolve/types/util/process-browser.d.ts +3 -0
- package/node_modules/enhanced-resolve/types/util/strip-json-comments.d.ts +24 -0
- package/node_modules/enhanced-resolve/types/util/url-browser.d.ts +1 -0
- package/node_modules/enhanced-resolve/types.d.ts +5 -2057
- package/node_modules/is-installed-globally/index.js +26 -4
- package/node_modules/is-installed-globally/package.json +1 -1
- package/package.json +5 -5
- package/schema/zedbee.schema.json +12 -1
- package/node_modules/dependency-cruiser/node_modules/picomatch/README.md +0 -743
- package/node_modules/dependency-cruiser/node_modules/picomatch/index.js +0 -17
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/constants.js +0 -184
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/parse.js +0 -1416
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/picomatch.js +0 -361
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/scan.js +0 -391
- package/node_modules/dependency-cruiser/node_modules/picomatch/lib/utils.js +0 -72
- package/node_modules/dependency-cruiser/node_modules/picomatch/package.json +0 -83
- package/node_modules/dependency-cruiser/node_modules/picomatch/posix.js +0 -3
|
@@ -14,7 +14,7 @@ function getVersion(pModuleName) {
|
|
|
14
14
|
// The 'proper' way to do this would be with a dynamic import with an
|
|
15
15
|
// import assertion. Because it's 'experimental' since node 16 and prints
|
|
16
16
|
// an ugly warning on stderr since node 19 we'll be using the require
|
|
17
|
-
// hack below
|
|
17
|
+
// hack below instead. Code would otherwise have been:
|
|
18
18
|
//
|
|
19
19
|
// const lManifest = await import(
|
|
20
20
|
// // @ts-expect-error TS2345 extractRootModuleName can return either a string or
|
|
@@ -342,6 +342,20 @@ export interface ISummary {
|
|
|
342
342
|
* the number of informational level notices in the dependencies
|
|
343
343
|
*/
|
|
344
344
|
info: number;
|
|
345
|
+
/**
|
|
346
|
+
* the number of violations in the baseline
|
|
347
|
+
*/
|
|
348
|
+
baselineSize?: number;
|
|
349
|
+
/**
|
|
350
|
+
* the number of violations in the baseline that matched violations from the current cruise
|
|
351
|
+
*/
|
|
352
|
+
baselineStale?: number;
|
|
353
|
+
/**
|
|
354
|
+
* for reporters that emit non-zero exit codes: the number of errors encountered OR, in case
|
|
355
|
+
* options.baseline.staleEntriesSeverity equals 'error' - the number of errors encountered +
|
|
356
|
+
* the number of stale entries in the baseline.
|
|
357
|
+
*/
|
|
358
|
+
advisedExitCode: number;
|
|
345
359
|
optionsUsed: IOptions;
|
|
346
360
|
/**
|
|
347
361
|
* rules used in the cruise
|
|
@@ -26,6 +26,12 @@ export interface IReporterOutput {
|
|
|
26
26
|
* a string.
|
|
27
27
|
*/
|
|
28
28
|
output: ICruiseResult | string;
|
|
29
|
+
/**
|
|
30
|
+
* Textual meta information to show in a side-channel (like stderr). E.g.
|
|
31
|
+
* the baseline reporter returns the numerical diffs between the current
|
|
32
|
+
* and the new baseline.
|
|
33
|
+
*/
|
|
34
|
+
meta?: string;
|
|
29
35
|
/**
|
|
30
36
|
* The exit code - reporters can return a non-zero value when they find
|
|
31
37
|
* errors here. api consumers (like a cli) can use this to return a
|
|
@@ -10,12 +10,17 @@ import type {
|
|
|
10
10
|
} from "./filter-types.mjs";
|
|
11
11
|
import type { IReporterOptions } from "./reporter-options.mjs";
|
|
12
12
|
import type { IFlattenedRuleSet } from "./rule-set.mjs";
|
|
13
|
-
import type {
|
|
13
|
+
import type {
|
|
14
|
+
ModuleSystemType,
|
|
15
|
+
OutputType,
|
|
16
|
+
SeverityType,
|
|
17
|
+
} from "./shared-types.mjs";
|
|
14
18
|
|
|
15
19
|
export type ExternalModuleResolutionStrategyType = "node_modules" | "yarn-pnp";
|
|
16
20
|
export type ProgressType =
|
|
17
21
|
"cli-feedback" | "performance-log" | "ndjson" | "none";
|
|
18
22
|
export type ParserType = "acorn" | "tsc" | "swc";
|
|
23
|
+
export type BaselineModeType = "full" | "shrink-only" | "format";
|
|
19
24
|
|
|
20
25
|
export interface ITsConfig {
|
|
21
26
|
fileName?: string;
|
|
@@ -109,6 +114,11 @@ export interface ICruiseOptions {
|
|
|
109
114
|
* as 'highlighted' in its output
|
|
110
115
|
*/
|
|
111
116
|
highlight?: string | string[] | IHighlightType;
|
|
117
|
+
/*
|
|
118
|
+
* whether or not to ignore known violations (whether passed in a separate
|
|
119
|
+
* file or directly in knownViolations)
|
|
120
|
+
*/
|
|
121
|
+
ignoreKnown?: boolean;
|
|
112
122
|
/*
|
|
113
123
|
* baseline of known validations. Typically you'd specify these in a file called
|
|
114
124
|
* .dependency-cruiser-known-violations.json (which you'd generate with the --outputType
|
|
@@ -146,6 +156,11 @@ export interface ICruiseOptions {
|
|
|
146
156
|
* import statements. Implies `"parser": "tsc"`. Defaults to false.'
|
|
147
157
|
*/
|
|
148
158
|
detectJSDocImports?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* When true, dependency-cruiser will detect imports in ambient module and
|
|
161
|
+
* namespace declarations. Implies `"parser": "tsc"`. Defaults to false.
|
|
162
|
+
*/
|
|
163
|
+
detectImportsInAmbientModules?: boolean;
|
|
149
164
|
/**
|
|
150
165
|
* When true, dependency-cruiser will detect calls to `process.getBuiltinModule`/
|
|
151
166
|
* `globalThis.process.getBuiltinModule` as imports.
|
|
@@ -234,7 +249,7 @@ export interface ICruiseOptions {
|
|
|
234
249
|
*
|
|
235
250
|
* Hasn't had any effect on dependency-cruiser's behaviour since a few major
|
|
236
251
|
* versions ago. If there's a need to manipulate this use the `skipAnalysisNotInRules`
|
|
237
|
-
* option
|
|
252
|
+
* option instead.
|
|
238
253
|
*
|
|
239
254
|
* Previously documented behavior:
|
|
240
255
|
* > When true includes denormalized dependents in the cruise-result, even
|
|
@@ -424,6 +439,26 @@ export interface ICruiseOptions {
|
|
|
424
439
|
* When caching is switched on the default cache folder is 'node_modules/.cache/dependency-cruiser/'
|
|
425
440
|
*/
|
|
426
441
|
cache?: boolean | string | Partial<ICacheOptions>;
|
|
442
|
+
|
|
443
|
+
baseline?: {
|
|
444
|
+
/**
|
|
445
|
+
* How to update the baseline;
|
|
446
|
+
* 'full' - replaces all violations with the current set (the default behaviour)
|
|
447
|
+
* 'shrink-only' - keeps existing violations, removes fixed violations, but
|
|
448
|
+
* does not add new ones.
|
|
449
|
+
* 'format' - rewrites the baseline, but doesn't remove or add anything - only
|
|
450
|
+
* showing the stats.
|
|
451
|
+
*/
|
|
452
|
+
mode?: BaselineModeType;
|
|
453
|
+
/**
|
|
454
|
+
* Severity to use when there's stale entries in the baseline. In reporters that can
|
|
455
|
+
* emit non-zero exit codes (like err, err-long and null), when the value of this attribute
|
|
456
|
+
* equals 'error' and there's stale entries in the baseline, they'll exit with a non-zero
|
|
457
|
+
* exit code.
|
|
458
|
+
* Defaults to 'warn'
|
|
459
|
+
*/
|
|
460
|
+
staleEntriesSeverity?: SeverityType;
|
|
461
|
+
};
|
|
427
462
|
}
|
|
428
463
|
|
|
429
464
|
export interface IFormatOptions {
|
|
@@ -220,6 +220,11 @@ export interface IMarkdownReporterOptions {
|
|
|
220
220
|
* Whether or not to collapse the list of violations in a <details> block. Defaults to true.
|
|
221
221
|
*/
|
|
222
222
|
collapseDetails?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* The text to show in the <summary> section of the <details> block. E.g. 'click to see all violations'
|
|
225
|
+
* When left out shows a default value.
|
|
226
|
+
*/
|
|
227
|
+
collapsedMessage?: string;
|
|
223
228
|
/**
|
|
224
229
|
* For external modules (typically those in node_modules) show the unresolved module name instead
|
|
225
230
|
* of the resolved one in the error overview.
|
|
@@ -235,16 +240,36 @@ export interface IMarkdownReporterOptions {
|
|
|
235
240
|
* Defaults to false.
|
|
236
241
|
*/
|
|
237
242
|
showAliasedModulesUnresolved?: boolean;
|
|
238
|
-
/**
|
|
239
|
-
* The text to in the <summary> section of the <details> block. E.g. 'click to see all violations'
|
|
240
|
-
* When left out shows a default value.
|
|
241
|
-
*/
|
|
242
|
-
collapsedMessage?: string;
|
|
243
243
|
/**
|
|
244
244
|
* The text to show when no violations were found. E.g. 'No violations found'.
|
|
245
245
|
* When left out shows a default value.
|
|
246
246
|
*/
|
|
247
247
|
noViolationsMessage?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Whether or not to show a detailed list of stale violations in the baseline (if any).
|
|
250
|
+
* Defaults to true
|
|
251
|
+
*/
|
|
252
|
+
showStaleBaselineDetails?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Text shown as the heading above stale baseline violations. Defaults to the
|
|
255
|
+
* standard stale-baseline heading.
|
|
256
|
+
*/
|
|
257
|
+
staleBaselineHeader?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Whether or not to wrap stale baseline violations in a collapsible
|
|
260
|
+
* <details> block. Defaults to true.
|
|
261
|
+
*/
|
|
262
|
+
collapseStaleBaseline?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Text shown in the <summary> element when stale baseline details are
|
|
265
|
+
* collapsible. Defaults to 'Stale violations in the baseline - click to expand'.
|
|
266
|
+
*/
|
|
267
|
+
collapseStaleBaselineMessage?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Introductory text shown before stale baseline violations. Defaults to an
|
|
270
|
+
* explanation of why they are stale and how to remove them.
|
|
271
|
+
*/
|
|
272
|
+
staleBaselineIntro?: string;
|
|
248
273
|
/**
|
|
249
274
|
* Whether or not to show a footer (with version & run date) at the bottom of the report.
|
|
250
275
|
* Defaults to true
|
|
@@ -84,13 +84,13 @@ export interface IToRestriction extends IBaseRestrictionType {
|
|
|
84
84
|
* _only_ modules that don't satisfy this regular expression. E.g. to disallow all cycles,
|
|
85
85
|
* except when they go through one specific module. Typically to temporarily
|
|
86
86
|
* allow some cycles until they're removed.
|
|
87
|
-
* @deprecated use viaOnly.pathNot
|
|
87
|
+
* @deprecated use viaOnly.pathNot instead
|
|
88
88
|
*/
|
|
89
89
|
viaNot?: string | string[];
|
|
90
90
|
/**
|
|
91
91
|
* "For circular dependencies - whether or not to match cycles that include
|
|
92
92
|
* _some_ modules that don't satisfy this regular expression.
|
|
93
|
-
* @deprecated use via.pathNot
|
|
93
|
+
* @deprecated use via.pathNot instead
|
|
94
94
|
*/
|
|
95
95
|
viaSomeNot?: string | string[];
|
|
96
96
|
/**
|
|
@@ -3,26 +3,29 @@ export type ModuleSystemType = "cjs" | "amd" | "es6" | "tsd";
|
|
|
3
3
|
|
|
4
4
|
// cruise options, dependency-cruiser
|
|
5
5
|
export type OutputType =
|
|
6
|
-
| "
|
|
7
|
-
| "html"
|
|
8
|
-
| "dot"
|
|
9
|
-
| "cdot"
|
|
6
|
+
| "anon"
|
|
10
7
|
| "archi"
|
|
8
|
+
| "azure-devops"
|
|
9
|
+
| "baseline"
|
|
10
|
+
| "cdot"
|
|
11
|
+
| "csv"
|
|
12
|
+
| "d2"
|
|
11
13
|
| "ddot"
|
|
14
|
+
| "dot-webpage"
|
|
15
|
+
| "dot"
|
|
16
|
+
| "err-html"
|
|
17
|
+
| "err-long"
|
|
18
|
+
| "err"
|
|
12
19
|
| "fdot"
|
|
13
20
|
| "flat"
|
|
14
|
-
| "
|
|
15
|
-
| "
|
|
16
|
-
| "err-long"
|
|
17
|
-
| "err-html"
|
|
18
|
-
| "teamcity"
|
|
19
|
-
| "anon"
|
|
20
|
-
| "text"
|
|
21
|
-
| "metrics"
|
|
21
|
+
| "html"
|
|
22
|
+
| "json"
|
|
22
23
|
| "markdown"
|
|
23
24
|
| "mermaid"
|
|
24
|
-
| "
|
|
25
|
+
| "metrics"
|
|
25
26
|
| "null"
|
|
27
|
+
| "teamcity"
|
|
28
|
+
| "text"
|
|
26
29
|
// for plugins: string. TODO: research whether it's possible to
|
|
27
30
|
// tie this down to the `^plugin:[^:]+-reporter-plugin.[cm]?js$` regex
|
|
28
31
|
| (string & {}); // autocompletion hack
|
|
@@ -334,6 +334,7 @@ const filepath = myResolver.resolveSync(context, parent, specifier);
|
|
|
334
334
|
| mainFields | ["main"] | A list of main fields in description files |
|
|
335
335
|
| mainFiles | ["index"] | A list of main files in directories |
|
|
336
336
|
| modules | ["node_modules"] | A list of directories to resolve modules from, can be absolute path or folder name |
|
|
337
|
+
| packageMap | undefined | **Experimental.** A [Node.js package map](https://nodejs.org/api/packages.html#package-maps): a path (or `file:` URL) to the configuration file, or an object with `configFile` and already-parsed `packages`. Bare specifiers then resolve through the map instead of `node_modules`. |
|
|
337
338
|
| plugins | [] | A list of additional resolve plugins which should be applied |
|
|
338
339
|
| resolver | undefined | A prepared Resolver to which the plugins are attached |
|
|
339
340
|
| resolveToContext | false | Resolve to a context instead of a file |
|
|
@@ -511,6 +512,48 @@ The `name` argument is the cache id — a `JSON.stringify`'d object containing `
|
|
|
511
512
|
const options = { fileSystem: new CachedInputFileSystem(require("fs"), 4000) };
|
|
512
513
|
```
|
|
513
514
|
|
|
515
|
+
**`packageMap`** (**experimental**) — resolve bare specifiers through a [Node.js package map](https://nodejs.org/api/packages.html#package-maps) instead of walking `node_modules`. Each package entry declares where it lives and which package id every bare specifier of its own maps to:
|
|
516
|
+
|
|
517
|
+
```json
|
|
518
|
+
{
|
|
519
|
+
"packages": {
|
|
520
|
+
"app": {
|
|
521
|
+
"url": "./packages/app",
|
|
522
|
+
"dependencies": { "@acme/utils": "utils" }
|
|
523
|
+
},
|
|
524
|
+
"utils": { "url": "./packages/utils" }
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
```js
|
|
530
|
+
const options = { packageMap: path.resolve("./package-map.json") };
|
|
531
|
+
// or, with the map already in memory:
|
|
532
|
+
const options2 = {
|
|
533
|
+
packageMap: {
|
|
534
|
+
// relative `url` values are resolved against this path
|
|
535
|
+
configFile: path.resolve("./package-map.json"),
|
|
536
|
+
packages: {/* ... */},
|
|
537
|
+
},
|
|
538
|
+
};
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
The map is authoritative: when it is set, a bare specifier that the importing package does not declare is reported as unresolved rather than looked up in `node_modules`. Relative and absolute requests, and `node:` builtins, are unaffected.
|
|
542
|
+
|
|
543
|
+
Because a package map may point several package ids at the same `url` (the same sources used with different dependency tables), the importing package cannot always be derived from the file path alone. Pass the package id along to remove the ambiguity — it is available on every result as `packageId`:
|
|
544
|
+
|
|
545
|
+
```js
|
|
546
|
+
resolver({}, parent, specifier, {}, (err, result, request) => {
|
|
547
|
+
// `request.packageId` is the package the request resolved into; pass it
|
|
548
|
+
// back in as `context.packageId` for resolutions made from `result`.
|
|
549
|
+
resolver({ packageId: request.packageId }, result, next, {}, callback);
|
|
550
|
+
});
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
Resolution fails with an error (rather than silently picking one) when the importing file lies outside every mapped package (`ERR_PACKAGE_MAP_EXTERNAL_FILE`) or when several package ids share its location and no package id was given (`ERR_PACKAGE_MAP_AMBIGUOUS_PACKAGE`).
|
|
554
|
+
|
|
555
|
+
> Package maps are stability 1 (experimental) in Node.js, where they are only reachable behind `--experimental-package-map`. This option tracks that specification and may change with it, including in a patch release.
|
|
556
|
+
|
|
514
557
|
**`plugins`** — additional plugin instances appended to the pipeline. See [Plugins](#plugins):
|
|
515
558
|
|
|
516
559
|
```js
|
|
@@ -552,6 +595,7 @@ Plugins are executed in a pipeline, and register which event they should be exec
|
|
|
552
595
|
| `ModulesInHierarchicalDirectoriesPlugin` | Searches for a module by walking up parent directories (the standard `node_modules` lookup). Powers `modules`. |
|
|
553
596
|
| `ModulesInRootPlugin` | Searches for a module in a single absolute directory. Powers absolute-path entries in `modules`. |
|
|
554
597
|
| `NextPlugin` | Forwards the request from one hook to another without modification — glue between pipeline steps. |
|
|
598
|
+
| `PackageMapPlugin` | Resolves bare specifiers through a Node.js package map instead of `node_modules`. Powers `packageMap`. **Experimental.** |
|
|
555
599
|
| `ParsePlugin` | Parses a raw request string into its components (path, query, fragment, module flag, etc.). |
|
|
556
600
|
| `PnpPlugin` | Resolves module requests through a Yarn PnP API when one is available. |
|
|
557
601
|
| `RestrictionsPlugin` | Rejects results that don't match a list of path restrictions (strings or regular expressions). Powers `restrictions`. |
|
|
@@ -586,6 +630,7 @@ One-line goal and default wiring (`source → target`) for each plugin. `*` mean
|
|
|
586
630
|
- **`ModulesInHierarchicalDirectoriesPlugin`** — Goal: search for a module by walking up parent directories (the standard `node_modules` lookup). `raw-module` → `module`; when PnP is enabled, `alternate-raw-module` → `module` too.
|
|
587
631
|
- **`ModulesInRootPlugin`** — Goal: search for a module in a single absolute directory (powers absolute-path entries in `modules`). `raw-module` → `module`.
|
|
588
632
|
- **`NextPlugin`** — Goal: glue — forward the current request unchanged from one hook to another. Used across the pipeline wherever two hooks should run sequentially.
|
|
633
|
+
- **`PackageMapPlugin`** — Goal: resolve bare specifiers through a [Node.js package map](https://nodejs.org/api/packages.html#package-maps) rather than `node_modules` (powers `packageMap`, experimental). `raw-module` → `undescribed-resolve-in-package`.
|
|
589
634
|
- **`ParsePlugin`** — Goal: split the raw request string into path / query / fragment / `module` / `directory` / `internal` flags. `resolve` → `parsed-resolve`; also wired on `internal-resolve` and `imports-resolve`.
|
|
590
635
|
- **`PnpPlugin`** — Goal: resolve bare-module requests through Yarn's PnP API when available. `raw-module` → `undescribed-resolve-in-package` on hit, `alternate-raw-module` on miss.
|
|
591
636
|
- **`RestrictionsPlugin`** — Goal: reject resolved paths that don't satisfy at least one string prefix or RegExp. Tapped on `resolved`.
|
|
@@ -629,7 +674,7 @@ Listed roughly in the order the default pipeline visits them. Full wiring lives
|
|
|
629
674
|
| `normal-resolve` | Default resolution starts. Branches into `relative` (for `./`, `../`, absolute), `raw-module` (bare modules), or `internal` (`#imports`). |
|
|
630
675
|
| `internal` | `#name` imports-field entry. `ImportsFieldPlugin` maps the specifier and forwards to `imports-field-relative` or `imports-resolve`. |
|
|
631
676
|
| `imports-field-relative` | Concrete path from an `imports`-field match, before the normal `relative` flow. `ExtensionAliasPlugin` taps here so `.js` → `.ts` also fires for `#name` targets. Forwards to `relative`. |
|
|
632
|
-
| `raw-module` | Bare-module lookup. `SelfReferencePlugin`, `ModulesInHierarchicalDirectoriesPlugin`, `ModulesInRootPlugin`, and `PnpPlugin` all tap here.
|
|
677
|
+
| `raw-module` | Bare-module lookup. `SelfReferencePlugin`, `ModulesInHierarchicalDirectoriesPlugin`, `ModulesInRootPlugin`, `PackageMapPlugin`, and `PnpPlugin` all tap here. |
|
|
633
678
|
| `alternate-raw-module` | Fallback module lookup used by `PnpPlugin` when PnP can't resolve and `node_modules` should be tried. |
|
|
634
679
|
| `module` | A candidate module directory was built. `JoinRequestPartPlugin` splits off the inner request and forwards to `resolve-as-module`. |
|
|
635
680
|
| `resolve-as-module` | Treat candidate as a package. `DirectoryExistsPlugin` gates on existence; short single-file modules may re-enter via `undescribed-raw-file`. |
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
const DescriptionFileUtils = require("./DescriptionFileUtils");
|
|
9
9
|
const forEachBail = require("./forEachBail");
|
|
10
|
-
const {
|
|
10
|
+
const {
|
|
11
|
+
explainSubpathsInConditions,
|
|
12
|
+
processExportsField,
|
|
13
|
+
} = require("./util/entrypoints");
|
|
11
14
|
const { parseIdentifier } = require("./util/identifier");
|
|
12
15
|
const {
|
|
13
16
|
deprecatedInvalidSegmentRegEx,
|
|
@@ -117,12 +120,19 @@ module.exports = class ExportsFieldPlugin {
|
|
|
117
120
|
this.conditionNames,
|
|
118
121
|
);
|
|
119
122
|
} catch (/** @type {unknown} */ err) {
|
|
123
|
+
// Name the package.json in the error itself, not only in the
|
|
124
|
+
// log: a malformed field is a mistake in someone's package,
|
|
125
|
+
// and without the path there is nothing to go on. The
|
|
126
|
+
// original message is kept verbatim inside this one.
|
|
127
|
+
const error = new Error(
|
|
128
|
+
`${/** @type {Error} */ (err).message} (see exports field in ${
|
|
129
|
+
request.descriptionFilePath
|
|
130
|
+
})`,
|
|
131
|
+
);
|
|
120
132
|
if (resolveContext.log) {
|
|
121
|
-
resolveContext.log(
|
|
122
|
-
`Exports field in ${request.descriptionFilePath} can't be processed: ${err}`,
|
|
123
|
-
);
|
|
133
|
+
resolveContext.log(error.message);
|
|
124
134
|
}
|
|
125
|
-
return callback(
|
|
135
|
+
return callback(error);
|
|
126
136
|
}
|
|
127
137
|
|
|
128
138
|
if (paths.length === 0) {
|
|
@@ -131,9 +141,24 @@ module.exports = class ExportsFieldPlugin {
|
|
|
131
141
|
conditions.length === 1
|
|
132
142
|
? `the condition "${conditions[0]}"`
|
|
133
143
|
: `the conditions ${JSON.stringify(conditions)}`;
|
|
144
|
+
// Nothing matched. The usual reason is that the package
|
|
145
|
+
// really does not export this path, but a field whose
|
|
146
|
+
// conditions wrap subpaths matches nothing either - and
|
|
147
|
+
// then the message above points at the request rather than
|
|
148
|
+
// at the mistake. Only this failing branch pays for the
|
|
149
|
+
// check. See https://github.com/webpack/enhanced-resolve/issues/325.
|
|
150
|
+
const explanation = explainSubpathsInConditions(
|
|
151
|
+
/** @type {ExportsField | null | undefined} */
|
|
152
|
+
(
|
|
153
|
+
DescriptionFileUtils.getField(descriptionFileData, this.fieldName)
|
|
154
|
+
),
|
|
155
|
+
true,
|
|
156
|
+
);
|
|
134
157
|
return callback(
|
|
135
158
|
new Error(
|
|
136
|
-
`"${remainingRequest}" is not exported under ${conditionsStr} from package ${request.descriptionFileRoot} (see exports field in ${request.descriptionFilePath})
|
|
159
|
+
`"${remainingRequest}" is not exported under ${conditionsStr} from package ${request.descriptionFileRoot} (see exports field in ${request.descriptionFilePath})${
|
|
160
|
+
explanation ? `. In that exports field, ${explanation}` : ""
|
|
161
|
+
}`,
|
|
137
162
|
),
|
|
138
163
|
);
|
|
139
164
|
}
|
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
const DescriptionFileUtils = require("./DescriptionFileUtils");
|
|
9
9
|
const forEachBail = require("./forEachBail");
|
|
10
|
-
const {
|
|
10
|
+
const {
|
|
11
|
+
explainSubpathsInConditions,
|
|
12
|
+
processImportsField,
|
|
13
|
+
} = require("./util/entrypoints");
|
|
11
14
|
const { parseIdentifier } = require("./util/identifier");
|
|
12
15
|
const { invalidSegmentRegEx } = require("./util/path");
|
|
13
16
|
|
|
@@ -119,18 +122,36 @@ module.exports = class ImportsFieldPlugin {
|
|
|
119
122
|
this.conditionNames,
|
|
120
123
|
);
|
|
121
124
|
} catch (/** @type {unknown} */ err) {
|
|
125
|
+
// Name the package.json in the error itself, not only in the
|
|
126
|
+
// log: a malformed field is a mistake in someone's package,
|
|
127
|
+
// and without the path there is nothing to go on. The
|
|
128
|
+
// original message is kept verbatim inside this one.
|
|
129
|
+
const error = new Error(
|
|
130
|
+
`${/** @type {Error} */ (err).message} (see imports field in ${
|
|
131
|
+
request.descriptionFilePath
|
|
132
|
+
})`,
|
|
133
|
+
);
|
|
122
134
|
if (resolveContext.log) {
|
|
123
|
-
resolveContext.log(
|
|
124
|
-
`Imports field in ${request.descriptionFilePath} can't be processed: ${err}`,
|
|
125
|
-
);
|
|
135
|
+
resolveContext.log(error.message);
|
|
126
136
|
}
|
|
127
|
-
return callback(
|
|
137
|
+
return callback(error);
|
|
128
138
|
}
|
|
129
139
|
|
|
130
140
|
if (paths.length === 0) {
|
|
141
|
+
// See the matching comment in ExportsFieldPlugin: only this
|
|
142
|
+
// already-failing branch pays for the diagnosis.
|
|
143
|
+
const explanation = explainSubpathsInConditions(
|
|
144
|
+
/** @type {ImportsField | null | undefined} */
|
|
145
|
+
(
|
|
146
|
+
DescriptionFileUtils.getField(descriptionFileData, this.fieldName)
|
|
147
|
+
),
|
|
148
|
+
false,
|
|
149
|
+
);
|
|
131
150
|
return callback(
|
|
132
151
|
new Error(
|
|
133
|
-
`Package import ${remainingRequest} is not imported from package ${request.descriptionFileRoot} (see imports field in ${request.descriptionFilePath})
|
|
152
|
+
`Package import ${remainingRequest} is not imported from package ${request.descriptionFileRoot} (see imports field in ${request.descriptionFilePath})${
|
|
153
|
+
explanation ? `. In that imports field, ${explanation}` : ""
|
|
154
|
+
}`,
|
|
134
155
|
),
|
|
135
156
|
);
|
|
136
157
|
}
|