prisma 6.5.0-integration-fix-use-webcrypto.3 → 6.5.0-integration-fix-use-web-crypto.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.
Binary file
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "6.5.0-integration-fix-use-webcrypto.3",
2
+ "version": "6.5.0-integration-fix-use-web-crypto.1",
3
3
  "name": "prisma",
4
4
  "description": "Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",
5
5
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  "node": ">=18.18"
42
42
  },
43
43
  "prisma": {
44
- "prismaCommit": "f6c0552b1150a5e21cb7e95287057480ccf5f5d5"
44
+ "prismaCommit": "15520c6ea580df2e61433a302a476f09f4d65441"
45
45
  },
46
46
  "files": [
47
47
  "README.md",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@antfu/ni": "0.21.12",
73
- "@inquirer/prompts": "5.0.5",
73
+ "@inquirer/prompts": "7.3.2",
74
74
  "@prisma/mini-proxy": "0.9.5",
75
75
  "@prisma/studio": "0.510.0",
76
76
  "@prisma/studio-server": "0.510.0",
@@ -112,20 +112,20 @@
112
112
  "typescript": "5.4.5",
113
113
  "xdg-app-paths": "8.3.0",
114
114
  "zx": "7.2.3",
115
- "@prisma/adapter-libsql": "6.5.0-integration-fix-use-webcrypto.3",
116
- "@prisma/debug": "6.5.0-integration-fix-use-webcrypto.3",
117
- "@prisma/client": "6.5.0-integration-fix-use-webcrypto.3",
118
- "@prisma/config": "6.5.0-integration-fix-use-webcrypto.3",
119
- "@prisma/fetch-engine": "6.5.0-integration-fix-use-webcrypto.3",
120
- "@prisma/generator-helper": "6.5.0-integration-fix-use-webcrypto.3",
121
- "@prisma/internals": "6.5.0-integration-fix-use-webcrypto.3",
122
- "@prisma/migrate": "6.5.0-integration-fix-use-webcrypto.3",
123
- "@prisma/get-platform": "6.5.0-integration-fix-use-webcrypto.3"
115
+ "@prisma/adapter-libsql": "6.5.0-integration-fix-use-web-crypto.1",
116
+ "@prisma/client": "6.5.0-integration-fix-use-web-crypto.1",
117
+ "@prisma/config": "6.5.0-integration-fix-use-web-crypto.1",
118
+ "@prisma/fetch-engine": "6.5.0-integration-fix-use-web-crypto.1",
119
+ "@prisma/debug": "6.5.0-integration-fix-use-web-crypto.1",
120
+ "@prisma/generator-helper": "6.5.0-integration-fix-use-web-crypto.1",
121
+ "@prisma/get-platform": "6.5.0-integration-fix-use-web-crypto.1",
122
+ "@prisma/internals": "6.5.0-integration-fix-use-web-crypto.1",
123
+ "@prisma/migrate": "6.5.0-integration-fix-use-web-crypto.1"
124
124
  },
125
125
  "dependencies": {
126
126
  "esbuild": ">=0.12 <1",
127
127
  "esbuild-register": "3.6.0",
128
- "@prisma/engines": "6.5.0-integration-fix-use-webcrypto.3"
128
+ "@prisma/engines": "6.5.0-integration-fix-use-web-crypto.1"
129
129
  },
130
130
  "optionalDependencies": {
131
131
  "fsevents": "2.3.3"
@@ -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.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a/node_modules/@prisma/engines-version/package.json
36
+ // ../../node_modules/.pnpm/@prisma+engines-version@6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb/node_modules/@prisma/engines-version/package.json
37
37
  var require_package = __commonJS({
38
- "../../node_modules/.pnpm/@prisma+engines-version@6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
38
+ "../../node_modules/.pnpm/@prisma+engines-version@6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
39
39
  module2.exports = {
40
40
  name: "@prisma/engines-version",
41
- version: "6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a",
41
+ version: "6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb",
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: "3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a"
47
+ enginesVersion: "84310176c3f15859928b573ea73f2c1ec30188eb"
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.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a/node_modules/@prisma/engines-version/index.js
69
+ // ../../node_modules/.pnpm/@prisma+engines-version@6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb/node_modules/@prisma/engines-version/index.js
70
70
  var require_engines_version = __commonJS({
71
- "../../node_modules/.pnpm/@prisma+engines-version@6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a/node_modules/@prisma/engines-version/index.js"(exports2) {
71
+ "../../node_modules/.pnpm/@prisma+engines-version@6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb/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;
@@ -3058,7 +3058,7 @@ var require_package2 = __commonJS({
3058
3058
  "package.json"(exports2, module2) {
3059
3059
  module2.exports = {
3060
3060
  name: "@prisma/client",
3061
- version: "6.5.0-integration-fix-use-webcrypto.3",
3061
+ version: "6.5.0-integration-fix-use-web-crypto.1",
3062
3062
  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.",
3063
3063
  keywords: [
3064
3064
  "ORM",
@@ -3244,7 +3244,7 @@ var require_package2 = __commonJS({
3244
3244
  "@codspeed/benchmark.js-plugin": "4.0.0",
3245
3245
  "@faker-js/faker": "9.5.1",
3246
3246
  "@fast-check/jest": "2.0.3",
3247
- "@inquirer/prompts": "5.0.5",
3247
+ "@inquirer/prompts": "7.3.2",
3248
3248
  "@jest/create-cache-key-function": "29.7.0",
3249
3249
  "@jest/globals": "29.7.0",
3250
3250
  "@jest/test-sequencer": "29.7.0",
@@ -3268,7 +3268,7 @@ var require_package2 = __commonJS({
3268
3268
  "@prisma/debug": "workspace:*",
3269
3269
  "@prisma/driver-adapter-utils": "workspace:*",
3270
3270
  "@prisma/engines": "workspace:*",
3271
- "@prisma/engines-version": "6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a",
3271
+ "@prisma/engines-version": "6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb",
3272
3272
  "@prisma/fetch-engine": "workspace:*",
3273
3273
  "@prisma/generator-helper": "workspace:*",
3274
3274
  "@prisma/get-platform": "workspace:*",
@@ -3277,8 +3277,8 @@ var require_package2 = __commonJS({
3277
3277
  "@prisma/migrate": "workspace:*",
3278
3278
  "@prisma/mini-proxy": "0.9.5",
3279
3279
  "@prisma/pg-worker": "workspace:*",
3280
- "@prisma/query-compiler-wasm": "6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a",
3281
- "@prisma/query-engine-wasm": "6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a",
3280
+ "@prisma/query-compiler-wasm": "6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb",
3281
+ "@prisma/query-engine-wasm": "6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb",
3282
3282
  "@snaplet/copycat": "0.17.3",
3283
3283
  "@swc-node/register": "1.10.9",
3284
3284
  "@swc/core": "1.11.5",
@@ -3335,7 +3335,7 @@ var require_package2 = __commonJS({
3335
3335
  tsd: "0.31.2",
3336
3336
  typescript: "5.4.5",
3337
3337
  undici: "7.3.0",
3338
- wrangler: "3.110.0",
3338
+ wrangler: "3.111.0",
3339
3339
  zx: "7.2.3"
3340
3340
  },
3341
3341
  peerDependencies: {
@@ -4606,6 +4606,7 @@ function getMappings(mappings, datamodel) {
4606
4606
  }
4607
4607
 
4608
4608
  // src/generation/generateClient.ts
4609
+ var import_crypto2 = require("crypto");
4609
4610
  var import_env_paths = __toESM(require_env_paths());
4610
4611
  var import_fs2 = require("fs");
4611
4612
  var import_promises = __toESM(require("fs/promises"));
@@ -7407,6 +7408,7 @@ function fluentWrapperName(modelName) {
7407
7408
 
7408
7409
  // src/generation/TSClient/TSClient.ts
7409
7410
  var import_ci_info = __toESM(require_ci_info());
7411
+ var import_crypto = __toESM(require("crypto"));
7410
7412
  var import_indent_string8 = __toESM(require_indent_string());
7411
7413
  var import_path4 = __toESM(require("path"));
7412
7414
 
@@ -9150,7 +9152,7 @@ var TSClient = class {
9150
9152
  const clientEngineType = getClientEngineType(generator);
9151
9153
  generator.config.engineType = clientEngineType;
9152
9154
  const binaryTargets = clientEngineType === "library" /* Library */ ? Object.keys(binaryPaths.libqueryEngine ?? {}) : Object.keys(binaryPaths.queryEngine ?? {});
9153
- const inlineSchemaHash = globalThis.crypto.createHash("sha256").update(Buffer.from(inlineSchema, "utf8").toString("base64")).digest("hex");
9155
+ const inlineSchemaHash = import_crypto.default.createHash("sha256").update(Buffer.from(inlineSchema, "utf8").toString("base64")).digest("hex");
9154
9156
  const datasourceFilePath = datasources[0].sourceFilePath;
9155
9157
  const config = {
9156
9158
  generator,
@@ -9299,7 +9301,7 @@ ${modelAndTypes.map((model) => model.toTS()).join("\n")}
9299
9301
  ${prismaEnums?.join("\n\n")}
9300
9302
  ${fieldRefs.length > 0 ? `
9301
9303
  /**
9302
- * Field references
9304
+ * Field references
9303
9305
  */
9304
9306
 
9305
9307
  ${fieldRefs.join("\n\n")}` : ""}
@@ -9313,7 +9315,7 @@ ${this.dmmf.inputObjectTypes.prisma?.reduce((acc, inputType) => {
9313
9315
  const innerName = needsGeneric ? `${inputType.name}Base<$PrismaModel>` : `${inputType.name}Base`;
9314
9316
  const typeName = needsGeneric ? `${inputType.name}<$PrismaModel = never>` : inputType.name;
9315
9317
  const baseName = `Required<${innerName}>`;
9316
- acc.push(`export type ${typeName} =
9318
+ acc.push(`export type ${typeName} =
9317
9319
  | PatchUndefined<
9318
9320
  Either<${baseName}, Exclude<keyof ${baseName}, 'path'>>,
9319
9321
  ${baseName}
@@ -9383,7 +9385,7 @@ class PrismaClient {
9383
9385
  } else {
9384
9386
  message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime.prettyName + '\`).'
9385
9387
  }
9386
-
9388
+
9387
9389
  message += \`
9388
9390
  If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report\`
9389
9391
 
@@ -10242,7 +10244,7 @@ async function deleteOutputDir(outputDir) {
10242
10244
  }
10243
10245
  }
10244
10246
  function getUniquePackageName(datamodel) {
10245
- const hash = globalThis.crypto.createHash("sha256");
10247
+ const hash = (0, import_crypto2.createHash)("sha256");
10246
10248
  hash.write(datamodel);
10247
10249
  return `${GENERATED_PACKAGE_NAME_PREFIX}${hash.digest().toString("hex")}`;
10248
10250
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client",
3
- "version": "6.5.0-integration-fix-use-webcrypto.3",
3
+ "version": "6.5.0-integration-fix-use-web-crypto.1",
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",
@@ -186,7 +186,7 @@
186
186
  "@codspeed/benchmark.js-plugin": "4.0.0",
187
187
  "@faker-js/faker": "9.5.1",
188
188
  "@fast-check/jest": "2.0.3",
189
- "@inquirer/prompts": "5.0.5",
189
+ "@inquirer/prompts": "7.3.2",
190
190
  "@jest/create-cache-key-function": "29.7.0",
191
191
  "@jest/globals": "29.7.0",
192
192
  "@jest/test-sequencer": "29.7.0",
@@ -210,7 +210,7 @@
210
210
  "@prisma/debug": "workspace:*",
211
211
  "@prisma/driver-adapter-utils": "workspace:*",
212
212
  "@prisma/engines": "workspace:*",
213
- "@prisma/engines-version": "6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a",
213
+ "@prisma/engines-version": "6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb",
214
214
  "@prisma/fetch-engine": "workspace:*",
215
215
  "@prisma/generator-helper": "workspace:*",
216
216
  "@prisma/get-platform": "workspace:*",
@@ -219,8 +219,8 @@
219
219
  "@prisma/migrate": "workspace:*",
220
220
  "@prisma/mini-proxy": "0.9.5",
221
221
  "@prisma/pg-worker": "workspace:*",
222
- "@prisma/query-compiler-wasm": "6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a",
223
- "@prisma/query-engine-wasm": "6.5.0-36.3f077f0c2a07647acf7cda7dc8e24e0ce3a3812a",
222
+ "@prisma/query-compiler-wasm": "6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb",
223
+ "@prisma/query-engine-wasm": "6.5.0-39.84310176c3f15859928b573ea73f2c1ec30188eb",
224
224
  "@snaplet/copycat": "0.17.3",
225
225
  "@swc-node/register": "1.10.9",
226
226
  "@swc/core": "1.11.5",
@@ -277,7 +277,7 @@
277
277
  "tsd": "0.31.2",
278
278
  "typescript": "5.4.5",
279
279
  "undici": "7.3.0",
280
- "wrangler": "3.110.0",
280
+ "wrangler": "3.111.0",
281
281
  "zx": "7.2.3"
282
282
  },
283
283
  "peerDependencies": {