kuzzle 2.15.0 → 2.16.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.
Files changed (55) 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 +21 -0
  14. package/lib/api/openapi/document/index.js +57 -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/payloads.yaml +32 -0
  19. package/lib/api/request/kuzzleRequest.d.ts +30 -32
  20. package/lib/api/request/kuzzleRequest.js +30 -102
  21. package/lib/api/request/requestContext.d.ts +17 -22
  22. package/lib/api/request/requestContext.js +44 -109
  23. package/lib/api/request/requestInput.d.ts +19 -22
  24. package/lib/api/request/requestInput.js +115 -173
  25. package/lib/api/request/requestResponse.d.ts +12 -8
  26. package/lib/api/request/requestResponse.js +35 -29
  27. package/lib/config/default.config.js +1 -1
  28. package/lib/core/network/router.js +33 -0
  29. package/lib/core/plugin/pluginsManager.js +3 -1
  30. package/lib/core/realtime/hotelClerk.d.ts +7 -0
  31. package/lib/core/realtime/hotelClerk.js +14 -0
  32. package/lib/core/storage/clientAdapter.js +1 -1
  33. package/lib/kuzzle/kuzzle.js +9 -5
  34. package/lib/service/storage/elasticsearch.js +14 -9
  35. package/lib/util/readYamlFile.d.ts +2 -0
  36. package/lib/util/readYamlFile.js +10 -0
  37. package/package-lock.json +173 -188
  38. package/package.json +13 -27
  39. package/.kuzzlerc.sample +0 -988
  40. package/CONTRIBUTING.md +0 -116
  41. package/bin/.lib/colorOutput.js +0 -71
  42. package/bin/.upgrades/connectors/es.js +0 -90
  43. package/bin/.upgrades/connectors/redis.js +0 -112
  44. package/bin/.upgrades/lib/connectorContext.js +0 -38
  45. package/bin/.upgrades/lib/context.js +0 -142
  46. package/bin/.upgrades/lib/formatters.js +0 -103
  47. package/bin/.upgrades/lib/inquirerExtended.js +0 -46
  48. package/bin/.upgrades/lib/logger.js +0 -99
  49. package/bin/.upgrades/lib/progressBar.js +0 -70
  50. package/bin/.upgrades/versions/v1/checkConfiguration.js +0 -85
  51. package/bin/.upgrades/versions/v1/index.js +0 -35
  52. package/bin/.upgrades/versions/v1/upgradeCache.js +0 -149
  53. package/bin/.upgrades/versions/v1/upgradeStorage.js +0 -450
  54. package/protocols/available/.gitignore +0 -4
  55. 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.0",
4
+ "version": "2.16.1",
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,13 +62,13 @@
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
- "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.2.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
  }