prisma 6.12.0-dev.4 → 6.12.0-dev.40

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 (56) hide show
  1. package/build/index.js +679 -791
  2. package/build/prisma_schema_build_bg.wasm +0 -0
  3. package/build/query_compiler_bg.cockroachdb.mjs +2 -0
  4. package/build/query_compiler_bg.cockroachdb.wasm +0 -0
  5. package/build/query_compiler_bg.mysql.mjs +2 -0
  6. package/build/query_compiler_bg.mysql.wasm +0 -0
  7. package/build/query_compiler_bg.postgresql.mjs +2 -0
  8. package/build/query_compiler_bg.postgresql.wasm +0 -0
  9. package/build/query_compiler_bg.sqlite.mjs +2 -0
  10. package/build/query_compiler_bg.sqlite.wasm +0 -0
  11. package/build/query_compiler_bg.sqlserver.mjs +2 -0
  12. package/build/query_compiler_bg.sqlserver.wasm +0 -0
  13. package/build/query_engine_bg.cockroachdb.mjs +2 -0
  14. package/build/query_engine_bg.cockroachdb.wasm +0 -0
  15. package/build/query_engine_bg.mysql.mjs +2 -0
  16. package/build/query_engine_bg.mysql.wasm +0 -0
  17. package/build/query_engine_bg.postgresql.mjs +2 -0
  18. package/build/query_engine_bg.postgresql.wasm +0 -0
  19. package/build/query_engine_bg.sqlite.mjs +2 -0
  20. package/build/query_engine_bg.sqlite.wasm +0 -0
  21. package/build/query_engine_bg.sqlserver.mjs +2 -0
  22. package/build/query_engine_bg.sqlserver.wasm +0 -0
  23. package/build/schema_engine_bg.wasm +0 -0
  24. package/package.json +15 -15
  25. package/prisma-client/generator-build/index.js +47 -43
  26. package/prisma-client/package.json +11 -7
  27. package/prisma-client/runtime/binary.js +68 -68
  28. package/prisma-client/runtime/binary.js.map +7 -0
  29. package/prisma-client/runtime/binary.mjs +66 -66
  30. package/prisma-client/runtime/binary.mjs.map +7 -0
  31. package/prisma-client/runtime/client.js +31 -31
  32. package/prisma-client/runtime/client.js.map +7 -0
  33. package/prisma-client/runtime/client.mjs +33 -33
  34. package/prisma-client/runtime/client.mjs.map +7 -0
  35. package/prisma-client/runtime/edge-esm.js +18 -18
  36. package/prisma-client/runtime/edge-esm.js.map +7 -0
  37. package/prisma-client/runtime/edge.js +18 -18
  38. package/prisma-client/runtime/edge.js.map +7 -0
  39. package/prisma-client/runtime/index-browser.js.map +7 -0
  40. package/prisma-client/runtime/library.js +42 -42
  41. package/prisma-client/runtime/library.js.map +7 -0
  42. package/prisma-client/runtime/library.mjs +42 -42
  43. package/prisma-client/runtime/library.mjs.map +7 -0
  44. package/prisma-client/runtime/query_engine_bg.cockroachdb.js +2 -2
  45. package/prisma-client/runtime/query_engine_bg.cockroachdb.mjs +1 -1
  46. package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
  47. package/prisma-client/runtime/query_engine_bg.mysql.mjs +1 -1
  48. package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
  49. package/prisma-client/runtime/query_engine_bg.postgresql.mjs +1 -1
  50. package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
  51. package/prisma-client/runtime/query_engine_bg.sqlite.mjs +1 -1
  52. package/prisma-client/runtime/query_engine_bg.sqlserver.js +2 -2
  53. package/prisma-client/runtime/query_engine_bg.sqlserver.mjs +1 -1
  54. package/prisma-client/runtime/react-native.js +12 -12
  55. package/prisma-client/runtime/react-native.js.map +7 -0
  56. package/prisma-client/scripts/default-index.js +3 -3
@@ -4515,18 +4515,18 @@ var require_common_path_prefix = __commonJS({
4515
4515
  }
4516
4516
  });
4517
4517
 
4518
- // ../../node_modules/.pnpm/@prisma+engines-version@6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111/node_modules/@prisma/engines-version/package.json
4518
+ // ../../node_modules/.pnpm/@prisma+engines-version@6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc/node_modules/@prisma/engines-version/package.json
4519
4519
  var require_package = __commonJS({
4520
- "../../node_modules/.pnpm/@prisma+engines-version@6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
4520
+ "../../node_modules/.pnpm/@prisma+engines-version@6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
4521
4521
  module2.exports = {
4522
4522
  name: "@prisma/engines-version",
4523
- version: "6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111",
4523
+ version: "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
4524
4524
  main: "index.js",
4525
4525
  types: "index.d.ts",
4526
4526
  license: "Apache-2.0",
4527
4527
  author: "Tim Suchanek <suchanek@prisma.io>",
4528
4528
  prisma: {
4529
- enginesVersion: "a5cc74bb7534caae9e2bb1a396d44603dacdd111"
4529
+ enginesVersion: "8047c96bbd92db98a2abc7c9323ce77c02c89dbc"
4530
4530
  },
4531
4531
  repository: {
4532
4532
  type: "git",
@@ -4548,9 +4548,9 @@ var require_package = __commonJS({
4548
4548
  }
4549
4549
  });
4550
4550
 
4551
- // ../../node_modules/.pnpm/@prisma+engines-version@6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111/node_modules/@prisma/engines-version/index.js
4551
+ // ../../node_modules/.pnpm/@prisma+engines-version@6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc/node_modules/@prisma/engines-version/index.js
4552
4552
  var require_engines_version = __commonJS({
4553
- "../../node_modules/.pnpm/@prisma+engines-version@6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111/node_modules/@prisma/engines-version/index.js"(exports2) {
4553
+ "../../node_modules/.pnpm/@prisma+engines-version@6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc/node_modules/@prisma/engines-version/index.js"(exports2) {
4554
4554
  "use strict";
4555
4555
  Object.defineProperty(exports2, "__esModule", { value: true });
4556
4556
  exports2.enginesVersion = void 0;
@@ -6715,12 +6715,12 @@ var Cache = class {
6715
6715
  };
6716
6716
 
6717
6717
  // ../client-common/src/casing.ts
6718
- function capitalize(str) {
6719
- if (!str) return str;
6720
- return str[0].toUpperCase() + str.slice(1);
6718
+ function capitalize(self2) {
6719
+ if (self2.length === 0) return self2;
6720
+ return self2[0].toUpperCase() + self2.slice(1);
6721
6721
  }
6722
- function lowerCase(name) {
6723
- return name.substring(0, 1).toLowerCase() + name.substring(1);
6722
+ function uncapitalize(self2) {
6723
+ return self2.substring(0, 1).toLowerCase() + self2.substring(1);
6724
6724
  }
6725
6725
 
6726
6726
  // ../client-common/src/Dictionary.ts
@@ -6792,7 +6792,7 @@ function getMappings(mappings, datamodel) {
6792
6792
  return model.fields.some((f) => f.kind !== "object");
6793
6793
  }).map((mapping) => ({
6794
6794
  model: mapping.model,
6795
- plural: (0, import_pluralize.default)(lowerCase(mapping.model)),
6795
+ plural: (0, import_pluralize.default)(uncapitalize(mapping.model)),
6796
6796
  // TODO not needed anymore
6797
6797
  findUnique: mapping.findUnique || mapping.findSingle,
6798
6798
  findUniqueOrThrow: mapping.findUniqueOrThrow,
@@ -7542,7 +7542,7 @@ var import_pkg_up = __toESM(require_pkg_up());
7542
7542
  // package.json
7543
7543
  var package_default = {
7544
7544
  name: "@prisma/client",
7545
- version: "6.12.0-dev.4",
7545
+ version: "6.12.0-dev.40",
7546
7546
  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.",
7547
7547
  keywords: [
7548
7548
  "ORM",
@@ -7634,6 +7634,10 @@ var package_default = {
7634
7634
  },
7635
7635
  "./runtime/client": {
7636
7636
  types: "./runtime/client.d.ts",
7637
+ node: {
7638
+ require: "./runtime/client.js",
7639
+ default: "./runtime/client.js"
7640
+ },
7637
7641
  require: "./runtime/client.js",
7638
7642
  import: "./runtime/client.mjs",
7639
7643
  default: "./runtime/client.mjs"
@@ -7727,7 +7731,6 @@ var package_default = {
7727
7731
  files: [
7728
7732
  "README.md",
7729
7733
  "runtime",
7730
- "!runtime/*.map",
7731
7734
  "scripts",
7732
7735
  "generator-build",
7733
7736
  "edge.js",
@@ -7782,7 +7785,7 @@ var package_default = {
7782
7785
  "@prisma/dmmf": "workspace:*",
7783
7786
  "@prisma/driver-adapter-utils": "workspace:*",
7784
7787
  "@prisma/engines": "workspace:*",
7785
- "@prisma/engines-version": "6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111",
7788
+ "@prisma/engines-version": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
7786
7789
  "@prisma/fetch-engine": "workspace:*",
7787
7790
  "@prisma/generator": "workspace:*",
7788
7791
  "@prisma/generator-helper": "workspace:*",
@@ -7791,8 +7794,8 @@ var package_default = {
7791
7794
  "@prisma/internals": "workspace:*",
7792
7795
  "@prisma/migrate": "workspace:*",
7793
7796
  "@prisma/mini-proxy": "0.9.5",
7794
- "@prisma/query-compiler-wasm": "6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111",
7795
- "@prisma/query-engine-wasm": "6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111",
7797
+ "@prisma/query-compiler-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
7798
+ "@prisma/query-engine-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
7796
7799
  "@prisma/ts-builders": "workspace:*",
7797
7800
  "@snaplet/copycat": "6.0.0",
7798
7801
  "@swc-node/register": "1.10.9",
@@ -7808,8 +7811,9 @@ var package_default = {
7808
7811
  "@types/pg": "8.11.11",
7809
7812
  arg: "5.0.2",
7810
7813
  benchmark: "2.1.4",
7814
+ "cookie-es": "2.0.0",
7811
7815
  "decimal.js": "10.5.0",
7812
- esbuild: "0.25.1",
7816
+ esbuild: "0.25.5",
7813
7817
  execa: "5.1.1",
7814
7818
  "expect-type": "1.2.0",
7815
7819
  "fs-extra": "11.3.0",
@@ -7825,7 +7829,7 @@ var package_default = {
7825
7829
  kleur: "4.1.5",
7826
7830
  klona: "2.0.6",
7827
7831
  mariadb: "3.4.0",
7828
- memfs: "4.17.0",
7832
+ memfs: "4.17.2",
7829
7833
  mssql: "11.0.1",
7830
7834
  "new-github-issue-url": "0.2.1",
7831
7835
  "p-retry": "4.6.2",
@@ -9458,7 +9462,7 @@ const ${ctx.singular} = await ${ctx.method}({
9458
9462
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to create many ${ctx.plural}.
9459
9463
  @example
9460
9464
  // Create many ${ctx.plural}
9461
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9465
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9462
9466
  data: [
9463
9467
  // ... provide data here
9464
9468
  ]
@@ -9472,7 +9476,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9472
9476
  body: (ctx) => {
9473
9477
  const onlySelect = ctx.firstScalar ? `
9474
9478
  // Create many ${ctx.plural} and only return the \`${ctx.firstScalar.name}\`
9475
- const ${lowerCase(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
9479
+ const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
9476
9480
  select: { ${ctx.firstScalar.name}: true },
9477
9481
  data: [
9478
9482
  // ... provide data here
@@ -9482,7 +9486,7 @@ const ${lowerCase(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only
9482
9486
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to create many ${ctx.plural}.
9483
9487
  @example
9484
9488
  // Create many ${ctx.plural}
9485
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9489
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9486
9490
  data: [
9487
9491
  // ... provide data here
9488
9492
  ]
@@ -9500,7 +9504,7 @@ ${undefinedNote}
9500
9504
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
9501
9505
  @example
9502
9506
  // Get one ${ctx.singular}
9503
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9507
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9504
9508
  where: {
9505
9509
  // ... provide filter here
9506
9510
  }
@@ -9515,7 +9519,7 @@ if no matches were found.
9515
9519
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
9516
9520
  @example
9517
9521
  // Get one ${ctx.singular}
9518
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9522
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9519
9523
  where: {
9520
9524
  // ... provide filter here
9521
9525
  }
@@ -9530,7 +9534,7 @@ ${undefinedNote}
9530
9534
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
9531
9535
  @example
9532
9536
  // Get one ${ctx.singular}
9533
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9537
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9534
9538
  where: {
9535
9539
  // ... provide filter here
9536
9540
  }
@@ -9551,7 +9555,7 @@ ${undefinedNote}
9551
9555
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
9552
9556
  @example
9553
9557
  // Get one ${ctx.singular}
9554
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9558
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9555
9559
  where: {
9556
9560
  // ... provide filter here
9557
9561
  }
@@ -9569,7 +9573,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9569
9573
  body: (ctx) => {
9570
9574
  const onlySelect = ctx.firstScalar ? `
9571
9575
  // Only select the \`${ctx.firstScalar.name}\`
9572
- const ${lowerCase(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({ select: { ${ctx.firstScalar.name}: true } })` : "";
9576
+ const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({ select: { ${ctx.firstScalar.name}: true } })` : "";
9573
9577
  return `Find zero or more ${ctx.plural} that matches the filter.
9574
9578
  ${undefinedNote}
9575
9579
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to filter and select certain fields only.
@@ -9595,7 +9599,7 @@ ${onlySelect}
9595
9599
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update one ${ctx.singular}.
9596
9600
  @example
9597
9601
  // Update one ${ctx.singular}
9598
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9602
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9599
9603
  where: {
9600
9604
  // ... provide filter here
9601
9605
  },
@@ -9614,7 +9618,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9614
9618
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update or create a ${ctx.singular}.
9615
9619
  @example
9616
9620
  // Update or create a ${ctx.singular}
9617
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9621
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9618
9622
  create: {
9619
9623
  // ... data to create a ${ctx.singular}
9620
9624
  },
@@ -9708,7 +9712,7 @@ ${undefinedNote}
9708
9712
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update one or more rows.
9709
9713
  @example
9710
9714
  // Update many ${ctx.plural}
9711
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9715
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9712
9716
  where: {
9713
9717
  // ... provide filter here
9714
9718
  },
@@ -9727,7 +9731,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9727
9731
  body: (ctx) => {
9728
9732
  const onlySelect = ctx.firstScalar ? `
9729
9733
  // Update zero or more ${ctx.plural} and only return the \`${ctx.firstScalar.name}\`
9730
- const ${lowerCase(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
9734
+ const ${uncapitalize(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only = await ${ctx.method}({
9731
9735
  select: { ${ctx.firstScalar.name}: true },
9732
9736
  where: {
9733
9737
  // ... provide filter here
@@ -9740,7 +9744,7 @@ const ${lowerCase(ctx.mapping.model)}With${capitalize(ctx.firstScalar.name)}Only
9740
9744
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to update many ${ctx.plural}.
9741
9745
  @example
9742
9746
  // Update many ${ctx.plural}
9743
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9747
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9744
9748
  where: {
9745
9749
  // ... provide filter here
9746
9750
  },
@@ -9778,7 +9782,7 @@ const { count } = await ${ctx.method}({
9778
9782
  body: (ctx) => `Perform aggregation operations on a ${ctx.singular}.
9779
9783
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Select which aggregations you would like to apply.
9780
9784
  @example
9781
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9785
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9782
9786
  pipeline: [
9783
9787
  { $match: { status: "registered" } },
9784
9788
  { $group: { _id: "$country", total: { $sum: 1 } } }
@@ -9793,7 +9797,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9793
9797
  body: (ctx) => `Find zero or more ${ctx.plural} that matches the filter.
9794
9798
  @param {${getModelArgName(ctx.model.name, ctx.action)}} args - Select which filters you would like to apply.
9795
9799
  @example
9796
- const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
9800
+ const ${uncapitalize(ctx.mapping.model)} = await ${ctx.method}({
9797
9801
  filter: { age: { $gt: 25 } }
9798
9802
  })`,
9799
9803
  fields: {
@@ -9809,7 +9813,7 @@ function getMethodJSDocBody(action2, mapping, model) {
9809
9813
  singular: capitalize(mapping.model),
9810
9814
  plural: capitalize(mapping.plural),
9811
9815
  firstScalar: model.fields.find((f) => f.kind === "scalar"),
9812
- method: `prisma.${lowerCase(mapping.model)}.${action2}`,
9816
+ method: `prisma.${uncapitalize(mapping.model)}.${action2}`,
9813
9817
  action: action2,
9814
9818
  mapping,
9815
9819
  model
@@ -10020,7 +10024,7 @@ function buildModelPayload(model, context) {
10020
10024
  scalars.add(buildModelOutputProperty(field, context.dmmf));
10021
10025
  }
10022
10026
  }
10023
- const scalarsType = isComposite ? scalars : namedType("$Extensions.GetPayloadResult").addGenericArgument(scalars).addGenericArgument(namedType("ExtArgs").subKey("result").subKey(lowerCase(model.name)));
10027
+ const scalarsType = isComposite ? scalars : namedType("$Extensions.GetPayloadResult").addGenericArgument(scalars).addGenericArgument(namedType("ExtArgs").subKey("result").subKey(uncapitalize(model.name)));
10024
10028
  const payloadTypeDeclaration = typeDeclaration(
10025
10029
  getPayloadName(model.name, false),
10026
10030
  objectType().add(property("name", stringLiteral(model.name))).add(property("objects", objects)).add(property("scalars", scalarsType)).add(property("composites", composites))
@@ -10064,7 +10068,7 @@ function buildSelectType({
10064
10068
  return buildExport(typeName, selectType);
10065
10069
  }
10066
10070
  function modelResultExtensionsType(modelName) {
10067
- return extArgsParam.toArgument().subKey("result").subKey(lowerCase(modelName));
10071
+ return extArgsParam.toArgument().subKey("result").subKey(uncapitalize(modelName));
10068
10072
  }
10069
10073
  function buildScalarSelectType({ modelName, fields, context }) {
10070
10074
  const object = buildSelectOrIncludeObject(
@@ -11827,7 +11831,7 @@ function globalOmitConfig(dmmf) {
11827
11831
  const objectType2 = objectType().addMultiple(
11828
11832
  dmmf.datamodel.models.map((model) => {
11829
11833
  const type = namedType(getOmitName(model.name));
11830
- return property(lowerCase(model.name), type).optional();
11834
+ return property(uncapitalize(model.name), type).optional();
11831
11835
  })
11832
11836
  );
11833
11837
  return moduleExport(typeDeclaration("GlobalOmitConfig", objectType2));
@@ -11840,7 +11844,7 @@ function clientTypeMapModelsDefinition(context) {
11840
11844
  if (modelNames.length === 0) {
11841
11845
  meta.add(property("modelProps", neverType));
11842
11846
  } else {
11843
- meta.add(property("modelProps", unionType(modelNames.map((name) => stringLiteral(lowerCase(name))))));
11847
+ meta.add(property("modelProps", unionType(modelNames.map((name) => stringLiteral(uncapitalize(name))))));
11844
11848
  }
11845
11849
  const isolationLevel = context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma") ? namedType("Prisma.TransactionIsolationLevel") : neverType;
11846
11850
  meta.add(property("txIsolationLevel", isolationLevel));
@@ -12150,7 +12154,7 @@ var PrismaClientClass = class {
12150
12154
  * \`\`\`
12151
12155
  * const prisma = new PrismaClient()
12152
12156
  * // Fetch zero or more ${capitalize2(example.plural)}
12153
- * const ${lowerCase(example.plural)} = await prisma.${lowerCase(example.model)}.findMany()
12157
+ * const ${uncapitalize(example.plural)} = await prisma.${uncapitalize(example.model)}.findMany()
12154
12158
  * \`\`\`
12155
12159
  *
12156
12160
  *
@@ -12203,7 +12207,7 @@ ${[
12203
12207
 
12204
12208
  ${(0, import_indent_string7.default)(
12205
12209
  dmmf.mappings.modelOperations.filter((m2) => m2.findMany).map((m2) => {
12206
- let methodName = lowerCase(m2.model);
12210
+ let methodName = uncapitalize(m2.model);
12207
12211
  if (methodName === "constructor") {
12208
12212
  methodName = '["constructor"]';
12209
12213
  }
@@ -12213,7 +12217,7 @@ ${[
12213
12217
  * Example usage:
12214
12218
  * \`\`\`ts
12215
12219
  * // Fetch zero or more ${capitalize2(m2.plural)}
12216
- * const ${lowerCase(m2.plural)} = await prisma.${methodName}.findMany()
12220
+ * const ${uncapitalize(m2.plural)} = await prisma.${methodName}.findMany()
12217
12221
  * \`\`\`
12218
12222
  */
12219
12223
  get ${methodName}(): Prisma.${m2.model}Delegate<${generics.join(", ")}>;`;
@@ -13524,7 +13528,7 @@ var import_node_path3 = __toESM(require("node:path"));
13524
13528
  var import_engines_version = __toESM(require_engines_version());
13525
13529
 
13526
13530
  // ../client-generator-js/package.json
13527
- var version = "6.12.0-dev.4";
13531
+ var version = "6.12.0-dev.40";
13528
13532
 
13529
13533
  // ../client-generator-js/src/resolvePrismaClient.ts
13530
13534
  var import_promises4 = __toESM(require("node:fs/promises"));
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client",
3
- "version": "6.12.0-dev.4",
3
+ "version": "6.12.0-dev.40",
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",
@@ -92,6 +92,10 @@
92
92
  },
93
93
  "./runtime/client": {
94
94
  "types": "./runtime/client.d.ts",
95
+ "node": {
96
+ "require": "./runtime/client.js",
97
+ "default": "./runtime/client.js"
98
+ },
95
99
  "require": "./runtime/client.js",
96
100
  "import": "./runtime/client.mjs",
97
101
  "default": "./runtime/client.mjs"
@@ -185,7 +189,6 @@
185
189
  "files": [
186
190
  "README.md",
187
191
  "runtime",
188
- "!runtime/*.map",
189
192
  "scripts",
190
193
  "generator-build",
191
194
  "edge.js",
@@ -240,7 +243,7 @@
240
243
  "@prisma/dmmf": "workspace:*",
241
244
  "@prisma/driver-adapter-utils": "workspace:*",
242
245
  "@prisma/engines": "workspace:*",
243
- "@prisma/engines-version": "6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111",
246
+ "@prisma/engines-version": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
244
247
  "@prisma/fetch-engine": "workspace:*",
245
248
  "@prisma/generator": "workspace:*",
246
249
  "@prisma/generator-helper": "workspace:*",
@@ -249,8 +252,8 @@
249
252
  "@prisma/internals": "workspace:*",
250
253
  "@prisma/migrate": "workspace:*",
251
254
  "@prisma/mini-proxy": "0.9.5",
252
- "@prisma/query-compiler-wasm": "6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111",
253
- "@prisma/query-engine-wasm": "6.11.0-19.a5cc74bb7534caae9e2bb1a396d44603dacdd111",
255
+ "@prisma/query-compiler-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
256
+ "@prisma/query-engine-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
254
257
  "@prisma/ts-builders": "workspace:*",
255
258
  "@snaplet/copycat": "6.0.0",
256
259
  "@swc-node/register": "1.10.9",
@@ -266,8 +269,9 @@
266
269
  "@types/pg": "8.11.11",
267
270
  "arg": "5.0.2",
268
271
  "benchmark": "2.1.4",
272
+ "cookie-es": "2.0.0",
269
273
  "decimal.js": "10.5.0",
270
- "esbuild": "0.25.1",
274
+ "esbuild": "0.25.5",
271
275
  "execa": "5.1.1",
272
276
  "expect-type": "1.2.0",
273
277
  "fs-extra": "11.3.0",
@@ -283,7 +287,7 @@
283
287
  "kleur": "4.1.5",
284
288
  "klona": "2.0.6",
285
289
  "mariadb": "3.4.0",
286
- "memfs": "4.17.0",
290
+ "memfs": "4.17.2",
287
291
  "mssql": "11.0.1",
288
292
  "new-github-issue-url": "0.2.1",
289
293
  "p-retry": "4.6.2",