prisma 5.19.0-integration-feat-typed-sql.7 → 5.19.0-integration-feat-typed-sql.8
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 +3 -3
- package/package.json +10 -10
- package/prisma-client/generator-build/index.js +36 -5
- package/prisma-client/package.json +1 -1
- package/prisma-client/runtime/binary.js +17 -17
- package/prisma-client/runtime/edge-esm.js +2 -2
- package/prisma-client/runtime/edge.js +3 -3
- package/prisma-client/runtime/library.d.ts +5 -0
- package/prisma-client/runtime/library.js +6 -6
- package/prisma-client/runtime/react-native.d.ts +5 -0
- package/prisma-client/runtime/react-native.js +5 -5
- package/prisma-client/scripts/default-index.js +1 -1
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.8",
|
|
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": "d002e5ae9ae76932fb1d937bf26635cc275b3c74"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"README.md",
|
|
@@ -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/
|
|
111
|
-
"@prisma/
|
|
112
|
-
"@prisma/
|
|
113
|
-
"@prisma/
|
|
114
|
-
"@prisma/
|
|
115
|
-
"@prisma/
|
|
116
|
-
"@prisma/
|
|
110
|
+
"@prisma/client": "5.19.0-integration-feat-typed-sql.8",
|
|
111
|
+
"@prisma/debug": "5.19.0-integration-feat-typed-sql.8",
|
|
112
|
+
"@prisma/fetch-engine": "5.19.0-integration-feat-typed-sql.8",
|
|
113
|
+
"@prisma/generator-helper": "5.19.0-integration-feat-typed-sql.8",
|
|
114
|
+
"@prisma/get-platform": "5.19.0-integration-feat-typed-sql.8",
|
|
115
|
+
"@prisma/migrate": "5.19.0-integration-feat-typed-sql.8",
|
|
116
|
+
"@prisma/internals": "5.19.0-integration-feat-typed-sql.8"
|
|
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.8"
|
|
120
120
|
},
|
|
121
121
|
"optionalDependencies": {
|
|
122
122
|
"fsevents": "2.3.3"
|
|
@@ -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.8",
|
|
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",
|
|
@@ -7863,6 +7863,7 @@ import {
|
|
|
7863
7863
|
defineDmmfProperty,
|
|
7864
7864
|
Public,
|
|
7865
7865
|
getRuntime,
|
|
7866
|
+
Buffer
|
|
7866
7867
|
} from '${runtimeBase}/${runtimeNameJs}.js'` : browser ? `
|
|
7867
7868
|
const {
|
|
7868
7869
|
Decimal,
|
|
@@ -7870,6 +7871,7 @@ const {
|
|
|
7870
7871
|
makeStrictEnum,
|
|
7871
7872
|
Public,
|
|
7872
7873
|
getRuntime,
|
|
7874
|
+
Buffer
|
|
7873
7875
|
} = require('${runtimeBase}/${runtimeNameJs}.js')
|
|
7874
7876
|
` : `
|
|
7875
7877
|
const {
|
|
@@ -7892,7 +7894,8 @@ const {
|
|
|
7892
7894
|
warnOnce,
|
|
7893
7895
|
defineDmmfProperty,
|
|
7894
7896
|
Public,
|
|
7895
|
-
getRuntime
|
|
7897
|
+
getRuntime,
|
|
7898
|
+
Buffer
|
|
7896
7899
|
} = require('${runtimeBase}/${runtimeNameJs}.js')
|
|
7897
7900
|
`}
|
|
7898
7901
|
|
|
@@ -7945,6 +7948,8 @@ Prisma.NullTypes = {
|
|
|
7945
7948
|
JsonNull: objectEnumValues.classes.JsonNull,
|
|
7946
7949
|
AnyNull: objectEnumValues.classes.AnyNull
|
|
7947
7950
|
}
|
|
7951
|
+
|
|
7952
|
+
Prisma.Buffer = Buffer
|
|
7948
7953
|
`;
|
|
7949
7954
|
var notSupportOnBrowser = (fnc, browser) => {
|
|
7950
7955
|
if (browser) {
|
|
@@ -7994,6 +7999,11 @@ export import join = runtime.join
|
|
|
7994
7999
|
export import raw = runtime.raw
|
|
7995
8000
|
export import Sql = runtime.Sql
|
|
7996
8001
|
|
|
8002
|
+
/**
|
|
8003
|
+
* Buffer
|
|
8004
|
+
*/
|
|
8005
|
+
export import Buffer = runtime.Buffer
|
|
8006
|
+
|
|
7997
8007
|
/**
|
|
7998
8008
|
* Decimal.js
|
|
7999
8009
|
*/
|
|
@@ -9426,11 +9436,20 @@ function buildIndexTs(queries, enums) {
|
|
|
9426
9436
|
}
|
|
9427
9437
|
return stringify(file2);
|
|
9428
9438
|
}
|
|
9429
|
-
function buildIndexCjs(queries) {
|
|
9439
|
+
function buildIndexCjs(queries, edge) {
|
|
9430
9440
|
const writer = new Writer(0, void 0);
|
|
9431
9441
|
writer.writeLine('"use strict"');
|
|
9432
9442
|
for (const { name } of queries) {
|
|
9433
|
-
|
|
9443
|
+
const fileName = edge ? `${name}.edge` : name;
|
|
9444
|
+
writer.writeLine(`exports.${name} = require("./${fileName}.js").${name}`);
|
|
9445
|
+
}
|
|
9446
|
+
return writer.toString();
|
|
9447
|
+
}
|
|
9448
|
+
function buildIndexEsm(queries, edge) {
|
|
9449
|
+
const writer = new Writer(0, void 0);
|
|
9450
|
+
for (const { name } of queries) {
|
|
9451
|
+
const fileName = edge ? `${name}.edge` : name;
|
|
9452
|
+
writer.writeLine(`export * from "./${fileName}.mjs"`);
|
|
9434
9453
|
}
|
|
9435
9454
|
return writer.toString();
|
|
9436
9455
|
}
|
|
@@ -9574,12 +9593,18 @@ function buildTypedSql({ queries, runtimeBase, mainRuntimeName, dmmf }) {
|
|
|
9574
9593
|
}
|
|
9575
9594
|
for (const query of queries) {
|
|
9576
9595
|
const options = { query, runtimeBase, runtimeName: mainRuntimeName, enums };
|
|
9596
|
+
const edgeOptions = { ...options, runtimeName: "edge.js" };
|
|
9577
9597
|
fileMap[`${query.name}.d.ts`] = buildTypedQueryTs(options);
|
|
9578
9598
|
fileMap[`${query.name}.js`] = buildTypedQueryCjs(options);
|
|
9599
|
+
fileMap[`${query.name}.edge.js`] = buildTypedQueryCjs(edgeOptions);
|
|
9579
9600
|
fileMap[`${query.name}.mjs`] = buildTypedQueryEsm(options);
|
|
9601
|
+
fileMap[`${query.name}.edge.mjs`] = buildTypedQueryEsm(edgeOptions);
|
|
9580
9602
|
}
|
|
9581
9603
|
fileMap["index.d.ts"] = buildIndexTs(queries, enums);
|
|
9582
|
-
fileMap["index.js"] = buildIndexCjs(queries);
|
|
9604
|
+
fileMap["index.js"] = buildIndexCjs(queries, false);
|
|
9605
|
+
fileMap["index.mjs"] = buildIndexEsm(queries, false);
|
|
9606
|
+
fileMap["index.edge.mjs"] = buildIndexEsm(queries, true);
|
|
9607
|
+
fileMap["index.edge.js"] = buildIndexCjs(queries, true);
|
|
9583
9608
|
return fileMap;
|
|
9584
9609
|
}
|
|
9585
9610
|
|
|
@@ -9764,11 +9789,17 @@ export * from './edge.js'`;
|
|
|
9764
9789
|
require: {
|
|
9765
9790
|
types: "./sql/index.d.ts",
|
|
9766
9791
|
node: "./sql/index.js",
|
|
9792
|
+
"edge-light": "./sql/index.edge.js",
|
|
9793
|
+
workerd: "./sql/index.edge.js",
|
|
9794
|
+
worker: "./sql/index.edge.js",
|
|
9767
9795
|
default: "./sql/index.js"
|
|
9768
9796
|
},
|
|
9769
9797
|
import: {
|
|
9770
9798
|
types: "./sql/index.d.ts",
|
|
9771
9799
|
node: "./sql/index.mjs",
|
|
9800
|
+
"edge-light": "./sql/index.edge.mjs",
|
|
9801
|
+
workerd: "./sql/index.edge.mjs",
|
|
9802
|
+
worker: "./sql/index.edge.mjs",
|
|
9772
9803
|
default: "./sql/index.mjs"
|
|
9773
9804
|
},
|
|
9774
9805
|
default: "./sql/index.js"
|
|
@@ -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.8",
|
|
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",
|