jazz-tools 2.0.0-alpha.7 → 2.0.0-alpha.70
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 +21 -0
- package/README.md +135 -7
- package/bin/jazz-tools.js +101 -45
- package/dist/_dev/inspector-cache-runtime.d.ts +8 -0
- package/dist/_dev/inspector-cache-runtime.d.ts.map +1 -0
- package/dist/_dev/inspector-cache-runtime.js +246 -0
- package/dist/_dev/inspector-cache-runtime.js.map +1 -0
- package/dist/_dev/inspector-client.d.ts +15 -0
- package/dist/_dev/inspector-client.d.ts.map +1 -0
- package/dist/_dev/inspector-client.js +134 -0
- package/dist/_dev/inspector-client.js.map +1 -0
- package/dist/_dev/native-account-session.d.ts +23 -0
- package/dist/_dev/native-account-session.d.ts.map +1 -0
- package/dist/_dev/native-account-session.js +61 -0
- package/dist/_dev/native-account-session.js.map +1 -0
- package/dist/_dev/native-binding-codec.d.ts +9 -0
- package/dist/_dev/native-binding-codec.d.ts.map +1 -0
- package/dist/_dev/native-binding-codec.js +9 -0
- package/dist/_dev/native-binding-codec.js.map +1 -0
- package/dist/accounts/account-manager-core.d.ts +34 -0
- package/dist/accounts/account-manager-core.d.ts.map +1 -0
- package/dist/accounts/account-manager-core.js +236 -0
- package/dist/accounts/account-manager-core.js.map +1 -0
- package/dist/accounts/browser-host.d.ts +8 -0
- package/dist/accounts/browser-host.d.ts.map +1 -0
- package/dist/accounts/browser-host.js +16 -0
- package/dist/accounts/browser-host.js.map +1 -0
- package/dist/accounts/config-capability.d.ts +26 -0
- package/dist/accounts/config-capability.d.ts.map +1 -0
- package/dist/accounts/config-capability.js +58 -0
- package/dist/accounts/config-capability.js.map +1 -0
- package/dist/accounts/context.d.ts +14 -0
- package/dist/accounts/context.d.ts.map +1 -0
- package/dist/accounts/context.js +214 -0
- package/dist/accounts/context.js.map +1 -0
- package/dist/accounts/create-account-manager.d.ts +57 -0
- package/dist/accounts/create-account-manager.d.ts.map +1 -0
- package/dist/accounts/create-account-manager.js +17 -0
- package/dist/accounts/create-account-manager.js.map +1 -0
- package/dist/accounts/enrollment.d.ts +95 -0
- package/dist/accounts/enrollment.d.ts.map +1 -0
- package/dist/accounts/enrollment.js +314 -0
- package/dist/accounts/enrollment.js.map +1 -0
- package/dist/accounts/exports.d.ts +3 -0
- package/dist/accounts/exports.d.ts.map +1 -0
- package/dist/accounts/exports.js +5 -0
- package/dist/accounts/exports.js.map +1 -0
- package/dist/accounts/local-first.d.ts +17 -0
- package/dist/accounts/local-first.d.ts.map +1 -0
- package/dist/accounts/local-first.js +62 -0
- package/dist/accounts/local-first.js.map +1 -0
- package/dist/accounts/persistence.d.ts +79 -0
- package/dist/accounts/persistence.d.ts.map +1 -0
- package/dist/accounts/persistence.js +533 -0
- package/dist/accounts/persistence.js.map +1 -0
- package/dist/accounts/process-store.d.ts +27 -0
- package/dist/accounts/process-store.d.ts.map +1 -0
- package/dist/accounts/process-store.js +49 -0
- package/dist/accounts/process-store.js.map +1 -0
- package/dist/accounts/registry-client.d.ts +79 -0
- package/dist/accounts/registry-client.d.ts.map +1 -0
- package/dist/accounts/registry-client.js +153 -0
- package/dist/accounts/registry-client.js.map +1 -0
- package/dist/accounts/state.d.ts +76 -0
- package/dist/accounts/state.d.ts.map +1 -0
- package/dist/accounts/state.js +172 -0
- package/dist/accounts/state.js.map +1 -0
- package/dist/app-file-enums.d.ts +9 -0
- package/dist/app-file-enums.d.ts.map +1 -0
- package/dist/app-file-enums.js +34 -0
- package/dist/app-file-enums.js.map +1 -0
- package/dist/authoring.d.ts +9 -0
- package/dist/authoring.d.ts.map +1 -0
- package/dist/authoring.js +9 -0
- package/dist/authoring.js.map +1 -0
- package/dist/backend/admission.d.ts +28 -0
- package/dist/backend/admission.d.ts.map +1 -0
- package/dist/backend/admission.js +146 -0
- package/dist/backend/admission.js.map +1 -0
- package/dist/backend/api.d.ts +13 -0
- package/dist/backend/api.d.ts.map +1 -0
- package/dist/backend/api.js +13 -0
- package/dist/backend/api.js.map +1 -0
- package/dist/backend/backend-clients.d.ts +76 -0
- package/dist/backend/backend-clients.d.ts.map +1 -0
- package/dist/backend/backend-clients.js +237 -0
- package/dist/backend/backend-clients.js.map +1 -0
- package/dist/backend/backend-issuer.d.ts +6 -0
- package/dist/backend/backend-issuer.d.ts.map +1 -0
- package/dist/backend/backend-issuer.js +6 -0
- package/dist/backend/backend-issuer.js.map +1 -0
- package/dist/backend/backend-native.d.ts +40 -0
- package/dist/backend/backend-native.d.ts.map +1 -0
- package/dist/backend/backend-native.js +37 -0
- package/dist/backend/backend-native.js.map +1 -0
- package/dist/backend/blobs.d.ts +130 -0
- package/dist/backend/blobs.d.ts.map +1 -0
- package/dist/backend/blobs.js +132 -0
- package/dist/backend/blobs.js.map +1 -0
- package/dist/backend/core-transport.d.ts +61 -0
- package/dist/backend/core-transport.d.ts.map +1 -0
- package/dist/backend/core-transport.js +106 -0
- package/dist/backend/core-transport.js.map +1 -0
- package/dist/backend/create-jazz-context.d.ts +123 -0
- package/dist/backend/create-jazz-context.d.ts.map +1 -0
- package/dist/backend/create-jazz-context.js +716 -0
- package/dist/backend/create-jazz-context.js.map +1 -0
- package/dist/backend/create-jazz-session.d.ts +125 -0
- package/dist/backend/create-jazz-session.d.ts.map +1 -0
- package/dist/backend/create-jazz-session.js +528 -0
- package/dist/backend/create-jazz-session.js.map +1 -0
- package/dist/backend/create-jazz.d.ts +683 -0
- package/dist/backend/create-jazz.d.ts.map +1 -0
- package/dist/backend/create-jazz.js +4076 -0
- package/dist/backend/create-jazz.js.map +1 -0
- package/dist/backend/early-db.d.ts +29 -0
- package/dist/backend/early-db.d.ts.map +1 -0
- package/dist/backend/early-db.js +203 -0
- package/dist/backend/early-db.js.map +1 -0
- package/dist/backend/external-jwt.d.ts +27 -0
- package/dist/backend/external-jwt.d.ts.map +1 -0
- package/dist/backend/external-jwt.js +404 -0
- package/dist/backend/external-jwt.js.map +1 -0
- package/dist/backend/from-jwt.d.ts +64 -0
- package/dist/backend/from-jwt.d.ts.map +1 -0
- package/dist/backend/from-jwt.js +104 -0
- package/dist/backend/from-jwt.js.map +1 -0
- package/dist/backend/index.d.ts +6 -1
- package/dist/backend/index.d.ts.map +1 -1
- package/dist/backend/index.js +18 -1
- package/dist/backend/index.js.map +1 -1
- package/dist/backend/inspect-ui.d.ts +14 -0
- package/dist/backend/inspect-ui.d.ts.map +1 -0
- package/dist/backend/inspect-ui.js +156 -0
- package/dist/backend/inspect-ui.js.map +1 -0
- package/dist/backend/inspect.d.ts +133 -0
- package/dist/backend/inspect.d.ts.map +1 -0
- package/dist/backend/inspect.js +1001 -0
- package/dist/backend/inspect.js.map +1 -0
- package/dist/backend/inspector-ui/0.js +2 -0
- package/dist/backend/inspector-ui/1.js +2 -0
- package/dist/backend/inspector-ui/10.js +2 -0
- package/dist/backend/inspector-ui/11.js +2 -0
- package/dist/backend/inspector-ui/12.js +2 -0
- package/dist/backend/inspector-ui/13.js +2 -0
- package/dist/backend/inspector-ui/14.js +2 -0
- package/dist/backend/inspector-ui/15.js +2 -0
- package/dist/backend/inspector-ui/16.js +2 -0
- package/dist/backend/inspector-ui/17.js +2 -0
- package/dist/backend/inspector-ui/18.js +2 -0
- package/dist/backend/inspector-ui/19.js +2 -0
- package/dist/backend/inspector-ui/2.js +2 -0
- package/dist/backend/inspector-ui/20.js +2 -0
- package/dist/backend/inspector-ui/21.js +2 -0
- package/dist/backend/inspector-ui/3.js +2 -0
- package/dist/backend/inspector-ui/4.js +2 -0
- package/dist/backend/inspector-ui/5.js +2 -0
- package/dist/backend/inspector-ui/6.js +2 -0
- package/dist/backend/inspector-ui/7.js +2 -0
- package/dist/backend/inspector-ui/8.js +2 -0
- package/dist/backend/inspector-ui/9.js +2 -0
- package/dist/backend/inspector-ui-files.d.ts +4 -0
- package/dist/backend/inspector-ui-files.d.ts.map +1 -0
- package/dist/backend/inspector-ui-files.js +26 -0
- package/dist/backend/no-account-error.d.ts +23 -0
- package/dist/backend/no-account-error.d.ts.map +1 -0
- package/dist/backend/no-account-error.js +30 -0
- package/dist/backend/no-account-error.js.map +1 -0
- package/dist/backend/node-native.d.ts +3 -0
- package/dist/backend/node-native.d.ts.map +1 -0
- package/dist/backend/node-native.js +19 -0
- package/dist/backend/node-native.js.map +1 -0
- package/dist/backend/node-peers.d.ts +10 -0
- package/dist/backend/node-peers.d.ts.map +1 -0
- package/dist/backend/node-peers.js +37 -0
- package/dist/backend/node-peers.js.map +1 -0
- package/dist/backend/optional-peer.d.ts +9 -0
- package/dist/backend/optional-peer.d.ts.map +1 -0
- package/dist/backend/optional-peer.js +24 -0
- package/dist/backend/optional-peer.js.map +1 -0
- package/dist/backend/request-auth.d.ts +69 -0
- package/dist/backend/request-auth.d.ts.map +1 -0
- package/dist/backend/request-auth.js +122 -0
- package/dist/backend/request-auth.js.map +1 -0
- package/dist/backend/session-expiry.d.ts +61 -0
- package/dist/backend/session-expiry.d.ts.map +1 -0
- package/dist/backend/session-expiry.js +102 -0
- package/dist/backend/session-expiry.js.map +1 -0
- package/dist/backend/signing-key.d.ts +32 -0
- package/dist/backend/signing-key.d.ts.map +1 -0
- package/dist/backend/signing-key.js +63 -0
- package/dist/backend/signing-key.js.map +1 -0
- package/dist/backend/socket-deadline.d.ts +23 -0
- package/dist/backend/socket-deadline.d.ts.map +1 -0
- package/dist/backend/socket-deadline.js +70 -0
- package/dist/backend/socket-deadline.js.map +1 -0
- package/dist/backend/store-log.d.ts +3 -0
- package/dist/backend/store-log.d.ts.map +1 -0
- package/dist/backend/store-log.js +16 -0
- package/dist/backend/store-log.js.map +1 -0
- package/dist/backend/thin-relay.d.ts +66 -0
- package/dist/backend/thin-relay.d.ts.map +1 -0
- package/dist/backend/thin-relay.js +204 -0
- package/dist/backend/thin-relay.js.map +1 -0
- package/dist/backend/thin-session-client.d.ts +23 -0
- package/dist/backend/thin-session-client.d.ts.map +1 -0
- package/dist/backend/thin-session-client.js +69 -0
- package/dist/backend/thin-session-client.js.map +1 -0
- package/dist/backend/upgrade-status.d.ts +19 -0
- package/dist/backend/upgrade-status.d.ts.map +1 -0
- package/dist/backend/upgrade-status.js +55 -0
- package/dist/backend/upgrade-status.js.map +1 -0
- package/dist/backend/vercel-store.d.ts +345 -0
- package/dist/backend/vercel-store.d.ts.map +1 -0
- package/dist/backend/vercel-store.js +1387 -0
- package/dist/backend/vercel-store.js.map +1 -0
- package/dist/backend/workerd-backend.d.ts +36 -0
- package/dist/backend/workerd-backend.d.ts.map +1 -0
- package/dist/backend/workerd-backend.js +97 -0
- package/dist/backend/workerd-backend.js.map +1 -0
- package/dist/backend/workerd.d.ts +3 -0
- package/dist/backend/workerd.d.ts.map +1 -0
- package/dist/backend/workerd.js +39 -0
- package/dist/backend/workerd.js.map +1 -0
- package/dist/backend/ws-peer.d.ts +32 -0
- package/dist/backend/ws-peer.d.ts.map +1 -0
- package/dist/backend/ws-peer.js +41 -0
- package/dist/backend/ws-peer.js.map +1 -0
- package/dist/better-auth-adapter/fixtures/app.d.ts +151 -0
- package/dist/better-auth-adapter/fixtures/app.d.ts.map +1 -0
- package/dist/better-auth-adapter/fixtures/app.js +13 -0
- package/dist/better-auth-adapter/fixtures/app.js.map +1 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.d.ts +20 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.d.ts.map +1 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.js +27 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.js.map +1 -0
- package/dist/better-auth-adapter/index.d.ts +13 -0
- package/dist/better-auth-adapter/index.d.ts.map +1 -0
- package/dist/better-auth-adapter/index.js +406 -0
- package/dist/better-auth-adapter/index.js.map +1 -0
- package/dist/better-auth-adapter/indexes.d.ts +9 -0
- package/dist/better-auth-adapter/indexes.d.ts.map +1 -0
- package/dist/better-auth-adapter/indexes.js +40 -0
- package/dist/better-auth-adapter/indexes.js.map +1 -0
- package/dist/better-auth-adapter/schema.d.ts +88 -0
- package/dist/better-auth-adapter/schema.d.ts.map +1 -0
- package/dist/better-auth-adapter/schema.js +332 -0
- package/dist/better-auth-adapter/schema.js.map +1 -0
- package/dist/better-auth-adapter/types.d.ts +13 -0
- package/dist/better-auth-adapter/types.d.ts.map +1 -0
- package/dist/better-auth-adapter/types.js +2 -0
- package/dist/better-auth-adapter/types.js.map +1 -0
- package/dist/better-auth-adapter/utils.d.ts +53 -0
- package/dist/better-auth-adapter/utils.d.ts.map +1 -0
- package/dist/better-auth-adapter/utils.js +126 -0
- package/dist/better-auth-adapter/utils.js.map +1 -0
- package/dist/browser-benchmark-mode.d.ts +6 -0
- package/dist/browser-benchmark-mode.d.ts.map +1 -0
- package/dist/browser-benchmark-mode.js +13 -0
- package/dist/browser-benchmark-mode.js.map +1 -0
- package/dist/classic-api.d.ts +59 -0
- package/dist/classic-api.d.ts.map +1 -0
- package/dist/classic-api.js +122 -0
- package/dist/classic-api.js.map +1 -0
- package/dist/cli.d.ts +39 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +471 -265
- package/dist/cli.js.map +1 -1
- package/dist/client/index.d.ts +10 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/cloud/api.d.ts +11 -0
- package/dist/cloud/api.d.ts.map +1 -0
- package/dist/cloud/api.js +46 -0
- package/dist/cloud/api.js.map +1 -0
- package/dist/cloud/commands.d.ts +13 -0
- package/dist/cloud/commands.d.ts.map +1 -0
- package/dist/cloud/commands.js +425 -0
- package/dist/cloud/commands.js.map +1 -0
- package/dist/cloud/credentials.d.ts +49 -0
- package/dist/cloud/credentials.d.ts.map +1 -0
- package/dist/cloud/credentials.js +219 -0
- package/dist/cloud/credentials.js.map +1 -0
- package/dist/cloud/session.d.ts +57 -0
- package/dist/cloud/session.d.ts.map +1 -0
- package/dist/cloud/session.js +269 -0
- package/dist/cloud/session.js.map +1 -0
- package/dist/codegen/relation-analyzer.d.ts +5 -12
- package/dist/codegen/relation-analyzer.d.ts.map +1 -1
- package/dist/codegen/relation-analyzer.js +54 -65
- package/dist/codegen/relation-analyzer.js.map +1 -1
- package/dist/dev/app-files.d.ts +32 -0
- package/dist/dev/app-files.d.ts.map +1 -0
- package/dist/dev/app-files.js +72 -0
- package/dist/dev/app-files.js.map +1 -0
- package/dist/dev/catalogue-api.d.ts +147 -0
- package/dist/dev/catalogue-api.d.ts.map +1 -0
- package/dist/dev/catalogue-api.js +130 -0
- package/dist/dev/catalogue-api.js.map +1 -0
- package/dist/dev/catalogue.d.ts +69 -0
- package/dist/dev/catalogue.d.ts.map +1 -0
- package/dist/dev/catalogue.js +70 -0
- package/dist/dev/catalogue.js.map +1 -0
- package/dist/dev/codegen-napi.d.ts +139 -0
- package/dist/dev/codegen-napi.d.ts.map +1 -0
- package/dist/dev/codegen-napi.js +157 -0
- package/dist/dev/codegen-napi.js.map +1 -0
- package/dist/dev/dev-server.d.ts +62 -0
- package/dist/dev/dev-server.d.ts.map +1 -0
- package/dist/dev/dev-server.js +164 -0
- package/dist/dev/dev-server.js.map +1 -0
- package/dist/dev/index.d.ts +3 -0
- package/dist/dev/index.d.ts.map +1 -0
- package/dist/dev/index.js +3 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/dev/inspector-overlay/browser-control-registry.d.ts +10 -0
- package/dist/dev/inspector-overlay/browser-control-registry.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/browser-control-registry.js +188 -0
- package/dist/dev/inspector-overlay/browser-control-registry.js.map +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/ExportResult-C0ZojfNk.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/backend-0Idv0niF.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/backend-DHeT1LCS.css +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/create-legacy-browser-delegate-DeI8PAZ5.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/diag-api-3Z_Eel3W.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-BB6DtWpZ.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-B_xpsQL2.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-CE7mSo95.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-CcBEG-yV.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-DZrCzNXM.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-k373aadI.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/index-D3RK8wNj.js +5 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz-broker-worker-EyaWhBtz.js +5 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm-O10pptvY.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm_bg-wI43fvvq.wasm +0 -0
- package/dist/dev/inspector-overlay/embedded/assets/node-foreground-node-lease.browser-2mfp13Qb.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/src-4JwhxZaW.js +16 -0
- package/dist/dev/inspector-overlay/embedded/assets/src-Cq8gSOLx.css +1 -0
- package/dist/dev/inspector-overlay/embedded/backend.html +17 -0
- package/dist/dev/inspector-overlay/embedded/embedded.html +15 -0
- package/dist/dev/inspector-overlay/embedded/favicon.ico +0 -0
- package/dist/dev/inspector-overlay/host-bridge.d.ts +8 -0
- package/dist/dev/inspector-overlay/host-bridge.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/host-bridge.js +139 -0
- package/dist/dev/inspector-overlay/host-bridge.js.map +1 -0
- package/dist/dev/inspector-overlay/inspector-host-types.d.ts +35 -0
- package/dist/dev/inspector-overlay/inspector-host-types.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/inspector-host-types.js +10 -0
- package/dist/dev/inspector-overlay/inspector-host-types.js.map +1 -0
- package/dist/dev/inspector-overlay/loader.d.ts +24 -0
- package/dist/dev/inspector-overlay/loader.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/loader.js +533 -0
- package/dist/dev/inspector-overlay/loader.js.map +1 -0
- package/dist/dev/migration-graph.d.ts +32 -0
- package/dist/dev/migration-graph.d.ts.map +1 -0
- package/dist/dev/migration-graph.js +136 -0
- package/dist/dev/migration-graph.js.map +1 -0
- package/dist/dev/migrations.d.ts +145 -0
- package/dist/dev/migrations.d.ts.map +1 -0
- package/dist/dev/migrations.js +700 -0
- package/dist/dev/migrations.js.map +1 -0
- package/dist/dev/project.d.ts +65 -0
- package/dist/dev/project.d.ts.map +1 -0
- package/dist/dev/project.js +179 -0
- package/dist/dev/project.js.map +1 -0
- package/dist/dev/schema-utils.d.ts +8 -0
- package/dist/dev/schema-utils.d.ts.map +1 -0
- package/dist/dev/schema-utils.js +75 -0
- package/dist/dev/schema-utils.js.map +1 -0
- package/dist/dev/schema-validation.d.ts +5 -0
- package/dist/dev/schema-validation.d.ts.map +1 -0
- package/dist/dev/schema-validation.js +11 -0
- package/dist/dev/schema-validation.js.map +1 -0
- package/dist/dev/ts-project.d.ts +77 -0
- package/dist/dev/ts-project.d.ts.map +1 -0
- package/dist/dev/ts-project.js +190 -0
- package/dist/dev/ts-project.js.map +1 -0
- package/dist/drivers/index.d.ts +1 -1
- package/dist/drivers/index.d.ts.map +1 -1
- package/dist/drivers/index.js.map +1 -1
- package/dist/drivers/schema-wire.d.ts +21 -0
- package/dist/drivers/schema-wire.d.ts.map +1 -0
- package/dist/drivers/schema-wire.js +67 -0
- package/dist/drivers/schema-wire.js.map +1 -0
- package/dist/drivers/types.d.ts +315 -45
- package/dist/drivers/types.d.ts.map +1 -1
- package/dist/drivers/types.js +5 -4
- package/dist/drivers/types.js.map +1 -1
- package/dist/dsl.d.ts +276 -121
- package/dist/dsl.d.ts.map +1 -1
- package/dist/dsl.js +196 -160
- package/dist/dsl.js.map +1 -1
- package/dist/durable-object/index.d.ts +26 -0
- package/dist/durable-object/index.d.ts.map +1 -0
- package/dist/durable-object/index.js +26 -0
- package/dist/durable-object/index.js.map +1 -0
- package/dist/e2ee/SODIUM-LICENSE.txt +36 -0
- package/dist/e2ee/SODIUM-SOURCES.json +4 -0
- package/dist/e2ee/browser.d.ts +18 -0
- package/dist/e2ee/browser.d.ts.map +1 -0
- package/dist/e2ee/browser.js +111 -0
- package/dist/e2ee/browser.js.map +1 -0
- package/dist/e2ee/context.d.ts +23 -0
- package/dist/e2ee/context.d.ts.map +1 -0
- package/dist/e2ee/context.js +49 -0
- package/dist/e2ee/context.js.map +1 -0
- package/dist/e2ee/crypto.d.ts +10 -0
- package/dist/e2ee/crypto.d.ts.map +1 -0
- package/dist/e2ee/crypto.js +22 -0
- package/dist/e2ee/crypto.js.map +1 -0
- package/dist/e2ee/envelope.d.ts +22 -0
- package/dist/e2ee/envelope.d.ts.map +1 -0
- package/dist/e2ee/envelope.js +52 -0
- package/dist/e2ee/envelope.js.map +1 -0
- package/dist/e2ee/index.d.ts +14 -0
- package/dist/e2ee/index.d.ts.map +1 -0
- package/dist/e2ee/index.js +3 -0
- package/dist/e2ee/index.js.map +1 -0
- package/dist/e2ee/large-value.d.ts +20 -0
- package/dist/e2ee/large-value.d.ts.map +1 -0
- package/dist/e2ee/large-value.js +204 -0
- package/dist/e2ee/large-value.js.map +1 -0
- package/dist/e2ee/native.d.ts +18 -0
- package/dist/e2ee/native.d.ts.map +1 -0
- package/dist/e2ee/native.js +91 -0
- package/dist/e2ee/native.js.map +1 -0
- package/dist/e2ee/record-frame.d.ts +3 -0
- package/dist/e2ee/record-frame.d.ts.map +1 -0
- package/dist/e2ee/record-frame.js +18 -0
- package/dist/e2ee/record-frame.js.map +1 -0
- package/dist/e2ee/signer.d.ts +10 -0
- package/dist/e2ee/signer.d.ts.map +1 -0
- package/dist/e2ee/signer.js +54 -0
- package/dist/e2ee/signer.js.map +1 -0
- package/dist/e2ee/sodium-browser.d.ts +2 -0
- package/dist/e2ee/sodium-browser.d.ts.map +1 -0
- package/dist/e2ee/sodium-browser.js +3432 -0
- package/dist/e2ee/sodium.d.ts +20 -0
- package/dist/e2ee/sodium.d.ts.map +1 -0
- package/dist/e2ee/sodium.js +165 -0
- package/dist/e2ee/sodium.js.map +1 -0
- package/dist/e2ee/types.d.ts +92 -0
- package/dist/e2ee/types.d.ts.map +1 -0
- package/dist/e2ee/types.js +2 -0
- package/dist/e2ee/types.js.map +1 -0
- package/dist/effect/backend/index.d.ts +8 -0
- package/dist/effect/backend/index.d.ts.map +1 -0
- package/dist/effect/backend/index.js +8 -0
- package/dist/effect/backend/index.js.map +1 -0
- package/dist/effect/errors.d.ts +53 -0
- package/dist/effect/errors.d.ts.map +1 -0
- package/dist/effect/errors.js +61 -0
- package/dist/effect/errors.js.map +1 -0
- package/dist/effect/index.d.ts +9 -0
- package/dist/effect/index.d.ts.map +1 -0
- package/dist/effect/index.js +9 -0
- package/dist/effect/index.js.map +1 -0
- package/dist/effect/jazz-backend.d.ts +69 -0
- package/dist/effect/jazz-backend.d.ts.map +1 -0
- package/dist/effect/jazz-backend.js +95 -0
- package/dist/effect/jazz-backend.js.map +1 -0
- package/dist/effect/jazz.d.ts +129 -0
- package/dist/effect/jazz.d.ts.map +1 -0
- package/dist/effect/jazz.js +182 -0
- package/dist/effect/jazz.js.map +1 -0
- package/dist/expo/create-account-manager.d.ts +28 -0
- package/dist/expo/create-account-manager.d.ts.map +1 -0
- package/dist/expo/create-account-manager.js +35 -0
- package/dist/expo/create-account-manager.js.map +1 -0
- package/dist/expo/create-jazz-session.d.ts +66 -0
- package/dist/expo/create-jazz-session.d.ts.map +1 -0
- package/dist/expo/create-jazz-session.js +96 -0
- package/dist/expo/create-jazz-session.js.map +1 -0
- package/dist/expo/index.d.ts +13 -0
- package/dist/expo/index.d.ts.map +1 -0
- package/dist/expo/index.js +12 -0
- package/dist/expo/index.js.map +1 -0
- package/dist/expo/metro.d.ts +20 -0
- package/dist/expo/metro.d.ts.map +1 -0
- package/dist/expo/metro.js +58 -0
- package/dist/expo/metro.js.map +1 -0
- package/dist/expo/polyfills.d.ts +2 -0
- package/dist/expo/polyfills.d.ts.map +1 -0
- package/dist/expo/polyfills.js +5 -0
- package/dist/expo/polyfills.js.map +1 -0
- package/dist/expo/provider.d.ts +10 -0
- package/dist/expo/provider.d.ts.map +1 -0
- package/dist/expo/provider.js +11 -0
- package/dist/expo/provider.js.map +1 -0
- package/dist/index.d.ts +23 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -11
- package/dist/index.js.map +1 -1
- package/dist/inspect/cli.d.ts +12 -0
- package/dist/inspect/cli.d.ts.map +1 -0
- package/dist/inspect/cli.js +320 -0
- package/dist/inspect/cli.js.map +1 -0
- package/dist/inspect/client.d.ts +67 -0
- package/dist/inspect/client.d.ts.map +1 -0
- package/dist/inspect/client.js +254 -0
- package/dist/inspect/client.js.map +1 -0
- package/dist/inspect/mcp.d.ts +28 -0
- package/dist/inspect/mcp.d.ts.map +1 -0
- package/dist/inspect/mcp.js +441 -0
- package/dist/inspect/mcp.js.map +1 -0
- package/dist/inspect/protocol.d.ts +317 -0
- package/dist/inspect/protocol.d.ts.map +1 -0
- package/dist/inspect/protocol.js +544 -0
- package/dist/inspect/protocol.js.map +1 -0
- package/dist/inspector/index.d.ts +10 -0
- package/dist/inspector/index.d.ts.map +1 -0
- package/dist/inspector/index.js +27 -0
- package/dist/inspector/index.js.map +1 -0
- package/dist/internal/inspector-query.d.ts +6 -0
- package/dist/internal/inspector-query.d.ts.map +1 -0
- package/dist/internal/inspector-query.js +20 -0
- package/dist/internal/inspector-query.js.map +1 -0
- package/dist/ir.d.ts +143 -115
- package/dist/ir.d.ts.map +1 -1
- package/dist/ir.js +509 -1
- package/dist/ir.js.map +1 -1
- package/dist/json-value.d.ts +6 -0
- package/dist/json-value.d.ts.map +1 -0
- package/dist/json-value.js +2 -0
- package/dist/json-value.js.map +1 -0
- package/dist/local-first/index.d.ts +18 -0
- package/dist/local-first/index.d.ts.map +1 -0
- package/dist/local-first/index.js +17 -0
- package/dist/local-first/index.js.map +1 -0
- package/dist/local-first-auth/browser.d.ts +18 -0
- package/dist/local-first-auth/browser.d.ts.map +1 -0
- package/dist/local-first-auth/browser.js +26 -0
- package/dist/local-first-auth/browser.js.map +1 -0
- package/dist/local-first-auth/encoding.d.ts +10 -0
- package/dist/local-first-auth/encoding.d.ts.map +1 -0
- package/dist/local-first-auth/encoding.js +38 -0
- package/dist/local-first-auth/encoding.js.map +1 -0
- package/dist/local-first-auth/identity.d.ts +73 -0
- package/dist/local-first-auth/identity.d.ts.map +1 -0
- package/dist/local-first-auth/identity.js +258 -0
- package/dist/local-first-auth/identity.js.map +1 -0
- package/dist/local-first-auth/index.d.ts +6 -0
- package/dist/local-first-auth/index.d.ts.map +1 -0
- package/dist/local-first-auth/index.js +4 -0
- package/dist/local-first-auth/index.js.map +1 -0
- package/dist/local-first-auth/passkey.d.ts +22 -0
- package/dist/local-first-auth/passkey.d.ts.map +1 -0
- package/dist/local-first-auth/passkey.js +116 -0
- package/dist/local-first-auth/passkey.js.map +1 -0
- package/dist/local-first-auth/recovery-phrase.d.ts +10 -0
- package/dist/local-first-auth/recovery-phrase.d.ts.map +1 -0
- package/dist/local-first-auth/recovery-phrase.js +59 -0
- package/dist/local-first-auth/recovery-phrase.js.map +1 -0
- package/dist/local-first-auth/secret.d.ts +25 -0
- package/dist/local-first-auth/secret.d.ts.map +1 -0
- package/dist/local-first-auth/secret.js +68 -0
- package/dist/local-first-auth/secret.js.map +1 -0
- package/dist/local-first-auth/server.d.ts +13 -0
- package/dist/local-first-auth/server.d.ts.map +1 -0
- package/dist/local-first-auth/server.js +32 -0
- package/dist/local-first-auth/server.js.map +1 -0
- package/dist/local-first-auth/store.d.ts +51 -0
- package/dist/local-first-auth/store.d.ts.map +1 -0
- package/dist/local-first-auth/store.js +112 -0
- package/dist/local-first-auth/store.js.map +1 -0
- package/dist/magic-columns.d.ts +40 -0
- package/dist/magic-columns.d.ts.map +1 -0
- package/dist/magic-columns.js +110 -0
- package/dist/magic-columns.js.map +1 -0
- package/dist/migration-namespace.d.ts +12 -0
- package/dist/migration-namespace.d.ts.map +1 -0
- package/dist/migration-namespace.js +13 -0
- package/dist/migration-namespace.js.map +1 -0
- package/dist/migrations.d.ts +286 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +188 -0
- package/dist/migrations.js.map +1 -0
- package/dist/module-interop.d.ts +17 -0
- package/dist/module-interop.d.ts.map +1 -0
- package/dist/module-interop.js +32 -0
- package/dist/module-interop.js.map +1 -0
- package/dist/observed-jazz-client.d.ts +15 -0
- package/dist/observed-jazz-client.d.ts.map +1 -0
- package/dist/observed-jazz-client.js +47 -0
- package/dist/observed-jazz-client.js.map +1 -0
- package/dist/passkey-backup.d.ts +3 -0
- package/dist/passkey-backup.d.ts.map +1 -0
- package/dist/passkey-backup.js +2 -0
- package/dist/passkey-backup.js.map +1 -0
- package/dist/passphrase.d.ts +2 -0
- package/dist/passphrase.d.ts.map +1 -0
- package/dist/passphrase.js +2 -0
- package/dist/passphrase.js.map +1 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.d.ts +89 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.d.ts.map +1 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.js +62 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.js.map +1 -0
- package/dist/permissions/__fixtures__/big-label.d.ts +332 -0
- package/dist/permissions/__fixtures__/big-label.d.ts.map +1 -0
- package/dist/permissions/__fixtures__/big-label.js +177 -0
- package/dist/permissions/__fixtures__/big-label.js.map +1 -0
- package/dist/permissions/__fixtures__/chat-react.d.ts +112 -0
- package/dist/permissions/__fixtures__/chat-react.d.ts.map +1 -0
- package/dist/permissions/__fixtures__/chat-react.js +51 -0
- package/dist/permissions/__fixtures__/chat-react.js.map +1 -0
- package/dist/permissions/compile.d.ts +182 -0
- package/dist/permissions/compile.d.ts.map +1 -0
- package/dist/permissions/compile.js +715 -0
- package/dist/permissions/compile.js.map +1 -0
- package/dist/permissions/dsl.d.ts +158 -0
- package/dist/permissions/dsl.d.ts.map +1 -0
- package/dist/permissions/dsl.js +391 -0
- package/dist/permissions/dsl.js.map +1 -0
- package/dist/permissions/index.d.ts +4 -145
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js +10 -1185
- package/dist/permissions/index.js.map +1 -1
- package/dist/permissions/relation.d.ts +84 -0
- package/dist/permissions/relation.d.ts.map +1 -0
- package/dist/permissions/relation.js +150 -0
- package/dist/permissions/relation.js.map +1 -0
- package/dist/permissions/types.d.ts +357 -0
- package/dist/permissions/types.d.ts.map +1 -0
- package/dist/permissions/types.js +5 -0
- package/dist/permissions/types.js.map +1 -0
- package/dist/printer/app-json.d.ts +96 -0
- package/dist/printer/app-json.d.ts.map +1 -0
- package/dist/printer/app-json.js +18 -0
- package/dist/printer/app-json.js.map +1 -0
- package/dist/printer/cli.d.ts +15 -0
- package/dist/printer/cli.d.ts.map +1 -0
- package/dist/printer/cli.js +76 -0
- package/dist/printer/cli.js.map +1 -0
- package/dist/printer/defs.d.ts +11 -0
- package/dist/printer/defs.d.ts.map +1 -0
- package/dist/printer/defs.js +123 -0
- package/dist/printer/defs.js.map +1 -0
- package/dist/printer/expr.d.ts +281 -0
- package/dist/printer/expr.d.ts.map +1 -0
- package/dist/printer/expr.js +940 -0
- package/dist/printer/expr.js.map +1 -0
- package/dist/printer/format.d.ts +17 -0
- package/dist/printer/format.d.ts.map +1 -0
- package/dist/printer/format.js +315 -0
- package/dist/printer/format.js.map +1 -0
- package/dist/printer/index.d.ts +31 -0
- package/dist/printer/index.d.ts.map +1 -0
- package/dist/printer/index.js +48 -0
- package/dist/printer/index.js.map +1 -0
- package/dist/printer/migrations.d.ts +28 -0
- package/dist/printer/migrations.d.ts.map +1 -0
- package/dist/printer/migrations.js +179 -0
- package/dist/printer/migrations.js.map +1 -0
- package/dist/printer/names.d.ts +17 -0
- package/dist/printer/names.d.ts.map +1 -0
- package/dist/printer/names.js +124 -0
- package/dist/printer/names.js.map +1 -0
- package/dist/printer/permissions.d.ts +60 -0
- package/dist/printer/permissions.d.ts.map +1 -0
- package/dist/printer/permissions.js +1167 -0
- package/dist/printer/permissions.js.map +1 -0
- package/dist/printer/schema.d.ts +18 -0
- package/dist/printer/schema.d.ts.map +1 -0
- package/dist/printer/schema.js +132 -0
- package/dist/printer/schema.js.map +1 -0
- package/dist/prosemirror/anchors.d.ts +30 -0
- package/dist/prosemirror/anchors.d.ts.map +1 -0
- package/dist/prosemirror/anchors.js +28 -0
- package/dist/prosemirror/anchors.js.map +1 -0
- package/dist/prosemirror/index.d.ts +7 -0
- package/dist/prosemirror/index.d.ts.map +1 -0
- package/dist/prosemirror/index.js +7 -0
- package/dist/prosemirror/index.js.map +1 -0
- package/dist/prosemirror/markdown.d.ts +95 -0
- package/dist/prosemirror/markdown.d.ts.map +1 -0
- package/dist/prosemirror/markdown.js +428 -0
- package/dist/prosemirror/markdown.js.map +1 -0
- package/dist/prosemirror/overlays.d.ts +69 -0
- package/dist/prosemirror/overlays.d.ts.map +1 -0
- package/dist/prosemirror/overlays.js +143 -0
- package/dist/prosemirror/overlays.js.map +1 -0
- package/dist/prosemirror/presence.d.ts +39 -0
- package/dist/prosemirror/presence.d.ts.map +1 -0
- package/dist/prosemirror/presence.js +88 -0
- package/dist/prosemirror/presence.js.map +1 -0
- package/dist/prosemirror/sync.d.ts +60 -0
- package/dist/prosemirror/sync.d.ts.map +1 -0
- package/dist/prosemirror/sync.js +196 -0
- package/dist/prosemirror/sync.js.map +1 -0
- package/dist/prosemirror/text-map.d.ts +21 -0
- package/dist/prosemirror/text-map.d.ts.map +1 -0
- package/dist/prosemirror/text-map.js +85 -0
- package/dist/prosemirror/text-map.js.map +1 -0
- package/dist/react/create-jazz-client.d.ts +2 -10
- package/dist/react/create-jazz-client.d.ts.map +1 -1
- package/dist/react/create-jazz-client.js +1 -25
- package/dist/react/create-jazz-client.js.map +1 -1
- package/dist/react/index.d.ts +15 -6
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +10 -5
- package/dist/react/index.js.map +1 -1
- package/dist/react/provider-props.d.ts +7 -0
- package/dist/react/provider-props.d.ts.map +1 -0
- package/dist/react/provider-props.js +15 -0
- package/dist/react/provider-props.js.map +1 -0
- package/dist/react/provider.d.ts +19 -13
- package/dist/react/provider.d.ts.map +1 -1
- package/dist/react/provider.js +25 -4
- package/dist/react/provider.js.map +1 -1
- package/dist/react/use-all.d.ts +1 -1
- package/dist/react/use-all.d.ts.map +1 -1
- package/dist/react/use-all.js +1 -1
- package/dist/react/use-all.js.map +1 -1
- package/dist/react/use-one.d.ts +2 -0
- package/dist/react/use-one.d.ts.map +1 -0
- package/dist/react/use-one.js +2 -0
- package/dist/react/use-one.js.map +1 -0
- package/dist/react-core/index.d.ts +10 -4
- package/dist/react-core/index.d.ts.map +1 -1
- package/dist/react-core/index.js +12 -2
- package/dist/react-core/index.js.map +1 -1
- package/dist/react-core/provider.d.ts +56 -12
- package/dist/react-core/provider.d.ts.map +1 -1
- package/dist/react-core/provider.js +128 -11
- package/dist/react-core/provider.js.map +1 -1
- package/dist/react-core/session-context.d.ts +7 -0
- package/dist/react-core/session-context.d.ts.map +1 -0
- package/dist/react-core/session-context.js +8 -0
- package/dist/react-core/session-context.js.map +1 -0
- package/dist/react-core/session.d.ts +63 -0
- package/dist/react-core/session.d.ts.map +1 -0
- package/dist/react-core/session.js +97 -0
- package/dist/react-core/session.js.map +1 -0
- package/dist/react-core/use-all.d.ts +95 -3
- package/dist/react-core/use-all.d.ts.map +1 -1
- package/dist/react-core/use-all.js +126 -52
- package/dist/react-core/use-all.js.map +1 -1
- package/dist/react-core/use-auth-state.d.ts +13 -0
- package/dist/react-core/use-auth-state.d.ts.map +1 -0
- package/dist/react-core/use-auth-state.js +15 -0
- package/dist/react-core/use-auth-state.js.map +1 -0
- package/dist/react-core/use-one.d.ts +58 -0
- package/dist/react-core/use-one.d.ts.map +1 -0
- package/dist/react-core/use-one.js +19 -0
- package/dist/react-core/use-one.js.map +1 -0
- package/dist/react-core/use-sync-status.d.ts +8 -0
- package/dist/react-core/use-sync-status.d.ts.map +1 -0
- package/dist/react-core/use-sync-status.js +12 -0
- package/dist/react-core/use-sync-status.js.map +1 -0
- package/dist/react-native/abort-signal.d.ts +9 -0
- package/dist/react-native/abort-signal.d.ts.map +1 -0
- package/dist/react-native/abort-signal.js +51 -0
- package/dist/react-native/abort-signal.js.map +1 -0
- package/dist/react-native/account-session.d.ts +11 -0
- package/dist/react-native/account-session.d.ts.map +1 -0
- package/dist/react-native/account-session.js +59 -0
- package/dist/react-native/account-session.js.map +1 -0
- package/dist/react-native/create-account-manager.d.ts +28 -0
- package/dist/react-native/create-account-manager.d.ts.map +1 -0
- package/dist/react-native/create-account-manager.js +30 -0
- package/dist/react-native/create-account-manager.js.map +1 -0
- package/dist/react-native/create-db.d.ts +8 -0
- package/dist/react-native/create-db.d.ts.map +1 -0
- package/dist/react-native/create-db.js +9 -0
- package/dist/react-native/create-db.js.map +1 -0
- package/dist/react-native/create-jazz-client.d.ts +12 -10
- package/dist/react-native/create-jazz-client.d.ts.map +1 -1
- package/dist/react-native/create-jazz-client.js +6 -21
- package/dist/react-native/create-jazz-client.js.map +1 -1
- package/dist/react-native/create-jazz-session.d.ts +66 -0
- package/dist/react-native/create-jazz-session.d.ts.map +1 -0
- package/dist/react-native/create-jazz-session.js +96 -0
- package/dist/react-native/create-jazz-session.js.map +1 -0
- package/dist/react-native/errors.d.ts +6 -0
- package/dist/react-native/errors.d.ts.map +1 -0
- package/dist/react-native/errors.js +6 -0
- package/dist/react-native/errors.js.map +1 -0
- package/dist/react-native/index.d.ts +21 -9
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +17 -7
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/native-foreground-db.d.ts +227 -0
- package/dist/react-native/native-foreground-db.d.ts.map +1 -0
- package/dist/react-native/native-foreground-db.js +905 -0
- package/dist/react-native/native-foreground-db.js.map +1 -0
- package/dist/react-native/native-relay.d.ts +7 -0
- package/dist/react-native/native-relay.d.ts.map +1 -0
- package/dist/react-native/native-relay.js +14 -0
- package/dist/react-native/native-relay.js.map +1 -0
- package/dist/react-native/provider.d.ts +20 -12
- package/dist/react-native/provider.d.ts.map +1 -1
- package/dist/react-native/provider.js +25 -4
- package/dist/react-native/provider.js.map +1 -1
- package/dist/react-native/runtime-source.d.ts +62 -0
- package/dist/react-native/runtime-source.d.ts.map +1 -0
- package/dist/react-native/runtime-source.js +314 -0
- package/dist/react-native/runtime-source.js.map +1 -0
- package/dist/react-native/use-all.d.ts +1 -1
- package/dist/react-native/use-all.d.ts.map +1 -1
- package/dist/react-native/use-all.js +1 -1
- package/dist/react-native/use-all.js.map +1 -1
- package/dist/react-native/use-one.d.ts +2 -0
- package/dist/react-native/use-one.d.ts.map +1 -0
- package/dist/react-native/use-one.js +2 -0
- package/dist/react-native/use-one.js.map +1 -0
- package/dist/reconcile-array.d.ts +45 -0
- package/dist/reconcile-array.d.ts.map +1 -0
- package/dist/reconcile-array.js +252 -0
- package/dist/reconcile-array.js.map +1 -0
- package/dist/relationships.d.ts +18 -0
- package/dist/relationships.d.ts.map +1 -0
- package/dist/relationships.js +28 -0
- package/dist/relationships.js.map +1 -0
- package/dist/removed-api.d.ts +87 -0
- package/dist/removed-api.d.ts.map +1 -0
- package/dist/removed-api.js +95 -0
- package/dist/removed-api.js.map +1 -0
- package/dist/removed-schema-api.d.ts +80 -0
- package/dist/removed-schema-api.d.ts.map +1 -0
- package/dist/removed-schema-api.js +128 -0
- package/dist/removed-schema-api.js.map +1 -0
- package/dist/runtime/auth-renewal-backoff.d.ts +14 -0
- package/dist/runtime/auth-renewal-backoff.d.ts.map +1 -0
- package/dist/runtime/auth-renewal-backoff.js +23 -0
- package/dist/runtime/auth-renewal-backoff.js.map +1 -0
- package/dist/runtime/auth-request-deadline.d.ts +3 -0
- package/dist/runtime/auth-request-deadline.d.ts.map +1 -0
- package/dist/runtime/auth-request-deadline.js +24 -0
- package/dist/runtime/auth-request-deadline.js.map +1 -0
- package/dist/runtime/auth-secret-codec.d.ts +21 -0
- package/dist/runtime/auth-secret-codec.d.ts.map +1 -0
- package/dist/runtime/auth-secret-codec.js +32 -0
- package/dist/runtime/auth-secret-codec.js.map +1 -0
- package/dist/runtime/auth-secret-store.d.ts +7 -0
- package/dist/runtime/auth-secret-store.d.ts.map +1 -0
- package/dist/runtime/auth-secret-store.js +12 -0
- package/dist/runtime/auth-secret-store.js.map +1 -0
- package/dist/runtime/auth-state.d.ts +47 -0
- package/dist/runtime/auth-state.d.ts.map +1 -0
- package/dist/runtime/auth-state.js +161 -0
- package/dist/runtime/auth-state.js.map +1 -0
- package/dist/runtime/author-id.d.ts +42 -0
- package/dist/runtime/author-id.d.ts.map +1 -0
- package/dist/runtime/author-id.js +172 -0
- package/dist/runtime/author-id.js.map +1 -0
- package/dist/runtime/authority-changed-error.d.ts +56 -0
- package/dist/runtime/authority-changed-error.d.ts.map +1 -0
- package/dist/runtime/authority-changed-error.js +74 -0
- package/dist/runtime/authority-changed-error.js.map +1 -0
- package/dist/runtime/backlog-rows.d.ts +3 -0
- package/dist/runtime/backlog-rows.d.ts.map +1 -0
- package/dist/runtime/backlog-rows.js +7 -0
- package/dist/runtime/backlog-rows.js.map +1 -0
- package/dist/runtime/browser-physical-database-epoch.d.ts +37 -0
- package/dist/runtime/browser-physical-database-epoch.d.ts.map +1 -0
- package/dist/runtime/browser-physical-database-epoch.js +89 -0
- package/dist/runtime/browser-physical-database-epoch.js.map +1 -0
- package/dist/runtime/browser-storage-invalidation.d.ts +8 -0
- package/dist/runtime/browser-storage-invalidation.d.ts.map +1 -0
- package/dist/runtime/browser-storage-invalidation.js +20 -0
- package/dist/runtime/browser-storage-invalidation.js.map +1 -0
- package/dist/runtime/browser-store-generation.d.ts +15 -0
- package/dist/runtime/browser-store-generation.d.ts.map +1 -0
- package/dist/runtime/browser-store-generation.js +48 -0
- package/dist/runtime/browser-store-generation.js.map +1 -0
- package/dist/runtime/browser-worker-assets.d.ts +31 -0
- package/dist/runtime/browser-worker-assets.d.ts.map +1 -0
- package/dist/runtime/browser-worker-assets.js +40 -0
- package/dist/runtime/browser-worker-assets.js.map +1 -0
- package/dist/runtime/browser-worker-assets.metro.d.ts +28 -0
- package/dist/runtime/browser-worker-assets.metro.d.ts.map +1 -0
- package/dist/runtime/browser-worker-assets.metro.js +52 -0
- package/dist/runtime/browser-worker-assets.metro.js.map +1 -0
- package/dist/runtime/browser-worker-assets.native.d.ts +7 -0
- package/dist/runtime/browser-worker-assets.native.d.ts.map +1 -0
- package/dist/runtime/browser-worker-assets.native.js +8 -0
- package/dist/runtime/browser-worker-assets.native.js.map +1 -0
- package/dist/runtime/browser-worker-config.d.ts +78 -0
- package/dist/runtime/browser-worker-config.d.ts.map +1 -0
- package/dist/runtime/browser-worker-config.js +299 -0
- package/dist/runtime/browser-worker-config.js.map +1 -0
- package/dist/runtime/client-config-key.d.ts +6 -0
- package/dist/runtime/client-config-key.d.ts.map +1 -0
- package/dist/runtime/client-config-key.js +83 -0
- package/dist/runtime/client-config-key.js.map +1 -0
- package/dist/runtime/client-migrations.d.ts +27 -0
- package/dist/runtime/client-migrations.d.ts.map +1 -0
- package/dist/runtime/client-migrations.js +25 -0
- package/dist/runtime/client-migrations.js.map +1 -0
- package/dist/runtime/client-registry.d.ts +21 -0
- package/dist/runtime/client-registry.d.ts.map +1 -0
- package/dist/runtime/client-registry.js +169 -0
- package/dist/runtime/client-registry.js.map +1 -0
- package/dist/runtime/client-scope.d.ts +38 -0
- package/dist/runtime/client-scope.d.ts.map +1 -0
- package/dist/runtime/client-scope.js +64 -0
- package/dist/runtime/client-scope.js.map +1 -0
- package/dist/runtime/client-session.d.ts +56 -13
- package/dist/runtime/client-session.d.ts.map +1 -1
- package/dist/runtime/client-session.js +212 -196
- package/dist/runtime/client-session.js.map +1 -1
- package/dist/runtime/client.d.ts +723 -190
- package/dist/runtime/client.d.ts.map +1 -1
- package/dist/runtime/client.js +1220 -416
- package/dist/runtime/client.js.map +1 -1
- package/dist/runtime/column-transforms.d.ts +26 -0
- package/dist/runtime/column-transforms.d.ts.map +1 -0
- package/dist/runtime/column-transforms.js +186 -0
- package/dist/runtime/column-transforms.js.map +1 -0
- package/dist/runtime/connection-manager/browser-connection-manager.d.ts +178 -0
- package/dist/runtime/connection-manager/browser-connection-manager.d.ts.map +1 -0
- package/dist/runtime/connection-manager/browser-connection-manager.js +1030 -0
- package/dist/runtime/connection-manager/browser-connection-manager.js.map +1 -0
- package/dist/runtime/connection-manager/direct-connection-manager.d.ts +28 -0
- package/dist/runtime/connection-manager/direct-connection-manager.d.ts.map +1 -0
- package/dist/runtime/connection-manager/direct-connection-manager.js +202 -0
- package/dist/runtime/connection-manager/direct-connection-manager.js.map +1 -0
- package/dist/runtime/connection-manager/index.d.ts +5 -0
- package/dist/runtime/connection-manager/index.d.ts.map +1 -0
- package/dist/runtime/connection-manager/index.js +4 -0
- package/dist/runtime/connection-manager/index.js.map +1 -0
- package/dist/runtime/connection-manager/types.d.ts +174 -0
- package/dist/runtime/connection-manager/types.d.ts.map +1 -0
- package/dist/runtime/connection-manager/types.js +396 -0
- package/dist/runtime/connection-manager/types.js.map +1 -0
- package/dist/runtime/context.d.ts +100 -30
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/context.js.map +1 -1
- package/dist/runtime/core-tick-failed-error.d.ts +31 -0
- package/dist/runtime/core-tick-failed-error.d.ts.map +1 -0
- package/dist/runtime/core-tick-failed-error.js +45 -0
- package/dist/runtime/core-tick-failed-error.js.map +1 -0
- package/dist/runtime/credentialed-transport.d.ts +42 -0
- package/dist/runtime/credentialed-transport.d.ts.map +1 -0
- package/dist/runtime/credentialed-transport.js +178 -0
- package/dist/runtime/credentialed-transport.js.map +1 -0
- package/dist/runtime/db-access-context.d.ts +14 -0
- package/dist/runtime/db-access-context.d.ts.map +1 -0
- package/dist/runtime/db-access-context.js +26 -0
- package/dist/runtime/db-access-context.js.map +1 -0
- package/dist/runtime/db-internal-session.d.ts +7 -0
- package/dist/runtime/db-internal-session.d.ts.map +1 -0
- package/dist/runtime/db-internal-session.js +21 -0
- package/dist/runtime/db-internal-session.js.map +1 -0
- package/dist/runtime/db-replaced-error.d.ts +21 -0
- package/dist/runtime/db-replaced-error.d.ts.map +1 -0
- package/dist/runtime/db-replaced-error.js +22 -0
- package/dist/runtime/db-replaced-error.js.map +1 -0
- package/dist/runtime/db.d.ts +869 -201
- package/dist/runtime/db.d.ts.map +1 -1
- package/dist/runtime/db.js +3491 -758
- package/dist/runtime/db.js.map +1 -1
- package/dist/runtime/default-create-db.d.ts +5 -0
- package/dist/runtime/default-create-db.d.ts.map +1 -0
- package/dist/runtime/default-create-db.js +7 -0
- package/dist/runtime/default-create-db.js.map +1 -0
- package/dist/runtime/default-runtime-source.d.ts +41 -0
- package/dist/runtime/default-runtime-source.d.ts.map +1 -0
- package/dist/runtime/default-runtime-source.js +326 -0
- package/dist/runtime/default-runtime-source.js.map +1 -0
- package/dist/runtime/delete-local-first-store.d.ts +12 -0
- package/dist/runtime/delete-local-first-store.d.ts.map +1 -0
- package/dist/runtime/delete-local-first-store.js +12 -0
- package/dist/runtime/delete-local-first-store.js.map +1 -0
- package/dist/runtime/deterministic-bytes.d.ts +6 -0
- package/dist/runtime/deterministic-bytes.d.ts.map +1 -0
- package/dist/runtime/deterministic-bytes.js +18 -0
- package/dist/runtime/deterministic-bytes.js.map +1 -0
- package/dist/runtime/graceful-shutdown-error.d.ts +17 -0
- package/dist/runtime/graceful-shutdown-error.d.ts.map +1 -0
- package/dist/runtime/graceful-shutdown-error.js +31 -0
- package/dist/runtime/graceful-shutdown-error.js.map +1 -0
- package/dist/runtime/hex.d.ts +21 -0
- package/dist/runtime/hex.d.ts.map +1 -0
- package/dist/runtime/hex.js +62 -0
- package/dist/runtime/hex.js.map +1 -0
- package/dist/runtime/history-relation.d.ts +8 -0
- package/dist/runtime/history-relation.d.ts.map +1 -0
- package/dist/runtime/history-relation.js +44 -0
- package/dist/runtime/history-relation.js.map +1 -0
- package/dist/runtime/in-process-transport.d.ts +18 -0
- package/dist/runtime/in-process-transport.d.ts.map +1 -0
- package/dist/runtime/in-process-transport.js +32 -0
- package/dist/runtime/in-process-transport.js.map +1 -0
- package/dist/runtime/index.d.ts +22 -11
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +14 -10
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/indexeddb-page-store.d.ts +214 -0
- package/dist/runtime/indexeddb-page-store.d.ts.map +1 -0
- package/dist/runtime/indexeddb-page-store.js +848 -0
- package/dist/runtime/indexeddb-page-store.js.map +1 -0
- package/dist/runtime/introspection-fetch.d.ts +18 -0
- package/dist/runtime/introspection-fetch.d.ts.map +1 -0
- package/dist/runtime/introspection-fetch.js +12 -0
- package/dist/runtime/introspection-fetch.js.map +1 -0
- package/dist/runtime/json-schema-evaluate.d.ts +55 -0
- package/dist/runtime/json-schema-evaluate.d.ts.map +1 -0
- package/dist/runtime/json-schema-evaluate.js +946 -0
- package/dist/runtime/json-schema-evaluate.js.map +1 -0
- package/dist/runtime/json-schema-formats.d.ts +14 -0
- package/dist/runtime/json-schema-formats.d.ts.map +1 -0
- package/dist/runtime/json-schema-formats.js +555 -0
- package/dist/runtime/json-schema-formats.js.map +1 -0
- package/dist/runtime/json-schema-json.d.ts +41 -0
- package/dist/runtime/json-schema-json.d.ts.map +1 -0
- package/dist/runtime/json-schema-json.js +309 -0
- package/dist/runtime/json-schema-json.js.map +1 -0
- package/dist/runtime/json-schema-metaschemas.d.ts +1403 -0
- package/dist/runtime/json-schema-metaschemas.d.ts.map +1 -0
- package/dist/runtime/json-schema-metaschemas.js +64 -0
- package/dist/runtime/json-schema-metaschemas.js.map +1 -0
- package/dist/runtime/json-schema-regex.d.ts +32 -0
- package/dist/runtime/json-schema-regex.d.ts.map +1 -0
- package/dist/runtime/json-schema-regex.js +895 -0
- package/dist/runtime/json-schema-regex.js.map +1 -0
- package/dist/runtime/json-schema-validator.d.ts +50 -0
- package/dist/runtime/json-schema-validator.d.ts.map +1 -0
- package/dist/runtime/json-schema-validator.js +404 -0
- package/dist/runtime/json-schema-validator.js.map +1 -0
- package/dist/runtime/json-text.js.map +1 -1
- package/dist/runtime/local-first-token.d.ts +11 -0
- package/dist/runtime/local-first-token.d.ts.map +1 -0
- package/dist/runtime/local-first-token.js +20 -0
- package/dist/runtime/local-first-token.js.map +1 -0
- package/dist/runtime/local-first-unavailable.d.ts +40 -0
- package/dist/runtime/local-first-unavailable.d.ts.map +1 -0
- package/dist/runtime/local-first-unavailable.js +81 -0
- package/dist/runtime/local-first-unavailable.js.map +1 -0
- package/dist/runtime/local-first-upgrade.d.ts +36 -0
- package/dist/runtime/local-first-upgrade.d.ts.map +1 -0
- package/dist/runtime/local-first-upgrade.js +31 -0
- package/dist/runtime/local-first-upgrade.js.map +1 -0
- package/dist/runtime/local-write-observer.d.ts +5 -0
- package/dist/runtime/local-write-observer.d.ts.map +1 -0
- package/dist/runtime/local-write-observer.js +31 -0
- package/dist/runtime/local-write-observer.js.map +1 -0
- package/dist/runtime/metro-setup-error.d.ts +20 -0
- package/dist/runtime/metro-setup-error.d.ts.map +1 -0
- package/dist/runtime/metro-setup-error.js +22 -0
- package/dist/runtime/metro-setup-error.js.map +1 -0
- package/dist/runtime/native-artifact-compatibility.d.ts +12 -0
- package/dist/runtime/native-artifact-compatibility.d.ts.map +1 -0
- package/dist/runtime/native-artifact-compatibility.js +26 -0
- package/dist/runtime/native-artifact-compatibility.js.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-napi.d.ts +2 -0
- package/dist/runtime/native-artifact-fingerprint-napi.d.ts.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-napi.js +3 -0
- package/dist/runtime/native-artifact-fingerprint-napi.js.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.d.ts +2 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.d.ts.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.js +3 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.js.map +1 -0
- package/dist/runtime/native-artifact-fingerprints.d.ts +5 -0
- package/dist/runtime/native-artifact-fingerprints.d.ts.map +1 -0
- package/dist/runtime/native-artifact-fingerprints.js +7 -0
- package/dist/runtime/native-artifact-fingerprints.js.map +1 -0
- package/dist/runtime/native-artifact-mismatch-error.d.ts +25 -0
- package/dist/runtime/native-artifact-mismatch-error.d.ts.map +1 -0
- package/dist/runtime/native-artifact-mismatch-error.js +34 -0
- package/dist/runtime/native-artifact-mismatch-error.js.map +1 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts +23 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts.map +1 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.js +45 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.js.map +1 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts +15 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts.map +1 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.js +64 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.js.map +1 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts +34 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts.map +1 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.js +61 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.js.map +1 -0
- package/dist/runtime/native-runtime/browser-follower-connection.d.ts +109 -0
- package/dist/runtime/native-runtime/browser-follower-connection.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-follower-connection.js +558 -0
- package/dist/runtime/native-runtime/browser-follower-connection.js.map +1 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts +130 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.js +988 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.js.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.d.ts +527 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.js +296 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.js.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-transport.d.ts +56 -0
- package/dist/runtime/native-runtime/browser-worker-transport.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-transport.js +305 -0
- package/dist/runtime/native-runtime/browser-worker-transport.js.map +1 -0
- package/dist/runtime/native-runtime/exact-integer.d.ts +7 -0
- package/dist/runtime/native-runtime/exact-integer.d.ts.map +1 -0
- package/dist/runtime/native-runtime/exact-integer.js +18 -0
- package/dist/runtime/native-runtime/exact-integer.js.map +1 -0
- package/dist/runtime/native-runtime/http-stream-socket.d.ts +103 -0
- package/dist/runtime/native-runtime/http-stream-socket.d.ts.map +1 -0
- package/dist/runtime/native-runtime/http-stream-socket.js +554 -0
- package/dist/runtime/native-runtime/http-stream-socket.js.map +1 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts +4 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts.map +1 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.js +33 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.js.map +1 -0
- package/dist/runtime/native-runtime/native-codec.d.ts +172 -0
- package/dist/runtime/native-runtime/native-codec.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-codec.js +629 -0
- package/dist/runtime/native-runtime/native-codec.js.map +1 -0
- package/dist/runtime/native-runtime/native-error-code.d.ts +39 -0
- package/dist/runtime/native-runtime/native-error-code.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-error-code.js +64 -0
- package/dist/runtime/native-runtime/native-error-code.js.map +1 -0
- package/dist/runtime/native-runtime/native-row-codec.d.ts +161 -0
- package/dist/runtime/native-runtime/native-row-codec.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-row-codec.js +903 -0
- package/dist/runtime/native-runtime/native-row-codec.js.map +1 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts +15 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.js +25 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.js.map +1 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.d.ts +913 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.js +5999 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.js.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts +17 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js +4 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts +19 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.js +297 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.js.map +1 -0
- package/dist/runtime/native-runtime/row-values-transport.d.ts +2 -0
- package/dist/runtime/native-runtime/row-values-transport.d.ts.map +1 -0
- package/dist/runtime/native-runtime/row-values-transport.js +21 -0
- package/dist/runtime/native-runtime/row-values-transport.js.map +1 -0
- package/dist/runtime/native-runtime/schema-codec.d.ts +10 -0
- package/dist/runtime/native-runtime/schema-codec.d.ts.map +1 -0
- package/dist/runtime/native-runtime/schema-codec.js +13 -0
- package/dist/runtime/native-runtime/schema-codec.js.map +1 -0
- package/dist/runtime/native-runtime/session-renewal-wire.d.ts +48 -0
- package/dist/runtime/native-runtime/session-renewal-wire.d.ts.map +1 -0
- package/dist/runtime/native-runtime/session-renewal-wire.js +107 -0
- package/dist/runtime/native-runtime/session-renewal-wire.js.map +1 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.d.ts +34 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.d.ts.map +1 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.js +146 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.js.map +1 -0
- package/dist/runtime/native-runtime/websocket.d.ts +327 -0
- package/dist/runtime/native-runtime/websocket.d.ts.map +1 -0
- package/dist/runtime/native-runtime/websocket.js +1112 -0
- package/dist/runtime/native-runtime/websocket.js.map +1 -0
- package/dist/runtime/newer-build-reload.d.ts +30 -0
- package/dist/runtime/newer-build-reload.d.ts.map +1 -0
- package/dist/runtime/newer-build-reload.js +59 -0
- package/dist/runtime/newer-build-reload.js.map +1 -0
- package/dist/runtime/page-cache.d.ts +44 -0
- package/dist/runtime/page-cache.d.ts.map +1 -0
- package/dist/runtime/page-cache.js +104 -0
- package/dist/runtime/page-cache.js.map +1 -0
- package/dist/runtime/page-handle.d.ts +83 -0
- package/dist/runtime/page-handle.d.ts.map +1 -0
- package/dist/runtime/page-handle.js +151 -0
- package/dist/runtime/page-handle.js.map +1 -0
- package/dist/runtime/passkey-backup.d.ts +3 -0
- package/dist/runtime/passkey-backup.d.ts.map +1 -0
- package/dist/runtime/passkey-backup.js +2 -0
- package/dist/runtime/passkey-backup.js.map +1 -0
- package/dist/runtime/platform-url.d.ts +10 -0
- package/dist/runtime/platform-url.d.ts.map +1 -0
- package/dist/runtime/platform-url.js +3 -0
- package/dist/runtime/platform-url.js.map +1 -0
- package/dist/runtime/platform-url.native.d.ts +6 -0
- package/dist/runtime/platform-url.native.d.ts.map +1 -0
- package/dist/runtime/platform-url.native.js +38 -0
- package/dist/runtime/platform-url.native.js.map +1 -0
- package/dist/runtime/query-adapter.d.ts +7 -15
- package/dist/runtime/query-adapter.d.ts.map +1 -1
- package/dist/runtime/query-adapter.js +477 -185
- package/dist/runtime/query-adapter.js.map +1 -1
- package/dist/runtime/query-builder-shape.d.ts +75 -0
- package/dist/runtime/query-builder-shape.d.ts.map +1 -0
- package/dist/runtime/query-builder-shape.js +225 -0
- package/dist/runtime/query-builder-shape.js.map +1 -0
- package/dist/runtime/query-column-name.d.ts +3 -0
- package/dist/runtime/query-column-name.d.ts.map +1 -0
- package/dist/runtime/query-column-name.js +10 -0
- package/dist/runtime/query-column-name.js.map +1 -0
- package/dist/runtime/query-output-table.d.ts +5 -0
- package/dist/runtime/query-output-table.d.ts.map +1 -0
- package/dist/runtime/query-output-table.js +30 -0
- package/dist/runtime/query-output-table.js.map +1 -0
- package/dist/runtime/recovery-phrase.d.ts +3 -0
- package/dist/runtime/recovery-phrase.d.ts.map +1 -0
- package/dist/runtime/recovery-phrase.js +2 -0
- package/dist/runtime/recovery-phrase.js.map +1 -0
- package/dist/runtime/remote-link-state.d.ts +20 -0
- package/dist/runtime/remote-link-state.d.ts.map +1 -0
- package/dist/runtime/remote-link-state.js +5 -0
- package/dist/runtime/remote-link-state.js.map +1 -0
- package/dist/runtime/removed-provider-props.d.ts +17 -0
- package/dist/runtime/removed-provider-props.d.ts.map +1 -0
- package/dist/runtime/removed-provider-props.js +16 -0
- package/dist/runtime/removed-provider-props.js.map +1 -0
- package/dist/runtime/row-transformer.d.ts +17 -3
- package/dist/runtime/row-transformer.d.ts.map +1 -1
- package/dist/runtime/row-transformer.js +182 -39
- package/dist/runtime/row-transformer.js.map +1 -1
- package/dist/runtime/run-cleanup-steps.d.ts +5 -0
- package/dist/runtime/run-cleanup-steps.d.ts.map +1 -0
- package/dist/runtime/run-cleanup-steps.js +19 -0
- package/dist/runtime/run-cleanup-steps.js.map +1 -0
- package/dist/runtime/runtime-closed-error.d.ts +9 -0
- package/dist/runtime/runtime-closed-error.d.ts.map +1 -0
- package/dist/runtime/runtime-closed-error.js +12 -0
- package/dist/runtime/runtime-closed-error.js.map +1 -0
- package/dist/runtime/runtime-config.d.ts +13 -0
- package/dist/runtime/runtime-config.d.ts.map +1 -0
- package/dist/runtime/runtime-config.js +115 -0
- package/dist/runtime/runtime-config.js.map +1 -0
- package/dist/runtime/runtime-entropy.d.ts +14 -0
- package/dist/runtime/runtime-entropy.d.ts.map +1 -0
- package/dist/runtime/runtime-entropy.js +43 -0
- package/dist/runtime/runtime-entropy.js.map +1 -0
- package/dist/runtime/runtime-source.d.ts +206 -0
- package/dist/runtime/runtime-source.d.ts.map +1 -0
- package/dist/runtime/runtime-source.js +64 -0
- package/dist/runtime/runtime-source.js.map +1 -0
- package/dist/runtime/schema-metadata.d.ts +22 -0
- package/dist/runtime/schema-metadata.d.ts.map +1 -0
- package/dist/runtime/schema-metadata.js +70 -0
- package/dist/runtime/schema-metadata.js.map +1 -0
- package/dist/runtime/select-projection.d.ts +5 -0
- package/dist/runtime/select-projection.d.ts.map +1 -0
- package/dist/runtime/select-projection.js +47 -0
- package/dist/runtime/select-projection.js.map +1 -0
- package/dist/runtime/snapshot-ref.d.ts +24 -0
- package/dist/runtime/snapshot-ref.d.ts.map +1 -0
- package/dist/runtime/snapshot-ref.js +43 -0
- package/dist/runtime/snapshot-ref.js.map +1 -0
- package/dist/runtime/store-held-by-another-tab-error.d.ts +53 -0
- package/dist/runtime/store-held-by-another-tab-error.d.ts.map +1 -0
- package/dist/runtime/store-held-by-another-tab-error.js +55 -0
- package/dist/runtime/store-held-by-another-tab-error.js.map +1 -0
- package/dist/runtime/streaming-source.d.ts +4 -0
- package/dist/runtime/streaming-source.d.ts.map +1 -0
- package/dist/runtime/streaming-source.js +53 -0
- package/dist/runtime/streaming-source.js.map +1 -0
- package/dist/runtime/structural-values.d.ts +6 -0
- package/dist/runtime/structural-values.d.ts.map +1 -0
- package/dist/runtime/structural-values.js +51 -0
- package/dist/runtime/structural-values.js.map +1 -0
- package/dist/runtime/subscription-manager.d.ts +103 -14
- package/dist/runtime/subscription-manager.d.ts.map +1 -1
- package/dist/runtime/subscription-manager.js +1051 -25
- package/dist/runtime/subscription-manager.js.map +1 -1
- package/dist/runtime/sync-status.d.ts +178 -0
- package/dist/runtime/sync-status.d.ts.map +1 -0
- package/dist/runtime/sync-status.js +163 -0
- package/dist/runtime/sync-status.js.map +1 -0
- package/dist/runtime/sync-telemetry.d.ts +35 -0
- package/dist/runtime/sync-telemetry.d.ts.map +1 -0
- package/dist/runtime/sync-telemetry.js +354 -0
- package/dist/runtime/sync-telemetry.js.map +1 -0
- package/dist/runtime/system-identity.d.ts +5 -0
- package/dist/runtime/system-identity.d.ts.map +1 -0
- package/dist/runtime/system-identity.js +10 -0
- package/dist/runtime/system-identity.js.map +1 -0
- package/dist/runtime/telemetry-env.d.ts +2 -0
- package/dist/runtime/telemetry-env.d.ts.map +1 -0
- package/dist/runtime/telemetry-env.js +16 -0
- package/dist/runtime/telemetry-env.js.map +1 -0
- package/dist/runtime/telemetry-env.native.d.ts +3 -0
- package/dist/runtime/telemetry-env.native.d.ts.map +1 -0
- package/dist/runtime/telemetry-env.native.js +7 -0
- package/dist/runtime/telemetry-env.native.js.map +1 -0
- package/dist/runtime/text-anchors.d.ts +58 -0
- package/dist/runtime/text-anchors.d.ts.map +1 -0
- package/dist/runtime/text-anchors.js +9 -0
- package/dist/runtime/text-anchors.js.map +1 -0
- package/dist/runtime/unsupported-storage-codecs-error.d.ts +53 -0
- package/dist/runtime/unsupported-storage-codecs-error.d.ts.map +1 -0
- package/dist/runtime/unsupported-storage-codecs-error.js +74 -0
- package/dist/runtime/unsupported-storage-codecs-error.js.map +1 -0
- package/dist/runtime/url.d.ts +32 -0
- package/dist/runtime/url.d.ts.map +1 -0
- package/dist/runtime/url.js +96 -0
- package/dist/runtime/url.js.map +1 -0
- package/dist/runtime/utf8.d.ts +10 -0
- package/dist/runtime/utf8.d.ts.map +1 -0
- package/dist/runtime/utf8.js +93 -0
- package/dist/runtime/utf8.js.map +1 -0
- package/dist/runtime/util.d.ts +18 -0
- package/dist/runtime/util.d.ts.map +1 -0
- package/dist/runtime/util.js +59 -0
- package/dist/runtime/util.js.map +1 -0
- package/dist/runtime/value-converter.d.ts +9 -17
- package/dist/runtime/value-converter.d.ts.map +1 -1
- package/dist/runtime/value-converter.js +157 -43
- package/dist/runtime/value-converter.js.map +1 -1
- package/dist/runtime/wasm-loader.d.ts +6 -0
- package/dist/runtime/wasm-loader.d.ts.map +1 -0
- package/dist/runtime/wasm-loader.js +127 -0
- package/dist/runtime/wasm-loader.js.map +1 -0
- package/dist/runtime/write-preparation.d.ts +24 -0
- package/dist/runtime/write-preparation.d.ts.map +1 -0
- package/dist/runtime/write-preparation.js +63 -0
- package/dist/runtime/write-preparation.js.map +1 -0
- package/dist/runtime/write-row.d.ts +8 -0
- package/dist/runtime/write-row.d.ts.map +1 -0
- package/dist/runtime/write-row.js +17 -0
- package/dist/runtime/write-row.js.map +1 -0
- package/dist/schema-builders.d.ts +55 -0
- package/dist/schema-builders.d.ts.map +1 -0
- package/dist/schema-builders.js +33 -0
- package/dist/schema-builders.js.map +1 -0
- package/dist/schema-dsl/define-schema.d.ts +32 -0
- package/dist/schema-dsl/define-schema.d.ts.map +1 -0
- package/dist/schema-dsl/define-schema.js +80 -0
- package/dist/schema-dsl/define-schema.js.map +1 -0
- package/dist/schema-dsl/readable-app.d.ts +30 -0
- package/dist/schema-dsl/readable-app.d.ts.map +1 -0
- package/dist/schema-dsl/readable-app.js +139 -0
- package/dist/schema-dsl/readable-app.js.map +1 -0
- package/dist/schema-dsl/table.d.ts +101 -0
- package/dist/schema-dsl/table.d.ts.map +1 -0
- package/dist/schema-dsl/table.js +153 -0
- package/dist/schema-dsl/table.js.map +1 -0
- package/dist/schema-errors.d.ts +6 -0
- package/dist/schema-errors.d.ts.map +1 -0
- package/dist/schema-errors.js +6 -0
- package/dist/schema-errors.js.map +1 -0
- package/dist/schema-loader.d.ts +16 -0
- package/dist/schema-loader.d.ts.map +1 -0
- package/dist/schema-loader.js +108 -0
- package/dist/schema-loader.js.map +1 -0
- package/dist/schema-name.d.ts +2 -0
- package/dist/schema-name.d.ts.map +1 -0
- package/dist/schema-name.js +19 -0
- package/dist/schema-name.js.map +1 -0
- package/dist/schema-namespace.d.ts +7 -0
- package/dist/schema-namespace.d.ts.map +1 -0
- package/dist/schema-namespace.js +7 -0
- package/dist/schema-namespace.js.map +1 -0
- package/dist/schema-permissions.d.ts +12 -0
- package/dist/schema-permissions.d.ts.map +1 -0
- package/dist/schema-permissions.js +17 -0
- package/dist/schema-permissions.js.map +1 -0
- package/dist/schema-source.d.ts +11 -0
- package/dist/schema-source.d.ts.map +1 -0
- package/dist/schema-source.js +53 -0
- package/dist/schema-source.js.map +1 -0
- package/dist/schema.d.ts +95 -38
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -16
- package/dist/schema.js.map +1 -1
- package/dist/session/backend-watch.d.ts +186 -0
- package/dist/session/backend-watch.d.ts.map +1 -0
- package/dist/session/backend-watch.js +698 -0
- package/dist/session/backend-watch.js.map +1 -0
- package/dist/session/config-options.d.ts +15 -0
- package/dist/session/config-options.d.ts.map +1 -0
- package/dist/session/config-options.js +55 -0
- package/dist/session/config-options.js.map +1 -0
- package/dist/session/consumer.d.ts +3 -0
- package/dist/session/consumer.d.ts.map +1 -0
- package/dist/session/consumer.js +3 -0
- package/dist/session/consumer.js.map +1 -0
- package/dist/session/create-jazz-session.d.ts +123 -0
- package/dist/session/create-jazz-session.d.ts.map +1 -0
- package/dist/session/create-jazz-session.js +542 -0
- package/dist/session/create-jazz-session.js.map +1 -0
- package/dist/session/deprecated-session-hook.d.ts +8 -0
- package/dist/session/deprecated-session-hook.d.ts.map +1 -0
- package/dist/session/deprecated-session-hook.js +28 -0
- package/dist/session/deprecated-session-hook.js.map +1 -0
- package/dist/session/follow-user.d.ts +72 -0
- package/dist/session/follow-user.d.ts.map +1 -0
- package/dist/session/follow-user.js +147 -0
- package/dist/session/follow-user.js.map +1 -0
- package/dist/session/jazz-session.d.ts +234 -0
- package/dist/session/jazz-session.d.ts.map +1 -0
- package/dist/session/jazz-session.js +528 -0
- package/dist/session/jazz-session.js.map +1 -0
- package/dist/session/native-backend-watch.d.ts +4 -0
- package/dist/session/native-backend-watch.d.ts.map +1 -0
- package/dist/session/native-backend-watch.js +14 -0
- package/dist/session/native-backend-watch.js.map +1 -0
- package/dist/session/no-kept-device-account-error.d.ts +6 -0
- package/dist/session/no-kept-device-account-error.d.ts.map +1 -0
- package/dist/session/no-kept-device-account-error.js +8 -0
- package/dist/session/no-kept-device-account-error.js.map +1 -0
- package/dist/session/replica-ledger.d.ts +164 -0
- package/dist/session/replica-ledger.d.ts.map +1 -0
- package/dist/session/replica-ledger.js +496 -0
- package/dist/session/replica-ledger.js.map +1 -0
- package/dist/session/state.d.ts +135 -0
- package/dist/session/state.d.ts.map +1 -0
- package/dist/session/state.js +535 -0
- package/dist/session/state.js.map +1 -0
- package/dist/shared/index.d.ts +20 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +17 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/solid/create-solid-jazz-client-internal.d.ts +13 -0
- package/dist/solid/create-solid-jazz-client-internal.d.ts.map +1 -0
- package/dist/solid/create-solid-jazz-client-internal.js +82 -0
- package/dist/solid/create-solid-jazz-client-internal.js.map +1 -0
- package/dist/solid/create-solid-jazz-client-internal.ssr.js +101 -0
- package/dist/solid/create-solid-jazz-client-internal.ssr.js.map +1 -0
- package/dist/solid/create-solid-jazz-client.d.ts +24 -0
- package/dist/solid/create-solid-jazz-client.d.ts.map +1 -0
- package/dist/solid/create-solid-jazz-client.js +42 -0
- package/dist/solid/create-solid-jazz-client.js.map +1 -0
- package/dist/solid/create-solid-jazz-client.ssr.js +45 -0
- package/dist/solid/create-solid-jazz-client.ssr.js.map +1 -0
- package/dist/solid/index.d.ts +14 -0
- package/dist/solid/index.d.ts.map +1 -0
- package/dist/solid/index.js +10 -0
- package/dist/solid/index.ssr.js +10 -0
- package/dist/solid/provider.d.ts +36 -0
- package/dist/solid/provider.d.ts.map +1 -0
- package/dist/solid/provider.js +54 -0
- package/dist/solid/provider.js.map +1 -0
- package/dist/solid/provider.ssr.js +58 -0
- package/dist/solid/provider.ssr.js.map +1 -0
- package/dist/solid/session-context.d.ts +14 -0
- package/dist/solid/session-context.d.ts.map +1 -0
- package/dist/solid/session-context.js +6 -0
- package/dist/solid/session-context.js.map +1 -0
- package/dist/solid/session-context.ssr.js +10 -0
- package/dist/solid/session-context.ssr.js.map +1 -0
- package/dist/solid/session.d.ts +55 -0
- package/dist/solid/session.d.ts.map +1 -0
- package/dist/solid/session.js +130 -0
- package/dist/solid/session.js.map +1 -0
- package/dist/solid/session.ssr.js +156 -0
- package/dist/solid/session.ssr.js.map +1 -0
- package/dist/solid/solid-jazz-client-store.d.ts +11 -0
- package/dist/solid/solid-jazz-client-store.d.ts.map +1 -0
- package/dist/solid/solid-jazz-client-store.js +38 -0
- package/dist/solid/solid-jazz-client-store.js.map +1 -0
- package/dist/solid/solid-jazz-client-store.ssr.js +39 -0
- package/dist/solid/solid-jazz-client-store.ssr.js.map +1 -0
- package/dist/solid/use-all.d.ts +18 -0
- package/dist/solid/use-all.d.ts.map +1 -0
- package/dist/solid/use-all.js +71 -0
- package/dist/solid/use-all.js.map +1 -0
- package/dist/solid/use-all.ssr.js +84 -0
- package/dist/solid/use-all.ssr.js.map +1 -0
- package/dist/solid/use-one.d.ts +18 -0
- package/dist/solid/use-one.d.ts.map +1 -0
- package/dist/solid/use-one.js +27 -0
- package/dist/solid/use-one.js.map +1 -0
- package/dist/solid/use-one.ssr.js +27 -0
- package/dist/solid/use-one.ssr.js.map +1 -0
- package/dist/solid/use-sync-status.d.ts +8 -0
- package/dist/solid/use-sync-status.d.ts.map +1 -0
- package/dist/solid/use-sync-status.js +13 -0
- package/dist/solid/use-sync-status.js.map +1 -0
- package/dist/solid/use-sync-status.ssr.js +20 -0
- package/dist/solid/use-sync-status.ssr.js.map +1 -0
- package/dist/subscription-store-internal.d.ts +11 -0
- package/dist/subscription-store-internal.d.ts.map +1 -0
- package/dist/subscription-store-internal.js +18 -0
- package/dist/subscription-store-internal.js.map +1 -0
- package/dist/subscriptions-orchestrator.d.ts +93 -13
- package/dist/subscriptions-orchestrator.d.ts.map +1 -1
- package/dist/subscriptions-orchestrator.js +392 -75
- package/dist/subscriptions-orchestrator.js.map +1 -1
- package/dist/svelte/JazzProvider.svelte +110 -0
- package/dist/svelte/JazzProvider.svelte.d.ts +24 -0
- package/dist/svelte/JazzProvider.svelte.d.ts.map +1 -0
- package/dist/svelte/JazzSvelteClientProvider.svelte +83 -0
- package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts +15 -0
- package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts.map +1 -0
- package/dist/svelte/JazzSvelteProvider.svelte +160 -28
- package/dist/svelte/JazzSvelteProvider.svelte.d.ts +4 -3
- package/dist/svelte/JazzSvelteProvider.svelte.d.ts.map +1 -1
- package/dist/svelte/context.svelte.d.ts +30 -3
- package/dist/svelte/context.svelte.d.ts.map +1 -1
- package/dist/svelte/context.svelte.js +37 -3
- package/dist/svelte/create-jazz-client.d.ts +2 -8
- package/dist/svelte/create-jazz-client.d.ts.map +1 -1
- package/dist/svelte/create-jazz-client.js +1 -17
- package/dist/svelte/index.d.ts +14 -6
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/index.js +11 -6
- package/dist/svelte/query-subscription.svelte.d.ts +60 -0
- package/dist/svelte/query-subscription.svelte.d.ts.map +1 -0
- package/dist/svelte/query-subscription.svelte.js +135 -0
- package/dist/svelte/session-state.d.ts +27 -0
- package/dist/svelte/session-state.d.ts.map +1 -0
- package/dist/svelte/session-state.js +49 -0
- package/dist/svelte/sync-status.d.ts +11 -0
- package/dist/svelte/sync-status.d.ts.map +1 -0
- package/dist/svelte/sync-status.js +15 -0
- package/dist/testing/fixtures/with-bigint/schema.d.ts +18 -0
- package/dist/testing/fixtures/with-bigint/schema.d.ts.map +1 -0
- package/dist/testing/fixtures/with-bigint/schema.js +15 -0
- package/dist/testing/fixtures/with-bigint/schema.js.map +1 -0
- package/dist/testing/index.d.ts +6 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +5 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/policy-test-app.d.ts +129 -0
- package/dist/testing/policy-test-app.d.ts.map +1 -0
- package/dist/testing/policy-test-app.js +229 -0
- package/dist/testing/policy-test-app.js.map +1 -0
- package/dist/testing/test-app.d.ts +272 -0
- package/dist/testing/test-app.d.ts.map +1 -0
- package/dist/testing/test-app.js +62 -0
- package/dist/testing/test-app.js.map +1 -0
- package/dist/testing/test-jazz.d.ts +119 -0
- package/dist/testing/test-jazz.d.ts.map +1 -0
- package/dist/testing/test-jazz.js +162 -0
- package/dist/testing/test-jazz.js.map +1 -0
- package/dist/testing/test-jwt-issuer.d.ts +19 -0
- package/dist/testing/test-jwt-issuer.d.ts.map +1 -0
- package/dist/testing/test-jwt-issuer.js +40 -0
- package/dist/testing/test-jwt-issuer.js.map +1 -0
- package/dist/text-field/index.d.ts +40 -0
- package/dist/text-field/index.d.ts.map +1 -0
- package/dist/text-field/index.js +129 -0
- package/dist/text-field/index.js.map +1 -0
- package/dist/thin/index.d.ts +81 -0
- package/dist/thin/index.d.ts.map +1 -0
- package/dist/thin/index.js +221 -0
- package/dist/thin/index.js.map +1 -0
- package/dist/thin/self-signed-token.d.ts +13 -0
- package/dist/thin/self-signed-token.d.ts.map +1 -0
- package/dist/thin/self-signed-token.js +100 -0
- package/dist/thin/self-signed-token.js.map +1 -0
- package/dist/thin/thin-runtime-source.d.ts +19 -0
- package/dist/thin/thin-runtime-source.d.ts.map +1 -0
- package/dist/thin/thin-runtime-source.js +66 -0
- package/dist/thin/thin-runtime-source.js.map +1 -0
- package/dist/thin/thin-runtime.d.ts +294 -0
- package/dist/thin/thin-runtime.d.ts.map +1 -0
- package/dist/thin/thin-runtime.js +1492 -0
- package/dist/thin/thin-runtime.js.map +1 -0
- package/dist/thin/wire.d.ts +160 -0
- package/dist/thin/wire.d.ts.map +1 -0
- package/dist/thin/wire.js +304 -0
- package/dist/thin/wire.js.map +1 -0
- package/dist/typed-app.d.ts +644 -0
- package/dist/typed-app.d.ts.map +1 -0
- package/dist/typed-app.js +549 -0
- package/dist/typed-app.js.map +1 -0
- package/dist/upgrade/aliases.d.ts +25 -0
- package/dist/upgrade/aliases.d.ts.map +1 -0
- package/dist/upgrade/aliases.js +80 -0
- package/dist/upgrade/aliases.js.map +1 -0
- package/dist/upgrade/app-json.d.ts +32 -0
- package/dist/upgrade/app-json.d.ts.map +1 -0
- package/dist/upgrade/app-json.js +145 -0
- package/dist/upgrade/app-json.js.map +1 -0
- package/dist/upgrade/constants.d.ts +25 -0
- package/dist/upgrade/constants.d.ts.map +1 -0
- package/dist/upgrade/constants.js +136 -0
- package/dist/upgrade/constants.js.map +1 -0
- package/dist/upgrade/edits.d.ts +10 -0
- package/dist/upgrade/edits.d.ts.map +1 -0
- package/dist/upgrade/edits.js +21 -0
- package/dist/upgrade/edits.js.map +1 -0
- package/dist/upgrade/errors.d.ts +12 -0
- package/dist/upgrade/errors.d.ts.map +1 -0
- package/dist/upgrade/errors.js +18 -0
- package/dist/upgrade/errors.js.map +1 -0
- package/dist/upgrade/extras.d.ts +42 -0
- package/dist/upgrade/extras.d.ts.map +1 -0
- package/dist/upgrade/extras.js +487 -0
- package/dist/upgrade/extras.js.map +1 -0
- package/dist/upgrade/fresh.d.ts +36 -0
- package/dist/upgrade/fresh.d.ts.map +1 -0
- package/dist/upgrade/fresh.js +154 -0
- package/dist/upgrade/fresh.js.map +1 -0
- package/dist/upgrade/index.d.ts +79 -0
- package/dist/upgrade/index.d.ts.map +1 -0
- package/dist/upgrade/index.js +806 -0
- package/dist/upgrade/index.js.map +1 -0
- package/dist/upgrade/json-only.d.ts +24 -0
- package/dist/upgrade/json-only.d.ts.map +1 -0
- package/dist/upgrade/json-only.js +124 -0
- package/dist/upgrade/json-only.js.map +1 -0
- package/dist/upgrade/names.d.ts +29 -0
- package/dist/upgrade/names.d.ts.map +1 -0
- package/dist/upgrade/names.js +105 -0
- package/dist/upgrade/names.js.map +1 -0
- package/dist/upgrade/payload-enums.d.ts +18 -0
- package/dist/upgrade/payload-enums.d.ts.map +1 -0
- package/dist/upgrade/payload-enums.js +52 -0
- package/dist/upgrade/payload-enums.js.map +1 -0
- package/dist/upgrade/permissions-check.d.ts +10 -0
- package/dist/upgrade/permissions-check.d.ts.map +1 -0
- package/dist/upgrade/permissions-check.js +85 -0
- package/dist/upgrade/permissions-check.js.map +1 -0
- package/dist/upgrade/program.d.ts +18 -0
- package/dist/upgrade/program.d.ts.map +1 -0
- package/dist/upgrade/program.js +56 -0
- package/dist/upgrade/program.js.map +1 -0
- package/dist/upgrade/project.d.ts +56 -0
- package/dist/upgrade/project.d.ts.map +1 -0
- package/dist/upgrade/project.js +254 -0
- package/dist/upgrade/project.js.map +1 -0
- package/dist/upgrade/rewrite.d.ts +34 -0
- package/dist/upgrade/rewrite.d.ts.map +1 -0
- package/dist/upgrade/rewrite.js +500 -0
- package/dist/upgrade/rewrite.js.map +1 -0
- package/dist/upgrade/schema-ts.d.ts +59 -0
- package/dist/upgrade/schema-ts.d.ts.map +1 -0
- package/dist/upgrade/schema-ts.js +582 -0
- package/dist/upgrade/schema-ts.js.map +1 -0
- package/dist/upgrade/snapshot.d.ts +11 -0
- package/dist/upgrade/snapshot.d.ts.map +1 -0
- package/dist/upgrade/snapshot.js +90 -0
- package/dist/upgrade/snapshot.js.map +1 -0
- package/dist/upgrade/upgrade-test-helpers.d.ts +12 -0
- package/dist/upgrade/upgrade-test-helpers.d.ts.map +1 -0
- package/dist/upgrade/upgrade-test-helpers.js +72 -0
- package/dist/upgrade/upgrade-test-helpers.js.map +1 -0
- package/dist/vue/create-jazz-client.d.ts +3 -0
- package/dist/vue/create-jazz-client.d.ts.map +1 -0
- package/dist/vue/create-jazz-client.js +2 -0
- package/dist/vue/create-jazz-client.js.map +1 -0
- package/dist/vue/index.d.ts +14 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/index.js +11 -0
- package/dist/vue/index.js.map +1 -0
- package/dist/vue/provider.d.ts +83 -0
- package/dist/vue/provider.d.ts.map +1 -0
- package/dist/vue/provider.js +231 -0
- package/dist/vue/provider.js.map +1 -0
- package/dist/vue/session-key.d.ts +15 -0
- package/dist/vue/session-key.d.ts.map +1 -0
- package/dist/vue/session-key.js +7 -0
- package/dist/vue/session-key.js.map +1 -0
- package/dist/vue/session.d.ts +40 -0
- package/dist/vue/session.d.ts.map +1 -0
- package/dist/vue/session.js +112 -0
- package/dist/vue/session.js.map +1 -0
- package/dist/vue/use-all.d.ts +61 -0
- package/dist/vue/use-all.d.ts.map +1 -0
- package/dist/vue/use-all.js +104 -0
- package/dist/vue/use-all.js.map +1 -0
- package/dist/vue/use-one.d.ts +24 -0
- package/dist/vue/use-one.d.ts.map +1 -0
- package/dist/vue/use-one.js +17 -0
- package/dist/vue/use-one.js.map +1 -0
- package/dist/vue/use-sync-status.d.ts +9 -0
- package/dist/vue/use-sync-status.d.ts.map +1 -0
- package/dist/vue/use-sync-status.js +16 -0
- package/dist/vue/use-sync-status.js.map +1 -0
- package/dist/web/create-jazz-client.d.ts +12 -0
- package/dist/web/create-jazz-client.d.ts.map +1 -0
- package/dist/web/create-jazz-client.js +35 -0
- package/dist/web/create-jazz-client.js.map +1 -0
- package/dist/web/lazy-local-first.d.ts +8 -0
- package/dist/web/lazy-local-first.d.ts.map +1 -0
- package/dist/web/lazy-local-first.js +13 -0
- package/dist/web/lazy-local-first.js.map +1 -0
- package/dist/web/registered-jazz-client.d.ts +15 -0
- package/dist/web/registered-jazz-client.d.ts.map +1 -0
- package/dist/web/registered-jazz-client.js +35 -0
- package/dist/web/registered-jazz-client.js.map +1 -0
- package/dist/where-operators.d.ts +13 -0
- package/dist/where-operators.d.ts.map +1 -0
- package/dist/where-operators.js +66 -0
- package/dist/where-operators.js.map +1 -0
- package/dist/window-client-storage.d.ts +7 -0
- package/dist/window-client-storage.d.ts.map +1 -0
- package/dist/window-client-storage.js +27 -0
- package/dist/window-client-storage.js.map +1 -0
- package/dist/worker/jazz-broker-worker-core.d.ts +34 -0
- package/dist/worker/jazz-broker-worker-core.d.ts.map +1 -0
- package/dist/worker/jazz-broker-worker-core.js +2241 -0
- package/dist/worker/jazz-broker-worker-core.js.map +1 -0
- package/dist/worker/jazz-broker-worker.d.ts +3 -0
- package/dist/worker/jazz-broker-worker.d.ts.map +1 -0
- package/dist/worker/jazz-broker-worker.js +5 -0
- package/dist/worker/jazz_wasm_bg.wasm +0 -0
- package/dist/worker/mutation-error-delivery.d.ts +8 -0
- package/dist/worker/mutation-error-delivery.d.ts.map +1 -0
- package/dist/worker/mutation-error-delivery.js +10 -0
- package/dist/worker/mutation-error-delivery.js.map +1 -0
- package/dist/worker/runtime-admission.d.ts +34 -0
- package/dist/worker/runtime-admission.d.ts.map +1 -0
- package/dist/worker/runtime-admission.js +60 -0
- package/dist/worker/runtime-admission.js.map +1 -0
- package/dist/worker/vite-dev-broker.d.ts +2 -0
- package/dist/worker/vite-dev-broker.d.ts.map +1 -0
- package/dist/worker/vite-dev-broker.js +8 -0
- package/dist/worker/vite-dev-broker.js.map +1 -0
- package/package.json +301 -35
- package/bin/native/.gitkeep +0 -0
- package/bin/native/jazz-tools-darwin-arm64 +0 -0
- package/bin/native/jazz-tools-darwin-x64 +0 -0
- package/bin/native/jazz-tools-linux-arm64 +0 -0
- package/bin/native/jazz-tools-linux-x64 +0 -0
- package/bin/native/jazz-tools-windows-x64.exe +0 -0
- package/dist/cli.test.d.ts +0 -2
- package/dist/cli.test.d.ts.map +0 -1
- package/dist/cli.test.js +0 -154
- package/dist/cli.test.js.map +0 -1
- package/dist/codegen/codegen.test.d.ts +0 -2
- package/dist/codegen/codegen.test.d.ts.map +0 -1
- package/dist/codegen/codegen.test.js +0 -925
- package/dist/codegen/codegen.test.js.map +0 -1
- package/dist/codegen/index.d.ts +0 -18
- package/dist/codegen/index.d.ts.map +0 -1
- package/dist/codegen/index.js +0 -22
- package/dist/codegen/index.js.map +0 -1
- package/dist/codegen/query-builder-generator.d.ts +0 -26
- package/dist/codegen/query-builder-generator.d.ts.map +0 -1
- package/dist/codegen/query-builder-generator.js +0 -334
- package/dist/codegen/query-builder-generator.js.map +0 -1
- package/dist/codegen/schema-reader.d.ts +0 -12
- package/dist/codegen/schema-reader.d.ts.map +0 -1
- package/dist/codegen/schema-reader.js +0 -195
- package/dist/codegen/schema-reader.js.map +0 -1
- package/dist/codegen/type-generator.d.ts +0 -29
- package/dist/codegen/type-generator.d.ts.map +0 -1
- package/dist/codegen/type-generator.js +0 -296
- package/dist/codegen/type-generator.js.map +0 -1
- package/dist/dsl.test.d.ts +0 -2
- package/dist/dsl.test.d.ts.map +0 -1
- package/dist/dsl.test.js +0 -51
- package/dist/dsl.test.js.map +0 -1
- package/dist/permissions/index.test.d.ts +0 -2
- package/dist/permissions/index.test.d.ts.map +0 -1
- package/dist/permissions/index.test.js +0 -830
- package/dist/permissions/index.test.js.map +0 -1
- package/dist/permissions/type-inference.test.d.ts +0 -2
- package/dist/permissions/type-inference.test.d.ts.map +0 -1
- package/dist/permissions/type-inference.test.js +0 -151
- package/dist/permissions/type-inference.test.js.map +0 -1
- package/dist/react/create-jazz-client.integration.test.d.ts +0 -2
- package/dist/react/create-jazz-client.integration.test.d.ts.map +0 -1
- package/dist/react/create-jazz-client.integration.test.js +0 -84
- package/dist/react/create-jazz-client.integration.test.js.map +0 -1
- package/dist/react/create-jazz-client.test.d.ts +0 -2
- package/dist/react/create-jazz-client.test.d.ts.map +0 -1
- package/dist/react/create-jazz-client.test.js +0 -133
- package/dist/react/create-jazz-client.test.js.map +0 -1
- package/dist/react/synthetic-user-switcher.d.ts +0 -9
- package/dist/react/synthetic-user-switcher.d.ts.map +0 -1
- package/dist/react/synthetic-user-switcher.js +0 -65
- package/dist/react/synthetic-user-switcher.js.map +0 -1
- package/dist/react/synthetic-users.d.ts +0 -2
- package/dist/react/synthetic-users.d.ts.map +0 -1
- package/dist/react/synthetic-users.js +0 -2
- package/dist/react/synthetic-users.js.map +0 -1
- package/dist/react/synthetic-users.test.d.ts +0 -2
- package/dist/react/synthetic-users.test.d.ts.map +0 -1
- package/dist/react/synthetic-users.test.js +0 -43
- package/dist/react/synthetic-users.test.js.map +0 -1
- package/dist/react/use-link-external-identity.d.ts +0 -25
- package/dist/react/use-link-external-identity.d.ts.map +0 -1
- package/dist/react/use-link-external-identity.js +0 -45
- package/dist/react/use-link-external-identity.js.map +0 -1
- package/dist/react-native/create-jazz-client.test.d.ts +0 -2
- package/dist/react-native/create-jazz-client.test.d.ts.map +0 -1
- package/dist/react-native/create-jazz-client.test.js +0 -162
- package/dist/react-native/create-jazz-client.test.js.map +0 -1
- package/dist/react-native/create-jazz-rn-runtime.d.ts +0 -13
- package/dist/react-native/create-jazz-rn-runtime.d.ts.map +0 -1
- package/dist/react-native/create-jazz-rn-runtime.js +0 -7
- package/dist/react-native/create-jazz-rn-runtime.js.map +0 -1
- package/dist/react-native/db.d.ts +0 -16
- package/dist/react-native/db.d.ts.map +0 -1
- package/dist/react-native/db.js +0 -50
- package/dist/react-native/db.js.map +0 -1
- package/dist/react-native/db.test.d.ts +0 -2
- package/dist/react-native/db.test.d.ts.map +0 -1
- package/dist/react-native/db.test.js +0 -150
- package/dist/react-native/db.test.js.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.d.ts +0 -56
- package/dist/react-native/jazz-rn-runtime-adapter.d.ts.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.js +0 -192
- package/dist/react-native/jazz-rn-runtime-adapter.js.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts +0 -2
- package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.test.js +0 -165
- package/dist/react-native/jazz-rn-runtime-adapter.test.js.map +0 -1
- package/dist/runtime/client-session.test.d.ts +0 -2
- package/dist/runtime/client-session.test.d.ts.map +0 -1
- package/dist/runtime/client-session.test.js +0 -84
- package/dist/runtime/client-session.test.js.map +0 -1
- package/dist/runtime/client.for-request.test.d.ts +0 -2
- package/dist/runtime/client.for-request.test.d.ts.map +0 -1
- package/dist/runtime/client.for-request.test.js +0 -171
- package/dist/runtime/client.for-request.test.js.map +0 -1
- package/dist/runtime/cloud-server.integration.test.d.ts +0 -2
- package/dist/runtime/cloud-server.integration.test.d.ts.map +0 -1
- package/dist/runtime/cloud-server.integration.test.js +0 -985
- package/dist/runtime/cloud-server.integration.test.js.map +0 -1
- package/dist/runtime/leader-lock.d.ts +0 -15
- package/dist/runtime/leader-lock.d.ts.map +0 -1
- package/dist/runtime/leader-lock.js +0 -49
- package/dist/runtime/leader-lock.js.map +0 -1
- package/dist/runtime/local-auth.d.ts +0 -32
- package/dist/runtime/local-auth.d.ts.map +0 -1
- package/dist/runtime/local-auth.js +0 -93
- package/dist/runtime/local-auth.js.map +0 -1
- package/dist/runtime/local-auth.test.d.ts +0 -2
- package/dist/runtime/local-auth.test.d.ts.map +0 -1
- package/dist/runtime/local-auth.test.js +0 -50
- package/dist/runtime/local-auth.test.js.map +0 -1
- package/dist/runtime/query-adapter.test.d.ts +0 -5
- package/dist/runtime/query-adapter.test.d.ts.map +0 -1
- package/dist/runtime/query-adapter.test.js +0 -1276
- package/dist/runtime/query-adapter.test.js.map +0 -1
- package/dist/runtime/row-transformer.test.d.ts +0 -5
- package/dist/runtime/row-transformer.test.d.ts.map +0 -1
- package/dist/runtime/row-transformer.test.js +0 -389
- package/dist/runtime/row-transformer.test.js.map +0 -1
- package/dist/runtime/subscription-manager.test.d.ts +0 -5
- package/dist/runtime/subscription-manager.test.d.ts.map +0 -1
- package/dist/runtime/subscription-manager.test.js +0 -120
- package/dist/runtime/subscription-manager.test.js.map +0 -1
- package/dist/runtime/sync-transport.d.ts +0 -163
- package/dist/runtime/sync-transport.d.ts.map +0 -1
- package/dist/runtime/sync-transport.js +0 -477
- package/dist/runtime/sync-transport.js.map +0 -1
- package/dist/runtime/sync-transport.test.d.ts +0 -2
- package/dist/runtime/sync-transport.test.d.ts.map +0 -1
- package/dist/runtime/sync-transport.test.js +0 -310
- package/dist/runtime/sync-transport.test.js.map +0 -1
- package/dist/runtime/tab-leader-election.d.ts +0 -97
- package/dist/runtime/tab-leader-election.d.ts.map +0 -1
- package/dist/runtime/tab-leader-election.js +0 -339
- package/dist/runtime/tab-leader-election.js.map +0 -1
- package/dist/runtime/tab-leader-election.test.d.ts +0 -2
- package/dist/runtime/tab-leader-election.test.d.ts.map +0 -1
- package/dist/runtime/tab-leader-election.test.js +0 -278
- package/dist/runtime/tab-leader-election.test.js.map +0 -1
- package/dist/runtime/testing/wasm-runtime-test-utils.d.ts +0 -13
- package/dist/runtime/testing/wasm-runtime-test-utils.d.ts.map +0 -1
- package/dist/runtime/testing/wasm-runtime-test-utils.js +0 -75
- package/dist/runtime/testing/wasm-runtime-test-utils.js.map +0 -1
- package/dist/runtime/utils.d.ts +0 -2
- package/dist/runtime/utils.d.ts.map +0 -1
- package/dist/runtime/utils.js +0 -16
- package/dist/runtime/utils.js.map +0 -1
- package/dist/runtime/value-converter.test.d.ts +0 -5
- package/dist/runtime/value-converter.test.d.ts.map +0 -1
- package/dist/runtime/value-converter.test.js +0 -226
- package/dist/runtime/value-converter.test.js.map +0 -1
- package/dist/runtime/worker-bridge.d.ts +0 -86
- package/dist/runtime/worker-bridge.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.js +0 -250
- package/dist/runtime/worker-bridge.js.map +0 -1
- package/dist/runtime/worker-bridge.race-harness.test.d.ts +0 -2
- package/dist/runtime/worker-bridge.race-harness.test.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.race-harness.test.js +0 -265
- package/dist/runtime/worker-bridge.race-harness.test.js.map +0 -1
- package/dist/runtime/worker-bridge.test.d.ts +0 -2
- package/dist/runtime/worker-bridge.test.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.test.js +0 -233
- package/dist/runtime/worker-bridge.test.js.map +0 -1
- package/dist/sql-gen.d.ts +0 -4
- package/dist/sql-gen.d.ts.map +0 -1
- package/dist/sql-gen.js +0 -163
- package/dist/sql-gen.js.map +0 -1
- package/dist/sql-gen.test.d.ts +0 -2
- package/dist/sql-gen.test.d.ts.map +0 -1
- package/dist/sql-gen.test.js +0 -412
- package/dist/sql-gen.test.js.map +0 -1
- package/dist/subscriptions-orchestrator.integration.test.d.ts +0 -2
- package/dist/subscriptions-orchestrator.integration.test.d.ts.map +0 -1
- package/dist/subscriptions-orchestrator.integration.test.js +0 -194
- package/dist/subscriptions-orchestrator.integration.test.js.map +0 -1
- package/dist/subscriptions-orchestrator.test.d.ts +0 -2
- package/dist/subscriptions-orchestrator.test.d.ts.map +0 -1
- package/dist/subscriptions-orchestrator.test.js +0 -367
- package/dist/subscriptions-orchestrator.test.js.map +0 -1
- package/dist/svelte/SyntheticUserSwitcher.svelte +0 -121
- package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts +0 -11
- package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts.map +0 -1
- package/dist/svelte/context.test.d.ts +0 -2
- package/dist/svelte/context.test.d.ts.map +0 -1
- package/dist/svelte/context.test.js +0 -51
- package/dist/svelte/create-jazz-client.test.d.ts +0 -2
- package/dist/svelte/create-jazz-client.test.d.ts.map +0 -1
- package/dist/svelte/create-jazz-client.test.js +0 -50
- package/dist/svelte/use-all.svelte.d.ts +0 -32
- package/dist/svelte/use-all.svelte.d.ts.map +0 -1
- package/dist/svelte/use-all.svelte.js +0 -61
- package/dist/svelte/use-all.test.d.ts +0 -2
- package/dist/svelte/use-all.test.d.ts.map +0 -1
- package/dist/svelte/use-all.test.js +0 -154
- package/dist/svelte/use-link-external-identity.d.ts +0 -25
- package/dist/svelte/use-link-external-identity.d.ts.map +0 -1
- package/dist/svelte/use-link-external-identity.js +0 -33
- package/dist/svelte/use-link-external-identity.test.d.ts +0 -2
- package/dist/svelte/use-link-external-identity.test.d.ts.map +0 -1
- package/dist/svelte/use-link-external-identity.test.js +0 -97
- package/dist/synthetic-user-switcher.d.ts +0 -16
- package/dist/synthetic-user-switcher.d.ts.map +0 -1
- package/dist/synthetic-user-switcher.js +0 -134
- package/dist/synthetic-user-switcher.js.map +0 -1
- package/dist/synthetic-users.d.ts +0 -32
- package/dist/synthetic-users.d.ts.map +0 -1
- package/dist/synthetic-users.js +0 -124
- package/dist/synthetic-users.js.map +0 -1
- package/dist/testing/fixtures/basic/app.d.ts +0 -55
- package/dist/testing/fixtures/basic/app.d.ts.map +0 -1
- package/dist/testing/fixtures/basic/app.js +0 -176
- package/dist/testing/fixtures/basic/app.js.map +0 -1
- package/dist/testing/fixtures/basic/current.d.ts +0 -2
- package/dist/testing/fixtures/basic/current.d.ts.map +0 -1
- package/dist/testing/fixtures/basic/current.js +0 -6
- package/dist/testing/fixtures/basic/current.js.map +0 -1
- package/dist/testing/index.test.d.ts +0 -2
- package/dist/testing/index.test.d.ts.map +0 -1
- package/dist/testing/index.test.js +0 -234
- package/dist/testing/index.test.js.map +0 -1
- package/dist/testing/local-jazz-server.d.ts +0 -34
- package/dist/testing/local-jazz-server.d.ts.map +0 -1
- package/dist/testing/local-jazz-server.js +0 -313
- package/dist/testing/local-jazz-server.js.map +0 -1
- package/dist/worker/jazz-worker.d.ts +0 -9
- package/dist/worker/jazz-worker.d.ts.map +0 -1
- package/dist/worker/jazz-worker.js +0 -516
- package/dist/worker/jazz-worker.js.map +0 -1
- package/dist/worker/jazz-worker.ts +0 -581
- package/dist/worker/worker-protocol.d.ts +0 -136
- package/dist/worker/worker-protocol.d.ts.map +0 -1
- package/dist/worker/worker-protocol.js +0 -7
- package/dist/worker/worker-protocol.js.map +0 -1
|
@@ -0,0 +1,806 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `jazz-tools upgrade`: convert an alpha.65 app (schema.ts with `defineApp`,
|
|
3
|
+
* the callback permissions.ts, migrations/ with its index.ts) to alpha.66,
|
|
4
|
+
* where TS is the source again: `schema.ts` exports `schema`
|
|
5
|
+
* (`s.defineSchema`) and `permissions` (`definePermissions`), and `generate`
|
|
6
|
+
* writes jazz.app.json, jazz.permissions.json and jazz.generated.ts from it.
|
|
7
|
+
*
|
|
8
|
+
* 1. The app's own jazz-tools (alpha.65) must find its JSON files fresh.
|
|
9
|
+
* 2. schema.ts: `defineApp(schema, { migrations })` → `export const schema =
|
|
10
|
+
* s.defineSchema({…})`, keeping the author's comments; the app and row
|
|
11
|
+
* types come from jazz.generated.ts, other exports move to app-extras.ts.
|
|
12
|
+
* 3. The permissions are printed from the fresh jazz.permissions.json into
|
|
13
|
+
* schema.ts (or permissions.ts, when the old one was large); a spread
|
|
14
|
+
* tables module (Better Auth's) exports `tables` and `permissions`.
|
|
15
|
+
* 4. Imports of `./schema` go to `./jazz.generated`, `app.slice(…)` becomes
|
|
16
|
+
* `app`, and scripts calling `validate` call `generate`.
|
|
17
|
+
* 5. migrations/index.ts is deleted; the stubs and snapshots stay.
|
|
18
|
+
* 6. `generate` runs.
|
|
19
|
+
* 7. The schema hashes and the bundle id must be what they were: otherwise
|
|
20
|
+
* every file is put back and upgrade refuses.
|
|
21
|
+
*
|
|
22
|
+
* Every refusal before step 6 comes before the first write.
|
|
23
|
+
*/
|
|
24
|
+
import { existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, rmSync, rmdirSync, writeFileSync, } from "node:fs";
|
|
25
|
+
import { createRequire } from "node:module";
|
|
26
|
+
import { dirname, extname, join, relative, resolve } from "node:path";
|
|
27
|
+
import { printPermissions } from "../printer/index.js";
|
|
28
|
+
import { formatTs, layout, loadPrettier } from "../printer/format.js";
|
|
29
|
+
import { expandDefs } from "../printer/defs.js";
|
|
30
|
+
import { isObject, parseAppJson, tsOnlyMarkers } from "./app-json.js";
|
|
31
|
+
import { UpgradeRefusal, notSupportedYet } from "./errors.js";
|
|
32
|
+
import { convertExtras } from "./extras.js";
|
|
33
|
+
import { checkLegacyFiles, checkLegacyFilesWithDefs, dslAlpha, findLegacyJazzTools, } from "./fresh.js";
|
|
34
|
+
import { readGeneratedNames } from "./names.js";
|
|
35
|
+
import { createProgram, typeErrors } from "./program.js";
|
|
36
|
+
import { EXTRAS_FILE, GENERATED_FILE, locateProject, packageVersion, runningPackageRoot, } from "./project.js";
|
|
37
|
+
import { JsonOnlyApp } from "./project.js";
|
|
38
|
+
import { upgradeJsonOnly } from "./json-only.js";
|
|
39
|
+
import { appOutputs, snapshot } from "./snapshot.js";
|
|
40
|
+
import { environmentReads, refuseDroppedConditions } from "./permissions-check.js";
|
|
41
|
+
import { refusePayloadEnums } from "./payload-enums.js";
|
|
42
|
+
import { resolveImport, rewriteProject } from "./rewrite.js";
|
|
43
|
+
import { codemodSchema, codemodSpreadModule } from "./schema-ts.js";
|
|
44
|
+
import { collectConstants, constantImports } from "./constants.js";
|
|
45
|
+
import { PackageAliases } from "./aliases.js";
|
|
46
|
+
import { specifierLike } from "./edits.js";
|
|
47
|
+
export { UpgradeRefusal } from "./errors.js";
|
|
48
|
+
/** A permissions.ts longer than this keeps its own file. */
|
|
49
|
+
const SEPARATE_PERMISSIONS_LINES = 150;
|
|
50
|
+
export async function upgradeProject(options = {}) {
|
|
51
|
+
const root = resolve(options.dir ?? process.cwd());
|
|
52
|
+
let project;
|
|
53
|
+
try {
|
|
54
|
+
project = locateProject(root, options.schemaDir);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
if (!(error instanceof JsonOnlyApp))
|
|
58
|
+
throw error;
|
|
59
|
+
// An app whose JSON is its source: its TS is printed from it.
|
|
60
|
+
const report = await upgradeJsonOnly(error.dir, root, {
|
|
61
|
+
dryRun: options.dryRun,
|
|
62
|
+
generate: options.generate ?? runGenerate,
|
|
63
|
+
identity: artifactIdentity,
|
|
64
|
+
differences: identityDifferences,
|
|
65
|
+
});
|
|
66
|
+
return {
|
|
67
|
+
dir: root,
|
|
68
|
+
written: report.written,
|
|
69
|
+
deleted: [],
|
|
70
|
+
rewrites: [],
|
|
71
|
+
manual: [],
|
|
72
|
+
notes: report.notes,
|
|
73
|
+
typeErrors: [],
|
|
74
|
+
preexistingTypeErrors: [],
|
|
75
|
+
typechecked: false,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
const { ts } = project;
|
|
79
|
+
const rel = (path) => relative(project.root, path) || path;
|
|
80
|
+
const notes = [];
|
|
81
|
+
if (!existsSync(project.schemaFile)) {
|
|
82
|
+
throw new UpgradeRefusal(`${rel(project.schemaFile)} is missing: upgrade converts an alpha.65 schema.ts`);
|
|
83
|
+
}
|
|
84
|
+
if (/\.defineSchema\(/.test(readFileSync(project.schemaFile, "utf8"))) {
|
|
85
|
+
throw new UpgradeRefusal(`${rel(project.schemaFile)} already calls \`defineSchema\`: this app is on alpha.66's layout, run \`npx jazz-tools generate\``);
|
|
86
|
+
}
|
|
87
|
+
// 1. The JSON files must be fresh: the permissions are printed from them.
|
|
88
|
+
if (!options.skipFreshCheck) {
|
|
89
|
+
const legacy = findLegacyJazzTools(project);
|
|
90
|
+
const committed = (existsSync(project.permissionsJsonFile) && existsSync(project.appFile)
|
|
91
|
+
? JSON.parse(readFileSync(project.permissionsJsonFile, "utf8"))
|
|
92
|
+
: {});
|
|
93
|
+
// Hand-written `defs` aren't what the old validate writes: compare by what deploys instead.
|
|
94
|
+
notes.push(...(committed.defs
|
|
95
|
+
? await checkLegacyFilesWithDefs(project, legacy, JSON.stringify(expandDefs(committed)), artifactIdentity)
|
|
96
|
+
: checkLegacyFiles(project, legacy)));
|
|
97
|
+
}
|
|
98
|
+
const scan = scanImports(project);
|
|
99
|
+
const envReads = environmentReads(project, schemaSources(project, scan));
|
|
100
|
+
refuseDroppedConditions(project);
|
|
101
|
+
// A policy that reads the environment and compiled to a bare `true` may be
|
|
102
|
+
// a condition whose value was unset when `validate` ran: printing it would
|
|
103
|
+
// allow more than its author wrote, for good.
|
|
104
|
+
if (envReads.length > 0)
|
|
105
|
+
refuseBareTrue(project, envReads);
|
|
106
|
+
const appText = readFileSync(project.appFile, "utf8");
|
|
107
|
+
const permissionsText = readFileSync(project.permissionsJsonFile, "utf8");
|
|
108
|
+
const appJson = parseAppJson(appText);
|
|
109
|
+
refusePayloadEnums(appJson);
|
|
110
|
+
if (Object.keys(tsOnlyMarkers(appJson)).length > 0 || /"computed"\s*:/.test(appText)) {
|
|
111
|
+
throw notSupportedYet("computed columns and transforms", rel(project.appFile));
|
|
112
|
+
}
|
|
113
|
+
const app = JSON.parse(appText);
|
|
114
|
+
const written = JSON.parse(permissionsText);
|
|
115
|
+
// `defs` (alpha.63–65, refused from alpha.66): expanded where they are called,
|
|
116
|
+
// as the old loader read them. The printer's helpers usually bring them back.
|
|
117
|
+
const permissions = written.defs ? expandDefs(written) : written;
|
|
118
|
+
if (written.defs) {
|
|
119
|
+
notes.push(`jazz.permissions.json's \`defs\` (${Object.keys(written.defs).join(", ")}) were expanded where they are called; repeated checks became helpers again.`);
|
|
120
|
+
}
|
|
121
|
+
const before = await artifactIdentity(appText, written.defs ? JSON.stringify(permissions) : permissionsText);
|
|
122
|
+
// 2. schema.ts.
|
|
123
|
+
const generatedText = await napiGenerate(appText);
|
|
124
|
+
const names = readGeneratedNames(generatedText);
|
|
125
|
+
const schemaProgram = createProgram(ts, [project.schemaFile], project.compilerOptions, undefined);
|
|
126
|
+
let extras;
|
|
127
|
+
try {
|
|
128
|
+
extras = convertExtras({
|
|
129
|
+
ts,
|
|
130
|
+
program: schemaProgram.program,
|
|
131
|
+
schemaFile: project.schemaFile,
|
|
132
|
+
tables: names.tables,
|
|
133
|
+
generatedExports: names.exports,
|
|
134
|
+
movedToComputed: [],
|
|
135
|
+
jsExtensions: scan.jsExtensions,
|
|
136
|
+
importedNames: scan.schemaNames,
|
|
137
|
+
notes,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
finally {
|
|
141
|
+
schemaProgram.dispose();
|
|
142
|
+
}
|
|
143
|
+
const schemaText = readFileSync(project.schemaFile, "utf8");
|
|
144
|
+
const extrasFile = join(project.schemaDir, EXTRAS_FILE);
|
|
145
|
+
const codemod = codemodSchema({
|
|
146
|
+
ts,
|
|
147
|
+
file: project.schemaFile,
|
|
148
|
+
text: schemaText,
|
|
149
|
+
exports: extras.exports,
|
|
150
|
+
extrasSpecifier: scan.jsExtensions ? "./app-extras.js" : "./app-extras",
|
|
151
|
+
resolve: (specifier) => resolveImport(project, specifier, project.schemaFile),
|
|
152
|
+
root: project.root,
|
|
153
|
+
});
|
|
154
|
+
// 3. The permissions, printed from jazz.permissions.json.
|
|
155
|
+
const prettier = await loadPrettier(project.root);
|
|
156
|
+
const format = async (text, file) => prettier ? formatTs(text, { file, prettier }) : layout(text);
|
|
157
|
+
const writes = [];
|
|
158
|
+
const spreadPermissions = [];
|
|
159
|
+
const spreadImports = [];
|
|
160
|
+
const skipTables = new Set();
|
|
161
|
+
for (const spread of codemod.spreads) {
|
|
162
|
+
const text = readFileSync(spread.file, "utf8");
|
|
163
|
+
const tables = spreadTables(ts, spread.file, text, spread.exported);
|
|
164
|
+
// Tables whose rules are all `true`/`false` keep living in the module.
|
|
165
|
+
const plain = tables.every((t) => plainRules(permissions.tables[t]));
|
|
166
|
+
const permissionsText = plain
|
|
167
|
+
? `export const permissions = ${plainPermissions(tables, permissions)};`
|
|
168
|
+
: undefined;
|
|
169
|
+
const edited = codemodSpreadModule({
|
|
170
|
+
ts,
|
|
171
|
+
file: spread.file,
|
|
172
|
+
text,
|
|
173
|
+
exported: spread.exported,
|
|
174
|
+
permissionsText,
|
|
175
|
+
});
|
|
176
|
+
for (const name of edited.dropped) {
|
|
177
|
+
notes.push(`Dropped \`${name}\` from ${rel(spread.file)}: it used the module's own app, which alpha.66 doesn't have.`);
|
|
178
|
+
}
|
|
179
|
+
if (plain) {
|
|
180
|
+
const local = `${spread.local.replace(/(Schema|Tables)$/, "")}Permissions`;
|
|
181
|
+
spreadPermissions.push(local);
|
|
182
|
+
spreadImports.push(`import { permissions as ${local} } from ${JSON.stringify(spread.specifier)};`);
|
|
183
|
+
for (const t of tables)
|
|
184
|
+
skipTables.add(t);
|
|
185
|
+
}
|
|
186
|
+
writes.push([spread.file, await formatSpread(edited.text, spread.file, prettier)]);
|
|
187
|
+
codemod.changes.push(`${rel(spread.file)}: exports \`tables\` and \`permissions\``);
|
|
188
|
+
}
|
|
189
|
+
const oldPermissions = project.permissionsFile
|
|
190
|
+
? readFileSync(project.permissionsFile, "utf8")
|
|
191
|
+
: "";
|
|
192
|
+
const separate = project.permissionsFile !== undefined &&
|
|
193
|
+
oldPermissions.split("\n").length > SEPARATE_PERMISSIONS_LINES &&
|
|
194
|
+
!codemod.inlinePermissions;
|
|
195
|
+
// The old permissions' named values keep their names; what came from the environment gets a TODO.
|
|
196
|
+
const oldSource = codemod.inlinePermissions || !project.permissionsFile
|
|
197
|
+
? project.schemaFile
|
|
198
|
+
: project.permissionsFile;
|
|
199
|
+
const constants = collectConstants(ts, oldSource, (spec, from) => resolveImport(project, spec, from));
|
|
200
|
+
const printed = printPermissions(app, permissions, {
|
|
201
|
+
// A separate permissions.ts imports the namespace as `s`; schema.ts has its own name for it.
|
|
202
|
+
dsl: separate ? "s" : codemod.dsl,
|
|
203
|
+
spreads: spreadPermissions,
|
|
204
|
+
skipTables,
|
|
205
|
+
constants: constants.byValue,
|
|
206
|
+
notes: envReads.map((read) => `TODO: ${read.replace(/: reads /, " read ")}; the value it had when \`validate\` ran is printed below.`),
|
|
207
|
+
});
|
|
208
|
+
if (printed.unsupported.length > 0) {
|
|
209
|
+
throw new UpgradeRefusal(`the TS DSL can't express these permissions of ${rel(project.permissionsJsonFile)} yet:\n` +
|
|
210
|
+
printed.unsupported.map((u) => ` ${u.path}: ${u.text}\n ${u.reason}`).join("\n"));
|
|
211
|
+
}
|
|
212
|
+
const deleted = new Set(project.permissionsSources);
|
|
213
|
+
if (separate)
|
|
214
|
+
deleted.delete(project.permissionsFile);
|
|
215
|
+
const permissionsOut = separate ? project.permissionsFile : project.schemaFile;
|
|
216
|
+
const named = constantImports(constants, printed.constantsUsed, permissionsOut, scan.jsExtensions);
|
|
217
|
+
const permissionsBody = await format([...named.declarations, ...(named.declarations.length ? [""] : []), printed.code].join("\n"), project.schemaFile);
|
|
218
|
+
let newSchema;
|
|
219
|
+
if (separate) {
|
|
220
|
+
newSchema = withImports(ts, project.schemaFile, codemod.text, []);
|
|
221
|
+
const schemaSpecifier = scan.jsExtensions ? "./schema.js" : "./schema";
|
|
222
|
+
const head = [
|
|
223
|
+
`import { schema as s } from "jazz-tools";`,
|
|
224
|
+
`import { schema } from ${JSON.stringify(schemaSpecifier)};`,
|
|
225
|
+
...spreadImports,
|
|
226
|
+
...named.imports,
|
|
227
|
+
].join("\n");
|
|
228
|
+
writes.push([project.permissionsFile, `${head}\n\n${permissionsBody}`]);
|
|
229
|
+
notes.push(`${rel(project.permissionsFile)} was long: the printed permissions stay in their own file.`);
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
newSchema = `${withImports(ts, project.schemaFile, codemod.text, [...spreadImports, ...named.imports])}\n${permissionsBody}`;
|
|
233
|
+
}
|
|
234
|
+
writes.unshift([project.schemaFile, newSchema]);
|
|
235
|
+
notes.push("The permissions were printed from jazz.permissions.json: repeated checks became helpers named for what they check, and the old permissions.ts's named values kept their names. Its comments didn't survive: bring back what they said.");
|
|
236
|
+
// 5. migrations/index.ts goes; the stubs and snapshots stay.
|
|
237
|
+
if (project.migrationsDir) {
|
|
238
|
+
for (const name of ["index.ts", "index.js"]) {
|
|
239
|
+
const index = join(project.migrationsDir, name);
|
|
240
|
+
if (existsSync(index))
|
|
241
|
+
deleted.add(index);
|
|
242
|
+
}
|
|
243
|
+
// A migration from a version nothing holds (no snapshot, not in jazz.app.json's history)
|
|
244
|
+
// never shipped: alpha.65's validate left it out, and `generate` can't build it.
|
|
245
|
+
const snapshotsDir = join(project.migrationsDir, "snapshots");
|
|
246
|
+
const known = new Set([
|
|
247
|
+
...Object.keys(app.history ?? {}).map((v) => v.slice(0, 12)),
|
|
248
|
+
before.current.slice(0, 12),
|
|
249
|
+
...(existsSync(snapshotsDir)
|
|
250
|
+
? readdirSync(snapshotsDir).flatMap((f) => /([0-9a-f]{12})\.json$/i.exec(f)?.[1] ?? [])
|
|
251
|
+
: []),
|
|
252
|
+
]);
|
|
253
|
+
for (const name of readdirSync(project.migrationsDir)) {
|
|
254
|
+
const from = /-([0-9a-f]{12})-[0-9a-f]{12}\.[cm]?[jt]s$/i.exec(name)?.[1];
|
|
255
|
+
if (!from || known.has(from))
|
|
256
|
+
continue;
|
|
257
|
+
deleted.add(join(project.migrationsDir, name));
|
|
258
|
+
notes.push(`Deleted migrations/${name}: it migrates from ${from}, a version no snapshot and no jazz.app.json history holds, so it never shipped.`);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
// 4. Imports of schema.ts and permissions.ts.
|
|
262
|
+
const generatedFile = join(project.schemaDir, GENERATED_FILE);
|
|
263
|
+
if (extras.extrasFile) {
|
|
264
|
+
if (existsSync(extrasFile)) {
|
|
265
|
+
throw new UpgradeRefusal(`${rel(extrasFile)} exists already; upgrade writes it: move it away and run upgrade again`);
|
|
266
|
+
}
|
|
267
|
+
writes.push([extrasFile, extras.extrasFile]);
|
|
268
|
+
}
|
|
269
|
+
const aliases = new PackageAliases(project.root);
|
|
270
|
+
const untouched = new Set([
|
|
271
|
+
project.schemaFile,
|
|
272
|
+
...codemod.spreads.map((s) => s.file),
|
|
273
|
+
...deleted,
|
|
274
|
+
...(separate ? [project.permissionsFile] : []),
|
|
275
|
+
]);
|
|
276
|
+
const rewrites = rewriteProject({
|
|
277
|
+
aliases,
|
|
278
|
+
project,
|
|
279
|
+
exports: extras.exports,
|
|
280
|
+
tables: names.tables,
|
|
281
|
+
deleted: untouched,
|
|
282
|
+
generatedFile,
|
|
283
|
+
extrasFile,
|
|
284
|
+
computedFile: join(project.schemaDir, "jazz.computed.ts"),
|
|
285
|
+
});
|
|
286
|
+
const config = configEdits(project, rewrites.files.some((f) => f.importsJson), deleted);
|
|
287
|
+
const manifest = manifestEdit(project);
|
|
288
|
+
const aliasEdits = aliases.apply(manifest ? new Map([[manifest.file, manifest.text]]) : undefined);
|
|
289
|
+
for (const file of rewrites.files)
|
|
290
|
+
writes.push([file.file, file.text]);
|
|
291
|
+
if (config.file)
|
|
292
|
+
writes.push([config.file, config.text]);
|
|
293
|
+
if (manifest && !aliasEdits.has(manifest.file))
|
|
294
|
+
writes.push([manifest.file, manifest.text]);
|
|
295
|
+
for (const [file, edit] of aliasEdits)
|
|
296
|
+
writes.push([file, edit.text]);
|
|
297
|
+
const report = {
|
|
298
|
+
dir: project.root,
|
|
299
|
+
written: writes.map(([path]) => rel(path)),
|
|
300
|
+
deleted: [...deleted].map(rel).sort(),
|
|
301
|
+
rewrites: [
|
|
302
|
+
...codemod.changes,
|
|
303
|
+
...rewrites.files.flatMap((f) => f.changes),
|
|
304
|
+
...config.changes,
|
|
305
|
+
...(manifest?.changes ?? []),
|
|
306
|
+
...[...aliasEdits.values()].flatMap((e) => e.changes),
|
|
307
|
+
],
|
|
308
|
+
manual: [
|
|
309
|
+
...envReads.map((read) => `${read}: the printed permissions hold the value it had when \`validate\` ran; make the env-dependent logic explicit in schema.ts`),
|
|
310
|
+
...rewrites.manual,
|
|
311
|
+
],
|
|
312
|
+
notes,
|
|
313
|
+
typeErrors: [],
|
|
314
|
+
preexistingTypeErrors: [],
|
|
315
|
+
typechecked: false,
|
|
316
|
+
identity: before,
|
|
317
|
+
};
|
|
318
|
+
if (options.dryRun)
|
|
319
|
+
return report;
|
|
320
|
+
// The project's errors before the conversion, so the closing typecheck tells upgrade's apart.
|
|
321
|
+
let beforeErrors;
|
|
322
|
+
if (!options.skipTypecheck)
|
|
323
|
+
beforeErrors = countTypeErrors(projectTypeErrors(project, writes, new Set()));
|
|
324
|
+
// Write, keeping what was there to put back byte for byte: the files upgrade
|
|
325
|
+
// writes or deletes, the JSON files, the bindings and migrations/ (removed
|
|
326
|
+
// if upgrade made it). Anything else `generate` adds goes again.
|
|
327
|
+
const undo = snapshot(appOutputs(project.schemaDir, [...writes.map(([p]) => p), ...deleted]));
|
|
328
|
+
const filesBefore = new Set(appFiles(project.schemaDir));
|
|
329
|
+
const restore = () => {
|
|
330
|
+
for (const path of appFiles(project.schemaDir))
|
|
331
|
+
if (!filesBefore.has(path))
|
|
332
|
+
rmSync(path, { force: true });
|
|
333
|
+
undo.restore();
|
|
334
|
+
};
|
|
335
|
+
for (const [path, text] of writes)
|
|
336
|
+
writeFileSync(path, text);
|
|
337
|
+
for (const path of deleted)
|
|
338
|
+
rmSync(path, { force: true });
|
|
339
|
+
// Versions of jazz.app.json's history without a snapshot get one: `generate` builds the history from them.
|
|
340
|
+
for (const [path, text] of await missingSnapshots(project, app)) {
|
|
341
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
342
|
+
writeFileSync(path, text);
|
|
343
|
+
report.written.push(rel(path));
|
|
344
|
+
}
|
|
345
|
+
removeEmptyDirs([...deleted].map(dirname), project.root);
|
|
346
|
+
// 6. generate, and 7. the same deployment.
|
|
347
|
+
try {
|
|
348
|
+
await (options.generate ?? runGenerate)(project.schemaDir);
|
|
349
|
+
const after = await artifactIdentity(readFileSync(project.appFile, "utf8"), readFileSync(project.permissionsJsonFile, "utf8"));
|
|
350
|
+
const differences = identityDifferences(before, after);
|
|
351
|
+
if (differences.length > 0) {
|
|
352
|
+
throw new UpgradeRefusal(`the converted app would deploy differently, so upgrade put every file back:\n${differences.map((d) => ` ${d}`).join("\n")}\n` +
|
|
353
|
+
"Please report this with the app's jazz.app.json and jazz.permissions.json.");
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
catch (error) {
|
|
357
|
+
restore();
|
|
358
|
+
if (error instanceof UpgradeRefusal)
|
|
359
|
+
throw error;
|
|
360
|
+
throw new UpgradeRefusal(`\`generate\` failed on the converted app, so upgrade put every file back:\n ${(error instanceof Error ? error.message : String(error)).replace(/\n/g, "\n ")}`);
|
|
361
|
+
}
|
|
362
|
+
report.notes.push(`The schema hashes and the bundle id (${before.bundle.slice(0, 12)}) are unchanged.`);
|
|
363
|
+
// A Rust app (a crate on `jazz-app-support`) gets Rust bindings instead, as `generate` writes them.
|
|
364
|
+
const rustApp = isRustApp(project.schemaDir);
|
|
365
|
+
report.written.push(rel(project.appFile), rel(project.permissionsJsonFile));
|
|
366
|
+
if (rustApp) {
|
|
367
|
+
const rustFile = join(project.schemaDir, RUST_BINDINGS_FILE);
|
|
368
|
+
const rust = await rustBindings(readFileSync(project.appFile, "utf8"));
|
|
369
|
+
if (typeof rust === "string") {
|
|
370
|
+
mkdirSync(dirname(rustFile), { recursive: true });
|
|
371
|
+
writeFileSync(rustFile, rust);
|
|
372
|
+
report.written.push(rel(rustFile));
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
report.notes.push(`${RUST_BINDINGS_FILE} was not written (${rust.reason}); run \`npx jazz-tools generate\` once this jazz-tools generates Rust bindings.`);
|
|
376
|
+
}
|
|
377
|
+
report.notes.push("This is a Rust app: run `cargo check` to typecheck it against the new bindings.");
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
report.written.push(rel(generatedFile));
|
|
381
|
+
}
|
|
382
|
+
if (!options.skipTypecheck && !rustApp) {
|
|
383
|
+
const split = splitTypeErrors(beforeErrors, projectTypeErrors(project, writes, deleted));
|
|
384
|
+
report.typeErrors = split.added;
|
|
385
|
+
report.preexistingTypeErrors = split.preexisting;
|
|
386
|
+
report.typechecked = true;
|
|
387
|
+
const views = project.sources.filter((f) => /\.(svelte|vue)$/.test(f));
|
|
388
|
+
if (views.length > 0) {
|
|
389
|
+
report.notes.push(`The typecheck covers .ts/.tsx; run svelte-check or vue-tsc for the ${views.length} .svelte/.vue file${views.length === 1 ? "" : "s"}.`);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
return report;
|
|
393
|
+
}
|
|
394
|
+
function projectTypeErrors(project, writes, deleted) {
|
|
395
|
+
const { ts } = project;
|
|
396
|
+
const roots = new Set(project.configFileNames.filter((f) => !deleted.has(f)));
|
|
397
|
+
for (const [path] of writes)
|
|
398
|
+
if (/\.(ts|tsx|mts|cts)$/.test(path) && existsSync(path))
|
|
399
|
+
roots.add(path);
|
|
400
|
+
if (roots.size === 0)
|
|
401
|
+
return [];
|
|
402
|
+
const runtime = runningPackageRoot();
|
|
403
|
+
const installed = installedJazzTools(project);
|
|
404
|
+
const override = installed &&
|
|
405
|
+
dslAlpha(packageVersion(installed)) !== null &&
|
|
406
|
+
realpathSync(installed) !== realpathSync(runtime)
|
|
407
|
+
? runtime
|
|
408
|
+
: undefined;
|
|
409
|
+
const handle = createProgram(ts, [...roots], project.compilerOptions, override);
|
|
410
|
+
try {
|
|
411
|
+
return typeErrors(ts, handle.program, project.root);
|
|
412
|
+
}
|
|
413
|
+
finally {
|
|
414
|
+
handle.dispose();
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
/** Every file under `dir`, but dependencies and VCS data. */
|
|
418
|
+
function appFiles(dir) {
|
|
419
|
+
const out = [];
|
|
420
|
+
const walk = (current) => {
|
|
421
|
+
for (const entry of readdirSync(current, { withFileTypes: true })) {
|
|
422
|
+
if (entry.name === "node_modules" || entry.name === ".git")
|
|
423
|
+
continue;
|
|
424
|
+
const path = join(current, entry.name);
|
|
425
|
+
if (entry.isDirectory())
|
|
426
|
+
walk(path);
|
|
427
|
+
else
|
|
428
|
+
out.push(path);
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
walk(dir);
|
|
432
|
+
return out;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Snapshots for the versions in jazz.app.json's `history` that
|
|
436
|
+
* migrations/snapshots/ lacks (alpha.65 apps kept some only in the JSON), as
|
|
437
|
+
* `migrations create` writes them.
|
|
438
|
+
*/
|
|
439
|
+
async function missingSnapshots(project, app) {
|
|
440
|
+
const versions = Object.entries(app.history ?? {});
|
|
441
|
+
if (versions.length === 0)
|
|
442
|
+
return [];
|
|
443
|
+
const dir = join(project.migrationsDir ?? join(project.schemaDir, "migrations"), "snapshots");
|
|
444
|
+
const have = new Set(existsSync(dir)
|
|
445
|
+
? readdirSync(dir).flatMap((f) => /([0-9a-f]{12})\.json$/i.exec(f)?.[1] ?? [])
|
|
446
|
+
: []);
|
|
447
|
+
const { snapshotFromVersion } = await import("../dev/migrations.js");
|
|
448
|
+
const out = [];
|
|
449
|
+
for (const [name, version] of versions) {
|
|
450
|
+
if (have.has(name.slice(0, 12)))
|
|
451
|
+
continue;
|
|
452
|
+
const snapshot = await snapshotFromVersion(version.tables);
|
|
453
|
+
const hash = snapshot.hash.slice(0, 12);
|
|
454
|
+
if (have.has(hash))
|
|
455
|
+
continue;
|
|
456
|
+
out.push([join(dir, `${hash}.json`), `${JSON.stringify(snapshot.schema, null, 2)}\n`]);
|
|
457
|
+
have.add(hash);
|
|
458
|
+
}
|
|
459
|
+
return out;
|
|
460
|
+
}
|
|
461
|
+
/** The bundle id and schema hashes `load` computes for the two files. */
|
|
462
|
+
export async function artifactIdentity(app, permissions) {
|
|
463
|
+
const napi = (await import("jazz-napi"));
|
|
464
|
+
const loaded = napi.loadAppArtifact(app, permissions);
|
|
465
|
+
return {
|
|
466
|
+
bundle: loaded.bundle,
|
|
467
|
+
current: loaded.current,
|
|
468
|
+
schemas: loaded.deployment.schemas.map((s) => s.hash),
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
export function identityDifferences(before, after) {
|
|
472
|
+
const out = [];
|
|
473
|
+
if (before.current !== after.current)
|
|
474
|
+
out.push(`current schema hash ${before.current} → ${after.current}`);
|
|
475
|
+
const a = [...before.schemas].sort().join(", ");
|
|
476
|
+
const b = [...after.schemas].sort().join(", ");
|
|
477
|
+
if (a !== b)
|
|
478
|
+
out.push(`schema versions [${a}] → [${b}]`);
|
|
479
|
+
if (before.bundle !== after.bundle)
|
|
480
|
+
out.push(`bundle id ${before.bundle} → ${after.bundle}`);
|
|
481
|
+
return out;
|
|
482
|
+
}
|
|
483
|
+
const RUST_BINDINGS_FILE = join("src", "jazz_app.rs");
|
|
484
|
+
/**
|
|
485
|
+
* Whether `dir` is a Rust app, as `jazz-tools generate` tells: a crate (a
|
|
486
|
+
* `Cargo.toml` with `[package]`) that depends on `jazz-app-support`, or one with
|
|
487
|
+
* committed `src/jazz_app.rs`. A workspace root or an unrelated crate isn't.
|
|
488
|
+
*/
|
|
489
|
+
export function isRustApp(dir) {
|
|
490
|
+
const manifest = join(dir, "Cargo.toml");
|
|
491
|
+
if (!existsSync(manifest))
|
|
492
|
+
return false;
|
|
493
|
+
const text = readFileSync(manifest, "utf8");
|
|
494
|
+
if (!/^\s*\[package\]/m.test(text))
|
|
495
|
+
return false;
|
|
496
|
+
if (existsSync(join(dir, RUST_BINDINGS_FILE)))
|
|
497
|
+
return true;
|
|
498
|
+
return /^\s*jazz-app-support\s*=|^\s*\[(?:dev-|build-)?dependencies\.jazz-app-support\]/m.test(text);
|
|
499
|
+
}
|
|
500
|
+
/** The `jazz-app-support` crate's bindings, or why this jazz-napi can't generate them. */
|
|
501
|
+
async function rustBindings(appJson) {
|
|
502
|
+
try {
|
|
503
|
+
const napi = (await import("jazz-napi"));
|
|
504
|
+
if (typeof napi.generate !== "function")
|
|
505
|
+
return { reason: "this jazz-napi has no `generate`" };
|
|
506
|
+
return napi.generate("rust", appJson);
|
|
507
|
+
}
|
|
508
|
+
catch (error) {
|
|
509
|
+
return {
|
|
510
|
+
reason: (error instanceof Error ? error.message : String(error)).replace(/[.\s]*$/, ""),
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
/** Refuse bare `true` policies (anywhere) in an app whose old permissions read the environment. */
|
|
515
|
+
function refuseBareTrue(project, envReads) {
|
|
516
|
+
const permissions = JSON.parse(readFileSync(project.permissionsJsonFile, "utf8"));
|
|
517
|
+
const found = [];
|
|
518
|
+
const walk = (value, path) => {
|
|
519
|
+
if (typeof value === "string") {
|
|
520
|
+
if (value.trim() === "true")
|
|
521
|
+
found.push(path);
|
|
522
|
+
}
|
|
523
|
+
else if (Array.isArray(value))
|
|
524
|
+
value.forEach((v, i) => walk(v, `${path}[${i}]`));
|
|
525
|
+
else if (value && typeof value === "object") {
|
|
526
|
+
for (const [key, v] of Object.entries(value))
|
|
527
|
+
if (key !== "$comment")
|
|
528
|
+
walk(v, `${path}.${key}`);
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
for (const [table, rules] of Object.entries(permissions.tables ?? {}))
|
|
532
|
+
walk(rules, table);
|
|
533
|
+
if (found.length === 0)
|
|
534
|
+
return;
|
|
535
|
+
throw new UpgradeRefusal(`jazz.permissions.json allows ${found.map((f) => `\`${f}\``).join(", ")} unconditionally (\`"true"\`), and the old permissions read the environment:\n` +
|
|
536
|
+
envReads.map((r) => ` ${r}`).join("\n") +
|
|
537
|
+
"\nalpha.65 compiled a condition on an unset value to `true`, so these may allow more than the author wrote. " +
|
|
538
|
+
"Set those environment variables and run `npx jazz-tools validate` with the app's alpha.65, then upgrade again " +
|
|
539
|
+
"(or, if they really are unconditional, check jazz.permissions.json and fix the old permissions by hand first).", relative(project.root, project.permissionsJsonFile));
|
|
540
|
+
}
|
|
541
|
+
/** This jazz-tools' `generate`, in the app's directory: the JSON files from the TS, then the bindings. */
|
|
542
|
+
async function runGenerate(schemaDir) {
|
|
543
|
+
const { generateApp } = await import("../dev/project.js");
|
|
544
|
+
// alpha.65's JSON files carry no `$generated` marker: replacing them is the point.
|
|
545
|
+
await generateApp({ cwd: schemaDir, force: true });
|
|
546
|
+
}
|
|
547
|
+
/** The table names a spread module's `export const schema = {…}` declares. */
|
|
548
|
+
function spreadTables(ts, file, text, exported) {
|
|
549
|
+
const source = ts.createSourceFile(file, text, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);
|
|
550
|
+
for (const statement of source.statements) {
|
|
551
|
+
if (!ts.isVariableStatement(statement))
|
|
552
|
+
continue;
|
|
553
|
+
for (const declaration of statement.declarationList.declarations) {
|
|
554
|
+
if (!ts.isIdentifier(declaration.name) || declaration.name.text !== exported)
|
|
555
|
+
continue;
|
|
556
|
+
let init = declaration.initializer;
|
|
557
|
+
while (init && (ts.isAsExpression(init) || ts.isSatisfiesExpression(init)))
|
|
558
|
+
init = init.expression;
|
|
559
|
+
if (init && ts.isObjectLiteralExpression(init)) {
|
|
560
|
+
return init.properties.flatMap((p) => p.name && (ts.isIdentifier(p.name) || ts.isStringLiteral(p.name)) ? [p.name.text] : []);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
return [];
|
|
565
|
+
}
|
|
566
|
+
function plainRules(rules) {
|
|
567
|
+
return Object.entries(rules ?? {}).every(([key, value]) => key === "$comment" || value === "true" || value === "false");
|
|
568
|
+
}
|
|
569
|
+
function plainPermissions(tables, permissions) {
|
|
570
|
+
const body = tables.map((table) => {
|
|
571
|
+
const rules = permissions.tables[table] ?? {};
|
|
572
|
+
const entries = ["read", "insert", "update", "delete"]
|
|
573
|
+
.filter((op) => rules[op] !== undefined)
|
|
574
|
+
.map((op) => `${op}: ${rules[op]}`);
|
|
575
|
+
return ` ${/^[A-Za-z_$][\w$]*$/.test(table) ? table : JSON.stringify(table)}: { ${entries.join(", ")} },`;
|
|
576
|
+
});
|
|
577
|
+
return `{\n${body.join("\n")}\n}`;
|
|
578
|
+
}
|
|
579
|
+
async function formatSpread(text, file, prettier) {
|
|
580
|
+
return prettier ? formatTs(text, { file, prettier }) : text;
|
|
581
|
+
}
|
|
582
|
+
/** `text` with `lines` added after its last import. */
|
|
583
|
+
function withImports(ts, file, text, lines) {
|
|
584
|
+
if (lines.length === 0)
|
|
585
|
+
return text;
|
|
586
|
+
const source = ts.createSourceFile(file, text, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);
|
|
587
|
+
const last = source.statements.filter(ts.isImportDeclaration).pop();
|
|
588
|
+
const at = last ? last.getEnd() : 0;
|
|
589
|
+
return `${text.slice(0, at)}\n${lines.join("\n")}${text.slice(at)}`;
|
|
590
|
+
}
|
|
591
|
+
/** package.json: scripts calling `jazz-tools validate` call `generate`. */
|
|
592
|
+
function manifestEdit(project) {
|
|
593
|
+
const file = join(project.root, "package.json");
|
|
594
|
+
if (!existsSync(file))
|
|
595
|
+
return undefined;
|
|
596
|
+
const text = readFileSync(file, "utf8");
|
|
597
|
+
const changes = [];
|
|
598
|
+
let next = text;
|
|
599
|
+
let manifest;
|
|
600
|
+
try {
|
|
601
|
+
manifest = JSON.parse(text);
|
|
602
|
+
}
|
|
603
|
+
catch {
|
|
604
|
+
return undefined;
|
|
605
|
+
}
|
|
606
|
+
for (const [name, script] of Object.entries(manifest.scripts ?? {})) {
|
|
607
|
+
const renamed = renameValidate(script);
|
|
608
|
+
if (renamed === script)
|
|
609
|
+
continue;
|
|
610
|
+
changes.push(`package.json: script "${name}": \`jazz-tools validate\` → \`jazz-tools generate\``);
|
|
611
|
+
next = next.replace(JSON.stringify(script), JSON.stringify(renamed));
|
|
612
|
+
}
|
|
613
|
+
return next === text ? undefined : { file, text: next, changes };
|
|
614
|
+
}
|
|
615
|
+
export { notSupportedYet, isObject, specifierLike, extname };
|
|
616
|
+
async function napiGenerate(appJson) {
|
|
617
|
+
const napi = (await import("jazz-napi"));
|
|
618
|
+
if (typeof napi.generate !== "function") {
|
|
619
|
+
throw new Error("this jazz-napi has no `generate`: install the jazz-napi that ships with this jazz-tools");
|
|
620
|
+
}
|
|
621
|
+
return napi.generate("ts", appJson);
|
|
622
|
+
}
|
|
623
|
+
/** The project's resolved jazz-tools package directory, if installed. */
|
|
624
|
+
function installedJazzTools(project) {
|
|
625
|
+
try {
|
|
626
|
+
return dirname(createRequire(join(project.schemaDir, "package.json")).resolve("jazz-tools/package.json"));
|
|
627
|
+
}
|
|
628
|
+
catch {
|
|
629
|
+
return undefined;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function scanImports(project) {
|
|
633
|
+
const { ts } = project;
|
|
634
|
+
const imports = new Map();
|
|
635
|
+
const schemaNames = new Set();
|
|
636
|
+
let js = 0;
|
|
637
|
+
let plain = 0;
|
|
638
|
+
for (const file of project.sources) {
|
|
639
|
+
const text = readFileSync(file, "utf8");
|
|
640
|
+
const code = /\.(svelte|vue|html)$/.test(file)
|
|
641
|
+
? [...text.matchAll(/<script\b[^>]*>([\s\S]*?)<\/script>/g)].map((m) => m[1]).join("\n")
|
|
642
|
+
: text;
|
|
643
|
+
const targets = new Set();
|
|
644
|
+
const source = ts.createSourceFile(file, code, ts.ScriptTarget.Latest, true, /\.[jt]sx$/.test(file) ? ts.ScriptKind.TSX : ts.ScriptKind.TS);
|
|
645
|
+
const visit = (node) => {
|
|
646
|
+
let spec;
|
|
647
|
+
if ((ts.isImportDeclaration(node) || ts.isExportDeclaration(node)) && node.moduleSpecifier)
|
|
648
|
+
spec = node.moduleSpecifier;
|
|
649
|
+
if (ts.isCallExpression(node) && node.expression.kind === ts.SyntaxKind.ImportKeyword)
|
|
650
|
+
spec = node.arguments[0];
|
|
651
|
+
if (spec && ts.isStringLiteral(spec)) {
|
|
652
|
+
const target = resolveImport(project, spec.text, file);
|
|
653
|
+
if (target) {
|
|
654
|
+
targets.add(target);
|
|
655
|
+
if (target === project.schemaFile && !project.permissionsSources.includes(file)) {
|
|
656
|
+
if (spec.text.startsWith(".")) {
|
|
657
|
+
if (spec.text.endsWith(".js"))
|
|
658
|
+
js++;
|
|
659
|
+
else
|
|
660
|
+
plain++;
|
|
661
|
+
}
|
|
662
|
+
if (ts.isImportDeclaration(node)) {
|
|
663
|
+
const bindings = node.importClause?.namedBindings;
|
|
664
|
+
if (bindings && ts.isNamedImports(bindings)) {
|
|
665
|
+
for (const element of bindings.elements)
|
|
666
|
+
schemaNames.add((element.propertyName ?? element.name).text);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
ts.forEachChild(node, visit);
|
|
673
|
+
};
|
|
674
|
+
visit(source);
|
|
675
|
+
imports.set(file, targets);
|
|
676
|
+
}
|
|
677
|
+
return { imports, schemaNames, jsExtensions: js > plain };
|
|
678
|
+
}
|
|
679
|
+
/** schema.ts, permissions.ts and the project files they import, transitively. */
|
|
680
|
+
function schemaSources(project, scan) {
|
|
681
|
+
const out = new Set();
|
|
682
|
+
const queue = [project.schemaFile, ...project.permissionsSources];
|
|
683
|
+
while (queue.length > 0) {
|
|
684
|
+
const file = queue.pop();
|
|
685
|
+
if (out.has(file) ||
|
|
686
|
+
relative(project.root, file).startsWith("..") ||
|
|
687
|
+
file.includes("node_modules"))
|
|
688
|
+
continue;
|
|
689
|
+
out.add(file);
|
|
690
|
+
queue.push(...(scan.imports.get(file) ?? []));
|
|
691
|
+
}
|
|
692
|
+
return [...out];
|
|
693
|
+
}
|
|
694
|
+
function removeEmptyDirs(dirs, root) {
|
|
695
|
+
for (const start of new Set(dirs)) {
|
|
696
|
+
let dir = start;
|
|
697
|
+
while (dir.startsWith(root) &&
|
|
698
|
+
dir !== root &&
|
|
699
|
+
existsSync(dir) &&
|
|
700
|
+
readdirSync(dir).length === 0) {
|
|
701
|
+
rmdirSync(dir);
|
|
702
|
+
dir = dirname(dir);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
/** tsconfig: `include` entries naming deleted files, and JSON imports. */
|
|
707
|
+
function configEdits(project, importsJson, deleted) {
|
|
708
|
+
const file = project.tsconfig;
|
|
709
|
+
if (!file)
|
|
710
|
+
return { text: "", changes: [] };
|
|
711
|
+
let text = readFileSync(file, "utf8");
|
|
712
|
+
const original = text;
|
|
713
|
+
const changes = [];
|
|
714
|
+
const dir = dirname(file);
|
|
715
|
+
const generated = relative(dir, join(project.schemaDir, GENERATED_FILE)).split("\\").join("/");
|
|
716
|
+
for (const path of deleted) {
|
|
717
|
+
if (extname(path) !== ".ts")
|
|
718
|
+
continue;
|
|
719
|
+
const name = relative(dir, path).split("\\").join("/");
|
|
720
|
+
for (const spelled of [name, `./${name}`]) {
|
|
721
|
+
const quoted = JSON.stringify(spelled);
|
|
722
|
+
if (!text.includes(quoted))
|
|
723
|
+
continue;
|
|
724
|
+
if (path === project.schemaFile) {
|
|
725
|
+
text = text.replace(quoted, JSON.stringify(generated));
|
|
726
|
+
changes.push(`${relative(project.root, file)}: include ${quoted} → "${generated}"`);
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
text = text.replace(new RegExp(`\\s*${escape(quoted)}\\s*,|,\\s*${escape(quoted)}|${escape(quoted)}`), "");
|
|
730
|
+
changes.push(`${relative(project.root, file)}: dropped ${quoted} from include`);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
if (importsJson && project.compilerOptions.resolveJsonModule !== true) {
|
|
735
|
+
const next = text.replace(/("compilerOptions"\s*:\s*\{)(\s*)/, `$1$2"resolveJsonModule": true,$2`);
|
|
736
|
+
if (next !== text) {
|
|
737
|
+
text = next;
|
|
738
|
+
changes.push(`${relative(project.root, file)}: "resolveJsonModule": true, for the jazz.permissions.json import`);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
return text === original ? { text, changes: [] } : { file, text, changes };
|
|
742
|
+
}
|
|
743
|
+
function escape(text) {
|
|
744
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
745
|
+
}
|
|
746
|
+
/** A shell command with every jazz-tools CLI `validate` call renamed to `generate`. */
|
|
747
|
+
export function renameValidate(script) {
|
|
748
|
+
return script.replace(/((?:^|[\s;&|('"])(?:(?:npx|pnpm(?: exec)?|yarn|bunx)\s+)?(?:jazz-tools(?:@\S+)?|\S*jazz-tools\/(?:dist\/cli\.js|bin\/jazz-tools\.js))\s+)validate\b/g, "$1generate");
|
|
749
|
+
}
|
|
750
|
+
/** The report as the CLI prints it. */
|
|
751
|
+
export function formatReport(report, dryRun = false) {
|
|
752
|
+
const lines = [];
|
|
753
|
+
const section = (title, items) => {
|
|
754
|
+
if (items.length === 0)
|
|
755
|
+
return;
|
|
756
|
+
lines.push(`${title}:`);
|
|
757
|
+
for (const item of items)
|
|
758
|
+
lines.push(` ${item.replace(/\n/g, "\n ")}`);
|
|
759
|
+
};
|
|
760
|
+
section(dryRun ? "Would write" : "Wrote", report.written);
|
|
761
|
+
section(dryRun ? "Would delete" : "Deleted", report.deleted);
|
|
762
|
+
section("Rewrote", report.rewrites);
|
|
763
|
+
section("Left for you (upgrade can't convert these)", report.manual);
|
|
764
|
+
section("Notes", report.notes);
|
|
765
|
+
if (report.typechecked) {
|
|
766
|
+
section(`Typecheck: ${report.preexistingTypeErrors.length} error${report.preexistingTypeErrors.length === 1 ? "" : "s"} the project had before the conversion too (not upgrade's, and not counted)`, report.preexistingTypeErrors);
|
|
767
|
+
if (report.typeErrors.length === 0) {
|
|
768
|
+
lines.push(report.preexistingTypeErrors.length === 0
|
|
769
|
+
? "Typecheck passed."
|
|
770
|
+
: "Typecheck passed: no errors besides the ones the project already had.");
|
|
771
|
+
}
|
|
772
|
+
else
|
|
773
|
+
section(`Typecheck: ${report.typeErrors.length} error${report.typeErrors.length === 1 ? "" : "s"} (the conversion is left in place for you to fix)`, report.typeErrors);
|
|
774
|
+
}
|
|
775
|
+
return lines.join("\n");
|
|
776
|
+
}
|
|
777
|
+
/** How many times each error (file, code, first message line) occurs. */
|
|
778
|
+
export function countTypeErrors(errors) {
|
|
779
|
+
const counts = new Map();
|
|
780
|
+
for (const { key } of errors)
|
|
781
|
+
counts.set(key, (counts.get(key) ?? 0) + 1);
|
|
782
|
+
return counts;
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* The closing typecheck's errors, split into the ones the conversion added
|
|
786
|
+
* and the ones the project had before (`before`, counted per key). Each error
|
|
787
|
+
* before excuses one identical error after, whatever line it moved to, so a
|
|
788
|
+
* second identical error the conversion adds to the same file still counts.
|
|
789
|
+
*/
|
|
790
|
+
export function splitTypeErrors(before, after) {
|
|
791
|
+
const excused = new Map(before);
|
|
792
|
+
const added = [];
|
|
793
|
+
const preexisting = [];
|
|
794
|
+
for (const error of after) {
|
|
795
|
+
const left = excused.get(error.key) ?? 0;
|
|
796
|
+
if (left > 0) {
|
|
797
|
+
excused.set(error.key, left - 1);
|
|
798
|
+
preexisting.push(error.text);
|
|
799
|
+
}
|
|
800
|
+
else {
|
|
801
|
+
added.push(error.text);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
return { added, preexisting };
|
|
805
|
+
}
|
|
806
|
+
//# sourceMappingURL=index.js.map
|