@kayjs/kay 1.108.0 → 1.110.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/dist/eslint.js +2093 -3774
- package/editors/zed/extension.toml +2 -2
- package/llms/action-protection.md +1 -1
- package/llms/actions-from-islands.md +5 -5
- package/llms/actions-refused-fields.md +4 -4
- package/llms/api-from-islands.md +6 -6
- package/llms/browser-only.md +2 -2
- package/llms/cdn-caching.md +1 -1
- package/llms/checks.md +1 -1
- package/llms/code-lints.md +1 -2
- package/llms/component-library-conventions.md +1 -1
- package/llms/components.md +5 -5
- package/llms/deprecated-lints.md +2 -7
- package/llms/effects.md +1 -1
- package/llms/errors.md +2 -2
- package/llms/events.md +1 -1
- package/llms/guards.md +1 -1
- package/llms/head.md +1 -1
- package/llms/hooks.md +2 -2
- package/llms/images.md +1 -1
- package/llms/island-and-form-lints.md +4 -2
- package/llms/island-sources.md +1 -1
- package/llms/islands-state-to-ids.md +2 -2
- package/llms/islands.md +8 -4
- package/llms/lints.md +1 -1
- package/llms/live-values.md +4 -4
- package/llms/local-collections.md +1 -1
- package/llms/locales.md +1 -1
- package/llms/mcp.md +2 -2
- package/llms/metrics.md +1 -1
- package/llms/navigation-from-code.md +7 -7
- package/llms/navigation.md +4 -2
- package/llms/prerendering.md +1 -0
- package/llms/production.md +2 -2
- package/llms/project-new-and-add.md +1 -1
- package/llms/project.md +4 -4
- package/llms/proxy-and-security.md +1 -1
- package/llms/queues.md +1 -1
- package/llms/rate-limits.md +4 -4
- package/llms/rendering.md +1 -1
- package/llms/server-islands.md +2 -2
- package/llms/server.md +1 -1
- package/llms/stores.md +1 -1
- package/llms/styles-and-assets.md +1 -1
- package/llms/templates-elements-slots-snippets.md +2 -2
- package/llms/testing-mount.md +49 -0
- package/llms/testing.md +4 -45
- package/llms/upgrading-1-105-config.md +13 -13
- package/llms/upgrading-archive.md +64 -74
- package/llms/upgrading.md +92 -70
- package/llms/whats-new.md +24 -0
- package/llms.txt +5 -6
- package/package.json +6 -10
- package/src/build/route-sizes.ts +2 -3
- package/src/build/variants.ts +132 -18
- package/src/check/browser-global-reads.ts +2 -2
- package/src/check/config-objects.ts +1 -1
- package/src/check/diagnose.ts +0 -22
- package/src/check/env-types.ts +1 -1
- package/src/check/export-homes.ts +1 -1
- package/src/check/guards.ts +3 -3
- package/src/check/index.ts +2 -7
- package/src/check/moved-keys.ts +1 -1
- package/src/check/project.ts +6 -7
- package/src/check/schema-builders.ts +125 -26
- package/src/check/shadow-types.ts +0 -86
- package/src/commands/check.ts +2 -2
- package/src/commands/env.ts +25 -3
- package/src/commands/upgrade.ts +2 -1
- package/src/compiler/allow-comments.ts +38 -2
- package/src/compiler/ast.ts +21 -19
- package/src/compiler/browser.ts +2 -14
- package/src/compiler/class-items.ts +16 -0
- package/src/compiler/codegen.ts +10 -10
- package/src/compiler/deprecated-library.ts +0 -12
- package/src/compiler/deprecated-lints-1-106.ts +2 -2
- package/src/compiler/deprecated-lints.ts +3 -495
- package/src/compiler/deprecated-ui-props.ts +5 -5
- package/src/compiler/errors.ts +2 -2
- package/src/compiler/fence-checks.ts +2 -121
- package/src/compiler/hand-parts.ts +83 -0
- package/src/compiler/helper-imports.ts +2 -2
- package/src/compiler/image-attributes.ts +1 -3
- package/src/compiler/index.ts +23 -23
- package/src/compiler/island-arguments.ts +17 -95
- package/src/compiler/island-cause.ts +7 -7
- package/src/compiler/island-declaration.ts +2 -8
- package/src/compiler/island-lints.ts +19 -0
- package/src/compiler/island-marker.ts +3 -3
- package/src/compiler/island-problems.ts +25 -0
- package/src/compiler/items.ts +12 -0
- package/src/compiler/jsx-class.ts +1 -25
- package/src/compiler/jsx.ts +7 -6
- package/src/compiler/kay-exports.ts +0 -2
- package/src/compiler/link-flags.ts +9 -38
- package/src/compiler/lints.ts +10 -18
- package/src/compiler/markup.ts +33 -41
- package/src/compiler/module-signals.ts +2 -2
- package/src/compiler/names.ts +1 -1
- package/src/compiler/page-settings.ts +11 -0
- package/src/compiler/parser.ts +6 -8
- package/src/compiler/plan.ts +1 -3
- package/src/compiler/removed-lints.ts +90 -0
- package/src/compiler/rewrite.ts +3 -18
- package/src/compiler/script-server.ts +8 -3
- package/src/compiler/signal-from-prop.ts +141 -0
- package/src/compiler/template-reads.ts +16 -0
- package/src/compiler/validate.ts +3 -8
- package/src/config-loader.ts +14 -4
- package/src/config-resolve.ts +18 -142
- package/src/config-shape.ts +44 -34
- package/src/config.ts +10 -114
- package/src/dev/preload.ts +4 -1
- package/src/lsp/server.ts +4 -0
- package/src/migrate/markup.ts +4 -1
- package/src/runtime/action-call.ts +0 -8
- package/src/runtime/action-encode.ts +26 -0
- package/src/runtime/action-error.ts +3 -11
- package/src/runtime/action-protection.ts +2 -2
- package/src/runtime/action-run.ts +2 -27
- package/src/runtime/action-shared.ts +14 -37
- package/src/runtime/action-stream.ts +0 -1
- package/src/runtime/action.ts +1 -1
- package/src/runtime/call-result.ts +2 -10
- package/src/runtime/checks.ts +25 -13
- package/src/runtime/client.ts +7 -11
- package/src/runtime/core.ts +5 -23
- package/src/runtime/dom.ts +1 -1
- package/src/runtime/html.ts +1 -1
- package/src/runtime/i18n.client.ts +1 -4
- package/src/runtime/i18n.server.ts +1 -4
- package/src/runtime/i18n.ts +3 -3
- package/src/runtime/image.ts +2 -19
- package/src/runtime/index.ts +3 -3
- package/src/runtime/island.server.ts +56 -13
- package/src/runtime/live-resource.server.ts +0 -1
- package/src/runtime/live-value.server.ts +2 -2
- package/src/runtime/live-value.shared.ts +7 -20
- package/src/runtime/live.ts +1 -12
- package/src/runtime/local-types.ts +1 -11
- package/src/runtime/local.ts +4 -14
- package/src/runtime/navigate-api.ts +2 -5
- package/src/runtime/navigate.ts +9 -0
- package/src/runtime/navigation-state.ts +0 -12
- package/src/runtime/navigation.ts +5 -1
- package/src/runtime/page-swap.ts +8 -8
- package/src/runtime/persist.ts +11 -3
- package/src/runtime/persisted.ts +4 -30
- package/src/runtime/presence.ts +6 -7
- package/src/runtime/query-param.ts +20 -12
- package/src/runtime/reactive.ts +3 -1
- package/src/runtime/refuse.ts +3 -17
- package/src/runtime/store-base.ts +4 -6
- package/src/runtime/swap-fetch.ts +1 -1
- package/src/runtime/swap-flight.ts +10 -10
- package/src/runtime/swap-kept.ts +69 -29
- package/src/runtime/swap-morph.ts +49 -9
- package/src/runtime/text-hash.ts +17 -0
- package/src/runtime/uid.server.ts +6 -4
- package/src/runtime/values.ts +52 -23
- package/src/runtime/with-query.ts +9 -0
- package/src/server/action-hooks.ts +8 -8
- package/src/server/actions.ts +13 -14
- package/src/server/api-modules.ts +2 -3
- package/src/server/app-stages.ts +15 -33
- package/src/server/app.ts +10 -5
- package/src/server/auth-mails.ts +0 -2
- package/src/server/env-state.ts +40 -10
- package/src/server/flash.ts +1 -1
- package/src/server/guard-requirement.ts +4 -4
- package/src/server/image.ts +2 -2
- package/src/server/index.ts +0 -2
- package/src/server/job-context.ts +3 -3
- package/src/server/jobs-page.ts +1 -1
- package/src/server/jobs.ts +5 -9
- package/src/server/kept-exports.ts +0 -2
- package/src/server/kv.ts +11 -14
- package/src/server/library.ts +1 -3
- package/src/server/live.ts +2 -2
- package/src/server/mcp.ts +3 -9
- package/src/server/metrics.ts +2 -4
- package/src/server/page-settings.ts +10 -19
- package/src/server/prerender.ts +19 -2
- package/src/server/protection.ts +15 -18
- package/src/server/queue.ts +3 -6
- package/src/server/rate-limit.ts +0 -3
- package/src/server/render-document.ts +9 -7
- package/src/server/render.ts +1 -1
- package/src/server/routes.ts +7 -3
- package/src/server/scope.ts +3 -2
- package/src/server/session.ts +5 -6
- package/src/server/setup.ts +1 -1
- package/src/server/signals.ts +17 -7
- package/src/server/signed.ts +1 -3
- package/src/server/source.ts +20 -4
- package/src/server/speculation.ts +1 -1
- package/src/server/storage.ts +3 -8
- package/src/server/validate.ts +1 -1
- package/src/server/vitals.ts +1 -3
- package/src/server/work-scope.ts +2 -4
- package/src/server/work.ts +1 -1
- package/src/server/workflow.ts +1 -1
- package/src/test/index.ts +2 -1
- package/src/test/site-actions.ts +16 -6
- package/src/test/site-keys.ts +10 -15
- package/src/test/site-socket.ts +1 -2
- package/src/test/site-types.ts +0 -8
- package/types/build/route-sizes.d.ts.map +1 -1
- package/types/build/variants.d.ts +9 -1
- package/types/build/variants.d.ts.map +1 -1
- package/types/check/diagnose.d.ts.map +1 -1
- package/types/check/index.d.ts +1 -2
- package/types/check/index.d.ts.map +1 -1
- package/types/check/project.d.ts.map +1 -1
- package/types/check/schema-builders.d.ts.map +1 -1
- package/types/check/shadow-types.d.ts.map +1 -1
- package/types/commands/env.d.ts.map +1 -1
- package/types/commands/upgrade.d.ts.map +1 -1
- package/types/compiler/allow-comments.d.ts +2 -0
- package/types/compiler/allow-comments.d.ts.map +1 -1
- package/types/compiler/ast.d.ts +1 -2
- package/types/compiler/ast.d.ts.map +1 -1
- package/types/compiler/browser.d.ts.map +1 -1
- package/types/compiler/class-items.d.ts +7 -0
- package/types/compiler/class-items.d.ts.map +1 -0
- package/types/compiler/deprecated-library.d.ts.map +1 -1
- package/types/compiler/deprecated-lints-1-106.d.ts +2 -2
- package/types/compiler/deprecated-lints-1-106.d.ts.map +1 -1
- package/types/compiler/deprecated-lints.d.ts +2 -553
- package/types/compiler/deprecated-lints.d.ts.map +1 -1
- package/types/compiler/deprecated-ui-props.d.ts +1 -8
- package/types/compiler/deprecated-ui-props.d.ts.map +1 -1
- package/types/compiler/errors.d.ts +2 -2
- package/types/compiler/errors.d.ts.map +1 -1
- package/types/compiler/fence-checks.d.ts +0 -1
- package/types/compiler/fence-checks.d.ts.map +1 -1
- package/types/compiler/hand-parts.d.ts +10 -0
- package/types/compiler/hand-parts.d.ts.map +1 -0
- package/types/compiler/image-attributes.d.ts +0 -1
- package/types/compiler/image-attributes.d.ts.map +1 -1
- package/types/compiler/index.d.ts.map +1 -1
- package/types/compiler/island-arguments.d.ts +7 -11
- package/types/compiler/island-arguments.d.ts.map +1 -1
- package/types/compiler/island-cause.d.ts +1 -1
- package/types/compiler/island-cause.d.ts.map +1 -1
- package/types/compiler/island-declaration.d.ts +1 -3
- package/types/compiler/island-declaration.d.ts.map +1 -1
- package/types/compiler/island-lints.d.ts +17 -0
- package/types/compiler/island-lints.d.ts.map +1 -0
- package/types/compiler/island-problems.d.ts +7 -0
- package/types/compiler/island-problems.d.ts.map +1 -0
- package/types/compiler/items.d.ts +1 -0
- package/types/compiler/items.d.ts.map +1 -1
- package/types/compiler/jsx-class.d.ts +1 -2
- package/types/compiler/jsx-class.d.ts.map +1 -1
- package/types/compiler/jsx.d.ts.map +1 -1
- package/types/compiler/kay-exports.d.ts.map +1 -1
- package/types/compiler/link-flags.d.ts +0 -6
- package/types/compiler/link-flags.d.ts.map +1 -1
- package/types/compiler/lints.d.ts +21 -566
- package/types/compiler/lints.d.ts.map +1 -1
- package/types/compiler/markup.d.ts +1 -1
- package/types/compiler/markup.d.ts.map +1 -1
- package/types/compiler/module-signals.d.ts.map +1 -1
- package/types/compiler/names.d.ts.map +1 -1
- package/types/compiler/page-settings.d.ts +4 -0
- package/types/compiler/page-settings.d.ts.map +1 -1
- package/types/compiler/parser.d.ts.map +1 -1
- package/types/compiler/plan.d.ts.map +1 -1
- package/types/compiler/removed-lints.d.ts +3 -0
- package/types/compiler/removed-lints.d.ts.map +1 -0
- package/types/compiler/script-server.d.ts.map +1 -1
- package/types/compiler/signal-from-prop.d.ts +4 -0
- package/types/compiler/signal-from-prop.d.ts.map +1 -0
- package/types/compiler/template-reads.d.ts +1 -0
- package/types/compiler/template-reads.d.ts.map +1 -1
- package/types/compiler/validate.d.ts.map +1 -1
- package/types/config-loader.d.ts.map +1 -1
- package/types/config-resolve.d.ts.map +1 -1
- package/types/config-shape.d.ts +1 -1
- package/types/config-shape.d.ts.map +1 -1
- package/types/config.d.ts +5 -105
- package/types/config.d.ts.map +1 -1
- package/types/dev/preload.d.ts.map +1 -1
- package/types/lsp/server.d.ts.map +1 -1
- package/types/migrate/markup.d.ts.map +1 -1
- package/types/runtime/action-call.d.ts.map +1 -1
- package/types/runtime/action-encode.d.ts +1 -0
- package/types/runtime/action-encode.d.ts.map +1 -1
- package/types/runtime/action-error.d.ts +1 -2
- package/types/runtime/action-error.d.ts.map +1 -1
- package/types/runtime/action-run.d.ts.map +1 -1
- package/types/runtime/action-shared.d.ts +1 -27
- package/types/runtime/action-shared.d.ts.map +1 -1
- package/types/runtime/action-stream.d.ts.map +1 -1
- package/types/runtime/action.d.ts +1 -1
- package/types/runtime/action.d.ts.map +1 -1
- package/types/runtime/call-result.d.ts +0 -10
- package/types/runtime/call-result.d.ts.map +1 -1
- package/types/runtime/checks.d.ts +14 -11
- package/types/runtime/checks.d.ts.map +1 -1
- package/types/runtime/client.d.ts.map +1 -1
- package/types/runtime/core.d.ts +2 -20
- package/types/runtime/core.d.ts.map +1 -1
- package/types/runtime/dom.d.ts +1 -1
- package/types/runtime/dom.d.ts.map +1 -1
- package/types/runtime/html.d.ts +1 -1
- package/types/runtime/html.d.ts.map +1 -1
- package/types/runtime/i18n.client.d.ts +0 -1
- package/types/runtime/i18n.client.d.ts.map +1 -1
- package/types/runtime/i18n.d.ts +1 -1
- package/types/runtime/i18n.d.ts.map +1 -1
- package/types/runtime/i18n.server.d.ts +0 -1
- package/types/runtime/i18n.server.d.ts.map +1 -1
- package/types/runtime/image.d.ts.map +1 -1
- package/types/runtime/index.d.ts +3 -3
- package/types/runtime/index.d.ts.map +1 -1
- package/types/runtime/island.server.d.ts +2 -0
- package/types/runtime/island.server.d.ts.map +1 -1
- package/types/runtime/live-resource.server.d.ts.map +1 -1
- package/types/runtime/live-value.shared.d.ts +7 -15
- package/types/runtime/live-value.shared.d.ts.map +1 -1
- package/types/runtime/live.d.ts +0 -11
- package/types/runtime/live.d.ts.map +1 -1
- package/types/runtime/local-types.d.ts +0 -14
- package/types/runtime/local-types.d.ts.map +1 -1
- package/types/runtime/navigate-api.d.ts +0 -4
- package/types/runtime/navigate-api.d.ts.map +1 -1
- package/types/runtime/navigate.d.ts.map +1 -1
- package/types/runtime/navigation-state.d.ts +0 -4
- package/types/runtime/navigation-state.d.ts.map +1 -1
- package/types/runtime/navigation.d.ts +2 -0
- package/types/runtime/navigation.d.ts.map +1 -1
- package/types/runtime/page-swap.d.ts.map +1 -1
- package/types/runtime/persist.d.ts +1 -0
- package/types/runtime/persist.d.ts.map +1 -1
- package/types/runtime/persisted.d.ts +0 -15
- package/types/runtime/persisted.d.ts.map +1 -1
- package/types/runtime/presence.d.ts +0 -2
- package/types/runtime/presence.d.ts.map +1 -1
- package/types/runtime/query-param.d.ts.map +1 -1
- package/types/runtime/reactive.d.ts +2 -1
- package/types/runtime/reactive.d.ts.map +1 -1
- package/types/runtime/refuse.d.ts +0 -7
- package/types/runtime/refuse.d.ts.map +1 -1
- package/types/runtime/store-base.d.ts +1 -2
- package/types/runtime/store-base.d.ts.map +1 -1
- package/types/runtime/swap-flight.d.ts +1 -1
- package/types/runtime/swap-flight.d.ts.map +1 -1
- package/types/runtime/swap-kept.d.ts.map +1 -1
- package/types/runtime/swap-morph.d.ts.map +1 -1
- package/types/runtime/text-hash.d.ts +2 -0
- package/types/runtime/text-hash.d.ts.map +1 -0
- package/types/runtime/uid.server.d.ts.map +1 -1
- package/types/runtime/values.d.ts +6 -1
- package/types/runtime/values.d.ts.map +1 -1
- package/types/runtime/with-query.d.ts +2 -0
- package/types/runtime/with-query.d.ts.map +1 -1
- package/types/server/action-hooks.d.ts +4 -4
- package/types/server/action-hooks.d.ts.map +1 -1
- package/types/server/actions.d.ts.map +1 -1
- package/types/server/api-modules.d.ts +0 -1
- package/types/server/api-modules.d.ts.map +1 -1
- package/types/server/app-stages.d.ts +5 -13
- package/types/server/app-stages.d.ts.map +1 -1
- package/types/server/app.d.ts +3 -8
- package/types/server/app.d.ts.map +1 -1
- package/types/server/auth-mails.d.ts +0 -5
- package/types/server/auth-mails.d.ts.map +1 -1
- package/types/server/env-state.d.ts +1 -0
- package/types/server/env-state.d.ts.map +1 -1
- package/types/server/guard-requirement.d.ts +0 -1
- package/types/server/guard-requirement.d.ts.map +1 -1
- package/types/server/image.d.ts +0 -1
- package/types/server/image.d.ts.map +1 -1
- package/types/server/index.d.ts +0 -2
- package/types/server/index.d.ts.map +1 -1
- package/types/server/job-context.d.ts +1 -1
- package/types/server/job-context.d.ts.map +1 -1
- package/types/server/jobs.d.ts +0 -4
- package/types/server/jobs.d.ts.map +1 -1
- package/types/server/kept-exports.d.ts.map +1 -1
- package/types/server/kv.d.ts +4 -4
- package/types/server/kv.d.ts.map +1 -1
- package/types/server/library.d.ts +1 -3
- package/types/server/library.d.ts.map +1 -1
- package/types/server/mcp.d.ts +0 -1
- package/types/server/mcp.d.ts.map +1 -1
- package/types/server/metrics.d.ts +0 -5
- package/types/server/metrics.d.ts.map +1 -1
- package/types/server/page-settings.d.ts +3 -3
- package/types/server/page-settings.d.ts.map +1 -1
- package/types/server/prerender.d.ts.map +1 -1
- package/types/server/protection.d.ts +6 -6
- package/types/server/protection.d.ts.map +1 -1
- package/types/server/queue.d.ts +1 -3
- package/types/server/queue.d.ts.map +1 -1
- package/types/server/rate-limit.d.ts +0 -2
- package/types/server/rate-limit.d.ts.map +1 -1
- package/types/server/render-document.d.ts +1 -1
- package/types/server/render-document.d.ts.map +1 -1
- package/types/server/routes.d.ts +1 -1
- package/types/server/routes.d.ts.map +1 -1
- package/types/server/scope.d.ts.map +1 -1
- package/types/server/session.d.ts +1 -1
- package/types/server/session.d.ts.map +1 -1
- package/types/server/signals.d.ts.map +1 -1
- package/types/server/signed.d.ts +0 -2
- package/types/server/signed.d.ts.map +1 -1
- package/types/server/source.d.ts +1 -1
- package/types/server/source.d.ts.map +1 -1
- package/types/server/storage.d.ts +0 -4
- package/types/server/storage.d.ts.map +1 -1
- package/types/server/vitals.d.ts +0 -1
- package/types/server/vitals.d.ts.map +1 -1
- package/types/server/work-scope.d.ts +0 -2
- package/types/server/work-scope.d.ts.map +1 -1
- package/types/server/workflow.d.ts +1 -1
- package/types/server/workflow.d.ts.map +1 -1
- package/types/test/index.d.ts.map +1 -1
- package/types/test/site-actions.d.ts +1 -1
- package/types/test/site-actions.d.ts.map +1 -1
- package/types/test/site-keys.d.ts +1 -1
- package/types/test/site-keys.d.ts.map +1 -1
- package/types/test/site-socket.d.ts +1 -1
- package/types/test/site-socket.d.ts.map +1 -1
- package/types/test/site-types.d.ts +0 -8
- package/types/test/site-types.d.ts.map +1 -1
- package/llms/deprecated-lints-1-105-libraries.md +0 -32
- package/llms/deprecated-lints-1-105.md +0 -58
- package/src/check/action-readers.ts +0 -115
- package/src/check/action-type.ts +0 -44
- package/src/check/ai-language.ts +0 -56
- package/src/check/app-hooks.ts +0 -90
- package/src/check/auth-methods.ts +0 -85
- package/src/check/auth-rate-limits.ts +0 -99
- package/src/check/call-result.ts +0 -242
- package/src/check/client-keys.ts +0 -10
- package/src/check/cms-options.ts +0 -81
- package/src/check/config-groups.ts +0 -22
- package/src/check/config-switches.ts +0 -38
- package/src/check/context-import.ts +0 -51
- package/src/check/env-files.ts +0 -31
- package/src/check/format-duration.ts +0 -75
- package/src/check/guard-options.ts +0 -58
- package/src/check/handler-events.ts +0 -149
- package/src/check/hook-context.ts +0 -94
- package/src/check/hook-names.ts +0 -104
- package/src/check/i18n-keys.ts +0 -50
- package/src/check/images-keys.ts +0 -54
- package/src/check/job-shapes.ts +0 -273
- package/src/check/link-flag-tests.ts +0 -130
- package/src/check/live-api.ts +0 -137
- package/src/check/mail-api.ts +0 -67
- package/src/check/one-state-api.ts +0 -357
- package/src/check/pages-options.ts +0 -35
- package/src/check/rate-enforce.ts +0 -53
- package/src/check/refusal-calls.ts +0 -185
- package/src/check/retired-lints.ts +0 -49
- package/src/check/route-keys.ts +0 -166
- package/src/check/secret-keys.ts +0 -83
- package/src/check/socket-frames.ts +0 -102
- package/src/check/source-readers.ts +0 -257
- package/src/check/store-ms.ts +0 -72
- package/src/check/store-names.ts +0 -88
- package/src/check/test-helpers.ts +0 -98
- package/src/check/ttl-names.ts +0 -142
- package/src/compiler/deprecated-ai-labels.ts +0 -97
- package/src/compiler/deprecated-ai-links.ts +0 -63
- package/src/compiler/deprecated-allow.ts +0 -50
- package/src/compiler/deprecated-auth-lints.ts +0 -14
- package/src/compiler/deprecated-auth-signed.ts +0 -29
- package/src/compiler/deprecated-children.ts +0 -66
- package/src/compiler/deprecated-image.ts +0 -116
- package/src/compiler/deprecated-island.ts +0 -155
- package/src/compiler/deprecated-lints-1-105.ts +0 -41
- package/src/compiler/deprecated-page.ts +0 -125
- package/src/compiler/deprecated-parts.ts +0 -22
- package/src/compiler/deprecated-typed-lints.ts +0 -23
- package/src/compiler/deprecated-ui-callbacks.ts +0 -66
- package/src/compiler/deprecated-ui-input.ts +0 -97
- package/src/compiler/deprecated-ui-items.ts +0 -47
- package/src/compiler/old-parts.ts +0 -84
- package/src/runtime/mount.compat.ts +0 -8
- package/src/server/moved-exports.ts +0 -17
- package/types/check/action-readers.d.ts +0 -3
- package/types/check/action-readers.d.ts.map +0 -1
- package/types/check/action-type.d.ts +0 -3
- package/types/check/action-type.d.ts.map +0 -1
- package/types/check/ai-language.d.ts +0 -3
- package/types/check/ai-language.d.ts.map +0 -1
- package/types/check/app-hooks.d.ts +0 -3
- package/types/check/app-hooks.d.ts.map +0 -1
- package/types/check/auth-methods.d.ts +0 -3
- package/types/check/auth-methods.d.ts.map +0 -1
- package/types/check/auth-rate-limits.d.ts +0 -3
- package/types/check/auth-rate-limits.d.ts.map +0 -1
- package/types/check/call-result.d.ts +0 -7
- package/types/check/call-result.d.ts.map +0 -1
- package/types/check/client-keys.d.ts +0 -3
- package/types/check/client-keys.d.ts.map +0 -1
- package/types/check/cms-options.d.ts +0 -3
- package/types/check/cms-options.d.ts.map +0 -1
- package/types/check/config-groups.d.ts +0 -3
- package/types/check/config-groups.d.ts.map +0 -1
- package/types/check/config-switches.d.ts +0 -3
- package/types/check/config-switches.d.ts.map +0 -1
- package/types/check/context-import.d.ts +0 -3
- package/types/check/context-import.d.ts.map +0 -1
- package/types/check/env-files.d.ts +0 -3
- package/types/check/env-files.d.ts.map +0 -1
- package/types/check/format-duration.d.ts +0 -5
- package/types/check/format-duration.d.ts.map +0 -1
- package/types/check/guard-options.d.ts +0 -3
- package/types/check/guard-options.d.ts.map +0 -1
- package/types/check/handler-events.d.ts +0 -9
- package/types/check/handler-events.d.ts.map +0 -1
- package/types/check/hook-context.d.ts +0 -3
- package/types/check/hook-context.d.ts.map +0 -1
- package/types/check/hook-names.d.ts +0 -3
- package/types/check/hook-names.d.ts.map +0 -1
- package/types/check/i18n-keys.d.ts +0 -3
- package/types/check/i18n-keys.d.ts.map +0 -1
- package/types/check/images-keys.d.ts +0 -3
- package/types/check/images-keys.d.ts.map +0 -1
- package/types/check/job-shapes.d.ts +0 -6
- package/types/check/job-shapes.d.ts.map +0 -1
- package/types/check/link-flag-tests.d.ts +0 -4
- package/types/check/link-flag-tests.d.ts.map +0 -1
- package/types/check/live-api.d.ts +0 -3
- package/types/check/live-api.d.ts.map +0 -1
- package/types/check/mail-api.d.ts +0 -3
- package/types/check/mail-api.d.ts.map +0 -1
- package/types/check/one-state-api.d.ts +0 -9
- package/types/check/one-state-api.d.ts.map +0 -1
- package/types/check/pages-options.d.ts +0 -3
- package/types/check/pages-options.d.ts.map +0 -1
- package/types/check/rate-enforce.d.ts +0 -3
- package/types/check/rate-enforce.d.ts.map +0 -1
- package/types/check/refusal-calls.d.ts +0 -3
- package/types/check/refusal-calls.d.ts.map +0 -1
- package/types/check/retired-lints.d.ts +0 -3
- package/types/check/retired-lints.d.ts.map +0 -1
- package/types/check/route-keys.d.ts +0 -3
- package/types/check/route-keys.d.ts.map +0 -1
- package/types/check/secret-keys.d.ts +0 -3
- package/types/check/secret-keys.d.ts.map +0 -1
- package/types/check/socket-frames.d.ts +0 -3
- package/types/check/socket-frames.d.ts.map +0 -1
- package/types/check/source-readers.d.ts +0 -3
- package/types/check/source-readers.d.ts.map +0 -1
- package/types/check/store-ms.d.ts +0 -3
- package/types/check/store-ms.d.ts.map +0 -1
- package/types/check/store-names.d.ts +0 -3
- package/types/check/store-names.d.ts.map +0 -1
- package/types/check/test-helpers.d.ts +0 -3
- package/types/check/test-helpers.d.ts.map +0 -1
- package/types/check/ttl-names.d.ts +0 -3
- package/types/check/ttl-names.d.ts.map +0 -1
- package/types/compiler/deprecated-ai-labels.d.ts +0 -5
- package/types/compiler/deprecated-ai-labels.d.ts.map +0 -1
- package/types/compiler/deprecated-ai-links.d.ts +0 -5
- package/types/compiler/deprecated-ai-links.d.ts.map +0 -1
- package/types/compiler/deprecated-allow.d.ts +0 -5
- package/types/compiler/deprecated-allow.d.ts.map +0 -1
- package/types/compiler/deprecated-auth-lints.d.ts +0 -12
- package/types/compiler/deprecated-auth-lints.d.ts.map +0 -1
- package/types/compiler/deprecated-auth-signed.d.ts +0 -5
- package/types/compiler/deprecated-auth-signed.d.ts.map +0 -1
- package/types/compiler/deprecated-children.d.ts +0 -4
- package/types/compiler/deprecated-children.d.ts.map +0 -1
- package/types/compiler/deprecated-image.d.ts +0 -5
- package/types/compiler/deprecated-image.d.ts.map +0 -1
- package/types/compiler/deprecated-island.d.ts +0 -9
- package/types/compiler/deprecated-island.d.ts.map +0 -1
- package/types/compiler/deprecated-lints-1-105.d.ts +0 -39
- package/types/compiler/deprecated-lints-1-105.d.ts.map +0 -1
- package/types/compiler/deprecated-page.d.ts +0 -4
- package/types/compiler/deprecated-page.d.ts.map +0 -1
- package/types/compiler/deprecated-parts.d.ts +0 -3
- package/types/compiler/deprecated-parts.d.ts.map +0 -1
- package/types/compiler/deprecated-typed-lints.d.ts +0 -21
- package/types/compiler/deprecated-typed-lints.d.ts.map +0 -1
- package/types/compiler/deprecated-ui-callbacks.d.ts +0 -5
- package/types/compiler/deprecated-ui-callbacks.d.ts.map +0 -1
- package/types/compiler/deprecated-ui-input.d.ts +0 -5
- package/types/compiler/deprecated-ui-input.d.ts.map +0 -1
- package/types/compiler/deprecated-ui-items.d.ts +0 -5
- package/types/compiler/deprecated-ui-items.d.ts.map +0 -1
- package/types/compiler/old-parts.d.ts +0 -9
- package/types/compiler/old-parts.d.ts.map +0 -1
- package/types/runtime/mount.compat.d.ts +0 -7
- package/types/runtime/mount.compat.d.ts.map +0 -1
- package/types/server/moved-exports.d.ts +0 -12
- package/types/server/moved-exports.d.ts.map +0 -1
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import type { Diagnostic, Span } from './ast'
|
|
2
|
-
import type { ServerAnalysis } from './script'
|
|
3
|
-
import { SEO_SETTINGS } from './page-settings'
|
|
4
|
-
|
|
5
|
-
const SPACE = /\s/
|
|
6
|
-
const within = (inner: Span, outer: Span) => inner.start >= outer.start && inner.end <= outer.end
|
|
7
|
-
|
|
8
|
-
// The range a setting leaves when it is taken out of `page` after the first one moved: the entry and the comma after it, its whole line when it stands alone on one, so a comment above it stays where it is. The last entry with no comma takes the comma before it, when nothing but space lies between.
|
|
9
|
-
function removal(source: string, key: Span, value: Span): { start: number, end: number } {
|
|
10
|
-
let end = value.end
|
|
11
|
-
|
|
12
|
-
while (SPACE.test(source[end] ?? ''))
|
|
13
|
-
end++
|
|
14
|
-
|
|
15
|
-
if (source[end] === ',') {
|
|
16
|
-
end++
|
|
17
|
-
|
|
18
|
-
let start = key.start
|
|
19
|
-
|
|
20
|
-
while (source[start - 1] === ' ' || source[start - 1] === '\t')
|
|
21
|
-
start--
|
|
22
|
-
|
|
23
|
-
let after = end
|
|
24
|
-
|
|
25
|
-
while (source[after] === ' ' || source[after] === '\t')
|
|
26
|
-
after++
|
|
27
|
-
|
|
28
|
-
if ((start === 0 || source[start - 1] === '\n') && source[after] === '\n')
|
|
29
|
-
return { start, end: after + 1 }
|
|
30
|
-
|
|
31
|
-
return { start: key.start, end: after }
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
let start = key.start
|
|
35
|
-
|
|
36
|
-
while (SPACE.test(source[start - 1] ?? '') && start > 0)
|
|
37
|
-
start--
|
|
38
|
-
|
|
39
|
-
return { start: source[start - 1] === ',' ? start - 1 : key.start, end: value.end }
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// The ranges with those that overlap joined, as a last entry's comma before it may be the one the entry above took with it.
|
|
43
|
-
function merged(source: string, ranges: { start: number, end: number }[]): { start: number, end: number }[] {
|
|
44
|
-
const joined: { start: number, end: number }[] = []
|
|
45
|
-
|
|
46
|
-
for (const range of ranges.toSorted((a, b) => a.start - b.start)) {
|
|
47
|
-
const last = joined.at(-1)
|
|
48
|
-
|
|
49
|
-
if (last && range.start < last.end)
|
|
50
|
-
last.end = Math.max(last.end, range.end)
|
|
51
|
-
else
|
|
52
|
-
joined.push({ ...range })
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// A last entry written with no comma leaves the comma before the ones taken out behind, which goes with them.
|
|
56
|
-
for (const range of joined) {
|
|
57
|
-
let after = range.end
|
|
58
|
-
let before = range.start
|
|
59
|
-
|
|
60
|
-
while (source[after] === ' ' || source[after] === '\t')
|
|
61
|
-
after++
|
|
62
|
-
|
|
63
|
-
while (SPACE.test(source[before - 1] ?? ''))
|
|
64
|
-
before--
|
|
65
|
-
|
|
66
|
-
if (source[after] === '}' && source[range.end - 1] !== ',' && source[range.end - 1] !== '\n' && source[before - 1] === ',')
|
|
67
|
-
range.start = before - 1
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return joined
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// What a page wrote before 1.105 for its head, its sitemap entry and its cache: `noindex`, `sitemap`, `lastmod`, `search` and `feed` are the `seo` group, `ttl` and `cacheControl` are `cache`.
|
|
74
|
-
// The fix runs only where the new form is a plain rewrite of the old one, which is where `seo` or `cache` is not already there.
|
|
75
|
-
export function deprecatedPageSettings(source: string, server: ServerAnalysis | undefined): Diagnostic[] {
|
|
76
|
-
const settings = server?.page?.settings
|
|
77
|
-
|
|
78
|
-
if (!settings)
|
|
79
|
-
return []
|
|
80
|
-
|
|
81
|
-
const seo = settings.get('seo')
|
|
82
|
-
const text = (span: Span) => source.slice(span.start, span.end)
|
|
83
|
-
// The settings read from inside `seo` are in the map by their own names too.
|
|
84
|
-
const moved = SEO_SETTINGS.flatMap(name => settings.has(name) && !(seo && within(settings.get(name)!.key, seo.value)) ? [{ name, ...settings.get(name)! }] : []).toSorted((a, b) => a.key.start - b.key.start)
|
|
85
|
-
const found: Diagnostic[] = []
|
|
86
|
-
|
|
87
|
-
if (moved.length > 0) {
|
|
88
|
-
const [first, ...rest] = moved
|
|
89
|
-
const inner = moved.map(setting => `${setting.name}: ${text(setting.value)}`).join(', ')
|
|
90
|
-
const fix = seo ? undefined : { title: 'Move them into `seo`', safe: true, edits: [{ start: first!.key.start, end: first!.value.end, text: `seo: { ${inner} }` }, ...merged(source, rest.map(setting => removal(source, setting.key, setting.value))).map(range => ({ ...range, text: '' }))] }
|
|
91
|
-
|
|
92
|
-
for (const setting of moved) {
|
|
93
|
-
found.push({
|
|
94
|
-
...setting.key,
|
|
95
|
-
code: 'deprecated-page-seo',
|
|
96
|
-
checkOnly: true,
|
|
97
|
-
message: `\`${setting.name}\` is a setting of \`seo\` since 1.105: the group holds what search engines and the sitemap read of the page`,
|
|
98
|
-
help: seo ? `move it into the \`seo\` the page has: \`seo: { ${setting.name}: ... }\`` : `write \`page = { seo: { ${setting.name}: ... } }\``,
|
|
99
|
-
fixes: fix ? [fix] : [],
|
|
100
|
-
})
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const ttl = settings.get('ttl')
|
|
105
|
-
const control = settings.get('cacheControl')
|
|
106
|
-
const alone = !settings.has('cache') && (ttl === undefined) !== (control === undefined) ? (ttl ?? control)! : undefined
|
|
107
|
-
// `cacheControl` as `false` is `cache: false`; any other text is a header, which `cache: { browser, shared, swr }` builds from its parts.
|
|
108
|
-
const plain = alone !== undefined && (alone === ttl || text(alone.value).trim() === 'false')
|
|
109
|
-
|
|
110
|
-
for (const [name, setting] of [['ttl', ttl], ['cacheControl', control]] as const) {
|
|
111
|
-
if (setting === undefined)
|
|
112
|
-
continue
|
|
113
|
-
|
|
114
|
-
found.push({
|
|
115
|
-
...setting.key,
|
|
116
|
-
code: 'deprecated-page-cache',
|
|
117
|
-
checkOnly: true,
|
|
118
|
-
message: `\`${name}\` is \`cache\` since 1.105, which sets the lifetime and the \`cache-control\` of the page in one place`,
|
|
119
|
-
help: plain && alone === setting ? 'write `cache: \'1h\'`, `cache: false` for the default header' : 'write `cache: \'1h\'` or `cache: { browser, shared, swr }`, `cache: \'private\'` or `cache: false`',
|
|
120
|
-
fixes: plain && alone === setting ? [{ title: 'Write `cache`', safe: true, edits: [{ start: setting.key.start, end: setting.key.end, text: 'cache' }] }] : [],
|
|
121
|
-
})
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return found
|
|
125
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Diagnostic, KayFile } from './ast'
|
|
2
|
-
import { elementsIn } from './ast'
|
|
3
|
-
import { oldPartsClass } from './old-parts'
|
|
4
|
-
|
|
5
|
-
// A parts object given to a component as its `class`, which is the `parts` attribute since 1.105: `class` keeps strings, arrays and objects of conditions, so the one attribute no longer has two meanings. The compiler hands a literal of the old form on as `parts` until 1.108.
|
|
6
|
-
export function deprecatedPartsClass(file: KayFile): Diagnostic[] {
|
|
7
|
-
const found: Diagnostic[] = []
|
|
8
|
-
|
|
9
|
-
for (const element of elementsIn(file.template)) {
|
|
10
|
-
const attribute = oldPartsClass(element, file.source)
|
|
11
|
-
|
|
12
|
-
if (attribute === undefined)
|
|
13
|
-
continue
|
|
14
|
-
|
|
15
|
-
const taken = element.attributes.some(one => one.kind !== 'spread' && file.source.slice(one.name.start, one.name.end) === 'parts')
|
|
16
|
-
const base = { ...attribute.name, code: 'deprecated-parts-class', checkOnly: true, message: 'The parts of a component are its `parts` attribute since 1.105, `class` keeping strings, arrays and objects of conditions', help: 'write `parts={{ ... }}`, the entries of the object unchanged' }
|
|
17
|
-
|
|
18
|
-
found.push(taken ? base : { ...base, fixes: [{ title: 'Write `parts`', safe: true, edits: [{ ...attribute.name, text: 'parts' }] }] })
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return found
|
|
22
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Lint } from './lints'
|
|
2
|
-
|
|
3
|
-
// The deprecated lints the type check finds, apart from the others: an old form the types of 1.105 refuse, which `kay check` names with the fix instead of leaving its type error.
|
|
4
|
-
export const TYPED_DEPRECATIONS = {
|
|
5
|
-
'deprecated-callback-handler': {
|
|
6
|
-
level: 'deny',
|
|
7
|
-
group: 'deprecated',
|
|
8
|
-
since: '1.105',
|
|
9
|
-
typed: true,
|
|
10
|
-
summary: 'A function written for the arguments a kayjs-ui, kayjs-ai or kayjs-cms callback took before 1.105, given to a callback that takes one event object since: `onValueChange={query.set}`, `onCheckedChange={toggle}` with `toggle(on: boolean)` or `onFiles={upload}` with `upload(files: File[])`. Found where the type check refuses the function and the component comes from a `@kayjs` library; the fix writes `event => query.set(event.value)`, passing the fields the handler took, first ones first, and is applied where its parameter is no object (a parameter typed as an object may be written for the event already, so that fix is offered). A handler that is not a plain name, such as an arrow function, is reported with no fix. The old form fails the type check, and would receive the event where it took the value, so the level is `deny` until it is rewritten.',
|
|
11
|
-
wrong: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={toggle})',
|
|
12
|
-
right: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={event => toggle(event.checked)})',
|
|
13
|
-
},
|
|
14
|
-
'deprecated-call-result': {
|
|
15
|
-
level: 'deny',
|
|
16
|
-
group: 'deprecated',
|
|
17
|
-
since: '1.105',
|
|
18
|
-
typed: true,
|
|
19
|
-
summary: 'An island\'s call read as its data, `const list = await call(notes, \'/\')` then `list.items`, or `await add(input)` then `.id`, which resolved with the data before 1.105 and answers a `CallResult`, `{ ok: true, data }` or `{ ok: false, error }`, since. Found where the type check refuses a field of a `CallResult`, in a `.kay` script or a module. The fix writes `.orThrow()` after the call, which resolves with the data and throws a refusal as the call did; it is applied where the call is written on an imported name and nothing reads `ok`, `data` or `error` of the answer, and offered otherwise. The old form fails the type check, so the level is `deny`.',
|
|
20
|
-
wrong: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\')\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}',
|
|
21
|
-
right: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\').orThrow()\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}',
|
|
22
|
-
},
|
|
23
|
-
} as const satisfies Record<string, Lint>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { Details, ElementNode, Span } from './ast'
|
|
2
|
-
import type { Named } from './deprecated-ui-props'
|
|
3
|
-
import { rename } from './deprecated-ui-props'
|
|
4
|
-
|
|
5
|
-
interface Renamed {
|
|
6
|
-
from: string
|
|
7
|
-
to: string
|
|
8
|
-
// The fields of the event the new name's callback takes, in the order the old callback took its arguments.
|
|
9
|
-
fields: readonly string[]
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const CHARTS = ['ui/bar-chart', 'ui/line-chart', 'ui/scatter-chart', 'ui/sparkline', 'ui/contribution-graph']
|
|
13
|
-
|
|
14
|
-
// The kayjs-ui props whose callback took positional arguments under another name, by the library's file.
|
|
15
|
-
const RENAMED: Record<string, Renamed> = {
|
|
16
|
-
'ui/accordion': { from: 'onChange', to: 'onValueChange', fields: ['value'] },
|
|
17
|
-
'ui/tabs': { from: 'onChange', to: 'onValueChange', fields: ['value', 'tab'] },
|
|
18
|
-
'ui/theme-toggle': { from: 'onChange', to: 'onValueChange', fields: ['value', 'option'] },
|
|
19
|
-
'ui/zoom-pane': { from: 'onChange', to: 'onPlateChange', fields: ['plate'] },
|
|
20
|
-
'ui/table': { from: 'onSort', to: 'onSortChange', fields: ['sort'] },
|
|
21
|
-
...Object.fromEntries(CHARTS.map(file => [file, { from: 'onActive', to: 'onActiveChange', fields: ['index'] }])),
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// `value =>`, `(value) =>` and `(value, tab) =>`: the arrow functions whose parameters are plain names, which the event object destructures under the same names.
|
|
25
|
-
const ARROW = /^(?:\(\s*(\w+)(?:\s*,\s*(\w+))?\s*\)|(\w+))\s*=>/
|
|
26
|
-
|
|
27
|
-
type Report = (span: Span, message: string, details: Details) => void
|
|
28
|
-
|
|
29
|
-
// A kayjs-ui prop whose callback takes one event object since 1.105, under a new name where the old one hid what it carried (`onChange` on Tabs, `onSort` on Table, `onActive` on a chart). Found on a component bound to the library's file; an inline arrow with plain parameter names is rewritten to destructure the event, any other value gets the new name only.
|
|
30
|
-
export function deprecatedUiCallbacks(element: ElementNode, file: string, text: (span: Span) => string, report: Report): void {
|
|
31
|
-
const renamed = RENAMED[file]
|
|
32
|
-
|
|
33
|
-
if (renamed === undefined)
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
const attribute = element.attributes.find((one): one is Named => one.kind !== 'spread' && text(one.name) === renamed.from)
|
|
37
|
-
|
|
38
|
-
if (attribute === undefined)
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
const message = `\`${renamed.from}\` on \`${element.name}\` is \`${renamed.to}\` since 1.105, and its callback takes one event object: \`{ ${renamed.fields.join(', ')} }\``
|
|
42
|
-
const both = element.attributes.some(one => one.kind !== 'spread' && text(one.name) === renamed.to)
|
|
43
|
-
|
|
44
|
-
if (both) {
|
|
45
|
-
report(attribute.name, message, { help: `Drop \`${renamed.from}\`, \`${renamed.to}\` is already there` })
|
|
46
|
-
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const edits = [rename(attribute, renamed.from, renamed.to)]
|
|
51
|
-
const arrow = attribute.kind === 'expression' && !attribute.shorthand ? ARROW.exec(text(attribute.expression).trimStart()) : null
|
|
52
|
-
const names = arrow?.slice(1).filter(name => name !== undefined) ?? []
|
|
53
|
-
|
|
54
|
-
if (attribute.kind === 'expression' && arrow !== null && names.length <= renamed.fields.length) {
|
|
55
|
-
const parameters = names.map((name, index) => name === renamed.fields[index] ? name : `${renamed.fields[index]}: ${name}`)
|
|
56
|
-
const start = attribute.expression.start + (text(attribute.expression).length - text(attribute.expression).trimStart().length)
|
|
57
|
-
|
|
58
|
-
edits.push({ start, end: start + arrow[0].length - '=>'.length, text: `({ ${parameters.join(', ')} }) ` })
|
|
59
|
-
|
|
60
|
-
report(attribute.name, message, { help: `Write \`${renamed.to}\` and destructure the event`, fixes: [{ title: `Write \`${renamed.to}\` and destructure the event`, safe: true, edits }] })
|
|
61
|
-
|
|
62
|
-
return
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
report(attribute.name, message, { help: `Write \`${renamed.to}\` and take the event object`, fixes: [{ title: `Write \`${renamed.to}\`, then take the event object`, safe: false, edits }] })
|
|
66
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import type { Details, ElementNode, Span } from './ast'
|
|
2
|
-
import type { Named } from './deprecated-ui-props'
|
|
3
|
-
|
|
4
|
-
// The kayjs-ui controls whose spread attributes went to their input before 1.105 and go to their root now, with the attributes that stay the input's own (`id` is not one on a Combobox, where it names the list).
|
|
5
|
-
const CONTROLS = new Set(['ui/toggle', 'ui/checkbox', 'ui/slider', 'ui/color-input', 'ui/combobox', 'ui/date-input'])
|
|
6
|
-
|
|
7
|
-
// A tooltip stays with the input, which the keyboard reaches.
|
|
8
|
-
const TOOLTIP = /^data-(?:tooltip|hint)/
|
|
9
|
-
const isRootAttribute = (name: string, file: string) => (name === 'id' && file !== 'ui/combobox') || name === 'title' || (name.startsWith('data-') && !TOOLTIP.test(name))
|
|
10
|
-
|
|
11
|
-
type Report = (span: Span, message: string, details: Details) => void
|
|
12
|
-
|
|
13
|
-
// Where an attribute ends, its closing quote or brace included.
|
|
14
|
-
function attributeEnd(attribute: Named): number {
|
|
15
|
-
if (attribute.kind === 'static')
|
|
16
|
-
return attribute.value.end + 1
|
|
17
|
-
|
|
18
|
-
return attribute.kind === 'expression' ? attribute.shorthand?.end ?? attribute.expression.end + 1 : attribute.name.end
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// A string literal in single quotes, as the code an app lints is written.
|
|
22
|
-
function quoted(value: string): string {
|
|
23
|
-
return `'${JSON.stringify(value).slice(1, -1).replaceAll('\\"', '"').replaceAll('\'', '\\\'')}'`
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// What an attribute holds, written as a property value of an object literal.
|
|
27
|
-
function propertyValue(attribute: Named, text: (span: Span) => string): string {
|
|
28
|
-
if (attribute.kind === 'static')
|
|
29
|
-
return quoted(attribute.text)
|
|
30
|
-
|
|
31
|
-
return attribute.kind === 'expression' ? text(attribute.expression).trim() : '\'\''
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const IDENTIFIER = /^[a-z_$][\w$]*$/i
|
|
35
|
-
const propertyKey = (name: string) => IDENTIFIER.test(name) ? name : quoted(name)
|
|
36
|
-
|
|
37
|
-
// The edit writing `inputProps` into the brackets of an element with none to rewrite, which has none when it is written `Toggle#id` alone.
|
|
38
|
-
function insertion(element: ElementNode, object: string, others: boolean): (Span & { text: string })[] {
|
|
39
|
-
const at = element.parens ? element.parens.start + 1 : undefined
|
|
40
|
-
|
|
41
|
-
return at === undefined ? [] : [{ start: at, end: at, text: others ? `${object} ` : object }]
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Where an attribute starts, its brace included when it is written as a shorthand.
|
|
45
|
-
const attributeStart = (attribute: Named) => attribute.kind === 'expression' && attribute.shorthand ? attribute.shorthand.start : attribute.name.start
|
|
46
|
-
|
|
47
|
-
const SPACE = /\s/
|
|
48
|
-
|
|
49
|
-
// The edit taking an attribute out with the white space before it.
|
|
50
|
-
function removal(attribute: Named, text: (span: Span) => string): Span & { text: string } {
|
|
51
|
-
let start = attributeStart(attribute)
|
|
52
|
-
|
|
53
|
-
while (start > 0 && SPACE.test(text({ start: start - 1, end: start })))
|
|
54
|
-
start--
|
|
55
|
-
|
|
56
|
-
return { start, end: attributeEnd(attribute), text: '' }
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// The `id`, `title` and `data-*` attributes of a kayjs-ui control that drew an input (Toggle, Checkbox, Slider, ColorInput, Combobox, DateInput), the `#id` shorthand among them, which reached its input before 1.105 and reach its root now, the input taking `inputProps`. The fix gathers them into one `inputProps` object, and offers none beside an `inputProps` already written.
|
|
60
|
-
export function deprecatedUiInput(element: ElementNode, file: string, text: (span: Span) => string, report: Report): void {
|
|
61
|
-
if (!CONTROLS.has(file))
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
const attributes = element.attributes.filter((one): one is Named => one.kind !== 'spread')
|
|
65
|
-
const moved = attributes.filter(one => isRootAttribute(text(one.name), file))
|
|
66
|
-
const shorthand = file === 'ui/combobox' ? undefined : element.id
|
|
67
|
-
|
|
68
|
-
if (moved.length === 0 && shorthand === undefined)
|
|
69
|
-
return
|
|
70
|
-
|
|
71
|
-
const written = attributes.some(one => text(one.name) === 'inputProps')
|
|
72
|
-
const entries = [
|
|
73
|
-
...shorthand && !moved.some(one => text(one.name) === 'id') ? [`id: ${quoted(text(shorthand))}`] : [],
|
|
74
|
-
...moved.map(one => `${propertyKey(text(one.name))}: ${propertyValue(one, text)}`),
|
|
75
|
-
]
|
|
76
|
-
const object = `inputProps={{ ${entries.join(', ')} }}`
|
|
77
|
-
// One fix rewrites them all, as each of the others alone would lose its attribute: the object goes where the first attribute was, or into the brackets when only `#id` is there.
|
|
78
|
-
const edits = moved.length > 0 ? [{ start: attributeStart(moved[0]!), end: attributeEnd(moved[0]!), text: object }, ...moved.slice(1).map(one => removal(one, text))] : insertion(element, object, attributes.length > 0)
|
|
79
|
-
|
|
80
|
-
if (shorthand)
|
|
81
|
-
edits.push({ start: shorthand.start - 1, end: shorthand.end, text: moved.length === 0 && !element.parens ? `(${object})` : '' })
|
|
82
|
-
|
|
83
|
-
const message = (name: string) => `\`${name}\` on \`${element.name}\` is on its root since 1.105, as on every kayjs-ui component; the input takes \`inputProps\``
|
|
84
|
-
const reports: { span: Span, name: string }[] = [
|
|
85
|
-
...shorthand ? [{ span: { start: shorthand.start - 1, end: shorthand.end }, name: '#id' }] : [],
|
|
86
|
-
...moved.map(one => ({ span: one.name, name: text(one.name) })),
|
|
87
|
-
]
|
|
88
|
-
|
|
89
|
-
for (const [index, { span, name }] of reports.entries()) {
|
|
90
|
-
if (written)
|
|
91
|
-
report(span, message(name), { help: `Move \`${name}\` into \`inputProps\`` })
|
|
92
|
-
else if (index > 0)
|
|
93
|
-
report(span, message(name), { help: 'The first one\'s fix writes them all into `inputProps`' })
|
|
94
|
-
else
|
|
95
|
-
report(span, message(name), { help: 'Write `inputProps`', fixes: [{ title: 'Write `inputProps`', safe: true, edits }] })
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { Details, ElementNode, Span } from './ast'
|
|
2
|
-
import type { Named } from './deprecated-ui-props'
|
|
3
|
-
import { rename } from './deprecated-ui-props'
|
|
4
|
-
|
|
5
|
-
// The kayjs-ui props naming the list a component draws that are `items` since 1.105, by the library's file: the name each had, an infinite source (`list`) included.
|
|
6
|
-
const RENAMED: Record<string, readonly string[]> = {
|
|
7
|
-
'ui/tabs': ['tabs'],
|
|
8
|
-
'ui/avatar-group': ['avatars'],
|
|
9
|
-
'ui/command-palette': ['entries'],
|
|
10
|
-
'ui/timeline': ['entries'],
|
|
11
|
-
'ui/side-nav': ['links'],
|
|
12
|
-
'ui/site-nav': ['links'],
|
|
13
|
-
'ui/app-header': ['links'],
|
|
14
|
-
'ui/steps': ['steps'],
|
|
15
|
-
'ui/icon-picker': ['icons'],
|
|
16
|
-
'ui/carousel': ['slides', 'list'],
|
|
17
|
-
'ui/masonry': ['list'],
|
|
18
|
-
'ui/media-gallery': ['list'],
|
|
19
|
-
'ui/virtual-list': ['list'],
|
|
20
|
-
'ui/load-more': ['list'],
|
|
21
|
-
'ui/table': ['list'],
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
type Report = (span: Span, message: string, details: Details) => void
|
|
25
|
-
|
|
26
|
-
// A kayjs-ui prop holding the list a component draws, under the name it had before 1.105 (`tabs` on Tabs, `links` on SideNav, `entries` on a CommandPalette, the `list` of an infinite source on Table, Carousel, Masonry, MediaGallery, VirtualList and LoadMore), which is `items` on every component. Found on a component bound to the library's file; the old name works until 1.108.
|
|
27
|
-
export function deprecatedUiItems(element: ElementNode, file: string, text: (span: Span) => string, report: Report): void {
|
|
28
|
-
let written = element.attributes.some(one => one.kind !== 'spread' && text(one.name) === 'items')
|
|
29
|
-
|
|
30
|
-
for (const from of RENAMED[file] ?? []) {
|
|
31
|
-
const attribute = element.attributes.find((one): one is Named => one.kind !== 'spread' && text(one.name) === from)
|
|
32
|
-
|
|
33
|
-
if (attribute === undefined)
|
|
34
|
-
continue
|
|
35
|
-
|
|
36
|
-
const message = `\`${from}\` on \`${element.name}\` is \`items\` since 1.105, the name every kayjs-ui component gives the list it draws`
|
|
37
|
-
|
|
38
|
-
if (written) {
|
|
39
|
-
report(attribute.name, message, { help: `Drop \`${from}\`, \`items\` is already there` })
|
|
40
|
-
|
|
41
|
-
continue
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
written = true
|
|
45
|
-
report(attribute.name, message, { help: 'Write `items`', fixes: [{ title: 'Write `items`', safe: true, edits: [rename(attribute, from, 'items')] }] })
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { ElementNode, NamedAttribute } from './ast'
|
|
2
|
-
import type { Expression, Node } from './estree'
|
|
3
|
-
import type { CodeBuilder } from './mapping'
|
|
4
|
-
import { parseExpression } from './estree'
|
|
5
|
-
|
|
6
|
-
type ExpressionAttribute = Extract<NamedAttribute, { kind: 'expression' }>
|
|
7
|
-
|
|
8
|
-
const WORD = /^\w+$/
|
|
9
|
-
|
|
10
|
-
// What was found of each element, so its `class` is parsed once however many times a compiler pass asks.
|
|
11
|
-
const found = new WeakMap<ElementNode, ExpressionAttribute | undefined>()
|
|
12
|
-
|
|
13
|
-
// Whether an expression is written as the class of a part and of nothing a `{ class: condition }` object holds: a string, a template, an array of those, a choice between them, or a parts object of its own for a part that is a component.
|
|
14
|
-
function isPartEntry(node: Node): boolean {
|
|
15
|
-
if (node.type === 'Literal')
|
|
16
|
-
return typeof node.value === 'string'
|
|
17
|
-
|
|
18
|
-
if (node.type === 'TemplateLiteral')
|
|
19
|
-
return true
|
|
20
|
-
|
|
21
|
-
if (node.type === 'ArrayExpression')
|
|
22
|
-
return node.elements.every(element => element !== null && isPartEntry(element))
|
|
23
|
-
|
|
24
|
-
if (node.type === 'ConditionalExpression')
|
|
25
|
-
return isPartEntry(node.consequent) && isPartEntry(node.alternate)
|
|
26
|
-
|
|
27
|
-
return isPartsObject(node)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// An object literal of string classes by name, `{ head: 'p-6', body: 'p-4' }`: no condition and no spread, so it can only be the parts of a component.
|
|
31
|
-
function isPartsObject(node: Node): boolean {
|
|
32
|
-
return node.type === 'ObjectExpression' && node.properties.length > 0 && node.properties.every(property => property.type === 'Property' && !property.computed && !property.shorthand && property.kind === 'init' && partName(property.key) && isPartEntry(property.value))
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// A part is named by a word: a key with a `-`, `:` or `/` is a utility class, so the object holds conditions.
|
|
36
|
-
function partName(key: Node): boolean {
|
|
37
|
-
return key.type === 'Identifier' || (key.type === 'Literal' && typeof key.value === 'string' && WORD.test(key.value))
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// The `class` of a component call that is the parts of before 1.105, an object literal of strings by part name, which the compiler hands the component as its `parts`: every other `class` object is conditions.
|
|
41
|
-
export function oldPartsClass(element: ElementNode, source: string): ExpressionAttribute | undefined {
|
|
42
|
-
if (!element.component)
|
|
43
|
-
return undefined
|
|
44
|
-
|
|
45
|
-
if (!found.has(element))
|
|
46
|
-
found.set(element, find(element, source))
|
|
47
|
-
|
|
48
|
-
return found.get(element)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function find(element: ElementNode, source: string): ExpressionAttribute | undefined {
|
|
52
|
-
const attribute = element.attributes.find((one): one is ExpressionAttribute => one.kind === 'expression' && one.shorthand === undefined && source.slice(one.name.start, one.name.end) === 'class')
|
|
53
|
-
|
|
54
|
-
if (attribute === undefined || !source.slice(attribute.expression.start, attribute.expression.end).trimStart().startsWith('{'))
|
|
55
|
-
return undefined
|
|
56
|
-
|
|
57
|
-
let value: Expression
|
|
58
|
-
|
|
59
|
-
try {
|
|
60
|
-
value = parseExpression(source.slice(attribute.expression.start, attribute.expression.end), { lang: 'ts', offset: attribute.expression.start })
|
|
61
|
-
}
|
|
62
|
-
catch {
|
|
63
|
-
return undefined
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return isPartsObject(value) ? attribute : undefined
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Writes the prop of the `class` of before 1.105 on a component call as its `parts`, a `parts` written beside it keeping its entries, which this one's override. Whether the attribute is one of the two and was written.
|
|
70
|
-
export function oldPartsEntry(element: ElementNode, source: string, attribute: NamedAttribute, b: CodeBuilder, entry: (name: string, value: () => void, live: boolean) => void): boolean {
|
|
71
|
-
const old = oldPartsClass(element, source)
|
|
72
|
-
|
|
73
|
-
if (old === undefined)
|
|
74
|
-
return false
|
|
75
|
-
|
|
76
|
-
const hand = element.attributes.find((one): one is ExpressionAttribute => one.kind === 'expression' && source.slice(one.name.start, one.name.end) === 'parts')
|
|
77
|
-
|
|
78
|
-
if (hand === undefined && attribute === old)
|
|
79
|
-
entry('parts', () => b.add('(').addSource(old.expression).add(')'), true)
|
|
80
|
-
else if (attribute === hand)
|
|
81
|
-
entry('parts', () => b.add('{ ...(').addSource(hand.expression).add('), ...(').addSource(old.expression).add(') }'), true)
|
|
82
|
-
|
|
83
|
-
return attribute === old || attribute === hand
|
|
84
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Mounted as MountedIn } from './mount'
|
|
2
|
-
import { mount as mountIn } from './mount'
|
|
3
|
-
|
|
4
|
-
/** @deprecated Import `Mounted` from `kay`, its one home. Removed in 1.108.0; `deprecated-import-path` rewrites it. */
|
|
5
|
-
export type Mounted<P extends object> = MountedIn<P>
|
|
6
|
-
|
|
7
|
-
/** @deprecated Import `mount` from `kay`, its one home. Removed in 1.108.0; `deprecated-import-path` rewrites it. */
|
|
8
|
-
export const mount: typeof mountIn = mountIn
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { RateLimit as RateLimitIn, RateLimitRefusal as RateLimitRefusalIn } from '../runtime/action'
|
|
2
|
-
import { sqliteCache as sqliteCacheIn } from '../runtime/cache.server'
|
|
3
|
-
import { s as sIn } from '../runtime/schema'
|
|
4
|
-
|
|
5
|
-
// Names `kay/server` exported before each had one home, kept for three minors; `deprecated-import-path` rewrites an import of them.
|
|
6
|
-
|
|
7
|
-
/** @deprecated Import `RateLimit` from `kay`, its one home. Removed in 1.108.0; `deprecated-import-path` rewrites it. */
|
|
8
|
-
export type RateLimit = RateLimitIn
|
|
9
|
-
|
|
10
|
-
/** @deprecated Import `RateLimitRefusal` from `kay`, its one home. Removed in 1.108.0; `deprecated-import-path` rewrites it. */
|
|
11
|
-
export type RateLimitRefusal = RateLimitRefusalIn
|
|
12
|
-
|
|
13
|
-
/** @deprecated Import `sqliteCache` from `kay/cache`, its one home. Removed in 1.108.0; `deprecated-import-path` rewrites it. */
|
|
14
|
-
export const sqliteCache: typeof sqliteCacheIn = sqliteCacheIn
|
|
15
|
-
|
|
16
|
-
/** @deprecated Import `s` from `kay`, its one home. Removed in 1.108.0; `deprecated-import-path` rewrites it. */
|
|
17
|
-
export const s: typeof sIn = sIn
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-readers.d.ts","sourceRoot":"","sources":["../../src/check/action-readers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAyDtD,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAyDnG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-type.d.ts","sourceRoot":"","sources":["../../src/check/action-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAStD,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAkChG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-language.d.ts","sourceRoot":"","sources":["../../src/check/ai-language.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAiBtD,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAsChG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-hooks.d.ts","sourceRoot":"","sources":["../../src/check/app-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAiDtD,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAwC9F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-methods.d.ts","sourceRoot":"","sources":["../../src/check/auth-methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAkDtD,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAkCjG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-rate-limits.d.ts","sourceRoot":"","sources":["../../src/check/auth-rate-limits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AA8CtD,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAkCpG"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CheckDiagnostic } from '.';
|
|
2
|
-
import type { Span } from '../compiler/ast';
|
|
3
|
-
import type { LintLevels } from '../compiler/lints';
|
|
4
|
-
import type { OldFormLint } from './handler-events';
|
|
5
|
-
export declare function callResultLint(message: string, source: string, span: Span | undefined, kay: boolean): OldFormLint | undefined;
|
|
6
|
-
export declare function moduleCallResult(diagnostic: CheckDiagnostic, levels: LintLevels | undefined): Promise<Pick<CheckDiagnostic, 'code' | 'severity' | 'message' | 'help' | 'fixes'> | undefined>;
|
|
7
|
-
//# sourceMappingURL=call-result.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call-result.d.ts","sourceRoot":"","sources":["../../src/check/call-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AACxC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAiKnD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,GAAG,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAmD7H;AAGD,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG,SAAS,CAAC,CAsBlM"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-keys.d.ts","sourceRoot":"","sources":["../../src/check/client-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAOtD,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAEhG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cms-options.d.ts","sourceRoot":"","sources":["../../src/check/cms-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAkBtD,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CA8DhG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-groups.d.ts","sourceRoot":"","sources":["../../src/check/config-groups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAmBtD,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAElG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-switches.d.ts","sourceRoot":"","sources":["../../src/check/config-switches.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAUtD,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CA2BpG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-import.d.ts","sourceRoot":"","sources":["../../src/check/context-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAUtD,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CA2BnG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env-files.d.ts","sourceRoot":"","sources":["../../src/check/env-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAStD,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAqB9F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { CheckDiagnostic, CheckOptions } from '.';
|
|
2
|
-
export declare const EXPRESSION: RegExp;
|
|
3
|
-
export declare function evaluate(text: string): number;
|
|
4
|
-
export declare function formatDurationNumbers(root: string, options: CheckOptions): Promise<CheckDiagnostic[]>;
|
|
5
|
-
//# sourceMappingURL=format-duration.d.ts.map
|