kuzzle 2.15.1 → 2.16.2

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 (56) hide show
  1. package/lib/api/controllers/serverController.js +24 -4
  2. package/lib/api/funnel.js +19 -0
  3. package/lib/{config → api}/httpRoutes.js +29 -14
  4. package/lib/api/openApiGenerator.d.ts +6 -0
  5. package/lib/api/openApiGenerator.js +167 -126
  6. package/lib/api/openapi/document/count.yaml +47 -0
  7. package/lib/api/openapi/document/create.yaml +46 -0
  8. package/lib/api/openapi/document/createOrReplace.yaml +61 -0
  9. package/lib/api/openapi/document/delete.yaml +67 -0
  10. package/lib/api/openapi/document/deleteByQuery.yaml +90 -0
  11. package/lib/api/openapi/document/exists.yaml +35 -0
  12. package/lib/api/openapi/document/get.yaml +68 -0
  13. package/lib/api/openapi/document/index.d.ts +20 -0
  14. package/lib/api/openapi/document/index.js +55 -0
  15. package/lib/api/openapi/document/replace.yaml +66 -0
  16. package/lib/api/openapi/document/scroll.yaml +49 -0
  17. package/lib/api/openapi/document/update.yaml +78 -0
  18. package/lib/api/openapi/index.d.ts +2 -0
  19. package/lib/api/openapi/index.js +18 -0
  20. package/lib/api/openapi/payloads.yaml +32 -0
  21. package/lib/api/request/kuzzleRequest.d.ts +30 -32
  22. package/lib/api/request/kuzzleRequest.js +30 -102
  23. package/lib/api/request/requestContext.d.ts +17 -22
  24. package/lib/api/request/requestContext.js +44 -109
  25. package/lib/api/request/requestInput.d.ts +19 -22
  26. package/lib/api/request/requestInput.js +115 -173
  27. package/lib/api/request/requestResponse.d.ts +12 -8
  28. package/lib/api/request/requestResponse.js +35 -29
  29. package/lib/config/default.config.js +1 -1
  30. package/lib/core/network/router.js +33 -0
  31. package/lib/core/plugin/pluginsManager.js +3 -1
  32. package/lib/core/realtime/hotelClerk.d.ts +7 -0
  33. package/lib/core/realtime/hotelClerk.js +14 -0
  34. package/lib/core/storage/clientAdapter.js +1 -1
  35. package/lib/kuzzle/kuzzle.js +9 -5
  36. package/lib/util/readYamlFile.d.ts +2 -0
  37. package/lib/util/readYamlFile.js +10 -0
  38. package/package-lock.json +163 -178
  39. package/package.json +12 -26
  40. package/.kuzzlerc.sample +0 -988
  41. package/CONTRIBUTING.md +0 -116
  42. package/bin/.lib/colorOutput.js +0 -71
  43. package/bin/.upgrades/connectors/es.js +0 -90
  44. package/bin/.upgrades/connectors/redis.js +0 -112
  45. package/bin/.upgrades/lib/connectorContext.js +0 -38
  46. package/bin/.upgrades/lib/context.js +0 -142
  47. package/bin/.upgrades/lib/formatters.js +0 -103
  48. package/bin/.upgrades/lib/inquirerExtended.js +0 -46
  49. package/bin/.upgrades/lib/logger.js +0 -99
  50. package/bin/.upgrades/lib/progressBar.js +0 -70
  51. package/bin/.upgrades/versions/v1/checkConfiguration.js +0 -85
  52. package/bin/.upgrades/versions/v1/index.js +0 -35
  53. package/bin/.upgrades/versions/v1/upgradeCache.js +0 -149
  54. package/bin/.upgrades/versions/v1/upgradeStorage.js +0 -450
  55. package/protocols/available/.gitignore +0 -4
  56. package/protocols/enabled/.gitignore +0 -4
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.15.1",
4
+ "version": "2.16.2",
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.1",
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",
@@ -66,8 +67,8 @@
66
67
  "ms": "^2.1.3",
67
68
  "murmurhash-native": "^3.5.0",
68
69
  "nanoid": "^3.1.30",
69
- "node-segfault-handler": "^1.0.3",
70
- "openapi-enforcer": "^1.15.5",
70
+ "node-segfault-handler": "^1.0.4",
71
+ "openapi-enforcer": "^1.16.0",
71
72
  "passport": "^0.5.0",
72
73
  "protobufjs": "~6.11.2",
73
74
  "rc": "1.2.8",
@@ -77,10 +78,10 @@
77
78
  "uuid": "^8.3.2",
78
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": {
@@ -89,14 +90,14 @@
89
90
  },
90
91
  "devDependencies": {
91
92
  "@types/lodash": "^4.14.177",
92
- "@typescript-eslint/eslint-plugin": "^5.4.0",
93
- "@typescript-eslint/parser": "^5.4.0",
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.3.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",
@@ -117,31 +118,16 @@
117
118
  },
118
119
  "license": "Apache-2.0",
119
120
  "files": [
120
- "bin/**/*.js",
121
- "bin/**/*.d.ts",
122
121
  "lib/**/*.js",
123
122
  "lib/**/*.d.ts",
124
123
  "lib/**/*.json",
125
124
  "lib/**/*.proto",
126
- "plugins/kuzzle-plugin-cluster/*.js",
127
- "plugins/kuzzle-plugin-cluster/*.d.ts",
128
- "plugins/kuzzle-plugin-cluster/*.json",
129
- "plugins/kuzzle-plugin-cluster/LICENSE.md",
130
- "plugins/kuzzle-plugin-cluster/README.md",
131
- "plugins/kuzzle-plugin-cluster/.keep",
132
- "protocols/**/*.js",
133
- "protocols/**/*.d.ts",
134
- "protocols/**/*.json",
135
- "protocols/**/LICENSE.md",
136
- "protocols/**/README.md",
137
- "protocols/**/.keep",
125
+ "lib/**/*.yaml",
138
126
  "package.json",
139
127
  "package-lock.json",
140
128
  "index.js",
141
129
  "index.d.ts",
142
- ".kuzzlerc.sample",
143
130
  "LICENSE.md",
144
- "CONTRIBUTING.md",
145
131
  "README.md"
146
132
  ]
147
133
  }