@supatype/cli 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +499 -91
- package/bin/node-version.js +28 -0
- package/bin/supatype.js +8 -4
- package/dist/api-config-cache.d.ts +22 -8
- package/dist/api-config-cache.d.ts.map +1 -1
- package/dist/api-config-cache.js +82 -19
- package/dist/api-config-cache.js.map +1 -1
- package/dist/api-config-stack.d.ts +23 -0
- package/dist/api-config-stack.d.ts.map +1 -0
- package/dist/api-config-stack.js +63 -0
- package/dist/api-config-stack.js.map +1 -0
- package/dist/api-url.d.ts +12 -0
- package/dist/api-url.d.ts.map +1 -0
- package/dist/api-url.js +17 -0
- package/dist/api-url.js.map +1 -0
- package/dist/app/framework.d.ts +18 -2
- package/dist/app/framework.d.ts.map +1 -1
- package/dist/app/framework.js +26 -3
- package/dist/app/framework.js.map +1 -1
- package/dist/app/port-holder.d.ts +33 -0
- package/dist/app/port-holder.d.ts.map +1 -0
- package/dist/app/port-holder.js +66 -0
- package/dist/app/port-holder.js.map +1 -0
- package/dist/app/proxy-dev-app.d.ts +27 -3
- package/dist/app/proxy-dev-app.d.ts.map +1 -1
- package/dist/app/proxy-dev-app.js +100 -46
- package/dist/app/proxy-dev-app.js.map +1 -1
- package/dist/app/vite-dev-args.d.ts +33 -0
- package/dist/app/vite-dev-args.d.ts.map +1 -0
- package/dist/app/vite-dev-args.js +90 -0
- package/dist/app/vite-dev-args.js.map +1 -0
- package/dist/app-config.d.ts +2 -0
- package/dist/app-config.d.ts.map +1 -1
- package/dist/app-config.js +27 -8
- package/dist/app-config.js.map +1 -1
- package/dist/applied-ast-artifacts.d.ts +7 -2
- package/dist/applied-ast-artifacts.d.ts.map +1 -1
- package/dist/applied-ast-artifacts.js +8 -3
- package/dist/applied-ast-artifacts.js.map +1 -1
- package/dist/archive-extract.d.ts +21 -2
- package/dist/archive-extract.d.ts.map +1 -1
- package/dist/archive-extract.js +30 -11
- package/dist/archive-extract.js.map +1 -1
- package/dist/augmentation-generator.d.ts +9 -0
- package/dist/augmentation-generator.d.ts.map +1 -1
- package/dist/augmentation-generator.js +75 -8
- package/dist/augmentation-generator.js.map +1 -1
- package/dist/auth-answer.d.ts +1 -1
- package/dist/auth-answer.js +1 -1
- package/dist/auth-config-validate.d.ts +3 -0
- package/dist/auth-config-validate.d.ts.map +1 -0
- package/dist/auth-config-validate.js +85 -0
- package/dist/auth-config-validate.js.map +1 -0
- package/dist/auth-groups-env.d.ts +14 -0
- package/dist/auth-groups-env.d.ts.map +1 -0
- package/dist/auth-groups-env.js +53 -0
- package/dist/auth-groups-env.js.map +1 -0
- package/dist/auth-providers.d.ts +6 -14
- package/dist/auth-providers.d.ts.map +1 -1
- package/dist/auth-providers.js +6 -36
- package/dist/auth-providers.js.map +1 -1
- package/dist/auth-settings-push.d.ts +29 -0
- package/dist/auth-settings-push.d.ts.map +1 -0
- package/dist/auth-settings-push.js +176 -0
- package/dist/auth-settings-push.js.map +1 -0
- package/dist/binary-cache.d.ts +4 -1
- package/dist/binary-cache.d.ts.map +1 -1
- package/dist/binary-cache.js +33 -63
- package/dist/binary-cache.js.map +1 -1
- package/dist/binary-download-lock.d.ts.map +1 -1
- package/dist/binary-download-lock.js +2 -10
- package/dist/binary-download-lock.js.map +1 -1
- package/dist/browser-login.d.ts +42 -0
- package/dist/browser-login.d.ts.map +1 -0
- package/dist/browser-login.js +111 -0
- package/dist/browser-login.js.map +1 -0
- package/dist/build-public-env.d.ts +29 -0
- package/dist/build-public-env.d.ts.map +1 -0
- package/dist/build-public-env.js +97 -0
- package/dist/build-public-env.js.map +1 -0
- package/dist/build-refused.d.ts +9 -0
- package/dist/build-refused.d.ts.map +1 -0
- package/dist/build-refused.js +9 -0
- package/dist/build-refused.js.map +1 -0
- package/dist/cache-provider.d.ts +17 -2
- package/dist/cache-provider.d.ts.map +1 -1
- package/dist/cache-provider.js +28 -3
- package/dist/cache-provider.js.map +1 -1
- package/dist/cdn-fetch.d.ts +36 -0
- package/dist/cdn-fetch.d.ts.map +1 -0
- package/dist/cdn-fetch.js +175 -0
- package/dist/cdn-fetch.js.map +1 -0
- package/dist/channel-extractor.d.ts +51 -0
- package/dist/channel-extractor.d.ts.map +1 -0
- package/dist/channel-extractor.js +485 -0
- package/dist/channel-extractor.js.map +1 -0
- package/dist/cli-launcher.d.ts.map +1 -1
- package/dist/cli-launcher.js +3 -2
- package/dist/cli-launcher.js.map +1 -1
- package/dist/cli-release-check.d.ts +34 -0
- package/dist/cli-release-check.d.ts.map +1 -0
- package/dist/cli-release-check.js +79 -0
- package/dist/cli-release-check.js.map +1 -0
- package/dist/cli-standalone.d.ts +16 -0
- package/dist/cli-standalone.d.ts.map +1 -1
- package/dist/cli-standalone.js +92 -47
- package/dist/cli-standalone.js.map +1 -1
- package/dist/cli-version-embedded.d.ts.map +1 -1
- package/dist/cli-version-embedded.js +1 -1
- package/dist/cli-version-embedded.js.map +1 -1
- package/dist/cli.d.ts +7 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +12 -1
- package/dist/cli.js.map +1 -1
- package/dist/client-generator.d.ts.map +1 -1
- package/dist/client-generator.js +9 -3
- package/dist/client-generator.js.map +1 -1
- package/dist/cloud-admin.d.ts +55 -0
- package/dist/cloud-admin.d.ts.map +1 -0
- package/dist/cloud-admin.js +99 -0
- package/dist/cloud-admin.js.map +1 -0
- package/dist/cloud-credentials.d.ts +24 -9
- package/dist/cloud-credentials.d.ts.map +1 -1
- package/dist/cloud-credentials.js +57 -47
- package/dist/cloud-credentials.js.map +1 -1
- package/dist/cloud-saml-key.d.ts +9 -0
- package/dist/cloud-saml-key.d.ts.map +1 -0
- package/dist/cloud-saml-key.js +44 -0
- package/dist/cloud-saml-key.js.map +1 -0
- package/dist/commands/admin.d.ts.map +1 -1
- package/dist/commands/admin.js +79 -24
- package/dist/commands/admin.js.map +1 -1
- package/dist/commands/app.d.ts.map +1 -1
- package/dist/commands/app.js +22 -2
- package/dist/commands/app.js.map +1 -1
- package/dist/commands/build.d.ts +3 -2
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +10 -13
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/cache.d.ts.map +1 -1
- package/dist/commands/cache.js +16 -5
- package/dist/commands/cache.js.map +1 -1
- package/dist/commands/cloud.d.ts +2 -0
- package/dist/commands/cloud.d.ts.map +1 -1
- package/dist/commands/cloud.js +96 -23
- package/dist/commands/cloud.js.map +1 -1
- package/dist/commands/db.d.ts.map +1 -1
- package/dist/commands/db.js +2 -1
- package/dist/commands/db.js.map +1 -1
- package/dist/commands/deploy.d.ts +21 -2
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +97 -97
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/dev.d.ts +31 -4
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +261 -77
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/diff.d.ts.map +1 -1
- package/dist/commands/diff.js +16 -4
- package/dist/commands/diff.js.map +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/functions.d.ts.map +1 -1
- package/dist/commands/functions.js +163 -54
- package/dist/commands/functions.js.map +1 -1
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +3 -0
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/hooks.d.ts.map +1 -1
- package/dist/commands/hooks.js +40 -9
- package/dist/commands/hooks.js.map +1 -1
- package/dist/commands/init.d.ts +20 -8
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +358 -137
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/keys.d.ts +6 -0
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/keys.js +17 -10
- package/dist/commands/keys.js.map +1 -1
- package/dist/commands/link-helpers.d.ts +4 -1
- package/dist/commands/link-helpers.d.ts.map +1 -1
- package/dist/commands/link-helpers.js +64 -12
- package/dist/commands/link-helpers.js.map +1 -1
- package/dist/commands/login.d.ts +3 -2
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +99 -57
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/migrate.d.ts +17 -0
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/migrate.js +22 -4
- package/dist/commands/migrate.js.map +1 -1
- package/dist/commands/push.d.ts +35 -1
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +117 -21
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/seed.d.ts +31 -45
- package/dist/commands/seed.d.ts.map +1 -1
- package/dist/commands/seed.js +93 -215
- package/dist/commands/seed.js.map +1 -1
- package/dist/commands/self-host.d.ts +3 -3
- package/dist/commands/self-host.d.ts.map +1 -1
- package/dist/commands/self-host.js +88 -270
- package/dist/commands/self-host.js.map +1 -1
- package/dist/commands/site.d.ts +42 -0
- package/dist/commands/site.d.ts.map +1 -0
- package/dist/commands/site.js +100 -0
- package/dist/commands/site.js.map +1 -0
- package/dist/commands/sso.d.ts +13 -3
- package/dist/commands/sso.d.ts.map +1 -1
- package/dist/commands/sso.js +58 -16
- package/dist/commands/sso.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +161 -68
- package/dist/commands/update.js.map +1 -1
- package/dist/compose-auth-settings.d.ts +12 -0
- package/dist/compose-auth-settings.d.ts.map +1 -0
- package/dist/compose-auth-settings.js +39 -0
- package/dist/compose-auth-settings.js.map +1 -0
- package/dist/compose-db-roles.d.ts.map +1 -1
- package/dist/compose-db-roles.js +6 -0
- package/dist/compose-db-roles.js.map +1 -1
- package/dist/compose-kong.d.ts +5 -1
- package/dist/compose-kong.d.ts.map +1 -1
- package/dist/compose-kong.js +8 -4
- package/dist/compose-kong.js.map +1 -1
- package/dist/compose-rename.d.ts.map +1 -1
- package/dist/compose-rename.js +5 -0
- package/dist/compose-rename.js.map +1 -1
- package/dist/compose-render-mode.d.ts +8 -3
- package/dist/compose-render-mode.d.ts.map +1 -1
- package/dist/compose-render-mode.js +22 -13
- package/dist/compose-render-mode.js.map +1 -1
- package/dist/compose-services.d.ts.map +1 -1
- package/dist/compose-services.js +3 -2
- package/dist/compose-services.js.map +1 -1
- package/dist/config-mailer-env.d.ts +6 -2
- package/dist/config-mailer-env.d.ts.map +1 -1
- package/dist/config-mailer-env.js +11 -13
- package/dist/config-mailer-env.js.map +1 -1
- package/dist/config-version-pin.d.ts +42 -0
- package/dist/config-version-pin.d.ts.map +1 -0
- package/dist/config-version-pin.js +64 -0
- package/dist/config-version-pin.js.map +1 -0
- package/dist/config.d.ts +5 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -2
- package/dist/config.js.map +1 -1
- package/dist/cors-origins-push.d.ts +16 -0
- package/dist/cors-origins-push.d.ts.map +1 -0
- package/dist/cors-origins-push.js +37 -0
- package/dist/cors-origins-push.js.map +1 -0
- package/dist/database-url-owner.d.ts.map +1 -1
- package/dist/database-url-owner.js +2 -1
- package/dist/database-url-owner.js.map +1 -1
- package/dist/db-port.d.ts +3 -1
- package/dist/db-port.d.ts.map +1 -1
- package/dist/db-port.js +1 -1
- package/dist/db-port.js.map +1 -1
- package/dist/destructive-consent.d.ts.map +1 -1
- package/dist/destructive-consent.js +23 -1
- package/dist/destructive-consent.js.map +1 -1
- package/dist/dev-compose.d.ts +9 -4
- package/dist/dev-compose.d.ts.map +1 -1
- package/dist/dev-compose.js +112 -71
- package/dist/dev-compose.js.map +1 -1
- package/dist/dev-functions-watch.d.ts +25 -4
- package/dist/dev-functions-watch.d.ts.map +1 -1
- package/dist/dev-functions-watch.js +78 -13
- package/dist/dev-functions-watch.js.map +1 -1
- package/dist/dev-initial-push.d.ts.map +1 -1
- package/dist/dev-initial-push.js +6 -0
- package/dist/dev-initial-push.js.map +1 -1
- package/dist/dev-ports.d.ts +7 -2
- package/dist/dev-ports.d.ts.map +1 -1
- package/dist/dev-ports.js +44 -22
- package/dist/dev-ports.js.map +1 -1
- package/dist/dev-ready-panel.d.ts +26 -3
- package/dist/dev-ready-panel.d.ts.map +1 -1
- package/dist/dev-ready-panel.js +37 -5
- package/dist/dev-ready-panel.js.map +1 -1
- package/dist/dev-schema-watch.d.ts +6 -0
- package/dist/dev-schema-watch.d.ts.map +1 -1
- package/dist/dev-schema-watch.js +9 -0
- package/dist/dev-schema-watch.js.map +1 -1
- package/dist/dev-self-start.d.ts +16 -0
- package/dist/dev-self-start.d.ts.map +1 -0
- package/dist/dev-self-start.js +31 -0
- package/dist/dev-self-start.js.map +1 -0
- package/dist/dev-session-lock.d.ts +71 -2
- package/dist/dev-session-lock.d.ts.map +1 -1
- package/dist/dev-session-lock.js +105 -5
- package/dist/dev-session-lock.js.map +1 -1
- package/dist/dev-session.d.ts +6 -1
- package/dist/dev-session.d.ts.map +1 -1
- package/dist/dev-session.js +9 -3
- package/dist/dev-session.js.map +1 -1
- package/dist/dev-shutdown.d.ts +11 -2
- package/dist/dev-shutdown.d.ts.map +1 -1
- package/dist/dev-shutdown.js +23 -9
- package/dist/dev-shutdown.js.map +1 -1
- package/dist/diff-access.d.ts.map +1 -1
- package/dist/diff-access.js +17 -1
- package/dist/diff-access.js.map +1 -1
- package/dist/diff-channels.d.ts +14 -0
- package/dist/diff-channels.d.ts.map +1 -0
- package/dist/diff-channels.js +38 -0
- package/dist/diff-channels.js.map +1 -0
- package/dist/docker-exec.d.ts +25 -4
- package/dist/docker-exec.d.ts.map +1 -1
- package/dist/docker-exec.js +88 -8
- package/dist/docker-exec.js.map +1 -1
- package/dist/docker-postgres.d.ts +11 -0
- package/dist/docker-postgres.d.ts.map +1 -1
- package/dist/docker-postgres.js +9 -1
- package/dist/docker-postgres.js.map +1 -1
- package/dist/docker-runtime.d.ts +31 -7
- package/dist/docker-runtime.d.ts.map +1 -1
- package/dist/docker-runtime.js +104 -36
- package/dist/docker-runtime.js.map +1 -1
- package/dist/engine-answers.d.ts.map +1 -1
- package/dist/engine-answers.js +2 -1
- package/dist/engine-answers.js.map +1 -1
- package/dist/engine-client.d.ts +28 -0
- package/dist/engine-client.d.ts.map +1 -1
- package/dist/engine-client.js +4 -4
- package/dist/engine-client.js.map +1 -1
- package/dist/engine-columns.d.ts +26 -0
- package/dist/engine-columns.d.ts.map +1 -0
- package/dist/engine-columns.js +67 -0
- package/dist/engine-columns.js.map +1 -0
- package/dist/engine-floor.d.ts +35 -0
- package/dist/engine-floor.d.ts.map +1 -1
- package/dist/engine-floor.js +67 -0
- package/dist/engine-floor.js.map +1 -1
- package/dist/engine-ownership-gate.d.ts +11 -1
- package/dist/engine-ownership-gate.d.ts.map +1 -1
- package/dist/engine-ownership-gate.js +32 -0
- package/dist/engine-ownership-gate.js.map +1 -1
- package/dist/engine-push-output.d.ts +12 -4
- package/dist/engine-push-output.d.ts.map +1 -1
- package/dist/engine-push-output.js.map +1 -1
- package/dist/env-file.d.ts +36 -3
- package/dist/env-file.d.ts.map +1 -1
- package/dist/env-file.js +82 -11
- package/dist/env-file.js.map +1 -1
- package/dist/env-lines.d.ts +5 -2
- package/dist/env-lines.d.ts.map +1 -1
- package/dist/env-lines.js +18 -3
- package/dist/env-lines.js.map +1 -1
- package/dist/env-managed-record.d.ts +20 -0
- package/dist/env-managed-record.d.ts.map +1 -0
- package/dist/env-managed-record.js +56 -0
- package/dist/env-managed-record.js.map +1 -0
- package/dist/error-message.d.ts.map +1 -1
- package/dist/error-message.js +7 -3
- package/dist/error-message.js.map +1 -1
- package/dist/frontend-env.d.ts +3 -2
- package/dist/frontend-env.d.ts.map +1 -1
- package/dist/frontend-env.js +4 -5
- package/dist/frontend-env.js.map +1 -1
- package/dist/frontend-values-linked.d.ts +3 -0
- package/dist/frontend-values-linked.d.ts.map +1 -1
- package/dist/frontend-values-linked.js +3 -2
- package/dist/frontend-values-linked.js.map +1 -1
- package/dist/frontend-values.d.ts +2 -1
- package/dist/frontend-values.d.ts.map +1 -1
- package/dist/frontend-values.js +2 -1
- package/dist/frontend-values.js.map +1 -1
- package/dist/functions-context-refresh.d.ts.map +1 -1
- package/dist/functions-context-refresh.js +5 -2
- package/dist/functions-context-refresh.js.map +1 -1
- package/dist/functions-deno-types.d.ts +6 -0
- package/dist/functions-deno-types.d.ts.map +1 -1
- package/dist/functions-deno-types.js +43 -35
- package/dist/functions-deno-types.js.map +1 -1
- package/dist/functions-env-local.d.ts +7 -2
- package/dist/functions-env-local.d.ts.map +1 -1
- package/dist/functions-env-local.js +8 -3
- package/dist/functions-env-local.js.map +1 -1
- package/dist/functions-worker-files.d.ts.map +1 -1
- package/dist/functions-worker-files.js +2 -13
- package/dist/functions-worker-files.js.map +1 -1
- package/dist/generated/functions-worker-source.d.ts.map +1 -1
- package/dist/generated/functions-worker-source.js +6 -3
- package/dist/generated/functions-worker-source.js.map +1 -1
- package/dist/generated/release-images.d.ts +6 -6
- package/dist/generated/release-images.js +3 -3
- package/dist/generated-files-engine.d.ts +9 -0
- package/dist/generated-files-engine.d.ts.map +1 -1
- package/dist/generated-files-engine.js +23 -0
- package/dist/generated-files-engine.js.map +1 -1
- package/dist/gitignore.d.ts +29 -2
- package/dist/gitignore.d.ts.map +1 -1
- package/dist/gitignore.js +86 -21
- package/dist/gitignore.js.map +1 -1
- package/dist/hooks-generator.d.ts.map +1 -1
- package/dist/hooks-generator.js +32 -10
- package/dist/hooks-generator.js.map +1 -1
- package/dist/hooks-worker-reload.d.ts +18 -0
- package/dist/hooks-worker-reload.d.ts.map +1 -0
- package/dist/hooks-worker-reload.js +19 -0
- package/dist/hooks-worker-reload.js.map +1 -0
- package/dist/host-database.d.ts +6 -2
- package/dist/host-database.d.ts.map +1 -1
- package/dist/host-database.js +10 -2
- package/dist/host-database.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/init-dependency-versions.d.ts +2 -3
- package/dist/init-dependency-versions.d.ts.map +1 -1
- package/dist/init-dependency-versions.js +12 -9
- package/dist/init-dependency-versions.js.map +1 -1
- package/dist/init-example.d.ts.map +1 -1
- package/dist/init-example.js +13 -1
- package/dist/init-example.js.map +1 -1
- package/dist/init-expo-runtime-env.d.ts +25 -0
- package/dist/init-expo-runtime-env.d.ts.map +1 -0
- package/dist/init-expo-runtime-env.js +112 -0
- package/dist/init-expo-runtime-env.js.map +1 -0
- package/dist/init-next-runtime-env.d.ts +14 -1
- package/dist/init-next-runtime-env.d.ts.map +1 -1
- package/dist/init-next-runtime-env.js +116 -35
- package/dist/init-next-runtime-env.js.map +1 -1
- package/dist/init-package-json.d.ts +12 -3
- package/dist/init-package-json.d.ts.map +1 -1
- package/dist/init-package-json.js +35 -15
- package/dist/init-package-json.js.map +1 -1
- package/dist/init-port-registry.d.ts +19 -0
- package/dist/init-port-registry.d.ts.map +1 -0
- package/dist/init-port-registry.js +57 -0
- package/dist/init-port-registry.js.map +1 -0
- package/dist/init-project-detect.d.ts +20 -0
- package/dist/init-project-detect.d.ts.map +1 -1
- package/dist/init-project-detect.js +41 -8
- package/dist/init-project-detect.js.map +1 -1
- package/dist/init-setup-steps.d.ts +32 -4
- package/dist/init-setup-steps.d.ts.map +1 -1
- package/dist/init-setup-steps.js +114 -18
- package/dist/init-setup-steps.js.map +1 -1
- package/dist/init-vite-node.d.ts +21 -0
- package/dist/init-vite-node.d.ts.map +1 -0
- package/dist/init-vite-node.js +75 -0
- package/dist/init-vite-node.js.map +1 -0
- package/dist/jsx-first-child.d.ts +18 -0
- package/dist/jsx-first-child.d.ts.map +1 -0
- package/dist/jsx-first-child.js +53 -0
- package/dist/jsx-first-child.js.map +1 -0
- package/dist/keyspace-password-file.d.ts +46 -0
- package/dist/keyspace-password-file.d.ts.map +1 -0
- package/dist/keyspace-password-file.js +128 -0
- package/dist/keyspace-password-file.js.map +1 -0
- package/dist/keyspace-port.d.ts +14 -0
- package/dist/keyspace-port.d.ts.map +1 -0
- package/dist/keyspace-port.js +35 -0
- package/dist/keyspace-port.js.map +1 -0
- package/dist/kong-config.d.ts +6 -0
- package/dist/kong-config.d.ts.map +1 -1
- package/dist/kong-config.js +119 -20
- package/dist/kong-config.js.map +1 -1
- package/dist/link.d.ts +30 -0
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +70 -16
- package/dist/link.js.map +1 -1
- package/dist/local-gateway.d.ts +11 -3
- package/dist/local-gateway.d.ts.map +1 -1
- package/dist/local-gateway.js +16 -7
- package/dist/local-gateway.js.map +1 -1
- package/dist/local-secrets.d.ts +22 -0
- package/dist/local-secrets.d.ts.map +1 -1
- package/dist/local-secrets.js +29 -0
- package/dist/local-secrets.js.map +1 -1
- package/dist/local-stack-guard.d.ts +8 -0
- package/dist/local-stack-guard.d.ts.map +1 -1
- package/dist/local-stack-guard.js +44 -3
- package/dist/local-stack-guard.js.map +1 -1
- package/dist/local-stack.d.ts +2 -0
- package/dist/local-stack.d.ts.map +1 -1
- package/dist/local-stack.js +14 -8
- package/dist/local-stack.js.map +1 -1
- package/dist/local-storage.d.ts +3 -5
- package/dist/local-storage.d.ts.map +1 -1
- package/dist/local-storage.js +10 -10
- package/dist/local-storage.js.map +1 -1
- package/dist/mailer-autoconfirm.d.ts +29 -24
- package/dist/mailer-autoconfirm.d.ts.map +1 -1
- package/dist/mailer-autoconfirm.js +47 -43
- package/dist/mailer-autoconfirm.js.map +1 -1
- package/dist/mailer-env.d.ts +8 -1
- package/dist/mailer-env.d.ts.map +1 -1
- package/dist/mailer-env.js +52 -8
- package/dist/mailer-env.js.map +1 -1
- package/dist/model-hooks.d.ts +6 -4
- package/dist/model-hooks.d.ts.map +1 -1
- package/dist/model-hooks.js +14 -8
- package/dist/model-hooks.js.map +1 -1
- package/dist/model-versioning.d.ts +6 -0
- package/dist/model-versioning.d.ts.map +1 -1
- package/dist/model-versioning.js +12 -0
- package/dist/model-versioning.js.map +1 -1
- package/dist/native-dev-env.d.ts +38 -3
- package/dist/native-dev-env.d.ts.map +1 -1
- package/dist/native-dev-env.js +98 -7
- package/dist/native-dev-env.js.map +1 -1
- package/dist/native-keyspace.d.ts +31 -6
- package/dist/native-keyspace.d.ts.map +1 -1
- package/dist/native-keyspace.js +70 -20
- package/dist/native-keyspace.js.map +1 -1
- package/dist/native-leftover-postgres.d.ts +23 -0
- package/dist/native-leftover-postgres.d.ts.map +1 -0
- package/dist/native-leftover-postgres.js +55 -0
- package/dist/native-leftover-postgres.js.map +1 -0
- package/dist/native-leftover-services.d.ts +17 -0
- package/dist/native-leftover-services.d.ts.map +1 -0
- package/dist/native-leftover-services.js +93 -0
- package/dist/native-leftover-services.js.map +1 -0
- package/dist/native-pg-auth.d.ts.map +1 -1
- package/dist/native-pg-auth.js +2 -1
- package/dist/native-pg-auth.js.map +1 -1
- package/dist/native-port-lock.d.ts +37 -0
- package/dist/native-port-lock.d.ts.map +1 -0
- package/dist/native-port-lock.js +78 -0
- package/dist/native-port-lock.js.map +1 -0
- package/dist/native-realtime.d.ts +6 -3
- package/dist/native-realtime.d.ts.map +1 -1
- package/dist/native-realtime.js +65 -24
- package/dist/native-realtime.js.map +1 -1
- package/dist/native-roles-sql.d.ts.map +1 -1
- package/dist/native-roles-sql.js +2 -1
- package/dist/native-roles-sql.js.map +1 -1
- package/dist/native-stale-session.d.ts +17 -0
- package/dist/native-stale-session.d.ts.map +1 -0
- package/dist/native-stale-session.js +42 -0
- package/dist/native-stale-session.js.map +1 -0
- package/dist/native-storage-import.d.ts.map +1 -1
- package/dist/native-storage-import.js +6 -5
- package/dist/native-storage-import.js.map +1 -1
- package/dist/native-storage.d.ts +42 -7
- package/dist/native-storage.d.ts.map +1 -1
- package/dist/native-storage.js +196 -50
- package/dist/native-storage.js.map +1 -1
- package/dist/native-worker.d.ts +15 -0
- package/dist/native-worker.d.ts.map +1 -1
- package/dist/native-worker.js +26 -0
- package/dist/native-worker.js.map +1 -1
- package/dist/open-browser.d.ts +7 -0
- package/dist/open-browser.d.ts.map +1 -0
- package/dist/open-browser.js +26 -0
- package/dist/open-browser.js.map +1 -0
- package/dist/parent-watch.d.ts.map +1 -1
- package/dist/parent-watch.js +4 -8
- package/dist/parent-watch.js.map +1 -1
- package/dist/personal-access-token.d.ts +7 -0
- package/dist/personal-access-token.d.ts.map +1 -0
- package/dist/personal-access-token.js +11 -0
- package/dist/personal-access-token.js.map +1 -0
- package/dist/plan-sql.d.ts +30 -0
- package/dist/plan-sql.d.ts.map +1 -0
- package/dist/plan-sql.js +65 -0
- package/dist/plan-sql.js.map +1 -0
- package/dist/platform-settings-push.d.ts +15 -0
- package/dist/platform-settings-push.d.ts.map +1 -0
- package/dist/platform-settings-push.js +100 -0
- package/dist/platform-settings-push.js.map +1 -0
- package/dist/platform-settings.d.ts +81 -0
- package/dist/platform-settings.d.ts.map +1 -0
- package/dist/platform-settings.js +164 -0
- package/dist/platform-settings.js.map +1 -0
- package/dist/postgres-ctl.d.ts +45 -5
- package/dist/postgres-ctl.d.ts.map +1 -1
- package/dist/postgres-ctl.js +59 -21
- package/dist/postgres-ctl.js.map +1 -1
- package/dist/postgres-image.d.ts +27 -2
- package/dist/postgres-image.d.ts.map +1 -1
- package/dist/postgres-image.js +58 -13
- package/dist/postgres-image.js.map +1 -1
- package/dist/postgrest-release.d.ts +1 -1
- package/dist/postgrest-release.d.ts.map +1 -1
- package/dist/postgrest-release.js +3 -1
- package/dist/postgrest-release.js.map +1 -1
- package/dist/process-info.d.ts +14 -0
- package/dist/process-info.d.ts.map +1 -0
- package/dist/process-info.js +41 -0
- package/dist/process-info.js.map +1 -0
- package/dist/process-manager.d.ts +78 -4
- package/dist/process-manager.d.ts.map +1 -1
- package/dist/process-manager.js +128 -46
- package/dist/process-manager.js.map +1 -1
- package/dist/process-tree.d.ts +48 -0
- package/dist/process-tree.d.ts.map +1 -0
- package/dist/process-tree.js +141 -0
- package/dist/process-tree.js.map +1 -0
- package/dist/project-config.d.ts +121 -10
- package/dist/project-config.d.ts.map +1 -1
- package/dist/project-config.js +62 -1
- package/dist/project-config.js.map +1 -1
- package/dist/release-images.d.ts +21 -0
- package/dist/release-images.d.ts.map +1 -1
- package/dist/release-images.js +24 -0
- package/dist/release-images.js.map +1 -1
- package/dist/required-host-components.d.ts.map +1 -1
- package/dist/required-host-components.js +3 -5
- package/dist/required-host-components.js.map +1 -1
- package/dist/resolve-target.d.ts +42 -2
- package/dist/resolve-target.d.ts.map +1 -1
- package/dist/resolve-target.js +115 -21
- package/dist/resolve-target.js.map +1 -1
- package/dist/rest-cache-admin.d.ts +13 -0
- package/dist/rest-cache-admin.d.ts.map +1 -1
- package/dist/rest-cache-admin.js +36 -1
- package/dist/rest-cache-admin.js.map +1 -1
- package/dist/rest-ready.d.ts +6 -0
- package/dist/rest-ready.d.ts.map +1 -1
- package/dist/rest-ready.js +18 -2
- package/dist/rest-ready.js.map +1 -1
- package/dist/route-manifest.d.ts +24 -0
- package/dist/route-manifest.d.ts.map +1 -1
- package/dist/route-manifest.js +60 -2
- package/dist/route-manifest.js.map +1 -1
- package/dist/run-captured.d.ts +3 -1
- package/dist/run-captured.d.ts.map +1 -1
- package/dist/run-captured.js.map +1 -1
- package/dist/run-until-stopped.d.ts +3 -0
- package/dist/run-until-stopped.d.ts.map +1 -1
- package/dist/run-until-stopped.js +25 -11
- package/dist/run-until-stopped.js.map +1 -1
- package/dist/runtime-routes.d.ts +5 -0
- package/dist/runtime-routes.d.ts.map +1 -1
- package/dist/runtime-routes.js +10 -5
- package/dist/runtime-routes.js.map +1 -1
- package/dist/schema-ast-v2.d.ts +38 -0
- package/dist/schema-ast-v2.d.ts.map +1 -1
- package/dist/schema-ast-v2.js +2 -0
- package/dist/schema-ast-v2.js.map +1 -1
- package/dist/schema-reset.d.ts.map +1 -1
- package/dist/schema-reset.js +2 -0
- package/dist/schema-reset.js.map +1 -1
- package/dist/secret-sql.d.ts +13 -0
- package/dist/secret-sql.d.ts.map +1 -0
- package/dist/secret-sql.js +13 -0
- package/dist/secret-sql.js.map +1 -0
- package/dist/seed-default-export.d.ts +12 -0
- package/dist/seed-default-export.d.ts.map +1 -0
- package/dist/seed-default-export.js +44 -0
- package/dist/seed-default-export.js.map +1 -0
- package/dist/seed-ir.d.ts +8 -1
- package/dist/seed-ir.d.ts.map +1 -1
- package/dist/seed-ir.js +92 -6
- package/dist/seed-ir.js.map +1 -1
- package/dist/seed-prepare.d.ts +60 -0
- package/dist/seed-prepare.d.ts.map +1 -0
- package/dist/seed-prepare.js +115 -0
- package/dist/seed-prepare.js.map +1 -0
- package/dist/seed-remote.d.ts +22 -0
- package/dist/seed-remote.d.ts.map +1 -0
- package/dist/seed-remote.js +203 -0
- package/dist/seed-remote.js.map +1 -0
- package/dist/seed-report.d.ts +65 -0
- package/dist/seed-report.d.ts.map +1 -0
- package/dist/seed-report.js +98 -0
- package/dist/seed-report.js.map +1 -0
- package/dist/seed.d.ts +15 -2
- package/dist/seed.d.ts.map +1 -1
- package/dist/self-host-compose.d.ts +21 -1
- package/dist/self-host-compose.d.ts.map +1 -1
- package/dist/self-host-compose.js +349 -78
- package/dist/self-host-compose.js.map +1 -1
- package/dist/site-build-env.d.ts +31 -0
- package/dist/site-build-env.d.ts.map +1 -0
- package/dist/site-build-env.js +29 -0
- package/dist/site-build-env.js.map +1 -0
- package/dist/site-deploy.d.ts +52 -0
- package/dist/site-deploy.d.ts.map +1 -0
- package/dist/site-deploy.js +230 -0
- package/dist/site-deploy.js.map +1 -0
- package/dist/site-public-env.d.ts +67 -0
- package/dist/site-public-env.d.ts.map +1 -0
- package/dist/site-public-env.js +124 -0
- package/dist/site-public-env.js.map +1 -0
- package/dist/sso-admin.d.ts +15 -0
- package/dist/sso-admin.d.ts.map +1 -1
- package/dist/sso-admin.js +32 -9
- package/dist/sso-admin.js.map +1 -1
- package/dist/stack-exit-watch.d.ts +15 -0
- package/dist/stack-exit-watch.d.ts.map +1 -1
- package/dist/stack-exit-watch.js +41 -13
- package/dist/stack-exit-watch.js.map +1 -1
- package/dist/stack-folder.d.ts +28 -0
- package/dist/stack-folder.d.ts.map +1 -0
- package/dist/stack-folder.js +123 -0
- package/dist/stack-folder.js.map +1 -0
- package/dist/stack-running.d.ts +13 -0
- package/dist/stack-running.d.ts.map +1 -0
- package/dist/stack-running.js +44 -0
- package/dist/stack-running.js.map +1 -0
- package/dist/stack-setting-warnings.d.ts +8 -1
- package/dist/stack-setting-warnings.d.ts.map +1 -1
- package/dist/stack-setting-warnings.js +21 -1
- package/dist/stack-setting-warnings.js.map +1 -1
- package/dist/storage-provision.d.ts +12 -2
- package/dist/storage-provision.d.ts.map +1 -1
- package/dist/storage-provision.js +36 -11
- package/dist/storage-provision.js.map +1 -1
- package/dist/studio-admin-roles.d.ts +4 -4
- package/dist/studio-admin-roles.d.ts.map +1 -1
- package/dist/studio-admin-roles.js +6 -4
- package/dist/studio-admin-roles.js.map +1 -1
- package/dist/target-client.d.ts +13 -1
- package/dist/target-client.d.ts.map +1 -1
- package/dist/target-client.js +83 -17
- package/dist/target-client.js.map +1 -1
- package/dist/target-request.d.ts +5 -0
- package/dist/target-request.d.ts.map +1 -1
- package/dist/target-request.js +11 -2
- package/dist/target-request.js.map +1 -1
- package/dist/type-extractor.d.ts.map +1 -1
- package/dist/type-extractor.js +102 -10
- package/dist/type-extractor.js.map +1 -1
- package/dist/ui/clack-api.d.ts +2 -1
- package/dist/ui/clack-api.d.ts.map +1 -1
- package/dist/ui/clack-api.js +4 -4
- package/dist/ui/clack-api.js.map +1 -1
- package/dist/ui/clack.d.ts.map +1 -1
- package/dist/ui/clack.js +5 -2
- package/dist/ui/clack.js.map +1 -1
- package/dist/ui/dev/DevReadyPanelView.js +1 -1
- package/dist/ui/dev/DevReadyPanelView.js.map +1 -1
- package/dist/valkey-sidecar.d.ts +34 -13
- package/dist/valkey-sidecar.d.ts.map +1 -1
- package/dist/valkey-sidecar.js +65 -39
- package/dist/valkey-sidecar.js.map +1 -1
- package/dist/windows-processes.d.ts +7 -0
- package/dist/windows-processes.d.ts.map +1 -0
- package/dist/windows-processes.js +31 -0
- package/dist/windows-processes.js.map +1 -0
- package/dist/write-if-changed.d.ts +12 -0
- package/dist/write-if-changed.d.ts.map +1 -0
- package/dist/write-if-changed.js +32 -0
- package/dist/write-if-changed.js.map +1 -0
- package/package.json +7 -5
- package/releases/deno/VERSION +1 -1
- package/dist/commands/deploy-types.d.ts +0 -14
- package/dist/commands/deploy-types.d.ts.map +0 -1
- package/dist/commands/deploy-types.js +0 -38
- package/dist/commands/deploy-types.js.map +0 -1
- package/dist/systemd.d.ts +0 -26
- package/dist/systemd.d.ts.map +0 -1
- package/dist/systemd.js +0 -117
- package/dist/systemd.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,373 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
There is no 0.4, 0.5 or 0.6 release: this package went from 0.3.6 straight to 0.7.0, on npm and as git tags, so
|
|
4
|
+
no entries are missing from this file.
|
|
5
|
+
|
|
6
|
+
## 0.9.3
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **push, diff:** `supatype push --dry-run` and `supatype diff --sql` print the full SQL a push would
|
|
11
|
+
apply, after the change list, from the same engine call `supatype migrate` uses. A dry run applies
|
|
12
|
+
nothing, asks nothing, records no rename, deploys no hooks and exits 0, and shows destructive changes
|
|
13
|
+
with their risk comments without `--yes`. Supatype Cloud and a linked self-host server have no
|
|
14
|
+
endpoint that writes SQL without applying it, so there they print the change list and say so.
|
|
15
|
+
* **storage:** the extractor reads `Folder<N>` as a bucket-rule operand and refuses it in a model's
|
|
16
|
+
`access`, or with a position that is not a whole number from 1.
|
|
17
|
+
* **push, diff:** the access summary lists what each role can reach under the rules (new `effective`
|
|
18
|
+
field, printed by `diff` and `dev`), so a `Private` model no longer reads as full CRUD. `after`
|
|
19
|
+
is unchanged for `--json`.
|
|
20
|
+
* **push:** a warning names any field stored as jsonb because its TypeScript type has no column type
|
|
21
|
+
(a single string literal, say). The mapping is unchanged.
|
|
22
|
+
* **generate:** the generated client declares the schema's channels as `SupatypeChannels`, keyed by
|
|
23
|
+
pattern with each parameter's type (`"lot:{id}": { params: { id: string } }`), so
|
|
24
|
+
`realtime.channel()` autocompletes `lot:${string}` and `lobby:${string}`. Names that match no
|
|
25
|
+
declaration still type-check, since an `open` server admits them. Nothing is emitted when the
|
|
26
|
+
schema declares no channel.
|
|
27
|
+
* **realtime:** declare private channels in the schema. `export type LotChannel = Channel<"lot:{id}",
|
|
28
|
+
{ params: { id: UUID }, access: { join, send, track } }>` takes the same rules as a model, with the
|
|
29
|
+
channel's parameters standing where a model has columns (`In<"id", MyLots>`, and `Param<"id">`
|
|
30
|
+
inside a `Rows<>` filter). `send` can also hold `Event<"bid">` and `Payload<"amount", { kind:
|
|
31
|
+
"number"; min: 1 }>` inside `All<[...]>`, which the realtime server checks per message. A
|
|
32
|
+
pattern's last segment can be `*`. A declaration is refused at extract time when its pattern and
|
|
33
|
+
`params` disagree, when two declarations can match one topic, when `Param<>`, `Event<>` or
|
|
34
|
+
`Payload<>` appear anywhere but a channel's rules, or when a rule names something that is not a
|
|
35
|
+
parameter. Declaring a channel enforces its pattern for every client at once.
|
|
36
|
+
* **config:** `realtime.channels` is `"open"` (the default, so an existing project is unchanged) or
|
|
37
|
+
`"declared"`, which refuses broadcast and presence on a topic no declaration matches. It reaches
|
|
38
|
+
the database through push. `supatype init` writes `"declared"` for a new project.
|
|
39
|
+
* **diff, push:** list channel changes (added, removed, which operation's rule changed) and warn
|
|
40
|
+
when removing a declaration or turning `declared` on takes broadcast and presence away. The lines
|
|
41
|
+
appear once the engine reports them; an older engine says nothing.
|
|
42
|
+
* **push:** refuses a schema that declares channels, or sets `realtime.channels`, against a pinned
|
|
43
|
+
engine older than 0.11.0 (`ENGINE_MIN_FOR_CHANNELS`). An older engine drops both keys, so the push
|
|
44
|
+
would succeed with nothing enforcing the channels.
|
|
45
|
+
* **push, diff, doctor, adopt, dev, deploy:** a schema that declares channels or sets
|
|
46
|
+
`realtime.channels` is sent only to an engine or server that lists `private_channels` in its
|
|
47
|
+
capabilities, as identity columns already are with `identity_columns`. This is checked on its
|
|
48
|
+
own, apart from the version floor above, so an older engine can never drop the channels in
|
|
49
|
+
silence.
|
|
50
|
+
* **dev:** runs the same engine floor check as `supatype push` before applying a schema, native and
|
|
51
|
+
Docker alike. It skipped it, so a pinned older engine took channels and enforced nothing.
|
|
52
|
+
* **push, diff:** warn when a channel's `send` rule tests only `Event<>` or `Payload<>` and nothing
|
|
53
|
+
about the caller. Those nodes are checked by the realtime server and compile to TRUE in the
|
|
54
|
+
database, so `send: Event<"bid">` admits every caller, anon included. The warning names the channel
|
|
55
|
+
and suggests `send: All<[LoggedIn, Event<"bid">]>`. It is a warning, not an error, and is carried
|
|
56
|
+
to the engine in the schema's `warnings`.
|
|
57
|
+
* **deploy:** a Cloud deploy's create call sends the site's manifest, each file's NFC path, size and
|
|
58
|
+
sha256, and the app's `spa` flag (`build.spa`, or the framework's default), so the server can say
|
|
59
|
+
which files it already holds. This is the first of four steps toward hosting the site on the
|
|
60
|
+
project's own domain; until the server side lands, `deploy --app-only` against Cloud still ends
|
|
61
|
+
without a live site.
|
|
62
|
+
* **deploy:** a Cloud deploy uploads only the files the server says it lacks (`missing`), each to
|
|
63
|
+
`<uploadUrl>/<sha256>`, six at a time, so an unchanged build uploads nothing. Every call carries
|
|
64
|
+
`Authorization`, `X-Org-Id` and `X-Supatype-Environment`, every upload's status is checked, and a 5xx
|
|
65
|
+
or a dropped connection is retried three times. Any other refusal stops the deploy, naming the file
|
|
66
|
+
and the server's reason, before finalize. Uploads used to go by path and their answers were never read.
|
|
67
|
+
* **deploy:** a Cloud deploy checks finalize and prints the site's own address (`https://<ref>.<domain>`)
|
|
68
|
+
from its answer, not the control plane's API URL. A 502 `pointer_not_pushed` (the version is recorded
|
|
69
|
+
but the project's server was not told) is retried three times, since finalize is idempotent, and then
|
|
70
|
+
reported as "uploaded but not live". Any other refusal, such as `blobs_missing`, stops with the
|
|
71
|
+
server's reason. Finalize's answer was never read before, so a failed finalize looked like success.
|
|
72
|
+
* **deploy:** Cloud's own tier limit decides how large a site may be. The CLI no longer stops a Cloud
|
|
73
|
+
deploy at a fixed 500 MB; the server answers 413 and the deploy prints its reason (the site's size,
|
|
74
|
+
and the limit for the project's tier). `deploy --local` and a self-hosted link keep the 500 MB check,
|
|
75
|
+
since no server applies a limit there. The unused `commands/deploy-types.ts` tier table, which had no
|
|
76
|
+
`growth` tier and was never read, is deleted.
|
|
77
|
+
* **deploy:** `deploy --preview` against a Cloud link is refused before the config is read or anything
|
|
78
|
+
is built: "Previews are not available on Supatype Cloud yet". Deploy without `--preview` to publish to
|
|
79
|
+
production. `--schema-only`, `--local` and self-hosted links are unchanged.
|
|
80
|
+
* **deploy:** a site over its plan's size is a soft limit and still goes live. When Cloud's create
|
|
81
|
+
answer carries a `site_over_plan` warning, the deploy prints the site's size and the plan's in MB
|
|
82
|
+
and "Upgrade your plan before <date> to avoid overage charges", on every deploy while over. Other
|
|
83
|
+
warning codes print their message. Only a site over the tier's hard cap is refused (413
|
|
84
|
+
`site_too_large`, with the server's reason).
|
|
85
|
+
* **deploy:** `deploy status` prints the site's address first, then the live version, when it went
|
|
86
|
+
live, and the size against the plan ("80 MB of 50 MB plan"); when Cloud says the site is over
|
|
87
|
+
plan it adds the date to upgrade before. `deploy rollback` prints the address as well as the
|
|
88
|
+
version it went back to. Each line appears only when the server sends the field.
|
|
89
|
+
|
|
90
|
+
### Features
|
|
91
|
+
|
|
92
|
+
* **login:** `supatype login` signs in through the browser. It opens the accounts site (which the
|
|
93
|
+
control plane names at `/api/v1/cli/login/config`, or `SUPATYPE_ACCOUNTS_URL`) and always prints the URL; after you approve, type the
|
|
94
|
+
code the page shows into the terminal and the CLI stores the personal access token (`spt_...`)
|
|
95
|
+
the control plane sealed to this CLI's key. `--name` names the token, `--no-browser` only prints
|
|
96
|
+
the URL, and `--token <spt_...>` (or `SUPATYPE_ACCESS_TOKEN`) stores a token made in your account,
|
|
97
|
+
for CI. A personal access token is never renewed through `/auth/refresh`, and a refusal of one
|
|
98
|
+
says it was revoked or expired.
|
|
99
|
+
|
|
100
|
+
### Breaking Changes
|
|
101
|
+
|
|
102
|
+
* **login:** password login is gone. Sign-in on the platform now needs a Cloudflare Turnstile token a
|
|
103
|
+
terminal cannot give, so `supatype login --email --password` failed with `Login failed (400)`.
|
|
104
|
+
`--email`, `--password`, `SUPATYPE_EMAIL` and `SUPATYPE_PASSWORD` are no longer read. A session
|
|
105
|
+
an older CLI stored keeps working until it expires.
|
|
106
|
+
|
|
107
|
+
### Features
|
|
108
|
+
|
|
109
|
+
* **functions:** `functions env list`, `set` and `unset` take `--function <name>` to work on one
|
|
110
|
+
function's own values, which override a shared one. A linked self-hosted server serves them at
|
|
111
|
+
`/admin/v1/functions/<name>/env`, Supatype Cloud at `/projects/<ref>/functions/<name>/env`, and a
|
|
112
|
+
project that is not linked keeps them in `functions/.env.<name>.local`.
|
|
113
|
+
|
|
114
|
+
### Bug Fixes
|
|
115
|
+
|
|
116
|
+
* **push, generate:** the generated client registers array columns of exact values (`"bigint[]"`
|
|
117
|
+
and `"numeric[]"`, from the array's element type, `NUMERIC(19,4)` included), and types them as
|
|
118
|
+
the single values are: `bigint[]` for BIGINT elements and `string[]` for NUMERIC, DECIMAL and
|
|
119
|
+
MONEY. They were `number[]`, which a double rounds. Run `supatype push` to regenerate.
|
|
120
|
+
* **deploy:** the build step puts the app directory's `node_modules/.bin`, and every one above it, on PATH,
|
|
121
|
+
as `npm run` does, so the framework defaults (`vite build`, `astro build`, `next build`) and a bare
|
|
122
|
+
`buildCommand` find their binary. They failed with "'vite' is not recognized" before. The
|
|
123
|
+
`build.outputDirectory` doc now says it is relative to `build.directory` (`"dist"`, not `"web/dist"`).
|
|
124
|
+
* **dev (native):** a Valkey named in `SUPATYPE_VALKEY_ADDR` logs in with `SUPATYPE_VALKEY_PASSWORD` (and
|
|
125
|
+
`SUPATYPE_VALKEY_USERNAME`), or with no password, never the keyspace's. `init` writes a keyspace password
|
|
126
|
+
into every `.env`, and a Valkey with no password refused the server with WRONGPASS. A named Valkey that
|
|
127
|
+
used `SUPATYPE_KEYSPACE_PASSWORD` as its password now needs it as `SUPATYPE_VALKEY_PASSWORD`.
|
|
128
|
+
* **push:** a refused push names one `supatype rename <from> <new name>` line for a dropped table or column
|
|
129
|
+
with more than three possible new names. One table dropped beside eight added printed eight lines
|
|
130
|
+
naming it eight ways.
|
|
131
|
+
* **dev, generate (Docker):** a project that names its engine image in `SUPATYPE_ENGINE_IMAGE` writes its
|
|
132
|
+
types, seed builder and admin config with that image, the one it pushes with. The cached host engine
|
|
133
|
+
wrote them, and when it was older than the image it refused a schema the image had just pushed, three
|
|
134
|
+
times, while push still said "Schema pushed." The line the CLI writes from `versions.engine` does not
|
|
135
|
+
count: the host engine at that pin already matches it.
|
|
136
|
+
* **dev (native):** dev warns, with Deno's own error, when Deno cannot start in the project folder. A
|
|
137
|
+
`deno.lock` written by a newer Deno made the worker exit at once, and every function answered 502 with
|
|
138
|
+
an empty body and nothing in dev's output.
|
|
139
|
+
* **self-host:** `compose restart functions-worker` says to run `compose up` when `SUPATYPE_FUNCTIONS_DB_URL`
|
|
140
|
+
names `db` but db is not on the functions network yet. Only `up` recreates db onto it, and until
|
|
141
|
+
then every function using `ctx.dbUrl` failed with `getaddrinfo ENOTFOUND db`.
|
|
142
|
+
* **self-host:** `compose restart <service>` refuses a stack that is not running and names `compose up`.
|
|
143
|
+
It recreated the one service alone, with a database volume and networks for a stack that did not
|
|
144
|
+
exist, so a folder sharing a stopped stack's name got a stray container holding its own mount.
|
|
145
|
+
* **push (native):** no Studio link after a push or `admin create-user` on a native project. Native dev
|
|
146
|
+
runs no Studio, and the printed `/studio/` link answered 404.
|
|
147
|
+
* **dev (native):** functions get `ctx.dbUrl` only from `SUPATYPE_FUNCTIONS_DB_URL`, as on Docker. Native
|
|
148
|
+
dev handed every function the auth service's admin `DATABASE_URL`, a connection that skips row rules
|
|
149
|
+
and masking, and ignored `SUPATYPE_FUNCTIONS_DB_URL`.
|
|
150
|
+
* **self-host, dev:** the compose file passes `SUPATYPE_EXTERNAL_ANONYMOUS_USERS_ENABLED`, `REALTIME_CHANNELS`
|
|
151
|
+
and `REALTIME_CHANNEL_RECHECK_S` from `.env`. The docs turn anonymous sign-in on and tune channel
|
|
152
|
+
re-checks with them, and none reached a container, so `signInAnonymously()` stayed refused.
|
|
153
|
+
* **downloads:** a retried download says each failure in one sentence. The line read
|
|
154
|
+
`...; try again.. Retrying in 1s...`, a doubled full stop after every CDN message.
|
|
155
|
+
* **storage:** a bucket rule that cannot be rendered on `storage.objects` (one naming a model
|
|
156
|
+
column, `In`, `Exists`, `Matches`) is refused at push, naming the bucket and the operation. It
|
|
157
|
+
used to become `FALSE` with nothing said, so a documented registered-only rule on a bucket denied
|
|
158
|
+
everyone. `BucketOwner` on `create` does not bind the path: see the storage docs.
|
|
159
|
+
* **self-update, install, component downloads:** a stalled CDN no longer hangs the CLI. A request
|
|
160
|
+
fails only when no bytes have arrived for 60 s (`SUPATYPE_FETCH_TIMEOUT_MS` sets the window), with
|
|
161
|
+
no limit on total time, so a slow link still finishes. It is retried up to three times, an archive
|
|
162
|
+
retry resumes with an HTTP Range request from the bytes already received (a 200 answer restarts
|
|
163
|
+
from zero), checksums and signatures are checked on the complete file, and a failure names the URL
|
|
164
|
+
and says to try again. Archives show `Downloading supatype 0.9.2: 18 / 46 MB` in place on a
|
|
165
|
+
terminal, and a start and end line otherwise.
|
|
166
|
+
* **push, dev:** a model's `cache` block now switches the server cache on. The CLI wrote the allowlist
|
|
167
|
+
only into an `.supatype/api-config.json` that nothing created, so it did nothing and said nothing.
|
|
168
|
+
It now PATCHes `/admin/v1/config/rest` on the running stack (adding only newly declared tables) and
|
|
169
|
+
falls back to creating the file from the server's default shape. The `cache_max_ttl is 0` note
|
|
170
|
+
prints whenever a table declares a cache and the TTL is 0.
|
|
171
|
+
* **hooks:** the generated `hook()` and `hooks()` now pass the worker's function context through, so
|
|
172
|
+
`ctx.serviceRoleKey`, `ctx.url`, `ctx.anonKey`, `ctx.dbUrl` and `ctx.env` are typed and present on
|
|
173
|
+
every hook. A write a hook makes fires hooks again, bounded by the hook-depth header.
|
|
174
|
+
* **dev:** the functions watcher restarts the worker for a folder copied in or deleted (names with no
|
|
175
|
+
extension were dropped), and reports "restarted" only once the worker answers through the gateway.
|
|
176
|
+
* **admin:** when it removes `SUPATYPE_ADMIN_PASSWORD` from `.env` it now prints a line saying so.
|
|
177
|
+
* **functions:** `npm:postgres` 3.4.6 and later failed in the functions worker with
|
|
178
|
+
`Not implemented: LibuvStreamWrap.prototype.useUserBuffer`. The Deno pin moves from 2.2.0 to 2.9.8
|
|
179
|
+
(worker image, the CLI's `releases/deno/VERSION`, the `init` template comment, the hook-adapter
|
|
180
|
+
script and the example configs); Deno fixed the call in 2.8.0. The release mirror workflow must run
|
|
181
|
+
for `v2.9.8` before the CLI can download it. `npm:postgres` (latest), `npm:postgres@3.4.5` and
|
|
182
|
+
`npm:pg` all answered a query from a function on the new worker.
|
|
183
|
+
* **docs:** `ctx.dbUrl` no longer said to bypass row rules and field masking. They apply for the role the URL names, and only a superuser or `BYPASSRLS` role skips them. The `FunctionContext` JSDoc, the docs, the self-host example and the skill references now say so and say which database the URL ends in (`POSTGRES_DB`). Also documents `global()`, `meta.cacheStatus`, `pg_safeupdate`, presence echo, server logic in a Postgres function and a versions page, stamps every package changelog with the version it shipped in, and fails the release when one still says Unreleased.
|
|
184
|
+
* **functions:** `functions env unset` on a project that is not linked removes every line of
|
|
185
|
+
`.env.local` whose name is the key, even one that breaks the secret name rule (`OLD-NAME=x`), and
|
|
186
|
+
says how many it removed. It used to say the key was not set and leave the line.
|
|
187
|
+
* **dev:** on Linux the app URL (`http://localhost:18473/`) answered 502 for a Vite app. `supatype
|
|
188
|
+
dev` started Vite on `127.0.0.1`, and Docker Engine on Linux reaches the host through the docker0
|
|
189
|
+
bridge, not the loopback, so the gateway found nothing listening. On Linux Vite now listens on
|
|
190
|
+
every interface (`--host 0.0.0.0`), so other machines on the network can reach the dev server, as
|
|
191
|
+
they already reach Studio's. Docker Desktop on macOS and Windows forwards to the loopback, so
|
|
192
|
+
nothing changes there.
|
|
193
|
+
* **dev, init:** `supatype dev` sets `SUPATYPE_DEV_APP_HOST` on the app it starts, to the address
|
|
194
|
+
the app should listen on: `0.0.0.0` on Linux, `127.0.0.1` elsewhere. The `vite.config.ts` init
|
|
195
|
+
writes reads it, so a start script dev cannot add `--host` to (one that needs a shell, such as
|
|
196
|
+
`vite && ...`) reaches the gateway too. On Linux, when dev cannot set the address itself, the app
|
|
197
|
+
pane says to point the dev server's host at `SUPATYPE_DEV_APP_HOST`.
|
|
198
|
+
|
|
199
|
+
## 0.9.2 (2026-11-12)
|
|
200
|
+
|
|
201
|
+
### Breaking Changes
|
|
202
|
+
|
|
203
|
+
* **storage:** the storage service's S3 settings have no defaults that point somewhere. With
|
|
204
|
+
`STORAGE_BACKEND=s3` it used to fall back to `http://localhost:8333` and the SeaweedFS login
|
|
205
|
+
published in this repository for any setting left out. It now needs `S3_REGION` for AWS or
|
|
206
|
+
`S3_ENDPOINT` for another store, takes both keys or neither (neither uses the AWS SDK's own
|
|
207
|
+
credentials), and refuses to start otherwise, saying which setting is missing. The self-host
|
|
208
|
+
compose stack sets every one of them, so it is unaffected.
|
|
209
|
+
* **self-host:** the hidden `supatype self-host native` commands (`install-service`, `serve`,
|
|
210
|
+
`reload`, `status`, `logs`, `backup`) are removed. They were undocumented and untested, and
|
|
211
|
+
`serve` ran the server's built-in object store, which applies no storage read rules: anyone with
|
|
212
|
+
the anon key could read a private bucket. The systemd units `install-service` wrote started no
|
|
213
|
+
storage service either. Docker Compose (`supatype self-host compose`) is the self-host path; back
|
|
214
|
+
up a Compose stack with `pg_dump` against `DATABASE_URL`.
|
|
215
|
+
|
|
216
|
+
### Features
|
|
217
|
+
|
|
218
|
+
* **storage:** single-bucket S3 mode, as Supabase Storage does with `GLOBAL_S3_BUCKET`. Set
|
|
219
|
+
`S3_BUCKET` and every Supatype bucket is a key prefix inside that one S3 bucket. The service never
|
|
220
|
+
creates an S3 bucket or puts a bucket policy, the S3 bucket stays private, and the keys need only
|
|
221
|
+
read, write, list and delete on it. Without `S3_BUCKET`, each Supatype bucket still gets an S3
|
|
222
|
+
bucket of its own, now named `S3_BUCKET_PREFIX` then the bucket's id. A bucket's `s3BucketPolicy`
|
|
223
|
+
is never applied in single-bucket mode, since it would cover every bucket at once. The storage
|
|
224
|
+
service refuses it with 400 on a bucket made or changed through its API.
|
|
225
|
+
* **self-host, dev, init:** `storage: { production: "s3" }` in supatype.config.ts (init writes it
|
|
226
|
+
from its "Production storage?" answer) makes `self-host compose` run the storage service against
|
|
227
|
+
your own S3 bucket, with no SeaweedFS in the stack. Native `dev` with `storage: { provider: "s3" }`
|
|
228
|
+
runs the storage service against the bucket in `.env`, so access rules apply there too.
|
|
229
|
+
* **auth:** `auth.email.enabled: false` in supatype.config.ts turns email-and-password sign-up and
|
|
230
|
+
sign-in off (with magic links and password recovery) on native dev, Docker dev and self-host; a
|
|
231
|
+
`SUPATYPE_EXTERNAL_EMAIL_ENABLED` in `.env` wins. Studio's auth Configuration page names the key
|
|
232
|
+
for it and for email confirmation.
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
### Bug Fixes
|
|
239
|
+
|
|
240
|
+
* **dev:** a project's own running database on the default port keeps it when `.env` names no port,
|
|
241
|
+
instead of being moved to the next free port and saved there.
|
|
242
|
+
* **seed:** a plain `where` in `$if` takes bigints and compares decimal columns exactly, as an
|
|
243
|
+
upsert's `where` does, and says plainly that a reference cannot be compared there.
|
|
244
|
+
* **seed:** `$if` takes `where: { name: "x" }`, each column equal to its value like an upsert's
|
|
245
|
+
`where`, as well as `eq()` and the other predicates. The plain form failed with "not valid IR:
|
|
246
|
+
missing field type" (#303).
|
|
247
|
+
* **seed:** array columns can be seeded. `tags: ["a", "b"]` and `tags: []` failed with "expression is
|
|
248
|
+
of type text". Needs schema engine 0.10.1.
|
|
249
|
+
* **dev:** Ctrl+C while a Docker dev is still starting now says "Stopped during start.", takes the
|
|
250
|
+
stack down and exits 130, as native dev does. It said "Shutting down…" and exited 0.
|
|
251
|
+
* **dev, functions serve:** stopping dev or `functions serve` now ends everything Supatype's
|
|
252
|
+
processes started, including the Deno functions worker native dev's server runs and whatever
|
|
253
|
+
Deno itself starts, on Ctrl+C, SIGTERM, a forced quit or a crash, so the next run no longer finds
|
|
254
|
+
the functions port taken. Windows ends the whole process tree. Linux and macOS give each process a
|
|
255
|
+
process group and end the group.
|
|
256
|
+
* **dev:** a Vite app started by `supatype dev` now listens on the address and port the app proxy forwards
|
|
257
|
+
to (`--host 127.0.0.1 --port <upstream port> --strictPort`), and keeps its script's own flags. On Windows,
|
|
258
|
+
Vite listened on [::1] while the proxy dialled 127.0.0.1, so the App URL answered 502 or showed another
|
|
259
|
+
project's app. `init` now checks the Vite port is free on both loopbacks and offers the next free one.
|
|
260
|
+
* **dev:** before starting your app, `dev` now ends only a leftover process of this project's own. Another
|
|
261
|
+
program on the app's port is left running, and dev says `port 5173 is used by another program (pid X)`
|
|
262
|
+
instead of starting the app. Two projects on one port used to end each other's dev server every few
|
|
263
|
+
seconds, which showed as the app exiting with code 1 and no error.
|
|
264
|
+
* **dev and every command that checks Docker:** a Docker that is running but slow to answer is now
|
|
265
|
+
waited for, up to 60 seconds, with a "Waiting for Docker to answer" line, instead of being reported
|
|
266
|
+
as not running after 10 seconds. `SUPATYPE_DOCKER_TIMEOUT` changes the wait. A Docker that refuses
|
|
267
|
+
the connection or is paused still fails at once.
|
|
268
|
+
* **dev:** the "Services running" panel no longer prints the Postgres password or the full
|
|
269
|
+
service_role key, so neither lands in CI logs. The database URL is masked as `status` masks it,
|
|
270
|
+
and the key is shown as a fingerprint pointing at `SERVICE_ROLE_KEY` in `.env`. Native dev now
|
|
271
|
+
fills a blank or missing `SERVICE_ROLE_KEY` in `.env` with the key the stack runs with, as Docker
|
|
272
|
+
dev does, and never replaces one you set.
|
|
273
|
+
* **generate:** the client's types now include the columns the engine adds for `timestamps: true` and
|
|
274
|
+
`softDelete: true` (`created_at`, `updated_at`, `deleted_at`), filled by the database and so
|
|
275
|
+
optional on insert, so selecting `updated_at` no longer fails `tsc`. Hook row types include them too.
|
|
276
|
+
* **schema:** `WithPublishable<{ ... }>` now adds the nullable `published_at` column, as
|
|
277
|
+
`{ ... } & Publishable` already did. The wrapper used to drop it, so the two spellings of one type
|
|
278
|
+
built different tables. A `published_at` the model declares itself keeps its own shape.
|
|
279
|
+
* **client:** `single()` on a write no longer declares a `count` it never reads, so the client source
|
|
280
|
+
compiles under `noUnusedLocals`. The package now checks that flag itself.
|
|
281
|
+
* **client:** `.range()` now sends `offset` and `limit` like supabase-js, so `.limit(n).range(a, b)` and
|
|
282
|
+
`useQuery(..., { limit, offset })` no longer fail with 416, and a cached read of one page is no longer
|
|
283
|
+
served for another page. Whichever of `limit()` and `range()` is called last sets the page size.
|
|
284
|
+
* **vue, svelte, solid:** query options can be a ref or getter (Vue), a store (Svelte) or an accessor
|
|
285
|
+
(Solid), and the query runs again when they change. Before, sort, page and filter were read once.
|
|
286
|
+
* **react:** `useQuery` with an `offset` and no `limit` reads a page of 100 rows, as the Vue, Svelte
|
|
287
|
+
and Solid queries do, instead of ignoring the offset.
|
|
288
|
+
* **push:** a push to the Docker stack whose step after the schema fails (starting the stack, waiting
|
|
289
|
+
for the gateway, creating a bucket) now says the schema was applied but the push did not finish,
|
|
290
|
+
prints no success line, and exits 1, as native and linked pushes do. It printed "Schema pushed."
|
|
291
|
+
and exited 0, so pipelines passed with buckets missing (#301).
|
|
292
|
+
* **push:** a push with no `SUPATYPE_KONG_PORT` in `.env` no longer waits 120 seconds on the wrong
|
|
293
|
+
port. It took the project's own running gateway on 18473 for another program's, moved to 18481
|
|
294
|
+
where nothing listened, and silently skipped creating buckets.
|
|
295
|
+
* **schema:** a bucket's `s3BucketPolicy` that is not a JSON object is refused when the schema is
|
|
296
|
+
read, naming the bucket. A push writes the bucket through the engine, so the storage service's own
|
|
297
|
+
check never saw it and the bad policy was stored without being applied.
|
|
298
|
+
* **dev:** native dev no longer falls back to the server's built-in object store when the storage
|
|
299
|
+
service does not start. That store applied no storage read rules, so any token, the anon key
|
|
300
|
+
included, could read or sign any object in a private bucket. Storage is now off instead:
|
|
301
|
+
`/storage/v1` answers 503 "storage service is not running", dev says why and how to fix it, and
|
|
302
|
+
the stored files come back on the next start.
|
|
303
|
+
* **cli:** the npm package now installs on Node.js 18 and later, not only 22, and an older Node is
|
|
304
|
+
told which version to install. 0.8.0 to 0.9.1 asked for Node 22, which the package never needed,
|
|
305
|
+
so npm on Node 18 or 20 quietly installed 0.7.0 instead of the latest release.
|
|
306
|
+
* **self-host:** a self-hosted stack now sends a confirmation link with every new email sign-up
|
|
307
|
+
unless `auth.email.enableConfirmations` is `false`; it used to confirm every sign-up at once, so
|
|
308
|
+
anyone could sign up with an address they do not own. Local dev still confirms at once.
|
|
309
|
+
* **auth:** the CLI no longer writes `SUPATYPE_MAILER_AUTOCONFIRM` into `.env`, so a value you set
|
|
310
|
+
there and restart with is kept, as the auth docs say; before, every start rewrote it from the
|
|
311
|
+
config. The line an earlier CLI wrote is taken out once, with a message saying so, and `init`
|
|
312
|
+
marks new projects so their own line is never taken out.
|
|
313
|
+
* **examples:** kitchen-sink, supabucks, framework-parity and expo-auth's web export run from a
|
|
314
|
+
plain `vite build` / `expo export` again: the page loads `/supatype-env.js` and the client reads
|
|
315
|
+
the anon key from it, so a build no longer shows a blank page after `dev` or `keys`, and never
|
|
316
|
+
ships the local stack's key. Each example's `.gitignore` now ignores `.env.*.local`.
|
|
317
|
+
* **keys:** an anon key written with no API URL in `.env` goes to `.env.development.local`, not
|
|
318
|
+
`.env`, so a plain production build no longer bakes the local stack's key.
|
|
319
|
+
* **realtime:** realtime no longer makes Postgres log six lines every 100 ms while nothing is
|
|
320
|
+
changing. It reads the replication slot only once the WAL has moved past it, so an idle stack
|
|
321
|
+
stopped writing about 0.8 GB of database log a day.
|
|
322
|
+
* **self-host:** every container in the self-host and Docker dev compose file now rotates its log
|
|
323
|
+
(json-file, 10 MB x 5 files), so a Linux server's disk no longer fills with container logs. Set
|
|
324
|
+
`SUPATYPE_LOG_MAX_SIZE` and `SUPATYPE_LOG_MAX_FILE` in `.env` to change the sizes.
|
|
325
|
+
* **gateway:** Docker dev and self-host now answer 400 to an API or Studio request whose path has an
|
|
326
|
+
empty, `.` or `..` part (`%2E` too), as native does. Kong used to resolve these first, so `x/../a`
|
|
327
|
+
wrote the storage object `a` and `/studio/../auth/v1/...` reached auth. Your app's own paths are
|
|
328
|
+
not checked and reach it as before.
|
|
329
|
+
* **client:** `createClient` drops a trailing `/` from its URL, so `https://api.example.com/` no
|
|
330
|
+
longer builds `//rest/v1/...`, which the gateway now refuses and native never routed.
|
|
331
|
+
* **storage:** a private bucket no longer tells a caller its read rule refuses which file names
|
|
332
|
+
exist: download, authenticated download and signing answer 403 for a missing name exactly as for
|
|
333
|
+
one that exists, where they used to answer 404 "Object not found" for a missing name. A caller the
|
|
334
|
+
rule lets read the name still gets 404 for one that is not there.
|
|
335
|
+
* **init, generate:** the Next.js `/supatype-env.js` route works on a new create-next-app. Next 16
|
|
336
|
+
turns on `cacheComponents`, which refuses the route's `export const dynamic` with a 500; the route
|
|
337
|
+
is now only `export { GET } from "@supatype/ssr/next"`, and `GET` reads the request, which keeps it
|
|
338
|
+
rendered per request (not prerendered with the build machine's values) on Next 14, 15 and 16.
|
|
339
|
+
`supatype generate`, which `prepare` runs on install, replaces a route 0.9.1 wrote while it is
|
|
340
|
+
unchanged, warns about a changed one that still has the line, and warns when the installed
|
|
341
|
+
`@supatype/ssr` is older than 0.9.2. The docs' server helper awaits `connection()`, so Next 16 no
|
|
342
|
+
longer logs a `Date.now()` prerender error, and says where to put it with or without `src/`.
|
|
343
|
+
* **realtime:** `channel(name).on("postgres_changes", { table })` and `useSubscription` now watch
|
|
344
|
+
the `public` schema when no `schema` is given, as the docs say. A channel name with a colon, such
|
|
345
|
+
as `post:42`, was read as `schema:table` even when the listener named its table, so the
|
|
346
|
+
subscription reported SUBSCRIBED and delivered nothing. The realtime server reads a subscribe
|
|
347
|
+
message the same way. The name is still read as `schema:table` when no table is given.
|
|
348
|
+
* **react:** `useQuery`'s `refetch`, `useAuth`'s sign-in and sign-out methods, and
|
|
349
|
+
`usePasswordRecovery`'s `finish` now keep the same identity across renders, so an effect can list
|
|
350
|
+
them as dependencies. A new function on every render made `useEffect(() => refetch(), [refetch])`
|
|
351
|
+
loop, sending thousands of requests a second and ending in "Maximum update depth exceeded".
|
|
352
|
+
* **init, dev:** `supatype dev` no longer starts itself as the app. In 0.9.1, `init` with "Local dev
|
|
353
|
+
server" and the script prompt left at its default wrote `app.start: "dev"`, and in a new folder
|
|
354
|
+
`dev` is init's own `supatype dev`, so dev ran a second copy in its app pane that failed and was
|
|
355
|
+
restarted for ever. `init` now asks about Vite first: a Vite app runs the `vite` script at Vite's
|
|
356
|
+
URL, with nothing more to ask. Without Vite it offers the project's own `dev` or `start`, never one
|
|
357
|
+
that runs `supatype dev`, and refuses any script that runs it. `dev` refuses such a script too, saying to
|
|
358
|
+
set `app.start`, so a project 0.9.1 made needs only that one edit. A `supatype dev` reached some
|
|
359
|
+
other way (`npm run supatype:dev`, `concurrently`) stops at once with the same advice, and the app
|
|
360
|
+
pane leaves it stopped.
|
|
361
|
+
* **dev:** a service that keeps crashing as it starts is no longer restarted every 30 seconds for
|
|
362
|
+
ever. After 5 crashes in a row, each within 5 seconds of its start, dev says so once and retries
|
|
363
|
+
less often, the wait doubling past 30 seconds, so a fix to what it needs is still picked up. Once
|
|
364
|
+
the wait would reach 5 minutes, about 8 minutes in, dev leaves it stopped and says to fix the
|
|
365
|
+
error and restart `supatype dev`. This covers the app, Studio, and on a native project the server,
|
|
366
|
+
PostgREST, realtime and storage. Realtime stopped this way is switched off at the gateway, as it
|
|
367
|
+
already was after a clean exit. A run that lasts longer starts the count over, and the wait
|
|
368
|
+
before the next restart goes back to 1 second instead of staying at the longest it reached.
|
|
369
|
+
|
|
370
|
+
## 0.9.1 (2026-11-09)
|
|
4
371
|
|
|
5
372
|
### Breaking Changes
|
|
6
373
|
|
|
@@ -19,21 +386,46 @@
|
|
|
19
386
|
run, and exit 1. They reached the stopped stack's API and failed with `Cannot reach` or a
|
|
20
387
|
missing `SERVICE_ROLE_KEY`. An API address named by `SUPATYPE_URL` or `SUPATYPE_API_URL` in
|
|
21
388
|
`.env`, a linked project's `functions invoke`, and a native project are unaffected.
|
|
22
|
-
* **
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
389
|
+
* **client:** `SupatypeError` is a class, and the one error type every `{ data, error }` result
|
|
390
|
+
carries, so `error instanceof Error` holds and `String(error)` reads the message instead of
|
|
391
|
+
`[object Object]`. The class the SDK throws, which was called `SupatypeError`, is now
|
|
392
|
+
`SupatypeCodedError` (still with a required `code` and a `helpUrl`), and its `statusCode` is
|
|
393
|
+
`status`. `PostgrestError`'s `details` and `hint` are absent rather than `null` when the server
|
|
394
|
+
gave none. The full entry is in the `@supatype/client` changelog.
|
|
395
|
+
|
|
396
|
+
**How to move from 0.9.0.** Two changes need action.
|
|
397
|
+
|
|
398
|
+
The error class (`@supatype/client`). Code that catches the SDK's thrown errors by class, builds
|
|
399
|
+
one, or reads `statusCode`, renames the class and the field. Code that only reads a result's
|
|
400
|
+
`error.message`, `code`, `status`, `field`, `hint` or `details` needs no change. A test comparing a
|
|
401
|
+
result's error with `toEqual` against a plain object compares `{ ...error }` instead, and a check
|
|
402
|
+
for `details === null` or `hint === null` checks for `undefined`.
|
|
403
|
+
|
|
404
|
+
```ts
|
|
405
|
+
// 0.9.0
|
|
406
|
+
import { SupatypeError } from "@supatype/client"
|
|
407
|
+
|
|
408
|
+
function report(e: unknown): void {
|
|
409
|
+
if (e instanceof SupatypeError) console.error(e.code, e.statusCode, e.helpUrl)
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
// 0.9.1
|
|
413
|
+
import { SupatypeCodedError } from "@supatype/client"
|
|
414
|
+
|
|
415
|
+
function report(e: unknown): void {
|
|
416
|
+
if (e instanceof SupatypeCodedError) console.error(e.code, e.status, e.helpUrl)
|
|
417
|
+
}
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
`instanceof SupatypeError` now holds for every error the SDK throws and every result's error, so
|
|
421
|
+
use `SupatypeCodedError` when the code relies on `code` always being there or on `helpUrl`.
|
|
422
|
+
|
|
423
|
+
The local stack. `push`, `diff`, `seed` and the other commands above no longer start a stopped
|
|
424
|
+
stack. Start it first: `supatype dev` on a development machine (in another terminal, or before the
|
|
425
|
+
command), or `supatype self-host compose up -d` on a server. A CI job that ran `supatype push`,
|
|
426
|
+
`diff` or `seed` against a fresh runner brings the stack up as its own step before them, and checks
|
|
427
|
+
`seed`'s exit code 2 as well as 1. A job that reaches a linked project, passes `--connection`, or
|
|
428
|
+
sets `connection` in the config is unaffected.
|
|
37
429
|
|
|
38
430
|
### Features
|
|
39
431
|
|
|
@@ -104,57 +496,10 @@
|
|
|
104
496
|
summary prints no block. Many-to-many junction tables are listed too, as `post_tags (link)`, and
|
|
105
497
|
a link whose end reads it through its own read rule says what it denies and why
|
|
106
498
|
(`none (read denied: an end's read rule reads this link table)`).
|
|
107
|
-
|
|
108
499
|
* **push:** prints the same access block before it applies or asks to confirm, in a terminal and
|
|
109
500
|
with `--yes` alike.
|
|
110
|
-
|
|
111
501
|
* **dev:** after a push applies, prints the access lines it changed (`question none -> read`),
|
|
112
502
|
and nothing when no line changed.
|
|
113
|
-
|
|
114
|
-
* **push:** `--run-hooks` fires after-hooks for the rows a push's own data migrations rewrite (column
|
|
115
|
-
conversions, block moves, kind changes). Without it they are skipped, as seeds are. Against an
|
|
116
|
-
engine whose capabilities do not list `run_hooks`, the push stops before anything is sent.
|
|
117
|
-
|
|
118
|
-
* **init:** `supatype init <dir> --example <name>` starts from `examples/<name>` of the release
|
|
119
|
-
matching the CLI (`v<version>` on GitHub), with every `workspace:` dependency pinned to
|
|
120
|
-
`^<version>`. An unknown name is refused with the list of examples in that release, and so is an
|
|
121
|
-
example holding a file named with `..`, a backslash, a NUL, a leading drive (`C:`) or an absolute
|
|
122
|
-
path, or one that resolves outside the directory; nothing is written then. A colon anywhere in a
|
|
123
|
-
name is refused too, since on Windows `docs/a:b.md` writes a hidden stream of a file `docs/a`.
|
|
124
|
-
Such a name elsewhere in the repository does not stop an example. Schema snapshots are restored
|
|
125
|
-
with the same checks, and `push` refuses a schema file named in a way restore would refuse.
|
|
126
|
-
`supatype dev` warns instead and pushes without a snapshot, so it does not stop on every save.
|
|
127
|
-
* **seed:** `authUser: { connect: { id } }` on a relation to the auth user (`RelatedTo<SupatypeAuthUser>`)
|
|
128
|
-
writes the relation's key column. It failed with "`supatype:user` is not a model in this schema".
|
|
129
|
-
The generated `...Create` type still offers the key column (`auth_user_id`) rather than `authUser`;
|
|
130
|
-
that comes from the engine.
|
|
131
|
-
* **schema:** `Geo<"polygon">` and `Geo<"linestring">` compile to `GEOGRAPHY(POLYGON, 4326)` and
|
|
132
|
-
`GEOGRAPHY(LINESTRING, 4326)`. Every `Geo` field was a point whatever it said; a bare `Geo` still is.
|
|
133
|
-
* **keys:** `supatype keys` writes into `.env` when there is one, filling only the blank keys, as
|
|
134
|
-
`--write` did. `--print` only prints. `--write` still works, so scripts and docs written for 0.7.0
|
|
135
|
-
keep running. With no `.env` the keys are printed, with a line saying how to have them written.
|
|
136
|
-
`--print` with no secret anywhere exits 1 rather than printing keys signed with one it made up and
|
|
137
|
-
kept nowhere. `--print` checks the secret as writing does, since printed keys end up in a `.env`
|
|
138
|
-
all the same: at least 32 characters, and for a given one, no whitespace, `#` or quotes.
|
|
139
|
-
* **keys, self-host, init, dev:** one rule for the `JWT_SECRET` keys are signed with. `.env`'s always
|
|
140
|
-
wins. A shell `JWT_SECRET` is used only when `.env` has none, and is then written into `.env`; one
|
|
141
|
-
that differs from `.env`'s gets a single warning line saying `.env`'s is used, and is never
|
|
142
|
-
refused. Only a `keys --secret` that differs from `.env`'s is refused. Docker Compose reads the
|
|
143
|
-
shell ahead of `.env`, so every compose command now runs without the shell's `JWT_SECRET`,
|
|
144
|
-
`ANON_KEY` and `SERVICE_ROLE_KEY` when `.env` defines that name, and without a shell key the stack
|
|
145
|
-
would not accept under `.env`'s `JWT_SECRET` (another secret, another role, or expired):
|
|
146
|
-
`supatype dev` on docker with a different shell `JWT_SECRET` started services that refused every
|
|
147
|
-
key with 401. A shell key the stack accepts still fills a blank one. `push`, `status` and the
|
|
148
|
-
other commands calling the local stack follow the same rule, and send `.env`'s `SERVICE_ROLE_KEY`,
|
|
149
|
-
the name the stack is started with, and never a `SUPATYPE_SERVICE_ROLE_KEY` there. When a
|
|
150
|
-
`JWT_SECRET` is newly written into `.env` (given or generated), `keys` and `self-host compose up`
|
|
151
|
-
sign both keys again and say so, since keys already there cannot verify against it. A secret is
|
|
152
|
-
checked before anything is written: at least 32 characters, and for one written into `.env`, no
|
|
153
|
-
whitespace, `#` or quotes. `compose up` used to write keys signed with a short secret and then
|
|
154
|
-
refuse it, leaving keys that were never re-signed once the secret was fixed. `init` warns and
|
|
155
|
-
generates a secret when the shell's is unusable, and never exits mid-wizard over the keys.
|
|
156
|
-
* **keys, dev:** `NEXT_PUBLIC_SUPATYPE_ANON_KEY` is written beside the `VITE_`, `PUBLIC_` and
|
|
157
|
-
`EXPO_PUBLIC_` copies, and `NEXT_PUBLIC_SUPATYPE_URL` wherever the other URL copies are.
|
|
158
503
|
* **build:** `supatype build [--env <name>] [--allow-local] [-- <command...>]` runs the app's
|
|
159
504
|
production build (the package.json `build` script through the project's package manager, or the
|
|
160
505
|
command after `--`) with the deployment's API URL and anon key under every front-end name
|
|
@@ -296,7 +641,6 @@
|
|
|
296
641
|
generated files written. It stayed at "Services running." through every save: the renderer took
|
|
297
642
|
the console over once the dashboard was drawn, and the pane's filter dropped the access lines
|
|
298
643
|
besides.
|
|
299
|
-
|
|
300
644
|
* **dev, push:** a stack service that exits while the CLI waits for the API gateway stops the wait.
|
|
301
645
|
With the server container exited on a fatal config error, `supatype dev` sat at `Waiting for API
|
|
302
646
|
gateway...` for 120 s, failed naming the gateway's health, and then removed the containers, so
|
|
@@ -398,7 +742,6 @@
|
|
|
398
742
|
anon key now stops before building, listing what it tried (`--allow-local` takes a local
|
|
399
743
|
address). The install and build steps run through cmd.exe on Windows, where `npm` and `pnpm` could
|
|
400
744
|
not be started without it.
|
|
401
|
-
|
|
402
745
|
* **init, dev:** Windows no longer asks to let `supatype` through its firewall. Checking whether a
|
|
403
746
|
port was free bound it on every address (`0.0.0.0`), which Windows treats as a program wanting
|
|
404
747
|
network access, and it remembers the answer per program file, so it asked again after every CLI
|
|
@@ -417,6 +760,34 @@
|
|
|
417
760
|
pushing. Native dev also pushes one save at a time, as docker dev already did: a save made during
|
|
418
761
|
a push is pushed once that push is done. Every command that runs the engine runs it the same
|
|
419
762
|
way, with the same results and errors.
|
|
763
|
+
* **push:** a Docker push that applied the schema exits 0 when a step after it fails on the running
|
|
764
|
+
stack (its `up -d`, the gateway wait, the buckets or the first admin), warning `The schema was
|
|
765
|
+
applied, but a step after it failed` with the reason. A start that failed on a port another
|
|
766
|
+
program held made push exit 1 with the schema in.
|
|
767
|
+
* **push, diff, adopt, pull:** on a running stack these no longer run `docker compose up -d db`
|
|
768
|
+
before they reach its database. Every layout already publishes Postgres on the port the host
|
|
769
|
+
engine connects to, so the call had nothing to start, and could recreate the database container
|
|
770
|
+
when its definition had changed; with `overrides.engine` on a dev stack it could also move the dev
|
|
771
|
+
database port under a running database first. A running stack whose `db`
|
|
772
|
+
container has stopped is now refused with the "local stack isn't running" message rather than
|
|
773
|
+
having its database started.
|
|
774
|
+
|
|
775
|
+
## 0.9.0 (2026-11-04)
|
|
776
|
+
|
|
777
|
+
### Breaking Changes
|
|
778
|
+
|
|
779
|
+
* **hooks:** `AfterDeleteContext` has no `filter`. After-hooks are fed from the database's change log,
|
|
780
|
+
which records the rows a write changed rather than the request that changed them, so there is no
|
|
781
|
+
filter to give. `ctx.old` replaces it: the deleted rows themselves, as they were. A handler reading
|
|
782
|
+
`ctx.filter` in an `afterDelete` no longer compiles; read `ctx.old` instead.
|
|
783
|
+
|
|
784
|
+
### Features
|
|
785
|
+
|
|
786
|
+
* **push:** `--run-hooks` fires after-hooks for the rows a push's own data migrations rewrite (column
|
|
787
|
+
conversions, block moves, kind changes). Without it they are skipped, as seeds are. Against an
|
|
788
|
+
engine whose capabilities do not list `run_hooks`, the push stops before anything is sent.
|
|
789
|
+
|
|
790
|
+
### Bug Fixes
|
|
420
791
|
|
|
421
792
|
* **npm:** the CLI works in an app that installs React 19. npm hoisted the CLI's `ink` into the
|
|
422
793
|
app's `node_modules`, where it loaded the app's React rather than the CLI's own React 18, and
|
|
@@ -465,6 +836,68 @@
|
|
|
465
836
|
* **init:** in an existing package.json, `@supatype/cli` and `@supatype/types` go in
|
|
466
837
|
`devDependencies` as they do for a new project, and the `seed` script runs `supatype seed`. It ran
|
|
467
838
|
`tsx seed.ts`, which loads the seed module without calling it.
|
|
839
|
+
|
|
840
|
+
## 0.8.0 (2026-11-02)
|
|
841
|
+
|
|
842
|
+
### Breaking Changes
|
|
843
|
+
|
|
844
|
+
* **schema:** a `?` on a model field (`due?: string`) is refused, naming `Model.field` and saying to
|
|
845
|
+
write `Optional<>`. It read as nullable but compiled to a `NOT NULL` column.
|
|
846
|
+
* **generate:** `supatype generate --connection` is refused as an unknown option. Generate writes the
|
|
847
|
+
types from the schema file and never opened a database, so the option was accepted and ignored.
|
|
848
|
+
* **seed:** a seed file's `export const config = { transaction: ... }` is refused, and `transaction`
|
|
849
|
+
is gone from `SeedConfig`. It was validated and never sent: every seed file runs in a transaction
|
|
850
|
+
of its own (all of them in one with `--atomic`), and the engine cannot run one outside it. Any
|
|
851
|
+
other key `config` does not have (a misspelt `runonce`, say) is refused too, rather than ignored.
|
|
852
|
+
* **realtime:** the service's process entry is `dist/main.js`; `dist/index.js` only exports and no
|
|
853
|
+
longer starts a server, so an `overrides.realtime` naming `packages/realtime/dist/index.js` exits
|
|
854
|
+
at once. Point it at `packages/realtime/dist/main.js`.
|
|
855
|
+
|
|
856
|
+
### Features
|
|
857
|
+
|
|
858
|
+
* **init:** `supatype init <dir> --example <name>` starts from `examples/<name>` of the release
|
|
859
|
+
matching the CLI (`v<version>` on GitHub), with every `workspace:` dependency pinned to
|
|
860
|
+
`^<version>`. An unknown name is refused with the list of examples in that release, and so is an
|
|
861
|
+
example holding a file named with `..`, a backslash, a NUL, a leading drive (`C:`) or an absolute
|
|
862
|
+
path, or one that resolves outside the directory; nothing is written then. A colon anywhere in a
|
|
863
|
+
name is refused too, since on Windows `docs/a:b.md` writes a hidden stream of a file `docs/a`.
|
|
864
|
+
Such a name elsewhere in the repository does not stop an example. Schema snapshots are restored
|
|
865
|
+
with the same checks, and `push` refuses a schema file named in a way restore would refuse.
|
|
866
|
+
`supatype dev` warns instead and pushes without a snapshot, so it does not stop on every save.
|
|
867
|
+
* **seed:** `authUser: { connect: { id } }` on a relation to the auth user (`RelatedTo<SupatypeAuthUser>`)
|
|
868
|
+
writes the relation's key column. It failed with "`supatype:user` is not a model in this schema".
|
|
869
|
+
The generated `...Create` type still offers the key column (`auth_user_id`) rather than `authUser`;
|
|
870
|
+
that comes from the engine.
|
|
871
|
+
* **schema:** `Geo<"polygon">` and `Geo<"linestring">` compile to `GEOGRAPHY(POLYGON, 4326)` and
|
|
872
|
+
`GEOGRAPHY(LINESTRING, 4326)`. Every `Geo` field was a point whatever it said; a bare `Geo` still is.
|
|
873
|
+
* **keys:** `supatype keys` writes into `.env` when there is one, filling only the blank keys, as
|
|
874
|
+
`--write` did. `--print` only prints. `--write` still works, so scripts and docs written for 0.7.0
|
|
875
|
+
keep running. With no `.env` the keys are printed, with a line saying how to have them written.
|
|
876
|
+
`--print` with no secret anywhere exits 1 rather than printing keys signed with one it made up and
|
|
877
|
+
kept nowhere. `--print` checks the secret as writing does, since printed keys end up in a `.env`
|
|
878
|
+
all the same: at least 32 characters, and for a given one, no whitespace, `#` or quotes.
|
|
879
|
+
* **keys, self-host, init, dev:** one rule for the `JWT_SECRET` keys are signed with. `.env`'s always
|
|
880
|
+
wins. A shell `JWT_SECRET` is used only when `.env` has none, and is then written into `.env`; one
|
|
881
|
+
that differs from `.env`'s gets a single warning line saying `.env`'s is used, and is never
|
|
882
|
+
refused. Only a `keys --secret` that differs from `.env`'s is refused. Docker Compose reads the
|
|
883
|
+
shell ahead of `.env`, so every compose command now runs without the shell's `JWT_SECRET`,
|
|
884
|
+
`ANON_KEY` and `SERVICE_ROLE_KEY` when `.env` defines that name, and without a shell key the stack
|
|
885
|
+
would not accept under `.env`'s `JWT_SECRET` (another secret, another role, or expired):
|
|
886
|
+
`supatype dev` on docker with a different shell `JWT_SECRET` started services that refused every
|
|
887
|
+
key with 401. A shell key the stack accepts still fills a blank one. `push`, `status` and the
|
|
888
|
+
other commands calling the local stack follow the same rule, and send `.env`'s `SERVICE_ROLE_KEY`,
|
|
889
|
+
the name the stack is started with, and never a `SUPATYPE_SERVICE_ROLE_KEY` there. When a
|
|
890
|
+
`JWT_SECRET` is newly written into `.env` (given or generated), `keys` and `self-host compose up`
|
|
891
|
+
sign both keys again and say so, since keys already there cannot verify against it. A secret is
|
|
892
|
+
checked before anything is written: at least 32 characters, and for one written into `.env`, no
|
|
893
|
+
whitespace, `#` or quotes. `compose up` used to write keys signed with a short secret and then
|
|
894
|
+
refuse it, leaving keys that were never re-signed once the secret was fixed. `init` warns and
|
|
895
|
+
generates a secret when the shell's is unusable, and never exits mid-wizard over the keys.
|
|
896
|
+
* **keys, dev:** `NEXT_PUBLIC_SUPATYPE_ANON_KEY` is written beside the `VITE_`, `PUBLIC_` and
|
|
897
|
+
`EXPO_PUBLIC_` copies, and `NEXT_PUBLIC_SUPATYPE_URL` wherever the other URL copies are.
|
|
898
|
+
|
|
899
|
+
### Bug Fixes
|
|
900
|
+
|
|
468
901
|
* **functions serve:** a project with `functions/.env.local` serves again. The file was handed to
|
|
469
902
|
Deno as `--env-file <path>`, two arguments, and Deno takes the value only after `=`, so it ran
|
|
470
903
|
`.env.local` as the script and served nothing. `functions new` creates that file, so every project
|
|
@@ -485,27 +918,22 @@
|
|
|
485
918
|
sets. `init` scaffolds `SUPATYPE_SMTP_HOST=`, `SUPATYPE_RESEND_API_KEY=` and the rest blank, and
|
|
486
919
|
native `dev` applied `.env` over the config, so a project with its SMTP host or Resend key in the
|
|
487
920
|
config got the noop mailer and sent nothing. A value in `.env` still wins over the config.
|
|
488
|
-
|
|
489
921
|
* **app, status, functions serve:** the local gateway address follows `.env`. `app add` printed the
|
|
490
922
|
app URL, `status` the API URL, and `functions serve` gave functions `SUPATYPE_URL`, all on the
|
|
491
923
|
default port 18473 whatever `SUPATYPE_KONG_PORT` said, so after `dev` moved Kong to another port
|
|
492
924
|
they pointed at whichever stack held 18473. They now use `.env`'s `API_EXTERNAL_URL`, else
|
|
493
925
|
`SUPATYPE_KONG_PORT`, as `ctx.publicUrl` already did.
|
|
494
|
-
|
|
495
926
|
* **pull:** a uuid `id` column is drafted as `UUID`. Every one was drafted as `SupatypeAuthUserId`,
|
|
496
927
|
which declares the key to be an auth user's id; telling the two apart needs the schema of a foreign
|
|
497
928
|
key's table, which the engine does not report yet. A drafted model also names its table
|
|
498
929
|
(`tableName`) when its model name would not map back to it, as `HTTPLog` or `Orders` do, so a push
|
|
499
930
|
of the draft does not create a second, empty table.
|
|
500
|
-
|
|
501
931
|
* **plugins:** `plugins add` and `plugins list` no longer claim a plugin is in use. `add` said
|
|
502
932
|
"installed and registered" and `list` showed every compatible plugin as "active", but nothing in
|
|
503
933
|
Supatype loads plugins yet. Both now say the plugin is installed and that it is not loaded.
|
|
504
|
-
|
|
505
934
|
* **functions:** the scaffolded `functions/_shared/context.ts` says where `ctx.env` comes from: the
|
|
506
935
|
functions directory's `.env.local` (or `SUPATYPE_SHARED_ENV_FILE`), then `.env.<function>.local`,
|
|
507
936
|
which wins. It said `.env`, which is never read for it.
|
|
508
|
-
|
|
509
937
|
* **dev, functions serve:** the local functions router loads and guards handlers as the deployed
|
|
510
938
|
worker does. It accepted only `export default`, so a function exporting a named `handler`, which the
|
|
511
939
|
worker serves, failed to load locally; a module with neither answers its own route with an error
|
|
@@ -518,7 +946,6 @@
|
|
|
518
946
|
the key until `dev` restarts. The router reads it from a file in `.supatype/`, readable by its owner
|
|
519
947
|
only, rather than from the environment it takes the key out of. The file is removed when `dev` or
|
|
520
948
|
`functions serve` stops, Ctrl+C included, and each `functions serve` has a file of its own.
|
|
521
|
-
|
|
522
949
|
* **dev, functions serve:** native `dev` and `functions serve` run the functions worker the deployed
|
|
523
950
|
image runs (packages/functions-worker), not a router the CLI generated to copy its rules, so the
|
|
524
951
|
two can no longer drift: the copy had already differed on which exports it took, who got the
|
|
@@ -526,11 +953,9 @@
|
|
|
526
953
|
`~/.supatype/cache/functions-worker/`. Native `dev` now also serves model hooks from `hooks/`, as
|
|
527
954
|
the compose stack does, including in a project with hooks and no functions, and picks up a hook
|
|
528
955
|
added while it runs; `functions serve` picks up a function added while it runs.
|
|
529
|
-
|
|
530
956
|
* **functions:** `ctx.env` reads `.env.local` and `.env.<function>.local` with the CLI's own dotenv
|
|
531
957
|
parser, so `KEY="value"` is `value`, an inline ` # comment` is dropped and `export KEY=` is read,
|
|
532
958
|
as the CLI and compose read a `.env`. The worker kept the quotes and the comment.
|
|
533
|
-
|
|
534
959
|
* **dev (native):** runs the storage service (packages/storage) on this machine instead of the
|
|
535
960
|
server's built-in object store, so bucket rules, `maxSize`, `accept`, `access_mode`, caller rules
|
|
536
961
|
and image transforms are the ones a deployment enforces. Its objects live under
|
|
@@ -543,14 +968,12 @@
|
|
|
543
968
|
from a per-platform archive on the CDN (`storage/v<version>/`, signed like every component), or
|
|
544
969
|
`overrides.storage`; its port is `SUPATYPE_STORAGE_PORT` (default 8002). When it cannot start, dev
|
|
545
970
|
says so and the server's store answers as before.
|
|
546
|
-
|
|
547
971
|
* **self-host:** the compose stack serves functions from `functions.path`. The functions worker, the
|
|
548
972
|
server and the control plane were all told `/project/functions` whatever the config said, so a
|
|
549
973
|
project keeping its functions elsewhere had every one answer 404; hooks were likewise fixed at
|
|
550
974
|
`/project/hooks` rather than following `supatype.root`. A `functions.path` or `supatype.root`
|
|
551
975
|
outside the project directory is refused with a message saying why, since the stack mounts only
|
|
552
976
|
the project. `functions deploy` names the real directory instead of a fixed `functions/`.
|
|
553
|
-
|
|
554
977
|
* **dev, self-host, init:** Resend and SES settings reach the auth server. Native `dev` sent them as
|
|
555
978
|
`RESEND_API_KEY`, `RESEND_FROM` and `SES_FROM`, which the server does not read, docker `dev` sent
|
|
556
979
|
none of them, and the self-host compose file had no way to pass them, so `email.provider: "resend"`
|
|
@@ -559,12 +982,10 @@
|
|
|
559
982
|
passes them through from `.env`. `init` scaffolds the email settings under those names too, and
|
|
560
983
|
SMTP's as `SUPATYPE_SMTP_*`; the unprefixed `SMTP_HOST` and the rest it used to write were never
|
|
561
984
|
read either. Rename any of these already in a project's `.env`.
|
|
562
|
-
|
|
563
985
|
* **dev:** magic-link, confirmation, invite and recovery links in native `dev` open the auth
|
|
564
986
|
server's verify endpoint. They pointed at `http://localhost:<port>/verify` and 404'd: the external
|
|
565
987
|
URL ends in `/auth/v1`, and the server's default `/verify` replaced that path rather than adding to
|
|
566
988
|
it. Native `dev` now sets the same `/auth/v1/verify` paths the compose file does.
|
|
567
|
-
|
|
568
989
|
* **migrate:** restoring a migration's schema sources refuses a file that lands beside the project
|
|
569
990
|
under a path starting with the project's own (`/srv/app2/x.ts` for `/srv/app`). The check compared
|
|
570
991
|
string prefixes, so it took that file for one inside the project. The snapshot is now read by the
|
|
@@ -573,7 +994,6 @@
|
|
|
573
994
|
root itself (`./`) is refused rather than failing on write, and a name that only starts with two
|
|
574
995
|
dots (`..notes/x.ts`) is restored rather than refused. The backup taken before a restore copies
|
|
575
996
|
the files the snapshot overwrites, not the paths its manifest lists, which were never checked.
|
|
576
|
-
|
|
577
997
|
* **schema:** an `id: SupatypeAuthUserId` primary key under `create: Owner<"id">` (also inside `Any`
|
|
578
998
|
or `All`) no longer gets a `gen_random_uuid()` default. A random id names no user, and the default
|
|
579
999
|
kept the engine from defaulting the column to the caller, so an insert leaving `id` out was
|
|
@@ -661,20 +1081,8 @@
|
|
|
661
1081
|
* **init:** `supatype init` uses an exported `SUPATYPE_KONG_PORT` as the project's gateway port, in
|
|
662
1082
|
`.env` and in what it prints, and the wizard does not ask for one. It chose its own port, so `.env`
|
|
663
1083
|
and the "API on" line named a port the stack, which binds the shell's, never listened on.
|
|
664
|
-
* **push:** a Docker push that applied the schema exits 0 when a step after it fails on the running
|
|
665
|
-
stack (its `up -d`, the gateway wait, the buckets or the first admin), warning `The schema was
|
|
666
|
-
applied, but a step after it failed` with the reason. A start that failed on a port another
|
|
667
|
-
program held made push exit 1 with the schema in.
|
|
668
|
-
* **push, diff, adopt, pull:** on a running stack these no longer run `docker compose up -d db`
|
|
669
|
-
before they reach its database. Every layout already publishes Postgres on the port the host
|
|
670
|
-
engine connects to, so the call had nothing to start, and could recreate the database container
|
|
671
|
-
when its definition had changed; with `overrides.engine` on a dev stack it could also move the dev
|
|
672
|
-
database port under a running database first. A running stack whose `db`
|
|
673
|
-
container has stopped is now refused with the "local stack isn't running" message rather than
|
|
674
|
-
having its database started.
|
|
675
|
-
|
|
676
1084
|
|
|
677
|
-
## 0.7.0
|
|
1085
|
+
## 0.7.0 (2026-10-27)
|
|
678
1086
|
|
|
679
1087
|
Highlights: `adopt` takes what a push refuses, with `--key`, `--release` and `--reclaim`, and
|
|
680
1088
|
declares adopted columns in the schema; push asks before restoring access changed outside Supatype,
|