@prisma/adapter-neon 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-studio-ux-refinements.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.
- package/dist/index.js +18 -4
- package/dist/index.mjs +15 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -28,12 +28,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
PrismaNeon: () => PrismaNeon,
|
|
34
34
|
PrismaNeonHTTP: () => PrismaNeonHTTP
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(index_exports);
|
|
37
37
|
|
|
38
38
|
// src/neon.ts
|
|
39
39
|
var neon = __toESM(require("@neondatabase/serverless"));
|
|
@@ -540,7 +540,21 @@ var PrismaNeonHTTP = class extends NeonQueryable {
|
|
|
540
540
|
return (0, import_driver_adapter_utils2.ok)(
|
|
541
541
|
await this.client(sql, values, {
|
|
542
542
|
arrayMode: true,
|
|
543
|
-
fullResults: true
|
|
543
|
+
fullResults: true,
|
|
544
|
+
// pass type parsers to neon() HTTP client, same as in WS client above
|
|
545
|
+
//
|
|
546
|
+
// requires @neondatabase/serverless >= 0.9.5
|
|
547
|
+
// - types option added in https://github.com/neondatabase/serverless/pull/92
|
|
548
|
+
types: {
|
|
549
|
+
getTypeParser: (oid, format) => {
|
|
550
|
+
if (format === "text" && customParsers[oid]) {
|
|
551
|
+
return customParsers[oid];
|
|
552
|
+
}
|
|
553
|
+
return neon.types.getTypeParser(oid, format);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
// type `as` cast required until neon types are corrected:
|
|
557
|
+
// https://github.com/neondatabase/serverless/pull/110#issuecomment-2458992991
|
|
544
558
|
})
|
|
545
559
|
);
|
|
546
560
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -503,7 +503,21 @@ var PrismaNeonHTTP = class extends NeonQueryable {
|
|
|
503
503
|
return ok(
|
|
504
504
|
await this.client(sql, values, {
|
|
505
505
|
arrayMode: true,
|
|
506
|
-
fullResults: true
|
|
506
|
+
fullResults: true,
|
|
507
|
+
// pass type parsers to neon() HTTP client, same as in WS client above
|
|
508
|
+
//
|
|
509
|
+
// requires @neondatabase/serverless >= 0.9.5
|
|
510
|
+
// - types option added in https://github.com/neondatabase/serverless/pull/92
|
|
511
|
+
types: {
|
|
512
|
+
getTypeParser: (oid, format) => {
|
|
513
|
+
if (format === "text" && customParsers[oid]) {
|
|
514
|
+
return customParsers[oid];
|
|
515
|
+
}
|
|
516
|
+
return neon.types.getTypeParser(oid, format);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
// type `as` cast required until neon types are corrected:
|
|
520
|
+
// https://github.com/neondatabase/serverless/pull/110#issuecomment-2458992991
|
|
507
521
|
})
|
|
508
522
|
);
|
|
509
523
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-neon",
|
|
3
|
-
"version": "6.3.0-integration-
|
|
3
|
+
"version": "6.3.0-integration-studio-ux-refinements.1",
|
|
4
4
|
"description": "Prisma's driver adapter for \"@neondatabase/serverless\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"postgres-array": "3.0.2",
|
|
35
|
-
"@prisma/driver-adapter-utils": "6.3.0-integration-
|
|
35
|
+
"@prisma/driver-adapter-utils": "6.3.0-integration-studio-ux-refinements.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@neondatabase/serverless": "0.
|
|
39
|
-
"@swc/core": "1.
|
|
40
|
-
"@swc/jest": "0.2.
|
|
38
|
+
"@neondatabase/serverless": "0.10.2",
|
|
39
|
+
"@swc/core": "1.10.1",
|
|
40
|
+
"@swc/jest": "0.2.37",
|
|
41
41
|
"jest": "29.7.0",
|
|
42
42
|
"jest-junit": "16.0.0"
|
|
43
43
|
},
|