prisma 5.19.0-integration-feat-typed-sql.8 → 5.19.0-integration-feat-typed-sql.9
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/build/index.js +6 -6
- package/package.json +11 -11
- package/prisma-client/generator-build/index.js +30 -17
- package/prisma-client/package.json +5 -5
- package/prisma-client/runtime/binary.js +3 -3
- package/prisma-client/runtime/edge-esm.js +3 -3
- package/prisma-client/runtime/edge.js +3 -3
- package/prisma-client/runtime/library.js +3 -3
- package/prisma-client/runtime/react-native.js +2 -2
- package/prisma-client/scripts/default-index.js +3 -3
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.19.0-integration-feat-typed-sql.
|
|
2
|
+
"version": "5.19.0-integration-feat-typed-sql.9",
|
|
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": ">=16.13"
|
|
42
42
|
},
|
|
43
43
|
"prisma": {
|
|
44
|
-
"prismaCommit": "
|
|
44
|
+
"prismaCommit": "2c7792e46642768e783eeee6a6fd860e3aea310b"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"README.md",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"async-listen": "3.0.1",
|
|
83
83
|
"checkpoint-client": "1.1.33",
|
|
84
84
|
"chokidar": "3.6.0",
|
|
85
|
-
"debug": "4.3.
|
|
85
|
+
"debug": "4.3.6",
|
|
86
86
|
"dotenv": "16.0.3",
|
|
87
87
|
"esbuild": "0.23.0",
|
|
88
88
|
"execa": "5.1.1",
|
|
@@ -107,16 +107,16 @@
|
|
|
107
107
|
"typescript": "5.4.5",
|
|
108
108
|
"xdg-app-paths": "8.3.0",
|
|
109
109
|
"zx": "7.2.3",
|
|
110
|
-
"@prisma/client": "5.19.0-integration-feat-typed-sql.
|
|
111
|
-
"@prisma/
|
|
112
|
-
"@prisma/
|
|
113
|
-
"@prisma/generator-helper": "5.19.0-integration-feat-typed-sql.
|
|
114
|
-
"@prisma/get-platform": "5.19.0-integration-feat-typed-sql.
|
|
115
|
-
"@prisma/migrate": "5.19.0-integration-feat-typed-sql.
|
|
116
|
-
"@prisma/internals": "5.19.0-integration-feat-typed-sql.
|
|
110
|
+
"@prisma/client": "5.19.0-integration-feat-typed-sql.9",
|
|
111
|
+
"@prisma/fetch-engine": "5.19.0-integration-feat-typed-sql.9",
|
|
112
|
+
"@prisma/debug": "5.19.0-integration-feat-typed-sql.9",
|
|
113
|
+
"@prisma/generator-helper": "5.19.0-integration-feat-typed-sql.9",
|
|
114
|
+
"@prisma/get-platform": "5.19.0-integration-feat-typed-sql.9",
|
|
115
|
+
"@prisma/migrate": "5.19.0-integration-feat-typed-sql.9",
|
|
116
|
+
"@prisma/internals": "5.19.0-integration-feat-typed-sql.9"
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@prisma/engines": "5.19.0-integration-feat-typed-sql.
|
|
119
|
+
"@prisma/engines": "5.19.0-integration-feat-typed-sql.9"
|
|
120
120
|
},
|
|
121
121
|
"optionalDependencies": {
|
|
122
122
|
"fsevents": "2.3.3"
|
|
@@ -33,18 +33,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@5.19.0-
|
|
36
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004/node_modules/@prisma/engines-version/package.json
|
|
37
37
|
var require_package = __commonJS({
|
|
38
|
-
"../../node_modules/.pnpm/@prisma+engines-version@5.19.0-
|
|
38
|
+
"../../node_modules/.pnpm/@prisma+engines-version@5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004/node_modules/@prisma/engines-version/package.json"(exports2, module2) {
|
|
39
39
|
module2.exports = {
|
|
40
40
|
name: "@prisma/engines-version",
|
|
41
|
-
version: "5.19.0-
|
|
41
|
+
version: "5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004",
|
|
42
42
|
main: "index.js",
|
|
43
43
|
types: "index.d.ts",
|
|
44
44
|
license: "Apache-2.0",
|
|
45
45
|
author: "Tim Suchanek <suchanek@prisma.io>",
|
|
46
46
|
prisma: {
|
|
47
|
-
enginesVersion: "
|
|
47
|
+
enginesVersion: "860858bb818708261f36cd05bc915e603aae5004"
|
|
48
48
|
},
|
|
49
49
|
repository: {
|
|
50
50
|
type: "git",
|
|
@@ -66,9 +66,9 @@ var require_package = __commonJS({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
// ../../node_modules/.pnpm/@prisma+engines-version@5.19.0-
|
|
69
|
+
// ../../node_modules/.pnpm/@prisma+engines-version@5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004/node_modules/@prisma/engines-version/index.js
|
|
70
70
|
var require_engines_version = __commonJS({
|
|
71
|
-
"../../node_modules/.pnpm/@prisma+engines-version@5.19.0-
|
|
71
|
+
"../../node_modules/.pnpm/@prisma+engines-version@5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004/node_modules/@prisma/engines-version/index.js"(exports2) {
|
|
72
72
|
"use strict";
|
|
73
73
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
74
74
|
exports2.enginesVersion = void 0;
|
|
@@ -3166,7 +3166,7 @@ var require_package2 = __commonJS({
|
|
|
3166
3166
|
"package.json"(exports2, module2) {
|
|
3167
3167
|
module2.exports = {
|
|
3168
3168
|
name: "@prisma/client",
|
|
3169
|
-
version: "5.19.0-integration-feat-typed-sql.
|
|
3169
|
+
version: "5.19.0-integration-feat-typed-sql.9",
|
|
3170
3170
|
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.",
|
|
3171
3171
|
keywords: [
|
|
3172
3172
|
"ORM",
|
|
@@ -3340,7 +3340,7 @@ var require_package2 = __commonJS({
|
|
|
3340
3340
|
],
|
|
3341
3341
|
devDependencies: {
|
|
3342
3342
|
"@cloudflare/workers-types": "4.20240614.0",
|
|
3343
|
-
"@codspeed/benchmark.js-plugin": "3.1.
|
|
3343
|
+
"@codspeed/benchmark.js-plugin": "3.1.1",
|
|
3344
3344
|
"@faker-js/faker": "8.4.1",
|
|
3345
3345
|
"@fast-check/jest": "1.8.2",
|
|
3346
3346
|
"@inquirer/prompts": "5.0.5",
|
|
@@ -3365,7 +3365,7 @@ var require_package2 = __commonJS({
|
|
|
3365
3365
|
"@prisma/debug": "workspace:*",
|
|
3366
3366
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
3367
3367
|
"@prisma/engines": "workspace:*",
|
|
3368
|
-
"@prisma/engines-version": "5.19.0-
|
|
3368
|
+
"@prisma/engines-version": "5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004",
|
|
3369
3369
|
"@prisma/fetch-engine": "workspace:*",
|
|
3370
3370
|
"@prisma/generator-helper": "workspace:*",
|
|
3371
3371
|
"@prisma/get-platform": "workspace:*",
|
|
@@ -3374,9 +3374,9 @@ var require_package2 = __commonJS({
|
|
|
3374
3374
|
"@prisma/migrate": "workspace:*",
|
|
3375
3375
|
"@prisma/mini-proxy": "0.9.5",
|
|
3376
3376
|
"@prisma/pg-worker": "workspace:*",
|
|
3377
|
-
"@prisma/query-engine-wasm": "5.19.0-
|
|
3377
|
+
"@prisma/query-engine-wasm": "5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004",
|
|
3378
3378
|
"@snaplet/copycat": "0.17.3",
|
|
3379
|
-
"@swc-node/register": "1.10.
|
|
3379
|
+
"@swc-node/register": "1.10.9",
|
|
3380
3380
|
"@swc/core": "1.6.13",
|
|
3381
3381
|
"@swc/jest": "0.2.36",
|
|
3382
3382
|
"@timsuchanek/copy": "1.4.5",
|
|
@@ -9490,6 +9490,7 @@ var typeMappings = {
|
|
|
9490
9490
|
date,
|
|
9491
9491
|
datetime: date,
|
|
9492
9492
|
time: date,
|
|
9493
|
+
null: nullType,
|
|
9493
9494
|
"int-array": array(numberType),
|
|
9494
9495
|
"string-array": array(stringType),
|
|
9495
9496
|
"json-array": {
|
|
@@ -9515,11 +9516,21 @@ var typeMappings = {
|
|
|
9515
9516
|
out: array(decimal)
|
|
9516
9517
|
}
|
|
9517
9518
|
};
|
|
9518
|
-
function getInputType(introspectionType, enums) {
|
|
9519
|
-
|
|
9519
|
+
function getInputType(introspectionType, nullable, enums) {
|
|
9520
|
+
const inn = getMappingConfig(introspectionType, enums).in;
|
|
9521
|
+
if (!nullable) {
|
|
9522
|
+
return inn;
|
|
9523
|
+
} else {
|
|
9524
|
+
return new UnionType(inn).addVariant(nullType);
|
|
9525
|
+
}
|
|
9520
9526
|
}
|
|
9521
|
-
function getOutputType(introspectionType, enums) {
|
|
9522
|
-
|
|
9527
|
+
function getOutputType(introspectionType, nullable, enums) {
|
|
9528
|
+
const out = getMappingConfig(introspectionType, enums).out;
|
|
9529
|
+
if (!nullable) {
|
|
9530
|
+
return out;
|
|
9531
|
+
} else {
|
|
9532
|
+
return new UnionType(out).addVariant(nullType);
|
|
9533
|
+
}
|
|
9523
9534
|
}
|
|
9524
9535
|
function getMappingConfig(introspectionType, enums) {
|
|
9525
9536
|
const config = typeMappings[introspectionType];
|
|
@@ -9547,7 +9558,7 @@ function buildTypedQueryTs({ query, runtimeBase, runtimeName, enums }) {
|
|
|
9547
9558
|
const factoryType = functionType();
|
|
9548
9559
|
const parametersType = tupleType();
|
|
9549
9560
|
for (const param of query.parameters) {
|
|
9550
|
-
const paramType = getInputType(param.typ, enums);
|
|
9561
|
+
const paramType = getInputType(param.typ, param.nullable, enums);
|
|
9551
9562
|
factoryType.addParameter(parameter(param.name, paramType));
|
|
9552
9563
|
parametersType.add(tupleItem(paramType).setName(param.name));
|
|
9553
9564
|
if (param.documentation) {
|
|
@@ -9567,7 +9578,9 @@ function buildTypedQueryTs({ query, runtimeBase, runtimeName, enums }) {
|
|
|
9567
9578
|
return stringify(file2);
|
|
9568
9579
|
}
|
|
9569
9580
|
function buildResultType(query, enums) {
|
|
9570
|
-
const type = objectType().addMultiple(
|
|
9581
|
+
const type = objectType().addMultiple(
|
|
9582
|
+
query.resultColumns.map((column) => property(column.name, getOutputType(column.typ, column.nullable, enums)))
|
|
9583
|
+
);
|
|
9571
9584
|
return moduleExport(typeDeclaration("Result", type));
|
|
9572
9585
|
}
|
|
9573
9586
|
function buildTypedQueryCjs({ query, runtimeBase, runtimeName }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "5.19.0-integration-feat-typed-sql.
|
|
3
|
+
"version": "5.19.0-integration-feat-typed-sql.9",
|
|
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",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
],
|
|
175
175
|
"devDependencies": {
|
|
176
176
|
"@cloudflare/workers-types": "4.20240614.0",
|
|
177
|
-
"@codspeed/benchmark.js-plugin": "3.1.
|
|
177
|
+
"@codspeed/benchmark.js-plugin": "3.1.1",
|
|
178
178
|
"@faker-js/faker": "8.4.1",
|
|
179
179
|
"@fast-check/jest": "1.8.2",
|
|
180
180
|
"@inquirer/prompts": "5.0.5",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"@prisma/debug": "workspace:*",
|
|
200
200
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
201
201
|
"@prisma/engines": "workspace:*",
|
|
202
|
-
"@prisma/engines-version": "5.19.0-
|
|
202
|
+
"@prisma/engines-version": "5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004",
|
|
203
203
|
"@prisma/fetch-engine": "workspace:*",
|
|
204
204
|
"@prisma/generator-helper": "workspace:*",
|
|
205
205
|
"@prisma/get-platform": "workspace:*",
|
|
@@ -208,9 +208,9 @@
|
|
|
208
208
|
"@prisma/migrate": "workspace:*",
|
|
209
209
|
"@prisma/mini-proxy": "0.9.5",
|
|
210
210
|
"@prisma/pg-worker": "workspace:*",
|
|
211
|
-
"@prisma/query-engine-wasm": "5.19.0-
|
|
211
|
+
"@prisma/query-engine-wasm": "5.19.0-25.feat-typed-sql-nullability-860858bb818708261f36cd05bc915e603aae5004",
|
|
212
212
|
"@snaplet/copycat": "0.17.3",
|
|
213
|
-
"@swc-node/register": "1.10.
|
|
213
|
+
"@swc-node/register": "1.10.9",
|
|
214
214
|
"@swc/core": "1.6.13",
|
|
215
215
|
"@swc/jest": "0.2.36",
|
|
216
216
|
"@timsuchanek/copy": "1.4.5",
|