@restorecommerce/chassis-srv 1.8.10 → 1.9.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/CHANGELOG.md +19 -0
- package/lib/microservice/transport/provider/grpc/middlewares.d.ts.map +1 -1
- package/lib/microservice/transport/provider/grpc/middlewares.js +4 -1
- package/lib/microservice/transport/provider/grpc/middlewares.js.map +1 -1
- package/package.json +34 -35
- package/tsconfig-base.json +12 -0
- package/tsconfig.json +8 -13
- package/tsconfig.lib.json +7 -0
- package/tsconfig.test.json +5 -4
- package/lib/tsconfig.tsbuildinfo +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.9.0](https://github.com/restorecommerce/chassis-srv/compare/@restorecommerce/chassis-srv@1.8.10...@restorecommerce/chassis-srv@1.9.0) (2026-06-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **chassis:** import grpc-client as dist ([9e82d21](https://github.com/restorecommerce/chassis-srv/commit/9e82d214cf21d4c8b2ef7ef108e19e1c00727e05))
|
|
12
|
+
* **chassis:** wrong script commands ([2a1a011](https://github.com/restorecommerce/chassis-srv/commit/2a1a0112260cc5da65f3dcb198874ee179aa3e42))
|
|
13
|
+
* **deps:** upgrade all to ES2025, intermediate ([df43aa5](https://github.com/restorecommerce/chassis-srv/commit/df43aa566a05f4fc3e883dfe5bc088192cda7883))
|
|
14
|
+
* **packages:** remove all pretest builds ([d16ada1](https://github.com/restorecommerce/chassis-srv/commit/d16ada199f057403bed2a99fa6762c95962919cd))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **es2025:** upgrade all to es2025, unify all tsconfigs ([d8371fd](https://github.com/restorecommerce/chassis-srv/commit/d8371fdaac384ca13aa7dfb64ef309c7a263dada))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [1.8.10](https://github.com/restorecommerce/chassis-srv/compare/@restorecommerce/chassis-srv@1.8.9...@restorecommerce/chassis-srv@1.8.10) (2026-05-27)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../../src/microservice/transport/provider/grpc/middlewares.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAOtD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAuB,iBAAiB,CAAC,OAAO,EAAE,QAAQ,EACxD,IAAI,EAAE,oBAAoB,CAAC,OAAO,EAAE,QAAQ,EAAE,aAAa,CAAC,EAC5D,OAAO,EAAE,WAAW,0EAQrB;AAED,eAAO,MAAM,iBAAiB,GAAI,QAAQ,MAAM,MACtB,OAAO,EAAE,QAAQ,EACvC,MAAM,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC,EAC7C,SAAS,WAAW,GAAG,aAAa,2EAoCvC,CAAC;
|
|
1
|
+
{"version":3,"file":"middlewares.d.ts","sourceRoot":"","sources":["../../../../../src/microservice/transport/provider/grpc/middlewares.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAe,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAOtD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAuB,iBAAiB,CAAC,OAAO,EAAE,QAAQ,EACxD,IAAI,EAAE,oBAAoB,CAAC,OAAO,EAAE,QAAQ,EAAE,aAAa,CAAC,EAC5D,OAAO,EAAE,WAAW,0EAQrB;AAED,eAAO,MAAM,iBAAiB,GAAI,QAAQ,MAAM,MACtB,OAAO,EAAE,QAAQ,EACvC,MAAM,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC,EAC7C,SAAS,WAAW,GAAG,aAAa,2EAoCvC,CAAC;AAsBF,wBAAuB,cAAc,CAAC,OAAO,EAAE,QAAQ,EACrD,IAAI,EAAE,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC,EAC7C,OAAO,EAAE,WAAW,iCAarB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServerError } from 'nice-grpc';
|
|
2
2
|
import { isAbortError } from 'abort-controller-x';
|
|
3
3
|
import { metadataPassThrough } from '@restorecommerce/grpc-client/dist/middleware.js';
|
|
4
|
-
import { randomUUID } from 'crypto';
|
|
4
|
+
import { randomUUID } from 'node:crypto';
|
|
5
5
|
const tracingHeader = 'x-request-id';
|
|
6
6
|
export async function* tracingMiddleware(call, context) {
|
|
7
7
|
const nextID = context.metadata.get(tracingHeader) || randomUUID();
|
|
@@ -57,6 +57,9 @@ function bindAsyncGenerator(store, generator) {
|
|
|
57
57
|
[Symbol.asyncIterator]() {
|
|
58
58
|
return this;
|
|
59
59
|
},
|
|
60
|
+
[Symbol.asyncDispose]() {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
export async function* metaMiddleware(call, context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middlewares.js","sourceRoot":"","sources":["../../../../../src/microservice/transport/provider/grpc/middlewares.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAwB,MAAM,WAAW,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAEtF,OAAO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AM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;QACxE,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;QAEtE,CAAC,MAAM,CAAC,aAAa,CAAC;YACpB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,CAAC,MAAM,CAAC,YAAY,CAAC;YACnB,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,cAAc,CACnC,IAA6C,EAC7C,OAAoB;IAEpB,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACtC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC;IAED,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACnC,mBAAmB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAEnC,OAAO,KAAK,CAAC,CAAC,kBAAkB,CAAC,mBAAmB,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QAC5E,GAAG,OAAO;KACX,CAAC,CAAC,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restorecommerce/chassis-srv",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Restore Commerce microservice chassis",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
|
+
"typings": "lib/index.d.ts",
|
|
6
7
|
"author": "n-fuse GmbH",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
@@ -16,53 +17,51 @@
|
|
|
16
17
|
"chassis"
|
|
17
18
|
],
|
|
18
19
|
"type": "module",
|
|
19
|
-
"typings": "lib/index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@restorecommerce/grpc-client": "^2.
|
|
22
|
-
"@restorecommerce/kafka-client": "^1.
|
|
23
|
-
"@restorecommerce/logger": "^1.
|
|
24
|
-
"@restorecommerce/rc-grpc-clients": "^5.
|
|
25
|
-
"@restorecommerce/service-config": "^1.
|
|
26
|
-
"abort-controller-x": "^0.
|
|
27
|
-
"arangojs": "
|
|
28
|
-
"async": "
|
|
21
|
+
"@restorecommerce/grpc-client": "^2.3.0",
|
|
22
|
+
"@restorecommerce/kafka-client": "^1.4.0",
|
|
23
|
+
"@restorecommerce/logger": "^1.4.0",
|
|
24
|
+
"@restorecommerce/rc-grpc-clients": "^5.2.0",
|
|
25
|
+
"@restorecommerce/service-config": "^1.2.0",
|
|
26
|
+
"abort-controller-x": "^0.5.0",
|
|
27
|
+
"arangojs": "9.1.0",
|
|
28
|
+
"async": "3.2.6",
|
|
29
29
|
"async-retry": "^1.3.3",
|
|
30
|
-
"cache-manager": "^
|
|
30
|
+
"cache-manager": "^7.2.8",
|
|
31
31
|
"cls-hooked": "^4.2.2",
|
|
32
|
-
"cls-rtracer": "^2.6.
|
|
33
|
-
"google-protobuf": "^
|
|
32
|
+
"cls-rtracer": "^2.6.4",
|
|
33
|
+
"google-protobuf": "^4.0.2",
|
|
34
34
|
"kafkajs": "^2.2.4",
|
|
35
|
-
"keyv": "^5.
|
|
36
|
-
"long": "^5.2
|
|
37
|
-
"lru-cache": "^11.
|
|
38
|
-
"nice-grpc": "^2.1.
|
|
39
|
-
"nice-grpc-server-reflection": "^3.0.
|
|
40
|
-
"protobufjs": "^
|
|
35
|
+
"keyv": "^5.6.0",
|
|
36
|
+
"long": "^5.3.2",
|
|
37
|
+
"lru-cache": "^11.5.1",
|
|
38
|
+
"nice-grpc": "^2.1.16",
|
|
39
|
+
"nice-grpc-server-reflection": "^3.0.5",
|
|
40
|
+
"protobufjs": "^8.6.3",
|
|
41
41
|
"redis": "4.7.0",
|
|
42
|
-
"remeda": "^2.
|
|
42
|
+
"remeda": "^2.39.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@restorecommerce/dev": "^0.
|
|
46
|
-
"@types/async": "^3.2.
|
|
45
|
+
"@restorecommerce/dev": "^0.3.0",
|
|
46
|
+
"@types/async": "^3.2.25",
|
|
47
47
|
"@types/async-retry": "^1.4.9",
|
|
48
|
-
"@types/
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"eslint": "^9.36.0",
|
|
48
|
+
"@types/node": "^25.9.3",
|
|
49
|
+
"@typescript-eslint/parser": "^8.61.0",
|
|
50
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
51
|
+
"cross-env": "^10.1.0",
|
|
52
|
+
"eslint": "^10.4.1",
|
|
54
53
|
"npm-run-all": "^4.1.5",
|
|
55
|
-
"rimraf": "^6.
|
|
56
|
-
"rxjs": "^7.8.
|
|
54
|
+
"rimraf": "^6.1.3",
|
|
55
|
+
"rxjs": "^7.8.2",
|
|
57
56
|
"should": "^13.2.3",
|
|
58
|
-
"typescript": "^
|
|
59
|
-
"typescript-eslint": "^8.
|
|
60
|
-
"vitest": "^
|
|
57
|
+
"typescript": "^6.0.3",
|
|
58
|
+
"typescript-eslint": "^8.61.0",
|
|
59
|
+
"vitest": "^4.1.8"
|
|
61
60
|
},
|
|
62
61
|
"scripts": {
|
|
63
62
|
"lint": "eslint src",
|
|
64
63
|
"test": "vitest run",
|
|
65
|
-
"build:tsc": "tsc -
|
|
64
|
+
"build:tsc": "tsc -p ./tsconfig.lib.json",
|
|
66
65
|
"build:clean": "rimraf lib",
|
|
67
66
|
"build": "npm-run-all lint build:clean build:tsc"
|
|
68
67
|
},
|
|
@@ -82,5 +81,5 @@
|
|
|
82
81
|
"engines": {
|
|
83
82
|
"node": ">= 20.0.0"
|
|
84
83
|
},
|
|
85
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "809315322ac57d199aa9f2e460b44195a781fe89"
|
|
86
85
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
],
|
|
11
|
-
"exclude": [
|
|
12
|
-
"node_modules",
|
|
13
|
-
"lib",
|
|
14
|
-
"doc"
|
|
2
|
+
"files": [],
|
|
3
|
+
"references": [
|
|
4
|
+
{
|
|
5
|
+
"path": "./tsconfig.test.json"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"path": "./tsconfig.lib.json"
|
|
9
|
+
}
|
|
15
10
|
]
|
|
16
11
|
}
|
package/tsconfig.test.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
2
|
+
"extends": "./tsconfig-base.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"rootDir": ".",
|
|
5
|
+
"target": "es2023",
|
|
6
6
|
},
|
|
7
7
|
"include": [
|
|
8
|
-
"./
|
|
8
|
+
"./src/**/*.ts",
|
|
9
|
+
"./tests/**/*.ts"
|
|
9
10
|
]
|
|
10
11
|
}
|