@nmshd/consumption 3.8.0 → 3.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nmshd/consumption",
3
- "version": "3.8.0",
3
+ "version": "3.9.1",
4
4
  "description": "The consumption library extends the transport library.",
5
5
  "homepage": "https://enmeshed.eu",
6
6
  "repository": "github:nmshd/cns-consumption",
@@ -17,71 +17,81 @@
17
17
  "ui5.yaml"
18
18
  ],
19
19
  "scripts": {
20
- "bt": "npm run test:node && npm run build:node && npm run build:test && npm run bundle && npm run test:web",
21
- "build": "npm run build:node && npm run build:test && npm run bundle",
22
- "build:ci": "npm run build:node && .ci/writeBuildInformation.sh && npm run build:test && npm run bundle",
20
+ "build": "npm run build:node && npm run bundle",
21
+ "build:ci": "npm run build:node && .ci/writeBuildInformation.sh && npm run bundle",
23
22
  "build:node": "tsc -p tsconfig.json && madge --circular dist",
24
- "build:test": "tsc -p tsconfig.test.json",
25
- "bundle": "npm run bundle:lib && npm run bundle:min && npm run bundle:test",
23
+ "bundle": "npm run bundle:lib && npm run bundle:min",
26
24
  "bundle:lib": "webpack --stats-all --config webpack.config.js",
27
25
  "bundle:min": "webpack --stats-all --config webpack.min.config.js",
28
- "bundle:test": "webpack --stats-all --config webpack.test.config.js",
29
26
  "cdep": "tsc && madge --circular dist",
30
27
  "lint": "npm run lint:prettier && npm run lint:eslint && npm run lint:tsc",
31
28
  "lint:eslint": "eslint --ext ts ./src ./test",
32
29
  "lint:prettier": "prettier --check .",
33
30
  "lint:tsc": "tsc --noEmit && tsc -p test/tsconfig.json --noEmit",
34
- "test": "npm run test:node && npm run test:web",
31
+ "test": "npm run test:lokijs && npm run test:mongodb",
35
32
  "test:ci": "npm run test",
36
- "test:local": "npm run build && npm run test:local:node && npm run test:web",
37
- "test:local:node": ". ./scripts/testSetup.sh && npm run test:node",
38
- "test:local:node:ferretdb": ". ./scripts/testSetupFerret.sh && npm run test:node:mongodb",
39
- "test:local:node:lokijs": "npm run test:node:lokijs",
40
- "test:local:node:mongodb": ". ./scripts/testSetup.sh && npm run test:node:mongodb",
41
- "test:local:node:teardown": "docker compose -p consumption-tests -f test/docker-compose.yml rm -fsv",
42
- "test:node": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.ts --project ./test/tsconfig.json --exit",
43
- "test:node:lokijs": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.loki.ts --project ./test/tsconfig.json --exit",
44
- "test:node:mongodb": "mocha -r ts-node/register -r tsconfig-paths/register ./test/index.node.mongo.ts --project ./test/tsconfig.json --exit",
45
- "test:web": "browsertest-runner",
46
- "test:web:debug": "browsertest-runner --debug"
33
+ "test:ci:lokijs": "USE_LOKIJS=true jest -i",
34
+ "test:ci:mongodb": "jest -i",
35
+ "test:local": ". ./scripts/testSetup.sh && npm run test",
36
+ "test:local:ferretdb": ". ./scripts/testSetupFerret.sh && npm run test:mongodb",
37
+ "test:local:lokijs": "npm run test:lokijs",
38
+ "test:local:mongodb": ". ./scripts/testSetup.sh && npm run test:mongodb",
39
+ "test:local:teardown": "docker compose -p consumption-tests -f test/docker-compose.yml rm -fsv",
40
+ "test:lokijs": "USE_LOKIJS=true jest",
41
+ "test:mongodb": "jest"
42
+ },
43
+ "jest": {
44
+ "maxWorkers": 1,
45
+ "preset": "ts-jest",
46
+ "setupFilesAfterEnv": [
47
+ "./test/customMatchers.ts",
48
+ "jest-expect-message"
49
+ ],
50
+ "testEnvironment": "node",
51
+ "testTimeout": 60000,
52
+ "transform": {
53
+ "^.+\\.ts$": [
54
+ "ts-jest",
55
+ {
56
+ "tsconfig": "test/tsconfig.json"
57
+ }
58
+ ]
59
+ }
47
60
  },
48
61
  "dependencies": {
49
62
  "@js-soft/docdb-querytranslator": "^1.1.2",
50
- "@nmshd/iql": "^0.0.4",
63
+ "@nmshd/iql": "^1.0.0",
51
64
  "ts-simple-nameof": "^1.3.1"
52
65
  },
53
66
  "devDependencies": {
54
- "@js-soft/docdb-access-loki": "1.0.5",
55
- "@js-soft/docdb-access-mongo": "1.1.5",
56
- "@js-soft/eslint-config-ts": "1.6.5",
57
- "@js-soft/license-check": "1.0.8",
67
+ "@js-soft/docdb-access-loki": "1.0.6",
68
+ "@js-soft/docdb-access-mongo": "1.1.6",
69
+ "@js-soft/eslint-config-ts": "1.6.6",
70
+ "@js-soft/license-check": "1.0.9",
58
71
  "@js-soft/node-logger": "1.1.1",
59
72
  "@js-soft/ts-serval": "2.0.10",
60
73
  "@js-soft/ts-utils": "2.3.3",
61
74
  "@js-soft/web-logger": "1.0.4",
62
- "@nmshd/content": "2.8.0",
75
+ "@nmshd/content": "2.8.4",
63
76
  "@nmshd/crypto": "2.0.5",
64
- "@nmshd/transport": "2.1.4",
65
- "@types/chai": "^4.3.11",
66
- "@types/chai-subset": "^1.3.5",
77
+ "@nmshd/transport": "2.2.1",
67
78
  "@types/glob": "^8.1.0",
79
+ "@types/jest": "^29.5.11",
68
80
  "@types/lodash": "^4.14.202",
69
- "@types/luxon": "^3.3.5",
70
- "@types/mocha": "^10.0.6",
71
- "@types/node": "^20.10.0",
72
- "bt-runner": "^4.0.2",
73
- "chai": "^4.3.10",
74
- "chai-subset": "^1.6.0",
75
- "copy-webpack-plugin": "^11.0.0",
76
- "eslint": "^8.54.0",
81
+ "@types/luxon": "^3.4.1",
82
+ "@types/node": "^20.11.4",
83
+ "copy-webpack-plugin": "^12.0.1",
84
+ "eslint": "^8.56.0",
85
+ "jest": "^29.7.0",
86
+ "jest-expect-message": "^1.1.3",
87
+ "leaked-handles": "^5.2.0",
77
88
  "madge": "^6.1.0",
78
- "mocha": "^10.2.0",
79
- "mocha-param": "^2.0.1",
80
- "prettier": "^3.1.0",
81
- "terser-webpack-plugin": "5.3.9",
82
- "ts-node": "^10.9.1",
89
+ "prettier": "^3.2.2",
90
+ "terser-webpack-plugin": "5.3.10",
91
+ "ts-jest": "^29.1.1",
92
+ "ts-node": "^10.9.2",
83
93
  "tsconfig-paths": "^4.2.0",
84
- "typescript": "5.3.2",
94
+ "typescript": "5.3.3",
85
95
  "webpack": "^5.89.0",
86
96
  "webpack-cli": "^5.1.4"
87
97
  },