@duraxis/migrations 0.3.0 → 0.3.1

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
@@ -1,5 +1,13 @@
1
1
  # @duraxis/migrations
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6377fde: Add framework-independent configuration and owned database/ORM factories, bounded decorated-entity discovery, and shared NestJS/CLI schema resolution. Initialize projects with one source-root configuration and direct AST-guided AppModule integration. Support static inspection/mutation, centralized named connections, registry-free generators and source/compiled deployments without runtime CLI dependencies. Use shared typed configuration across runtime and CLI, standard Nest feature modules, and authenticated encrypted cursors. Document storage, migration, discovery and lifecycle contracts.
8
+ - Updated dependencies [6377fde]
9
+ - @duraxis/core@0.5.0
10
+
3
11
  ## 0.3.0
4
12
 
5
13
  ### Minor Changes
package/README.md CHANGED
@@ -148,7 +148,7 @@ automatic plans refuse to invent values. Field removal rejects populated values.
148
148
 
149
149
  The engine accepts SHA-256 artifact digests from its loader. The CLI defines an
150
150
  identity using pinned TypeScript 5.9.3: two transpilation/printing passes targeting
151
- ES2022 ESM, with comments removed and legacy decorators enabled. It verifies the
151
+ ES2022 ESM, with comments removed and TypeScript decorators enabled. It verifies the
152
152
  same digest for TypeScript and JavaScript emitted using those options. Ship ESM
153
153
  migration files, preserve ESM imports, and do not bundle/minify or downlevel them.
154
154
  Formatting, comments, and type-only edits are excluded from executable identity.
@@ -189,9 +189,15 @@ Named connections, async configuration, and auto-loaded entities remain under
189
189
  NestJS's existing ownership model. A runner can reuse an already-owned Core
190
190
  connection programmatically, but application startup does not run migrations.
191
191
  For incompatible changes, stop older replicas, migrate once, then start compatible
192
- replicas. Use staged backward-compatible application/schema releases when downtime
192
+ replicas. Use staged coordinated application/schema releases when downtime
193
193
  is unsuitable.
194
194
 
195
195
  ## Production resource and lifecycle limits
196
196
 
197
197
  See the [production hardening guide](../../docs/PRODUCTION-HARDENING.md) for bounded defaults, cancellation, verified maintenance, tenant trust boundaries, encrypted cursors, upgrade instructions and remaining pilot limitations. Core rejects storage adapters without bounded-read capability; destructive shared-storage garbage collection is unsupported.
198
+
199
+ ## CLI project setup
200
+
201
+ Run `npx --package @duraxis/cli@latest duraxis init` to generate one source-root configuration. NestJS AppModule integration is automatic; standalone applications call the public runtime factories. See the [shared configuration API and examples](../../docs/CLI-SETUP.md) and [setup guide](../../docs/CLI-SETUP.md).
202
+
203
+ Enable shared migrations with `migrations: true`, or customize `directory` and `snapshots`. Core normalizes these settings for CLI/runtime; migrations imply validation and never enable schema creation. CLI resolves entity files without starting Nest. New CLI artifacts use `.mts`/`.mjs`; old artifacts, snapshots, history and locking remain unchanged.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duraxis/migrations",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Transactional schema migrations for Duraxis.",
5
5
  "license": "ISC",
6
6
  "author": "João Paulo Dias <joaopdias.dev@gmail.com>",
@@ -46,11 +46,11 @@
46
46
  ],
47
47
  "sideEffects": false,
48
48
  "dependencies": {
49
- "@duraxis/core": "0.4.0"
49
+ "@duraxis/core": "0.5.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@duraxis/storage-memory": "0.2.0",
53
- "@duraxis/storage-disk": "0.2.0"
52
+ "@duraxis/storage-memory": "0.2.1",
53
+ "@duraxis/storage-disk": "0.2.1"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "vite build && tsc -p tsconfig.build.json",