@prisma/client-generator-js 7.10.0 → 7.11.0-dev.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.
Files changed (3) hide show
  1. package/dist/index.js +11 -12
  2. package/dist/index.mjs +11 -12
  3. package/package.json +13 -14
package/dist/index.js CHANGED
@@ -2358,7 +2358,7 @@ var package_default = {
2358
2358
  homepage: "https://www.prisma.io",
2359
2359
  repository: {
2360
2360
  type: "git",
2361
- url: "https://github.com/prisma/prisma.git",
2361
+ url: "https://github.com/prisma/orm.git",
2362
2362
  directory: "packages/client"
2363
2363
  },
2364
2364
  author: "Tim Suchanek <suchanek@prisma.io>",
@@ -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
  },
@@ -2429,7 +2429,7 @@ var package_default = {
2429
2429
  "@prisma/dmmf": "workspace:*",
2430
2430
  "@prisma/driver-adapter-utils": "workspace:*",
2431
2431
  "@prisma/engines": "workspace:*",
2432
- "@prisma/engines-version": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
2432
+ "@prisma/engines-version": "8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8",
2433
2433
  "@prisma/fetch-engine": "workspace:*",
2434
2434
  "@prisma/generator": "workspace:*",
2435
2435
  "@prisma/generator-helper": "workspace:*",
@@ -2441,7 +2441,7 @@ var package_default = {
2441
2441
  "@prisma/migrate": "workspace:*",
2442
2442
  "@prisma/param-graph": "workspace:*",
2443
2443
  "@prisma/param-graph-builder": "workspace:*",
2444
- "@prisma/query-compiler-wasm": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
2444
+ "@prisma/query-compiler-wasm": "8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8",
2445
2445
  "@prisma/query-plan-executor": "workspace:*",
2446
2446
  "@prisma/sqlcommenter": "workspace:*",
2447
2447
  "@prisma/sqlcommenter-trace-context": "workspace:*",
@@ -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.0";
6804
+ var version = "7.11.0-dev.1";
6806
6805
 
6807
6806
  // src/resolvePrismaClient.ts
6808
6807
  var import_promises2 = __toESM(require("node:fs/promises"));
package/dist/index.mjs CHANGED
@@ -2348,7 +2348,7 @@ var package_default = {
2348
2348
  homepage: "https://www.prisma.io",
2349
2349
  repository: {
2350
2350
  type: "git",
2351
- url: "https://github.com/prisma/prisma.git",
2351
+ url: "https://github.com/prisma/orm.git",
2352
2352
  directory: "packages/client"
2353
2353
  },
2354
2354
  author: "Tim Suchanek <suchanek@prisma.io>",
@@ -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
  },
@@ -2419,7 +2419,7 @@ var package_default = {
2419
2419
  "@prisma/dmmf": "workspace:*",
2420
2420
  "@prisma/driver-adapter-utils": "workspace:*",
2421
2421
  "@prisma/engines": "workspace:*",
2422
- "@prisma/engines-version": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
2422
+ "@prisma/engines-version": "8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8",
2423
2423
  "@prisma/fetch-engine": "workspace:*",
2424
2424
  "@prisma/generator": "workspace:*",
2425
2425
  "@prisma/generator-helper": "workspace:*",
@@ -2431,7 +2431,7 @@ var package_default = {
2431
2431
  "@prisma/migrate": "workspace:*",
2432
2432
  "@prisma/param-graph": "workspace:*",
2433
2433
  "@prisma/param-graph-builder": "workspace:*",
2434
- "@prisma/query-compiler-wasm": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
2434
+ "@prisma/query-compiler-wasm": "8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8",
2435
2435
  "@prisma/query-plan-executor": "workspace:*",
2436
2436
  "@prisma/sqlcommenter": "workspace:*",
2437
2437
  "@prisma/sqlcommenter-trace-context": "workspace:*",
@@ -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.0";
6797
+ var version = "7.11.0-dev.1";
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.0",
3
+ "version": "7.11.0-dev.1",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19,28 +19,28 @@
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://github.com/prisma/prisma.git",
22
+ "url": "https://github.com/prisma/orm.git",
23
23
  "directory": "packages/client-generator-js"
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
27
  "@antfu/ni": "0.21.12",
28
- "@prisma/engines-version": "7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3",
28
+ "@prisma/engines-version": "8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8",
29
29
  "env-paths": "2.2.1",
30
30
  "indent-string": "4.0.0",
31
31
  "klona": "2.0.6",
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.0",
36
- "@prisma/debug": "7.10.0",
37
- "@prisma/generator": "7.10.0",
38
- "@prisma/dmmf": "7.10.0",
39
- "@prisma/fetch-engine": "7.10.0",
40
- "@prisma/get-platform": "7.10.0",
41
- "@prisma/internals": "7.10.0",
42
- "@prisma/param-graph-builder": "7.10.0",
43
- "@prisma/ts-builders": "7.10.0"
35
+ "@prisma/debug": "7.11.0-dev.1",
36
+ "@prisma/client-common": "7.11.0-dev.1",
37
+ "@prisma/dmmf": "7.11.0-dev.1",
38
+ "@prisma/fetch-engine": "7.11.0-dev.1",
39
+ "@prisma/generator": "7.11.0-dev.1",
40
+ "@prisma/get-platform": "7.11.0-dev.1",
41
+ "@prisma/internals": "7.11.0-dev.1",
42
+ "@prisma/param-graph-builder": "7.11.0-dev.1",
43
+ "@prisma/ts-builders": "7.11.0-dev.1"
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
  }