@platformatic/sql-mapper 3.4.1 → 3.5.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 +1 -1
- package/eslint.config.js +2 -2
- package/{mapper.d.ts → index.d.ts} +68 -10
- package/{mapper.js → index.js} +164 -75
- package/lib/cache.js +17 -16
- package/lib/clean-up.js +3 -7
- package/lib/connection-info.js +2 -4
- package/lib/cursor.js +94 -0
- package/lib/entity.js +182 -68
- package/lib/errors.js +66 -22
- package/lib/queries/index.js +4 -23
- package/lib/queries/mariadb.js +2 -11
- package/lib/queries/mysql-shared.js +9 -19
- package/lib/queries/mysql.js +12 -26
- package/lib/queries/pg.js +12 -29
- package/lib/queries/shared.js +26 -29
- package/lib/queries/sqlite.js +17 -33
- package/lib/telemetry.js +7 -14
- package/lib/utils.js +12 -23
- package/package.json +18 -15
package/package.json
CHANGED
|
@@ -1,50 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/sql-mapper",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "A data mapper utility for SQL databases",
|
|
5
|
-
"main": "
|
|
6
|
-
"
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "index.d.ts",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
9
10
|
"url": "git+https://github.com/platformatic/platformatic.git"
|
|
10
11
|
},
|
|
11
|
-
"author": "
|
|
12
|
+
"author": "Platformatic Inc. <oss@platformatic.dev> (https://platformatic.dev)",
|
|
12
13
|
"license": "Apache-2.0",
|
|
13
14
|
"bugs": {
|
|
14
15
|
"url": "https://github.com/platformatic/platformatic/issues"
|
|
15
16
|
},
|
|
16
17
|
"homepage": "https://github.com/platformatic/platformatic#readme",
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"
|
|
20
|
-
"borp": "^0.17.0",
|
|
19
|
+
"@opentelemetry/api": "^1.9.0",
|
|
20
|
+
"cleaner-spec-reporter": "^0.5.0",
|
|
21
21
|
"eslint": "9",
|
|
22
22
|
"fastify": "^5.0.0",
|
|
23
|
-
"neostandard": "^0.
|
|
24
|
-
"tsd": "^0.
|
|
23
|
+
"neostandard": "^0.12.0",
|
|
24
|
+
"tsd": "^0.33.0",
|
|
25
25
|
"typescript": "^5.5.4"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@databases/mysql": "^
|
|
28
|
+
"@databases/mysql": "^7.0.0",
|
|
29
29
|
"@databases/pg": "^5.5.0",
|
|
30
30
|
"@databases/sql": "^3.3.0",
|
|
31
31
|
"@fastify/error": "^4.0.0",
|
|
32
32
|
"@hapi/topo": "^6.0.2",
|
|
33
|
-
"@matteo.collina/sqlite-pool": "^0.
|
|
33
|
+
"@matteo.collina/sqlite-pool": "^0.6.0",
|
|
34
34
|
"async-cache-dedupe": "^2.1.0",
|
|
35
35
|
"camelcase": "^6.3.0",
|
|
36
36
|
"fastify-plugin": "^5.0.0",
|
|
37
37
|
"inflected": "^2.1.0",
|
|
38
|
-
"@platformatic/
|
|
39
|
-
"@platformatic/telemetry": "3.
|
|
38
|
+
"@platformatic/foundation": "3.5.1",
|
|
39
|
+
"@platformatic/telemetry": "3.5.1"
|
|
40
40
|
},
|
|
41
41
|
"tsd": {
|
|
42
42
|
"directory": "test/types"
|
|
43
43
|
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=22.19.0"
|
|
46
|
+
},
|
|
44
47
|
"scripts": {
|
|
45
48
|
"lint": "eslint",
|
|
46
|
-
"test": "npm run
|
|
47
|
-
"test:runner": "
|
|
49
|
+
"test": "npm run test:typescript && npm run test:postgresql && npm run test:mariadb && npm run test:mysql && npm run test:mysql8 && npm run test:sqlite",
|
|
50
|
+
"test:runner": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/**/*.test.js",
|
|
48
51
|
"test:postgresql": "DB=postgresql npm run test:runner",
|
|
49
52
|
"test:mariadb": "DB=mariadb npm run test:runner",
|
|
50
53
|
"test:mysql": "DB=mysql npm run test:runner",
|