@supacloud/cli 0.71.1 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -532,6 +532,7 @@ supacloud-cli database query --sql "select now()"
532
532
  supacloud-cli database query --ref abc123 --file ./queries/vector-search.sql
533
533
  supacloud-cli database migration_inventory --ref abc123
534
534
  supacloud-cli database lint_migrations --dir supabase/migrations
535
+ supacloud-cli database rebase_migrations --dir supabase/migrations --baseline_file backups/schema.sql --baseline_version 20261008000000 --output_dir supabase/migrations-rebased
535
536
  supacloud-cli database push_migrations --ref abc123 --dir supabase/migrations --dry_run
536
537
  supacloud-cli supabase migration_new --name add_accounts
537
538
  supacloud-cli supabase db_diff --schema public --name add_accounts
@@ -638,6 +639,17 @@ even when strict destructive-risk mode is not enabled.
638
639
  `CREATE/DROP INDEX CONCURRENTLY`, `VACUUM`, and other non-transactional work must
639
640
  run through an approved maintenance path outside `push_migrations`.
640
641
 
642
+ `database rebase_migrations` is local-only and never contacts the Management
643
+ API. Without `--write` it only prints the plan; with `--write` it writes a
644
+ reconstructed baseline, the retained forward migrations, and a
645
+ `migration-rebase.manifest.json` (with SHA-256 records for the complete source
646
+ history) into a separate `--output_dir`, never the source directory. Capture and
647
+ review a schema-only snapshot first with `--baseline_file` and
648
+ `--baseline_version`, then use `--retain_after_version` to keep newer
649
+ migrations. Review the baseline for omitted data backfills, reference data,
650
+ extensions, grants, RLS, functions and triggers, replay it in a clean database,
651
+ and archive the original directory until clean replay and remote read-back pass.
652
+
641
653
  Migration applications and DDL executions send PostgREST schema reload
642
654
  notifications (`NOTIFY pgrst_<ref>, 'reload schema'`) so schema changes become
643
655
  visible without a manual PostgREST restart. Responses distinguish `notified`
package/dist/index.js CHANGED
@@ -213546,21 +213546,18 @@ export default app;
213546
213546
  scripts: { build: "vite build" },
213547
213547
  devDependencies: {
213548
213548
  "@supacloud/function-adapter": "^0.1.0",
213549
- "@sveltejs/kit": "^2.70.3",
213549
+ "@sveltejs/kit": "^3.0.1",
213550
213550
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
213551
213551
  svelte: "^5.57.0",
213552
213552
  vite: "^8.2.2"
213553
213553
  }
213554
213554
  }, null, 2) + `
213555
- `,
213556
- "svelte.config.js": `import adapter from "@supacloud/function-adapter/sveltekit-adapter";
213557
-
213558
- export default { kit: { adapter: adapter() } };
213559
213555
  `,
213560
213556
  "vite.config.ts": `import { sveltekit } from "@sveltejs/kit/vite";
213557
+ import adapter from "@supacloud/function-adapter/sveltekit-adapter";
213561
213558
  import { defineConfig } from "vite";
213562
213559
 
213563
- export default defineConfig({ plugins: [sveltekit()] });
213560
+ export default defineConfig({ plugins: [sveltekit({ adapter: adapter() })] });
213564
213561
  `,
213565
213562
  "src/routes/+server.ts": `export function GET() {
213566
213563
  return Response.json({ function: "${slug}", framework: "sveltekit-function" });
@@ -256655,7 +256652,7 @@ function registerRemoteDevTools(server2, options = {}) {
256655
256652
  // package.json
256656
256653
  var package_default = {
256657
256654
  name: "@supacloud/cli",
256658
- version: "0.71.1",
256655
+ version: "0.72.0",
256659
256656
  description: "Project-scoped CLI for SupaCloud users",
256660
256657
  type: "module",
256661
256658
  main: "./dist/index.js",
@@ -256700,7 +256697,7 @@ var package_default = {
256700
256697
  "@graphql-tools/utils": "^12.0.3"
256701
256698
  },
256702
256699
  devDependencies: {
256703
- "@supacloud/elysia": "^0.23.1",
256700
+ "@supacloud/elysia": "^0.24.1",
256704
256701
  "@types/bun": "^1.4.2",
256705
256702
  elysia: "2.0.0-beta.21",
256706
256703
  typescript: "^7.0.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/cli",
3
- "version": "0.71.1",
3
+ "version": "0.72.0",
4
4
  "description": "Project-scoped CLI for SupaCloud users",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "@graphql-tools/utils": "^12.0.3"
46
46
  },
47
47
  "devDependencies": {
48
- "@supacloud/elysia": "^0.23.1",
48
+ "@supacloud/elysia": "^0.24.1",
49
49
  "@types/bun": "^1.4.2",
50
50
  "elysia": "2.0.0-beta.21",
51
51
  "typescript": "^7.0.2"