@prisma/adapter-pg 7.6.0-dev.11 → 7.6.0-dev.13

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
@@ -657,18 +657,6 @@ var PgQueryable = class {
657
657
  values,
658
658
  rowMode: "array",
659
659
  types: {
660
- // This is the error expected:
661
- // No overload matches this call.
662
- // The last overload gave the following error.
663
- // Type '(oid: number, format?: any) => (json: string) => unknown' is not assignable to type '{ <T>(oid: number): TypeParser<string, string | T>; <T>(oid: number, format: "text"): TypeParser<string, string | T>; <T>(oid: number, format: "binary"): TypeParser<...>; }'.
664
- // Type '(json: string) => unknown' is not assignable to type 'TypeParser<Buffer, any>'.
665
- // Types of parameters 'json' and 'value' are incompatible.
666
- // Type 'Buffer' is not assignable to type 'string'.ts(2769)
667
- //
668
- // Because pg-types types expect us to handle both binary and text protocol versions,
669
- // where as far we can see, pg will ever pass only text version.
670
- //
671
- // @ts-expect-error
672
660
  getTypeParser: (oid, format) => {
673
661
  if (format === "text" && customParsers[oid]) {
674
662
  return customParsers[oid];
package/dist/index.mjs CHANGED
@@ -621,18 +621,6 @@ var PgQueryable = class {
621
621
  values,
622
622
  rowMode: "array",
623
623
  types: {
624
- // This is the error expected:
625
- // No overload matches this call.
626
- // The last overload gave the following error.
627
- // Type '(oid: number, format?: any) => (json: string) => unknown' is not assignable to type '{ <T>(oid: number): TypeParser<string, string | T>; <T>(oid: number, format: "text"): TypeParser<string, string | T>; <T>(oid: number, format: "binary"): TypeParser<...>; }'.
628
- // Type '(json: string) => unknown' is not assignable to type 'TypeParser<Buffer, any>'.
629
- // Types of parameters 'json' and 'value' are incompatible.
630
- // Type 'Buffer' is not assignable to type 'string'.ts(2769)
631
- //
632
- // Because pg-types types expect us to handle both binary and text protocol versions,
633
- // where as far we can see, pg will ever pass only text version.
634
- //
635
- // @ts-expect-error
636
624
  getTypeParser: (oid, format) => {
637
625
  if (format === "text" && customParsers[oid]) {
638
626
  return customParsers[oid];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-pg",
3
- "version": "7.6.0-dev.11",
3
+ "version": "7.6.0-dev.13",
4
4
  "description": "Prisma's driver adapter for \"pg\"",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,11 +33,11 @@
33
33
  "dependencies": {
34
34
  "pg": "^8.16.3",
35
35
  "postgres-array": "3.0.4",
36
- "@types/pg": "8.11.11",
37
- "@prisma/driver-adapter-utils": "7.6.0-dev.11"
36
+ "@types/pg": "^8.16.0",
37
+ "@prisma/driver-adapter-utils": "7.6.0-dev.13"
38
38
  },
39
39
  "devDependencies": {
40
- "@prisma/debug": "7.6.0-dev.11"
40
+ "@prisma/debug": "7.6.0-dev.13"
41
41
  },
42
42
  "scripts": {
43
43
  "dev": "DEV=true tsx helpers/build.ts",