@zintrust/db-mysql 2.4.2 → 2.8.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.
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@zintrust/db-mysql",
3
- "version": "2.4.1",
4
- "buildDate": "2026-06-01T13:35:31.794Z",
3
+ "version": "2.8.1",
4
+ "buildDate": "2026-06-26T06:18:45.432Z",
5
5
  "buildEnvironment": {
6
- "node": "v22.22.1",
7
- "platform": "darwin",
8
- "arch": "arm64"
6
+ "node": "v20.20.2",
7
+ "platform": "linux",
8
+ "arch": "x64"
9
9
  },
10
10
  "git": {
11
- "commit": "98a0caf4",
12
- "branch": "release"
11
+ "commit": "b713112d",
12
+ "branch": "master"
13
13
  },
14
14
  "package": {
15
15
  "engines": {
@@ -23,10 +23,6 @@
23
23
  ]
24
24
  },
25
25
  "files": {
26
- "build-manifest.json": {
27
- "size": 1368,
28
- "sha256": "ed71ee94bd683cc956d85bde3fde1e8c4cd79a7dca9b8196bd286c4c01339dc1"
29
- },
30
26
  "common.d.ts": {
31
27
  "size": 615,
32
28
  "sha256": "fafe13a87e5239d41b537dcdf23d7fc84c25d7b34207d272f149cbadfebfb417"
@@ -41,7 +37,15 @@
41
37
  },
42
38
  "index.js": {
43
39
  "size": 13583,
44
- "sha256": "276d30e01cea3183c61611cb28a69faec4600b85ce847a99befce39251fd4dd4"
40
+ "sha256": "904c45607244f0c03c50c0410174122c3f209d11dcc82ec9673d22044055baa0"
41
+ },
42
+ "index.workers.d.ts": {
43
+ "size": 120,
44
+ "sha256": "abab4f9683f7f67790da9f88ae7ecbb489bda853f9f773f46d40440901c2499a"
45
+ },
46
+ "index.workers.js": {
47
+ "size": 519,
48
+ "sha256": "f2b9e3376ad06bc8cd2ae943c521097423044970654c5fcb9d86a277497f249a"
45
49
  },
46
50
  "register.d.ts": {
47
51
  "size": 180,
@@ -50,6 +54,14 @@
50
54
  "register.js": {
51
55
  "size": 1066,
52
56
  "sha256": "776afb1a7728d8448454a5aee172ce123d81ccf0619cf0228578d55e10697b62"
57
+ },
58
+ "register.workers.d.ts": {
59
+ "size": 182,
60
+ "sha256": "543f33d721bef3e8e5bb9c472bbe76900adaf2e1af3117ae76452b1f9e7bb69c"
61
+ },
62
+ "register.workers.js": {
63
+ "size": 293,
64
+ "sha256": "85322b05d79519a203d093a9abeba0a99b435748f5fdd72879966b8f8e96b0d3"
53
65
  }
54
66
  }
55
67
  }
@@ -1,9 +1,10 @@
1
+ import { ErrorFactory } from '@zintrust/core/errors';
1
2
  // Workers stub: fail loudly only if actually constructed.
2
3
  // Imports none of the Node runtime (no mysql2), so esbuild/wrangler tree-shakes
3
4
  // the whole MySQL driver out of the `workerd`/`worker` bundle.
4
5
  export const MySQLAdapter = Object.freeze({
5
6
  create: (_config) => {
6
- throw new Error('[@zintrust/db-mysql] MySQL is not supported on the Cloudflare Workers runtime. Use DB_CONNECTION=d1.');
7
+ throw ErrorFactory.createConfigError('[@zintrust/db-mysql] MySQL is not supported on the Cloudflare Workers runtime. Use DB_CONNECTION=d1.');
7
8
  },
8
9
  });
9
10
  export default MySQLAdapter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/db-mysql",
3
- "version": "2.4.2",
3
+ "version": "2.8.1",
4
4
  "description": "MySQL and MariaDB database adapter for ZinTrust.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -48,4 +48,4 @@
48
48
  "dependencies": {
49
49
  "mysql2": "^3.22.3"
50
50
  }
51
- }
51
+ }