@abloatai/cli 0.49.0 → 0.51.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.
Files changed (2) hide show
  1. package/dist/cli.cjs +4 -13
  2. package/package.json +3 -3
package/dist/cli.cjs CHANGED
@@ -3957,7 +3957,7 @@ var init_observeCliError = __esm({
3957
3957
  import_errorObservation = require("@abloatai/transaction/errorObservation");
3958
3958
  import_errors5 = require("@abloatai/transaction/errors");
3959
3959
  dsn = process.env.ABLO_CLI_SENTRY_DSN ?? "https://1ac154bff10b06836e1ea9de9e0d92f0@o4510928209772544.ingest.de.sentry.io/4511660691423312" ?? "";
3960
- release = process.env.ABLO_CLI_RELEASE ?? "@abloatai/cli@0.49.0";
3960
+ release = process.env.ABLO_CLI_RELEASE ?? "@abloatai/cli@0.51.0";
3961
3961
  initialized = false;
3962
3962
  nativeProcessExit = process.exit.bind(process);
3963
3963
  exitBoundaryInstalled = false;
@@ -5073,25 +5073,16 @@ Logical replication already exposes every published row; this lets the ordinary
5073
5073
  JOIN pg_class c ON c.relname = pt.tablename
5074
5074
  JOIN pg_namespace n ON n.oid = c.relnamespace AND n.nspname = pt.schemaname
5075
5075
  WHERE pt.pubname = $1 AND pt.schemaname = $2
5076
- AND (
5077
- c.relreplident = 'n'
5078
- OR (
5079
- c.relreplident = 'd'
5080
- AND NOT EXISTS (
5081
- SELECT 1 FROM pg_index i
5082
- WHERE i.indrelid = c.oid AND i.indisprimary
5083
- )
5084
- )
5085
- )`,
5076
+ AND c.relreplident <> 'f'`,
5086
5077
  [publication, schema]
5087
5078
  );
5088
5079
  const relevant = coordinated ? badRows.filter((row) => coordinated.has(row.table_name)) : badRows;
5089
5080
  items.push(
5090
- relevant.length === 0 ? { ok: true, label: `all published tables have a usable REPLICA IDENTITY` } : {
5081
+ relevant.length === 0 ? { ok: true, label: `all published tables use REPLICA IDENTITY FULL` } : {
5091
5082
  ok: false,
5092
5083
  label: `${relevant.length} published table${relevant.length === 1 ? "" : "s"} cannot replicate UPDATE/DELETE`,
5093
5084
  fix: relevant.map(
5094
- (r2) => `${r2.table_name}: add a PRIMARY KEY, or ALTER TABLE ${quoteIdent(schema)}.${quoteIdent(r2.table_name)} REPLICA IDENTITY FULL;`
5085
+ (r2) => `${r2.table_name}: ALTER TABLE ${quoteIdent(schema)}.${quoteIdent(r2.table_name)} REPLICA IDENTITY FULL;`
5095
5086
  ).join("\n")
5096
5087
  }
5097
5088
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abloatai/cli",
3
- "version": "0.49.0",
3
+ "version": "0.51.0",
4
4
  "description": "The ablo command line: set up Ablo, connect your database, and push your schema from the terminal.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@sentry/node": "^10.18.0",
35
- "@abloatai/transaction": "^0.49.0",
35
+ "@abloatai/transaction": "^0.51.0",
36
36
  "jiti": "^2.7.0",
37
37
  "zod": "^4.4.3",
38
- "@abloatai/humans": "^0.49.0"
38
+ "@abloatai/humans": "^0.51.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@clack/prompts": "^0.11.0",