@veloxts/orm 0.6.87 → 0.6.88

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
  # @veloxts/orm
2
2
 
3
+ ## 0.6.88
4
+
5
+ ### Patch Changes
6
+
7
+ - add ecosystem presets for environment-aware configuration
8
+ - Updated dependencies
9
+ - @veloxts/core@0.6.88
10
+
3
11
  ## 0.6.87
4
12
 
5
13
  ### Patch Changes
package/dist/plugin.js CHANGED
@@ -6,11 +6,15 @@
6
6
  *
7
7
  * @module plugin
8
8
  */
9
+ import { createRequire } from 'node:module';
9
10
  import { ConfigurationError, definePlugin } from '@veloxts/core';
10
11
  import { createDatabase } from './client.js';
11
12
  import { registerOrmProviders } from './providers.js';
12
13
  import { DATABASE } from './tokens.js';
13
14
  import { isDatabaseClient } from './types.js';
15
+ // Read version from package.json dynamically
16
+ const require = createRequire(import.meta.url);
17
+ const packageJson = require('../package.json');
14
18
  // ============================================================================
15
19
  // Context Extension
16
20
  // ============================================================================
@@ -53,9 +57,9 @@ import { isDatabaseClient } from './types.js';
53
57
  // Plugin Implementation
54
58
  // ============================================================================
55
59
  /**
56
- * Version of the ORM plugin
60
+ * Version of the ORM plugin (read from package.json)
57
61
  */
58
- const ORM_PLUGIN_VERSION = '0.1.0';
62
+ const ORM_PLUGIN_VERSION = packageJson.version ?? '0.0.0-unknown';
59
63
  /**
60
64
  * Default plugin name
61
65
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/orm",
3
- "version": "0.6.87",
3
+ "version": "0.6.88",
4
4
  "description": "Prisma wrapper with enhanced DX for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "fastify": "5.6.2",
20
20
  "pg": "8.16.0",
21
21
  "pg-format": "1.0.4",
22
- "@veloxts/core": "0.6.87"
22
+ "@veloxts/core": "0.6.88"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/pg": "8.15.4",