koigrid 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to the koigrid CLI are documented here. Format: [Keep a Chan
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.17.0] — 2026-11-28
8
+
9
+ ### Changed
10
+
11
+ - `koigrid db restore-dump <id> --file latest.dump`: the usage now says that a pg_dump custom-format file (`-Fc`, the `latest.dump` that `heroku pg:backups:download` gives you) is accepted as is; the server converts it with `pg_restore --no-owner --no-acl`.
12
+
7
13
  ## [0.16.0] — 2026-11-27
8
14
 
9
15
  ### Added
@@ -225,8 +225,9 @@ export async function db(a) {
225
225
  // Managed restore (MIG-D): sube un dump .sql → lo restaura con pre-siembra de extensiones + conteo de filas.
226
226
  need();
227
227
  const file = (a.flags.file || a.flags.f || a.positionals[1]);
228
+ // dump.sql (texto) o el formato custom de pg_dump (-Fc, el latest.dump de Heroku): el servidor lo convierte (ficha 0c58e72f).
228
229
  if (!file)
229
- throw new Error('usage: koigrid db restore-dump <id> --file dump.sql [--pre-seed vector:extensions] [--wait]');
230
+ throw new Error('usage: koigrid db restore-dump <id> --file dump.sql|latest.dump [--pre-seed vector:extensions] [--wait]');
230
231
  // Se sube SIEMPRE comprimido y EN STREAMING: (a) un readFileSync de un dump grande revienta el límite de
231
232
  // Buffer de Node (~2 GB) y (b) gzip reduce ~8×, así un dump de 31 GB entra en el tope del servidor. Si el
232
233
  // fichero ya es .gz se sube tal cual; si no, se comprime al vuelo sin escribir nada en disco.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koigrid",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "koigrid CLI — deploy apps, databases, redis, storage and more from your terminal (or your AI agent).",
5
5
  "bin": {
6
6
  "koigrid": "dist/index.js"