prisma 6.5.0-integration-fix-use-webcrypto.1 → 6.5.0-integration-fix-use-webcrypto.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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "6.5.0-integration-fix-use-webcrypto.1",
2
+ "version": "6.5.0-integration-fix-use-webcrypto.3",
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": "6f328f06df9e115abb75e6dcab2fb69f9c54ec3b"
44
+ "prismaCommit": "f6c0552b1150a5e21cb7e95287057480ccf5f5d5"
45
45
  },
46
46
  "files": [
47
47
  "README.md",
@@ -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.1",
116
- "@prisma/client": "6.5.0-integration-fix-use-webcrypto.1",
117
- "@prisma/config": "6.5.0-integration-fix-use-webcrypto.1",
118
- "@prisma/debug": "6.5.0-integration-fix-use-webcrypto.1",
119
- "@prisma/fetch-engine": "6.5.0-integration-fix-use-webcrypto.1",
120
- "@prisma/generator-helper": "6.5.0-integration-fix-use-webcrypto.1",
121
- "@prisma/get-platform": "6.5.0-integration-fix-use-webcrypto.1",
122
- "@prisma/migrate": "6.5.0-integration-fix-use-webcrypto.1",
123
- "@prisma/internals": "6.5.0-integration-fix-use-webcrypto.1"
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"
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.1"
128
+ "@prisma/engines": "6.5.0-integration-fix-use-webcrypto.3"
129
129
  },
130
130
  "optionalDependencies": {
131
131
  "fsevents": "2.3.3"
@@ -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.1",
3061
+ version: "6.5.0-integration-fix-use-webcrypto.3",
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",
@@ -4606,7 +4606,6 @@ function getMappings(mappings, datamodel) {
4606
4606
  }
4607
4607
 
4608
4608
  // src/generation/generateClient.ts
4609
- var import_crypto2 = require("crypto");
4610
4609
  var import_env_paths = __toESM(require_env_paths());
4611
4610
  var import_fs2 = require("fs");
4612
4611
  var import_promises = __toESM(require("fs/promises"));
@@ -7408,7 +7407,6 @@ function fluentWrapperName(modelName) {
7408
7407
 
7409
7408
  // src/generation/TSClient/TSClient.ts
7410
7409
  var import_ci_info = __toESM(require_ci_info());
7411
- var import_crypto = __toESM(require("crypto"));
7412
7410
  var import_indent_string8 = __toESM(require_indent_string());
7413
7411
  var import_path4 = __toESM(require("path"));
7414
7412
 
@@ -9152,7 +9150,7 @@ var TSClient = class {
9152
9150
  const clientEngineType = getClientEngineType(generator);
9153
9151
  generator.config.engineType = clientEngineType;
9154
9152
  const binaryTargets = clientEngineType === "library" /* Library */ ? Object.keys(binaryPaths.libqueryEngine ?? {}) : Object.keys(binaryPaths.queryEngine ?? {});
9155
- const inlineSchemaHash = import_crypto.default.createHash("sha256").update(Buffer.from(inlineSchema, "utf8").toString("base64")).digest("hex");
9153
+ const inlineSchemaHash = globalThis.crypto.createHash("sha256").update(Buffer.from(inlineSchema, "utf8").toString("base64")).digest("hex");
9156
9154
  const datasourceFilePath = datasources[0].sourceFilePath;
9157
9155
  const config = {
9158
9156
  generator,
@@ -9301,7 +9299,7 @@ ${modelAndTypes.map((model) => model.toTS()).join("\n")}
9301
9299
  ${prismaEnums?.join("\n\n")}
9302
9300
  ${fieldRefs.length > 0 ? `
9303
9301
  /**
9304
- * Field references
9302
+ * Field references
9305
9303
  */
9306
9304
 
9307
9305
  ${fieldRefs.join("\n\n")}` : ""}
@@ -9315,7 +9313,7 @@ ${this.dmmf.inputObjectTypes.prisma?.reduce((acc, inputType) => {
9315
9313
  const innerName = needsGeneric ? `${inputType.name}Base<$PrismaModel>` : `${inputType.name}Base`;
9316
9314
  const typeName = needsGeneric ? `${inputType.name}<$PrismaModel = never>` : inputType.name;
9317
9315
  const baseName = `Required<${innerName}>`;
9318
- acc.push(`export type ${typeName} =
9316
+ acc.push(`export type ${typeName} =
9319
9317
  | PatchUndefined<
9320
9318
  Either<${baseName}, Exclude<keyof ${baseName}, 'path'>>,
9321
9319
  ${baseName}
@@ -9385,7 +9383,7 @@ class PrismaClient {
9385
9383
  } else {
9386
9384
  message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime.prettyName + '\`).'
9387
9385
  }
9388
-
9386
+
9389
9387
  message += \`
9390
9388
  If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report\`
9391
9389
 
@@ -10244,7 +10242,7 @@ async function deleteOutputDir(outputDir) {
10244
10242
  }
10245
10243
  }
10246
10244
  function getUniquePackageName(datamodel) {
10247
- const hash = (0, import_crypto2.createHash)("sha256");
10245
+ const hash = globalThis.crypto.createHash("sha256");
10248
10246
  hash.write(datamodel);
10249
10247
  return `${GENERATED_PACKAGE_NAME_PREFIX}${hash.digest().toString("hex")}`;
10250
10248
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client",
3
- "version": "6.5.0-integration-fix-use-webcrypto.1",
3
+ "version": "6.5.0-integration-fix-use-webcrypto.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",