@happyvertical/smrt-config 0.40.68 → 0.40.70

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/index.d.ts CHANGED
@@ -653,20 +653,31 @@ export declare interface MigrationsConfig {
653
653
  */
654
654
  export declare interface MigrationsPostgresConfig {
655
655
  /**
656
- * Use CREATE INDEX CONCURRENTLY for index creation
657
- * Avoids table locks but cannot run in a transaction
656
+ * Allow `CREATE INDEX CONCURRENTLY` when concurrent-index mode is requested
657
+ * with `smrt db:migrate --postgres-safe`.
658
+ *
659
+ * Concurrent builds avoid the batch's table locks but cannot run inside a
660
+ * transaction, so that mode is not atomic. Setting this to `false` vetoes
661
+ * the flag: index DDL then stays inside the atomic transaction, still bounded
662
+ * by the timeouts below. The flag is the opt-in — this key alone does not
663
+ * enable concurrent mode.
658
664
  *
659
665
  * @default true
660
666
  */
661
667
  useConcurrently?: boolean;
662
668
  /**
663
- * Lock timeout for migration statements
669
+ * `lock_timeout` applied to every PostgreSQL migration statement.
670
+ *
671
+ * Accepts a bare millisecond count or an `ms`/`s`/`min`/`h` suffix. `'0'`
672
+ * disables the timeout, as PostgreSQL defines it.
664
673
  *
665
674
  * @default '30s'
666
675
  */
667
676
  lockTimeout?: string;
668
677
  /**
669
- * Statement timeout for migration execution
678
+ * `statement_timeout` applied to every PostgreSQL migration statement.
679
+ *
680
+ * Same accepted forms as {@link MigrationsPostgresConfig.lockTimeout}.
670
681
  *
671
682
  * @default '60s'
672
683
  */
package/dist/types.d.ts CHANGED
@@ -321,20 +321,31 @@ export declare interface MigrationsConfig {
321
321
  */
322
322
  export declare interface MigrationsPostgresConfig {
323
323
  /**
324
- * Use CREATE INDEX CONCURRENTLY for index creation
325
- * Avoids table locks but cannot run in a transaction
324
+ * Allow `CREATE INDEX CONCURRENTLY` when concurrent-index mode is requested
325
+ * with `smrt db:migrate --postgres-safe`.
326
+ *
327
+ * Concurrent builds avoid the batch's table locks but cannot run inside a
328
+ * transaction, so that mode is not atomic. Setting this to `false` vetoes
329
+ * the flag: index DDL then stays inside the atomic transaction, still bounded
330
+ * by the timeouts below. The flag is the opt-in — this key alone does not
331
+ * enable concurrent mode.
326
332
  *
327
333
  * @default true
328
334
  */
329
335
  useConcurrently?: boolean;
330
336
  /**
331
- * Lock timeout for migration statements
337
+ * `lock_timeout` applied to every PostgreSQL migration statement.
338
+ *
339
+ * Accepts a bare millisecond count or an `ms`/`s`/`min`/`h` suffix. `'0'`
340
+ * disables the timeout, as PostgreSQL defines it.
332
341
  *
333
342
  * @default '30s'
334
343
  */
335
344
  lockTimeout?: string;
336
345
  /**
337
- * Statement timeout for migration execution
346
+ * `statement_timeout` applied to every PostgreSQL migration statement.
347
+ *
348
+ * Same accepted forms as {@link MigrationsPostgresConfig.lockTimeout}.
338
349
  *
339
350
  * @default '60s'
340
351
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-config",
3
- "version": "0.40.68",
3
+ "version": "0.40.70",
4
4
  "type": "module",
5
5
  "description": "Centralized configuration management for SMRT modules",
6
6
  "author": "HappyVertical",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "cosmiconfig": "^9.0.2",
23
23
  "jiti": "^2.7.0",
24
- "@happyvertical/smrt-types": "0.40.68"
24
+ "@happyvertical/smrt-types": "0.40.70"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "24.13.2",