@supatype/cli 0.9.0 → 0.9.2

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.
Files changed (619) hide show
  1. package/CHANGELOG.md +640 -68
  2. package/bin/node-version.js +28 -0
  3. package/bin/supatype.js +8 -4
  4. package/dist/app/port-holder.d.ts +33 -0
  5. package/dist/app/port-holder.d.ts.map +1 -0
  6. package/dist/app/port-holder.js +66 -0
  7. package/dist/app/port-holder.js.map +1 -0
  8. package/dist/app/proxy-dev-app.d.ts +32 -4
  9. package/dist/app/proxy-dev-app.d.ts.map +1 -1
  10. package/dist/app/proxy-dev-app.js +111 -77
  11. package/dist/app/proxy-dev-app.js.map +1 -1
  12. package/dist/app/vite-dev-args.d.ts +20 -0
  13. package/dist/app/vite-dev-args.d.ts.map +1 -0
  14. package/dist/app/vite-dev-args.js +65 -0
  15. package/dist/app/vite-dev-args.js.map +1 -0
  16. package/dist/app-config.d.ts +2 -0
  17. package/dist/app-config.d.ts.map +1 -1
  18. package/dist/app-config.js +27 -8
  19. package/dist/app-config.js.map +1 -1
  20. package/dist/augmentation-generator.d.ts +2 -0
  21. package/dist/augmentation-generator.d.ts.map +1 -1
  22. package/dist/augmentation-generator.js +7 -3
  23. package/dist/augmentation-generator.js.map +1 -1
  24. package/dist/auth-providers.d.ts +5 -4
  25. package/dist/auth-providers.d.ts.map +1 -1
  26. package/dist/auth-providers.js +3 -12
  27. package/dist/auth-providers.js.map +1 -1
  28. package/dist/binary-download-lock.d.ts.map +1 -1
  29. package/dist/binary-download-lock.js +2 -10
  30. package/dist/binary-download-lock.js.map +1 -1
  31. package/dist/build-spawn.d.ts +35 -0
  32. package/dist/build-spawn.d.ts.map +1 -0
  33. package/dist/build-spawn.js +75 -0
  34. package/dist/build-spawn.js.map +1 -0
  35. package/dist/cache-provider.d.ts +17 -2
  36. package/dist/cache-provider.d.ts.map +1 -1
  37. package/dist/cache-provider.js +28 -3
  38. package/dist/cache-provider.js.map +1 -1
  39. package/dist/cli-version-embedded.js +1 -1
  40. package/dist/cli.d.ts +7 -0
  41. package/dist/cli.d.ts.map +1 -1
  42. package/dist/cli.js +14 -1
  43. package/dist/cli.js.map +1 -1
  44. package/dist/cloud-credentials.d.ts.map +1 -1
  45. package/dist/cloud-credentials.js +3 -1
  46. package/dist/cloud-credentials.js.map +1 -1
  47. package/dist/commands/admin.d.ts.map +1 -1
  48. package/dist/commands/admin.js +11 -15
  49. package/dist/commands/admin.js.map +1 -1
  50. package/dist/commands/adopt.js +1 -1
  51. package/dist/commands/adopt.js.map +1 -1
  52. package/dist/commands/app.d.ts.map +1 -1
  53. package/dist/commands/app.js +22 -2
  54. package/dist/commands/app.js.map +1 -1
  55. package/dist/commands/build.d.ts +29 -0
  56. package/dist/commands/build.d.ts.map +1 -0
  57. package/dist/commands/build.js +69 -0
  58. package/dist/commands/build.js.map +1 -0
  59. package/dist/commands/cache.d.ts.map +1 -1
  60. package/dist/commands/cache.js +5 -0
  61. package/dist/commands/cache.js.map +1 -1
  62. package/dist/commands/db.d.ts.map +1 -1
  63. package/dist/commands/db.js +46 -23
  64. package/dist/commands/db.js.map +1 -1
  65. package/dist/commands/deploy.d.ts +14 -0
  66. package/dist/commands/deploy.d.ts.map +1 -1
  67. package/dist/commands/deploy.js +67 -52
  68. package/dist/commands/deploy.js.map +1 -1
  69. package/dist/commands/dev.d.ts +21 -4
  70. package/dist/commands/dev.d.ts.map +1 -1
  71. package/dist/commands/dev.js +244 -86
  72. package/dist/commands/dev.js.map +1 -1
  73. package/dist/commands/diff.d.ts +3 -0
  74. package/dist/commands/diff.d.ts.map +1 -1
  75. package/dist/commands/diff.js +28 -34
  76. package/dist/commands/diff.js.map +1 -1
  77. package/dist/commands/doctor.js +2 -2
  78. package/dist/commands/doctor.js.map +1 -1
  79. package/dist/commands/functions.d.ts.map +1 -1
  80. package/dist/commands/functions.js +21 -16
  81. package/dist/commands/functions.js.map +1 -1
  82. package/dist/commands/generate.d.ts.map +1 -1
  83. package/dist/commands/generate.js +3 -0
  84. package/dist/commands/generate.js.map +1 -1
  85. package/dist/commands/init.d.ts +15 -10
  86. package/dist/commands/init.d.ts.map +1 -1
  87. package/dist/commands/init.js +312 -163
  88. package/dist/commands/init.js.map +1 -1
  89. package/dist/commands/internal.d.ts.map +1 -1
  90. package/dist/commands/internal.js +27 -7
  91. package/dist/commands/internal.js.map +1 -1
  92. package/dist/commands/introspect.d.ts.map +1 -1
  93. package/dist/commands/introspect.js +3 -0
  94. package/dist/commands/introspect.js.map +1 -1
  95. package/dist/commands/keys-print.d.ts +20 -0
  96. package/dist/commands/keys-print.d.ts.map +1 -0
  97. package/dist/commands/keys-print.js +47 -0
  98. package/dist/commands/keys-print.js.map +1 -0
  99. package/dist/commands/keys.d.ts.map +1 -1
  100. package/dist/commands/keys.js +16 -12
  101. package/dist/commands/keys.js.map +1 -1
  102. package/dist/commands/link-helpers.d.ts.map +1 -1
  103. package/dist/commands/link-helpers.js +28 -6
  104. package/dist/commands/link-helpers.js.map +1 -1
  105. package/dist/commands/migrate.d.ts +5 -2
  106. package/dist/commands/migrate.d.ts.map +1 -1
  107. package/dist/commands/migrate.js +34 -36
  108. package/dist/commands/migrate.js.map +1 -1
  109. package/dist/commands/pull.d.ts.map +1 -1
  110. package/dist/commands/pull.js +6 -5
  111. package/dist/commands/pull.js.map +1 -1
  112. package/dist/commands/push.d.ts.map +1 -1
  113. package/dist/commands/push.js +30 -19
  114. package/dist/commands/push.js.map +1 -1
  115. package/dist/commands/rename.js +1 -1
  116. package/dist/commands/rename.js.map +1 -1
  117. package/dist/commands/seed.d.ts +2 -11
  118. package/dist/commands/seed.d.ts.map +1 -1
  119. package/dist/commands/seed.js +11 -38
  120. package/dist/commands/seed.js.map +1 -1
  121. package/dist/commands/self-host.d.ts +3 -3
  122. package/dist/commands/self-host.d.ts.map +1 -1
  123. package/dist/commands/self-host.js +133 -272
  124. package/dist/commands/self-host.js.map +1 -1
  125. package/dist/commands/sso.d.ts +26 -0
  126. package/dist/commands/sso.d.ts.map +1 -0
  127. package/dist/commands/sso.js +362 -0
  128. package/dist/commands/sso.js.map +1 -0
  129. package/dist/commands/status.d.ts.map +1 -1
  130. package/dist/commands/status.js +25 -8
  131. package/dist/commands/status.js.map +1 -1
  132. package/dist/commands/update.d.ts.map +1 -1
  133. package/dist/commands/update.js +156 -63
  134. package/dist/commands/update.js.map +1 -1
  135. package/dist/component-launch.d.ts.map +1 -1
  136. package/dist/component-launch.js +2 -1
  137. package/dist/component-launch.js.map +1 -1
  138. package/dist/compose-db-roles.d.ts +4 -4
  139. package/dist/compose-db-roles.d.ts.map +1 -1
  140. package/dist/compose-db-roles.js +14 -10
  141. package/dist/compose-db-roles.js.map +1 -1
  142. package/dist/compose-engine-run.d.ts +9 -2
  143. package/dist/compose-engine-run.d.ts.map +1 -1
  144. package/dist/compose-engine-run.js +30 -13
  145. package/dist/compose-engine-run.js.map +1 -1
  146. package/dist/compose-rename.d.ts.map +1 -1
  147. package/dist/compose-rename.js +5 -0
  148. package/dist/compose-rename.js.map +1 -1
  149. package/dist/compose-render-mode.d.ts +8 -3
  150. package/dist/compose-render-mode.d.ts.map +1 -1
  151. package/dist/compose-render-mode.js +13 -5
  152. package/dist/compose-render-mode.js.map +1 -1
  153. package/dist/compose-services.d.ts +18 -0
  154. package/dist/compose-services.d.ts.map +1 -1
  155. package/dist/compose-services.js +49 -23
  156. package/dist/compose-services.js.map +1 -1
  157. package/dist/config-mailer-env.d.ts +31 -0
  158. package/dist/config-mailer-env.d.ts.map +1 -0
  159. package/dist/config-mailer-env.js +45 -0
  160. package/dist/config-mailer-env.js.map +1 -0
  161. package/dist/config-version-pin.d.ts +42 -0
  162. package/dist/config-version-pin.d.ts.map +1 -0
  163. package/dist/config-version-pin.js +64 -0
  164. package/dist/config-version-pin.js.map +1 -0
  165. package/dist/config.d.ts +4 -0
  166. package/dist/config.d.ts.map +1 -1
  167. package/dist/config.js +6 -2
  168. package/dist/config.js.map +1 -1
  169. package/dist/db-rows.d.ts +3 -2
  170. package/dist/db-rows.d.ts.map +1 -1
  171. package/dist/db-rows.js +19 -4
  172. package/dist/db-rows.js.map +1 -1
  173. package/dist/dev-compose.d.ts +69 -9
  174. package/dist/dev-compose.d.ts.map +1 -1
  175. package/dist/dev-compose.js +272 -187
  176. package/dist/dev-compose.js.map +1 -1
  177. package/dist/dev-initial-push.d.ts.map +1 -1
  178. package/dist/dev-initial-push.js +6 -0
  179. package/dist/dev-initial-push.js.map +1 -1
  180. package/dist/dev-ports.d.ts +13 -6
  181. package/dist/dev-ports.d.ts.map +1 -1
  182. package/dist/dev-ports.js +124 -68
  183. package/dist/dev-ports.js.map +1 -1
  184. package/dist/dev-ready-panel.d.ts +26 -3
  185. package/dist/dev-ready-panel.d.ts.map +1 -1
  186. package/dist/dev-ready-panel.js +37 -5
  187. package/dist/dev-ready-panel.js.map +1 -1
  188. package/dist/dev-schema-watch.d.ts +8 -2
  189. package/dist/dev-schema-watch.d.ts.map +1 -1
  190. package/dist/dev-schema-watch.js +24 -13
  191. package/dist/dev-schema-watch.js.map +1 -1
  192. package/dist/dev-self-start.d.ts +16 -0
  193. package/dist/dev-self-start.d.ts.map +1 -0
  194. package/dist/dev-self-start.js +31 -0
  195. package/dist/dev-self-start.js.map +1 -0
  196. package/dist/dev-session-lock.d.ts +66 -2
  197. package/dist/dev-session-lock.d.ts.map +1 -1
  198. package/dist/dev-session-lock.js +104 -5
  199. package/dist/dev-session-lock.js.map +1 -1
  200. package/dist/dev-session.d.ts +19 -3
  201. package/dist/dev-session.d.ts.map +1 -1
  202. package/dist/dev-session.js +31 -8
  203. package/dist/dev-session.js.map +1 -1
  204. package/dist/dev-shutdown.d.ts +11 -2
  205. package/dist/dev-shutdown.d.ts.map +1 -1
  206. package/dist/dev-shutdown.js +27 -10
  207. package/dist/dev-shutdown.js.map +1 -1
  208. package/dist/diff-access.d.ts +10 -0
  209. package/dist/diff-access.d.ts.map +1 -0
  210. package/dist/diff-access.js +69 -0
  211. package/dist/diff-access.js.map +1 -0
  212. package/dist/diff-output.d.ts.map +1 -1
  213. package/dist/diff-output.js +2 -1
  214. package/dist/diff-output.js.map +1 -1
  215. package/dist/docker-exec.d.ts.map +1 -1
  216. package/dist/docker-exec.js +4 -4
  217. package/dist/docker-exec.js.map +1 -1
  218. package/dist/docker-runtime.d.ts +34 -4
  219. package/dist/docker-runtime.d.ts.map +1 -1
  220. package/dist/docker-runtime.js +155 -46
  221. package/dist/docker-runtime.js.map +1 -1
  222. package/dist/engine-answers.d.ts +2 -1
  223. package/dist/engine-answers.d.ts.map +1 -1
  224. package/dist/engine-answers.js +11 -0
  225. package/dist/engine-answers.js.map +1 -1
  226. package/dist/engine-client.d.ts +20 -0
  227. package/dist/engine-client.d.ts.map +1 -1
  228. package/dist/engine-client.js +9 -8
  229. package/dist/engine-client.js.map +1 -1
  230. package/dist/engine-columns.d.ts +26 -0
  231. package/dist/engine-columns.d.ts.map +1 -0
  232. package/dist/engine-columns.js +67 -0
  233. package/dist/engine-columns.js.map +1 -0
  234. package/dist/engine-floor.d.ts +3 -2
  235. package/dist/engine-floor.d.ts.map +1 -1
  236. package/dist/engine-floor.js +2 -2
  237. package/dist/engine-floor.js.map +1 -1
  238. package/dist/engine-push-output.d.ts +8 -1
  239. package/dist/engine-push-output.d.ts.map +1 -1
  240. package/dist/engine-push-output.js +8 -1
  241. package/dist/engine-push-output.js.map +1 -1
  242. package/dist/env-file.d.ts +23 -3
  243. package/dist/env-file.d.ts.map +1 -1
  244. package/dist/env-file.js +74 -40
  245. package/dist/env-file.js.map +1 -1
  246. package/dist/env-lines.d.ts +3 -2
  247. package/dist/env-lines.d.ts.map +1 -1
  248. package/dist/env-lines.js +5 -2
  249. package/dist/env-lines.js.map +1 -1
  250. package/dist/env-value.d.ts +15 -0
  251. package/dist/env-value.d.ts.map +1 -0
  252. package/dist/env-value.js +34 -0
  253. package/dist/env-value.js.map +1 -0
  254. package/dist/error-message.d.ts +20 -0
  255. package/dist/error-message.d.ts.map +1 -1
  256. package/dist/error-message.js +42 -0
  257. package/dist/error-message.js.map +1 -1
  258. package/dist/frontend-env.d.ts +13 -4
  259. package/dist/frontend-env.d.ts.map +1 -1
  260. package/dist/frontend-env.js +25 -5
  261. package/dist/frontend-env.js.map +1 -1
  262. package/dist/frontend-values-linked.d.ts +22 -0
  263. package/dist/frontend-values-linked.d.ts.map +1 -0
  264. package/dist/frontend-values-linked.js +143 -0
  265. package/dist/frontend-values-linked.js.map +1 -0
  266. package/dist/frontend-values.d.ts +90 -0
  267. package/dist/frontend-values.d.ts.map +1 -0
  268. package/dist/frontend-values.js +208 -0
  269. package/dist/frontend-values.js.map +1 -0
  270. package/dist/functions-deno-types.d.ts.map +1 -1
  271. package/dist/functions-deno-types.js +5 -5
  272. package/dist/functions-deno-types.js.map +1 -1
  273. package/dist/functions-env-local.d.ts +13 -0
  274. package/dist/functions-env-local.d.ts.map +1 -0
  275. package/dist/functions-env-local.js +20 -0
  276. package/dist/functions-env-local.js.map +1 -0
  277. package/dist/functions-worker-files.d.ts.map +1 -1
  278. package/dist/functions-worker-files.js +2 -13
  279. package/dist/functions-worker-files.js.map +1 -1
  280. package/dist/generated/release-images.d.ts +6 -6
  281. package/dist/generated/release-images.js +3 -3
  282. package/dist/generated/release-images.js.map +1 -1
  283. package/dist/generated/typescript-libs.d.ts +4 -0
  284. package/dist/generated/typescript-libs.d.ts.map +1 -0
  285. package/dist/generated/typescript-libs.js +64 -0
  286. package/dist/generated/typescript-libs.js.map +1 -0
  287. package/dist/gitignore.d.ts +29 -2
  288. package/dist/gitignore.d.ts.map +1 -1
  289. package/dist/gitignore.js +86 -21
  290. package/dist/gitignore.js.map +1 -1
  291. package/dist/hooks-generator.d.ts.map +1 -1
  292. package/dist/hooks-generator.js +4 -2
  293. package/dist/hooks-generator.js.map +1 -1
  294. package/dist/host-database.d.ts +16 -12
  295. package/dist/host-database.d.ts.map +1 -1
  296. package/dist/host-database.js +28 -17
  297. package/dist/host-database.js.map +1 -1
  298. package/dist/init-answers.d.ts +18 -0
  299. package/dist/init-answers.d.ts.map +1 -0
  300. package/dist/init-answers.js +46 -0
  301. package/dist/init-answers.js.map +1 -0
  302. package/dist/init-dependency-versions.d.ts +2 -3
  303. package/dist/init-dependency-versions.d.ts.map +1 -1
  304. package/dist/init-dependency-versions.js +12 -9
  305. package/dist/init-dependency-versions.js.map +1 -1
  306. package/dist/init-example.d.ts.map +1 -1
  307. package/dist/init-example.js +13 -1
  308. package/dist/init-example.js.map +1 -1
  309. package/dist/init-expo-runtime-env.d.ts +25 -0
  310. package/dist/init-expo-runtime-env.d.ts.map +1 -0
  311. package/dist/init-expo-runtime-env.js +112 -0
  312. package/dist/init-expo-runtime-env.js.map +1 -0
  313. package/dist/init-next-runtime-env.d.ts +43 -0
  314. package/dist/init-next-runtime-env.d.ts.map +1 -0
  315. package/dist/init-next-runtime-env.js +261 -0
  316. package/dist/init-next-runtime-env.js.map +1 -0
  317. package/dist/init-package-json.d.ts +11 -3
  318. package/dist/init-package-json.d.ts.map +1 -1
  319. package/dist/init-package-json.js +20 -13
  320. package/dist/init-package-json.js.map +1 -1
  321. package/dist/init-port-registry.d.ts +19 -0
  322. package/dist/init-port-registry.d.ts.map +1 -0
  323. package/dist/init-port-registry.js +57 -0
  324. package/dist/init-port-registry.js.map +1 -0
  325. package/dist/init-project-detect.d.ts +20 -0
  326. package/dist/init-project-detect.d.ts.map +1 -1
  327. package/dist/init-project-detect.js +41 -8
  328. package/dist/init-project-detect.js.map +1 -1
  329. package/dist/init-vite-node.d.ts +21 -0
  330. package/dist/init-vite-node.d.ts.map +1 -0
  331. package/dist/init-vite-node.js +75 -0
  332. package/dist/init-vite-node.js.map +1 -0
  333. package/dist/jsx-first-child.d.ts +18 -0
  334. package/dist/jsx-first-child.d.ts.map +1 -0
  335. package/dist/jsx-first-child.js +53 -0
  336. package/dist/jsx-first-child.js.map +1 -0
  337. package/dist/jwt.d.ts +5 -0
  338. package/dist/jwt.d.ts.map +1 -1
  339. package/dist/jwt.js +16 -0
  340. package/dist/jwt.js.map +1 -1
  341. package/dist/keyspace-password-file.d.ts +46 -0
  342. package/dist/keyspace-password-file.d.ts.map +1 -0
  343. package/dist/keyspace-password-file.js +128 -0
  344. package/dist/keyspace-password-file.js.map +1 -0
  345. package/dist/kong-config.d.ts +1 -0
  346. package/dist/kong-config.d.ts.map +1 -1
  347. package/dist/kong-config.js +64 -20
  348. package/dist/kong-config.js.map +1 -1
  349. package/dist/local-gateway.d.ts +11 -3
  350. package/dist/local-gateway.d.ts.map +1 -1
  351. package/dist/local-gateway.js +16 -7
  352. package/dist/local-gateway.js.map +1 -1
  353. package/dist/local-secrets.d.ts +32 -0
  354. package/dist/local-secrets.d.ts.map +1 -1
  355. package/dist/local-secrets.js +49 -0
  356. package/dist/local-secrets.js.map +1 -1
  357. package/dist/local-stack-guard.d.ts +37 -0
  358. package/dist/local-stack-guard.d.ts.map +1 -0
  359. package/dist/local-stack-guard.js +85 -0
  360. package/dist/local-stack-guard.js.map +1 -0
  361. package/dist/local-stack.d.ts.map +1 -1
  362. package/dist/local-stack.js +7 -6
  363. package/dist/local-stack.js.map +1 -1
  364. package/dist/local-storage.d.ts +3 -5
  365. package/dist/local-storage.d.ts.map +1 -1
  366. package/dist/local-storage.js +10 -10
  367. package/dist/local-storage.js.map +1 -1
  368. package/dist/mailer-autoconfirm.d.ts +29 -24
  369. package/dist/mailer-autoconfirm.d.ts.map +1 -1
  370. package/dist/mailer-autoconfirm.js +47 -43
  371. package/dist/mailer-autoconfirm.js.map +1 -1
  372. package/dist/mailer-env.d.ts +4 -0
  373. package/dist/mailer-env.d.ts.map +1 -1
  374. package/dist/mailer-env.js +12 -1
  375. package/dist/mailer-env.js.map +1 -1
  376. package/dist/model-hooks.d.ts +4 -4
  377. package/dist/model-hooks.d.ts.map +1 -1
  378. package/dist/model-hooks.js +13 -7
  379. package/dist/model-hooks.js.map +1 -1
  380. package/dist/native-dev-env.d.ts +25 -2
  381. package/dist/native-dev-env.d.ts.map +1 -1
  382. package/dist/native-dev-env.js +39 -4
  383. package/dist/native-dev-env.js.map +1 -1
  384. package/dist/native-keyspace.d.ts +21 -6
  385. package/dist/native-keyspace.d.ts.map +1 -1
  386. package/dist/native-keyspace.js +48 -14
  387. package/dist/native-keyspace.js.map +1 -1
  388. package/dist/native-leftover-postgres.d.ts +23 -0
  389. package/dist/native-leftover-postgres.d.ts.map +1 -0
  390. package/dist/native-leftover-postgres.js +55 -0
  391. package/dist/native-leftover-postgres.js.map +1 -0
  392. package/dist/native-leftover-services.d.ts +17 -0
  393. package/dist/native-leftover-services.d.ts.map +1 -0
  394. package/dist/native-leftover-services.js +93 -0
  395. package/dist/native-leftover-services.js.map +1 -0
  396. package/dist/native-pg-auth.d.ts.map +1 -1
  397. package/dist/native-pg-auth.js +2 -1
  398. package/dist/native-pg-auth.js.map +1 -1
  399. package/dist/native-port-lock.d.ts +37 -0
  400. package/dist/native-port-lock.d.ts.map +1 -0
  401. package/dist/native-port-lock.js +78 -0
  402. package/dist/native-port-lock.js.map +1 -0
  403. package/dist/native-realtime.d.ts +6 -3
  404. package/dist/native-realtime.d.ts.map +1 -1
  405. package/dist/native-realtime.js +65 -24
  406. package/dist/native-realtime.js.map +1 -1
  407. package/dist/native-roles-sql.d.ts.map +1 -1
  408. package/dist/native-roles-sql.js +2 -1
  409. package/dist/native-roles-sql.js.map +1 -1
  410. package/dist/native-storage-import.d.ts.map +1 -1
  411. package/dist/native-storage-import.js +6 -5
  412. package/dist/native-storage-import.js.map +1 -1
  413. package/dist/native-storage.d.ts +42 -7
  414. package/dist/native-storage.d.ts.map +1 -1
  415. package/dist/native-storage.js +196 -50
  416. package/dist/native-storage.js.map +1 -1
  417. package/dist/node-executable.d.ts +6 -0
  418. package/dist/node-executable.d.ts.map +1 -0
  419. package/dist/node-executable.js +43 -0
  420. package/dist/node-executable.js.map +1 -0
  421. package/dist/parent-watch.d.ts +8 -3
  422. package/dist/parent-watch.d.ts.map +1 -1
  423. package/dist/parent-watch.js +12 -11
  424. package/dist/parent-watch.js.map +1 -1
  425. package/dist/postgres-ctl.d.ts +33 -5
  426. package/dist/postgres-ctl.d.ts.map +1 -1
  427. package/dist/postgres-ctl.js +60 -16
  428. package/dist/postgres-ctl.js.map +1 -1
  429. package/dist/postgres-image.d.ts +16 -0
  430. package/dist/postgres-image.d.ts.map +1 -1
  431. package/dist/postgres-image.js +34 -11
  432. package/dist/postgres-image.js.map +1 -1
  433. package/dist/process-info.d.ts +14 -0
  434. package/dist/process-info.d.ts.map +1 -0
  435. package/dist/process-info.js +41 -0
  436. package/dist/process-info.js.map +1 -0
  437. package/dist/process-manager.d.ts +110 -9
  438. package/dist/process-manager.d.ts.map +1 -1
  439. package/dist/process-manager.js +242 -104
  440. package/dist/process-manager.js.map +1 -1
  441. package/dist/process-tree.d.ts +48 -0
  442. package/dist/process-tree.d.ts.map +1 -0
  443. package/dist/process-tree.js +141 -0
  444. package/dist/process-tree.js.map +1 -0
  445. package/dist/project-config.d.ts +60 -4
  446. package/dist/project-config.d.ts.map +1 -1
  447. package/dist/project-config.js +23 -1
  448. package/dist/project-config.js.map +1 -1
  449. package/dist/push-audit.d.ts +4 -1
  450. package/dist/push-audit.d.ts.map +1 -1
  451. package/dist/push-audit.js +33 -4
  452. package/dist/push-audit.js.map +1 -1
  453. package/dist/recorded-field-masking-tier.d.ts +2 -2
  454. package/dist/recorded-field-masking-tier.d.ts.map +1 -1
  455. package/dist/recorded-field-masking-tier.js +6 -6
  456. package/dist/recorded-field-masking-tier.js.map +1 -1
  457. package/dist/rename-journal.d.ts +1 -1
  458. package/dist/rename-journal.d.ts.map +1 -1
  459. package/dist/required-host-components.d.ts.map +1 -1
  460. package/dist/required-host-components.js +3 -5
  461. package/dist/required-host-components.js.map +1 -1
  462. package/dist/resolve-api-url.d.ts +2 -0
  463. package/dist/resolve-api-url.d.ts.map +1 -1
  464. package/dist/resolve-api-url.js +5 -1
  465. package/dist/resolve-api-url.js.map +1 -1
  466. package/dist/resolve-target.d.ts +16 -1
  467. package/dist/resolve-target.d.ts.map +1 -1
  468. package/dist/resolve-target.js +20 -11
  469. package/dist/resolve-target.js.map +1 -1
  470. package/dist/route-manifest.d.ts +24 -0
  471. package/dist/route-manifest.d.ts.map +1 -1
  472. package/dist/route-manifest.js +60 -2
  473. package/dist/route-manifest.js.map +1 -1
  474. package/dist/run-captured.d.ts +33 -0
  475. package/dist/run-captured.d.ts.map +1 -0
  476. package/dist/run-captured.js +36 -0
  477. package/dist/run-captured.js.map +1 -0
  478. package/dist/run-until-stopped.d.ts +3 -0
  479. package/dist/run-until-stopped.d.ts.map +1 -1
  480. package/dist/run-until-stopped.js +25 -11
  481. package/dist/run-until-stopped.js.map +1 -1
  482. package/dist/runtime-routes.d.ts +5 -0
  483. package/dist/runtime-routes.d.ts.map +1 -1
  484. package/dist/runtime-routes.js +5 -1
  485. package/dist/runtime-routes.js.map +1 -1
  486. package/dist/saml-config.d.ts +53 -0
  487. package/dist/saml-config.d.ts.map +1 -0
  488. package/dist/saml-config.js +177 -0
  489. package/dist/saml-config.js.map +1 -0
  490. package/dist/saml-key-rotation.d.ts +5 -0
  491. package/dist/saml-key-rotation.d.ts.map +1 -0
  492. package/dist/saml-key-rotation.js +26 -0
  493. package/dist/saml-key-rotation.js.map +1 -0
  494. package/dist/saml-sp-certificate.d.ts +15 -0
  495. package/dist/saml-sp-certificate.d.ts.map +1 -0
  496. package/dist/saml-sp-certificate.js +34 -0
  497. package/dist/saml-sp-certificate.js.map +1 -0
  498. package/dist/schema-reset.d.ts +41 -0
  499. package/dist/schema-reset.d.ts.map +1 -0
  500. package/dist/schema-reset.js +98 -0
  501. package/dist/schema-reset.js.map +1 -0
  502. package/dist/secret-sql.d.ts +13 -0
  503. package/dist/secret-sql.d.ts.map +1 -0
  504. package/dist/secret-sql.js +13 -0
  505. package/dist/secret-sql.js.map +1 -0
  506. package/dist/seed-child.d.ts +25 -0
  507. package/dist/seed-child.d.ts.map +1 -0
  508. package/dist/seed-child.js +61 -0
  509. package/dist/seed-child.js.map +1 -0
  510. package/dist/seed-ir.d.ts +8 -1
  511. package/dist/seed-ir.d.ts.map +1 -1
  512. package/dist/seed-ir.js +92 -6
  513. package/dist/seed-ir.js.map +1 -1
  514. package/dist/seed-runner.d.ts +3 -5
  515. package/dist/seed-runner.d.ts.map +1 -1
  516. package/dist/seed-runner.js +20 -42
  517. package/dist/seed-runner.js.map +1 -1
  518. package/dist/seed.d.ts +15 -2
  519. package/dist/seed.d.ts.map +1 -1
  520. package/dist/self-host-compose.d.ts +24 -2
  521. package/dist/self-host-compose.d.ts.map +1 -1
  522. package/dist/self-host-compose.js +261 -63
  523. package/dist/self-host-compose.js.map +1 -1
  524. package/dist/serial-runs.d.ts +7 -0
  525. package/dist/serial-runs.d.ts.map +1 -0
  526. package/dist/serial-runs.js +29 -0
  527. package/dist/serial-runs.js.map +1 -0
  528. package/dist/sso-admin.d.ts +114 -0
  529. package/dist/sso-admin.d.ts.map +1 -0
  530. package/dist/sso-admin.js +256 -0
  531. package/dist/sso-admin.js.map +1 -0
  532. package/dist/stack-engine.d.ts +28 -0
  533. package/dist/stack-engine.d.ts.map +1 -0
  534. package/dist/stack-engine.js +59 -0
  535. package/dist/stack-engine.js.map +1 -0
  536. package/dist/stack-exit-watch.d.ts +52 -0
  537. package/dist/stack-exit-watch.d.ts.map +1 -0
  538. package/dist/stack-exit-watch.js +98 -0
  539. package/dist/stack-exit-watch.js.map +1 -0
  540. package/dist/stack-folder.d.ts +28 -0
  541. package/dist/stack-folder.d.ts.map +1 -0
  542. package/dist/stack-folder.js +123 -0
  543. package/dist/stack-folder.js.map +1 -0
  544. package/dist/stack-setting-warnings.d.ts +9 -0
  545. package/dist/stack-setting-warnings.d.ts.map +1 -0
  546. package/dist/stack-setting-warnings.js +19 -0
  547. package/dist/stack-setting-warnings.js.map +1 -0
  548. package/dist/storage-provision.d.ts +12 -2
  549. package/dist/storage-provision.d.ts.map +1 -1
  550. package/dist/storage-provision.js +36 -11
  551. package/dist/storage-provision.js.map +1 -1
  552. package/dist/studio-dev-server.d.ts.map +1 -1
  553. package/dist/studio-dev-server.js +2 -1
  554. package/dist/studio-dev-server.js.map +1 -1
  555. package/dist/target-client.d.ts +12 -2
  556. package/dist/target-client.d.ts.map +1 -1
  557. package/dist/target-client.js +14 -1
  558. package/dist/target-client.js.map +1 -1
  559. package/dist/tsx-runner.d.ts +5 -0
  560. package/dist/tsx-runner.d.ts.map +1 -1
  561. package/dist/tsx-runner.js +16 -16
  562. package/dist/tsx-runner.js.map +1 -1
  563. package/dist/type-extractor.d.ts.map +1 -1
  564. package/dist/type-extractor.js +27 -3
  565. package/dist/type-extractor.js.map +1 -1
  566. package/dist/type-generation.d.ts +1 -1
  567. package/dist/type-generation.d.ts.map +1 -1
  568. package/dist/type-generation.js +2 -4
  569. package/dist/type-generation.js.map +1 -1
  570. package/dist/type-resolver.d.ts.map +1 -1
  571. package/dist/type-resolver.js +31 -12
  572. package/dist/type-resolver.js.map +1 -1
  573. package/dist/ui/clack-api.d.ts.map +1 -1
  574. package/dist/ui/clack-api.js +45 -23
  575. package/dist/ui/clack-api.js.map +1 -1
  576. package/dist/ui/components/LineInput.d.ts +26 -0
  577. package/dist/ui/components/LineInput.d.ts.map +1 -0
  578. package/dist/ui/components/LineInput.js +60 -0
  579. package/dist/ui/components/LineInput.js.map +1 -0
  580. package/dist/ui/dev/DevReadyPanelView.js +1 -1
  581. package/dist/ui/dev/DevReadyPanelView.js.map +1 -1
  582. package/dist/ui/flows/FlowApp.d.ts +3 -1
  583. package/dist/ui/flows/FlowApp.d.ts.map +1 -1
  584. package/dist/ui/flows/FlowApp.js +14 -5
  585. package/dist/ui/flows/FlowApp.js.map +1 -1
  586. package/dist/ui/flows/prompt-fields.d.ts +3 -1
  587. package/dist/ui/flows/prompt-fields.d.ts.map +1 -1
  588. package/dist/ui/flows/prompt-fields.js +10 -5
  589. package/dist/ui/flows/prompt-fields.js.map +1 -1
  590. package/dist/ui/flows/types.d.ts +5 -1
  591. package/dist/ui/flows/types.d.ts.map +1 -1
  592. package/dist/ui/runtime/command-chrome.d.ts.map +1 -1
  593. package/dist/ui/runtime/command-chrome.js +2 -0
  594. package/dist/ui/runtime/command-chrome.js.map +1 -1
  595. package/dist/ui/runtime/flow-transcript.d.ts +17 -0
  596. package/dist/ui/runtime/flow-transcript.d.ts.map +1 -0
  597. package/dist/ui/runtime/flow-transcript.js +38 -0
  598. package/dist/ui/runtime/flow-transcript.js.map +1 -0
  599. package/dist/ui/runtime/run-clack-flow.d.ts +7 -0
  600. package/dist/ui/runtime/run-clack-flow.d.ts.map +1 -1
  601. package/dist/ui/runtime/run-clack-flow.js +131 -17
  602. package/dist/ui/runtime/run-clack-flow.js.map +1 -1
  603. package/dist/valkey-sidecar.d.ts +24 -11
  604. package/dist/valkey-sidecar.d.ts.map +1 -1
  605. package/dist/valkey-sidecar.js +45 -25
  606. package/dist/valkey-sidecar.js.map +1 -1
  607. package/dist/windows-processes.d.ts +7 -0
  608. package/dist/windows-processes.d.ts.map +1 -0
  609. package/dist/windows-processes.js +31 -0
  610. package/dist/windows-processes.js.map +1 -0
  611. package/dist/write-if-changed.d.ts +12 -0
  612. package/dist/write-if-changed.d.ts.map +1 -0
  613. package/dist/write-if-changed.js +32 -0
  614. package/dist/write-if-changed.js.map +1 -0
  615. package/package.json +7 -6
  616. package/dist/systemd.d.ts +0 -26
  617. package/dist/systemd.d.ts.map +0 -1
  618. package/dist/systemd.js +0 -117
  619. package/dist/systemd.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,20 +1,585 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 0.9.2 (2026-11-12)
4
+
5
+ ### Breaking Changes
6
+
7
+ * **storage:** the storage service's S3 settings have no defaults that point somewhere. With
8
+ `STORAGE_BACKEND=s3` it used to fall back to `http://localhost:8333` and the SeaweedFS login
9
+ published in this repository for any setting left out. It now needs `S3_REGION` for AWS or
10
+ `S3_ENDPOINT` for another store, takes both keys or neither (neither uses the AWS SDK's own
11
+ credentials), and refuses to start otherwise, saying which setting is missing. The self-host
12
+ compose stack sets every one of them, so it is unaffected.
13
+ * **self-host:** the hidden `supatype self-host native` commands (`install-service`, `serve`,
14
+ `reload`, `status`, `logs`, `backup`) are removed. They were undocumented and untested, and
15
+ `serve` ran the server's built-in object store, which applies no storage read rules: anyone with
16
+ the anon key could read a private bucket. The systemd units `install-service` wrote started no
17
+ storage service either. Docker Compose (`supatype self-host compose`) is the self-host path; back
18
+ up a Compose stack with `pg_dump` against `DATABASE_URL`.
19
+
20
+ ### Features
21
+
22
+ * **storage:** single-bucket S3 mode, as Supabase Storage does with `GLOBAL_S3_BUCKET`. Set
23
+ `S3_BUCKET` and every Supatype bucket is a key prefix inside that one S3 bucket. The service never
24
+ creates an S3 bucket or puts a bucket policy, the S3 bucket stays private, and the keys need only
25
+ read, write, list and delete on it. Without `S3_BUCKET`, each Supatype bucket still gets an S3
26
+ bucket of its own, now named `S3_BUCKET_PREFIX` then the bucket's id. A bucket's `s3BucketPolicy`
27
+ is never applied in single-bucket mode, since it would cover every bucket at once. The storage
28
+ service refuses it with 400 on a bucket made or changed through its API.
29
+ * **self-host, dev, init:** `storage: { production: "s3" }` in supatype.config.ts (init writes it
30
+ from its "Production storage?" answer) makes `self-host compose` run the storage service against
31
+ your own S3 bucket, with no SeaweedFS in the stack. Native `dev` with `storage: { provider: "s3" }`
32
+ runs the storage service against the bucket in `.env`, so access rules apply there too.
33
+ * **auth:** `auth.email.enabled: false` in supatype.config.ts turns email-and-password sign-up and
34
+ sign-in off (with magic links and password recovery) on native dev, Docker dev and self-host; a
35
+ `SUPATYPE_EXTERNAL_EMAIL_ENABLED` in `.env` wins. Studio's auth Configuration page names the key
36
+ for it and for email confirmation.
37
+
38
+
39
+
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * **dev:** a project's own running database on the default port keeps it when `.env` names no port,
45
+ instead of being moved to the next free port and saved there.
46
+ * **seed:** a plain `where` in `$if` takes bigints and compares decimal columns exactly, as an
47
+ upsert's `where` does, and says plainly that a reference cannot be compared there.
48
+ * **seed:** `$if` takes `where: { name: "x" }`, each column equal to its value like an upsert's
49
+ `where`, as well as `eq()` and the other predicates. The plain form failed with "not valid IR:
50
+ missing field type" (#303).
51
+ * **seed:** array columns can be seeded. `tags: ["a", "b"]` and `tags: []` failed with "expression is
52
+ of type text". Needs schema engine 0.10.1.
53
+ * **dev:** Ctrl+C while a Docker dev is still starting now says "Stopped during start.", takes the
54
+ stack down and exits 130, as native dev does. It said "Shutting down…" and exited 0.
55
+ * **dev, functions serve:** stopping dev or `functions serve` now ends everything Supatype's
56
+ processes started, including the Deno functions worker native dev's server runs and whatever
57
+ Deno itself starts, on Ctrl+C, SIGTERM, a forced quit or a crash, so the next run no longer finds
58
+ the functions port taken. Windows ends the whole process tree. Linux and macOS give each process a
59
+ process group and end the group.
60
+ * **dev:** a Vite app started by `supatype dev` now listens on the address and port the app proxy forwards
61
+ to (`--host 127.0.0.1 --port <upstream port> --strictPort`), and keeps its script's own flags. On Windows,
62
+ Vite listened on [::1] while the proxy dialled 127.0.0.1, so the App URL answered 502 or showed another
63
+ project's app. `init` now checks the Vite port is free on both loopbacks and offers the next free one.
64
+ * **dev:** before starting your app, `dev` now ends only a leftover process of this project's own. Another
65
+ program on the app's port is left running, and dev says `port 5173 is used by another program (pid X)`
66
+ instead of starting the app. Two projects on one port used to end each other's dev server every few
67
+ seconds, which showed as the app exiting with code 1 and no error.
68
+ * **dev and every command that checks Docker:** a Docker that is running but slow to answer is now
69
+ waited for, up to 60 seconds, with a "Waiting for Docker to answer" line, instead of being reported
70
+ as not running after 10 seconds. `SUPATYPE_DOCKER_TIMEOUT` changes the wait. A Docker that refuses
71
+ the connection or is paused still fails at once.
72
+ * **dev:** the "Services running" panel no longer prints the Postgres password or the full
73
+ service_role key, so neither lands in CI logs. The database URL is masked as `status` masks it,
74
+ and the key is shown as a fingerprint pointing at `SERVICE_ROLE_KEY` in `.env`. Native dev now
75
+ fills a blank or missing `SERVICE_ROLE_KEY` in `.env` with the key the stack runs with, as Docker
76
+ dev does, and never replaces one you set.
77
+ * **generate:** the client's types now include the columns the engine adds for `timestamps: true` and
78
+ `softDelete: true` (`created_at`, `updated_at`, `deleted_at`), filled by the database and so
79
+ optional on insert, so selecting `updated_at` no longer fails `tsc`. Hook row types include them too.
80
+ * **schema:** `WithPublishable<{ ... }>` now adds the nullable `published_at` column, as
81
+ `{ ... } & Publishable` already did. The wrapper used to drop it, so the two spellings of one type
82
+ built different tables. A `published_at` the model declares itself keeps its own shape.
83
+ * **client:** `single()` on a write no longer declares a `count` it never reads, so the client source
84
+ compiles under `noUnusedLocals`. The package now checks that flag itself.
85
+ * **client:** `.range()` now sends `offset` and `limit` like supabase-js, so `.limit(n).range(a, b)` and
86
+ `useQuery(..., { limit, offset })` no longer fail with 416, and a cached read of one page is no longer
87
+ served for another page. Whichever of `limit()` and `range()` is called last sets the page size.
88
+ * **vue, svelte, solid:** query options can be a ref or getter (Vue), a store (Svelte) or an accessor
89
+ (Solid), and the query runs again when they change. Before, sort, page and filter were read once.
90
+ * **react:** `useQuery` with an `offset` and no `limit` reads a page of 100 rows, as the Vue, Svelte
91
+ and Solid queries do, instead of ignoring the offset.
92
+ * **push:** a push to the Docker stack whose step after the schema fails (starting the stack, waiting
93
+ for the gateway, creating a bucket) now says the schema was applied but the push did not finish,
94
+ prints no success line, and exits 1, as native and linked pushes do. It printed "Schema pushed."
95
+ and exited 0, so pipelines passed with buckets missing (#301).
96
+ * **push:** a push with no `SUPATYPE_KONG_PORT` in `.env` no longer waits 120 seconds on the wrong
97
+ port. It took the project's own running gateway on 18473 for another program's, moved to 18481
98
+ where nothing listened, and silently skipped creating buckets.
99
+ * **schema:** a bucket's `s3BucketPolicy` that is not a JSON object is refused when the schema is
100
+ read, naming the bucket. A push writes the bucket through the engine, so the storage service's own
101
+ check never saw it and the bad policy was stored without being applied.
102
+ * **dev:** native dev no longer falls back to the server's built-in object store when the storage
103
+ service does not start. That store applied no storage read rules, so any token, the anon key
104
+ included, could read or sign any object in a private bucket. Storage is now off instead:
105
+ `/storage/v1` answers 503 "storage service is not running", dev says why and how to fix it, and
106
+ the stored files come back on the next start.
107
+ * **cli:** the npm package now installs on Node.js 18 and later, not only 22, and an older Node is
108
+ told which version to install. 0.8.0 to 0.9.1 asked for Node 22, which the package never needed,
109
+ so npm on Node 18 or 20 quietly installed 0.7.0 instead of the latest release.
110
+ * **self-host:** a self-hosted stack now sends a confirmation link with every new email sign-up
111
+ unless `auth.email.enableConfirmations` is `false`; it used to confirm every sign-up at once, so
112
+ anyone could sign up with an address they do not own. Local dev still confirms at once.
113
+ * **auth:** the CLI no longer writes `SUPATYPE_MAILER_AUTOCONFIRM` into `.env`, so a value you set
114
+ there and restart with is kept, as the auth docs say; before, every start rewrote it from the
115
+ config. The line an earlier CLI wrote is taken out once, with a message saying so, and `init`
116
+ marks new projects so their own line is never taken out.
117
+ * **examples:** kitchen-sink, supabucks, framework-parity and expo-auth's web export run from a
118
+ plain `vite build` / `expo export` again: the page loads `/supatype-env.js` and the client reads
119
+ the anon key from it, so a build no longer shows a blank page after `dev` or `keys`, and never
120
+ ships the local stack's key. Each example's `.gitignore` now ignores `.env.*.local`.
121
+ * **keys:** an anon key written with no API URL in `.env` goes to `.env.development.local`, not
122
+ `.env`, so a plain production build no longer bakes the local stack's key.
123
+ * **realtime:** realtime no longer makes Postgres log six lines every 100 ms while nothing is
124
+ changing. It reads the replication slot only once the WAL has moved past it, so an idle stack
125
+ stopped writing about 0.8 GB of database log a day.
126
+ * **self-host:** every container in the self-host and Docker dev compose file now rotates its log
127
+ (json-file, 10 MB x 5 files), so a Linux server's disk no longer fills with container logs. Set
128
+ `SUPATYPE_LOG_MAX_SIZE` and `SUPATYPE_LOG_MAX_FILE` in `.env` to change the sizes.
129
+ * **gateway:** Docker dev and self-host now answer 400 to an API or Studio request whose path has an
130
+ empty, `.` or `..` part (`%2E` too), as native does. Kong used to resolve these first, so `x/../a`
131
+ wrote the storage object `a` and `/studio/../auth/v1/...` reached auth. Your app's own paths are
132
+ not checked and reach it as before.
133
+ * **client:** `createClient` drops a trailing `/` from its URL, so `https://api.example.com/` no
134
+ longer builds `//rest/v1/...`, which the gateway now refuses and native never routed.
135
+ * **storage:** a private bucket no longer tells a caller its read rule refuses which file names
136
+ exist: download, authenticated download and signing answer 403 for a missing name exactly as for
137
+ one that exists, where they used to answer 404 "Object not found" for a missing name. A caller the
138
+ rule lets read the name still gets 404 for one that is not there.
139
+ * **init, generate:** the Next.js `/supatype-env.js` route works on a new create-next-app. Next 16
140
+ turns on `cacheComponents`, which refuses the route's `export const dynamic` with a 500; the route
141
+ is now only `export { GET } from "@supatype/ssr/next"`, and `GET` reads the request, which keeps it
142
+ rendered per request (not prerendered with the build machine's values) on Next 14, 15 and 16.
143
+ `supatype generate`, which `prepare` runs on install, replaces a route 0.9.1 wrote while it is
144
+ unchanged, warns about a changed one that still has the line, and warns when the installed
145
+ `@supatype/ssr` is older than 0.9.2. The docs' server helper awaits `connection()`, so Next 16 no
146
+ longer logs a `Date.now()` prerender error, and says where to put it with or without `src/`.
147
+ * **realtime:** `channel(name).on("postgres_changes", { table })` and `useSubscription` now watch
148
+ the `public` schema when no `schema` is given, as the docs say. A channel name with a colon, such
149
+ as `post:42`, was read as `schema:table` even when the listener named its table, so the
150
+ subscription reported SUBSCRIBED and delivered nothing. The realtime server reads a subscribe
151
+ message the same way. The name is still read as `schema:table` when no table is given.
152
+ * **react:** `useQuery`'s `refetch`, `useAuth`'s sign-in and sign-out methods, and
153
+ `usePasswordRecovery`'s `finish` now keep the same identity across renders, so an effect can list
154
+ them as dependencies. A new function on every render made `useEffect(() => refetch(), [refetch])`
155
+ loop, sending thousands of requests a second and ending in "Maximum update depth exceeded".
156
+ * **init, dev:** `supatype dev` no longer starts itself as the app. In 0.9.1, `init` with "Local dev
157
+ server" and the script prompt left at its default wrote `app.start: "dev"`, and in a new folder
158
+ `dev` is init's own `supatype dev`, so dev ran a second copy in its app pane that failed and was
159
+ restarted for ever. `init` now asks about Vite first: a Vite app runs the `vite` script at Vite's
160
+ URL, with nothing more to ask. Without Vite it offers the project's own `dev` or `start`, never one
161
+ that runs `supatype dev`, and refuses any script that runs it. `dev` refuses such a script too, saying to
162
+ set `app.start`, so a project 0.9.1 made needs only that one edit. A `supatype dev` reached some
163
+ other way (`npm run supatype:dev`, `concurrently`) stops at once with the same advice, and the app
164
+ pane leaves it stopped.
165
+ * **dev:** a service that keeps crashing as it starts is no longer restarted every 30 seconds for
166
+ ever. After 5 crashes in a row, each within 5 seconds of its start, dev says so once and retries
167
+ less often, the wait doubling past 30 seconds, so a fix to what it needs is still picked up. Once
168
+ the wait would reach 5 minutes, about 8 minutes in, dev leaves it stopped and says to fix the
169
+ error and restart `supatype dev`. This covers the app, Studio, and on a native project the server,
170
+ PostgREST, realtime and storage. Realtime stopped this way is switched off at the gateway, as it
171
+ already was after a clean exit. A run that lasts longer starts the count over, and the wait
172
+ before the next restart goes back to 1 second instead of staying at the longest it reached.
173
+
174
+ ## 0.9.1 (2026-11-09)
175
+
176
+ ### Breaking Changes
177
+
178
+ * **push, diff, seed and every command that reaches the local stack:** these commands no longer
179
+ start the local stack. On a Docker project with the stack stopped, `push`, `diff`, `adopt`,
180
+ `doctor`, `seed`, `migrate`, `migrations list`, `rollback`, `reset`, `introspect`, `pull` and
181
+ `admin` refuse before doing anything: "The local stack isn't running. Start it with
182
+ `supatype dev`, or `supatype self-host compose up -d` on a server, then run `supatype push`
183
+ again." (naming the command run). `seed` exits 2, the others 1. `push` used to start Postgres,
184
+ apply, then start the rest of the stack, and `diff` started Postgres and stopped it again. A
185
+ linked project, `--connection`, `connection` in the config and an external database are reached
186
+ as before, and a running stack behaves as before.
187
+ * **cache, functions:** `cache rest list`, `get`, `delete` and `flush`, and a local `functions invoke`
188
+ that no `functions serve` answers, refuse on a Docker project whose local stack is not running,
189
+ with the same message as `push` and the other commands that need the stack, naming the command
190
+ run, and exit 1. They reached the stopped stack's API and failed with `Cannot reach` or a
191
+ missing `SERVICE_ROLE_KEY`. An API address named by `SUPATYPE_URL` or `SUPATYPE_API_URL` in
192
+ `.env`, a linked project's `functions invoke`, and a native project are unaffected.
193
+ * **client:** `SupatypeError` is a class, and the one error type every `{ data, error }` result
194
+ carries, so `error instanceof Error` holds and `String(error)` reads the message instead of
195
+ `[object Object]`. The class the SDK throws, which was called `SupatypeError`, is now
196
+ `SupatypeCodedError` (still with a required `code` and a `helpUrl`), and its `statusCode` is
197
+ `status`. `PostgrestError`'s `details` and `hint` are absent rather than `null` when the server
198
+ gave none. The full entry is in the `@supatype/client` changelog.
199
+
200
+ **How to move from 0.9.0.** Two changes need action.
201
+
202
+ The error class (`@supatype/client`). Code that catches the SDK's thrown errors by class, builds
203
+ one, or reads `statusCode`, renames the class and the field. Code that only reads a result's
204
+ `error.message`, `code`, `status`, `field`, `hint` or `details` needs no change. A test comparing a
205
+ result's error with `toEqual` against a plain object compares `{ ...error }` instead, and a check
206
+ for `details === null` or `hint === null` checks for `undefined`.
207
+
208
+ ```ts
209
+ // 0.9.0
210
+ import { SupatypeError } from "@supatype/client"
211
+
212
+ function report(e: unknown): void {
213
+ if (e instanceof SupatypeError) console.error(e.code, e.statusCode, e.helpUrl)
214
+ }
215
+
216
+ // 0.9.1
217
+ import { SupatypeCodedError } from "@supatype/client"
218
+
219
+ function report(e: unknown): void {
220
+ if (e instanceof SupatypeCodedError) console.error(e.code, e.status, e.helpUrl)
221
+ }
222
+ ```
223
+
224
+ `instanceof SupatypeError` now holds for every error the SDK throws and every result's error, so
225
+ use `SupatypeCodedError` when the code relies on `code` always being there or on `helpUrl`.
226
+
227
+ The local stack. `push`, `diff`, `seed` and the other commands above no longer start a stopped
228
+ stack. Start it first: `supatype dev` on a development machine (in another terminal, or before the
229
+ command), or `supatype self-host compose up -d` on a server. A CI job that ran `supatype push`,
230
+ `diff` or `seed` against a fresh runner brings the stack up as its own step before them, and checks
231
+ `seed`'s exit code 2 as well as 1. A job that reaches a linked project, passes `--connection`, or
232
+ sets `connection` in the config is unaffected.
233
+
234
+ ### Features
235
+
236
+ * **auth:** SAML single sign-on can be turned on from the config: `auth: { sso: { saml: { enabled: true } } }`,
237
+ with optional `allowEncryptedAssertions`, `relayStateValidity` (seconds), `rateLimitAssertion`
238
+ (assertions per 5 minutes) and `externalUrl`. `dev`, native `dev` and `self-host compose` pass the
239
+ `SUPATYPE_SAML_*` settings to the auth server, a `.env` value winning over each, and nothing while
240
+ SAML is off. The service provider's signing key is generated into `.env` as
241
+ `SUPATYPE_SAML_PRIVATE_KEY` (RSA 2048) the first time SAML is on and never replaced, since a new
242
+ key breaks every identity provider that trusts the old certificate. The compose file requires it
243
+ from `.env` and never holds it. A key written into the config is refused.
244
+ * **sso:** `supatype sso add <name>`, `list`, `show`, `update` and `remove` register SAML identity
245
+ providers (metadata URL or file, email domains, attribute mapping, NameID format) through the auth
246
+ server's admin API, on the local stack or a linked self-hosted deployment. A provider is addressed
247
+ by its name, stored as `resource_id`, and `update` changes it in place: deleting and adding a
248
+ provider again would leave every user who signed in through it without a way back in. `update`
249
+ keeps the NameID format unless told to change it. `add` warns when SAML is off.
250
+ * **sso:** `supatype sso info` prints the values an identity provider asks for: entity ID and
251
+ metadata URL, ACS URL, NameID formats, the `subject-id` attribute preferred to the NameID, and a
252
+ link to download the metadata XML.
253
+ * **sso:** `supatype sso rotate-key` writes `SUPATYPE_SAML_NEXT_PRIVATE_KEY` into `.env`, which the
254
+ server publishes beside the current key while identity providers take the new certificate;
255
+ `supatype sso rotate-key --promote` then makes it the current key, after saying what stops working
256
+ for an identity provider that has not updated. For a linked deployment it prints the steps to take
257
+ on the server.
258
+ * **sso:** `supatype sso verify-domain <name> <domain>` proves the project owns one of a provider's
259
+ domains: it prints the DNS TXT record to add (`_supatype-challenge.<domain>` and its token), asks
260
+ the auth server to check it, and says whether the domain is verified or what DNS answered instead,
261
+ exiting 1 until it is. Running it again checks again. `sso show` and `sso list` mark each domain
262
+ verified or not. On a dev stack a domain ending in `.supatype.test` counts as verified with no DNS
263
+ lookup.
264
+ * **self-host:** `supatype self-host compose up -d` creates the storage buckets the schema declares
265
+ and the first admin user once the stack answers, as `supatype dev` and a push to a running stack
266
+ do. A push no longer starts a stopped stack, so nothing else would have made them. A failure there
267
+ is a warning: the stack is up.
268
+ * **init:** a static app's `index.html` (and the page Vite builds it from) loads
269
+ `<script src="/supatype-env.js" vite-ignore></script>` in its head, so the built site takes the address and
270
+ anon key of whichever deployment serves it. Only where the committed config serves the app's
271
+ files; a proxied app's page is left as it was.
272
+ * **init:** in a Next.js App Router app, init writes `app/supatype-env.js/route.ts` (or under
273
+ `src/app`, and `route.js` without a `tsconfig.json`), which serves `/supatype-env.js` from
274
+ `@supatype/ssr/next` with the running server's `SUPATYPE_URL` and `SUPATYPE_ANON_KEY`, adds
275
+ `@supatype/ssr` to the app's dependencies, and loads the script first in the root layout's
276
+ `<body>` with `next/script`'s `beforeInteractive`. One `next build` then runs against any
277
+ deployment. A route or layout that already has it is left alone; a layout init cannot edit
278
+ safely (no single `<body>`, or a `Script` that is not `next/script`) is left as it is, and the two
279
+ lines to add are printed. A Pages Router app gets nothing written and the steps printed. A static
280
+ export (`output: "export"` in `next.config`, read as text) gets neither the route nor the script,
281
+ since `next build` cannot export a dynamic route; init says to build it with
282
+ `supatype build -- next build`, or to let Supatype hosting serve it.
283
+ * **dev, init, keys:** a local stack's values in `.env.development.local` now include
284
+ `SUPATYPE_URL` and `SUPATYPE_ANON_KEY` beside the frontend copies, so a Next.js app's
285
+ `/supatype-env.js` route and its server client find them in `next dev` instead of refusing with 503.
286
+ A deployment's values in `.env` still get only the frontend names. The CLI never loads
287
+ `.env.development.local` into its own environment, so `supatype build` does not take these as
288
+ values the host set.
289
+ * **client:** the generated client takes `url` and `anonKey` as `string | undefined` and, for one
290
+ missing, reads the page's `window.__SUPATYPE_ENV__` at its first request; with neither, that
291
+ request throws naming the variables to set, `supatype build` and the Next.js route, instead of
292
+ sending requests the gateway refuses. Creating the client never throws, so `next build` can
293
+ prerender a page that creates one at module scope.
294
+ * **diff:** every `supatype diff` ends with what `anon` (signed out) and `authenticated` (signed
295
+ in) may do on each model's table once the push applies, one line per table (`question read`,
296
+ `profile none`). A line the push changes shows what it is now as well
297
+ (`question none -> read`). The engine grants `anon` a privilege only where it can prove the rule
298
+ needs no login, so a rule meant to be public that leaves signed-out callers with `401 42501` is
299
+ seen before the push (issue 16). Printed also when there are no changes; an engine older than the
300
+ summary prints no block. Many-to-many junction tables are listed too, as `post_tags (link)`, and
301
+ a link whose end reads it through its own read rule says what it denies and why
302
+ (`none (read denied: an end's read rule reads this link table)`).
303
+ * **push:** prints the same access block before it applies or asks to confirm, in a terminal and
304
+ with `--yes` alike.
305
+ * **dev:** after a push applies, prints the access lines it changed (`question none -> read`),
306
+ and nothing when no line changed.
307
+ * **build:** `supatype build [--env <name>] [--allow-local] [-- <command...>]` runs the app's
308
+ production build (the package.json `build` script through the project's package manager, or the
309
+ command after `--`) with the deployment's API URL and anon key under every front-end name
310
+ (`VITE_`, `PUBLIC_`, `NEXT_PUBLIC_`, `EXPO_PUBLIC_`). Each value comes from the first of: the
311
+ environment (any of those names, or `SUPATYPE_URL` / `SUPATYPE_ANON_KEY`), so a host's own
312
+ settings win; for the anon key alone, the `/supatype-env.json` of the server the environment's
313
+ URL names, for CI that sets only the URL; the linked environment (Supatype Cloud's keys route, or
314
+ a self-hosted server's `/supatype-env.json`); a `.env` recording a deployment
315
+ (`PUBLIC_SUPATYPE_URL` or `API_EXTERNAL_URL`, and `ANON_KEY`). A server's address is fetched over
316
+ HTTPS only, unless it is local. A 404 there is reported as the address switched off
317
+ (`server.public_env: false`), and a 503 as a server not set up to publish its anon key, quoting
318
+ its reason on one line with anything shaped like a JWT withheld. An anon key from the link, a server or `.env` goes into the build
319
+ only when it is for the same deployment as the URL (compared by scheme, host and port, ignoring a
320
+ trailing slash and `/auth/v1`); otherwise the refusal says whose it is. The build does not start when either is missing, or when the address is local
321
+ unless `--allow-local` is passed, and the refusal lists every source it tried. Nothing is written
322
+ to a file, the service role key is never given to the build, and the exit code is the build's
323
+ own. A bare `supatype build` run from inside one (a package.json `"build": "supatype build"`) is
324
+ refused rather than running the build script again without end; a command after `--` still runs.
325
+ * **keys:** `supatype keys --print frontend [--env <name>] [--allow-local]` prints those same
326
+ front-end names and values as `NAME=value` lines, and nothing else on stdout, for a host's
327
+ settings or `$GITHUB_ENV`. Bare `--print` still prints the key pair. An unknown target is refused,
328
+ listing the valid ones, and `--env` or `--allow-local` without `--print frontend` is refused.
329
+ `keys --help` states the `--exp-years` default once.
330
+ * **config:** `server.public_env: false` renders `SUPATYPE_PUBLIC_ENV=false` into the server (self-host
331
+ and dev compose, and native dev), turning off its `/supatype-env.json` and `/supatype-env.js` for
332
+ an API-only project. Absent, the server's default (on) applies. A value that is not a boolean is
333
+ refused.
334
+ * **init:** the "When you're ready to deploy" steps build the app with `supatype build --env
335
+ production` once the deployment is linked, for Supatype Cloud and self-host.
336
+
337
+ ### Bug Fixes
338
+
339
+ * **dev:** a save made by writing another file and renaming it over the schema is pushed. `sed -i`
340
+ saves were always missed on Linux, and an editor's safe write or a script's `mv` about one time in
341
+ three: the event named only the other file, which the watch ignored, so the database kept the old
342
+ schema and nothing said so. Any event in the schema folder now leads to a check of the schema
343
+ itself.
344
+ * **init, self-host compose, dev:** every project gets its own object-store login, generated into
345
+ `.env` as `SUPATYPE_OBJECT_STORE_ACCESS_KEY` and `SUPATYPE_OBJECT_STORE_SECRET_KEY`, and the compose
346
+ file reads it from there. Every stack shared the published pair `supatype` / `supatype-secret`,
347
+ which opens every file in every bucket past the bucket rules to anything that can reach port 8333.
348
+ A project still on that pair gets a new one on its next `dev` or `self-host compose up`; stored
349
+ files are kept.
350
+ * **self-host compose up and restart:** the mailer settings come from the committed config. `dev`
351
+ wrote them into `.env` from the config with `supatype.local.config.ts` over it, so production
352
+ started with dev's mail catcher as its SMTP host, and with dev's last autoconfirm after the config
353
+ turned email confirmations on. Values the CLI writes from the config are marked as its own and taken
354
+ out when the config stops giving them; a value written by hand is left.
355
+ * **init:** choosing SMTP asks for the host and port. `dev` and `self-host compose up` warn when the
356
+ provider is SMTP and no host is set, which made the server drop every email without a word.
357
+ * **functions new, functions env set:** `functions env set` in a project with no `functions/` folder
358
+ creates it, where it said "Setting FOO" and then failed with ENOENT. `init`, `functions new` and
359
+ `env set` create `functions/.env.local` the same way.
360
+ * **status:** on the local stack, the stack's services are listed after its functions, and `_shared`
361
+ is no longer listed as a function. The database line is the address a program on this machine
362
+ connects to, with the password shown as `***`, as `seed --status` shows it.
363
+ * **self-host compose up, every command in a terminal:** docker's output no longer goes straight to
364
+ the terminal while a command's screen is up. It landed in the screen being redrawn, and the notices
365
+ above it came out twice. It is kept and shown when docker fails, and what docker prints as its
366
+ answer, `ps`'s table say, goes into the command's log.
367
+ * **push, every command in a terminal:** a spinner's line stays above the lines its work logs.
368
+ `push` printed "Schema pushed." above "Applying schema via Docker Compose".
369
+ * **init:** the closing list of the secrets it generated names the object store's login.
370
+ * **login:** the saved Cloud session is created readable by its owner alone (600). It holds the
371
+ session's tokens. A project's `.env` is not: the stack's containers read it as another user, and an
372
+ owner-only `.env` stopped the server starting on a Linux host.
373
+ * **migrations list:** a push by an OS user with no git name says "(unverified)" once. The recorded
374
+ author now reads `nic (OS user)`, and the list adds whether it was verified.
375
+ * **every command in a terminal:** what a command logged stays on screen when it ends, once. The
376
+ command's chrome was cleared at the end and a short report went with it: `seed --status` showed
377
+ nothing in a terminal, only when piped. The last frame is now just the logged lines, and it is left
378
+ on screen.
379
+ * **every command in a terminal:** a command that fails and exits shows why. `types check` in a
380
+ project with no `tsconfig.json` printed its banner and exited 1 with no message, because the
381
+ process ended before the message was drawn.
382
+ * **every text prompt:** a pasted line that ends in a line break is submitted, where the break was
383
+ kept in the answer and drawn raw over the prompt's border. Backspaces sent in one burst erase.
384
+ * **reset:** drops the managed tables, applies the schema to the empty tables and runs the seeds
385
+ again, which `--no-seed` skips. It printed "Reset complete." and changed nothing: it pushed the
386
+ schema the database already had. Sign-ins, stored files, Studio members and SSO providers are kept;
387
+ `dev --reset-db` still wipes the whole database.
388
+ * **migrate, reset, rollback, migrations list, rename --prune, pull, deploy --local:** on the local
389
+ stack's own database these run the project's engine image, as `push`, `diff` and `seed` do. They
390
+ ran the engine binary cached on this machine, so with an engine image chosen, `migrate` wrote SQL
391
+ from the released engine that `push` no longer ran. A `--connection` to another database still
392
+ runs the binary here.
393
+ * **seed:** `supatype seed` and `npm run seed` work from the standalone binary on Windows. Every
394
+ seed file failed with "Cannot find module 'B:\~BUN\root\seed-ir.js'": the seed ran from a temp
395
+ file that could not import the CLI's own modules out of the binary. The binary now collects a
396
+ seed by running itself, as it already does to read the config. It also resolves packages from the
397
+ project's node_modules, which it could not do at all, so a seed builder's `@supatype/cli/seed`
398
+ import is found.
399
+ * **init:** a Kong port typed that another running Supatype stack holds gets one reason at every
400
+ prompt, "Port N is in use by another Supatype stack configured with it.". The first prompt said
401
+ it was configured for another stack and the next said it was in use on this machine.
402
+ * **envs:** `envs list` says when the default environment is not linked, and how to link it:
403
+ "Default: production (from supatype.config.ts environments, not linked: run supatype link --env
404
+ production)". No environment was starred and nothing said why.
405
+ * **sso:** `supatype sso info` prints the signing certificate from the server's own metadata. It
406
+ said "it lists no certificate" because it only read a `<X509Certificate>` with nothing after the
407
+ name, and the server writes `<X509Certificate xmlns="...">`.
408
+ * **init:** the reasons around the Kong port prompt can be read. A port typed that is in use is
409
+ asked for again with the reason above the question, and a port only a stopped Supatype stack is
410
+ configured with is taken only after a yes to "Use it anyway?". Both were logged between prompts,
411
+ and the next prompt's redraw wiped them before anyone could read them.
412
+ * **self-host:** `supatype self-host compose up` checks the ports the stack publishes before it
413
+ starts anything, and names the port, the service and how to see what holds it. Docker used to fail
414
+ on the port after starting some containers. A stack whose gateway never answers is now reported as
415
+ "started but is not serving", with exit 1; it said "The stack is up" and exited 0.
416
+ * **envs:** `supatype envs list` names the default commands actually use, and says when it comes
417
+ from `environments` in supatype.config.ts, which wins over `envs use`. `envs use` says so too when
418
+ the config names another environment, rather than "Default environment set". A command refused for
419
+ an environment that is not linked says when the config named it.
420
+ * **pull:** `supatype pull` no longer hangs at "Introspecting database...". The engine reads its
421
+ input from stdin when it is not given an input file, `introspect` is given none, and the CLI left
422
+ the engine's stdin open with nothing written to it. Every program the CLI runs for its output,
423
+ the host engine and each `docker` call (so the engine run by `compose run`), now gets a closed
424
+ stdin after any input it is sent.
425
+ * **adopt, doctor, pull and every command that reaches the local stack's database:** on a running
426
+ stack whose `db` container was stopped on its own, these refuse with the "local stack isn't
427
+ running" message, as `diff` and `push` do, and leave it stopped. `adopt` and `doctor` ran the
428
+ engine with `docker compose run`, which started `db` as its dependency, so `adopt` answered
429
+ "Nothing to adopt" with the database running again; `pull` went on to the stopped database and
430
+ printed nothing.
431
+ * **db check:** `supatype db check` in a project reads DATABASE_URL from the project's `.env`, as
432
+ every other command does; with only `.env` naming the database it said "No connection". It is for
433
+ a Postgres the project does not run, so a stopped local stack is no reason to refuse it. A refused
434
+ connection names the address it tried, never the password, and says to check that the database
435
+ is running and that the source of the URL names the right host and port; it printed only
436
+ `connect ECONNREFUSED 127.0.0.1:54329`. The `push` check of a database Supatype does not run,
437
+ and `doctor`'s after-hooks check, say it the same way.
438
+ * **dev:** on Windows, `supatype dev` no longer stops itself two seconds after starting in a shell
439
+ whose own parent had already exited (a window opened by `Start-Process`, by `start` from a script,
440
+ or by a terminal launcher that exits). It watches the shell's parent too, and counted one that was
441
+ gone from the start as the process that started dev exiting. Only an ancestor alive when dev
442
+ started counts now, so dev still stops when the script or agent that started it is killed.
443
+ * **dev:** the dashboard's `supatype` pane shows what a save did, as `dev --stream` prints it: the
444
+ change detected, applied or failed (with its hints), the access lines the save changed, and the
445
+ generated files written. It stayed at "Services running." through every save: the renderer took
446
+ the console over once the dashboard was drawn, and the pane's filter dropped the access lines
447
+ besides.
448
+ * **dev, push:** a stack service that exits while the CLI waits for the API gateway stops the wait.
449
+ With the server container exited on a fatal config error, `supatype dev` sat at `Waiting for API
450
+ gateway...` for 120 s, failed naming the gateway's health, and then removed the containers, so
451
+ the server's log was gone. The wait now watches `db`, `kong`, `server`, `realtime` and `storage`:
452
+ once one has exited it says which, with its exit code, and prints its last 30 log lines with the
453
+ project's secrets from `.env` and any connection string's password replaced by `***`, before the
454
+ stack is taken down. Either failure now ends dev's dashboard before printing, so what it prints
455
+ reaches the terminal.
456
+ * **init:** the admin email must be one address (an `@`, no spaces), and no answer init asks for,
457
+ typed or given as `--admin-email` or `--admin-password`, may hold a line break or other control
458
+ character. A pasted email with carriage returns in it went into `.env` as it was, so the server
459
+ read each piece as a line of its own, refused to start, and printed the lines that followed in its
460
+ log, the admin password among them. Init now refuses it before writing any file.
461
+ * **env files:** no command writes a value with a line break or other control character into `.env`,
462
+ `.env.development.local` or the functions' `.env.local`. It is refused, naming the key and the file
463
+ and never the value, and the file is left as it was.
464
+ * **init:** the runtime env script init puts in `index.html` carries `vite-ignore`, so `vite build`
465
+ no longer warns, on every build, `<script src="/supatype-env.js"> in "/index.html" can't be
466
+ bundled without type="module" attribute`. Vite leaves the tag in the built page, without the
467
+ attribute, and it still runs before the app's own script. A page init wrote before keeps its tag
468
+ and its warning until `vite-ignore` is added by hand.
469
+ * **build:** a server that answers 404 at `/supatype-env.json` is reported as having
470
+ `server.public_env` set to false or running a release too old to serve it, in place of "or is
471
+ older than the address".
472
+ * **dev, push, self-host:** a project that does not pin its own versions now runs schema-engine
473
+ v0.9.0 and server v2.3.0. The 0.9.0 CLI shipped still pinned to engine v0.8.0 and server v2.2.2,
474
+ so it missed four fixes those releases carry. An access rule built on
475
+ `In<"col", Rows<"table", "id", Where>>` with a login-free `Where` now grants `anon` the privilege
476
+ its policy needs, where an anonymous read or insert answered `401 42501 permission denied`.
477
+ `Default<JSON<string[]>, "[]">` now gives the column its default, where it created `jsonb NOT
478
+ NULL` with none and an insert that left it out failed with `23502`. A missing file with an
479
+ extension, such as `/assets/missing-abc.js`, answers `404`, not the app's `index.html` with
480
+ `200 text/html`. A signup with a password but no email or phone answers `400 validation_failed`,
481
+ not `anonymous_provider_disabled`, and never creates an anonymous user that drops the password.
482
+ The next push on an existing project adds the missing grants and defaults.
483
+ * **dev, init, keys:** the front end's copies of the API address and the anon key
484
+ (`VITE_SUPATYPE_URL`, `VITE_SUPATYPE_ANON_KEY` and their `PUBLIC_`, `NEXT_PUBLIC_` and
485
+ `EXPO_PUBLIC_` twins) for a local stack are written to `.env.development.local`, not `.env` or
486
+ `.env.local`, and removed from those two files. A production build read the local stack's
487
+ `http://localhost:<port>` address and key from `.env` and shipped them. A production build now
488
+ reads no anon key unless one is set for it: `supatype keys` writes the copies to `.env` only when
489
+ `.env` records a non-local `PUBLIC_SUPATYPE_URL` or `API_EXTERNAL_URL`, and `self-host compose
490
+ up` writes only `ANON_KEY` and `SERVICE_ROLE_KEY`. Shipped in 0.9.0 without an entry here.
491
+ * **init:** the `.gitignore` init writes no longer ignores `src/lib/supatype.ts` or
492
+ `src/types/supatype.d.ts`. Nothing has generated either path for some time, and apps write their
493
+ own client to `src/lib/supatype.ts`, so a commit left the client out without a word and a fresh
494
+ clone did not build. A project made by an earlier init still has the two lines under
495
+ `# Generated by supatype push (legacy paths...)`; delete them and `git add` the client.
496
+ * **diff:** `supatype diff` and `supatype push` against a local stack that is not running say
497
+ `Could not connect to http://localhost:<port>/platform/v1/...: connection refused. The local stack
498
+ is not running: start it with supatype dev, then run this again.` The compiled CLI said only
499
+ `Unable to connect. Is the computer able to access the url?` and the npm one `fetch failed`,
500
+ naming neither the address nor the fix. A linked server that refuses the connection is named the
501
+ same way, without the `supatype dev` advice. `supatype functions invoke` says `Cannot reach <url>`
502
+ under the compiled CLI too; it printed Bun's words instead.
503
+ * **dev:** stopping `supatype dev` no longer says `Docker is installed but the daemon is not
504
+ running` while Docker is up. The shutdown's `docker compose down` first asked the daemon whether
505
+ it was running, giving `docker info` 15 s; a Docker busy enough to be slower than that was
506
+ reported as stopped, and dev exited before `down` ran, leaving the exit hook's fallback to stop
507
+ the stack. Stopping a stack that was just running no longer asks: `down` runs at once, and says
508
+ so itself if Docker really is gone.
509
+ * **diff, push, dev, self-host:** a Docker that is slow to answer is no longer reported as not
510
+ running. `supatype diff`, straight after one that failed on a port clash, said `Docker is
511
+ installed but the daemon is not running` with `Docker did not answer within 15s`, while `docker
512
+ info` answered in under a second. A check that times out is now asked once more, and if Docker is
513
+ still silent the CLI says `Docker did not answer in time` and that it may be busy. "Not running"
514
+ is said only when the docker CLI reports it cannot connect; a paused Docker Desktop is called
515
+ paused, and any other `docker info` failure is shown as Docker printed it.
516
+ * **dev:** a proxy app whose start script is `vite` starts again. The compiled program ran
517
+ `vite.js` with itself rather than Node, so the app task exited with `error: unknown command
518
+ '<app>/node_modules/vite/bin/vite.js'`, was restarted for the rest of the session, and every app
519
+ route answered 502. `vite.js` for the app and for `overrides.studio`, and a `.js` entry named by
520
+ `overrides.realtime` or `overrides.storage`, now run with the `node` on PATH; with none there,
521
+ dev stops and says Node.js is needed. The dev log names the program it runs, where it used to
522
+ say `node vite.js` whatever ran (#28).
523
+ * **generate:** a `JSON<T>` column is typed as its `T` again in the generated types, augmentation
524
+ and client, as it was in 0.8.0. Since 0.9.0, npm runs the compiled CLI, which carried none of
525
+ TypeScript's lib files, so the schema reader knew no `Array` or `Record`: `JSON<string[]>` was
526
+ written as `{}` and `JSON<Record<string, number>>` as `Json`. The CLI now carries those files
527
+ (#27).
528
+ * **dev:** the dashboard's `app` pane shows the proxy app's output whole. A line that reached the
529
+ CLI in two reads was shown as two lines, a CRLF line kept its carriage return, and a line printed
530
+ twice in a row was dropped the second time, so repeated request errors showed once. An app that
531
+ crashed on every start showed its error after the first crash only, followed by nothing but
532
+ `process exited ... restarting` lines: each restart's identical error was taken for a repeat of
533
+ the run before. The same applies to Studio, realtime and the other processes dev runs, and to
534
+ `--stream`, where each line is written once.
535
+
536
+ Freeing the proxy app's port no longer freezes the dashboard. The port scan ran synchronously
537
+ before the app's first start and before every restart, and on Windows it took over ten seconds,
538
+ during which no process's output appeared. It now runs in the background, and the app is still
539
+ spawned only once the stale listener is killed. The scan also matches only a listener on exactly
540
+ the app's port: on Windows it also killed listeners on longer ports that started with the same
541
+ digits (5285 matched 52851), and on macOS and Linux it killed every process connected to the
542
+ port, a browser on the dev server included.
543
+ * **deploy:** the app's build is given the deployment's anon key, through the resolver `supatype
544
+ build` uses. It got the URL copies only, and those from the control plane's address rather than
545
+ the project's, so a deployed app rendered a blank page. A deploy whose build would get no URL or
546
+ anon key now stops before building, listing what it tried (`--allow-local` takes a local
547
+ address). The install and build steps run through cmd.exe on Windows, where `npm` and `pnpm` could
548
+ not be started without it.
549
+ * **init, dev:** Windows no longer asks to let `supatype` through its firewall. Checking whether a
550
+ port was free bound it on every address (`0.0.0.0`), which Windows treats as a program wanting
551
+ network access, and it remembers the answer per program file, so it asked again after every CLI
552
+ upgrade. The check now binds loopback only and connects to the port, which still finds a
553
+ listener on every address, the kind Docker Compose publishes.
554
+ * **npm, install:** the compiled `supatype` program no longer reads `.env`, `.env.local`,
555
+ `.env.development.local` or `bunfig.toml` from the directory it runs in. It loaded the project's
556
+ files into its own environment, which the CLI under Node never did, so the project's
557
+ `SERVICE_ROLE_KEY` sent `diff` and `push` to a local stack's API instead of its database, and a
558
+ `bunfig.toml` `preload` ran its code inside the CLI. The CLI reads the files it needs itself.
559
+ * **dev:** saving the schema no longer freezes the dev dashboard while the push runs. The engine's
560
+ push, its `parse` and `admin` runs, the compose engine run on a docker project, and the two `psql`
561
+ calls a docker push makes after it (the `auth.users` grant and reading the field-masking tier)
562
+ were all synchronous, so for as long as a push took no process's output appeared and the
563
+ dashboard did not redraw. They now run in the background, and so does asking git who is
564
+ pushing. Native dev also pushes one save at a time, as docker dev already did: a save made during
565
+ a push is pushed once that push is done. Every command that runs the engine runs it the same
566
+ way, with the same results and errors.
567
+ * **push:** a Docker push that applied the schema exits 0 when a step after it fails on the running
568
+ stack (its `up -d`, the gateway wait, the buckets or the first admin), warning `The schema was
569
+ applied, but a step after it failed` with the reason. A start that failed on a port another
570
+ program held made push exit 1 with the schema in.
571
+ * **push, diff, adopt, pull:** on a running stack these no longer run `docker compose up -d db`
572
+ before they reach its database. Every layout already publishes Postgres on the port the host
573
+ engine connects to, so the call had nothing to start, and could recreate the database container
574
+ when its definition had changed; with `overrides.engine` on a dev stack it could also move the dev
575
+ database port under a running database first. A running stack whose `db`
576
+ container has stopped is now refused with the "local stack isn't running" message rather than
577
+ having its database started.
578
+
579
+ ## 0.9.0 (2026-11-04)
4
580
 
5
581
  ### Breaking Changes
6
582
 
7
- * **schema:** a `?` on a model field (`due?: string`) is refused, naming `Model.field` and saying to
8
- write `Optional<>`. It read as nullable but compiled to a `NOT NULL` column.
9
- * **generate:** `supatype generate --connection` is refused as an unknown option. Generate writes the
10
- types from the schema file and never opened a database, so the option was accepted and ignored.
11
- * **seed:** a seed file's `export const config = { transaction: ... }` is refused, and `transaction`
12
- is gone from `SeedConfig`. It was validated and never sent: every seed file runs in a transaction
13
- of its own (all of them in one with `--atomic`), and the engine cannot run one outside it. Any
14
- other key `config` does not have (a misspelt `runonce`, say) is refused too, rather than ignored.
15
- * **realtime:** the service's process entry is `dist/main.js`; `dist/index.js` only exports and no
16
- longer starts a server, so an `overrides.realtime` naming `packages/realtime/dist/index.js` exits
17
- at once. Point it at `packages/realtime/dist/main.js`.
18
583
  * **hooks:** `AfterDeleteContext` has no `filter`. After-hooks are fed from the database's change log,
19
584
  which records the rows a write changed rather than the request that changed them, so there is no
20
585
  filter to give. `ctx.old` replaces it: the deleted rows themselves, as they were. A handler reading
@@ -26,47 +591,6 @@
26
591
  conversions, block moves, kind changes). Without it they are skipped, as seeds are. Against an
27
592
  engine whose capabilities do not list `run_hooks`, the push stops before anything is sent.
28
593
 
29
- * **init:** `supatype init <dir> --example <name>` starts from `examples/<name>` of the release
30
- matching the CLI (`v<version>` on GitHub), with every `workspace:` dependency pinned to
31
- `^<version>`. An unknown name is refused with the list of examples in that release, and so is an
32
- example holding a file named with `..`, a backslash, a NUL, a leading drive (`C:`) or an absolute
33
- path, or one that resolves outside the directory; nothing is written then. A colon anywhere in a
34
- name is refused too, since on Windows `docs/a:b.md` writes a hidden stream of a file `docs/a`.
35
- Such a name elsewhere in the repository does not stop an example. Schema snapshots are restored
36
- with the same checks, and `push` refuses a schema file named in a way restore would refuse.
37
- `supatype dev` warns instead and pushes without a snapshot, so it does not stop on every save.
38
- * **seed:** `authUser: { connect: { id } }` on a relation to the auth user (`RelatedTo<SupatypeAuthUser>`)
39
- writes the relation's key column. It failed with "`supatype:user` is not a model in this schema".
40
- The generated `...Create` type still offers the key column (`auth_user_id`) rather than `authUser`;
41
- that comes from the engine.
42
- * **schema:** `Geo<"polygon">` and `Geo<"linestring">` compile to `GEOGRAPHY(POLYGON, 4326)` and
43
- `GEOGRAPHY(LINESTRING, 4326)`. Every `Geo` field was a point whatever it said; a bare `Geo` still is.
44
- * **keys:** `supatype keys` writes into `.env` when there is one, filling only the blank keys, as
45
- `--write` did. `--print` only prints. `--write` still works, so scripts and docs written for 0.7.0
46
- keep running. With no `.env` the keys are printed, with a line saying how to have them written.
47
- `--print` with no secret anywhere exits 1 rather than printing keys signed with one it made up and
48
- kept nowhere. `--print` checks the secret as writing does, since printed keys end up in a `.env`
49
- all the same: at least 32 characters, and for a given one, no whitespace, `#` or quotes.
50
- * **keys, self-host, init, dev:** one rule for the `JWT_SECRET` keys are signed with. `.env`'s always
51
- wins. A shell `JWT_SECRET` is used only when `.env` has none, and is then written into `.env`; one
52
- that differs from `.env`'s gets a single warning line saying `.env`'s is used, and is never
53
- refused. Only a `keys --secret` that differs from `.env`'s is refused. Docker Compose reads the
54
- shell ahead of `.env`, so every compose command now runs without the shell's `JWT_SECRET`,
55
- `ANON_KEY` and `SERVICE_ROLE_KEY` when `.env` defines that name, and without a shell key the stack
56
- would not accept under `.env`'s `JWT_SECRET` (another secret, another role, or expired):
57
- `supatype dev` on docker with a different shell `JWT_SECRET` started services that refused every
58
- key with 401. A shell key the stack accepts still fills a blank one. `push`, `status` and the
59
- other commands calling the local stack follow the same rule, and send `.env`'s `SERVICE_ROLE_KEY`,
60
- the name the stack is started with, and never a `SUPATYPE_SERVICE_ROLE_KEY` there. When a
61
- `JWT_SECRET` is newly written into `.env` (given or generated), `keys` and `self-host compose up`
62
- sign both keys again and say so, since keys already there cannot verify against it. A secret is
63
- checked before anything is written: at least 32 characters, and for one written into `.env`, no
64
- whitespace, `#` or quotes. `compose up` used to write keys signed with a short secret and then
65
- refuse it, leaving keys that were never re-signed once the secret was fixed. `init` warns and
66
- generates a secret when the shell's is unusable, and never exits mid-wizard over the keys.
67
- * **keys, dev:** `NEXT_PUBLIC_SUPATYPE_ANON_KEY` is written beside the `VITE_`, `PUBLIC_` and
68
- `EXPO_PUBLIC_` copies, and `NEXT_PUBLIC_SUPATYPE_URL` wherever the other URL copies are.
69
-
70
594
  ### Bug Fixes
71
595
 
72
596
  * **npm:** the CLI works in an app that installs React 19. npm hoisted the CLI's `ink` into the
@@ -116,6 +640,68 @@
116
640
  * **init:** in an existing package.json, `@supatype/cli` and `@supatype/types` go in
117
641
  `devDependencies` as they do for a new project, and the `seed` script runs `supatype seed`. It ran
118
642
  `tsx seed.ts`, which loads the seed module without calling it.
643
+
644
+ ## 0.8.0 (2026-11-02)
645
+
646
+ ### Breaking Changes
647
+
648
+ * **schema:** a `?` on a model field (`due?: string`) is refused, naming `Model.field` and saying to
649
+ write `Optional<>`. It read as nullable but compiled to a `NOT NULL` column.
650
+ * **generate:** `supatype generate --connection` is refused as an unknown option. Generate writes the
651
+ types from the schema file and never opened a database, so the option was accepted and ignored.
652
+ * **seed:** a seed file's `export const config = { transaction: ... }` is refused, and `transaction`
653
+ is gone from `SeedConfig`. It was validated and never sent: every seed file runs in a transaction
654
+ of its own (all of them in one with `--atomic`), and the engine cannot run one outside it. Any
655
+ other key `config` does not have (a misspelt `runonce`, say) is refused too, rather than ignored.
656
+ * **realtime:** the service's process entry is `dist/main.js`; `dist/index.js` only exports and no
657
+ longer starts a server, so an `overrides.realtime` naming `packages/realtime/dist/index.js` exits
658
+ at once. Point it at `packages/realtime/dist/main.js`.
659
+
660
+ ### Features
661
+
662
+ * **init:** `supatype init <dir> --example <name>` starts from `examples/<name>` of the release
663
+ matching the CLI (`v<version>` on GitHub), with every `workspace:` dependency pinned to
664
+ `^<version>`. An unknown name is refused with the list of examples in that release, and so is an
665
+ example holding a file named with `..`, a backslash, a NUL, a leading drive (`C:`) or an absolute
666
+ path, or one that resolves outside the directory; nothing is written then. A colon anywhere in a
667
+ name is refused too, since on Windows `docs/a:b.md` writes a hidden stream of a file `docs/a`.
668
+ Such a name elsewhere in the repository does not stop an example. Schema snapshots are restored
669
+ with the same checks, and `push` refuses a schema file named in a way restore would refuse.
670
+ `supatype dev` warns instead and pushes without a snapshot, so it does not stop on every save.
671
+ * **seed:** `authUser: { connect: { id } }` on a relation to the auth user (`RelatedTo<SupatypeAuthUser>`)
672
+ writes the relation's key column. It failed with "`supatype:user` is not a model in this schema".
673
+ The generated `...Create` type still offers the key column (`auth_user_id`) rather than `authUser`;
674
+ that comes from the engine.
675
+ * **schema:** `Geo<"polygon">` and `Geo<"linestring">` compile to `GEOGRAPHY(POLYGON, 4326)` and
676
+ `GEOGRAPHY(LINESTRING, 4326)`. Every `Geo` field was a point whatever it said; a bare `Geo` still is.
677
+ * **keys:** `supatype keys` writes into `.env` when there is one, filling only the blank keys, as
678
+ `--write` did. `--print` only prints. `--write` still works, so scripts and docs written for 0.7.0
679
+ keep running. With no `.env` the keys are printed, with a line saying how to have them written.
680
+ `--print` with no secret anywhere exits 1 rather than printing keys signed with one it made up and
681
+ kept nowhere. `--print` checks the secret as writing does, since printed keys end up in a `.env`
682
+ all the same: at least 32 characters, and for a given one, no whitespace, `#` or quotes.
683
+ * **keys, self-host, init, dev:** one rule for the `JWT_SECRET` keys are signed with. `.env`'s always
684
+ wins. A shell `JWT_SECRET` is used only when `.env` has none, and is then written into `.env`; one
685
+ that differs from `.env`'s gets a single warning line saying `.env`'s is used, and is never
686
+ refused. Only a `keys --secret` that differs from `.env`'s is refused. Docker Compose reads the
687
+ shell ahead of `.env`, so every compose command now runs without the shell's `JWT_SECRET`,
688
+ `ANON_KEY` and `SERVICE_ROLE_KEY` when `.env` defines that name, and without a shell key the stack
689
+ would not accept under `.env`'s `JWT_SECRET` (another secret, another role, or expired):
690
+ `supatype dev` on docker with a different shell `JWT_SECRET` started services that refused every
691
+ key with 401. A shell key the stack accepts still fills a blank one. `push`, `status` and the
692
+ other commands calling the local stack follow the same rule, and send `.env`'s `SERVICE_ROLE_KEY`,
693
+ the name the stack is started with, and never a `SUPATYPE_SERVICE_ROLE_KEY` there. When a
694
+ `JWT_SECRET` is newly written into `.env` (given or generated), `keys` and `self-host compose up`
695
+ sign both keys again and say so, since keys already there cannot verify against it. A secret is
696
+ checked before anything is written: at least 32 characters, and for one written into `.env`, no
697
+ whitespace, `#` or quotes. `compose up` used to write keys signed with a short secret and then
698
+ refuse it, leaving keys that were never re-signed once the secret was fixed. `init` warns and
699
+ generates a secret when the shell's is unusable, and never exits mid-wizard over the keys.
700
+ * **keys, dev:** `NEXT_PUBLIC_SUPATYPE_ANON_KEY` is written beside the `VITE_`, `PUBLIC_` and
701
+ `EXPO_PUBLIC_` copies, and `NEXT_PUBLIC_SUPATYPE_URL` wherever the other URL copies are.
702
+
703
+ ### Bug Fixes
704
+
119
705
  * **functions serve:** a project with `functions/.env.local` serves again. The file was handed to
120
706
  Deno as `--env-file <path>`, two arguments, and Deno takes the value only after `=`, so it ran
121
707
  `.env.local` as the script and served nothing. `functions new` creates that file, so every project
@@ -136,27 +722,22 @@
136
722
  sets. `init` scaffolds `SUPATYPE_SMTP_HOST=`, `SUPATYPE_RESEND_API_KEY=` and the rest blank, and
137
723
  native `dev` applied `.env` over the config, so a project with its SMTP host or Resend key in the
138
724
  config got the noop mailer and sent nothing. A value in `.env` still wins over the config.
139
-
140
725
  * **app, status, functions serve:** the local gateway address follows `.env`. `app add` printed the
141
726
  app URL, `status` the API URL, and `functions serve` gave functions `SUPATYPE_URL`, all on the
142
727
  default port 18473 whatever `SUPATYPE_KONG_PORT` said, so after `dev` moved Kong to another port
143
728
  they pointed at whichever stack held 18473. They now use `.env`'s `API_EXTERNAL_URL`, else
144
729
  `SUPATYPE_KONG_PORT`, as `ctx.publicUrl` already did.
145
-
146
730
  * **pull:** a uuid `id` column is drafted as `UUID`. Every one was drafted as `SupatypeAuthUserId`,
147
731
  which declares the key to be an auth user's id; telling the two apart needs the schema of a foreign
148
732
  key's table, which the engine does not report yet. A drafted model also names its table
149
733
  (`tableName`) when its model name would not map back to it, as `HTTPLog` or `Orders` do, so a push
150
734
  of the draft does not create a second, empty table.
151
-
152
735
  * **plugins:** `plugins add` and `plugins list` no longer claim a plugin is in use. `add` said
153
736
  "installed and registered" and `list` showed every compatible plugin as "active", but nothing in
154
737
  Supatype loads plugins yet. Both now say the plugin is installed and that it is not loaded.
155
-
156
738
  * **functions:** the scaffolded `functions/_shared/context.ts` says where `ctx.env` comes from: the
157
739
  functions directory's `.env.local` (or `SUPATYPE_SHARED_ENV_FILE`), then `.env.<function>.local`,
158
740
  which wins. It said `.env`, which is never read for it.
159
-
160
741
  * **dev, functions serve:** the local functions router loads and guards handlers as the deployed
161
742
  worker does. It accepted only `export default`, so a function exporting a named `handler`, which the
162
743
  worker serves, failed to load locally; a module with neither answers its own route with an error
@@ -169,7 +750,6 @@
169
750
  the key until `dev` restarts. The router reads it from a file in `.supatype/`, readable by its owner
170
751
  only, rather than from the environment it takes the key out of. The file is removed when `dev` or
171
752
  `functions serve` stops, Ctrl+C included, and each `functions serve` has a file of its own.
172
-
173
753
  * **dev, functions serve:** native `dev` and `functions serve` run the functions worker the deployed
174
754
  image runs (packages/functions-worker), not a router the CLI generated to copy its rules, so the
175
755
  two can no longer drift: the copy had already differed on which exports it took, who got the
@@ -177,11 +757,9 @@
177
757
  `~/.supatype/cache/functions-worker/`. Native `dev` now also serves model hooks from `hooks/`, as
178
758
  the compose stack does, including in a project with hooks and no functions, and picks up a hook
179
759
  added while it runs; `functions serve` picks up a function added while it runs.
180
-
181
760
  * **functions:** `ctx.env` reads `.env.local` and `.env.<function>.local` with the CLI's own dotenv
182
761
  parser, so `KEY="value"` is `value`, an inline ` # comment` is dropped and `export KEY=` is read,
183
762
  as the CLI and compose read a `.env`. The worker kept the quotes and the comment.
184
-
185
763
  * **dev (native):** runs the storage service (packages/storage) on this machine instead of the
186
764
  server's built-in object store, so bucket rules, `maxSize`, `accept`, `access_mode`, caller rules
187
765
  and image transforms are the ones a deployment enforces. Its objects live under
@@ -194,14 +772,12 @@
194
772
  from a per-platform archive on the CDN (`storage/v<version>/`, signed like every component), or
195
773
  `overrides.storage`; its port is `SUPATYPE_STORAGE_PORT` (default 8002). When it cannot start, dev
196
774
  says so and the server's store answers as before.
197
-
198
775
  * **self-host:** the compose stack serves functions from `functions.path`. The functions worker, the
199
776
  server and the control plane were all told `/project/functions` whatever the config said, so a
200
777
  project keeping its functions elsewhere had every one answer 404; hooks were likewise fixed at
201
778
  `/project/hooks` rather than following `supatype.root`. A `functions.path` or `supatype.root`
202
779
  outside the project directory is refused with a message saying why, since the stack mounts only
203
780
  the project. `functions deploy` names the real directory instead of a fixed `functions/`.
204
-
205
781
  * **dev, self-host, init:** Resend and SES settings reach the auth server. Native `dev` sent them as
206
782
  `RESEND_API_KEY`, `RESEND_FROM` and `SES_FROM`, which the server does not read, docker `dev` sent
207
783
  none of them, and the self-host compose file had no way to pass them, so `email.provider: "resend"`
@@ -210,12 +786,10 @@
210
786
  passes them through from `.env`. `init` scaffolds the email settings under those names too, and
211
787
  SMTP's as `SUPATYPE_SMTP_*`; the unprefixed `SMTP_HOST` and the rest it used to write were never
212
788
  read either. Rename any of these already in a project's `.env`.
213
-
214
789
  * **dev:** magic-link, confirmation, invite and recovery links in native `dev` open the auth
215
790
  server's verify endpoint. They pointed at `http://localhost:<port>/verify` and 404'd: the external
216
791
  URL ends in `/auth/v1`, and the server's default `/verify` replaced that path rather than adding to
217
792
  it. Native `dev` now sets the same `/auth/v1/verify` paths the compose file does.
218
-
219
793
  * **migrate:** restoring a migration's schema sources refuses a file that lands beside the project
220
794
  under a path starting with the project's own (`/srv/app2/x.ts` for `/srv/app`). The check compared
221
795
  string prefixes, so it took that file for one inside the project. The snapshot is now read by the
@@ -224,7 +798,6 @@
224
798
  root itself (`./`) is refused rather than failing on write, and a name that only starts with two
225
799
  dots (`..notes/x.ts`) is restored rather than refused. The backup taken before a restore copies
226
800
  the files the snapshot overwrites, not the paths its manifest lists, which were never checked.
227
-
228
801
  * **schema:** an `id: SupatypeAuthUserId` primary key under `create: Owner<"id">` (also inside `Any`
229
802
  or `All`) no longer gets a `gen_random_uuid()` default. A random id names no user, and the default
230
803
  kept the engine from defaulting the column to the caller, so an insert leaving `id` out was
@@ -313,8 +886,7 @@
313
886
  `.env` and in what it prints, and the wizard does not ask for one. It chose its own port, so `.env`
314
887
  and the "API on" line named a port the stack, which binds the shell's, never listened on.
315
888
 
316
-
317
- ## 0.7.0
889
+ ## 0.7.0 (2026-10-27)
318
890
 
319
891
  Highlights: `adopt` takes what a push refuses, with `--key`, `--release` and `--reclaim`, and
320
892
  declares adopted columns in the schema; push asks before restoring access changed outside Supatype,