@stacksjs/buddy 0.75.548 → 0.75.552
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/dist/cli.js +0 -0
- package/dist/commands/db.d.ts +12 -0
- package/dist/commands/db.js +1 -1
- package/dist/database-backup.d.ts +42 -5
- package/dist/database-backup.js +7 -2
- package/dist/system-dependencies.d.ts +5 -10
- package/dist/system-dependencies.js +1 -1
- package/package.json +60 -60
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/commands/db.d.ts
CHANGED
|
@@ -58,4 +58,16 @@ export declare function backupDestination(override?: string): Promise<BackupDest
|
|
|
58
58
|
* would look unset and the default would quietly win.
|
|
59
59
|
*/
|
|
60
60
|
export declare function backupRetain(flag?: string): Promise<number>;
|
|
61
|
+
/**
|
|
62
|
+
* Copy a dump to its destination.
|
|
63
|
+
*
|
|
64
|
+
* Streamed rather than read into memory: a dump is the whole database, and the
|
|
65
|
+
* boxes this runs on are sized for the web process.
|
|
66
|
+
*
|
|
67
|
+
* Failure is thrown, not logged. The caller is `db:backup`, whose whole
|
|
68
|
+
* contract is that a dump exists somewhere the instance is not — reporting
|
|
69
|
+
* success after the upload failed would leave exactly the belief this feature
|
|
70
|
+
* exists to correct.
|
|
71
|
+
*/
|
|
72
|
+
export declare function backupTimeout(flag?: string): Promise<number>;
|
|
61
73
|
export declare function db(buddy: CLI): void;
|
package/dist/commands/db.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{existsSync,mkdirSync,readdirSync,rmSync,statSync}from"node:fs";import{isAbsolute,join,resolve}from"node:path";import process from"node:process";import{confirmOrNull,intro,log,outro}from"@stacksjs/cli";import{ExitCode}from"@stacksjs/types";import{backupFileName,backupObjectKey,DEFAULT_RETAIN,describeCommand,dumpCommand,dumpSqlite,isBackupFileName,prunableBackups,resolveBackupDestination,resolveBackupTarget,parseBackupDestination,readDump,resolveBackupRetain,restoreCommand,restoreSqlite,writeDump}from"../database-backup";const DEFAULT_BACKUP_DIR="storage/backups/database";export async function backupTarget(){const{config,overridesReady}=await import("@stacksjs/config");await overridesReady.catch(()=>{});return resolveBackupTarget(config?.database)}export async function backupDestination(override){if(override?.trim())return parseBackupDestination(override);const{config,overridesReady}=await import("@stacksjs/config");await overridesReady.catch(()=>{});return resolveBackupDestination(config?.database,process.env)}export async function backupRetain(flag){const{config,overridesReady}=await import("@stacksjs/config");await overridesReady.catch(()=>{});return resolveBackupRetain(config?.database,process.env,flag)}async function uploadBackup(destination,file,fileName){const{Storage}=await import("@stacksjs/storage");const key=backupObjectKey(destination,fileName);const diskName=destination.kind==="disk"?destination.target:"s3";const disk=Storage.disk(diskName);if(typeof disk.putStream!=="function"){throw new TypeError(`The '${diskName}' disk cannot stream uploads, so a database dump cannot be copied to it. Use an S3-backed disk for \`backups.destination\`.`)}await disk.putStream(key,Bun.file(file).stream());return destination.kind==="disk"?`disk://${destination.target}/${key}`:`s3://${destination.target}/${key}`}function backupDir(out){const dir=out?.trim()||DEFAULT_BACKUP_DIR;return isAbsolute(dir)?dir:resolve(process.cwd(),dir)}function existingBackups(dir){if(!existsSync(dir))return[];return readdirSync(dir).filter(isBackupFileName).sort()}function sqliteDatabaseExists(target){const path=sqliteFile(target);return existsSync(path)&&statSync(path).size>0}function sqliteFile(target){return isAbsolute(target.database)?target.database:resolve(process.cwd(),target.database)}function prune(dir,retain){const removed=prunableBackups(existingBackups(dir),retain);for(const name of removed)rmSync(join(dir,name),{force:true});return removed}export function db(buddy){buddy.command("db:backup","Dump the application database to a file").option("--out [dir]",`Where to write the dump (default: ${DEFAULT_BACKUP_DIR})`).option("--retain [count]",`How many dumps to keep (default: DB_BACKUP_RETAIN, backups.retain, or ${DEFAULT_RETAIN})`).option("--before-migrations","Deploy mode: succeed quietly when there is no database yet",{default:false}).option("--destination [uri]","Copy the dump offsite: s3://bucket/prefix or disk://name/prefix").option("--verbose","Enable verbose output",{default:false}).example("buddy db:backup").example("buddy db:backup --out /var/backups/app --retain 30").example("buddy db:backup --destination disk://backups/daily").action(async(options)=>{const perf=await intro("buddy db:backup");try{const target=await backupTarget();if(!target){await outro("No dumpable database is configured; nothing to back up.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)}if(target.engine==="sqlite"&&!sqliteDatabaseExists(target)){const message=`No database at ${target.database} yet; nothing to back up.`;if(options.beforeMigrations){await outro(message,{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)}log.warn(message);await outro("Nothing backed up.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)}const retain=await backupRetain(options.retain);const dir=backupDir(options.out);mkdirSync(dir,{recursive:true});const name=backupFileName(target,new Date);const destination=join(dir,name);const command=dumpCommand(target);if(command){if(options.verbose)log.info(describeCommand(command));await writeDump(command,destination,target.password)}else{await dumpSqlite(sqliteFile(target),destination)}const size=existsSync(destination)?statSync(destination).size:0;log.success(`Wrote ${destination} (${(size/1024).toFixed(1)} KB)`);const removed=prune(dir,retain);if(removed.length)log.info(`Pruned ${removed.length} older dump(s), keeping ${retain}.`);const offsite=await backupDestination(options.destination);if(offsite){const uploaded=await uploadBackup(offsite,destination,name);log.success(`Copied to ${uploaded}`)}else{log.info("This dump is on the same disk as the database. Set `backups.destination` in config/database.ts (or DB_BACKUP_DESTINATION) to copy it off the box.")}await outro("Database backed up",{startTime:perf,useSeconds:true})}catch(error){await log.error("Database backup failed:",error);process.exit(ExitCode.FatalError)}process.exit(ExitCode.Success)});buddy.command("db:backups","List the database dumps that have been taken").option("--out [dir]",`Where dumps are kept (default: ${DEFAULT_BACKUP_DIR})`).example("buddy db:backups").action(async(options)=>{const dir=backupDir(options.out);const backups=existingBackups(dir);if(!backups.length){log.info(`No dumps in ${dir}.`);await log.flush();process.exit(ExitCode.Success)}log.info(`${backups.length} dump(s) in ${dir}, oldest first:`);for(const name of backups){const size=statSync(join(dir,name)).size;log.info(` ${name} ${(size/1024).toFixed(1)} KB`)}await log.flush();process.exit(ExitCode.Success)});buddy.command("db:restore [file]","Restore the application database from a dump").option("--out [dir]",`Where dumps are kept (default: ${DEFAULT_BACKUP_DIR})`).option("--force","Skip the confirmation prompt",{default:false}).option("--verbose","Enable verbose output",{default:false}).example("buddy db:restore").example("buddy db:restore 2026-08-13T09-00-00-000.sqlite.sqlite --force").action(async(file,options)=>{const perf=await intro("buddy db:restore");try{const target=await backupTarget();if(!target){await log.error("No restorable database is configured.");process.exit(ExitCode.FatalError)}const dir=backupDir(options.out);const backups=existingBackups(dir);const name=file??backups[backups.length-1];if(!name){await log.error(`No dumps found in ${dir}.`);process.exit(ExitCode.FatalError)}const source=isAbsolute(name)?name:join(dir,name);if(!existsSync(source)){await log.error(`No such dump: ${source}`);process.exit(ExitCode.FatalError)}if(!options.force){const answer=await confirmOrNull({message:`Replace ${target.engine} database "${target.database}" with ${name}? The current contents are lost.`,initial:false});if(answer!==true){await outro("Restore cancelled.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)}}const command=restoreCommand(target);if(command){if(options.verbose)log.info(describeCommand(command));await readDump(command,source,target.password)}else{const displaced=await restoreSqlite(source,sqliteFile(target),Date.now());if(displaced)log.info(`The database that was there is kept at ${displaced}`)}log.success(`Restored ${target.database} from ${name}`);await outro("Database restored",{startTime:perf,useSeconds:true})}catch(error){await log.error("Database restore failed:",error);process.exit(ExitCode.FatalError)}process.exit(ExitCode.Success)})}
|
|
1
|
+
import{existsSync,mkdirSync,readdirSync,rmSync,statSync}from"node:fs";import{isAbsolute,join,resolve}from"node:path";import process from"node:process";import{confirmOrNull,intro,log,outro}from"@stacksjs/cli";import{ExitCode}from"@stacksjs/types";import{backupFileName,backupObjectKey,DEFAULT_DUMP_TIMEOUT_SECONDS,DEFAULT_RETAIN,describeCommand,dumpCommand,dumpSqlite,isBackupFileName,prunableBackups,resolveBackupDestination,resolveBackupTarget,parseBackupDestination,readDump,resolveBackupRetain,resolveBackupTimeout,restoreCommand,restoreSqlite,writeDump}from"../database-backup";const DEFAULT_BACKUP_DIR="storage/backups/database";export async function backupTarget(){const{config,overridesReady}=await import("@stacksjs/config");await overridesReady.catch(()=>{});return resolveBackupTarget(config?.database)}export async function backupDestination(override){if(override?.trim())return parseBackupDestination(override);const{config,overridesReady}=await import("@stacksjs/config");await overridesReady.catch(()=>{});return resolveBackupDestination(config?.database,process.env)}export async function backupRetain(flag){const{config,overridesReady}=await import("@stacksjs/config");await overridesReady.catch(()=>{});return resolveBackupRetain(config?.database,process.env,flag)}export async function backupTimeout(flag){const{config,overridesReady}=await import("@stacksjs/config");await overridesReady.catch(()=>{});return resolveBackupTimeout(config?.database,process.env,flag)}async function uploadBackup(destination,file,fileName){const{Storage}=await import("@stacksjs/storage");const key=backupObjectKey(destination,fileName);const diskName=destination.kind==="disk"?destination.target:"s3";const disk=Storage.disk(diskName);if(typeof disk.putStream!=="function"){throw new TypeError(`The '${diskName}' disk cannot stream uploads, so a database dump cannot be copied to it. Use an S3-backed disk for \`backups.destination\`.`)}await disk.putStream(key,Bun.file(file).stream());return destination.kind==="disk"?`disk://${destination.target}/${key}`:`s3://${destination.target}/${key}`}function backupDir(out){const dir=out?.trim()||DEFAULT_BACKUP_DIR;return isAbsolute(dir)?dir:resolve(process.cwd(),dir)}function existingBackups(dir){if(!existsSync(dir))return[];return readdirSync(dir).filter(isBackupFileName).sort()}function sqliteDatabaseExists(target){const path=sqliteFile(target);return existsSync(path)&&statSync(path).size>0}function sqliteFile(target){return isAbsolute(target.database)?target.database:resolve(process.cwd(),target.database)}function prune(dir,retain){const removed=prunableBackups(existingBackups(dir),retain);for(const name of removed)rmSync(join(dir,name),{force:true});return removed}export function db(buddy){buddy.command("db:backup","Dump the application database to a file").option("--out [dir]",`Where to write the dump (default: ${DEFAULT_BACKUP_DIR})`).option("--retain [count]",`How many dumps to keep (default: DB_BACKUP_RETAIN, backups.retain, or ${DEFAULT_RETAIN})`).option("--timeout [seconds]",`Stop a dump that runs longer than this and fail (default: DB_BACKUP_TIMEOUT, backups.timeout, or ${DEFAULT_DUMP_TIMEOUT_SECONDS})`).option("--before-migrations","Deploy mode: succeed quietly when there is no database yet",{default:false}).option("--destination [uri]","Copy the dump offsite: s3://bucket/prefix or disk://name/prefix").option("--verbose","Enable verbose output",{default:false}).example("buddy db:backup").example("buddy db:backup --out /var/backups/app --retain 30").example("buddy db:backup --destination disk://backups/daily").action(async(options)=>{const perf=await intro("buddy db:backup");try{const target=await backupTarget();if(!target){await outro("No dumpable database is configured; nothing to back up.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)}if(target.engine==="sqlite"&&!sqliteDatabaseExists(target)){const message=`No database at ${target.database} yet; nothing to back up.`;if(options.beforeMigrations){await outro(message,{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)}log.warn(message);await outro("Nothing backed up.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)}const retain=await backupRetain(options.retain);const timeoutMs=await backupTimeout(options.timeout);const dir=backupDir(options.out);mkdirSync(dir,{recursive:true});const name=backupFileName(target,new Date);const destination=join(dir,name);const command=dumpCommand(target);if(command){if(options.verbose)log.info(describeCommand(command));await writeDump(command,destination,target.password,{timeoutMs})}else{await dumpSqlite(sqliteFile(target),destination)}const size=existsSync(destination)?statSync(destination).size:0;log.success(`Wrote ${destination} (${(size/1024).toFixed(1)} KB)`);const removed=prune(dir,retain);if(removed.length)log.info(`Pruned ${removed.length} older dump(s), keeping ${retain}.`);const offsite=await backupDestination(options.destination);if(offsite){const uploaded=await uploadBackup(offsite,destination,name);log.success(`Copied to ${uploaded}`)}else{log.info("This dump is on the same disk as the database. Set `backups.destination` in config/database.ts (or DB_BACKUP_DESTINATION) to copy it off the box.")}await outro("Database backed up",{startTime:perf,useSeconds:true})}catch(error){await log.error("Database backup failed:",error);process.exit(ExitCode.FatalError)}process.exit(ExitCode.Success)});buddy.command("db:backups","List the database dumps that have been taken").option("--out [dir]",`Where dumps are kept (default: ${DEFAULT_BACKUP_DIR})`).example("buddy db:backups").action(async(options)=>{const dir=backupDir(options.out);const backups=existingBackups(dir);if(!backups.length){log.info(`No dumps in ${dir}.`);await log.flush();process.exit(ExitCode.Success)}log.info(`${backups.length} dump(s) in ${dir}, oldest first:`);for(const name of backups){const size=statSync(join(dir,name)).size;log.info(` ${name} ${(size/1024).toFixed(1)} KB`)}await log.flush();process.exit(ExitCode.Success)});buddy.command("db:restore [file]","Restore the application database from a dump").option("--out [dir]",`Where dumps are kept (default: ${DEFAULT_BACKUP_DIR})`).option("--force","Skip the confirmation prompt",{default:false}).option("--verbose","Enable verbose output",{default:false}).example("buddy db:restore").example("buddy db:restore 2026-08-13T09-00-00-000.sqlite.sqlite --force").action(async(file,options)=>{const perf=await intro("buddy db:restore");try{const target=await backupTarget();if(!target){await log.error("No restorable database is configured.");process.exit(ExitCode.FatalError)}const dir=backupDir(options.out);const backups=existingBackups(dir);const name=file??backups[backups.length-1];if(!name){await log.error(`No dumps found in ${dir}.`);process.exit(ExitCode.FatalError)}const source=isAbsolute(name)?name:join(dir,name);if(!existsSync(source)){await log.error(`No such dump: ${source}`);process.exit(ExitCode.FatalError)}if(!options.force){const answer=await confirmOrNull({message:`Replace ${target.engine} database "${target.database}" with ${name}? The current contents are lost.`,initial:false});if(answer!==true){await outro("Restore cancelled.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)}}const command=restoreCommand(target);if(command){if(options.verbose)log.info(describeCommand(command));await readDump(command,source,target.password)}else{const displaced=await restoreSqlite(source,sqliteFile(target),Date.now());if(displaced)log.info(`The database that was there is kept at ${displaced}`)}log.success(`Restored ${target.database} from ${name}`);await outro("Database restored",{startTime:perf,useSeconds:true})}catch(error){await log.error("Database restore failed:",error);process.exit(ExitCode.FatalError)}process.exit(ExitCode.Success)})}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Buffer } from 'node:buffer';
|
|
2
|
+
import process from 'node:process';
|
|
2
3
|
/**
|
|
3
4
|
* The dump target for a database config (`config.database`), or `null` when the
|
|
4
5
|
* engine is one we will not pretend to back up.
|
|
@@ -53,15 +54,34 @@ export declare function restoreCommand(target: BackupTarget): DumpCommand | null
|
|
|
53
54
|
* Written beside the destination under a `.partial` name and renamed only once
|
|
54
55
|
* the tool has exited cleanly, so a dump that fails halfway never takes the
|
|
55
56
|
* place of the newest good one, which is the one a hurried restore picks.
|
|
56
|
-
*
|
|
57
|
-
* web
|
|
57
|
+
*
|
|
58
|
+
* The bytes do not pass through a web stream. This used to be
|
|
59
|
+
* `Bun.write(partial, new Response(proc.stdout.pipeThrough(new CompressionStream('gzip'))))`,
|
|
60
|
+
* which never resolves on Bun 1.3: every deploy of an app with a server
|
|
61
|
+
* database hung at its pre-migration backup, holding the whole dump in memory.
|
|
62
|
+
* So the kernel does the piping wherever bash and gzip exist, and this process
|
|
63
|
+
* only waits. Where they do not, the dump is read and compressed here with
|
|
64
|
+
* synchronous calls, which cannot outrun the disk. Both hold memory flat
|
|
65
|
+
* whatever the size of the dump, on Bun 1.3 and on current Bun;
|
|
66
|
+
* `tests/database-backup-min-bun.test.ts` runs them under the oldest Bun.
|
|
58
67
|
*/
|
|
59
|
-
export declare function writeDump(command: DumpCommand, destination: string, password?: string): Promise<void>;
|
|
68
|
+
export declare function writeDump(command: DumpCommand, destination: string, password?: string, options?: DumpStreamOptions): Promise<void>;
|
|
60
69
|
/**
|
|
61
70
|
* Feed the dump at `source` to `command`'s stdin, inflating it first when it
|
|
62
71
|
* is gzipped, so dumps taken before #3079 restore exactly as they did.
|
|
72
|
+
*
|
|
73
|
+
* An uncompressed dump is handed over as a file, which the tool reads itself.
|
|
74
|
+
* A gzipped one is inflated by `gzip -dc` through a kernel pipe where bash and
|
|
75
|
+
* gzip exist, and by zlib here otherwise, one chunk at a time. It used to be
|
|
76
|
+
* `Bun.file(source).stream().pipeThrough(new DecompressionStream('gzip'))` as
|
|
77
|
+
* the tool's stdin. On Bun 1.3 that has no backpressure: a restore held the
|
|
78
|
+
* whole inflated dump in memory while psql worked through it.
|
|
79
|
+
*
|
|
80
|
+
* A dump that does not inflate is an error here even when the tool exits 0.
|
|
81
|
+
* The tool only sees its input end, and a restore that stopped at a truncated
|
|
82
|
+
* dump would otherwise report success.
|
|
63
83
|
*/
|
|
64
|
-
export declare function readDump(command: DumpCommand, source: string, password?: string): Promise<void>;
|
|
84
|
+
export declare function readDump(command: DumpCommand, source: string, password?: string, options?: Pick<DumpStreamOptions, 'via'>): Promise<void>;
|
|
65
85
|
/**
|
|
66
86
|
* Which dumps to delete to keep the `retain` newest.
|
|
67
87
|
*
|
|
@@ -132,6 +152,16 @@ export declare function backupObjectKey(destination: BackupDestination, fileName
|
|
|
132
152
|
* otherwise would be the disk filling up again.
|
|
133
153
|
*/
|
|
134
154
|
export declare function resolveBackupRetain(databaseConfig: unknown, env?: Record<string, string | undefined>, flag?: string): number;
|
|
155
|
+
/**
|
|
156
|
+
* How long a dump may run, in milliseconds: the `--timeout` flag, then
|
|
157
|
+
* `DB_BACKUP_TIMEOUT`, then `config/database.ts`'s `backups.timeout`, then
|
|
158
|
+
* {@link DEFAULT_DUMP_TIMEOUT_SECONDS}. Each is given in seconds.
|
|
159
|
+
*
|
|
160
|
+
* There is no way to switch it off. A dump with no deadline is what held every
|
|
161
|
+
* deploy of an app until CI cancelled it six hours later, and a database that
|
|
162
|
+
* needs longer than the default can say how long.
|
|
163
|
+
*/
|
|
164
|
+
export declare function resolveBackupTimeout(databaseConfig: unknown, env?: Record<string, string | undefined>, flag?: string): number;
|
|
135
165
|
/**
|
|
136
166
|
* The configured offsite destination, or null.
|
|
137
167
|
*
|
|
@@ -140,6 +170,8 @@ export declare function resolveBackupRetain(databaseConfig: unknown, env?: Recor
|
|
|
140
170
|
* case and is not an error — it is what the deploy warning is about.
|
|
141
171
|
*/
|
|
142
172
|
export declare function resolveBackupDestination(databaseConfig: unknown, env?: Record<string, string | undefined>): BackupDestination | null;
|
|
173
|
+
/** How long a dump may run before it is stopped, when nothing says otherwise. */
|
|
174
|
+
export declare const DEFAULT_DUMP_TIMEOUT_SECONDS: 3600;
|
|
143
175
|
/** How many dumps are kept when nothing says otherwise. */
|
|
144
176
|
export declare const DEFAULT_RETAIN: 7;
|
|
145
177
|
/** Everything needed to dump one database. */
|
|
@@ -157,6 +189,11 @@ export declare interface DumpCommand {
|
|
|
157
189
|
args: string[]
|
|
158
190
|
env: Record<string, string>
|
|
159
191
|
}
|
|
192
|
+
/** How {@link writeDump} and {@link readDump} move the bytes. */
|
|
193
|
+
export declare interface DumpStreamOptions {
|
|
194
|
+
timeoutMs?: number
|
|
195
|
+
via?: 'pipe' | 'process'
|
|
196
|
+
}
|
|
160
197
|
/**
|
|
161
198
|
* Where a dump is copied so that losing the instance does not lose the data.
|
|
162
199
|
*
|
package/dist/database-backup.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import process from"node:process";const ENGINES={sqlite:"sqlite",postgres:"postgres",postgresql:"postgres",mysql:"mysql",mariadb:"mysql"};export function resolveBackupTarget(databaseConfig){const cfg=databaseConfig;const dialect=String(cfg?.default??"").trim().toLowerCase();const engine=ENGINES[dialect];if(!engine)return null;const connection=cfg?.connections?.[dialect];if(!connection)return null;if(engine==="sqlite"){const database=String(connection.database??"").trim();return database?{engine,database}:null}const database=String(connection.name??connection.database??"").trim();if(!database)return null;return{engine,database,host:String(connection.host??"127.0.0.1"),port:Number(connection.port)||(engine==="postgres"?5432:3306),username:String(connection.username??""),password:String(connection.password??"")}}export function backupFileName(target,at){const stamp=at.toISOString().replace(/[:.]/g,"-").replace("Z","");const extension=target.engine==="sqlite"?"sqlite":"sql.gz";return`${stamp}.${target.engine}.${extension}`}export function isBackupFileName(name){return/^\d{4}-\d{2}-\d{2}T[\d-]+\.(?:sqlite|postgres|mysql)\.(?:sqlite|sql|sql\.gz)$/.test(name)}export function isCompressedBackup(name){return name.endsWith(".gz")}export function dumpCommand(target){if(target.engine==="sqlite")return null;if(target.engine==="postgres"){return{bin:"pg_dump",args:["--host",String(target.host),"--port",String(target.port),"--username",String(target.username),"--no-owner","--no-acl",target.database],env:target.password?{PGPASSWORD:target.password}:{}}}return{bin:"mysqldump",args:[`--host=${target.host}`,`--port=${target.port}`,`--user=${target.username}`,"--single-transaction",target.database],env:target.password?{MYSQL_PWD:target.password}:{}}}export function restoreCommand(target){if(target.engine==="sqlite")return null;if(target.engine==="postgres"){return{bin:"psql",args:["--host",String(target.host),"--port",String(target.port),"--username",String(target.username),"--set","ON_ERROR_STOP=1",target.database],env:target.password?{PGPASSWORD:target.password}:{}}}return{bin:"mysql",args:[`--host=${target.host}`,`--port=${target.port}`,`--user=${target.username}`,`--database=${target.database}`],env:target.password?{MYSQL_PWD:target.password}:{}}}export
|
|
2
|
-
`)
|
|
1
|
+
import{Buffer}from"node:buffer";import process from"node:process";const ENGINES={sqlite:"sqlite",postgres:"postgres",postgresql:"postgres",mysql:"mysql",mariadb:"mysql"};export function resolveBackupTarget(databaseConfig){const cfg=databaseConfig;const dialect=String(cfg?.default??"").trim().toLowerCase();const engine=ENGINES[dialect];if(!engine)return null;const connection=cfg?.connections?.[dialect];if(!connection)return null;if(engine==="sqlite"){const database=String(connection.database??"").trim();return database?{engine,database}:null}const database=String(connection.name??connection.database??"").trim();if(!database)return null;return{engine,database,host:String(connection.host??"127.0.0.1"),port:Number(connection.port)||(engine==="postgres"?5432:3306),username:String(connection.username??""),password:String(connection.password??"")}}export function backupFileName(target,at){const stamp=at.toISOString().replace(/[:.]/g,"-").replace("Z","");const extension=target.engine==="sqlite"?"sqlite":"sql.gz";return`${stamp}.${target.engine}.${extension}`}export function isBackupFileName(name){return/^\d{4}-\d{2}-\d{2}T[\d-]+\.(?:sqlite|postgres|mysql)\.(?:sqlite|sql|sql\.gz)$/.test(name)}export function isCompressedBackup(name){return name.endsWith(".gz")}export function dumpCommand(target){if(target.engine==="sqlite")return null;if(target.engine==="postgres"){return{bin:"pg_dump",args:["--host",String(target.host),"--port",String(target.port),"--username",String(target.username),"--no-owner","--no-acl",target.database],env:target.password?{PGPASSWORD:target.password}:{}}}return{bin:"mysqldump",args:[`--host=${target.host}`,`--port=${target.port}`,`--user=${target.username}`,"--single-transaction",target.database],env:target.password?{MYSQL_PWD:target.password}:{}}}export function restoreCommand(target){if(target.engine==="sqlite")return null;if(target.engine==="postgres"){return{bin:"psql",args:["--host",String(target.host),"--port",String(target.port),"--username",String(target.username),"--set","ON_ERROR_STOP=1",target.database],env:target.password?{PGPASSWORD:target.password}:{}}}return{bin:"mysql",args:[`--host=${target.host}`,`--port=${target.port}`,`--user=${target.username}`,`--database=${target.database}`],env:target.password?{MYSQL_PWD:target.password}:{}}}export const DEFAULT_DUMP_TIMEOUT_SECONDS=3600;const BASH="bash";const GZIP="gzip";const GZIP_BATCH_BYTES=1024*1024;const PIPE_STATUS=['echo "$','{PIPESTATUS[*]}"'].join("");const DUMP_PIPELINE=["set -m",`( "$0" "$@" | gzip -c 2>&1 > "$DUMP_OUT"; ${PIPE_STATUS} ) &`,"job=$!",`trap 'kill -TERM -- "-$job" 2>/dev/null' TERM INT HUP`,'wait "$job"'].join(`
|
|
2
|
+
`);const RESTORE_PIPELINE=["exec 3>&1",'gzip -dc < "$DUMP_IN" 2>&3 | "$0" "$@" > /dev/null 3>&-',PIPE_STATUS].join(`
|
|
3
|
+
`);const SIGPIPE_EXIT=141;function canPipe(){return process.platform!=="win32"&&Boolean(Bun.which(BASH))&&Boolean(Bun.which(GZIP))}function pipelineOutcome(stdout){const lines=stdout.split(`
|
|
4
|
+
`).map((l)=>l.trim()).filter(Boolean);const last=lines[lines.length-1]??"";if(!/^\d+ \d+$/.test(last))return{said:lines.join(`
|
|
5
|
+
`),codes:null};return{said:lines.slice(0,-1).join(`
|
|
6
|
+
`),codes:last.split(" ").map(Number)}}function toolError(command,stderr,code,password){return new Error(withoutPassword(`${command.bin}: ${toolFailureDetail(stderr,command.bin)||`exit code ${code}`}`,password))}function gzipError(detail,code,password){return new Error(withoutPassword(`${GZIP}: ${toolFailureDetail(detail,GZIP)||`exit code ${code}`}`,password))}function deadlineError(command,timeoutMs){const seconds=Math.round(timeoutMs/100)/10;return new Error(`${command.bin} had not finished after ${seconds}s, so it was stopped and no dump was written. `+"If this database needs longer, raise the limit (in seconds) with --timeout, DB_BACKUP_TIMEOUT or backups.timeout.")}export async function writeDump(command,destination,password,options={}){const{renameSync,rmSync}=await import("node:fs");const partial=`${destination}.partial`;const timeoutMs=options.timeoutMs??DEFAULT_DUMP_TIMEOUT_SECONDS*1000;const piped=options.via?options.via==="pipe":canPipe();try{if(piped)await pipeDump(command,partial,timeoutMs,password);else await compressDump(command,partial,timeoutMs,password);renameSync(partial,destination)}finally{rmSync(partial,{force:true})}}async function pipeDump(command,partial,timeoutMs,password){const proc=Bun.spawn([BASH,"-c",DUMP_PIPELINE,command.bin,...command.args],{env:{...process.env,...command.env,DUMP_OUT:partial},stdin:"ignore",stdout:"pipe",stderr:"pipe"});let expired=false;let hardStop;const deadline=setTimeout(()=>{expired=true;proc.kill("SIGTERM");hardStop=setTimeout(()=>proc.kill("SIGKILL"),5000)},timeoutMs);try{const[stdout,stderr,code]=await Promise.all([new Response(proc.stdout).text(),new Response(proc.stderr).text(),proc.exited]);if(expired)throw deadlineError(command,timeoutMs);const{said,codes}=pipelineOutcome(stdout);if(!codes)throw toolError(command,stderr,code,password);const[toolCode=1,gzipCode=1]=codes;if(gzipCode!==0&&(toolCode===0||toolCode===SIGPIPE_EXIT))throw gzipError(said||stderr,gzipCode,password);if(toolCode!==0)throw toolError(command,stderr,toolCode,password)}finally{clearTimeout(deadline);clearTimeout(hardStop)}}async function compressDump(command,partial,timeoutMs,password){const{closeSync,openSync,writeSync}=await import("node:fs");const fd=openSync(partial,"w");const proc=Bun.spawn([command.bin,...command.args],{env:{...process.env,...command.env},stdin:"ignore",stdout:"pipe",stderr:"pipe"});const stderrText=new Response(proc.stderr).text();let expired=false;const startedAt=Date.now();const expire=()=>{expired=true;proc.kill("SIGKILL")};const deadline=setTimeout(expire,timeoutMs);let failure;try{const flush=(batch)=>{const packed=Bun.gzipSync(Buffer.concat(batch));for(let offset=0;offset<packed.length;)offset+=writeSync(fd,packed,offset)};const reader=proc.stdout.getReader();let batch=[];let batched=0;let members=0;for(;;){const{done,value}=await reader.read();if(done)break;batch.push(value);batched+=value.length;if(batched>=GZIP_BATCH_BYTES){flush(batch);members++;batch=[];batched=0}if(!expired&&Date.now()-startedAt>timeoutMs)expire()}if(batched>0||members===0)flush(batch)}catch(error){failure=error;proc.kill("SIGKILL")}finally{clearTimeout(deadline);closeSync(fd)}const[code,stderr]=await Promise.all([proc.exited,stderrText]);if(expired)throw deadlineError(command,timeoutMs);if(failure!==undefined)throw gzipError(failure instanceof Error?failure.message:String(failure),"unknown",password);if(code!==0)throw toolError(command,stderr,code,password)}export async function readDump(command,source,password,options={}){if(!isCompressedBackup(source)){const proc=Bun.spawn([command.bin,...command.args],{env:{...process.env,...command.env},stdin:Bun.file(source),stdout:"ignore",stderr:"pipe"});const[code,stderr]=await Promise.all([proc.exited,new Response(proc.stderr).text()]);if(code!==0)throw toolError(command,stderr,code,password);return}if(options.via?options.via==="pipe":canPipe())await pipeRestore(command,source,password);else await inflateRestore(command,source,password)}async function pipeRestore(command,source,password){const proc=Bun.spawn([BASH,"-c",RESTORE_PIPELINE,command.bin,...command.args],{env:{...process.env,...command.env,DUMP_IN:source},stdin:"ignore",stdout:"pipe",stderr:"pipe"});const[stdout,stderr,code]=await Promise.all([new Response(proc.stdout).text(),new Response(proc.stderr).text(),proc.exited]);const{said,codes}=pipelineOutcome(stdout);if(!codes)throw toolError(command,stderr,code,password);const[gzipCode=1,toolCode=1]=codes;if(toolCode!==0)throw toolError(command,stderr,toolCode,password);if(gzipCode!==0)throw gzipError(said||stderr,gzipCode,password)}async function inflateRestore(command,source,password){const{createReadStream}=await import("node:fs");const{createGunzip}=await import("node:zlib");const proc=Bun.spawn([command.bin,...command.args],{env:{...process.env,...command.env},stdin:"pipe",stdout:"ignore",stderr:"pipe"});const stderrText=new Response(proc.stderr).text();let inflating=true;let failure;try{for await(const chunk of createReadStream(source).pipe(createGunzip())){inflating=false;await proc.stdin.write(chunk);await proc.stdin.flush();inflating=true}}catch(error){failure=error}try{await proc.stdin.end()}catch{}const[code,stderr]=await Promise.all([proc.exited,stderrText]);if(code!==0)throw toolError(command,stderr,code,password);if(failure!==undefined&&inflating)throw gzipError(failure instanceof Error?failure.message:String(failure),"unknown",password)}export function prunableBackups(existing,retain){if(!Number.isFinite(retain)||retain<1)return[];const backups=existing.filter(isBackupFileName).sort();const excess=backups.length-retain;return excess>0?backups.slice(0,excess):[]}export async function dumpSqlite(source,destination){const{Database}=await import("bun:sqlite");const database=new Database(source,{readonly:true});try{database.exec(`VACUUM INTO '${destination.replace(/'/g,"''")}'`)}finally{database.close()}}export async function restoreSqlite(source,live,stamp){const{existsSync,renameSync}=await import("node:fs");let displaced=null;if(existsSync(live)){displaced=`${live}.replaced-${stamp}`;renameSync(live,displaced)}await Bun.write(live,Bun.file(source));return displaced}export function withoutPassword(text,password){return password?text.split(password).join("***"):text}export function describeCommand(command){return[command.bin,...command.args].join(" ")}export function toolFailureDetail(stderr,bin){const lines=String(stderr).split(`
|
|
7
|
+
`).map((l)=>l.trim()).filter(Boolean).map((l)=>bin&&l.startsWith(`${bin}: `)?l.slice(bin.length+2):l);if(!lines.length)return"";const errorAt=lines.findIndex((l)=>/^error\b|\berror:/i.test(l));if(errorAt===-1)return lines[lines.length-1]??"";const kept=[lines[errorAt]];for(const line of lines.slice(errorAt+1)){if(/^(?:detail|hint):/i.test(line))kept.push(line)}return kept.join(" ")}export function parseBackupDestination(uri){const trimmed=uri.trim();const match=trimmed.match(/^(s3|disk):\/\/([^/]+)(?:\/(.*))?$/);if(!match){throw new Error(`Backup destination must be \`s3://bucket/prefix\` or \`disk://name/prefix\`, got ${JSON.stringify(uri)}. `+"A local path is not accepted here — `--out` already writes locally, and a second copy on the same disk "+"is not a backup of the box.")}const[,kind,target,rawPrefix=""]=match;const prefix=rawPrefix.replace(/^\/+|\/+$/g,"");if(!target){throw new Error(`Backup destination ${JSON.stringify(uri)} names no ${kind==="s3"?"bucket":"disk"}.`)}return{kind,target,prefix}}export function backupObjectKey(destination,fileName){return destination.prefix?`${destination.prefix}/${fileName}`:fileName}export const DEFAULT_RETAIN=7;export function resolveBackupRetain(databaseConfig,env={},flag){const configured=databaseConfig?.backups?.retain;const sources=[["--retain",flag],["DB_BACKUP_RETAIN",env.DB_BACKUP_RETAIN],["backups.retain",configured]];for(const[name,value]of sources){if(value===undefined||value===null||String(value).trim()==="")continue;const count=Number(String(value).trim());if(!Number.isInteger(count)||count<1)throw new Error(`${name} must be a whole number of dumps to keep, at least 1; got ${JSON.stringify(value)}.`);return count}return DEFAULT_RETAIN}export function resolveBackupTimeout(databaseConfig,env={},flag){const configured=databaseConfig?.backups?.timeout;const sources=[["--timeout",flag],["DB_BACKUP_TIMEOUT",env.DB_BACKUP_TIMEOUT],["backups.timeout",configured]];for(const[name,value]of sources){if(value===undefined||value===null||String(value).trim()==="")continue;const seconds=Number(String(value).trim());if(!Number.isFinite(seconds)||seconds<=0)throw new Error(`${name} must be a number of seconds greater than 0; got ${JSON.stringify(value)}.`);return Math.round(seconds*1000)}return DEFAULT_DUMP_TIMEOUT_SECONDS*1000}export function resolveBackupDestination(databaseConfig,env={}){const configured=env.DB_BACKUP_DESTINATION??databaseConfig?.backups?.destination;if(typeof configured!=="string"||!configured.trim())return null;return parseBackupDestination(configured)}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* A migration check for the obsolete Craft constraint in July 2026 scaffolds
|
|
3
|
+
* (stacksjs/stacks#2919), not a second Pantry package/range resolver.
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
* `
|
|
6
|
-
*
|
|
7
|
-
* `./buddy` bootstrap failed at install, and an app stopped deploying for three
|
|
8
|
-
* days with no other symptom (stacksjs/stacks#2919). The framework's own copy
|
|
9
|
-
* dropped it long ago, but a scaffolded app keeps the file it was given.
|
|
10
|
-
*
|
|
11
|
-
* Craft is the native desktop shell. A web or mobile build never runs its
|
|
12
|
-
* binary, and the SDK comes from `craft-native` in package.json.
|
|
5
|
+
* `craft` aliases to `craft-native.org`, which now publishes native artifacts.
|
|
6
|
+
* The old `^0.0.1` only accepts that patch line, not later native releases.
|
|
7
|
+
* Pantry remains responsible for resolving other ranges and host artifacts.
|
|
13
8
|
*/
|
|
14
9
|
export declare function describeSystemDependencies(depsSource: string): { status: 'pass' | 'fail', message: string };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function describeSystemDependencies(depsSource){const code=new Bun.Transpiler({loader:"ts",trimUnusedImports:false}).transformSync(depsSource);
|
|
1
|
+
export function describeSystemDependencies(depsSource){const code=new Bun.Transpiler({loader:"ts",trimUnusedImports:false}).transformSync(depsSource);const tokens=code.match(/"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|[\w$]+|[^\s]/g)??[];const tokenValue=(token)=>token&&/^["'`]/.test(token)?token.slice(1,-1):token;const dependencyBlocks=[];for(let index=0;index<tokens.length;index++){const token=tokens[index];if(token==="{"){dependencyBlocks.push(dependencyBlocks.at(-1)===true||tokens[index-1]===":"&&tokenValue(tokens[index-2])==="dependencies")}else if(token==="}"){dependencyBlocks.pop()}else if(dependencyBlocks.at(-1)&&(tokens[index-1]==="{"||tokens[index-1]===",")&&(tokenValue(token)==="craft"||tokenValue(token)==="craft-native.org")&&tokens[index+1]===":"&&/^["'`]/.test(tokens[index+2]??"")&&tokenValue(tokens[index+2])?.trim()==="^0.0.1"&&(tokens[index+3]===","||tokens[index+3]==="}")){return{status:"fail",message:"config/deps.ts declares the obsolete Craft scaffold range `^0.0.1`. The `craft` alias resolves to craft-native.org, but this range only accepts that patch line, not its later published native releases. Remove the line if only the `craft-native` SDK in package.json is needed. For a native CLI dependency, declare the qualified native range for the target platform and use Pantry to install that declared range."}}}return{status:"pass",message:"No direct literal obsolete Craft `^0.0.1` scaffold declaration found in dependency objects; Pantry validates other package ranges and host artifacts during installation"}}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.552",
|
|
6
6
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -95,74 +95,74 @@
|
|
|
95
95
|
"prepublishOnly": "bun run build"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@stacksjs/actions": "0.75.
|
|
99
|
-
"@stacksjs/docs": "0.75.
|
|
100
|
-
"@stacksjs/ai": "0.75.
|
|
101
|
-
"@stacksjs/alias": "0.75.
|
|
102
|
-
"@stacksjs/analytics": "0.75.
|
|
103
|
-
"@stacksjs/api": "0.75.
|
|
104
|
-
"@stacksjs/arrays": "0.75.
|
|
105
|
-
"@stacksjs/auth": "0.75.
|
|
106
|
-
"@stacksjs/browser-extension": "0.75.
|
|
107
|
-
"@stacksjs/build": "0.75.
|
|
98
|
+
"@stacksjs/actions": "0.75.552",
|
|
99
|
+
"@stacksjs/docs": "0.75.552",
|
|
100
|
+
"@stacksjs/ai": "0.75.552",
|
|
101
|
+
"@stacksjs/alias": "0.75.552",
|
|
102
|
+
"@stacksjs/analytics": "0.75.552",
|
|
103
|
+
"@stacksjs/api": "0.75.552",
|
|
104
|
+
"@stacksjs/arrays": "0.75.552",
|
|
105
|
+
"@stacksjs/auth": "0.75.552",
|
|
106
|
+
"@stacksjs/browser-extension": "0.75.552",
|
|
107
|
+
"@stacksjs/build": "0.75.552",
|
|
108
108
|
"@stacksjs/bumpx": "^0.2.26",
|
|
109
|
-
"@stacksjs/cache": "0.75.
|
|
110
|
-
"@stacksjs/chat": "0.75.
|
|
111
|
-
"@stacksjs/clapp": "^0.2.
|
|
112
|
-
"@stacksjs/cli": "0.75.
|
|
113
|
-
"@stacksjs/cloud": "0.75.
|
|
114
|
-
"@stacksjs/cms": "0.75.
|
|
115
|
-
"@stacksjs/collections": "0.75.
|
|
116
|
-
"@stacksjs/commerce": "0.75.
|
|
117
|
-
"@stacksjs/config": "0.75.
|
|
118
|
-
"@stacksjs/database": "0.75.
|
|
119
|
-
"@stacksjs/desktop-build": "0.75.
|
|
120
|
-
"@stacksjs/dns": "0.75.
|
|
109
|
+
"@stacksjs/cache": "0.75.552",
|
|
110
|
+
"@stacksjs/chat": "0.75.552",
|
|
111
|
+
"@stacksjs/clapp": "^0.2.17",
|
|
112
|
+
"@stacksjs/cli": "0.75.552",
|
|
113
|
+
"@stacksjs/cloud": "0.75.552",
|
|
114
|
+
"@stacksjs/cms": "0.75.552",
|
|
115
|
+
"@stacksjs/collections": "0.75.552",
|
|
116
|
+
"@stacksjs/commerce": "0.75.552",
|
|
117
|
+
"@stacksjs/config": "0.75.552",
|
|
118
|
+
"@stacksjs/database": "0.75.552",
|
|
119
|
+
"@stacksjs/desktop-build": "0.75.552",
|
|
120
|
+
"@stacksjs/dns": "0.75.552",
|
|
121
121
|
"@stacksjs/dnsx": "^0.2.3",
|
|
122
|
-
"@stacksjs/email": "0.75.
|
|
123
|
-
"@stacksjs/enums": "0.75.
|
|
124
|
-
"@stacksjs/env": "0.75.
|
|
125
|
-
"@stacksjs/error-handling": "0.75.
|
|
126
|
-
"@stacksjs/events": "0.75.
|
|
127
|
-
"@stacksjs/features": "0.75.
|
|
128
|
-
"@stacksjs/git": "0.75.
|
|
122
|
+
"@stacksjs/email": "0.75.552",
|
|
123
|
+
"@stacksjs/enums": "0.75.552",
|
|
124
|
+
"@stacksjs/env": "0.75.552",
|
|
125
|
+
"@stacksjs/error-handling": "0.75.552",
|
|
126
|
+
"@stacksjs/events": "0.75.552",
|
|
127
|
+
"@stacksjs/features": "0.75.552",
|
|
128
|
+
"@stacksjs/git": "0.75.552",
|
|
129
129
|
"@stacksjs/gitit": "^0.2.5",
|
|
130
|
-
"@stacksjs/health": "0.75.
|
|
130
|
+
"@stacksjs/health": "0.75.552",
|
|
131
131
|
"@stacksjs/httx": "^0.1.10",
|
|
132
|
-
"@stacksjs/image": "0.75.
|
|
133
|
-
"@stacksjs/lint": "0.75.
|
|
134
|
-
"@stacksjs/logging": "0.75.
|
|
135
|
-
"@stacksjs/notifications": "0.75.
|
|
136
|
-
"@stacksjs/objects": "0.75.
|
|
137
|
-
"@stacksjs/orm": "0.75.
|
|
138
|
-
"@stacksjs/path": "0.75.
|
|
139
|
-
"@stacksjs/payments": "0.75.
|
|
140
|
-
"@stacksjs/realtime": "0.75.
|
|
141
|
-
"@stacksjs/router": "0.75.
|
|
132
|
+
"@stacksjs/image": "0.75.552",
|
|
133
|
+
"@stacksjs/lint": "0.75.552",
|
|
134
|
+
"@stacksjs/logging": "0.75.552",
|
|
135
|
+
"@stacksjs/notifications": "0.75.552",
|
|
136
|
+
"@stacksjs/objects": "0.75.552",
|
|
137
|
+
"@stacksjs/orm": "0.75.552",
|
|
138
|
+
"@stacksjs/path": "0.75.552",
|
|
139
|
+
"@stacksjs/payments": "0.75.552",
|
|
140
|
+
"@stacksjs/realtime": "0.75.552",
|
|
141
|
+
"@stacksjs/router": "0.75.552",
|
|
142
142
|
"@stacksjs/rpx": "^0.11.54",
|
|
143
|
-
"@stacksjs/scheduler": "0.75.
|
|
144
|
-
"@stacksjs/search-engine": "0.75.
|
|
145
|
-
"@stacksjs/security": "0.75.
|
|
146
|
-
"@stacksjs/server": "0.75.
|
|
147
|
-
"@stacksjs/sites": "0.75.
|
|
148
|
-
"@stacksjs/skills": "0.75.
|
|
149
|
-
"@stacksjs/socials": "0.75.
|
|
150
|
-
"@stacksjs/storage": "0.75.
|
|
151
|
-
"@stacksjs/strings": "0.75.
|
|
152
|
-
"@stacksjs/stx": "^0.2.
|
|
153
|
-
"@stacksjs/testing": "0.75.
|
|
154
|
-
"@stacksjs/tinker": "0.75.
|
|
143
|
+
"@stacksjs/scheduler": "0.75.552",
|
|
144
|
+
"@stacksjs/search-engine": "0.75.552",
|
|
145
|
+
"@stacksjs/security": "0.75.552",
|
|
146
|
+
"@stacksjs/server": "0.75.552",
|
|
147
|
+
"@stacksjs/sites": "0.75.552",
|
|
148
|
+
"@stacksjs/skills": "0.75.552",
|
|
149
|
+
"@stacksjs/socials": "0.75.552",
|
|
150
|
+
"@stacksjs/storage": "0.75.552",
|
|
151
|
+
"@stacksjs/strings": "0.75.552",
|
|
152
|
+
"@stacksjs/stx": "^0.2.859",
|
|
153
|
+
"@stacksjs/testing": "0.75.552",
|
|
154
|
+
"@stacksjs/tinker": "0.75.552",
|
|
155
155
|
"@stacksjs/tlsx": "^0.13.19",
|
|
156
156
|
"@stacksjs/ts-cloud": "^0.16.126",
|
|
157
|
-
"@stacksjs/tunnel": "0.75.
|
|
158
|
-
"@stacksjs/types": "0.75.
|
|
159
|
-
"@stacksjs/ui": "0.75.
|
|
160
|
-
"@stacksjs/utils": "0.75.
|
|
161
|
-
"@stacksjs/validation": "0.75.
|
|
157
|
+
"@stacksjs/tunnel": "0.75.552",
|
|
158
|
+
"@stacksjs/types": "0.75.552",
|
|
159
|
+
"@stacksjs/ui": "0.75.552",
|
|
160
|
+
"@stacksjs/utils": "0.75.552",
|
|
161
|
+
"@stacksjs/validation": "0.75.552",
|
|
162
162
|
"ajv": "^8.20.0",
|
|
163
163
|
"ajv-formats": "^3.0.1",
|
|
164
|
-
"bun-plugin-stx": "^0.2.
|
|
165
|
-
"ts-pantry": "^0.11.
|
|
164
|
+
"bun-plugin-stx": "^0.2.859",
|
|
165
|
+
"ts-pantry": "^0.11.198"
|
|
166
166
|
},
|
|
167
167
|
"devDependencies": {
|
|
168
168
|
"better-dx": "^0.2.24"
|