@sqb/connect 4.14.1 → 4.15.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/esm/client/adapter.js +2 -1
- package/esm/client/cursor-stream.js +9 -4
- package/esm/client/cursor.js +22 -17
- package/esm/client/extensions.js +5 -1
- package/esm/client/field-info-map.js +5 -1
- package/esm/client/helpers.js +19 -12
- package/esm/client/sqb-client.js +32 -27
- package/esm/client/sqb-connection.js +41 -36
- package/esm/client/types.js +5 -1
- package/esm/index.js +40 -32
- package/esm/orm/backward.js +19 -12
- package/esm/orm/base-entity.js +10 -6
- package/esm/orm/commands/command.helper.js +34 -28
- package/esm/orm/commands/count.command.js +10 -6
- package/esm/orm/commands/create.command.js +18 -14
- package/esm/orm/commands/delete.command.js +10 -6
- package/esm/orm/commands/find.command.js +34 -30
- package/esm/orm/commands/row-converter.js +7 -3
- package/esm/orm/commands/update.command.js +18 -14
- package/esm/orm/decorators/column.decorator.js +10 -7
- package/esm/orm/decorators/embedded.decorator.js +7 -4
- package/esm/orm/decorators/entity.decorator.js +56 -53
- package/esm/orm/decorators/events.decorator.js +27 -19
- package/esm/orm/decorators/foreignkey.decorator.js +7 -4
- package/esm/orm/decorators/index.decorator.js +9 -6
- package/esm/orm/decorators/link.decorator.js +11 -8
- package/esm/orm/decorators/primarykey.decorator.js +11 -8
- package/esm/orm/decorators/transform.decorator.js +11 -7
- package/esm/orm/model/association-field-metadata.js +8 -4
- package/esm/orm/model/association-node.js +6 -2
- package/esm/orm/model/association.js +20 -16
- package/esm/orm/model/column-field-metadata.js +8 -4
- package/esm/orm/model/embedded-field-metadata.js +7 -4
- package/esm/orm/model/entity-metadata.js +50 -47
- package/esm/orm/model/field-metadata.js +2 -1
- package/esm/orm/model/index-metadata.js +2 -1
- package/esm/orm/model/link-chain.js +8 -4
- package/esm/orm/orm.const.js +6 -3
- package/esm/orm/orm.type.js +2 -1
- package/esm/orm/repository.class.js +26 -22
- package/esm/orm/util/apply-mixins.js +4 -1
- package/esm/orm/util/extract-keyvalues.js +9 -6
- package/esm/orm/util/orm.helper.js +20 -10
- package/esm/orm/util/parse-fields-projection.js +11 -6
- package/esm/orm/util/serialize-field.js +13 -10
- package/package.json +28 -22
- package/cjs/package.json +0 -3
package/package.json
CHANGED
|
@@ -1,29 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/connect",
|
|
3
3
|
"description": "Multi-dialect database connection framework written with TypeScript",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.15.0",
|
|
5
5
|
"author": "Panates",
|
|
6
|
-
"contributors": [
|
|
7
|
-
"Eray Hanoglu <e.hanoglu@panates.com>",
|
|
8
|
-
"Ilker Gurelli <i.gurelli@panates.com>"
|
|
9
|
-
],
|
|
10
6
|
"license": "Apache-2.0",
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/sqbjs/sqb.git",
|
|
14
|
-
"directory": "packages/connect"
|
|
15
|
-
},
|
|
16
|
-
"type": "module",
|
|
17
|
-
"module": "./esm/index.js",
|
|
18
|
-
"main": "./cjs/index.js",
|
|
19
|
-
"types": "./types/index.d.ts",
|
|
20
7
|
"scripts": {
|
|
21
8
|
"compile": "tsc",
|
|
22
9
|
"prebuild": "npm run lint && npm run clean",
|
|
23
10
|
"build": "npm run build:cjs && npm run build:esm",
|
|
24
11
|
"build:cjs": "tsc -b tsconfig-build-cjs.json",
|
|
25
12
|
"build:esm": "tsc -b tsconfig-build-esm.json",
|
|
26
|
-
"postbuild": "cp README.md package.json ../../LICENSE ../../build/connect
|
|
13
|
+
"postbuild": "cp README.md package.json ../../LICENSE ../../build/connect",
|
|
27
14
|
"lint": "eslint . --max-warnings=0",
|
|
28
15
|
"lint:fix": "eslint . --max-warnings=0 --fix",
|
|
29
16
|
"format": "prettier . --write --log-level=warn",
|
|
@@ -37,26 +24,45 @@
|
|
|
37
24
|
"dependencies": {
|
|
38
25
|
"debug": "^4.3.6",
|
|
39
26
|
"doublylinked": "^2.5.4",
|
|
40
|
-
"fast-tokenizer": "^1.
|
|
41
|
-
"lightning-pool": "^4.
|
|
27
|
+
"fast-tokenizer": "^1.4.0",
|
|
28
|
+
"lightning-pool": "^4.5.0",
|
|
42
29
|
"lodash": "^4.17.21",
|
|
43
|
-
"power-tasks": "^1.
|
|
30
|
+
"power-tasks": "^1.8.0",
|
|
44
31
|
"putil-isplainobject": "^1.1.5",
|
|
45
32
|
"putil-merge": "^3.13.0",
|
|
46
33
|
"putil-promisify": "^1.10.1",
|
|
47
34
|
"putil-varhelpers": "^1.6.5",
|
|
48
|
-
"strict-typed-events": "^2.
|
|
49
|
-
"ts-gems": "^3.
|
|
35
|
+
"strict-typed-events": "^2.5.0",
|
|
36
|
+
"ts-gems": "^3.5.0"
|
|
50
37
|
},
|
|
51
38
|
"devDependencies": {
|
|
52
39
|
"@types/debug": "^4.1.12",
|
|
53
40
|
"@types/lodash": "^4.17.7",
|
|
54
|
-
"postgrejs": "^2.
|
|
41
|
+
"postgrejs": "^2.16.0"
|
|
55
42
|
},
|
|
56
43
|
"peerDependencies": {
|
|
57
|
-
"@sqb/builder": "^4.
|
|
44
|
+
"@sqb/builder": "^4.15.0",
|
|
58
45
|
"reflect-metadata": "^0.2.2"
|
|
59
46
|
},
|
|
47
|
+
"main": "./cjs/index.js",
|
|
48
|
+
"module": "./esm/index.js",
|
|
49
|
+
"types": "./types/index.d.ts",
|
|
50
|
+
"exports": {
|
|
51
|
+
".": {
|
|
52
|
+
"require": "./cjs/index.js",
|
|
53
|
+
"import": "./esm/index.js",
|
|
54
|
+
"types": "./types/index.d.ts"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"contributors": [
|
|
58
|
+
"Eray Hanoglu <e.hanoglu@panates.com>",
|
|
59
|
+
"Ilker Gurelli <i.gurelli@panates.com>"
|
|
60
|
+
],
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "https://github.com/sqbjs/sqb.git",
|
|
64
|
+
"directory": "packages/connect"
|
|
65
|
+
},
|
|
60
66
|
"engines": {
|
|
61
67
|
"node": ">=16.0",
|
|
62
68
|
"npm": ">=7.0.0"
|
package/cjs/package.json
DELETED