@prisma/client-generator-js 7.10.1 → 7.11.0-dev.2

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/dist/index.js CHANGED
@@ -2366,13 +2366,13 @@ var package_default = {
2366
2366
  scripts: {
2367
2367
  dev: "DEV=true tsx helpers/build.ts",
2368
2368
  build: "tsx helpers/build.ts",
2369
- test: "dotenv -e ../../.db.env -- jest --silent",
2369
+ test: "dotenv -e ../../.db.env -- vitest run",
2370
2370
  "test:e2e": "dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts",
2371
2371
  "test:functional": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts",
2372
2372
  "test:functional:client": "pnpm run test:functional --client-runtime client",
2373
2373
  "test:functional:code": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types",
2374
2374
  "test:functional:types": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only",
2375
- "test-notypes": "dotenv -e ../../.db.env -- jest --testPathIgnorePatterns src/__tests__/types/types.test.ts",
2375
+ "test-notypes": "dotenv -e ../../.db.env -- vitest run --exclude src/__tests__/types/types.test.ts",
2376
2376
  prepublishOnly: "pnpm run build",
2377
2377
  "new-test": "tsx ./helpers/new-test/new-test.ts"
2378
2378
  },
@@ -4417,9 +4417,10 @@ var GenericArgsInfo = class {
4417
4417
  typeNeedsGenericModelArg(topLevelType) {
4418
4418
  return this._cache.getOrCreate(topLevelType, () => {
4419
4419
  const toVisit = [{ type: topLevelType }];
4420
+ const queued = /* @__PURE__ */ new Set([topLevelType]);
4420
4421
  const visited = /* @__PURE__ */ new Set();
4421
- let item;
4422
- while (item = toVisit.shift()) {
4422
+ for (let index = 0; index < toVisit.length; index++) {
4423
+ const item = toVisit[index];
4423
4424
  const { type: currentType } = item;
4424
4425
  const cached = this._cache.get(currentType);
4425
4426
  if (cached === true) {
@@ -4429,9 +4430,6 @@ var GenericArgsInfo = class {
4429
4430
  if (cached === false) {
4430
4431
  continue;
4431
4432
  }
4432
- if (visited.has(currentType)) {
4433
- continue;
4434
- }
4435
4433
  if (currentType.meta?.source) {
4436
4434
  this._cache.set(currentType, false);
4437
4435
  continue;
@@ -4444,7 +4442,8 @@ var GenericArgsInfo = class {
4444
4442
  return true;
4445
4443
  }
4446
4444
  const inputObject = this._dmmf.resolveInputObjectType(fieldType);
4447
- if (inputObject) {
4445
+ if (inputObject && !queued.has(inputObject)) {
4446
+ queued.add(inputObject);
4448
4447
  toVisit.push({ type: inputObject, parent: item });
4449
4448
  }
4450
4449
  }
@@ -6802,7 +6801,7 @@ var import_engines_version = require("@prisma/engines-version");
6802
6801
  var import_internals9 = require("@prisma/internals");
6803
6802
 
6804
6803
  // package.json
6805
- var version = "7.10.1";
6804
+ var version = "7.11.0-dev.2";
6806
6805
 
6807
6806
  // src/resolvePrismaClient.ts
6808
6807
  var import_promises2 = __toESM(require("node:fs/promises"));
package/dist/index.mjs CHANGED
@@ -2356,13 +2356,13 @@ var package_default = {
2356
2356
  scripts: {
2357
2357
  dev: "DEV=true tsx helpers/build.ts",
2358
2358
  build: "tsx helpers/build.ts",
2359
- test: "dotenv -e ../../.db.env -- jest --silent",
2359
+ test: "dotenv -e ../../.db.env -- vitest run",
2360
2360
  "test:e2e": "dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts",
2361
2361
  "test:functional": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts",
2362
2362
  "test:functional:client": "pnpm run test:functional --client-runtime client",
2363
2363
  "test:functional:code": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types",
2364
2364
  "test:functional:types": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only",
2365
- "test-notypes": "dotenv -e ../../.db.env -- jest --testPathIgnorePatterns src/__tests__/types/types.test.ts",
2365
+ "test-notypes": "dotenv -e ../../.db.env -- vitest run --exclude src/__tests__/types/types.test.ts",
2366
2366
  prepublishOnly: "pnpm run build",
2367
2367
  "new-test": "tsx ./helpers/new-test/new-test.ts"
2368
2368
  },
@@ -4407,9 +4407,10 @@ var GenericArgsInfo = class {
4407
4407
  typeNeedsGenericModelArg(topLevelType) {
4408
4408
  return this._cache.getOrCreate(topLevelType, () => {
4409
4409
  const toVisit = [{ type: topLevelType }];
4410
+ const queued = /* @__PURE__ */ new Set([topLevelType]);
4410
4411
  const visited = /* @__PURE__ */ new Set();
4411
- let item;
4412
- while (item = toVisit.shift()) {
4412
+ for (let index = 0; index < toVisit.length; index++) {
4413
+ const item = toVisit[index];
4413
4414
  const { type: currentType } = item;
4414
4415
  const cached = this._cache.get(currentType);
4415
4416
  if (cached === true) {
@@ -4419,9 +4420,6 @@ var GenericArgsInfo = class {
4419
4420
  if (cached === false) {
4420
4421
  continue;
4421
4422
  }
4422
- if (visited.has(currentType)) {
4423
- continue;
4424
- }
4425
4423
  if (currentType.meta?.source) {
4426
4424
  this._cache.set(currentType, false);
4427
4425
  continue;
@@ -4434,7 +4432,8 @@ var GenericArgsInfo = class {
4434
4432
  return true;
4435
4433
  }
4436
4434
  const inputObject = this._dmmf.resolveInputObjectType(fieldType);
4437
- if (inputObject) {
4435
+ if (inputObject && !queued.has(inputObject)) {
4436
+ queued.add(inputObject);
4438
4437
  toVisit.push({ type: inputObject, parent: item });
4439
4438
  }
4440
4439
  }
@@ -6795,7 +6794,7 @@ import { enginesVersion } from "@prisma/engines-version";
6795
6794
  import { BuiltInProvider, parseEnvValue } from "@prisma/internals";
6796
6795
 
6797
6796
  // package.json
6798
- var version = "7.10.1";
6797
+ var version = "7.11.0-dev.2";
6799
6798
 
6800
6799
  // src/resolvePrismaClient.ts
6801
6800
  import fs2 from "node:fs/promises";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-js",
3
- "version": "7.10.1",
3
+ "version": "7.11.0-dev.2",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,15 +32,15 @@
32
32
  "package-up": "5.0.0",
33
33
  "pluralize": "8.0.0",
34
34
  "ts-pattern": "5.9.0",
35
- "@prisma/client-common": "7.10.1",
36
- "@prisma/debug": "7.10.1",
37
- "@prisma/dmmf": "7.10.1",
38
- "@prisma/fetch-engine": "7.10.1",
39
- "@prisma/generator": "7.10.1",
40
- "@prisma/get-platform": "7.10.1",
41
- "@prisma/internals": "7.10.1",
42
- "@prisma/param-graph-builder": "7.10.1",
43
- "@prisma/ts-builders": "7.10.1"
35
+ "@prisma/debug": "7.11.0-dev.2",
36
+ "@prisma/client-common": "7.11.0-dev.2",
37
+ "@prisma/dmmf": "7.11.0-dev.2",
38
+ "@prisma/generator": "7.11.0-dev.2",
39
+ "@prisma/fetch-engine": "7.11.0-dev.2",
40
+ "@prisma/get-platform": "7.11.0-dev.2",
41
+ "@prisma/param-graph-builder": "7.11.0-dev.2",
42
+ "@prisma/ts-builders": "7.11.0-dev.2",
43
+ "@prisma/internals": "7.11.0-dev.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/pluralize": "0.0.33"
@@ -51,7 +51,6 @@
51
51
  "sideEffects": false,
52
52
  "scripts": {
53
53
  "dev": "DEV=true tsx helpers/build.ts",
54
- "build": "tsx helpers/build.ts",
55
- "test": "vitest run --testTimeout 30000"
54
+ "build": "tsx helpers/build.ts"
56
55
  }
57
56
  }