kuzzle 2.14.16 → 2.16.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.
Files changed (38) hide show
  1. package/lib/api/controllers/adminController.js +5 -0
  2. package/lib/api/controllers/documentController.js +1 -5
  3. package/lib/api/controllers/serverController.js +24 -4
  4. package/lib/api/funnel.js +19 -0
  5. package/lib/{config → api}/httpRoutes.js +30 -14
  6. package/lib/api/openApiGenerator.d.ts +6 -0
  7. package/lib/api/openApiGenerator.js +167 -126
  8. package/lib/api/openapi/documents/document.d.ts +21 -0
  9. package/lib/api/openapi/documents/document.js +57 -0
  10. package/lib/api/openapi/tools.d.ts +2 -0
  11. package/lib/api/openapi/tools.js +10 -0
  12. package/lib/api/request/kuzzleRequest.d.ts +30 -32
  13. package/lib/api/request/kuzzleRequest.js +30 -102
  14. package/lib/api/request/requestContext.d.ts +17 -22
  15. package/lib/api/request/requestContext.js +44 -109
  16. package/lib/api/request/requestInput.d.ts +19 -22
  17. package/lib/api/request/requestInput.js +115 -173
  18. package/lib/api/request/requestResponse.d.ts +12 -8
  19. package/lib/api/request/requestResponse.js +35 -29
  20. package/lib/cluster/idCardHandler.d.ts +140 -0
  21. package/lib/cluster/idCardHandler.js +218 -214
  22. package/lib/cluster/node.js +11 -0
  23. package/lib/cluster/protobuf/sync.proto +4 -0
  24. package/lib/cluster/subscriber.js +9 -12
  25. package/lib/cluster/workers/IDCardRenewer.js +13 -7
  26. package/lib/config/default.config.js +1 -1
  27. package/lib/core/network/router.js +33 -0
  28. package/lib/core/plugin/pluginsManager.js +3 -1
  29. package/lib/core/realtime/hotelClerk.d.ts +7 -0
  30. package/lib/core/realtime/hotelClerk.js +14 -0
  31. package/lib/core/realtime/notifier.js +16 -18
  32. package/lib/core/storage/clientAdapter.js +11 -5
  33. package/lib/core/storage/indexCache.d.ts +55 -0
  34. package/lib/core/storage/indexCache.js +97 -130
  35. package/lib/kuzzle/kuzzle.js +11 -7
  36. package/lib/service/storage/elasticsearch.js +14 -9
  37. package/package-lock.json +286 -260
  38. package/package.json +18 -17
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kuzzle",
3
3
  "author": "The Kuzzle Team <support@kuzzle.io>",
4
- "version": "2.14.16",
4
+ "version": "2.16.0",
5
5
  "description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
6
6
  "bin": {
7
7
  "kuzzle": "bin/start-kuzzle-server"
@@ -40,17 +40,18 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@elastic/elasticsearch": "https://github.com/elastic/elasticsearch-js/archive/refs/tags/v7.13.0.tar.gz",
43
+ "@types/js-yaml": "^4.0.5",
43
44
  "aedes": "^0.46.1",
44
45
  "bluebird": "^3.7.2",
45
46
  "cli-color": "^2.0.1",
46
47
  "cookie": "^0.4.1",
47
- "debug": "^4.3.2",
48
+ "debug": "^4.3.3",
48
49
  "denque": "^2.0.1",
49
50
  "didyoumean": "^1.2.2",
50
51
  "dumpme": "^1.0.3",
51
52
  "eventemitter3": "^4.0.7",
52
53
  "inquirer": "^8.2.0",
53
- "ioredis": "^4.28.0",
54
+ "ioredis": "^4.28.2",
54
55
  "js-yaml": "^4.1.0",
55
56
  "json-stable-stringify": "^1.0.1",
56
57
  "json2yaml": "^1.1.0",
@@ -61,26 +62,26 @@
61
62
  "kuzzle-sdk": "7.7.6",
62
63
  "kuzzle-vault": "^2.0.4",
63
64
  "lodash": "4.17.21",
64
- "long": "^5.1.0",
65
+ "long": "^5.2.0",
65
66
  "moment": "^2.29.1",
66
67
  "ms": "^2.1.3",
67
68
  "murmurhash-native": "^3.5.0",
68
69
  "nanoid": "^3.1.30",
69
- "openapi-enforcer": "^1.15.5",
70
+ "node-segfault-handler": "^1.0.4",
71
+ "openapi-enforcer": "^1.16.0",
70
72
  "passport": "^0.5.0",
71
73
  "protobufjs": "~6.11.2",
72
74
  "rc": "1.2.8",
73
- "segfault-handler": "^1.3.0",
74
75
  "semver": "^7.3.5",
75
76
  "sorted-array": "^2.0.4",
76
- "uWebSockets.js": "https://github.com/uNetworking/uWebSockets.js/archive/refs/tags/v19.3.0.tar.gz",
77
+ "uWebSockets.js": "https://github.com/uNetworking/uWebSockets.js/archive/refs/tags/v20.0.0.tar.gz",
77
78
  "uuid": "^8.3.2",
78
- "validator": "^13.6.0",
79
+ "validator": "^13.7.0",
79
80
  "winston": "^3.3.3",
80
- "winston-elasticsearch": "0.15.9",
81
+ "winston-elasticsearch": "0.16.0",
81
82
  "winston-syslog": "^2.4.4",
82
83
  "winston-transport": "^4.4.0",
83
- "yargs": "^17.2.1",
84
+ "yargs": "^17.3.0",
84
85
  "zeromq": "^6.0.0-beta.6"
85
86
  },
86
87
  "repository": {
@@ -88,15 +89,15 @@
88
89
  "url": "git://github.com/kuzzleio/kuzzle.git"
89
90
  },
90
91
  "devDependencies": {
91
- "@types/lodash": "^4.14.176",
92
- "@typescript-eslint/eslint-plugin": "^5.2.0",
93
- "@typescript-eslint/parser": "^5.2.0",
92
+ "@types/lodash": "^4.14.177",
93
+ "@typescript-eslint/eslint-plugin": "^5.6.0",
94
+ "@typescript-eslint/parser": "^5.6.0",
94
95
  "async": "^3.2.2",
95
96
  "chokidar": "^3.5.2",
96
97
  "codecov": "^3.8.3",
97
98
  "cucumber": "^6.0.5",
98
99
  "ergol": "^1.0.1",
99
- "eslint": "^8.1.0",
100
+ "eslint": "^8.4.1",
100
101
  "mocha": "^9.1.3",
101
102
  "mock-require": "^3.0.3",
102
103
  "mqtt": "^4.2.8",
@@ -106,10 +107,10 @@
106
107
  "rewire": "^5.0.0",
107
108
  "should": "13.2.3",
108
109
  "should-sinon": "0.0.6",
109
- "sinon": "^11.1.2",
110
- "strip-json-comments": "3.1.1",
110
+ "sinon": "^12.0.1",
111
+ "strip-json-comments": "https://github.com/sindresorhus/strip-json-comments/archive/refs/tags/v3.1.1.tar.gz",
111
112
  "ts-node": "^10.4.0",
112
- "typescript": "^4.4.4",
113
+ "typescript": "^4.5.2",
113
114
  "yaml": "^1.10.2"
114
115
  },
115
116
  "engines": {