postgrejs 2.23.0 → 2.23.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/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  ## Changelog
2
2
 
3
- ### [v2.23.0](https://github.com/panates/postgrejs/compare/v2.22.9...v2.23.0) -
3
+ ### [v2.23.1](https://github.com/panates/postgrejs/compare/v2.23.0...v2.23.1) -
4
+
5
+ #### 💬 General Changes
6
+
7
+ - dev: Updated dependencies and switched to `import type` for cleaner type imports @Eray Hanoğlu
8
+ - dev: Minor lint issue @Eray Hanoğlu
9
+ - dev: Updated action/chechout version @Eray Hanoğlu
10
+ - dev: Minor lint issue @Eray Hanoğlu
11
+ - dev: Set min node test version to 20 @Eray Hanoğlu
12
+
13
+ ### [v2.23.0](https://github.com/panates/postgrejs/compare/v2.22.9...v2.23.0) - 3 April 2026
4
14
 
5
15
  #### 🛠 Refactoring and Updates
6
16
 
@@ -1,5 +1,5 @@
1
- import { DataType } from './interfaces/data-type.js';
2
- import { OID } from './types.js';
1
+ import type { DataType } from './interfaces/data-type.js';
2
+ import type { OID } from './types.js';
3
3
  export declare class DataTypeMap {
4
4
  private _itemsByOID;
5
5
  private _items;
@@ -1,4 +1,5 @@
1
1
  import { DataTypeOIDs } from '../constants.js';
2
+ import { SmartBuffer } from '../protocol/smart-buffer.js';
2
3
  import { decodeBinaryArray } from '../util/decode-binaryarray.js';
3
4
  import { encodeBinaryArray } from '../util/encode-binaryarray.js';
4
5
  import { fastParseInt } from '../util/fast-parseint.js';
@@ -1,3 +1,3 @@
1
- import { DataType } from '../interfaces/data-type.js';
1
+ import type { DataType } from '../interfaces/data-type.js';
2
2
  export declare const TimestamptzType: DataType;
3
3
  export declare const ArrayTimestamptzType: DataType;
@@ -1,4 +1,5 @@
1
1
  import { DataTypeOIDs } from '../constants.js';
2
+ import { SmartBuffer } from '../protocol/smart-buffer.js';
2
3
  import { parseDateTime } from '../util/parse-datetime.js';
3
4
  const timeShift = 946684800000;
4
5
  const timeMul = 4294967296;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "postgrejs",
3
3
  "description": "Professional PostgreSQL client NodeJS",
4
- "version": "2.23.0",
4
+ "version": "2.23.1",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
- "@jsopen/objects": "^2.2.0",
8
+ "@jsopen/objects": "^2.2.3",
9
9
  "doublylinked": "^2.5.6",
10
10
  "lightning-pool": "^4.12.0",
11
11
  "postgres-bytea": "^3.0.0",
@@ -1,3 +1,4 @@
1
+ import { Protocol } from './protocol.js';
1
2
  export class DatabaseError extends Error {
2
3
  severity;
3
4
  code;
@@ -1,4 +1,5 @@
1
1
  import { DEFAULT_COLUMN_FORMAT } from '../constants.js';
2
+ import { DataTypeMap } from '../data-type-map.js';
2
3
  import { encodeBinaryArray } from '../util/encode-binaryarray.js';
3
4
  import { stringifyArrayLiteral } from '../util/stringify-arrayliteral.js';
4
5
  import { Protocol } from './protocol.js';
@@ -1,7 +1,7 @@
1
1
  import { ConnectionState } from '../constants.js';
2
2
  import type { ConnectionConfiguration } from '../interfaces/database-connection-params.js';
3
3
  import { SafeEventEmitter } from '../safe-event-emitter.js';
4
- import { Callback, Maybe } from '../types.js';
4
+ import type { Callback, Maybe } from '../types.js';
5
5
  import { Frontend } from './frontend.js';
6
6
  import { Protocol } from './protocol.js';
7
7
  export type CaptureCallback = (code: Protocol.BackendMessageCode, msg: any, done: (err: Maybe<Error>, result?: any) => void) => void | Promise<void>;
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-useless-assignment */
1
+ /* eslint-disable */
2
2
  const big0 = BigInt(0);
3
3
  const beAnd = BigInt('0xffffffff');
4
4
  const big32 = BigInt(32);