@prisma/adapter-neon 7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1 → 7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.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/README.md CHANGED
@@ -8,7 +8,7 @@ The [Neon serverless driver](https://github.com/neondatabase/serverless) is a lo
8
8
 
9
9
  ## Getting started
10
10
 
11
- > **Note**: Make sure your connection string exists in your `process.env`. Refer to [Neon's docs](https://neon.tech/docs/connect/connect-from-any-app) to learn how to retrieve your database's connection string.
11
+ > **Note**: Make sure your connection string exists in your `.env` file. Refer to [Neon's docs](https://neon.tech/docs/connect/connect-from-any-app) to learn how to retrieve your database's connection string.
12
12
  >
13
13
  > ```bash
14
14
  > DATABASE_URL="postgres://user:password@server.us-east-2.aws.neon.tech/neondb"
package/dist/index.d.mts CHANGED
@@ -66,7 +66,7 @@ declare class PrismaNeonAdapter extends NeonWsQueryable<neon.Pool> implements Sq
66
66
  underlyingDriver(): neon.Pool;
67
67
  }
68
68
 
69
- export declare class PrismaNeonHttp implements SqlDriverAdapterFactory {
69
+ export declare class PrismaNeonHTTP implements SqlDriverAdapterFactory {
70
70
  private readonly connectionString;
71
71
  private readonly options;
72
72
  readonly provider = "postgres";
package/dist/index.d.ts CHANGED
@@ -66,7 +66,7 @@ declare class PrismaNeonAdapter extends NeonWsQueryable<neon.Pool> implements Sq
66
66
  underlyingDriver(): neon.Pool;
67
67
  }
68
68
 
69
- export declare class PrismaNeonHttp implements SqlDriverAdapterFactory {
69
+ export declare class PrismaNeonHTTP implements SqlDriverAdapterFactory {
70
70
  private readonly connectionString;
71
71
  private readonly options;
72
72
  readonly provider = "postgres";
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  PrismaNeon: () => PrismaNeonAdapterFactory,
34
- PrismaNeonHttp: () => PrismaNeonHttpAdapterFactory
34
+ PrismaNeonHTTP: () => PrismaNeonHTTPAdapterFactory
35
35
  });
36
36
  module.exports = __toCommonJS(index_exports);
37
37
 
@@ -426,11 +426,6 @@ function mapDriverError(error) {
426
426
  kind: "ValueOutOfRange",
427
427
  cause: error.message
428
428
  };
429
- case "22P02":
430
- return {
431
- kind: "InvalidInputValue",
432
- message: error.message
433
- };
434
429
  case "23505": {
435
430
  const fields = error.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", ");
436
431
  return {
@@ -689,7 +684,7 @@ var PrismaNeonAdapterFactory = class {
689
684
  return new PrismaNeonAdapter(pool, this.options);
690
685
  }
691
686
  };
692
- var PrismaNeonHttpAdapter = class extends NeonQueryable {
687
+ var PrismaNeonHTTPAdapter = class extends NeonQueryable {
693
688
  client;
694
689
  constructor(client) {
695
690
  super();
@@ -725,7 +720,7 @@ var PrismaNeonHttpAdapter = class extends NeonQueryable {
725
720
  async dispose() {
726
721
  }
727
722
  };
728
- var PrismaNeonHttpAdapterFactory = class {
723
+ var PrismaNeonHTTPAdapterFactory = class {
729
724
  constructor(connectionString, options) {
730
725
  this.connectionString = connectionString;
731
726
  this.options = options;
@@ -733,11 +728,11 @@ var PrismaNeonHttpAdapterFactory = class {
733
728
  provider = "postgres";
734
729
  adapterName = name;
735
730
  async connect() {
736
- return new PrismaNeonHttpAdapter(neon.neon(this.connectionString, this.options));
731
+ return new PrismaNeonHTTPAdapter(neon.neon(this.connectionString, this.options));
737
732
  }
738
733
  };
739
734
  // Annotate the CommonJS export names for ESM import in node:
740
735
  0 && (module.exports = {
741
736
  PrismaNeon,
742
- PrismaNeonHttp
737
+ PrismaNeonHTTP
743
738
  });
package/dist/index.mjs CHANGED
@@ -389,11 +389,6 @@ function mapDriverError(error) {
389
389
  kind: "ValueOutOfRange",
390
390
  cause: error.message
391
391
  };
392
- case "22P02":
393
- return {
394
- kind: "InvalidInputValue",
395
- message: error.message
396
- };
397
392
  case "23505": {
398
393
  const fields = error.detail?.match(/Key \(([^)]+)\)/)?.at(1)?.split(", ");
399
394
  return {
@@ -652,7 +647,7 @@ var PrismaNeonAdapterFactory = class {
652
647
  return new PrismaNeonAdapter(pool, this.options);
653
648
  }
654
649
  };
655
- var PrismaNeonHttpAdapter = class extends NeonQueryable {
650
+ var PrismaNeonHTTPAdapter = class extends NeonQueryable {
656
651
  client;
657
652
  constructor(client) {
658
653
  super();
@@ -688,7 +683,7 @@ var PrismaNeonHttpAdapter = class extends NeonQueryable {
688
683
  async dispose() {
689
684
  }
690
685
  };
691
- var PrismaNeonHttpAdapterFactory = class {
686
+ var PrismaNeonHTTPAdapterFactory = class {
692
687
  constructor(connectionString, options) {
693
688
  this.connectionString = connectionString;
694
689
  this.options = options;
@@ -696,10 +691,10 @@ var PrismaNeonHttpAdapterFactory = class {
696
691
  provider = "postgres";
697
692
  adapterName = name;
698
693
  async connect() {
699
- return new PrismaNeonHttpAdapter(neon.neon(this.connectionString, this.options));
694
+ return new PrismaNeonHTTPAdapter(neon.neon(this.connectionString, this.options));
700
695
  }
701
696
  };
702
697
  export {
703
698
  PrismaNeonAdapterFactory as PrismaNeon,
704
- PrismaNeonHttpAdapterFactory as PrismaNeonHttp
699
+ PrismaNeonHTTPAdapterFactory as PrismaNeonHTTP
705
700
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-neon",
3
- "version": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1",
3
+ "version": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
4
4
  "description": "Prisma's driver adapter for \"@neondatabase/serverless\"",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,10 +33,10 @@
33
33
  "dependencies": {
34
34
  "postgres-array": "3.0.4",
35
35
  "@neondatabase/serverless": ">0.6.0 <2",
36
- "@prisma/driver-adapter-utils": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1"
36
+ "@prisma/driver-adapter-utils": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@prisma/debug": "7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1"
39
+ "@prisma/debug": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1"
40
40
  },
41
41
  "scripts": {
42
42
  "dev": "DEV=true tsx helpers/build.ts",