@mionjs/devtools 0.8.10 → 0.13.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/LICENSE +1 -1
- package/README.md +34 -0
- package/dist/core/apply-edits.d.ts +8 -0
- package/dist/core/apply-edits.js +24 -0
- package/dist/core/apply-edits.js.map +1 -0
- package/dist/core/bundledApiStub.d.ts +4 -0
- package/dist/core/bundledApiStub.js +4 -0
- package/dist/core/bundledApiStub.js.map +1 -0
- package/dist/core/devReporter.d.ts +19 -0
- package/dist/core/devReporter.js +91 -0
- package/dist/core/devReporter.js.map +1 -0
- package/dist/core/diagnosticCatalog.d.ts +5 -0
- package/dist/core/diagnosticCatalog.js +18 -0
- package/dist/core/diagnosticCatalog.js.map +1 -0
- package/dist/core/downgradeErrors.d.ts +11 -0
- package/dist/core/downgradeErrors.js +34 -0
- package/dist/core/downgradeErrors.js.map +1 -0
- package/dist/core/edit-buffer.d.ts +26 -0
- package/dist/core/edit-buffer.js +209 -0
- package/dist/core/edit-buffer.js.map +1 -0
- package/dist/core/go-generated/diagnosticCatalog.generated.d.ts +9 -0
- package/dist/core/go-generated/diagnosticCatalog.generated.js +1008 -0
- package/dist/core/go-generated/diagnosticCatalog.generated.js.map +1 -0
- package/dist/core/go-generated/reflectionKind.generated.d.ts +60 -0
- package/dist/core/go-generated/reflectionKind.generated.js +60 -0
- package/dist/core/go-generated/reflectionKind.generated.js.map +1 -0
- package/dist/core/go-generated/runtypes-constants.generated.d.ts +197 -0
- package/dist/core/go-generated/runtypes-constants.generated.js +110 -0
- package/dist/core/go-generated/runtypes-constants.generated.js.map +1 -0
- package/dist/core/go-generated/tsconfig-plugin-keys.generated.d.ts +3 -0
- package/dist/core/go-generated/tsconfig-plugin-keys.generated.js +23 -0
- package/dist/core/go-generated/tsconfig-plugin-keys.generated.js.map +1 -0
- package/dist/core/groupedLog.d.ts +6 -0
- package/dist/core/groupedLog.js +163 -0
- package/dist/core/groupedLog.js.map +1 -0
- package/dist/core/levels.d.ts +6 -0
- package/dist/core/levels.js +22 -0
- package/dist/core/levels.js.map +1 -0
- package/dist/core/markerImports.d.ts +8 -0
- package/dist/core/markerImports.js +149 -0
- package/dist/core/markerImports.js.map +1 -0
- package/dist/core/option-guards.d.ts +4 -0
- package/dist/core/option-guards.js +12 -0
- package/dist/core/option-guards.js.map +1 -0
- package/dist/core/plugin-option-keys.d.ts +3 -0
- package/dist/core/plugin-option-keys.js +35 -0
- package/dist/core/plugin-option-keys.js.map +1 -0
- package/dist/core/protocol.d.ts +244 -0
- package/dist/core/protocol.js +23 -0
- package/dist/core/protocol.js.map +1 -0
- package/dist/core/resolver-client.d.ts +160 -0
- package/dist/core/resolver-client.js +354 -0
- package/dist/core/resolver-client.js.map +1 -0
- package/dist/core/scan-batcher.d.ts +6 -0
- package/dist/core/scan-batcher.js +36 -0
- package/dist/core/scan-batcher.js.map +1 -0
- package/dist/core/surface.d.ts +23 -0
- package/dist/core/surface.js +77 -0
- package/dist/core/surface.js.map +1 -0
- package/dist/core/type-deps.d.ts +11 -0
- package/dist/core/type-deps.js +72 -0
- package/dist/core/type-deps.js.map +1 -0
- package/dist/core/types.d.ts +13 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/typescript-floor.d.ts +5 -0
- package/dist/core/typescript-floor.js +33 -0
- package/dist/core/typescript-floor.js.map +1 -0
- package/dist/core/unplugin.d.ts +67 -0
- package/dist/core/unplugin.js +636 -0
- package/dist/core/unplugin.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/lint/diagnosticRouting.d.ts +28 -0
- package/dist/lint/diagnosticRouting.js +74 -0
- package/dist/lint/diagnosticRouting.js.map +1 -0
- package/dist/lint/index.d.ts +49 -0
- package/dist/lint/index.js +96 -0
- package/dist/lint/index.js.map +1 -0
- package/dist/lint/lint-worker.d.ts +2 -0
- package/dist/lint/lint-worker.js +116 -0
- package/dist/lint/lint-worker.js.map +1 -0
- package/dist/lint/prefilter.d.ts +7 -0
- package/dist/lint/prefilter.js +31 -0
- package/dist/lint/prefilter.js.map +1 -0
- package/dist/lint/session-protocol.d.ts +38 -0
- package/dist/lint/session-protocol.js +11 -0
- package/dist/lint/session-protocol.js.map +1 -0
- package/dist/lint/session.d.ts +27 -0
- package/dist/lint/session.js +149 -0
- package/dist/lint/session.js.map +1 -0
- package/dist/lint/spawn-shim.d.ts +2 -0
- package/dist/lint/spawn-shim.js +23 -0
- package/dist/lint/spawn-shim.js.map +1 -0
- package/dist/next/index.d.ts +11 -0
- package/dist/next/index.js +17 -0
- package/dist/next/index.js.map +1 -0
- package/dist/options.d.ts +29 -0
- package/dist/options.js +36 -0
- package/dist/options.js.map +1 -0
- package/dist/runtypes/bun.d.ts +25 -0
- package/dist/runtypes/bun.js +62 -0
- package/dist/runtypes/bun.js.map +1 -0
- package/dist/runtypes/esbuild.d.ts +4 -0
- package/dist/runtypes/esbuild.js +4 -0
- package/dist/runtypes/esbuild.js.map +1 -0
- package/dist/runtypes/next/broker.d.ts +15 -0
- package/dist/runtypes/next/broker.js +316 -0
- package/dist/runtypes/next/broker.js.map +1 -0
- package/dist/runtypes/next/index.d.ts +30 -0
- package/dist/runtypes/next/index.js +57 -0
- package/dist/runtypes/next/index.js.map +1 -0
- package/dist/runtypes/next/loader.d.ts +13 -0
- package/dist/runtypes/next/loader.js +64 -0
- package/dist/runtypes/next/loader.js.map +1 -0
- package/dist/runtypes/next/wire.d.ts +17 -0
- package/dist/runtypes/next/wire.js +15 -0
- package/dist/runtypes/next/wire.js.map +1 -0
- package/dist/runtypes/rolldown.d.ts +4 -0
- package/dist/runtypes/rolldown.js +4 -0
- package/dist/runtypes/rolldown.js.map +1 -0
- package/dist/runtypes/rollup.d.ts +4 -0
- package/dist/runtypes/rollup.js +4 -0
- package/dist/runtypes/rollup.js.map +1 -0
- package/dist/runtypes/rspack.d.ts +4 -0
- package/dist/runtypes/rspack.js +4 -0
- package/dist/runtypes/rspack.js.map +1 -0
- package/dist/runtypes/vite.d.ts +4 -0
- package/dist/runtypes/vite.js +4 -0
- package/dist/runtypes/vite.js.map +1 -0
- package/dist/runtypes/webpack.d.ts +4 -0
- package/dist/runtypes/webpack.js +4 -0
- package/dist/runtypes/webpack.js.map +1 -0
- package/dist/vite/buildEntries.d.ts +2 -0
- package/dist/vite/buildEntries.js +28 -0
- package/dist/vite/buildEntries.js.map +1 -0
- package/dist/vite/cjsPackageJsonPlugin.d.ts +3 -0
- package/dist/vite/cjsPackageJsonPlugin.js +12 -0
- package/dist/vite/cjsPackageJsonPlugin.js.map +1 -0
- package/dist/vite/index.d.ts +6 -0
- package/dist/vite/index.js +5 -0
- package/dist/vite/index.js.map +1 -0
- package/dist/vite/middlewareMode.d.ts +10 -0
- package/dist/vite/middlewareMode.js +227 -0
- package/dist/vite/middlewareMode.js.map +1 -0
- package/dist/vite/mionVitePlugin.d.ts +23 -0
- package/dist/vite/mionVitePlugin.js +115 -0
- package/dist/vite/mionVitePlugin.js.map +1 -0
- package/dist/vite/nodeWebBridge.d.ts +5 -0
- package/dist/vite/nodeWebBridge.js +59 -0
- package/dist/vite/nodeWebBridge.js.map +1 -0
- package/dist/vite/sfcTransform.d.ts +8 -0
- package/dist/vite/sfcTransform.js +142 -0
- package/dist/vite/sfcTransform.js.map +1 -0
- package/oxlint-recommended.json +11 -0
- package/package.json +91 -56
- package/build/eslint/cjs/index.cjs +0 -41
- package/build/eslint/cjs/index.cjs.map +0 -1
- package/build/eslint/cjs/package.json +0 -1
- package/build/eslint/cjs/src/eslint/index.cjs +0 -13
- package/build/eslint/cjs/src/eslint/index.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/index.d.ts +0 -4
- package/build/eslint/cjs/src/eslint/index.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/enforce-type-imports.cjs +0 -121
- package/build/eslint/cjs/src/eslint/rules/enforce-type-imports.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/enforce-type-imports.d.ts +0 -8
- package/build/eslint/cjs/src/eslint/rules/enforce-type-imports.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/formatTypeNames.cjs +0 -71
- package/build/eslint/cjs/src/eslint/rules/formatTypeNames.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/formatTypeNames.d.ts +0 -4
- package/build/eslint/cjs/src/eslint/rules/formatTypeNames.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-mixed-union-properties.cjs +0 -220
- package/build/eslint/cjs/src/eslint/rules/no-mixed-union-properties.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-mixed-union-properties.d.ts +0 -4
- package/build/eslint/cjs/src/eslint/rules/no-mixed-union-properties.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-type-imports.cjs +0 -251
- package/build/eslint/cjs/src/eslint/rules/no-type-imports.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-type-imports.d.ts +0 -4
- package/build/eslint/cjs/src/eslint/rules/no-type-imports.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-typeof-runtype.cjs +0 -72
- package/build/eslint/cjs/src/eslint/rules/no-typeof-runtype.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-typeof-runtype.d.ts +0 -4
- package/build/eslint/cjs/src/eslint/rules/no-typeof-runtype.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-unreachable-union-types.cjs +0 -220
- package/build/eslint/cjs/src/eslint/rules/no-unreachable-union-types.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-unreachable-union-types.d.ts +0 -4
- package/build/eslint/cjs/src/eslint/rules/no-unreachable-union-types.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-vite-client.cjs +0 -71
- package/build/eslint/cjs/src/eslint/rules/no-vite-client.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/no-vite-client.d.ts +0 -5
- package/build/eslint/cjs/src/eslint/rules/no-vite-client.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/pure-functions.cjs +0 -346
- package/build/eslint/cjs/src/eslint/rules/pure-functions.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/pure-functions.d.ts +0 -5
- package/build/eslint/cjs/src/eslint/rules/pure-functions.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/strong-typed-routes.cjs +0 -328
- package/build/eslint/cjs/src/eslint/rules/strong-typed-routes.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/strong-typed-routes.d.ts +0 -5
- package/build/eslint/cjs/src/eslint/rules/strong-typed-routes.d.ts.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/type-formats-imports.cjs +0 -52
- package/build/eslint/cjs/src/eslint/rules/type-formats-imports.cjs.map +0 -1
- package/build/eslint/cjs/src/eslint/rules/type-formats-imports.d.ts +0 -4
- package/build/eslint/cjs/src/eslint/rules/type-formats-imports.d.ts.map +0 -1
- package/build/eslint/cjs/src/pureFns/purityRules.cjs +0 -67
- package/build/eslint/cjs/src/pureFns/purityRules.cjs.map +0 -1
- package/build/eslint/cjs/src/pureFns/purityRules.d.ts +0 -5
- package/build/eslint/cjs/src/pureFns/purityRules.d.ts.map +0 -1
- package/build/eslint/esm/index.js +0 -42
- package/build/eslint/esm/index.js.map +0 -1
- package/build/eslint/esm/src/eslint/index.d.ts +0 -4
- package/build/eslint/esm/src/eslint/index.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/index.js +0 -14
- package/build/eslint/esm/src/eslint/index.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/enforce-type-imports.d.ts +0 -8
- package/build/eslint/esm/src/eslint/rules/enforce-type-imports.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/enforce-type-imports.js +0 -122
- package/build/eslint/esm/src/eslint/rules/enforce-type-imports.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/formatTypeNames.d.ts +0 -4
- package/build/eslint/esm/src/eslint/rules/formatTypeNames.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/formatTypeNames.js +0 -71
- package/build/eslint/esm/src/eslint/rules/formatTypeNames.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-mixed-union-properties.d.ts +0 -4
- package/build/eslint/esm/src/eslint/rules/no-mixed-union-properties.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-mixed-union-properties.js +0 -221
- package/build/eslint/esm/src/eslint/rules/no-mixed-union-properties.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-type-imports.d.ts +0 -4
- package/build/eslint/esm/src/eslint/rules/no-type-imports.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-type-imports.js +0 -252
- package/build/eslint/esm/src/eslint/rules/no-type-imports.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-typeof-runtype.d.ts +0 -4
- package/build/eslint/esm/src/eslint/rules/no-typeof-runtype.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-typeof-runtype.js +0 -73
- package/build/eslint/esm/src/eslint/rules/no-typeof-runtype.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-unreachable-union-types.d.ts +0 -4
- package/build/eslint/esm/src/eslint/rules/no-unreachable-union-types.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-unreachable-union-types.js +0 -221
- package/build/eslint/esm/src/eslint/rules/no-unreachable-union-types.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-vite-client.d.ts +0 -5
- package/build/eslint/esm/src/eslint/rules/no-vite-client.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/no-vite-client.js +0 -72
- package/build/eslint/esm/src/eslint/rules/no-vite-client.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/pure-functions.d.ts +0 -5
- package/build/eslint/esm/src/eslint/rules/pure-functions.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/pure-functions.js +0 -347
- package/build/eslint/esm/src/eslint/rules/pure-functions.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/strong-typed-routes.d.ts +0 -5
- package/build/eslint/esm/src/eslint/rules/strong-typed-routes.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/strong-typed-routes.js +0 -329
- package/build/eslint/esm/src/eslint/rules/strong-typed-routes.js.map +0 -1
- package/build/eslint/esm/src/eslint/rules/type-formats-imports.d.ts +0 -4
- package/build/eslint/esm/src/eslint/rules/type-formats-imports.d.ts.map +0 -1
- package/build/eslint/esm/src/eslint/rules/type-formats-imports.js +0 -53
- package/build/eslint/esm/src/eslint/rules/type-formats-imports.js.map +0 -1
- package/build/eslint/esm/src/pureFns/purityRules.d.ts +0 -5
- package/build/eslint/esm/src/pureFns/purityRules.d.ts.map +0 -1
- package/build/eslint/esm/src/pureFns/purityRules.js +0 -67
- package/build/eslint/esm/src/pureFns/purityRules.js.map +0 -1
- package/build/vite-plugin/cjs/index.cjs +0 -13
- package/build/vite-plugin/cjs/index.cjs.map +0 -1
- package/build/vite-plugin/cjs/package.json +0 -1
- package/build/vite-plugin/cjs/src/pureFns/purityRules.cjs +0 -65
- package/build/vite-plugin/cjs/src/pureFns/purityRules.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/pureFns/purityRules.d.ts +0 -5
- package/build/vite-plugin/cjs/src/pureFns/purityRules.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/aotCacheGenerator.cjs +0 -271
- package/build/vite-plugin/cjs/src/vite-plugin/aotCacheGenerator.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/aotCacheGenerator.d.ts +0 -32
- package/build/vite-plugin/cjs/src/vite-plugin/aotCacheGenerator.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/aotDiskCache.cjs +0 -135
- package/build/vite-plugin/cjs/src/vite-plugin/aotDiskCache.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/aotDiskCache.d.ts +0 -7
- package/build/vite-plugin/cjs/src/vite-plugin/aotDiskCache.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/cjsPackageJsonPlugin.cjs +0 -15
- package/build/vite-plugin/cjs/src/vite-plugin/cjsPackageJsonPlugin.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/cjsPackageJsonPlugin.d.ts +0 -3
- package/build/vite-plugin/cjs/src/vite-plugin/cjsPackageJsonPlugin.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/constants.cjs +0 -29
- package/build/vite-plugin/cjs/src/vite-plugin/constants.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/constants.d.ts +0 -13
- package/build/vite-plugin/cjs/src/vite-plugin/constants.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/extractPureFn.cjs +0 -628
- package/build/vite-plugin/cjs/src/vite-plugin/extractPureFn.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/extractPureFn.d.ts +0 -14
- package/build/vite-plugin/cjs/src/vite-plugin/extractPureFn.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/index.cjs +0 -13
- package/build/vite-plugin/cjs/src/vite-plugin/index.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/index.d.ts +0 -6
- package/build/vite-plugin/cjs/src/vite-plugin/index.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/mionVitePlugin.cjs +0 -511
- package/build/vite-plugin/cjs/src/vite-plugin/mionVitePlugin.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/mionVitePlugin.d.ts +0 -37
- package/build/vite-plugin/cjs/src/vite-plugin/mionVitePlugin.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/resolveModule.cjs +0 -55
- package/build/vite-plugin/cjs/src/vite-plugin/resolveModule.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/resolveModule.d.ts +0 -2
- package/build/vite-plugin/cjs/src/vite-plugin/resolveModule.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/transformers.cjs +0 -166
- package/build/vite-plugin/cjs/src/vite-plugin/transformers.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/transformers.d.ts +0 -11
- package/build/vite-plugin/cjs/src/vite-plugin/transformers.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/types.cjs +0 -2
- package/build/vite-plugin/cjs/src/vite-plugin/types.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/types.d.ts +0 -60
- package/build/vite-plugin/cjs/src/vite-plugin/types.d.ts.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/virtual-modules.d.cjs +0 -2
- package/build/vite-plugin/cjs/src/vite-plugin/virtual-modules.d.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/virtualModule.cjs +0 -69
- package/build/vite-plugin/cjs/src/vite-plugin/virtualModule.cjs.map +0 -1
- package/build/vite-plugin/cjs/src/vite-plugin/virtualModule.d.ts +0 -3
- package/build/vite-plugin/cjs/src/vite-plugin/virtualModule.d.ts.map +0 -1
- package/build/vite-plugin/esm/index.js +0 -13
- package/build/vite-plugin/esm/index.js.map +0 -1
- package/build/vite-plugin/esm/src/pureFns/purityRules.d.ts +0 -5
- package/build/vite-plugin/esm/src/pureFns/purityRules.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/pureFns/purityRules.js +0 -65
- package/build/vite-plugin/esm/src/pureFns/purityRules.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/aotCacheGenerator.d.ts +0 -32
- package/build/vite-plugin/esm/src/vite-plugin/aotCacheGenerator.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/aotCacheGenerator.js +0 -271
- package/build/vite-plugin/esm/src/vite-plugin/aotCacheGenerator.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/aotDiskCache.d.ts +0 -7
- package/build/vite-plugin/esm/src/vite-plugin/aotDiskCache.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/aotDiskCache.js +0 -134
- package/build/vite-plugin/esm/src/vite-plugin/aotDiskCache.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/cjsPackageJsonPlugin.d.ts +0 -3
- package/build/vite-plugin/esm/src/vite-plugin/cjsPackageJsonPlugin.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/cjsPackageJsonPlugin.js +0 -15
- package/build/vite-plugin/esm/src/vite-plugin/cjsPackageJsonPlugin.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/constants.d.ts +0 -13
- package/build/vite-plugin/esm/src/vite-plugin/constants.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/constants.js +0 -29
- package/build/vite-plugin/esm/src/vite-plugin/constants.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/extractPureFn.d.ts +0 -14
- package/build/vite-plugin/esm/src/vite-plugin/extractPureFn.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/extractPureFn.js +0 -611
- package/build/vite-plugin/esm/src/vite-plugin/extractPureFn.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/index.d.ts +0 -6
- package/build/vite-plugin/esm/src/vite-plugin/index.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/index.js +0 -13
- package/build/vite-plugin/esm/src/vite-plugin/index.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/mionVitePlugin.d.ts +0 -37
- package/build/vite-plugin/esm/src/vite-plugin/mionVitePlugin.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/mionVitePlugin.js +0 -493
- package/build/vite-plugin/esm/src/vite-plugin/mionVitePlugin.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/resolveModule.d.ts +0 -2
- package/build/vite-plugin/esm/src/vite-plugin/resolveModule.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/resolveModule.js +0 -33
- package/build/vite-plugin/esm/src/vite-plugin/resolveModule.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/transformers.d.ts +0 -11
- package/build/vite-plugin/esm/src/vite-plugin/transformers.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/transformers.js +0 -149
- package/build/vite-plugin/esm/src/vite-plugin/transformers.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/types.d.ts +0 -60
- package/build/vite-plugin/esm/src/vite-plugin/types.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/types.js +0 -2
- package/build/vite-plugin/esm/src/vite-plugin/types.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/virtual-modules.d.js +0 -2
- package/build/vite-plugin/esm/src/vite-plugin/virtual-modules.d.js.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/virtualModule.d.ts +0 -3
- package/build/vite-plugin/esm/src/vite-plugin/virtualModule.d.ts.map +0 -1
- package/build/vite-plugin/esm/src/vite-plugin/virtualModule.js +0 -69
- package/build/vite-plugin/esm/src/vite-plugin/virtualModule.js.map +0 -1
- package/src/eslint/index.ts +0 -53
- package/src/eslint/rules/enforce-type-imports.ts +0 -157
- package/src/eslint/rules/formatTypeNames.ts +0 -92
- package/src/eslint/rules/no-mixed-union-properties.ts +0 -276
- package/src/eslint/rules/no-type-imports.ts +0 -386
- package/src/eslint/rules/no-typeof-runtype.ts +0 -112
- package/src/eslint/rules/no-unreachable-union-types.ts +0 -357
- package/src/eslint/rules/no-vite-client.ts +0 -101
- package/src/eslint/rules/pure-functions.ts +0 -523
- package/src/eslint/rules/strong-typed-routes.ts +0 -537
- package/src/eslint/rules/type-formats-imports.ts +0 -73
- package/src/pureFns/purityRules.ts +0 -76
- package/src/vite-plugin/README.md +0 -399
- package/src/vite-plugin/aotCacheGenerator.ts +0 -397
- package/src/vite-plugin/aotDiskCache.ts +0 -193
- package/src/vite-plugin/cjsPackageJsonPlugin.ts +0 -21
- package/src/vite-plugin/constants.ts +0 -50
- package/src/vite-plugin/extractPureFn.ts +0 -845
- package/src/vite-plugin/index.ts +0 -27
- package/src/vite-plugin/mionVitePlugin.ts +0 -738
- package/src/vite-plugin/resolveModule.ts +0 -50
- package/src/vite-plugin/transformers.ts +0 -209
- package/src/vite-plugin/types.ts +0 -182
- package/src/vite-plugin/virtual-modules.d.ts +0 -48
- package/src/vite-plugin/virtualModule.ts +0 -94
|
@@ -0,0 +1,1008 @@
|
|
|
1
|
+
export const DIAGNOSTIC_CATALOG = {
|
|
2
|
+
'comment-downgrade-error-already-warning': {
|
|
3
|
+
headline: '`@mion-downgrade-error {name}` does nothing: that code is already a warning or info, so it was never halting your build.',
|
|
4
|
+
level: 'info',
|
|
5
|
+
family: 'marker',
|
|
6
|
+
slots: ['name'],
|
|
7
|
+
},
|
|
8
|
+
'comment-downgrade-error-not-allowed': {
|
|
9
|
+
headline: '`@mion-downgrade-error {name}` cannot lower that code: the build produces no code for it, so carrying on would ship missing output.',
|
|
10
|
+
level: 'warning',
|
|
11
|
+
family: 'marker',
|
|
12
|
+
slots: ['name'],
|
|
13
|
+
},
|
|
14
|
+
'comment-downgrade-error-unknown-name': {
|
|
15
|
+
headline: '`@mion-downgrade-error {name}` names a diagnostic that does not exist; check the spelling against the name in the message you are lowering.',
|
|
16
|
+
level: 'warning',
|
|
17
|
+
family: 'marker',
|
|
18
|
+
slots: ['name'],
|
|
19
|
+
},
|
|
20
|
+
'comment-downgrade-error-unused': {
|
|
21
|
+
headline: 'Unused `@mion-downgrade-error {name}`: nothing was reported on the line below it, so the comment is stale and can be deleted.',
|
|
22
|
+
level: 'warning',
|
|
23
|
+
family: 'marker',
|
|
24
|
+
slots: ['name'],
|
|
25
|
+
},
|
|
26
|
+
'comment-expect-error-not-allowed': {
|
|
27
|
+
headline: '`@mion-expect-error {name}` cannot silence that code: it is reported even when everything else is silenced.',
|
|
28
|
+
level: 'warning',
|
|
29
|
+
family: 'marker',
|
|
30
|
+
slots: ['name'],
|
|
31
|
+
},
|
|
32
|
+
'comment-expect-error-unknown-name': {
|
|
33
|
+
headline: '`@mion-expect-error {name}` names a diagnostic that does not exist; check the spelling against the name in the message you are silencing.',
|
|
34
|
+
level: 'warning',
|
|
35
|
+
family: 'marker',
|
|
36
|
+
slots: ['name'],
|
|
37
|
+
},
|
|
38
|
+
'comment-expect-error-unused': {
|
|
39
|
+
headline: 'Unused `@mion-expect-error {name}`: nothing was reported on the line below it, so the comment is stale and can be deleted.',
|
|
40
|
+
level: 'warning',
|
|
41
|
+
family: 'marker',
|
|
42
|
+
slots: ['name'],
|
|
43
|
+
},
|
|
44
|
+
'config-lib-missing-base': {
|
|
45
|
+
headline: 'The project `lib` declares no base ECMAScript library (loaded: {libs}), so core globals like `Array` are missing and reflected types cannot be trusted.',
|
|
46
|
+
level: 'runtimeError',
|
|
47
|
+
family: 'marker',
|
|
48
|
+
slots: ['libs'],
|
|
49
|
+
},
|
|
50
|
+
'config-output-outside-out-dir': {
|
|
51
|
+
headline: '`mion compile` refused to write {file}: it lands outside outDir ({outDir}) because its source sits outside rootDir; move rootDir up so every file of the program is under it, or reach that module through its package name.',
|
|
52
|
+
level: 'error',
|
|
53
|
+
family: 'marker',
|
|
54
|
+
slots: ['file', 'outDir'],
|
|
55
|
+
},
|
|
56
|
+
'config-tsconfig-not-loaded': {
|
|
57
|
+
headline: 'Project tsconfig failed to load ({reason}): the build, the linter, and the CLI all read this config, so nothing can run until it loads.',
|
|
58
|
+
level: 'error',
|
|
59
|
+
family: 'marker',
|
|
60
|
+
slots: ['reason'],
|
|
61
|
+
},
|
|
62
|
+
'data-non-enumerable-required': {
|
|
63
|
+
headline: 'Property `{property}` is tagged @nonEnumerable but is required: the guard only applies to optional properties, so the tag has no effect. Make it optional (`{property}?`) or remove the tag.',
|
|
64
|
+
level: 'warning',
|
|
65
|
+
family: 'runtype',
|
|
66
|
+
slots: ['property'],
|
|
67
|
+
},
|
|
68
|
+
'data-proto-property-dropped': {
|
|
69
|
+
headline: 'Property `{property}` can never be data and is dropped: the rest of the type still works.',
|
|
70
|
+
level: 'warning',
|
|
71
|
+
family: 'runtype',
|
|
72
|
+
slots: ['property'],
|
|
73
|
+
},
|
|
74
|
+
'drizzle-mixed-types': {
|
|
75
|
+
headline: 'This file defines a slim Mion schema or model and imports heavy Drizzle types or toDrizzle. A client importing a model from this file also type-checks its toDrizzle and query code in a full check, and bundles drizzle-orm on a value import. Move toDrizzle and heavy Drizzle imports to a separate query or database file.',
|
|
76
|
+
level: 'runtimeError',
|
|
77
|
+
family: 'drizzle',
|
|
78
|
+
},
|
|
79
|
+
'drizzle-type-not-allowed': {
|
|
80
|
+
headline: 'Public handler {position} uses a Drizzle ORM type. Use a slim @mionjs/drizzle-orm model or a plain public type to keep client type checking small.',
|
|
81
|
+
level: 'warning',
|
|
82
|
+
family: 'drizzle',
|
|
83
|
+
slots: ['position'],
|
|
84
|
+
},
|
|
85
|
+
'enrich-mirror-moved': {
|
|
86
|
+
headline: 'Mirror location drift: the source maps to `{expected}` but this file lives at `{actual}`; re-run `mion enrich` to relocate.',
|
|
87
|
+
level: 'warning',
|
|
88
|
+
family: 'enrich',
|
|
89
|
+
slots: ['expected', 'actual'],
|
|
90
|
+
},
|
|
91
|
+
'enrich-mirror-source-missing': {
|
|
92
|
+
headline: 'Breadcrumb source `{source}` no longer exists ({reason}): the mirror is orphaned; delete it or re-run `mion enrich`.',
|
|
93
|
+
level: 'runtimeError',
|
|
94
|
+
family: 'enrich',
|
|
95
|
+
slots: ['source', 'reason'],
|
|
96
|
+
},
|
|
97
|
+
'enrich-mirror-type-missing': {
|
|
98
|
+
headline: 'Source {source} no longer declares type `{type}`; re-run `mion enrich`.',
|
|
99
|
+
level: 'runtimeError',
|
|
100
|
+
family: 'enrich',
|
|
101
|
+
slots: ['source', 'type'],
|
|
102
|
+
},
|
|
103
|
+
'enrich-mirror-unreadable': {
|
|
104
|
+
headline: 'Cannot read enrichment mirror file: {reason}',
|
|
105
|
+
level: 'error',
|
|
106
|
+
family: 'enrich',
|
|
107
|
+
slots: ['reason'],
|
|
108
|
+
},
|
|
109
|
+
'enrich-mock-blank-value': {
|
|
110
|
+
headline: 'Unfilled blank value: a scaffolded sample pool or range is still empty; fill in real data.',
|
|
111
|
+
level: 'warning',
|
|
112
|
+
family: 'enrich',
|
|
113
|
+
completeness: true,
|
|
114
|
+
},
|
|
115
|
+
'enrich-mock-orphan-field': {
|
|
116
|
+
headline: 'Stale `@rtOrphanChild` field carcass; run `mion enrich --prune` to remove it (or restore the field).',
|
|
117
|
+
level: 'warning',
|
|
118
|
+
family: 'enrich',
|
|
119
|
+
},
|
|
120
|
+
'enrich-mock-orphan-type': {
|
|
121
|
+
headline: 'Stale `@rtOrphan` carcass; run `mion enrich --prune` to remove it (or restore the type).',
|
|
122
|
+
level: 'warning',
|
|
123
|
+
family: 'enrich',
|
|
124
|
+
},
|
|
125
|
+
'enrich-mock-reserved-prefix': {
|
|
126
|
+
headline: 'Property `{property}` collides with the reserved `rt$` enrichment prefix: the type cannot be enriched.',
|
|
127
|
+
level: 'error',
|
|
128
|
+
family: 'enrich',
|
|
129
|
+
slots: ['property'],
|
|
130
|
+
},
|
|
131
|
+
'enrich-mock-todo-left': {
|
|
132
|
+
headline: 'Unfilled `@todo` placeholder; fill in the real sample pools/ranges, then delete the `@todo` line.',
|
|
133
|
+
level: 'warning',
|
|
134
|
+
family: 'enrich',
|
|
135
|
+
completeness: true,
|
|
136
|
+
},
|
|
137
|
+
'enrich-mock-unknown-field': {
|
|
138
|
+
headline: 'Unknown field `{field}`: the type does not declare it, so this MockData entry is dead.',
|
|
139
|
+
level: 'warning',
|
|
140
|
+
family: 'enrich',
|
|
141
|
+
slots: ['field'],
|
|
142
|
+
},
|
|
143
|
+
'enrich-text-blank-value': {
|
|
144
|
+
headline: 'Unfilled blank value: a scaffolded label or message is still empty; fill in the real text.',
|
|
145
|
+
level: 'warning',
|
|
146
|
+
family: 'enrich',
|
|
147
|
+
completeness: true,
|
|
148
|
+
},
|
|
149
|
+
'enrich-text-default-and-messages': {
|
|
150
|
+
headline: '`rt$default` is mutually exclusive with per-constraint messages; use one mode or the other.',
|
|
151
|
+
level: 'warning',
|
|
152
|
+
family: 'enrich',
|
|
153
|
+
},
|
|
154
|
+
'enrich-text-missing-message': {
|
|
155
|
+
headline: 'Error key `{key}` has no message: this failure shows a generic one.',
|
|
156
|
+
level: 'warning',
|
|
157
|
+
family: 'enrich',
|
|
158
|
+
slots: ['key'],
|
|
159
|
+
},
|
|
160
|
+
'enrich-text-orphan-field': {
|
|
161
|
+
headline: 'Stale `@rtOrphanChild` field carcass; run `mion enrich --prune` to remove it (or restore the field).',
|
|
162
|
+
level: 'warning',
|
|
163
|
+
family: 'enrich',
|
|
164
|
+
},
|
|
165
|
+
'enrich-text-orphan-type': {
|
|
166
|
+
headline: 'Stale `@rtOrphan` carcass; run `mion enrich --prune` to remove it (or restore the type).',
|
|
167
|
+
level: 'warning',
|
|
168
|
+
family: 'enrich',
|
|
169
|
+
},
|
|
170
|
+
'enrich-text-plural-missing-other': {
|
|
171
|
+
headline: 'Plural error template is missing the mandatory `other` arm: the render has no backstop.',
|
|
172
|
+
level: 'warning',
|
|
173
|
+
family: 'enrich',
|
|
174
|
+
},
|
|
175
|
+
'enrich-text-plural-without-count': {
|
|
176
|
+
headline: 'Constraint `{constraint}` carries no count: a plural template here has dead arms; use a plain string.',
|
|
177
|
+
level: 'info',
|
|
178
|
+
family: 'enrich',
|
|
179
|
+
slots: ['constraint'],
|
|
180
|
+
},
|
|
181
|
+
'enrich-text-reserved-prefix': {
|
|
182
|
+
headline: 'Property `{property}` collides with the reserved `rt$` enrichment prefix: the type cannot be enriched.',
|
|
183
|
+
level: 'error',
|
|
184
|
+
family: 'enrich',
|
|
185
|
+
slots: ['property'],
|
|
186
|
+
},
|
|
187
|
+
'enrich-text-todo-left': {
|
|
188
|
+
headline: 'Unfilled `@todo` placeholder; fill in the real labels/messages, then delete the `@todo` line.',
|
|
189
|
+
level: 'warning',
|
|
190
|
+
family: 'enrich',
|
|
191
|
+
completeness: true,
|
|
192
|
+
},
|
|
193
|
+
'enrich-text-unknown-error-key': {
|
|
194
|
+
headline: 'Error key `{key}` is not a declared constraint of this field: the message can never fire.',
|
|
195
|
+
level: 'warning',
|
|
196
|
+
family: 'enrich',
|
|
197
|
+
slots: ['key'],
|
|
198
|
+
},
|
|
199
|
+
'enrich-text-unknown-field': {
|
|
200
|
+
headline: 'Unknown field `{field}`: the type does not declare it, so this FriendlyText entry is dead.',
|
|
201
|
+
level: 'warning',
|
|
202
|
+
family: 'enrich',
|
|
203
|
+
slots: ['field'],
|
|
204
|
+
},
|
|
205
|
+
'enrich-text-unknown-placeholder': {
|
|
206
|
+
headline: 'Unknown placeholder `$[{placeholder}]`: expected one of `$[label]`, `$[val]`, `$[path]`, `$[index]`.',
|
|
207
|
+
level: 'warning',
|
|
208
|
+
family: 'enrich',
|
|
209
|
+
slots: ['placeholder'],
|
|
210
|
+
},
|
|
211
|
+
'enrich-text-unknown-plural-arm': {
|
|
212
|
+
headline: 'Unknown plural arm `{arm}`: CLDR categories are `zero`, `one`, `two`, `few`, `many`, `other`.',
|
|
213
|
+
level: 'warning',
|
|
214
|
+
family: 'enrich',
|
|
215
|
+
slots: ['arm'],
|
|
216
|
+
},
|
|
217
|
+
'format-invalid-params': {
|
|
218
|
+
headline: 'Invalid type-format params: {reason}',
|
|
219
|
+
level: 'runtimeError',
|
|
220
|
+
family: 'runtype',
|
|
221
|
+
slots: ['reason'],
|
|
222
|
+
},
|
|
223
|
+
'format-no-js-runtime': {
|
|
224
|
+
headline: 'TypeFormat pattern /{pattern}/ cannot be checked: {reason}; pattern validation requires a JavaScript runtime; install one or pass --js-runtime.',
|
|
225
|
+
level: 'runtimeError',
|
|
226
|
+
family: 'runtype',
|
|
227
|
+
slots: ['pattern', 'reason'],
|
|
228
|
+
},
|
|
229
|
+
'format-pattern-timeout': {
|
|
230
|
+
headline: 'TypeFormat pattern /{pattern}/ could not be evaluated in time: {reason}; the build was not able to tell whether the pattern is safe.',
|
|
231
|
+
level: 'runtimeError',
|
|
232
|
+
family: 'runtype',
|
|
233
|
+
slots: ['pattern', 'reason'],
|
|
234
|
+
},
|
|
235
|
+
'format-pattern-unreadable': {
|
|
236
|
+
headline: 'TypeFormat pattern `{pattern}` is a value the build cannot read, so the validator would not check it.',
|
|
237
|
+
level: 'runtimeError',
|
|
238
|
+
family: 'runtype',
|
|
239
|
+
slots: ['pattern'],
|
|
240
|
+
},
|
|
241
|
+
'format-pattern-unsafe': {
|
|
242
|
+
headline: 'TypeFormat pattern /{pattern}/ can be made to backtrack exponentially: {reason} (`{input}`); a crafted input would hang the validator.',
|
|
243
|
+
level: 'runtimeError',
|
|
244
|
+
family: 'runtype',
|
|
245
|
+
slots: ['pattern', 'reason', 'input'],
|
|
246
|
+
},
|
|
247
|
+
'format-sample-conflict': {
|
|
248
|
+
headline: 'Two sites share one cache entry for format `{format}` but declare different mockSamples: `{samples}` here vs `{otherSamples}` at {otherSite}. Make the pools identical, or declare one and leave the other out.',
|
|
249
|
+
level: 'runtimeError',
|
|
250
|
+
family: 'runtype',
|
|
251
|
+
slots: ['format', 'samples', 'otherSamples', 'otherSite'],
|
|
252
|
+
},
|
|
253
|
+
'format-sample-generation-failed': {
|
|
254
|
+
headline: 'Cannot auto-generate mockSamples for pattern /{pattern}/: {reason}; declare mockSamples explicitly.',
|
|
255
|
+
level: 'runtimeError',
|
|
256
|
+
family: 'runtype',
|
|
257
|
+
slots: ['pattern', 'reason'],
|
|
258
|
+
},
|
|
259
|
+
'format-sample-mismatch': {
|
|
260
|
+
headline: 'TypeFormat mockSample "{sample}" does not match its pattern /{pattern}/; fix the sample or the pattern.',
|
|
261
|
+
level: 'runtimeError',
|
|
262
|
+
family: 'runtype',
|
|
263
|
+
slots: ['sample', 'pattern'],
|
|
264
|
+
},
|
|
265
|
+
'format-sample-out-of-bounds': {
|
|
266
|
+
headline: 'TypeFormat mockSample violates a sibling constraint: {reason}',
|
|
267
|
+
level: 'runtimeError',
|
|
268
|
+
family: 'runtype',
|
|
269
|
+
slots: ['reason'],
|
|
270
|
+
},
|
|
271
|
+
'internal-json-primitive-missing': {
|
|
272
|
+
headline: 'Internal error: JSON composite `{composite}` references primitive entry `{primitive}` (type `{type}`) which was never rendered; please file an issue.',
|
|
273
|
+
level: 'runtimeError',
|
|
274
|
+
family: 'runtype',
|
|
275
|
+
slots: ['composite', 'primitive', 'type'],
|
|
276
|
+
},
|
|
277
|
+
'internal-kind-not-compilable': {
|
|
278
|
+
headline: 'Internal error: type `{type}` cannot be compiled here and has no diagnostic, so the function always throws; please file an issue.',
|
|
279
|
+
level: 'runtimeError',
|
|
280
|
+
family: 'runtype',
|
|
281
|
+
slots: ['type'],
|
|
282
|
+
},
|
|
283
|
+
'json-prepare-clone-function-property-dropped': {
|
|
284
|
+
headline: 'Property `{property}` is a function: the JSON encoder does not handle function values, so this property is silently not encoded.',
|
|
285
|
+
level: 'info',
|
|
286
|
+
family: 'runtype',
|
|
287
|
+
slots: ['property'],
|
|
288
|
+
},
|
|
289
|
+
'json-prepare-clone-function-root': {
|
|
290
|
+
headline: 'Type `{type}` can never be encoded to JSON: the generated function will always fail.',
|
|
291
|
+
level: 'runtimeError',
|
|
292
|
+
family: 'runtype',
|
|
293
|
+
slots: ['type'],
|
|
294
|
+
},
|
|
295
|
+
'json-prepare-clone-method-dropped': {
|
|
296
|
+
headline: "Method `{method}` is silently not encoded: methods aren't data.",
|
|
297
|
+
level: 'info',
|
|
298
|
+
family: 'runtype',
|
|
299
|
+
slots: ['method'],
|
|
300
|
+
},
|
|
301
|
+
'json-prepare-clone-never-root': {
|
|
302
|
+
headline: 'Type `{type}` can never be encoded to JSON: the generated function will always fail.',
|
|
303
|
+
level: 'runtimeError',
|
|
304
|
+
family: 'runtype',
|
|
305
|
+
slots: ['type'],
|
|
306
|
+
},
|
|
307
|
+
'json-prepare-clone-non-data-property-dropped': {
|
|
308
|
+
headline: 'Property `{property}` has a non-serialisable value type (symbol, Promise, or a non-serialisable built-in): the JSON encoder drops it, so this property is silently not encoded.',
|
|
309
|
+
level: 'info',
|
|
310
|
+
family: 'runtype',
|
|
311
|
+
slots: ['property'],
|
|
312
|
+
},
|
|
313
|
+
'json-prepare-clone-non-data-root': {
|
|
314
|
+
headline: 'Type `{type}` can never be encoded to JSON: the generated function will always fail.',
|
|
315
|
+
level: 'runtimeError',
|
|
316
|
+
family: 'runtype',
|
|
317
|
+
slots: ['type'],
|
|
318
|
+
},
|
|
319
|
+
'json-prepare-clone-static-dropped': {
|
|
320
|
+
headline: "Static member `{member}` is silently not encoded: statics aren't part of instance data.",
|
|
321
|
+
level: 'info',
|
|
322
|
+
family: 'runtype',
|
|
323
|
+
slots: ['member'],
|
|
324
|
+
},
|
|
325
|
+
'json-prepare-clone-symbol-key-dropped': {
|
|
326
|
+
headline: "Symbol-keyed property `{property}` is silently not encoded: symbol keys aren't JSON-representable.",
|
|
327
|
+
level: 'info',
|
|
328
|
+
family: 'runtype',
|
|
329
|
+
slots: ['property'],
|
|
330
|
+
},
|
|
331
|
+
'json-prepare-clone-symbol-root': {
|
|
332
|
+
headline: 'Type `{type}` can never be encoded to JSON: the generated function will always fail.',
|
|
333
|
+
level: 'runtimeError',
|
|
334
|
+
family: 'runtype',
|
|
335
|
+
slots: ['type'],
|
|
336
|
+
},
|
|
337
|
+
'json-prepare-clone-union-member-dropped': {
|
|
338
|
+
headline: "Union member(s) of type `{type}` can't be represented as data: the JSON encoder drops them, so the union is encoded as its remaining members.",
|
|
339
|
+
level: 'info',
|
|
340
|
+
family: 'runtype',
|
|
341
|
+
slots: ['type'],
|
|
342
|
+
},
|
|
343
|
+
'json-prepare-function-property-dropped': {
|
|
344
|
+
headline: 'Property `{property}` is a function: the JSON encoder does not handle function values, so this property is silently not encoded.',
|
|
345
|
+
level: 'info',
|
|
346
|
+
family: 'runtype',
|
|
347
|
+
slots: ['property'],
|
|
348
|
+
},
|
|
349
|
+
'json-prepare-function-root': {
|
|
350
|
+
headline: 'Type `{type}` can never be encoded to JSON: the generated function will always fail.',
|
|
351
|
+
level: 'runtimeError',
|
|
352
|
+
family: 'runtype',
|
|
353
|
+
slots: ['type'],
|
|
354
|
+
},
|
|
355
|
+
'json-prepare-method-dropped': {
|
|
356
|
+
headline: "Method `{method}` is silently not encoded: methods aren't data.",
|
|
357
|
+
level: 'info',
|
|
358
|
+
family: 'runtype',
|
|
359
|
+
slots: ['method'],
|
|
360
|
+
},
|
|
361
|
+
'json-prepare-never-root': {
|
|
362
|
+
headline: 'Type `{type}` can never be encoded to JSON: the generated function will always fail.',
|
|
363
|
+
level: 'runtimeError',
|
|
364
|
+
family: 'runtype',
|
|
365
|
+
slots: ['type'],
|
|
366
|
+
},
|
|
367
|
+
'json-prepare-non-data-property-dropped': {
|
|
368
|
+
headline: 'Property `{property}` has a non-serialisable value type (symbol, Promise, or a non-serialisable built-in): the JSON encoder drops it, so this property is silently not encoded.',
|
|
369
|
+
level: 'info',
|
|
370
|
+
family: 'runtype',
|
|
371
|
+
slots: ['property'],
|
|
372
|
+
},
|
|
373
|
+
'json-prepare-non-data-root': {
|
|
374
|
+
headline: 'Type `{type}` can never be encoded to JSON: the generated function will always fail.',
|
|
375
|
+
level: 'runtimeError',
|
|
376
|
+
family: 'runtype',
|
|
377
|
+
slots: ['type'],
|
|
378
|
+
},
|
|
379
|
+
'json-prepare-static-dropped': {
|
|
380
|
+
headline: "Static member `{member}` is silently not encoded: statics aren't part of instance data.",
|
|
381
|
+
level: 'info',
|
|
382
|
+
family: 'runtype',
|
|
383
|
+
slots: ['member'],
|
|
384
|
+
},
|
|
385
|
+
'json-prepare-symbol-key-dropped': {
|
|
386
|
+
headline: "Symbol-keyed property `{property}` is silently not encoded: symbol keys aren't JSON-representable.",
|
|
387
|
+
level: 'info',
|
|
388
|
+
family: 'runtype',
|
|
389
|
+
slots: ['property'],
|
|
390
|
+
},
|
|
391
|
+
'json-prepare-symbol-root': {
|
|
392
|
+
headline: 'Type `{type}` can never be encoded to JSON: the generated function will always fail.',
|
|
393
|
+
level: 'runtimeError',
|
|
394
|
+
family: 'runtype',
|
|
395
|
+
slots: ['type'],
|
|
396
|
+
},
|
|
397
|
+
'json-prepare-union-member-dropped': {
|
|
398
|
+
headline: "Union member(s) of type `{type}` can't be represented as data: the JSON encoder drops them, so the union is encoded as its remaining members.",
|
|
399
|
+
level: 'info',
|
|
400
|
+
family: 'runtype',
|
|
401
|
+
slots: ['type'],
|
|
402
|
+
},
|
|
403
|
+
'json-restore-function-property-dropped': {
|
|
404
|
+
headline: 'Property `{property}` is a function: the JSON decoder does not handle function values, so this property is silently not decoded.',
|
|
405
|
+
level: 'info',
|
|
406
|
+
family: 'runtype',
|
|
407
|
+
slots: ['property'],
|
|
408
|
+
},
|
|
409
|
+
'json-restore-function-root': {
|
|
410
|
+
headline: 'Type `{type}` can never be decoded from JSON: the generated function will always fail.',
|
|
411
|
+
level: 'runtimeError',
|
|
412
|
+
family: 'runtype',
|
|
413
|
+
slots: ['type'],
|
|
414
|
+
},
|
|
415
|
+
'json-restore-method-dropped': {
|
|
416
|
+
headline: "Method `{method}` is silently not decoded: methods aren't data.",
|
|
417
|
+
level: 'info',
|
|
418
|
+
family: 'runtype',
|
|
419
|
+
slots: ['method'],
|
|
420
|
+
},
|
|
421
|
+
'json-restore-never-root': {
|
|
422
|
+
headline: 'Type `{type}` can never be decoded from JSON: the generated function will always fail.',
|
|
423
|
+
level: 'runtimeError',
|
|
424
|
+
family: 'runtype',
|
|
425
|
+
slots: ['type'],
|
|
426
|
+
},
|
|
427
|
+
'json-restore-non-data-property-dropped': {
|
|
428
|
+
headline: 'Property `{property}` has a non-serialisable value type (symbol, Promise, or a non-serialisable built-in): the JSON decoder drops it, so this property is silently not decoded.',
|
|
429
|
+
level: 'info',
|
|
430
|
+
family: 'runtype',
|
|
431
|
+
slots: ['property'],
|
|
432
|
+
},
|
|
433
|
+
'json-restore-non-data-root': {
|
|
434
|
+
headline: 'Type `{type}` can never be decoded from JSON: the generated function will always fail.',
|
|
435
|
+
level: 'runtimeError',
|
|
436
|
+
family: 'runtype',
|
|
437
|
+
slots: ['type'],
|
|
438
|
+
},
|
|
439
|
+
'json-restore-static-dropped': {
|
|
440
|
+
headline: "Static member `{member}` is silently not decoded: statics aren't part of instance data.",
|
|
441
|
+
level: 'info',
|
|
442
|
+
family: 'runtype',
|
|
443
|
+
slots: ['member'],
|
|
444
|
+
},
|
|
445
|
+
'json-restore-symbol-key-dropped': {
|
|
446
|
+
headline: "Symbol-keyed property `{property}` is silently not decoded: symbol keys aren't JSON-representable.",
|
|
447
|
+
level: 'info',
|
|
448
|
+
family: 'runtype',
|
|
449
|
+
slots: ['property'],
|
|
450
|
+
},
|
|
451
|
+
'json-restore-symbol-root': {
|
|
452
|
+
headline: 'Type `{type}` can never be decoded from JSON: the generated function will always fail.',
|
|
453
|
+
level: 'runtimeError',
|
|
454
|
+
family: 'runtype',
|
|
455
|
+
slots: ['type'],
|
|
456
|
+
},
|
|
457
|
+
'json-restore-union-member-dropped': {
|
|
458
|
+
headline: "Union member(s) of type `{type}` can't be represented as data: the JSON decoder drops them, so the union is decoded as its remaining members.",
|
|
459
|
+
level: 'info',
|
|
460
|
+
family: 'runtype',
|
|
461
|
+
slots: ['type'],
|
|
462
|
+
},
|
|
463
|
+
'marker-any-from-unresolved-import': {
|
|
464
|
+
headline: 'Marker type resolved to `any` because this file has an unresolved import (`{import}`): the generated functions would silently accept anything.',
|
|
465
|
+
level: 'runtimeError',
|
|
466
|
+
family: 'marker',
|
|
467
|
+
slots: ['import'],
|
|
468
|
+
},
|
|
469
|
+
'marker-any-from-unresolved-name': {
|
|
470
|
+
headline: 'Marker type resolved to `any` that was never written: `{name}` failed to resolve (or its declaration references a name that does not), so the generated functions would silently accept anything.',
|
|
471
|
+
level: 'runtimeError',
|
|
472
|
+
family: 'marker',
|
|
473
|
+
slots: ['name'],
|
|
474
|
+
},
|
|
475
|
+
'marker-calls-function-for-type': {
|
|
476
|
+
headline: '`{function}()` is being called at runtime just so the marker can read its return type: side effects, throws, or async work run for nothing.',
|
|
477
|
+
level: 'warning',
|
|
478
|
+
family: 'marker',
|
|
479
|
+
slots: ['function'],
|
|
480
|
+
},
|
|
481
|
+
'marker-comptime-arg-forbidden-construct': {
|
|
482
|
+
headline: '`CompTimeArgs<T>` literal contains a forbidden construct ({construct}). Only literals and nested literals are allowed.',
|
|
483
|
+
level: 'runtimeError',
|
|
484
|
+
family: 'marker',
|
|
485
|
+
slots: ['construct'],
|
|
486
|
+
},
|
|
487
|
+
'marker-comptime-arg-not-literal': {
|
|
488
|
+
headline: '`CompTimeArgs<T>` argument must be a literal at the call site, or a `const` whose initializer is itself entirely literal (a same-module or imported `const` both work).',
|
|
489
|
+
level: 'runtimeError',
|
|
490
|
+
family: 'marker',
|
|
491
|
+
},
|
|
492
|
+
'marker-comptime-arg-too-deep': {
|
|
493
|
+
headline: '`CompTimeArgs<T>` literal nesting exceeds the depth cap (16), refactor to flatten.',
|
|
494
|
+
level: 'runtimeError',
|
|
495
|
+
family: 'marker',
|
|
496
|
+
},
|
|
497
|
+
'marker-comptime-arg-widened-const': {
|
|
498
|
+
headline: '`CompTimeArgs<T>` value comes from a `const` with a widened (non-literal) member ({member}); declare the const `as const`.',
|
|
499
|
+
level: 'runtimeError',
|
|
500
|
+
family: 'marker',
|
|
501
|
+
slots: ['member'],
|
|
502
|
+
},
|
|
503
|
+
'marker-duplicate-function-family': {
|
|
504
|
+
headline: '`InjectTypeFnArgs` names the function family `{family}` more than once; remove the duplicate key.',
|
|
505
|
+
level: 'info',
|
|
506
|
+
family: 'marker',
|
|
507
|
+
slots: ['family'],
|
|
508
|
+
},
|
|
509
|
+
'marker-generic-missing-type-argument': {
|
|
510
|
+
headline: 'Generic type `{type}` is used without its required type argument(s): parameter `{typeParam}` has no default, so the type cannot resolve to an id. See Related for where `{typeParam}` is declared.',
|
|
511
|
+
level: 'error',
|
|
512
|
+
family: 'marker',
|
|
513
|
+
slots: ['type', 'typeParam'],
|
|
514
|
+
},
|
|
515
|
+
'marker-in-generic-function': {
|
|
516
|
+
headline: 'Marker call is inside a generic function: the type argument is unresolved, so no id can be computed at build time.',
|
|
517
|
+
level: 'error',
|
|
518
|
+
family: 'marker',
|
|
519
|
+
},
|
|
520
|
+
'marker-self-instantiating-generic': {
|
|
521
|
+
headline: 'Type `{type}` re-instantiates itself with fresh type arguments at every level (a self-instantiating generic), so its structural id never resolves. Reflect a monomorphic shape instead.',
|
|
522
|
+
level: 'error',
|
|
523
|
+
family: 'marker',
|
|
524
|
+
slots: ['type'],
|
|
525
|
+
},
|
|
526
|
+
'marker-temporal-lib-missing': {
|
|
527
|
+
headline: "Temporal type `{type}` resolved to `any`: the Temporal lib isn't in your tsconfig `lib`, so the generated validator would accept any value.",
|
|
528
|
+
level: 'runtimeError',
|
|
529
|
+
family: 'marker',
|
|
530
|
+
slots: ['type'],
|
|
531
|
+
},
|
|
532
|
+
'marker-type-id-collision': {
|
|
533
|
+
headline: 'Two different types get the same id `{id}`: `{firstType}` from {firstSite}, and `{secondType}` here. Raise the `hashLength` option to {hashLength} so every type keeps its own id.',
|
|
534
|
+
level: 'error',
|
|
535
|
+
family: 'marker',
|
|
536
|
+
slots: ['id', 'firstType', 'firstSite', 'secondType', 'hashLength'],
|
|
537
|
+
},
|
|
538
|
+
'marker-type-too-deep': {
|
|
539
|
+
headline: 'This type is too deeply nested to reflect: computing its structural id hit the recursion depth cap, so the build stops here instead of crashing.',
|
|
540
|
+
level: 'error',
|
|
541
|
+
family: 'marker',
|
|
542
|
+
},
|
|
543
|
+
'marker-unknown-function-family': {
|
|
544
|
+
headline: '`InjectTypeFnArgs` names `{family}`, which is not a function family{hint}',
|
|
545
|
+
level: 'error',
|
|
546
|
+
family: 'marker',
|
|
547
|
+
slots: ['family', 'hint'],
|
|
548
|
+
},
|
|
549
|
+
'marker-unresolved-type-parameter': {
|
|
550
|
+
headline: 'Type argument contains the unresolved type parameter `{typeParam}`: a generic must be fully resolved at the marker call, so no id can be computed. See Related for where `{typeParam}` is declared.',
|
|
551
|
+
level: 'error',
|
|
552
|
+
family: 'marker',
|
|
553
|
+
slots: ['typeParam'],
|
|
554
|
+
},
|
|
555
|
+
'marker-untrusted-package': {
|
|
556
|
+
headline: '`{name}` here was declared by `{package}`, which this project does not trust as a marker package, so the type argument was dropped and this call reflects `unknown`.',
|
|
557
|
+
level: 'runtimeError',
|
|
558
|
+
family: 'marker',
|
|
559
|
+
slots: ['name', 'package'],
|
|
560
|
+
},
|
|
561
|
+
'marker-untyped-private-member': {
|
|
562
|
+
headline: "Private member `{member}` of class `{class}` has no type in its declaration file, so the generated functions would accept any value for it. Build the class's package with `mion compile`, which keeps private member types, or read it from its TypeScript sources.",
|
|
563
|
+
level: 'runtimeError',
|
|
564
|
+
family: 'marker',
|
|
565
|
+
slots: ['member', 'class'],
|
|
566
|
+
},
|
|
567
|
+
'override-duplicate': {
|
|
568
|
+
headline: 'Duplicate override for `{key}`: there can be exactly one override per (type, function).',
|
|
569
|
+
level: 'runtimeError',
|
|
570
|
+
family: 'marker',
|
|
571
|
+
slots: ['key'],
|
|
572
|
+
},
|
|
573
|
+
'override-function-not-built': {
|
|
574
|
+
headline: 'Override entry `{entry}` references compiled function `{function}` which did not render: this would throw at runtime, so the build stops.',
|
|
575
|
+
level: 'runtimeError',
|
|
576
|
+
family: 'marker',
|
|
577
|
+
slots: ['entry', 'function'],
|
|
578
|
+
},
|
|
579
|
+
'override-validate-affects-json': {
|
|
580
|
+
headline: 'Overriding `validate` for this type also changes how JSON decoders narrow unions containing it.',
|
|
581
|
+
level: 'info',
|
|
582
|
+
family: 'marker',
|
|
583
|
+
},
|
|
584
|
+
'purefn-artifact-conflict': {
|
|
585
|
+
headline: 'Pure fn `{fn}` differs between `{first}` and `{second}`.',
|
|
586
|
+
level: 'error',
|
|
587
|
+
family: 'purefn',
|
|
588
|
+
slots: ['fn', 'first', 'second'],
|
|
589
|
+
},
|
|
590
|
+
'purefn-artifact-unreadable': {
|
|
591
|
+
headline: '`{file}` could not be read as part of a pure-fn artifact: {reason}.',
|
|
592
|
+
level: 'warning',
|
|
593
|
+
family: 'purefn',
|
|
594
|
+
slots: ['file', 'reason'],
|
|
595
|
+
},
|
|
596
|
+
'purefn-dependency-cycle': {
|
|
597
|
+
headline: 'Pure functions circular dependency: `{fn}` (`{id}`) reaches back into `{target}`.',
|
|
598
|
+
level: 'error',
|
|
599
|
+
family: 'purefn',
|
|
600
|
+
slots: ['fn', 'id', 'target'],
|
|
601
|
+
},
|
|
602
|
+
'purefn-dependency-not-id': {
|
|
603
|
+
headline: '`{namespace}.{fn}` dependency argument must be a pure-fn id.',
|
|
604
|
+
level: 'runtimeError',
|
|
605
|
+
family: 'purefn',
|
|
606
|
+
slots: ['namespace', 'fn'],
|
|
607
|
+
},
|
|
608
|
+
'purefn-destructured-param': {
|
|
609
|
+
headline: 'Pure-fn factory `{factory}` uses destructured parameters; only simple identifier params are supported.',
|
|
610
|
+
level: 'error',
|
|
611
|
+
family: 'purefn',
|
|
612
|
+
slots: ['factory'],
|
|
613
|
+
},
|
|
614
|
+
'purefn-forbidden-construct': {
|
|
615
|
+
headline: '`{construct}` is not allowed inside a pure-fn factory body.',
|
|
616
|
+
level: 'runtimeError',
|
|
617
|
+
family: 'purefn',
|
|
618
|
+
slots: ['construct'],
|
|
619
|
+
},
|
|
620
|
+
'purefn-id-mismatch': {
|
|
621
|
+
headline: "Explicit pure-fn id `{id}` does not match this registration's computed id `{computedId}`.",
|
|
622
|
+
level: 'error',
|
|
623
|
+
family: 'purefn',
|
|
624
|
+
slots: ['id', 'computedId'],
|
|
625
|
+
},
|
|
626
|
+
'purefn-imported-or-exported': {
|
|
627
|
+
headline: '`PureFunction<F>` literal must not be imported or exported: the compiled copy must be the only one that can run.',
|
|
628
|
+
level: 'runtimeError',
|
|
629
|
+
family: 'marker',
|
|
630
|
+
},
|
|
631
|
+
'purefn-not-inline': {
|
|
632
|
+
headline: '`PureFunction<F>` argument must be an INLINE arrow or function expression.',
|
|
633
|
+
level: 'runtimeError',
|
|
634
|
+
family: 'marker',
|
|
635
|
+
},
|
|
636
|
+
'purefn-not-registered': {
|
|
637
|
+
headline: 'Pure fn `{fn}` is referenced by a RT function but was never registered.',
|
|
638
|
+
level: 'runtimeError',
|
|
639
|
+
family: 'purefn',
|
|
640
|
+
slots: ['fn'],
|
|
641
|
+
},
|
|
642
|
+
'purefn-package-not-built': {
|
|
643
|
+
headline: 'Pure fn `{fn}` comes from `{package}`, which ships no compiled pure functions.',
|
|
644
|
+
level: 'error',
|
|
645
|
+
family: 'purefn',
|
|
646
|
+
slots: ['fn', 'package'],
|
|
647
|
+
},
|
|
648
|
+
'purefn-reads-outer-variable': {
|
|
649
|
+
headline: "`{name}` is captured from outer scope inside a pure-fn factory; pure functions can't reach outside their own body.",
|
|
650
|
+
level: 'runtimeError',
|
|
651
|
+
family: 'purefn',
|
|
652
|
+
slots: ['name'],
|
|
653
|
+
},
|
|
654
|
+
'purefn-uses-await': {
|
|
655
|
+
headline: '`async`/`await` is not allowed inside a pure-fn factory body.',
|
|
656
|
+
level: 'runtimeError',
|
|
657
|
+
family: 'purefn',
|
|
658
|
+
},
|
|
659
|
+
'purefn-uses-dynamic-import': {
|
|
660
|
+
headline: '`import()` is not allowed inside a pure-fn factory body.',
|
|
661
|
+
level: 'runtimeError',
|
|
662
|
+
family: 'purefn',
|
|
663
|
+
},
|
|
664
|
+
'purefn-uses-this': {
|
|
665
|
+
headline: "`this` is not allowed inside a pure-fn factory body; pure functions can't depend on a calling context.",
|
|
666
|
+
level: 'runtimeError',
|
|
667
|
+
family: 'purefn',
|
|
668
|
+
},
|
|
669
|
+
'purefn-uses-yield': {
|
|
670
|
+
headline: '`yield` / generators are not allowed inside a pure-fn factory body.',
|
|
671
|
+
level: 'runtimeError',
|
|
672
|
+
family: 'purefn',
|
|
673
|
+
},
|
|
674
|
+
'rpc-batch-argument-out-of-range': {
|
|
675
|
+
headline: '`inputFrom()` sits at argument index {index} of route `{route}`, which declares only {count} parameter(s); move the mapping to an argument the route declares.',
|
|
676
|
+
level: 'error',
|
|
677
|
+
family: 'marker',
|
|
678
|
+
slots: ['index', 'route', 'count'],
|
|
679
|
+
},
|
|
680
|
+
'rpc-batch-duplicate-route': {
|
|
681
|
+
headline: 'Route `{route}` is listed twice in this `batch()`; a batch runs each route once, so drop the duplicate or move it into a second batch.',
|
|
682
|
+
level: 'error',
|
|
683
|
+
family: 'marker',
|
|
684
|
+
slots: ['route'],
|
|
685
|
+
},
|
|
686
|
+
'rpc-batch-element-unreadable': {
|
|
687
|
+
headline: '`batch()` element is not a route call the build can read ({reason}); write `routes.a.b(...)` inline or bind it to a `const`/`let` in this file.',
|
|
688
|
+
level: 'error',
|
|
689
|
+
family: 'marker',
|
|
690
|
+
slots: ['reason'],
|
|
691
|
+
},
|
|
692
|
+
'rpc-batch-id-collision': {
|
|
693
|
+
headline: 'Batch id `{id}` is shared by two different batches; reorder the routes of one of them so the ids no longer collide.',
|
|
694
|
+
level: 'runtimeError',
|
|
695
|
+
family: 'marker',
|
|
696
|
+
slots: ['id'],
|
|
697
|
+
},
|
|
698
|
+
'rpc-batch-mapper-missing': {
|
|
699
|
+
headline: 'Batch mapper `{mapper}` has no generated pure function in this program; the server build cannot register it.',
|
|
700
|
+
level: 'runtimeError',
|
|
701
|
+
family: 'marker',
|
|
702
|
+
slots: ['mapper'],
|
|
703
|
+
},
|
|
704
|
+
'rpc-batch-mapper-unreadable': {
|
|
705
|
+
headline: '`inputFrom()` mapper is not readable at build time ({reason}); pass an inline arrow function or a string literal mapper name.',
|
|
706
|
+
level: 'error',
|
|
707
|
+
family: 'marker',
|
|
708
|
+
slots: ['reason'],
|
|
709
|
+
},
|
|
710
|
+
'rpc-batch-router-init-hidden': {
|
|
711
|
+
headline: 'The batch table {file} was written, but no module of this program calls `createMionRouter` directly, so nothing imports it; import it by hand in the module that creates the router.',
|
|
712
|
+
level: 'runtimeError',
|
|
713
|
+
family: 'marker',
|
|
714
|
+
slots: ['file'],
|
|
715
|
+
},
|
|
716
|
+
'rpc-batch-source-not-before': {
|
|
717
|
+
headline: '`inputFrom()` reads route `{source}` for route `{target}`, but the source is not in this batch or runs after the target; sources must be listed before the routes they feed.',
|
|
718
|
+
level: 'error',
|
|
719
|
+
family: 'marker',
|
|
720
|
+
slots: ['source', 'target'],
|
|
721
|
+
},
|
|
722
|
+
'rpc-client-api-unreadable': {
|
|
723
|
+
headline: 'The API type at this dispatch site cannot be read as a mion PublicApi ({reason}); bundling needs `PublicApi<typeof routes>`.',
|
|
724
|
+
level: 'error',
|
|
725
|
+
family: 'marker',
|
|
726
|
+
slots: ['reason'],
|
|
727
|
+
},
|
|
728
|
+
'rpc-client-fetch-not-set-up': {
|
|
729
|
+
headline: "This client builds with `client.routes: 'fetch'`, so every call fetches its route's metadata, but it never sets up `useFetchMetadata`: every call fails.",
|
|
730
|
+
level: 'runtimeError',
|
|
731
|
+
family: 'marker',
|
|
732
|
+
},
|
|
733
|
+
'rpc-client-imports-server-value': {
|
|
734
|
+
headline: '`{name}` is passed to `initClient` but imported as a value from "{module}", which can put that server module in the client bundle; use `import type`.',
|
|
735
|
+
level: 'runtimeError',
|
|
736
|
+
family: 'marker',
|
|
737
|
+
slots: ['name', 'module'],
|
|
738
|
+
},
|
|
739
|
+
'rpc-client-middleware-not-set-up': {
|
|
740
|
+
headline: 'The route `{route}` runs the middleware `{middleware}`, which needs params, but this client never sets it up; every call to the route fails its validation.',
|
|
741
|
+
level: 'runtimeError',
|
|
742
|
+
family: 'marker',
|
|
743
|
+
slots: ['route', 'middleware'],
|
|
744
|
+
},
|
|
745
|
+
'rpc-client-no-metadata-route': {
|
|
746
|
+
headline: 'This client fetches route metadata, but the API it calls does not place `mionFetchMetadata`, so every fetch fails.',
|
|
747
|
+
level: 'runtimeError',
|
|
748
|
+
family: 'marker',
|
|
749
|
+
},
|
|
750
|
+
'rpc-client-no-server-version': {
|
|
751
|
+
headline: 'The API types this client reads carry no server build version, so a client and server built with different ids are only caught at runtime.',
|
|
752
|
+
level: 'warning',
|
|
753
|
+
family: 'marker',
|
|
754
|
+
},
|
|
755
|
+
'rpc-client-option-widened': {
|
|
756
|
+
headline: 'Option `{option}` of `{route}` is not a literal on the API type, so the bundled metadata leaves it unset.',
|
|
757
|
+
level: 'warning',
|
|
758
|
+
family: 'marker',
|
|
759
|
+
slots: ['option', 'route'],
|
|
760
|
+
},
|
|
761
|
+
'rpc-client-optional-middleware-not-set-up': {
|
|
762
|
+
headline: 'The route `{route}` runs the middleware `{middleware}`, but this client never sets it up, so the middleware never gets its params.',
|
|
763
|
+
level: 'runtimeError',
|
|
764
|
+
family: 'marker',
|
|
765
|
+
slots: ['route', 'middleware'],
|
|
766
|
+
},
|
|
767
|
+
'rpc-client-route-id-widened': {
|
|
768
|
+
headline: 'The route id at this call is `string` (a generic helper erased it), so nothing is bundled for it, and this client never sets up `useFetchMetadata`: the call fails.',
|
|
769
|
+
level: 'runtimeError',
|
|
770
|
+
family: 'marker',
|
|
771
|
+
},
|
|
772
|
+
'rpc-client-route-id-widened-fetched': {
|
|
773
|
+
headline: 'The route id at this call is `string` (a generic helper erased it); the call fetches its metadata from the server instead of using the bundle.',
|
|
774
|
+
level: 'info',
|
|
775
|
+
family: 'marker',
|
|
776
|
+
},
|
|
777
|
+
'rpc-client-route-not-declared': {
|
|
778
|
+
headline: 'This call names the route `{route}`, which the API type does not declare; nothing is bundled for it.',
|
|
779
|
+
level: 'error',
|
|
780
|
+
family: 'marker',
|
|
781
|
+
slots: ['route'],
|
|
782
|
+
},
|
|
783
|
+
'rpc-client-server-version-mismatch': {
|
|
784
|
+
headline: 'This client hashes its API ids to the build version {clientVersion}, but the API types it reads come from a server build with {serverVersion}: every call reports a version mismatch.',
|
|
785
|
+
level: 'runtimeError',
|
|
786
|
+
family: 'marker',
|
|
787
|
+
slots: ['clientVersion', 'serverVersion'],
|
|
788
|
+
},
|
|
789
|
+
'rpc-client-shared-modules': {
|
|
790
|
+
headline: 'This program builds with moduleMode `allSingle`, one module per family for the whole program, so the client bundle carries every server type.',
|
|
791
|
+
level: 'warning',
|
|
792
|
+
family: 'marker',
|
|
793
|
+
},
|
|
794
|
+
'rpc-client-types-not-built-by-mion': {
|
|
795
|
+
headline: 'The API package {package} ships types only, but {reason}: a client can only trust types-only packages that `mion api-types` built.',
|
|
796
|
+
level: 'runtimeError',
|
|
797
|
+
family: 'marker',
|
|
798
|
+
slots: ['package', 'reason'],
|
|
799
|
+
},
|
|
800
|
+
'rpc-client-types-other-mion-version': {
|
|
801
|
+
headline: 'The API package {package} was built by mion {builtWith}, this build runs {running}: the ids of both sides may differ.',
|
|
802
|
+
level: 'warning',
|
|
803
|
+
family: 'marker',
|
|
804
|
+
slots: ['package', 'builtWith', 'running'],
|
|
805
|
+
},
|
|
806
|
+
'rpc-client-version-mismatch': {
|
|
807
|
+
headline: 'This client injects the build version {clientVersion} but the API in the same program injects {apiVersion}; the client reports a version mismatch against its own server.',
|
|
808
|
+
level: 'runtimeError',
|
|
809
|
+
family: 'marker',
|
|
810
|
+
slots: ['clientVersion', 'apiVersion'],
|
|
811
|
+
},
|
|
812
|
+
'rpc-handler-missing-param-type': {
|
|
813
|
+
headline: 'mion `{handler}` handler parameter `{param}` has no type annotation; every parameter after the call context travels on the wire and must declare its type.',
|
|
814
|
+
level: 'runtimeError',
|
|
815
|
+
family: 'mionroute',
|
|
816
|
+
slots: ['handler', 'param'],
|
|
817
|
+
},
|
|
818
|
+
'rpc-handler-missing-return-type': {
|
|
819
|
+
headline: 'mion `{handler}` handler has no return type annotation; write the type the handler answers with.',
|
|
820
|
+
level: 'runtimeError',
|
|
821
|
+
family: 'mionroute',
|
|
822
|
+
slots: ['handler'],
|
|
823
|
+
},
|
|
824
|
+
'rpc-handler-non-data-property': {
|
|
825
|
+
headline: 'Property `{property}` can never be data and is dropped from every compiled function; rename it.',
|
|
826
|
+
level: 'warning',
|
|
827
|
+
family: 'mionroute',
|
|
828
|
+
slots: ['property'],
|
|
829
|
+
},
|
|
830
|
+
'rpc-handler-returns-non-rpc-error': {
|
|
831
|
+
headline: 'mion `{handler}` handler declares it can answer with `{errorType}`, which is not an `RpcError`; only an `RpcError` (or a subclass such as `FatalError`) carries the mion brand.',
|
|
832
|
+
level: 'runtimeError',
|
|
833
|
+
family: 'mionroute',
|
|
834
|
+
slots: ['handler', 'errorType'],
|
|
835
|
+
},
|
|
836
|
+
'rpc-handler-throws': {
|
|
837
|
+
headline: 'mion `{handler}` handlers must return errors, not throw them; return an `RpcError` to let the chain continue, or a `FatalError` to stop the request.',
|
|
838
|
+
level: 'runtimeError',
|
|
839
|
+
family: 'mionroute',
|
|
840
|
+
slots: ['handler'],
|
|
841
|
+
},
|
|
842
|
+
'unknown-keys-function-shared': {
|
|
843
|
+
headline: 'The function in {target} cannot be copied: the copy shares it with the input.',
|
|
844
|
+
level: 'warning',
|
|
845
|
+
family: 'runtype',
|
|
846
|
+
slots: ['target'],
|
|
847
|
+
},
|
|
848
|
+
'unknown-keys-method-not-copied': {
|
|
849
|
+
headline: "Method or accessor `{member}` is not copied: the copy keeps the input's prototype, so it still works.",
|
|
850
|
+
level: 'info',
|
|
851
|
+
family: 'runtype',
|
|
852
|
+
slots: ['member'],
|
|
853
|
+
},
|
|
854
|
+
'unknown-keys-non-data-shared': {
|
|
855
|
+
headline: 'The value in {target} cannot be copied (a Promise, a RegExp or a built-in that is not data): the copy shares it with the input.',
|
|
856
|
+
level: 'warning',
|
|
857
|
+
family: 'runtype',
|
|
858
|
+
slots: ['target'],
|
|
859
|
+
},
|
|
860
|
+
'unknown-keys-object-union': {
|
|
861
|
+
headline: '`removeUnknownKeys` does not support unions with object members: the emitter cannot know which declared shape to rebuild at runtime.',
|
|
862
|
+
level: 'runtimeError',
|
|
863
|
+
family: 'runtype',
|
|
864
|
+
},
|
|
865
|
+
'unknown-keys-private-fields': {
|
|
866
|
+
headline: 'The {target} has `#private` fields, which only its constructor can create: a copy would break its methods, so the function always throws.',
|
|
867
|
+
level: 'runtimeError',
|
|
868
|
+
family: 'runtype',
|
|
869
|
+
slots: ['target'],
|
|
870
|
+
},
|
|
871
|
+
'unknown-keys-shared-value-refused': {
|
|
872
|
+
headline: "The value in {target} can only be shared with the input and `sharedValues: 'refuse'` is set, so the function always throws.",
|
|
873
|
+
level: 'runtimeError',
|
|
874
|
+
family: 'runtype',
|
|
875
|
+
slots: ['target'],
|
|
876
|
+
},
|
|
877
|
+
'unknown-keys-static-dropped': {
|
|
878
|
+
headline: 'Static member `{member}` is not part of instance data: `removeUnknownKeys` skips it.',
|
|
879
|
+
level: 'info',
|
|
880
|
+
family: 'runtype',
|
|
881
|
+
slots: ['member'],
|
|
882
|
+
},
|
|
883
|
+
'unknown-keys-symbol-key': {
|
|
884
|
+
headline: 'Symbol-keyed {target} cannot be copied: the generated code cannot name your symbol, so the function always throws.',
|
|
885
|
+
level: 'runtimeError',
|
|
886
|
+
family: 'runtype',
|
|
887
|
+
slots: ['target'],
|
|
888
|
+
},
|
|
889
|
+
'unknown-keys-value-shared': {
|
|
890
|
+
headline: "The value in {target} is shared with the input, as `sharedValues: 'share'` asks.",
|
|
891
|
+
level: 'info',
|
|
892
|
+
family: 'runtype',
|
|
893
|
+
slots: ['target'],
|
|
894
|
+
},
|
|
895
|
+
'validate-any-accepts-all': {
|
|
896
|
+
headline: '`validate` on `any` / `unknown` always returns true: the validator accepts every value.',
|
|
897
|
+
level: 'info',
|
|
898
|
+
family: 'runtype',
|
|
899
|
+
},
|
|
900
|
+
'validate-function-property-dropped': {
|
|
901
|
+
headline: 'Property `{property}` is a function: `validate` does not handle function values, so this property is silently not validated.',
|
|
902
|
+
level: 'info',
|
|
903
|
+
family: 'runtype',
|
|
904
|
+
slots: ['property'],
|
|
905
|
+
},
|
|
906
|
+
'validate-function-root': {
|
|
907
|
+
headline: 'Type `{type}` can never be validated: the generated function will always fail.',
|
|
908
|
+
level: 'runtimeError',
|
|
909
|
+
family: 'runtype',
|
|
910
|
+
slots: ['type'],
|
|
911
|
+
},
|
|
912
|
+
'validate-method-dropped': {
|
|
913
|
+
headline: "Method `{method}` is silently not validated by `validate`: methods aren't data.",
|
|
914
|
+
level: 'info',
|
|
915
|
+
family: 'runtype',
|
|
916
|
+
slots: ['method'],
|
|
917
|
+
},
|
|
918
|
+
'validate-non-data-property-dropped': {
|
|
919
|
+
headline: 'Property `{property}` has a non-serialisable value type (symbol, Promise, or a non-serialisable built-in): `validate` drops it, so this property is silently not validated.',
|
|
920
|
+
level: 'info',
|
|
921
|
+
family: 'runtype',
|
|
922
|
+
slots: ['property'],
|
|
923
|
+
},
|
|
924
|
+
'validate-non-data-root': {
|
|
925
|
+
headline: 'Type `{type}` can never be validated: the generated function will always fail.',
|
|
926
|
+
level: 'runtimeError',
|
|
927
|
+
family: 'runtype',
|
|
928
|
+
slots: ['type'],
|
|
929
|
+
},
|
|
930
|
+
'validate-static-dropped': {
|
|
931
|
+
headline: "Static member `{member}` is silently not validated by `validate`: statics aren't part of instance data.",
|
|
932
|
+
level: 'info',
|
|
933
|
+
family: 'runtype',
|
|
934
|
+
slots: ['member'],
|
|
935
|
+
},
|
|
936
|
+
'validate-symbol-key-dropped': {
|
|
937
|
+
headline: "Symbol-keyed property `{property}` is silently not validated by `validate`: symbol keys aren't JSON-representable.",
|
|
938
|
+
level: 'info',
|
|
939
|
+
family: 'runtype',
|
|
940
|
+
slots: ['property'],
|
|
941
|
+
},
|
|
942
|
+
'validate-symbol-root': {
|
|
943
|
+
headline: 'Type `{type}` can never be validated: the generated function will always fail.',
|
|
944
|
+
level: 'runtimeError',
|
|
945
|
+
family: 'runtype',
|
|
946
|
+
slots: ['type'],
|
|
947
|
+
},
|
|
948
|
+
'validate-union-member-dropped': {
|
|
949
|
+
headline: "Union member(s) of type `{type}` can't be represented as data: `validate` drops them, so the union is validated as its remaining members.",
|
|
950
|
+
level: 'info',
|
|
951
|
+
family: 'runtype',
|
|
952
|
+
slots: ['type'],
|
|
953
|
+
},
|
|
954
|
+
'validation-errors-any-accepts-all': {
|
|
955
|
+
headline: '`validationErrors` on `any` / `unknown` always returns an empty error array: nothing is checked.',
|
|
956
|
+
level: 'info',
|
|
957
|
+
family: 'runtype',
|
|
958
|
+
},
|
|
959
|
+
'validation-errors-function-property-dropped': {
|
|
960
|
+
headline: 'Property `{property}` is a function: `validationErrors` does not handle function values, so this property is silently not checked.',
|
|
961
|
+
level: 'info',
|
|
962
|
+
family: 'runtype',
|
|
963
|
+
slots: ['property'],
|
|
964
|
+
},
|
|
965
|
+
'validation-errors-function-root': {
|
|
966
|
+
headline: 'Type `{type}` can never be validated: the generated function will always fail.',
|
|
967
|
+
level: 'runtimeError',
|
|
968
|
+
family: 'runtype',
|
|
969
|
+
slots: ['type'],
|
|
970
|
+
},
|
|
971
|
+
'validation-errors-method-dropped': {
|
|
972
|
+
headline: "Method `{method}` is silently not checked by `validationErrors`: methods aren't data.",
|
|
973
|
+
level: 'info',
|
|
974
|
+
family: 'runtype',
|
|
975
|
+
slots: ['method'],
|
|
976
|
+
},
|
|
977
|
+
'validation-errors-non-data-property-dropped': {
|
|
978
|
+
headline: 'Property `{property}` has a non-serialisable value type (symbol, Promise, or a non-serialisable built-in): `validationErrors` drops it, so this property is silently not checked.',
|
|
979
|
+
level: 'info',
|
|
980
|
+
family: 'runtype',
|
|
981
|
+
slots: ['property'],
|
|
982
|
+
},
|
|
983
|
+
'validation-errors-non-data-root': {
|
|
984
|
+
headline: 'Type `{type}` can never be validated: the generated function will always fail.',
|
|
985
|
+
level: 'runtimeError',
|
|
986
|
+
family: 'runtype',
|
|
987
|
+
slots: ['type'],
|
|
988
|
+
},
|
|
989
|
+
'validation-errors-static-dropped': {
|
|
990
|
+
headline: "Static member `{member}` is silently not checked by `validationErrors`: statics aren't part of instance data.",
|
|
991
|
+
level: 'info',
|
|
992
|
+
family: 'runtype',
|
|
993
|
+
slots: ['member'],
|
|
994
|
+
},
|
|
995
|
+
'validation-errors-symbol-key-dropped': {
|
|
996
|
+
headline: "Symbol-keyed property `{property}` is silently not checked by `validationErrors`: symbol keys aren't JSON-representable.",
|
|
997
|
+
level: 'info',
|
|
998
|
+
family: 'runtype',
|
|
999
|
+
slots: ['property'],
|
|
1000
|
+
},
|
|
1001
|
+
'validation-errors-symbol-root': {
|
|
1002
|
+
headline: 'Type `{type}` can never be validated: the generated function will always fail.',
|
|
1003
|
+
level: 'runtimeError',
|
|
1004
|
+
family: 'runtype',
|
|
1005
|
+
slots: ['type'],
|
|
1006
|
+
},
|
|
1007
|
+
};
|
|
1008
|
+
//# sourceMappingURL=diagnosticCatalog.generated.js.map
|