postgrejs 3.14.1 → 3.14.2

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
@@ -62,35 +62,40 @@ PostgreJS is a driver, not a framework, so what you build on top of it stays you
62
62
  <a href="https://www.sqbjs.org"><img src="https://www.postgrejs.com/img/sqb-logo.svg" alt="SQB" height="60"></a><br><br>
63
63
  <b><a href="https://www.sqbjs.org">SQB</a></b><br>
64
64
  <a href="https://www.npmjs.com/package/@sqb/postgres"><code>@sqb/postgres</code></a><br>
65
- <sub>first-party adapter</sub>
65
+ <sub>built-in adapter</sub>
66
+ </td>
67
+ <td align="center" width="230" valign="top">
68
+ <a href="https://joist-orm.io"><img src="https://www.postgrejs.com/img/joist-logo.svg" alt="Joist" height="60"></a><br><br>
69
+ <b><a href="https://joist-orm.io">Joist</a></b><br>
70
+ <a href="https://www.npmjs.com/package/joist-orm"><code>joist-orm/postgrejs</code></a><br>
71
+ <sub>built-in driver</sub>
66
72
  </td>
67
73
  <td align="center" width="230" valign="top">
68
74
  <a href="https://kysely.dev"><img src="https://www.postgrejs.com/img/kysely-logo.svg" alt="Kysely" height="60"></a><br><br>
69
75
  <b><a href="https://kysely.dev">Kysely</a></b><br>
70
76
  <a href="https://github.com/panates/postgrejs-kysely"><code>kysely-postgrejs</code></a><br>
71
- <sub>dialect</sub>
77
+ <sub>third-party dialect</sub>
72
78
  </td>
79
+ </tr>
80
+ <tr>
73
81
  <td align="center" width="230" valign="top">
74
82
  <a href="https://orm.drizzle.team"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.postgrejs.com/img/drizzle-logo-dark.svg"><img src="https://www.postgrejs.com/img/drizzle-logo-light.svg" alt="Drizzle ORM" height="34"></picture></a><br><br>
75
83
  <b><a href="https://orm.drizzle.team">Drizzle ORM</a></b><br>
76
84
  <a href="https://github.com/panates/postgrejs-drizzle"><code>drizzle-postgrejs</code></a><br>
77
- <sub>driver</sub>
85
+ <sub>third-party driver</sub>
78
86
  </td>
79
- </tr>
80
- <tr>
81
87
  <td align="center" width="230" valign="top">
82
88
  <a href="https://typeorm.io"><img src="https://www.postgrejs.com/img/typeorm-icon.png" alt="TypeORM" height="60"></a><br><br>
83
89
  <b><a href="https://typeorm.io">TypeORM</a></b><br>
84
90
  <a href="https://github.com/panates/postgrejs-typeorm"><code>typeorm-postgrejs</code></a><br>
85
- <sub>driver</sub>
91
+ <sub>third-party driver</sub>
86
92
  </td>
87
93
  <td align="center" width="230" valign="top">
88
94
  <a href="https://www.prisma.io"><img src="https://www.postgrejs.com/img/prisma-icon.svg" alt="Prisma" height="60"></a><br><br>
89
95
  <b><a href="https://www.prisma.io">Prisma</a></b><br>
90
96
  <a href="https://github.com/panates/postgrejs-prisma"><code>prisma-postgrejs</code></a><br>
91
- <sub>driver adapter</sub>
97
+ <sub>third-party adapter</sub>
92
98
  </td>
93
- <td width="230"></td>
94
99
  </tr>
95
100
  </table>
96
101
 
@@ -98,6 +103,9 @@ Each adapter hands the compiled SQL straight to this client, with no `pg` left a
98
103
  compared query by query against the driver it replaces - and, where the project ships a suite of its own, run
99
104
  against that too. So adopting one is a change to how the connection is created and nothing else.
100
105
 
106
+ Joist's is the Joist project's own, and uses `RowDecoder` to leave each cell undecoded until an entity reads it.
107
+ Codegen and migrations there still run on `pg`, though the runtime does not.
108
+
101
109
  ### 🌍 Runs Where You Run
102
110
 
103
111
  <!-- Same card shape as the adapters above, for the same reason: GitHub strips CSS, and a table
@@ -141,7 +149,7 @@ Upgrading from 3.5? See [doc/MIGRATION-v3.5-to-v3.6.md](doc/MIGRATION-v3.5-to-v3
141
149
 
142
150
  - **Language:** Pure JavaScript, with no native/binary dependencies to compile or ship.
143
151
  - **Strictly typed:** Written entirely in TypeScript, with types shipped alongside the package.
144
- - **Modern module format:** Ships as ESM; Node 20.19+/22.12+ can `require()` it from CommonJS code as well.
152
+ - **Modern module format:** Ships as ESM; Node 22.12+ can `require()` it from CommonJS code as well.
145
153
  - **Promise-based API:** Every asynchronous operation returns a promise - no callbacks to wrangle.
146
154
  - **Rigorously tested:** A test suite covering the wire protocol, every data type, and connection-handling edge case,
147
155
  run on every push against PostgreSQL 12 through 18.
@@ -344,7 +352,7 @@ you open an issue please provide version of NodeJS and PostgreSQL server.
344
352
 
345
353
  ## Runtime Compatibility
346
354
 
347
- - Node.js >= 20.x
355
+ - Node.js >= 22.x
348
356
  - Bun - the same test suite runs under Bun in CI against PostgreSQL 18 on every push, so Bun is a supported target
349
357
  rather than an untested coincidence. (Coverage is collected on the Node matrix only: `c8` instruments V8's
350
358
  coverage APIs, which JavaScriptCore doesn't have.)
package/constants.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Protocol } from './protocol/protocol.js';
2
2
  import DataFormat = Protocol.DataFormat;
3
- export declare const version = "3.14.1";
3
+ export declare const version = "3.14.2";
4
4
  export { DataFormat };
5
5
  /**
6
6
  * What columns come back in unless something asks otherwise.
package/constants.js CHANGED
@@ -2,7 +2,7 @@ import { Protocol } from './protocol/protocol.js';
2
2
  var DataFormat = Protocol.DataFormat;
3
3
  // @ts-ignore
4
4
  Symbol.asyncDispose ??= Symbol('Symbol.asyncDispose');
5
- export const version = '3.14.1';
5
+ export const version = '3.14.2';
6
6
  export { DataFormat };
7
7
  /**
8
8
  * What columns come back in unless something asks otherwise.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "postgrejs",
3
3
  "description": "Professional PostgreSQL client NodeJS",
4
- "version": "3.14.1",
4
+ "version": "3.14.2",
5
5
  "author": "Panates",
6
6
  "license": "BSD-3-Clause",
7
7
  "dependencies": {
@@ -12,7 +12,7 @@
12
12
  "power-tasks": "^1.14.2",
13
13
  "putil-promisify": "^1.10.1",
14
14
  "putil-varhelpers": "^1.7.0",
15
- "tslib": "^2.8.1"
15
+ "tslib": "^2.9.1"
16
16
  },
17
17
  "type": "module",
18
18
  "module": "./index.js",
@@ -25,7 +25,7 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "engines": {
28
- "node": ">=20.0"
28
+ "node": ">=22.0"
29
29
  },
30
30
  "homepage": "https://www.postgrejs.com/",
31
31
  "contributors": [