@prisma/client 6.3.0-integration-fix-subcommands-esm-projects.3 → 6.3.0-integration-studio-ux-refinements.3

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.
@@ -33,18 +33,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/@prisma+engines-version@6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e/node_modules/@prisma/engines-version/package.json
36
+ // ../../node_modules/.pnpm/@prisma+engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0/node_modules/@prisma/engines-version/package.json
37
37
  var require_package = __commonJS({
38
- "../../node_modules/.pnpm/@prisma+engines-version@6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
38
+ "../../node_modules/.pnpm/@prisma+engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
39
39
  module2.exports = {
40
40
  name: "@prisma/engines-version",
41
- version: "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
41
+ version: "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
42
42
  main: "index.js",
43
43
  types: "index.d.ts",
44
44
  license: "Apache-2.0",
45
45
  author: "Tim Suchanek <suchanek@prisma.io>",
46
46
  prisma: {
47
- enginesVersion: "eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e"
47
+ enginesVersion: "acc0b9dd43eb689cbd20c9470515d719db10d0b0"
48
48
  },
49
49
  repository: {
50
50
  type: "git",
@@ -66,9 +66,9 @@ var require_package = __commonJS({
66
66
  }
67
67
  });
68
68
 
69
- // ../../node_modules/.pnpm/@prisma+engines-version@6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e/node_modules/@prisma/engines-version/index.js
69
+ // ../../node_modules/.pnpm/@prisma+engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0/node_modules/@prisma/engines-version/index.js
70
70
  var require_engines_version = __commonJS({
71
- "../../node_modules/.pnpm/@prisma+engines-version@6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e/node_modules/@prisma/engines-version/index.js"(exports2) {
71
+ "../../node_modules/.pnpm/@prisma+engines-version@6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0/node_modules/@prisma/engines-version/index.js"(exports2) {
72
72
  "use strict";
73
73
  Object.defineProperty(exports2, "__esModule", { value: true });
74
74
  exports2.enginesVersion = void 0;
@@ -3946,7 +3946,7 @@ var require_package2 = __commonJS({
3946
3946
  "package.json"(exports2, module2) {
3947
3947
  module2.exports = {
3948
3948
  name: "@prisma/client",
3949
- version: "6.3.0-integration-fix-subcommands-esm-projects.3",
3949
+ version: "6.3.0-integration-studio-ux-refinements.3",
3950
3950
  description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
3951
3951
  keywords: [
3952
3952
  "ORM",
@@ -4145,7 +4145,7 @@ var require_package2 = __commonJS({
4145
4145
  "@prisma/debug": "workspace:*",
4146
4146
  "@prisma/driver-adapter-utils": "workspace:*",
4147
4147
  "@prisma/engines": "workspace:*",
4148
- "@prisma/engines-version": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
4148
+ "@prisma/engines-version": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
4149
4149
  "@prisma/fetch-engine": "workspace:*",
4150
4150
  "@prisma/generator-helper": "workspace:*",
4151
4151
  "@prisma/get-platform": "workspace:*",
@@ -4154,10 +4154,11 @@ var require_package2 = __commonJS({
4154
4154
  "@prisma/migrate": "workspace:*",
4155
4155
  "@prisma/mini-proxy": "0.9.5",
4156
4156
  "@prisma/pg-worker": "workspace:*",
4157
- "@prisma/query-engine-wasm": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
4157
+ "@prisma/query-compiler-wasm": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
4158
+ "@prisma/query-engine-wasm": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
4158
4159
  "@snaplet/copycat": "0.17.3",
4159
4160
  "@swc-node/register": "1.10.9",
4160
- "@swc/core": "1.10.1",
4161
+ "@swc/core": "1.10.9",
4161
4162
  "@swc/jest": "0.2.37",
4162
4163
  "@timsuchanek/copy": "1.4.5",
4163
4164
  "@types/debug": "4.1.12",
@@ -4198,7 +4199,7 @@ var require_package2 = __commonJS({
4198
4199
  pg: "8.11.5",
4199
4200
  "pkg-up": "3.1.0",
4200
4201
  pluralize: "8.0.0",
4201
- resolve: "1.22.8",
4202
+ resolve: "1.22.10",
4202
4203
  rimraf: "3.0.2",
4203
4204
  "simple-statistics": "7.8.7",
4204
4205
  "sort-keys": "4.2.0",
@@ -4208,19 +4209,23 @@ var require_package2 = __commonJS({
4208
4209
  "strip-ansi": "6.0.1",
4209
4210
  "strip-indent": "3.0.0",
4210
4211
  "ts-node": "10.9.2",
4211
- "ts-pattern": "5.6.0",
4212
+ "ts-pattern": "5.6.2",
4212
4213
  tsd: "0.31.2",
4213
4214
  typescript: "5.4.5",
4214
- undici: "7.2.1",
4215
+ undici: "7.2.3",
4215
4216
  wrangler: "3.91.0",
4216
4217
  zx: "7.2.3"
4217
4218
  },
4218
4219
  peerDependencies: {
4219
- prisma: "*"
4220
+ prisma: "*",
4221
+ typescript: ">=5.1.0"
4220
4222
  },
4221
4223
  peerDependenciesMeta: {
4222
4224
  prisma: {
4223
4225
  optional: true
4226
+ },
4227
+ typescript: {
4228
+ optional: true
4224
4229
  }
4225
4230
  },
4226
4231
  sideEffects: false
@@ -8586,6 +8591,32 @@ config.runtimeDataModel = JSON.parse(${JSON.stringify(datamodelString)})
8586
8591
  defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
8587
8592
  }
8588
8593
 
8594
+ // src/generation/utils/buildGetQueryCompilerWasmModule.ts
8595
+ function buildQueryCompilerWasmModule(wasm, copyCompiler, runtimeNameJs) {
8596
+ if (copyCompiler && runtimeNameJs === "client") {
8597
+ return `config.compilerWasm = {
8598
+ getRuntime: () => require('./query_compiler_bg.js'),
8599
+ getQueryCompilerWasmModule: async () => {
8600
+ const queryCompilerWasmFilePath = require('path').join(config.dirname, 'query_compiler_bg.wasm')
8601
+ const queryCompilerWasmFileBytes = require('fs').readFileSync(queryCompilerWasmFilePath)
8602
+
8603
+ return new WebAssembly.Module(queryCompilerWasmFileBytes)
8604
+ }
8605
+ }`;
8606
+ }
8607
+ if (copyCompiler && runtimeNameJs === "client" && wasm === true) {
8608
+ return `config.compilerWasm = {
8609
+ getRuntime: () => require('./query_compiler_bg.js'),
8610
+ getQueryCompilerWasmModule: async () => {
8611
+ const loader = (await import('#wasm-compiler-loader')).default
8612
+ const compiler = (await loader).default
8613
+ return compiler
8614
+ }
8615
+ }`;
8616
+ }
8617
+ return `config.compilerWasm = undefined`;
8618
+ }
8619
+
8589
8620
  // src/generation/utils/buildGetQueryEngineWasmModule.ts
8590
8621
  function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
8591
8622
  if (copyEngine && runtimeNameJs === "library" && process.env.PRISMA_CLIENT_FORCE_WASM) {
@@ -9918,7 +9949,7 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
9918
9949
  timeout ?= 5000
9919
9950
  `)
9920
9951
  );
9921
- if (this.runtimeNameTs === "library.js" && this.context.isPreviewFeatureOn("driverAdapters")) {
9952
+ if (["library.js", "client.js"].includes(this.runtimeNameTs) && this.context.isPreviewFeatureOn("driverAdapters")) {
9922
9953
  clientOptions.add(
9923
9954
  property("adapter", unionType([namedType("runtime.DriverAdapter"), namedType("null")])).optional().setDocComment(
9924
9955
  docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`")
@@ -10021,6 +10052,7 @@ const config = ${JSON.stringify(config, null, 2)}
10021
10052
  ${buildDirname(edge, relativeOutdir)}
10022
10053
  ${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
10023
10054
  ${buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs)}
10055
+ ${buildQueryCompilerWasmModule(wasm, copyEngine, runtimeNameJs)}
10024
10056
  ${buildInjectableEdgeEnv(edge, datasources)}
10025
10057
  ${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
10026
10058
  ${buildDebugInitialization(edge)}
@@ -10611,14 +10643,20 @@ async function buildClient({
10611
10643
  }
10612
10644
  const usesWasmRuntime = generator.previewFeatures.includes("driverAdapters");
10613
10645
  if (usesWasmRuntime) {
10646
+ const usesClientEngine = clientEngineType === "client" /* Client */;
10614
10647
  fileMap["default.js"] = JS(trampolineTsClient);
10615
10648
  fileMap["default.d.ts"] = TS(trampolineTsClient);
10616
- fileMap["wasm-worker-loader.mjs"] = `export default import('./query_engine_bg.wasm')`;
10617
- fileMap["wasm-edge-light-loader.mjs"] = `export default import('./query_engine_bg.wasm?module')`;
10649
+ if (usesClientEngine) {
10650
+ fileMap["wasm-worker-loader.mjs"] = `export default import('./query_compiler_bg.wasm')`;
10651
+ fileMap["wasm-edge-light-loader.mjs"] = `export default import('./query_compiler_bg.wasm?module')`;
10652
+ } else {
10653
+ fileMap["wasm-worker-loader.mjs"] = `export default import('./query_engine_bg.wasm')`;
10654
+ fileMap["wasm-edge-light-loader.mjs"] = `export default import('./query_engine_bg.wasm?module')`;
10655
+ }
10618
10656
  pkgJson["browser"] = "default.js";
10619
10657
  pkgJson["imports"] = {
10620
- // when `import('#wasm-engine-loader')` is called, it will be resolved to the correct file
10621
- "#wasm-engine-loader": {
10658
+ // when `import('#wasm-engine-loader')` or `import('#wasm-compiler-loader')` is called, it will be resolved to the correct file
10659
+ [usesClientEngine ? "#wasm-compiler-loader" : "#wasm-engine-loader"]: {
10622
10660
  // Keys reference: https://runtime-keys.proposal.wintercg.org/#keys
10623
10661
  /**
10624
10662
  * Vercel Edge Functions / Next.js Middlewares
@@ -10832,11 +10870,9 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
10832
10870
  await import_promises.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
10833
10871
  if (generator.previewFeatures.includes("driverAdapters") && isWasmEngineSupported(provider) && copyEngine && !testMode) {
10834
10872
  const suffix = provider === "postgres" ? "postgresql" : provider;
10835
- await import_promises.default.copyFile(
10836
- import_path5.default.join(runtimeDir, `query_engine_bg.${suffix}.wasm`),
10837
- import_path5.default.join(outputDir, `query_engine_bg.wasm`)
10838
- );
10839
- await import_promises.default.copyFile(import_path5.default.join(runtimeDir, `query_engine_bg.${suffix}.js`), import_path5.default.join(outputDir, `query_engine_bg.js`));
10873
+ const filename = clientEngineType === "client" /* Client */ ? "query_compiler_bg" : "query_engine_bg";
10874
+ await import_promises.default.copyFile(import_path5.default.join(runtimeDir, `${filename}.${suffix}.wasm`), import_path5.default.join(outputDir, `${filename}.wasm`));
10875
+ await import_promises.default.copyFile(import_path5.default.join(runtimeDir, `${filename}.${suffix}.js`), import_path5.default.join(outputDir, `${filename}.js`));
10840
10876
  }
10841
10877
  try {
10842
10878
  const prismaCache = (0, import_env_paths.default)("prisma").cache;
@@ -11025,7 +11061,7 @@ function getNodeRuntimeName(engineType) {
11025
11061
  'Unstable Feature: engineType="client" is in a proof of concept phase and not ready to be used publicly yet!'
11026
11062
  );
11027
11063
  }
11028
- return "library";
11064
+ return "client";
11029
11065
  }
11030
11066
  assertNever(engineType, "Unknown engine type");
11031
11067
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client",
3
- "version": "6.3.0-integration-fix-subcommands-esm-projects.3",
3
+ "version": "6.3.0-integration-studio-ux-refinements.3",
4
4
  "description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
5
5
  "keywords": [
6
6
  "ORM",
@@ -175,12 +175,13 @@
175
175
  "@opentelemetry/sdk-trace-base": "1.29.0",
176
176
  "@opentelemetry/semantic-conventions": "1.28.0",
177
177
  "@planetscale/database": "1.18.0",
178
- "@prisma/engines-version": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
178
+ "@prisma/engines-version": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
179
179
  "@prisma/mini-proxy": "0.9.5",
180
- "@prisma/query-engine-wasm": "6.3.0-16.eb5bc5493ac383a8fe3c3e7fabfc93e4d44ca21e",
180
+ "@prisma/query-compiler-wasm": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
181
+ "@prisma/query-engine-wasm": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
181
182
  "@snaplet/copycat": "0.17.3",
182
183
  "@swc-node/register": "1.10.9",
183
- "@swc/core": "1.10.1",
184
+ "@swc/core": "1.10.9",
184
185
  "@swc/jest": "0.2.37",
185
186
  "@timsuchanek/copy": "1.4.5",
186
187
  "@types/debug": "4.1.12",
@@ -221,7 +222,7 @@
221
222
  "pg": "8.11.5",
222
223
  "pkg-up": "3.1.0",
223
224
  "pluralize": "8.0.0",
224
- "resolve": "1.22.8",
225
+ "resolve": "1.22.10",
225
226
  "rimraf": "3.0.2",
226
227
  "simple-statistics": "7.8.7",
227
228
  "sort-keys": "4.2.0",
@@ -231,35 +232,39 @@
231
232
  "strip-ansi": "6.0.1",
232
233
  "strip-indent": "3.0.0",
233
234
  "ts-node": "10.9.2",
234
- "ts-pattern": "5.6.0",
235
+ "ts-pattern": "5.6.2",
235
236
  "tsd": "0.31.2",
236
237
  "typescript": "5.4.5",
237
- "undici": "7.2.1",
238
+ "undici": "7.2.3",
238
239
  "wrangler": "3.91.0",
239
240
  "zx": "7.2.3",
240
- "@prisma/adapter-d1": "6.3.0-integration-fix-subcommands-esm-projects.3",
241
- "@prisma/adapter-libsql": "6.3.0-integration-fix-subcommands-esm-projects.3",
242
- "@prisma/adapter-neon": "6.3.0-integration-fix-subcommands-esm-projects.3",
243
- "@prisma/adapter-pg": "6.3.0-integration-fix-subcommands-esm-projects.3",
244
- "@prisma/adapter-planetscale": "6.3.0-integration-fix-subcommands-esm-projects.3",
245
- "@prisma/driver-adapter-utils": "6.3.0-integration-fix-subcommands-esm-projects.3",
246
- "@prisma/adapter-pg-worker": "6.3.0-integration-fix-subcommands-esm-projects.3",
247
- "@prisma/debug": "6.3.0-integration-fix-subcommands-esm-projects.3",
248
- "@prisma/engines": "6.3.0-integration-fix-subcommands-esm-projects.3",
249
- "@prisma/fetch-engine": "6.3.0-integration-fix-subcommands-esm-projects.3",
250
- "@prisma/generator-helper": "6.3.0-integration-fix-subcommands-esm-projects.3",
251
- "@prisma/get-platform": "6.3.0-integration-fix-subcommands-esm-projects.3",
252
- "@prisma/instrumentation": "6.3.0-integration-fix-subcommands-esm-projects.3",
253
- "@prisma/internals": "6.3.0-integration-fix-subcommands-esm-projects.3",
254
- "@prisma/migrate": "6.3.0-integration-fix-subcommands-esm-projects.3",
255
- "@prisma/pg-worker": "6.3.0-integration-fix-subcommands-esm-projects.3"
241
+ "@prisma/adapter-d1": "6.3.0-integration-studio-ux-refinements.3",
242
+ "@prisma/adapter-libsql": "6.3.0-integration-studio-ux-refinements.3",
243
+ "@prisma/adapter-pg": "6.3.0-integration-studio-ux-refinements.3",
244
+ "@prisma/adapter-planetscale": "6.3.0-integration-studio-ux-refinements.3",
245
+ "@prisma/adapter-pg-worker": "6.3.0-integration-studio-ux-refinements.3",
246
+ "@prisma/debug": "6.3.0-integration-studio-ux-refinements.3",
247
+ "@prisma/adapter-neon": "6.3.0-integration-studio-ux-refinements.3",
248
+ "@prisma/engines": "6.3.0-integration-studio-ux-refinements.3",
249
+ "@prisma/driver-adapter-utils": "6.3.0-integration-studio-ux-refinements.3",
250
+ "@prisma/fetch-engine": "6.3.0-integration-studio-ux-refinements.3",
251
+ "@prisma/generator-helper": "6.3.0-integration-studio-ux-refinements.3",
252
+ "@prisma/get-platform": "6.3.0-integration-studio-ux-refinements.3",
253
+ "@prisma/instrumentation": "6.3.0-integration-studio-ux-refinements.3",
254
+ "@prisma/migrate": "6.3.0-integration-studio-ux-refinements.3",
255
+ "@prisma/internals": "6.3.0-integration-studio-ux-refinements.3",
256
+ "@prisma/pg-worker": "6.3.0-integration-studio-ux-refinements.3"
256
257
  },
257
258
  "peerDependencies": {
258
- "prisma": "*"
259
+ "prisma": "*",
260
+ "typescript": ">=5.1.0"
259
261
  },
260
262
  "peerDependenciesMeta": {
261
263
  "prisma": {
262
264
  "optional": true
265
+ },
266
+ "typescript": {
267
+ "optional": true
263
268
  }
264
269
  },
265
270
  "sideEffects": false,