@depup/mysql2 3.23.3-depup.0 → 3.23.4-depup.0

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
@@ -13,8 +13,8 @@ npm install @depup/mysql2
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [mysql2](https://www.npmjs.com/package/mysql2) @ 3.23.3 |
17
- | Processed | 2026-08-10 |
16
+ | Original | [mysql2](https://www.npmjs.com/package/mysql2) @ 3.23.4 |
17
+ | Processed | 2026-08-20 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-08-10T08:33:35.827Z",
3
+ "timestamp": "2026-08-20T08:13:41.208Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -405,7 +405,7 @@ class Packet {
405
405
  return (
406
406
  (sign === -1 ? '-' : '') +
407
407
  [leftPad(2, d * 24 + H), leftPad(2, M), leftPad(2, S)].join(':') +
408
- (ms ? `.${ms}`.replace(/0+$/, '') : '')
408
+ (ms ? `.${leftPad(6, ms)}`.replace(/0+$/, '') : '')
409
409
  );
410
410
  }
411
411
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/mysql2",
3
- "version": "3.23.3-depup.0",
3
+ "version": "3.23.4-depup.0",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS (with updated dependencies)",
5
5
  "main": "index.js",
6
6
  "typings": "typings/mysql/index",
@@ -95,8 +95,8 @@
95
95
  "changes": {},
96
96
  "depsUpdated": 0,
97
97
  "originalPackage": "mysql2",
98
- "originalVersion": "3.23.3",
99
- "processedAt": "2026-08-10T08:33:41.780Z",
98
+ "originalVersion": "3.23.4",
99
+ "processedAt": "2026-08-20T08:13:45.307Z",
100
100
  "smokeTest": "passed"
101
101
  }
102
102
  }
@@ -70,6 +70,16 @@ declare class Pool extends QueryableBase(ExecutableBase(EventEmitter)) {
70
70
 
71
71
  unprepare(sql: string): PrepareStatementInfo;
72
72
 
73
+ /**
74
+ * Escaping helpers, available on a `Pool` just like on a `Connection`.
75
+ */
76
+ escape(value: any): string;
77
+
78
+ escapeId(value: string): string;
79
+ escapeId(values: string[]): string;
80
+
81
+ format(sql: string, values?: any | any[] | { [param: string]: any }): string;
82
+
73
83
  promise(promiseImpl?: PromiseConstructor): PromisePool;
74
84
 
75
85
  config: PoolOptions;
@@ -1,11 +1,16 @@
1
1
  import { Connection } from './Connection.js';
2
- import { Pool as PromisePool } from '../../../promise.js';
2
+ import { PoolConnection as PromisePoolConnection } from '../../../promise.js';
3
3
 
4
4
  declare class PoolConnection extends Connection {
5
5
  connection: Connection;
6
6
  release(): void;
7
7
  [Symbol.dispose](): void;
8
- promise(promiseImpl?: PromiseConstructor): PromisePool;
8
+ /**
9
+ * Returns a promise-based wrapper around this pooled connection.
10
+ *
11
+ * Note: this resolves to a `PoolConnection` from `mysql2/promise`, not to a `Pool`.
12
+ */
13
+ promise(promiseImpl?: PromiseConstructor): PromisePoolConnection;
9
14
  }
10
15
 
11
16
  export { PoolConnection };