@prisma/internals 6.13.0-dev.3 → 6.13.0-dev.31

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.
Files changed (54) hide show
  1. package/dist/{chunk-67Y3H3QN.js → chunk-2MSHYWMA.js} +5 -5
  2. package/dist/{chunk-VMDJ6R7V.js → chunk-3PZELVH3.js} +8 -8
  3. package/dist/{chunk-CHOXBASF.js → chunk-4JCVHBYR.js} +5 -5
  4. package/dist/{chunk-MMDCFN6O.js → chunk-5OP3XZGE.js} +7 -7
  5. package/dist/{chunk-MY5KA4VU.js → chunk-67I7CEQJ.js} +329 -12
  6. package/dist/{chunk-HCLB23CV.js → chunk-7QYPTKF6.js} +5 -5
  7. package/dist/{chunk-JIFFPM7F.js → chunk-7RFO7IBT.js} +5 -5
  8. package/dist/{chunk-PYESN73R.js → chunk-AOC6CKVB.js} +26 -26
  9. package/dist/{chunk-SFFH45R3.js → chunk-AZZVNSJU.js} +5 -5
  10. package/dist/{chunk-X4L5SQSX.js → chunk-BPDSYUHC.js} +5 -5
  11. package/dist/{chunk-ZIFBTC6Y.js → chunk-CILEY36B.js} +5150 -477
  12. package/dist/{chunk-F44R72ET.js → chunk-DNBGUGMK.js} +7 -7
  13. package/dist/{chunk-ZCBEMBHR.js → chunk-EYVG6XQS.js} +11 -23
  14. package/dist/{chunk-7LZMIPS5.js → chunk-FJWKIEZH.js} +8 -8
  15. package/dist/{chunk-NNDSWLTF.js → chunk-GIP47CQ4.js} +5 -5
  16. package/dist/{chunk-3R5MIUGK.js → chunk-LJ6T2BOT.js} +5 -5
  17. package/dist/{chunk-BL6J3WTY.js → chunk-LJJRFSMO.js} +5 -5
  18. package/dist/chunk-LWJT6EL5.js +27 -0
  19. package/dist/{chunk-VYQWNWBL.js → chunk-NUJNCHJZ.js} +8 -8
  20. package/dist/{chunk-YU3N5MWB.js → chunk-PWHLRKOF.js} +8 -8
  21. package/dist/{chunk-6I574ZIF.js → chunk-U2URCEW5.js} +26 -26
  22. package/dist/{chunk-7G7FICFI.js → chunk-VXUA6PHH.js} +7 -7
  23. package/dist/{chunk-7ZY357OA.js → chunk-WKKMDPTL.js} +6 -6
  24. package/dist/{chunk-WXRTT6AT.js → chunk-XLPPGCBH.js} +8 -8
  25. package/dist/{chunk-O3FLU6UD.js → chunk-XP7WVNLW.js} +8 -8
  26. package/dist/{chunk-NSA7BFND.js → chunk-YQ4BHVLI.js} +5 -5
  27. package/dist/{chunk-FUVIRDZG.js → chunk-ZNGIGXXJ.js} +8 -8
  28. package/dist/cli/checkUnsupportedDataProxy.js +20 -21
  29. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +20 -21
  30. package/dist/cli/getSchema.d.ts +6 -8
  31. package/dist/cli/getSchema.js +5 -9
  32. package/dist/cli/hashes.js +4 -7
  33. package/dist/cli/schemaContext.js +20 -21
  34. package/dist/engine-commands/errorHelpers.js +4 -4
  35. package/dist/engine-commands/formatSchema.js +19 -20
  36. package/dist/engine-commands/getConfig.js +10 -10
  37. package/dist/engine-commands/getDmmf.js +7 -7
  38. package/dist/engine-commands/index.js +28 -29
  39. package/dist/engine-commands/lintSchema.js +8 -8
  40. package/dist/engine-commands/mergeSchemas.js +7 -7
  41. package/dist/engine-commands/validate.js +7 -7
  42. package/dist/get-generators/getGenerators.js +22 -23
  43. package/dist/getPackedPackage.js +5 -6
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +48 -50
  46. package/dist/migrateTypes.d.ts +10 -0
  47. package/dist/resolvePkg.js +2 -3
  48. package/dist/utils/getEnvPaths.js +4 -6
  49. package/dist/utils/getVersionFromPackageJson.js +3 -3
  50. package/dist/utils/loadEnvFile.js +5 -7
  51. package/dist/wasm.js +5 -5
  52. package/package.json +13 -13
  53. package/dist/chunk-PSFQKG2Q.js +0 -6291
  54. package/dist/chunk-QS3WUGE3.js +0 -341
@@ -57,6 +57,12 @@ export declare namespace MigrateTypes {
57
57
  * Description of the lockfile, which may or may not exist.
58
58
  */
59
59
  lockfile: MigrationLockfile;
60
+ /**
61
+ * An init script that will be run on the shadow database before the migrations are applied.
62
+ * Useful in combination with external tables. Can be empty.
63
+ * Set via `migrations.initShadowDb` in `prisma.config.ts`.
64
+ */
65
+ shadowDbInitScript: string;
60
66
  /**
61
67
  * Description of the migration directories.
62
68
  */
@@ -73,6 +79,10 @@ export declare namespace MigrateTypes {
73
79
  files: SchemaContainer[];
74
80
  configDir: string;
75
81
  };
82
+ type SchemaFilter = {
83
+ externalTables: string[];
84
+ externalEnums: string[];
85
+ };
76
86
  type UrlContainer = {
77
87
  url: string;
78
88
  };
@@ -18,9 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var resolvePkg_exports = {};
20
20
  __export(resolvePkg_exports, {
21
- resolvePkg: () => import_chunk_MY5KA4VU.resolvePkg
21
+ resolvePkg: () => import_chunk_67I7CEQJ.resolvePkg
22
22
  });
23
23
  module.exports = __toCommonJS(resolvePkg_exports);
24
- var import_chunk_MY5KA4VU = require("./chunk-MY5KA4VU.js");
25
- var import_chunk_QS3WUGE3 = require("./chunk-QS3WUGE3.js");
24
+ var import_chunk_67I7CEQJ = require("./chunk-67I7CEQJ.js");
26
25
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
@@ -18,15 +18,13 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var getEnvPaths_exports = {};
20
20
  __export(getEnvPaths_exports, {
21
- getEnvPaths: () => import_chunk_WXRTT6AT.getEnvPaths
21
+ getEnvPaths: () => import_chunk_XLPPGCBH.getEnvPaths
22
22
  });
23
23
  module.exports = __toCommonJS(getEnvPaths_exports);
24
- var import_chunk_WXRTT6AT = require("../chunk-WXRTT6AT.js");
24
+ var import_chunk_XLPPGCBH = require("../chunk-XLPPGCBH.js");
25
25
  var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
26
- var import_chunk_ZCBEMBHR = require("../chunk-ZCBEMBHR.js");
26
+ var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
27
27
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
28
28
  var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
29
- var import_chunk_PSFQKG2Q = require("../chunk-PSFQKG2Q.js");
30
- var import_chunk_UZTXEBTM = require("../chunk-UZTXEBTM.js");
31
- var import_chunk_QS3WUGE3 = require("../chunk-QS3WUGE3.js");
29
+ var import_chunk_LWJT6EL5 = require("../chunk-LWJT6EL5.js");
32
30
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,9 +18,9 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var getVersionFromPackageJson_exports = {};
20
20
  __export(getVersionFromPackageJson_exports, {
21
- version: () => import_chunk_67Y3H3QN.version
21
+ version: () => import_chunk_AZZVNSJU.version
22
22
  });
23
23
  module.exports = __toCommonJS(getVersionFromPackageJson_exports);
24
- var import_chunk_67Y3H3QN = require("../chunk-67Y3H3QN.js");
25
- var import_chunk_7ZY357OA = require("../chunk-7ZY357OA.js");
24
+ var import_chunk_AZZVNSJU = require("../chunk-AZZVNSJU.js");
25
+ var import_chunk_WKKMDPTL = require("../chunk-WKKMDPTL.js");
26
26
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
@@ -18,16 +18,14 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var loadEnvFile_exports = {};
20
20
  __export(loadEnvFile_exports, {
21
- loadEnvFile: () => import_chunk_7G7FICFI.loadEnvFile
21
+ loadEnvFile: () => import_chunk_VXUA6PHH.loadEnvFile
22
22
  });
23
23
  module.exports = __toCommonJS(loadEnvFile_exports);
24
- var import_chunk_7G7FICFI = require("../chunk-7G7FICFI.js");
25
- var import_chunk_WXRTT6AT = require("../chunk-WXRTT6AT.js");
24
+ var import_chunk_VXUA6PHH = require("../chunk-VXUA6PHH.js");
25
+ var import_chunk_XLPPGCBH = require("../chunk-XLPPGCBH.js");
26
26
  var import_chunk_3FP46GUV = require("../chunk-3FP46GUV.js");
27
- var import_chunk_ZCBEMBHR = require("../chunk-ZCBEMBHR.js");
27
+ var import_chunk_EYVG6XQS = require("../chunk-EYVG6XQS.js");
28
28
  var import_chunk_PG5FDKSF = require("../chunk-PG5FDKSF.js");
29
29
  var import_chunk_T2PM5TKT = require("../chunk-T2PM5TKT.js");
30
- var import_chunk_PSFQKG2Q = require("../chunk-PSFQKG2Q.js");
31
- var import_chunk_UZTXEBTM = require("../chunk-UZTXEBTM.js");
32
- var import_chunk_QS3WUGE3 = require("../chunk-QS3WUGE3.js");
30
+ var import_chunk_LWJT6EL5 = require("../chunk-LWJT6EL5.js");
33
31
  var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");
package/dist/wasm.js CHANGED
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var wasm_exports = {};
20
20
  __export(wasm_exports, {
21
- prismaSchemaWasm: () => import_chunk_HCLB23CV.prismaSchemaWasm,
22
- prismaSchemaWasmVersion: () => import_chunk_HCLB23CV.prismaSchemaWasmVersion,
23
- schemaEngineWasmVersion: () => import_chunk_HCLB23CV.schemaEngineWasmVersion
21
+ prismaSchemaWasm: () => import_chunk_YQ4BHVLI.prismaSchemaWasm,
22
+ prismaSchemaWasmVersion: () => import_chunk_YQ4BHVLI.prismaSchemaWasmVersion,
23
+ schemaEngineWasmVersion: () => import_chunk_YQ4BHVLI.schemaEngineWasmVersion
24
24
  });
25
25
  module.exports = __toCommonJS(wasm_exports);
26
- var import_chunk_HCLB23CV = require("./chunk-HCLB23CV.js");
27
- var import_chunk_7ZY357OA = require("./chunk-7ZY357OA.js");
26
+ var import_chunk_YQ4BHVLI = require("./chunk-YQ4BHVLI.js");
27
+ var import_chunk_WKKMDPTL = require("./chunk-WKKMDPTL.js");
28
28
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
29
29
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/internals",
3
- "version": "6.13.0-dev.3",
3
+ "version": "6.13.0-dev.31",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -72,20 +72,20 @@
72
72
  "yarn": "1.22.22"
73
73
  },
74
74
  "dependencies": {
75
- "@prisma/prisma-schema-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
76
- "@prisma/schema-engine-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
75
+ "@prisma/prisma-schema-wasm": "6.13.0-35.361e86d0ea4987e9f53a565309b3eed797a6bcbd",
76
+ "@prisma/schema-engine-wasm": "6.13.0-35.361e86d0ea4987e9f53a565309b3eed797a6bcbd",
77
77
  "arg": "5.0.2",
78
78
  "prompts": "2.4.2",
79
- "@prisma/config": "6.13.0-dev.3",
80
- "@prisma/debug": "6.13.0-dev.3",
81
- "@prisma/dmmf": "6.13.0-dev.3",
82
- "@prisma/engines": "6.13.0-dev.3",
83
- "@prisma/fetch-engine": "6.13.0-dev.3",
84
- "@prisma/driver-adapter-utils": "6.13.0-dev.3",
85
- "@prisma/generator": "6.13.0-dev.3",
86
- "@prisma/get-platform": "6.13.0-dev.3",
87
- "@prisma/generator-helper": "6.13.0-dev.3",
88
- "@prisma/schema-files-loader": "6.13.0-dev.3"
79
+ "@prisma/config": "6.13.0-dev.31",
80
+ "@prisma/debug": "6.13.0-dev.31",
81
+ "@prisma/driver-adapter-utils": "6.13.0-dev.31",
82
+ "@prisma/dmmf": "6.13.0-dev.31",
83
+ "@prisma/fetch-engine": "6.13.0-dev.31",
84
+ "@prisma/engines": "6.13.0-dev.31",
85
+ "@prisma/get-platform": "6.13.0-dev.31",
86
+ "@prisma/generator": "6.13.0-dev.31",
87
+ "@prisma/schema-files-loader": "6.13.0-dev.31",
88
+ "@prisma/generator-helper": "6.13.0-dev.31"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "typescript": ">=5.1.0"