@platformatic/db 3.27.0 → 3.28.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/config.d.ts CHANGED
@@ -861,6 +861,7 @@ export interface PlatformaticDatabaseConfig {
861
861
  [k: string]: string;
862
862
  };
863
863
  sourceMaps?: boolean;
864
+ nodeModulesSourceMaps?: string[];
864
865
  scheduler?: {
865
866
  enabled?: boolean | string;
866
867
  name: string;
@@ -915,6 +916,7 @@ export interface PlatformaticDatabaseConfig {
915
916
  };
916
917
  envfile?: string;
917
918
  sourceMaps?: boolean;
919
+ nodeModulesSourceMaps?: string[];
918
920
  packageManager?: "npm" | "pnpm" | "yarn";
919
921
  preload?: string | string[];
920
922
  nodeOptions?: string;
package/lib/types.js CHANGED
@@ -39,8 +39,8 @@ async function generateIndexTypes (entities) {
39
39
  .sort((a, b) => a[0].localeCompare(b[0]))
40
40
 
41
41
  for (const [name, type] of values) {
42
- allImports.push(`import { ${type} } from './${name}'`)
43
- allExports.push(`export { ${type} } from './${name}'`)
42
+ allImports.push(`import { type ${type} } from './${name}.ts'`)
43
+ allExports.push(`export { type ${type} } from './${name}.ts'`)
44
44
  entityMembers.push(` ${name}: Entity<${type}>`)
45
45
  entityTypesMembers.push(` ${name}: ${type}`)
46
46
  entitiesHooks.push(` addEntityHooks(entityName: '${name}', hooks: EntityHooks<${type}>): any`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/db",
3
- "version": "3.27.0",
3
+ "version": "3.28.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -66,17 +66,17 @@
66
66
  "rfdc": "^1.3.1",
67
67
  "rimraf": "^4.4.1",
68
68
  "semgrator": "^0.3.0",
69
- "@platformatic/basic": "3.27.0",
70
- "@platformatic/db-authorization": "3.27.0",
71
- "@platformatic/db-core": "3.27.0",
72
- "@platformatic/foundation": "3.27.0",
73
- "@platformatic/service": "3.27.0",
74
- "@platformatic/sql-events": "3.27.0",
75
- "@platformatic/sql-graphql": "3.27.0",
76
- "@platformatic/sql-json-schema-mapper": "3.27.0",
77
- "@platformatic/sql-openapi": "3.27.0",
78
- "@platformatic/sql-mapper": "3.27.0",
79
- "@platformatic/telemetry": "3.27.0"
69
+ "@platformatic/basic": "3.28.0",
70
+ "@platformatic/db-core": "3.28.0",
71
+ "@platformatic/foundation": "3.28.0",
72
+ "@platformatic/db-authorization": "3.28.0",
73
+ "@platformatic/sql-events": "3.28.0",
74
+ "@platformatic/sql-graphql": "3.28.0",
75
+ "@platformatic/service": "3.28.0",
76
+ "@platformatic/sql-json-schema-mapper": "3.28.0",
77
+ "@platformatic/sql-mapper": "3.28.0",
78
+ "@platformatic/sql-openapi": "3.28.0",
79
+ "@platformatic/telemetry": "3.28.0"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/db/3.27.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/db/3.28.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Database Config",
5
5
  "type": "object",
@@ -1528,6 +1528,12 @@
1528
1528
  "sourceMaps": {
1529
1529
  "type": "boolean"
1530
1530
  },
1531
+ "nodeModulesSourceMaps": {
1532
+ "type": "array",
1533
+ "items": {
1534
+ "type": "string"
1535
+ }
1536
+ },
1531
1537
  "packageManager": {
1532
1538
  "type": "string",
1533
1539
  "enum": [
@@ -2774,6 +2780,13 @@
2774
2780
  "type": "boolean",
2775
2781
  "default": false
2776
2782
  },
2783
+ "nodeModulesSourceMaps": {
2784
+ "type": "array",
2785
+ "items": {
2786
+ "type": "string"
2787
+ },
2788
+ "default": []
2789
+ },
2777
2790
  "scheduler": {
2778
2791
  "type": "array",
2779
2792
  "items": {
@@ -3027,6 +3040,12 @@
3027
3040
  "sourceMaps": {
3028
3041
  "type": "boolean"
3029
3042
  },
3043
+ "nodeModulesSourceMaps": {
3044
+ "type": "array",
3045
+ "items": {
3046
+ "type": "string"
3047
+ }
3048
+ },
3030
3049
  "packageManager": {
3031
3050
  "type": "string",
3032
3051
  "enum": [