prisma 6.6.0-dev.24 → 6.6.0-dev.25

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.6.0-dev.24",
2
+ "version": "6.6.0-dev.25",
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": "4f46e2ebbb422cd000b5ce4012e394933e28546e"
44
+ "prismaCommit": "73672cdf79543d0e3c701642e8b263c86e07fbce"
45
45
  },
46
46
  "files": [
47
47
  "README.md",
@@ -149,18 +149,18 @@
149
149
  "typescript": "5.4.5",
150
150
  "xdg-app-paths": "8.3.0",
151
151
  "zx": "8.4.1",
152
- "@prisma/adapter-libsql": "6.6.0-dev.24",
153
- "@prisma/client": "6.6.0-dev.24",
154
- "@prisma/debug": "6.6.0-dev.24",
155
- "@prisma/fetch-engine": "6.6.0-dev.24",
156
- "@prisma/generator-helper": "6.6.0-dev.24",
157
- "@prisma/get-platform": "6.6.0-dev.24",
158
- "@prisma/internals": "6.6.0-dev.24",
159
- "@prisma/migrate": "6.6.0-dev.24"
152
+ "@prisma/adapter-libsql": "6.6.0-dev.25",
153
+ "@prisma/debug": "6.6.0-dev.25",
154
+ "@prisma/client": "6.6.0-dev.25",
155
+ "@prisma/fetch-engine": "6.6.0-dev.25",
156
+ "@prisma/generator-helper": "6.6.0-dev.25",
157
+ "@prisma/get-platform": "6.6.0-dev.25",
158
+ "@prisma/internals": "6.6.0-dev.25",
159
+ "@prisma/migrate": "6.6.0-dev.25"
160
160
  },
161
161
  "dependencies": {
162
- "@prisma/config": "6.6.0-dev.24",
163
- "@prisma/engines": "6.6.0-dev.24"
162
+ "@prisma/config": "6.6.0-dev.25",
163
+ "@prisma/engines": "6.6.0-dev.25"
164
164
  },
165
165
  "optionalDependencies": {
166
166
  "fsevents": "2.3.3"
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
8
  var __esm = (fn, res) => function __init() {
10
9
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
11
10
  };
@@ -33,7 +32,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
32
  mod
34
33
  ));
35
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
37
35
 
38
36
  // ../../node_modules/.pnpm/@prisma+engines-version@6.6.0-19.2a9de283c7671593633f6552c90867a3e3b4a657/node_modules/@prisma/engines-version/package.json
39
37
  var require_package = __commonJS({
@@ -3060,7 +3058,7 @@ var require_package2 = __commonJS({
3060
3058
  "package.json"(exports2, module2) {
3061
3059
  module2.exports = {
3062
3060
  name: "@prisma/client",
3063
- version: "6.6.0-dev.24",
3061
+ version: "6.6.0-dev.25",
3064
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.",
3065
3063
  keywords: [
3066
3064
  "ORM",
@@ -3532,13 +3530,11 @@ var init_TypeBuilder = __esm({
3532
3530
  "src/generation/ts-builders/TypeBuilder.ts"() {
3533
3531
  "use strict";
3534
3532
  TypeBuilder = class {
3535
- constructor() {
3536
- // TODO(@SevInf): this should be replaced with precedence system that would
3537
- // automatically add parenthesis where they are needed
3538
- __publicField(this, "needsParenthesisWhenIndexed", false);
3539
- __publicField(this, "needsParenthesisInKeyof", false);
3540
- __publicField(this, "needsParenthesisInUnion", false);
3541
- }
3533
+ // TODO(@SevInf): this should be replaced with precedence system that would
3534
+ // automatically add parenthesis where they are needed
3535
+ needsParenthesisWhenIndexed = false;
3536
+ needsParenthesisInKeyof = false;
3537
+ needsParenthesisInUnion = false;
3542
3538
  subKey(key) {
3543
3539
  const { KeyType: KeyType2 } = (init_KeyType(), __toCommonJS(KeyType_exports));
3544
3540
  return new KeyType2(this, key);
@@ -4786,8 +4782,8 @@ var ConstDeclaration = class {
4786
4782
  constructor(name, type) {
4787
4783
  this.name = name;
4788
4784
  this.type = type;
4789
- __publicField(this, "docComment");
4790
4785
  }
4786
+ docComment;
4791
4787
  setDocComment(docComment2) {
4792
4788
  this.docComment = docComment2;
4793
4789
  return this;
@@ -4805,8 +4801,8 @@ function constDeclaration(name, type) {
4805
4801
 
4806
4802
  // src/generation/ts-builders/DocComment.ts
4807
4803
  var DocComment = class {
4804
+ lines = [];
4808
4805
  constructor(startingText) {
4809
- __publicField(this, "lines", []);
4810
4806
  if (startingText) {
4811
4807
  this.addText(startingText);
4812
4808
  }
@@ -4881,8 +4877,8 @@ function getIndent(line) {
4881
4877
  var Export = class {
4882
4878
  constructor(declaration) {
4883
4879
  this.declaration = declaration;
4884
- __publicField(this, "docComment");
4885
4880
  }
4881
+ docComment;
4886
4882
  setDocComment(docComment2) {
4887
4883
  this.docComment = docComment2;
4888
4884
  return this;
@@ -4911,8 +4907,8 @@ var NamespaceExport = class {
4911
4907
  var BindingsExport = class {
4912
4908
  constructor(from) {
4913
4909
  this.from = from;
4914
- __publicField(this, "namedExports", []);
4915
4910
  }
4911
+ namedExports = [];
4916
4912
  named(namedExport) {
4917
4913
  if (typeof namedExport === "string") {
4918
4914
  namedExport = new NamedExport(namedExport);
@@ -4927,8 +4923,8 @@ var BindingsExport = class {
4927
4923
  var NamedExport = class {
4928
4924
  constructor(name) {
4929
4925
  this.name = name;
4930
- __publicField(this, "alias");
4931
4926
  }
4927
+ alias;
4932
4928
  as(alias) {
4933
4929
  this.alias = alias;
4934
4930
  return this;
@@ -4960,10 +4956,8 @@ function moduleExportFrom(from) {
4960
4956
 
4961
4957
  // src/generation/ts-builders/File.ts
4962
4958
  var File = class {
4963
- constructor() {
4964
- __publicField(this, "imports", []);
4965
- __publicField(this, "declarations", []);
4966
- }
4959
+ imports = [];
4960
+ declarations = [];
4967
4961
  addImport(moduleImport2) {
4968
4962
  this.imports.push(moduleImport2);
4969
4963
  return this;
@@ -5016,15 +5010,12 @@ var neverType = new PrimitiveType("never");
5016
5010
  // src/generation/ts-builders/FunctionType.ts
5017
5011
  init_TypeBuilder();
5018
5012
  var FunctionType = class extends TypeBuilder {
5019
- constructor() {
5020
- super(...arguments);
5021
- __publicField(this, "needsParenthesisWhenIndexed", true);
5022
- __publicField(this, "needsParenthesisInKeyof", true);
5023
- __publicField(this, "needsParenthesisInUnion", true);
5024
- __publicField(this, "returnType", voidType);
5025
- __publicField(this, "parameters", []);
5026
- __publicField(this, "genericParameters", []);
5027
- }
5013
+ needsParenthesisWhenIndexed = true;
5014
+ needsParenthesisInKeyof = true;
5015
+ needsParenthesisInUnion = true;
5016
+ returnType = voidType;
5017
+ parameters = [];
5018
+ genericParameters = [];
5028
5019
  setReturnType(returnType) {
5029
5020
  this.returnType = returnType;
5030
5021
  return this;
@@ -5054,8 +5045,8 @@ var NamedType = class extends TypeBuilder {
5054
5045
  constructor(name) {
5055
5046
  super();
5056
5047
  this.name = name;
5057
- __publicField(this, "genericArguments", []);
5058
5048
  }
5049
+ genericArguments = [];
5059
5050
  addGenericArgument(type) {
5060
5051
  this.genericArguments.push(type);
5061
5052
  return this;
@@ -5075,9 +5066,9 @@ function namedType(name) {
5075
5066
  var GenericParameter = class {
5076
5067
  constructor(name) {
5077
5068
  this.name = name;
5078
- __publicField(this, "extendedType");
5079
- __publicField(this, "defaultType");
5080
5069
  }
5070
+ extendedType;
5071
+ defaultType;
5081
5072
  extends(type) {
5082
5073
  this.extendedType = type;
5083
5074
  return this;
@@ -5130,9 +5121,9 @@ var NamespaceImport = class {
5130
5121
  var BindingsImport = class {
5131
5122
  constructor(from) {
5132
5123
  this.from = from;
5133
- __publicField(this, "defaultImport");
5134
- __publicField(this, "namedImports", []);
5135
5124
  }
5125
+ defaultImport;
5126
+ namedImports = [];
5136
5127
  default(name) {
5137
5128
  this.defaultImport = name;
5138
5129
  return this;
@@ -5164,8 +5155,8 @@ var BindingsImport = class {
5164
5155
  var NamedImport = class {
5165
5156
  constructor(name) {
5166
5157
  this.name = name;
5167
- __publicField(this, "alias");
5168
5158
  }
5159
+ alias;
5169
5160
  as(alias) {
5170
5161
  this.alias = alias;
5171
5162
  return this;
@@ -5204,11 +5195,11 @@ var InterfaceDeclaration = class extends TypeBuilder {
5204
5195
  constructor(name) {
5205
5196
  super();
5206
5197
  this.name = name;
5207
- __publicField(this, "needsParenthesisWhenIndexed", true);
5208
- __publicField(this, "items", []);
5209
- __publicField(this, "genericParameters", []);
5210
- __publicField(this, "extendedTypes", []);
5211
5198
  }
5199
+ needsParenthesisWhenIndexed = true;
5200
+ items = [];
5201
+ genericParameters = [];
5202
+ extendedTypes = [];
5212
5203
  add(item) {
5213
5204
  this.items.push(item);
5214
5205
  return this;
@@ -5254,11 +5245,11 @@ function interfaceDeclaration(name) {
5254
5245
  var Method = class {
5255
5246
  constructor(name) {
5256
5247
  this.name = name;
5257
- __publicField(this, "docComment");
5258
- __publicField(this, "returnType", voidType);
5259
- __publicField(this, "parameters", []);
5260
- __publicField(this, "genericParameters", []);
5261
5248
  }
5249
+ docComment;
5250
+ returnType = voidType;
5251
+ parameters = [];
5252
+ genericParameters = [];
5262
5253
  setDocComment(docComment2) {
5263
5254
  this.docComment = docComment2;
5264
5255
  return this;
@@ -5301,8 +5292,8 @@ function method(name) {
5301
5292
  var NamespaceDeclaration = class {
5302
5293
  constructor(name) {
5303
5294
  this.name = name;
5304
- __publicField(this, "items", []);
5305
5295
  }
5296
+ items = [];
5306
5297
  add(declaration) {
5307
5298
  this.items.push(declaration);
5308
5299
  }
@@ -5321,12 +5312,9 @@ function namespace(name) {
5321
5312
  // src/generation/ts-builders/ObjectType.ts
5322
5313
  init_TypeBuilder();
5323
5314
  var ObjectType = class extends TypeBuilder {
5324
- constructor() {
5325
- super(...arguments);
5326
- __publicField(this, "needsParenthesisWhenIndexed", true);
5327
- __publicField(this, "items", []);
5328
- __publicField(this, "inline", false);
5329
- }
5315
+ needsParenthesisWhenIndexed = true;
5316
+ items = [];
5317
+ inline = false;
5330
5318
  add(item) {
5331
5319
  this.items.push(item);
5332
5320
  return this;
@@ -5370,8 +5358,8 @@ var Parameter = class {
5370
5358
  constructor(name, type) {
5371
5359
  this.name = name;
5372
5360
  this.type = type;
5373
- __publicField(this, "isOptional", false);
5374
5361
  }
5362
+ isOptional = false;
5375
5363
  optional() {
5376
5364
  this.isOptional = true;
5377
5365
  return this;
@@ -5393,10 +5381,10 @@ var Property = class {
5393
5381
  constructor(name, type) {
5394
5382
  this.name = name;
5395
5383
  this.type = type;
5396
- __publicField(this, "isOptional", false);
5397
- __publicField(this, "isReadonly", false);
5398
- __publicField(this, "docComment");
5399
5384
  }
5385
+ isOptional = false;
5386
+ isReadonly = false;
5387
+ docComment;
5400
5388
  optional() {
5401
5389
  this.isOptional = true;
5402
5390
  return this;
@@ -5440,13 +5428,13 @@ var INDENT_SIZE = 2;
5440
5428
  var Writer = class {
5441
5429
  constructor(startingIndent = 0, context) {
5442
5430
  this.context = context;
5443
- __publicField(this, "lines", []);
5444
- __publicField(this, "currentLine", "");
5445
- __publicField(this, "currentIndent", 0);
5446
- __publicField(this, "marginSymbol");
5447
- __publicField(this, "afterNextNewLineCallback");
5448
5431
  this.currentIndent = startingIndent;
5449
5432
  }
5433
+ lines = [];
5434
+ currentLine = "";
5435
+ currentIndent = 0;
5436
+ marginSymbol;
5437
+ afterNextNewLineCallback;
5450
5438
  /**
5451
5439
  * Adds provided value to the current line. Does not end the line.
5452
5440
  *
@@ -5620,8 +5608,8 @@ init_TypeBuilder();
5620
5608
  var TupleItem = class {
5621
5609
  constructor(type) {
5622
5610
  this.type = type;
5623
- __publicField(this, "name");
5624
5611
  }
5612
+ name;
5625
5613
  setName(name) {
5626
5614
  this.name = name;
5627
5615
  return this;
@@ -5634,10 +5622,7 @@ var TupleItem = class {
5634
5622
  }
5635
5623
  };
5636
5624
  var TupleType = class extends TypeBuilder {
5637
- constructor() {
5638
- super(...arguments);
5639
- __publicField(this, "items", []);
5640
- }
5625
+ items = [];
5641
5626
  add(item) {
5642
5627
  if (item instanceof TypeBuilder) {
5643
5628
  item = new TupleItem(item);
@@ -5661,9 +5646,9 @@ var TypeDeclaration = class {
5661
5646
  constructor(name, type) {
5662
5647
  this.name = name;
5663
5648
  this.type = type;
5664
- __publicField(this, "genericParameters", []);
5665
- __publicField(this, "docComment");
5666
5649
  }
5650
+ genericParameters = [];
5651
+ docComment;
5667
5652
  addGenericParameter(param) {
5668
5653
  this.genericParameters.push(param);
5669
5654
  return this;
@@ -5694,11 +5679,11 @@ function typeDeclaration(name, type) {
5694
5679
  // src/generation/ts-builders/UnionType.ts
5695
5680
  init_TypeBuilder();
5696
5681
  var UnionType = class extends TypeBuilder {
5682
+ needsParenthesisWhenIndexed = true;
5683
+ needsParenthesisInKeyof = true;
5684
+ variants;
5697
5685
  constructor(firstType) {
5698
5686
  super();
5699
- __publicField(this, "needsParenthesisWhenIndexed", true);
5700
- __publicField(this, "needsParenthesisInKeyof", true);
5701
- __publicField(this, "variants");
5702
5687
  this.variants = [firstType];
5703
5688
  }
5704
5689
  addVariant(variant) {
@@ -5983,9 +5968,9 @@ var InputType = class {
5983
5968
  constructor(type, context) {
5984
5969
  this.type = type;
5985
5970
  this.context = context;
5986
- __publicField(this, "generatedName");
5987
5971
  this.generatedName = type.name;
5988
5972
  }
5973
+ generatedName;
5989
5974
  toTS() {
5990
5975
  const { type } = this;
5991
5976
  const source = type.meta?.source;
@@ -6557,12 +6542,12 @@ var ArgsTypeBuilder = class {
6557
6542
  this.type = type;
6558
6543
  this.context = context;
6559
6544
  this.action = action;
6560
- __publicField(this, "moduleExport");
6561
- __publicField(this, "hasDefaultName", true);
6562
6545
  this.moduleExport = moduleExport(
6563
6546
  typeDeclaration(getModelArgName(type.name, action), objectType()).addGenericParameter(extArgsParam)
6564
6547
  ).setDocComment(docComment(`${type.name} ${action ?? "without action"}`));
6565
6548
  }
6549
+ moduleExport;
6550
+ hasDefaultName = true;
6566
6551
  addProperty(prop) {
6567
6552
  this.moduleExport.declaration.type.add(prop);
6568
6553
  }
@@ -6828,17 +6813,17 @@ var Model = class {
6828
6813
  constructor(model, context) {
6829
6814
  this.model = model;
6830
6815
  this.context = context;
6831
- __publicField(this, "type");
6832
- __publicField(this, "createManyAndReturnType");
6833
- __publicField(this, "updateManyAndReturnType");
6834
- __publicField(this, "mapping");
6835
- __publicField(this, "dmmf");
6836
6816
  this.dmmf = context.dmmf;
6837
6817
  this.type = this.context.dmmf.outputTypeMap.model[model.name];
6838
6818
  this.createManyAndReturnType = this.context.dmmf.outputTypeMap.model[getCreateManyAndReturnOutputType(model.name)];
6839
6819
  this.updateManyAndReturnType = this.context.dmmf.outputTypeMap.model[getUpdateManyAndReturnOutputType(model.name)];
6840
6820
  this.mapping = this.context.dmmf.mappings.modelOperations.find((m) => m.model === model.name);
6841
6821
  }
6822
+ type;
6823
+ createManyAndReturnType;
6824
+ updateManyAndReturnType;
6825
+ mapping;
6826
+ dmmf;
6842
6827
  get argsTypes() {
6843
6828
  const argsTypes = [];
6844
6829
  for (const action of Object.keys(DMMF.ModelAction)) {
@@ -7439,13 +7424,13 @@ var import_path4 = __toESM(require("path"));
7439
7424
  var DMMFHelper = class {
7440
7425
  constructor(document) {
7441
7426
  this.document = document;
7442
- __publicField(this, "_compositeNames");
7443
- __publicField(this, "_inputTypesByName");
7444
- __publicField(this, "_typeAndModelMap");
7445
- __publicField(this, "_mappingsMap");
7446
- __publicField(this, "_outputTypeMap");
7447
- __publicField(this, "_rootFieldMap");
7448
7427
  }
7428
+ _compositeNames;
7429
+ _inputTypesByName;
7430
+ _typeAndModelMap;
7431
+ _mappingsMap;
7432
+ _outputTypeMap;
7433
+ _rootFieldMap;
7449
7434
  get compositeNames() {
7450
7435
  return this._compositeNames ??= new Set(this.datamodel.types.map((t) => t.name));
7451
7436
  }
@@ -7553,9 +7538,7 @@ function fullyQualifiedName(typeName, namespace2) {
7553
7538
 
7554
7539
  // src/generation/Cache.ts
7555
7540
  var Cache = class {
7556
- constructor() {
7557
- __publicField(this, "_map", /* @__PURE__ */ new Map());
7558
- }
7541
+ _map = /* @__PURE__ */ new Map();
7559
7542
  get(key) {
7560
7543
  return this._map.get(key)?.value;
7561
7544
  }
@@ -7577,8 +7560,8 @@ var Cache = class {
7577
7560
  var GenericArgsInfo = class {
7578
7561
  constructor(_dmmf) {
7579
7562
  this._dmmf = _dmmf;
7580
- __publicField(this, "_cache", new Cache());
7581
7563
  }
7564
+ _cache = new Cache();
7582
7565
  /**
7583
7566
  * Determines if arg types need generic <$PrismaModel> argument added.
7584
7567
  * Essentially, performs breadth-first search for any fieldRefTypes that
@@ -8562,10 +8545,10 @@ export type ${this.type.name}<$PrismaModel> = FieldRefInputType<$PrismaModel, ${
8562
8545
 
8563
8546
  // src/generation/TSClient/GenerateContext.ts
8564
8547
  var GenerateContext = class {
8548
+ dmmf;
8549
+ genericArgsInfo;
8550
+ generator;
8565
8551
  constructor({ dmmf, genericArgsInfo, generator }) {
8566
- __publicField(this, "dmmf");
8567
- __publicField(this, "genericArgsInfo");
8568
- __publicField(this, "generator");
8569
8552
  this.dmmf = dmmf;
8570
8553
  this.genericArgsInfo = genericArgsInfo;
8571
8554
  this.generator = generator;
@@ -9155,11 +9138,11 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
9155
9138
  var TSClient = class {
9156
9139
  constructor(options) {
9157
9140
  this.options = options;
9158
- __publicField(this, "dmmf");
9159
- __publicField(this, "genericsInfo");
9160
9141
  this.dmmf = new DMMFHelper(options.dmmf);
9161
9142
  this.genericsInfo = new GenericArgsInfo(this.dmmf);
9162
9143
  }
9144
+ dmmf;
9145
+ genericsInfo;
9163
9146
  toJS() {
9164
9147
  const {
9165
9148
  edge,
@@ -9439,8 +9422,8 @@ Object.assign(exports, Prisma)
9439
9422
 
9440
9423
  // src/generation/typedSql/buildDbEnums.ts
9441
9424
  var DbEnumsList = class {
9425
+ enums;
9442
9426
  constructor(enums) {
9443
- __publicField(this, "enums");
9444
9427
  this.enums = enums.map((dmmfEnum) => ({
9445
9428
  name: dmmfEnum.dbName ?? dmmfEnum.name,
9446
9429
  values: dmmfEnum.values.map((dmmfValue) => dmmfValue.dbName ?? dmmfValue.name)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client",
3
- "version": "6.6.0-dev.24",
3
+ "version": "6.6.0-dev.25",
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",