@gooddata/sdk-backend-base 9.0.0-alpha.8 → 9.0.0-beta.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 (281) hide show
  1. package/esm/cachingBackend/index.js +14 -14
  2. package/esm/cachingBackend/index.js.map +1 -1
  3. package/esm/customBackend/config.d.ts +2 -2
  4. package/esm/customBackend/config.d.ts.map +1 -1
  5. package/esm/customBackend/execution.d.ts +2 -2
  6. package/esm/customBackend/execution.d.ts.map +1 -1
  7. package/esm/customBackend/execution.js +2 -2
  8. package/esm/customBackend/execution.js.map +1 -1
  9. package/esm/customBackend/index.d.ts +3 -3
  10. package/esm/customBackend/index.d.ts.map +1 -1
  11. package/esm/customBackend/index.js +2 -2
  12. package/esm/customBackend/index.js.map +1 -1
  13. package/esm/customBackend/workspace.d.ts +1 -1
  14. package/esm/customBackend/workspace.d.ts.map +1 -1
  15. package/esm/customBackend/workspace.js +1 -1
  16. package/esm/customBackend/workspace.js.map +1 -1
  17. package/esm/decoratedBackend/catalog.js +1 -1
  18. package/esm/decoratedBackend/catalog.js.map +1 -1
  19. package/esm/decoratedBackend/execution.js +1 -1
  20. package/esm/decoratedBackend/execution.js.map +1 -1
  21. package/esm/decoratedBackend/index.js +1 -1
  22. package/esm/decoratedBackend/index.js.map +1 -1
  23. package/esm/dummyBackend/index.js +3 -3
  24. package/esm/dummyBackend/index.js.map +1 -1
  25. package/esm/eventingBackend/index.js +3 -3
  26. package/esm/eventingBackend/index.js.map +1 -1
  27. package/esm/index.d.ts +37 -37
  28. package/esm/index.d.ts.map +1 -1
  29. package/esm/index.js +35 -35
  30. package/esm/index.js.map +1 -1
  31. package/esm/ldmFactories/catalog/attributeFactory.d.ts +4 -4
  32. package/esm/ldmFactories/catalog/attributeFactory.d.ts.map +1 -1
  33. package/esm/ldmFactories/catalog/attributeFactory.js +5 -5
  34. package/esm/ldmFactories/catalog/attributeFactory.js.map +1 -1
  35. package/esm/ldmFactories/catalog/dateDatasetFactory.d.ts +4 -4
  36. package/esm/ldmFactories/catalog/dateDatasetFactory.d.ts.map +1 -1
  37. package/esm/ldmFactories/catalog/dateDatasetFactory.js +5 -5
  38. package/esm/ldmFactories/catalog/dateDatasetFactory.js.map +1 -1
  39. package/esm/ldmFactories/catalog/factFactory.d.ts +3 -3
  40. package/esm/ldmFactories/catalog/factFactory.d.ts.map +1 -1
  41. package/esm/ldmFactories/catalog/factFactory.js +4 -4
  42. package/esm/ldmFactories/catalog/factFactory.js.map +1 -1
  43. package/esm/ldmFactories/catalog/groupFactory.d.ts +1 -1
  44. package/esm/ldmFactories/catalog/groupFactory.d.ts.map +1 -1
  45. package/esm/ldmFactories/catalog/groupFactory.js +2 -2
  46. package/esm/ldmFactories/catalog/groupFactory.js.map +1 -1
  47. package/esm/ldmFactories/catalog/measureFactory.d.ts +3 -3
  48. package/esm/ldmFactories/catalog/measureFactory.d.ts.map +1 -1
  49. package/esm/ldmFactories/catalog/measureFactory.js +4 -4
  50. package/esm/ldmFactories/catalog/measureFactory.js.map +1 -1
  51. package/esm/ldmFactories/dashboard/insightWidgetFactory.d.ts +2 -2
  52. package/esm/ldmFactories/dashboard/insightWidgetFactory.d.ts.map +1 -1
  53. package/esm/ldmFactories/dashboard/insightWidgetFactory.js +2 -2
  54. package/esm/ldmFactories/dashboard/insightWidgetFactory.js.map +1 -1
  55. package/esm/ldmFactories/dashboard/kpiWidgetFactory.d.ts +2 -2
  56. package/esm/ldmFactories/dashboard/kpiWidgetFactory.d.ts.map +1 -1
  57. package/esm/ldmFactories/dashboard/kpiWidgetFactory.js +3 -3
  58. package/esm/ldmFactories/dashboard/kpiWidgetFactory.js.map +1 -1
  59. package/esm/ldmFactories/dashboard/widgetFactory.d.ts +1 -1
  60. package/esm/ldmFactories/dashboard/widgetFactory.d.ts.map +1 -1
  61. package/esm/ldmFactories/dashboard/widgetFactory.js +1 -1
  62. package/esm/ldmFactories/dashboard/widgetFactory.js.map +1 -1
  63. package/esm/ldmFactories/metadata/attributeFactory.d.ts +2 -2
  64. package/esm/ldmFactories/metadata/attributeFactory.d.ts.map +1 -1
  65. package/esm/ldmFactories/metadata/attributeFactory.js +3 -3
  66. package/esm/ldmFactories/metadata/attributeFactory.js.map +1 -1
  67. package/esm/ldmFactories/metadata/dashboardFactory.d.ts +2 -2
  68. package/esm/ldmFactories/metadata/dashboardFactory.d.ts.map +1 -1
  69. package/esm/ldmFactories/metadata/dashboardFactory.js +3 -3
  70. package/esm/ldmFactories/metadata/dashboardFactory.js.map +1 -1
  71. package/esm/ldmFactories/metadata/dataSetFactory.d.ts +2 -2
  72. package/esm/ldmFactories/metadata/dataSetFactory.d.ts.map +1 -1
  73. package/esm/ldmFactories/metadata/dataSetFactory.js +3 -3
  74. package/esm/ldmFactories/metadata/dataSetFactory.js.map +1 -1
  75. package/esm/ldmFactories/metadata/displayFormFactory.d.ts +2 -2
  76. package/esm/ldmFactories/metadata/displayFormFactory.d.ts.map +1 -1
  77. package/esm/ldmFactories/metadata/displayFormFactory.js +3 -3
  78. package/esm/ldmFactories/metadata/displayFormFactory.js.map +1 -1
  79. package/esm/ldmFactories/metadata/factFactory.d.ts +2 -2
  80. package/esm/ldmFactories/metadata/factFactory.d.ts.map +1 -1
  81. package/esm/ldmFactories/metadata/factFactory.js +3 -3
  82. package/esm/ldmFactories/metadata/factFactory.js.map +1 -1
  83. package/esm/ldmFactories/metadata/factory.d.ts +1 -1
  84. package/esm/ldmFactories/metadata/factory.d.ts.map +1 -1
  85. package/esm/ldmFactories/metadata/factory.js +1 -1
  86. package/esm/ldmFactories/metadata/factory.js.map +1 -1
  87. package/esm/ldmFactories/metadata/measureFactory.d.ts +2 -2
  88. package/esm/ldmFactories/metadata/measureFactory.d.ts.map +1 -1
  89. package/esm/ldmFactories/metadata/measureFactory.js +3 -3
  90. package/esm/ldmFactories/metadata/measureFactory.js.map +1 -1
  91. package/esm/ldmFactories/metadata/variableFactory.d.ts +2 -2
  92. package/esm/ldmFactories/metadata/variableFactory.d.ts.map +1 -1
  93. package/esm/ldmFactories/metadata/variableFactory.js +3 -3
  94. package/esm/ldmFactories/metadata/variableFactory.js.map +1 -1
  95. package/esm/normalizingBackend/index.d.ts +1 -1
  96. package/esm/normalizingBackend/index.d.ts.map +1 -1
  97. package/esm/normalizingBackend/index.js +4 -4
  98. package/esm/normalizingBackend/index.js.map +1 -1
  99. package/esm/normalizingBackend/normalizer.d.ts +2 -0
  100. package/esm/normalizingBackend/normalizer.d.ts.map +1 -1
  101. package/esm/normalizingBackend/normalizer.js +18 -4
  102. package/esm/normalizingBackend/normalizer.js.map +1 -1
  103. package/{dist → esm}/sdk-backend-base.d.ts +2 -0
  104. package/esm/toolkit/execution.d.ts +1 -1
  105. package/esm/toolkit/execution.d.ts.map +1 -1
  106. package/esm/toolkit/execution.js +1 -1
  107. package/esm/toolkit/execution.js.map +1 -1
  108. package/esm/toolkit/paging.js +4 -4
  109. package/esm/toolkit/paging.js.map +1 -1
  110. package/esm/tsdoc-metadata.json +1 -1
  111. package/esm/workspaceSettingsBackend/index.js +3 -3
  112. package/esm/workspaceSettingsBackend/index.js.map +1 -1
  113. package/package.json +25 -35
  114. package/dist/cachingBackend/index.d.ts +0 -230
  115. package/dist/cachingBackend/index.d.ts.map +0 -1
  116. package/dist/cachingBackend/index.js +0 -579
  117. package/dist/cachingBackend/index.js.map +0 -1
  118. package/dist/convertors/fromBackend/afm/result.d.ts +0 -18
  119. package/dist/convertors/fromBackend/afm/result.d.ts.map +0 -1
  120. package/dist/convertors/fromBackend/afm/result.js +0 -28
  121. package/dist/convertors/fromBackend/afm/result.js.map +0 -1
  122. package/dist/customBackend/config.d.ts +0 -151
  123. package/dist/customBackend/config.d.ts.map +0 -1
  124. package/dist/customBackend/config.js +0 -3
  125. package/dist/customBackend/config.js.map +0 -1
  126. package/dist/customBackend/execution.d.ts +0 -14
  127. package/dist/customBackend/execution.d.ts.map +0 -1
  128. package/dist/customBackend/execution.js +0 -139
  129. package/dist/customBackend/execution.js.map +0 -1
  130. package/dist/customBackend/index.d.ts +0 -47
  131. package/dist/customBackend/index.d.ts.map +0 -1
  132. package/dist/customBackend/index.js +0 -150
  133. package/dist/customBackend/index.js.map +0 -1
  134. package/dist/customBackend/workspace.d.ts +0 -29
  135. package/dist/customBackend/workspace.d.ts.map +0 -1
  136. package/dist/customBackend/workspace.js +0 -78
  137. package/dist/customBackend/workspace.js.map +0 -1
  138. package/dist/decoratedBackend/attributes.d.ts +0 -19
  139. package/dist/decoratedBackend/attributes.d.ts.map +0 -1
  140. package/dist/decoratedBackend/attributes.js +0 -41
  141. package/dist/decoratedBackend/attributes.js.map +0 -1
  142. package/dist/decoratedBackend/catalog.d.ts +0 -46
  143. package/dist/decoratedBackend/catalog.d.ts.map +0 -1
  144. package/dist/decoratedBackend/catalog.js +0 -70
  145. package/dist/decoratedBackend/catalog.js.map +0 -1
  146. package/dist/decoratedBackend/dashboards.d.ts +0 -40
  147. package/dist/decoratedBackend/dashboards.d.ts.map +0 -1
  148. package/dist/decoratedBackend/dashboards.js +0 -101
  149. package/dist/decoratedBackend/dashboards.js.map +0 -1
  150. package/dist/decoratedBackend/elements.d.ts +0 -66
  151. package/dist/decoratedBackend/elements.d.ts.map +0 -1
  152. package/dist/decoratedBackend/elements.js +0 -81
  153. package/dist/decoratedBackend/elements.js.map +0 -1
  154. package/dist/decoratedBackend/execution.d.ts +0 -107
  155. package/dist/decoratedBackend/execution.d.ts.map +0 -1
  156. package/dist/decoratedBackend/execution.js +0 -152
  157. package/dist/decoratedBackend/execution.js.map +0 -1
  158. package/dist/decoratedBackend/index.d.ts +0 -54
  159. package/dist/decoratedBackend/index.d.ts.map +0 -1
  160. package/dist/decoratedBackend/index.js +0 -181
  161. package/dist/decoratedBackend/index.js.map +0 -1
  162. package/dist/decoratedBackend/securitySettings.d.ts +0 -12
  163. package/dist/decoratedBackend/securitySettings.d.ts.map +0 -1
  164. package/dist/decoratedBackend/securitySettings.js +0 -21
  165. package/dist/decoratedBackend/securitySettings.js.map +0 -1
  166. package/dist/decoratedBackend/workspaceSettings.d.ts +0 -12
  167. package/dist/decoratedBackend/workspaceSettings.d.ts.map +0 -1
  168. package/dist/decoratedBackend/workspaceSettings.js +0 -22
  169. package/dist/decoratedBackend/workspaceSettings.js.map +0 -1
  170. package/dist/dummyBackend/index.d.ts +0 -62
  171. package/dist/dummyBackend/index.d.ts.map +0 -1
  172. package/dist/dummyBackend/index.js +0 -729
  173. package/dist/dummyBackend/index.js.map +0 -1
  174. package/dist/eventingBackend/index.d.ts +0 -74
  175. package/dist/eventingBackend/index.d.ts.map +0 -1
  176. package/dist/eventingBackend/index.js +0 -84
  177. package/dist/eventingBackend/index.js.map +0 -1
  178. package/dist/index.d.ts +0 -48
  179. package/dist/index.d.ts.map +0 -1
  180. package/dist/index.js +0 -117
  181. package/dist/index.js.map +0 -1
  182. package/dist/ldmFactories/builder.d.ts +0 -75
  183. package/dist/ldmFactories/builder.d.ts.map +0 -1
  184. package/dist/ldmFactories/builder.js +0 -59
  185. package/dist/ldmFactories/builder.js.map +0 -1
  186. package/dist/ldmFactories/catalog/attributeFactory.d.ts +0 -27
  187. package/dist/ldmFactories/catalog/attributeFactory.d.ts.map +0 -1
  188. package/dist/ldmFactories/catalog/attributeFactory.js +0 -63
  189. package/dist/ldmFactories/catalog/attributeFactory.js.map +0 -1
  190. package/dist/ldmFactories/catalog/dateDatasetFactory.d.ts +0 -44
  191. package/dist/ldmFactories/catalog/dateDatasetFactory.d.ts.map +0 -1
  192. package/dist/ldmFactories/catalog/dateDatasetFactory.js +0 -87
  193. package/dist/ldmFactories/catalog/dateDatasetFactory.js.map +0 -1
  194. package/dist/ldmFactories/catalog/factFactory.d.ts +0 -22
  195. package/dist/ldmFactories/catalog/factFactory.d.ts.map +0 -1
  196. package/dist/ldmFactories/catalog/factFactory.js +0 -38
  197. package/dist/ldmFactories/catalog/factFactory.js.map +0 -1
  198. package/dist/ldmFactories/catalog/groupFactory.d.ts +0 -38
  199. package/dist/ldmFactories/catalog/groupFactory.d.ts.map +0 -1
  200. package/dist/ldmFactories/catalog/groupFactory.js +0 -47
  201. package/dist/ldmFactories/catalog/groupFactory.js.map +0 -1
  202. package/dist/ldmFactories/catalog/measureFactory.d.ts +0 -23
  203. package/dist/ldmFactories/catalog/measureFactory.d.ts.map +0 -1
  204. package/dist/ldmFactories/catalog/measureFactory.js +0 -45
  205. package/dist/ldmFactories/catalog/measureFactory.js.map +0 -1
  206. package/dist/ldmFactories/dashboard/insightWidgetFactory.d.ts +0 -31
  207. package/dist/ldmFactories/dashboard/insightWidgetFactory.d.ts.map +0 -1
  208. package/dist/ldmFactories/dashboard/insightWidgetFactory.js +0 -45
  209. package/dist/ldmFactories/dashboard/insightWidgetFactory.js.map +0 -1
  210. package/dist/ldmFactories/dashboard/kpiWidgetFactory.d.ts +0 -34
  211. package/dist/ldmFactories/dashboard/kpiWidgetFactory.d.ts.map +0 -1
  212. package/dist/ldmFactories/dashboard/kpiWidgetFactory.js +0 -55
  213. package/dist/ldmFactories/dashboard/kpiWidgetFactory.js.map +0 -1
  214. package/dist/ldmFactories/dashboard/widgetFactory.d.ts +0 -31
  215. package/dist/ldmFactories/dashboard/widgetFactory.d.ts.map +0 -1
  216. package/dist/ldmFactories/dashboard/widgetFactory.js +0 -29
  217. package/dist/ldmFactories/dashboard/widgetFactory.js.map +0 -1
  218. package/dist/ldmFactories/metadata/attributeFactory.d.ts +0 -24
  219. package/dist/ldmFactories/metadata/attributeFactory.d.ts.map +0 -1
  220. package/dist/ldmFactories/metadata/attributeFactory.js +0 -44
  221. package/dist/ldmFactories/metadata/attributeFactory.js.map +0 -1
  222. package/dist/ldmFactories/metadata/dashboardFactory.d.ts +0 -21
  223. package/dist/ldmFactories/metadata/dashboardFactory.d.ts.map +0 -1
  224. package/dist/ldmFactories/metadata/dashboardFactory.js +0 -28
  225. package/dist/ldmFactories/metadata/dashboardFactory.js.map +0 -1
  226. package/dist/ldmFactories/metadata/dataSetFactory.d.ts +0 -21
  227. package/dist/ldmFactories/metadata/dataSetFactory.d.ts.map +0 -1
  228. package/dist/ldmFactories/metadata/dataSetFactory.js +0 -28
  229. package/dist/ldmFactories/metadata/dataSetFactory.js.map +0 -1
  230. package/dist/ldmFactories/metadata/displayFormFactory.d.ts +0 -24
  231. package/dist/ldmFactories/metadata/displayFormFactory.d.ts.map +0 -1
  232. package/dist/ldmFactories/metadata/displayFormFactory.js +0 -40
  233. package/dist/ldmFactories/metadata/displayFormFactory.js.map +0 -1
  234. package/dist/ldmFactories/metadata/factFactory.d.ts +0 -21
  235. package/dist/ldmFactories/metadata/factFactory.d.ts.map +0 -1
  236. package/dist/ldmFactories/metadata/factFactory.js +0 -28
  237. package/dist/ldmFactories/metadata/factFactory.js.map +0 -1
  238. package/dist/ldmFactories/metadata/factory.d.ts +0 -74
  239. package/dist/ldmFactories/metadata/factory.d.ts.map +0 -1
  240. package/dist/ldmFactories/metadata/factory.js +0 -43
  241. package/dist/ldmFactories/metadata/factory.js.map +0 -1
  242. package/dist/ldmFactories/metadata/measureFactory.d.ts +0 -24
  243. package/dist/ldmFactories/metadata/measureFactory.d.ts.map +0 -1
  244. package/dist/ldmFactories/metadata/measureFactory.js +0 -40
  245. package/dist/ldmFactories/metadata/measureFactory.js.map +0 -1
  246. package/dist/ldmFactories/metadata/variableFactory.d.ts +0 -21
  247. package/dist/ldmFactories/metadata/variableFactory.d.ts.map +0 -1
  248. package/dist/ldmFactories/metadata/variableFactory.js +0 -28
  249. package/dist/ldmFactories/metadata/variableFactory.js.map +0 -1
  250. package/dist/normalizingBackend/index.d.ts +0 -46
  251. package/dist/normalizingBackend/index.d.ts.map +0 -1
  252. package/dist/normalizingBackend/index.js +0 -174
  253. package/dist/normalizingBackend/index.js.map +0 -1
  254. package/dist/normalizingBackend/normalizer.d.ts +0 -131
  255. package/dist/normalizingBackend/normalizer.d.ts.map +0 -1
  256. package/dist/normalizingBackend/normalizer.js +0 -352
  257. package/dist/normalizingBackend/normalizer.js.map +0 -1
  258. package/dist/toolkit/auth.d.ts +0 -83
  259. package/dist/toolkit/auth.d.ts.map +0 -1
  260. package/dist/toolkit/auth.js +0 -106
  261. package/dist/toolkit/auth.js.map +0 -1
  262. package/dist/toolkit/backend.d.ts +0 -8
  263. package/dist/toolkit/backend.d.ts.map +0 -1
  264. package/dist/toolkit/backend.js +0 -3
  265. package/dist/toolkit/backend.js.map +0 -1
  266. package/dist/toolkit/execution.d.ts +0 -54
  267. package/dist/toolkit/execution.d.ts.map +0 -1
  268. package/dist/toolkit/execution.js +0 -88
  269. package/dist/toolkit/execution.js.map +0 -1
  270. package/dist/toolkit/paging.d.ts +0 -52
  271. package/dist/toolkit/paging.d.ts.map +0 -1
  272. package/dist/toolkit/paging.js +0 -109
  273. package/dist/toolkit/paging.js.map +0 -1
  274. package/dist/toolkit/pluginUrlValidation.d.ts +0 -9
  275. package/dist/toolkit/pluginUrlValidation.d.ts.map +0 -1
  276. package/dist/toolkit/pluginUrlValidation.js +0 -50
  277. package/dist/toolkit/pluginUrlValidation.js.map +0 -1
  278. package/dist/workspaceSettingsBackend/index.d.ts +0 -53
  279. package/dist/workspaceSettingsBackend/index.d.ts.map +0 -1
  280. package/dist/workspaceSettingsBackend/index.js +0 -42
  281. package/dist/workspaceSettingsBackend/index.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-base",
3
- "version": "9.0.0-alpha.8",
3
+ "version": "9.0.0-beta.0",
4
4
  "author": "GoodData",
5
5
  "description": "GoodData.UI SDK - Base for backend implementations",
6
6
  "repository": {
@@ -9,25 +9,17 @@
9
9
  "directory": "libs/sdk-backend-base"
10
10
  },
11
11
  "license": "MIT",
12
- "main": "dist/index.js",
13
- "module": "esm/index.js",
14
- "es2015": "esm/index.js",
15
- "browser": "dist/index.js",
16
- "typings": "esm/index.d.ts",
12
+ "type": "module",
13
+ "browser": "./esm/index.js",
14
+ "exports": "./esm/index.js",
15
+ "types": "./esm/index.d.ts",
17
16
  "sideEffects": false,
18
17
  "files": [
19
- "dist/**/*.js",
20
- "dist/**/*.json",
21
- "dist/**/*.d.ts",
22
- "dist/**/*.map",
23
18
  "esm/**/*.js",
24
19
  "esm/**/*.json",
25
20
  "esm/**/*.d.ts",
26
21
  "esm/**/*.map"
27
22
  ],
28
- "config": {
29
- "eslint": "-c .eslintrc.js --ext ts src/"
30
- },
31
23
  "dependencies": {
32
24
  "@braintree/sanitize-url": "^6.0.0",
33
25
  "json-stable-stringify": "^1.0.1",
@@ -36,16 +28,15 @@
36
28
  "ts-invariant": "^0.7.3",
37
29
  "tslib": "^2.5.0",
38
30
  "uuid": "^8.3.2",
39
- "lru-cache": "^8.0.4",
40
- "@gooddata/sdk-backend-spi": "9.0.0-alpha.8",
41
- "@gooddata/sdk-model": "9.0.0-alpha.8",
42
- "@gooddata/util": "9.0.0-alpha.8"
31
+ "lru-cache": "^9.1.1",
32
+ "@gooddata/sdk-backend-spi": "9.0.0-beta.0",
33
+ "@gooddata/sdk-model": "9.0.0-beta.0",
34
+ "@gooddata/util": "9.0.0-beta.0"
43
35
  },
44
36
  "devDependencies": {
45
37
  "@gooddata/eslint-config": "^4.1.0",
46
38
  "@microsoft/api-documenter": "^7.17.0",
47
- "@microsoft/api-extractor": "^7.20.0",
48
- "@types/jest": "^29.5.1",
39
+ "@microsoft/api-extractor": "^7.36.0",
49
40
  "@types/json-stable-stringify": "^1.0.32",
50
41
  "@types/lodash": "^4.14.158",
51
42
  "@types/spark-md5": "^3.0.1",
@@ -53,39 +44,38 @@
53
44
  "@typescript-eslint/eslint-plugin": "^5.57.1",
54
45
  "@typescript-eslint/parser": "^5.57.1",
55
46
  "concurrently": "^6.0.2",
56
- "dependency-cruiser": "^10.1.1",
47
+ "dependency-cruiser": "^13.0.3",
57
48
  "eslint": "^8.25.0",
58
49
  "eslint-plugin-header": "^3.0.0",
59
50
  "eslint-plugin-import": "^2.22.0",
51
+ "eslint-plugin-import-esm": "^1.2.1",
60
52
  "eslint-plugin-jest": "^27.1.1",
61
53
  "eslint-plugin-no-only-tests": "^2.4.0",
62
54
  "eslint-plugin-prettier": "^4.0.0",
63
55
  "eslint-plugin-regexp": "^1.9.0",
64
56
  "eslint-plugin-sonarjs": "^0.16.0",
65
57
  "eslint-plugin-tsdoc": "^0.2.14",
66
- "jest": "^29.5.0",
67
- "jest-junit": "^3.0.0",
68
58
  "prettier": "~2.5.0",
69
- "ts-jest": "^29.1.0",
70
59
  "typescript": "5.0.2",
71
- "@gooddata/reference-workspace": "9.0.0-alpha.8"
60
+ "vitest": "0.31.4",
61
+ "@gooddata/reference-workspace": "9.0.0-beta.0"
72
62
  },
73
63
  "scripts": {
74
- "clean": "rm -rf ci dist esm coverage *.log && jest --clearCache",
64
+ "clean": "rm -rf ci dist esm coverage *.log",
75
65
  "dev": "tsc -p tsconfig.dev.json --watch",
76
- "build": "concurrently \"npm run build-cjs\" \"npm run build-esm\" && npm run api-extractor",
77
- "build-cjs": "tsc -p tsconfig.build.json",
78
- "build-esm": "tsc -p tsconfig.build.esm.json",
66
+ "build": "npm run build-esm && npm run api-extractor",
67
+ "build-esm": "tsc -p tsconfig.build.json",
79
68
  "api-extractor": "mkdir -p api && [ -z \"${CI}\" ] && (api-extractor run -l) || (api-extractor run)",
80
- "test": "jest --watch",
81
- "test-once": "jest --maxWorkers=${JEST_MAX_WORKERS:-'45%'}",
82
- "test-ci": "JEST_JUNIT_OUTPUT=./ci/results/test-results.xml jest --ci --config jest.ci.js",
83
- "eslint": "eslint $npm_package_config_eslint",
84
- "eslint-ci": "mkdir -p ./ci/results && eslint -f checkstyle -o ci/results/eslint-results.xml $npm_package_config_eslint",
69
+ "test": "vitest watch",
70
+ "test-once": "vitest run",
71
+ "test-ci": "vitest run --reporter=junit --outputFile=./ci/results/test-results.xml",
72
+ "eslint": "eslint -c .eslintrc.cjs src/",
73
+ "eslint-fix": "eslint -c .eslintrc.cjs src/ --fix",
74
+ "eslint-ci": "mkdir -p ./ci/results && eslint -f checkstyle -o ci/results/eslint-results.xml -c .eslintrc.cjs src/",
85
75
  "prettier-check": "prettier --check '{src,test}/**/*.{ts,tsx,json,scss,md,yaml,html}'",
86
76
  "prettier-write": "prettier --write '{src,test}/**/*.{ts,tsx,json,scss,md,yaml,html}'",
87
- "dep-cruiser": "depcruise --validate .dependency-cruiser.js --output-type err-long src/",
88
- "dep-cruiser-ci": "depcruise --validate .dependency-cruiser.js --output-type err-long src/",
77
+ "dep-cruiser": "depcruise --validate .dependency-cruiser.cjs --output-type err-long src/",
78
+ "dep-cruiser-ci": "depcruise --validate .dependency-cruiser.cjs --output-type err-long src/",
89
79
  "validate": "npm run dep-cruiser && npm run eslint && npm run prettier-check",
90
80
  "validate-ci": "npm run dep-cruiser-ci && npm run eslint-ci && npm run prettier-check"
91
81
  }
@@ -1,230 +0,0 @@
1
- import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
2
- /**
3
- * Cache control can be used to interact with the caching layer - at the moment to reset the contents of the
4
- * different top-level caches.
5
- *
6
- * @public
7
- */
8
- export type CacheControl = {
9
- /**
10
- * Resets all execution caches.
11
- *
12
- * NOTE: this only resets the top-level caches. If your code holds onto execution results returned by
13
- * caching backend, those have additional sub-caches which _will not_ be impacted by this call.
14
- */
15
- resetExecutions: () => void;
16
- /**
17
- * Resets all catalog caches.
18
- */
19
- resetCatalogs: () => void;
20
- /**
21
- * Resets all organization security settings caches.
22
- */
23
- resetSecuritySettings: () => void;
24
- /**
25
- * Resets all workspace attribute caches.
26
- */
27
- resetAttributes: () => void;
28
- /**
29
- * Resets all workspace settings caches.
30
- */
31
- resetWorkspaceSettings: () => void;
32
- /**
33
- * Convenience method to reset all caches (calls all the particular resets).
34
- */
35
- resetAll: () => void;
36
- };
37
- /**
38
- * Specifies where should the caching decorator apply and to what size should caches grow.
39
- *
40
- * @public
41
- */
42
- export type CachingConfiguration = {
43
- /**
44
- * Maximum number of executions which will have their results cached. The execution fingerprint is used
45
- * as cache key - the caching is thus subject to some limitations. See `defFingerprint` function for more
46
- * information.
47
- *
48
- * When limit is reached, cache entries will be evicted using LRU policy.
49
- *
50
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
51
- * executions cache is dangerous in applications with long-lived sessions that can create many unique executions -
52
- * memory usage will only go up.
53
- *
54
- * When non-positive number is specified, then no caching will be done.
55
- */
56
- maxExecutions?: number;
57
- /**
58
- * Maximum number of execution result's pages to cache PER result. The window offset and limit are used as cache key.
59
- *
60
- * When limit is reached, cache entries will be evicted using LRU policy.
61
- *
62
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
63
- * result window cache is dangerous in applications that read result windows in 'random' fashion.
64
- *
65
- * When non-positive number is specified, then no caching of result windows will be done.
66
- *
67
- * Note: this option has no effect if execution caching is disabled.
68
- */
69
- maxResultWindows?: number;
70
- /**
71
- * Maximum number of workspaces for which to cache catalogs. The workspace identifier is used as cache key. For
72
- * each workspace, there will be a cache entry holding `maxCatalogOptions` entries.
73
- *
74
- * When limit is reached, cache entries will be evicted using LRU policy.
75
- *
76
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
77
- * catalogs cache may be OK in applications where number of workspaces is small - the cache will be limited
78
- * naturally and will not grow uncontrollably.
79
- *
80
- * When non-positive number is specified, then no caching of result windows will be done.
81
- */
82
- maxCatalogs?: number;
83
- /**
84
- * Catalog can be viewed in many different ways - determined by the options specified during load. This option
85
- * indicates how many unique options to cache results for.
86
- *
87
- * When limit is reached, cache entries will be evicted using LRU policy.
88
- *
89
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. How dangerous
90
- * this is depends on how many catalog load options combinations your application allows to create. Recommended
91
- * approach is to load entire catalog of all items once and reuse it. If there is chance that your app can create
92
- * many unique options, then it is better to bound this.
93
- *
94
- * Setting non-positive number here is invalid. If you want to turn off catalog caching, tweak the `maxCatalogs`.
95
- */
96
- maxCatalogOptions?: number;
97
- /**
98
- * Specify function to call once the caching is set up. If present, the function will be called
99
- * with an instance of {@link CacheControl} which you can use to interact with the caches.
100
- *
101
- * @param cacheControl - cache control instance
102
- */
103
- onCacheReady?: (cacheControl: CacheControl) => void;
104
- /**
105
- * Maximum number of organizations that will have its security settings cached. The scope string built by
106
- * particular backend implementation from organization ID will be used as cache key.
107
- *
108
- * When limit is reached, cache entries will be evicted using LRU policy.
109
- *
110
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
111
- * security settings organization cache is dangerous in applications with long-lived sessions that can
112
- * create many unique requests and memory usage will only go up.
113
- *
114
- * When non-positive number is specified, then no caching will be done.
115
- */
116
- maxSecuritySettingsOrgs?: number;
117
- /**
118
- * Maximum number of URLs per organization that will have its validation result cached. The URL
119
- * and validation context is used to form a cache key.
120
- *
121
- * When limit is reached, cache entries will be evicted using LRU policy.
122
- *
123
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
124
- * security settings organization URL cache is dangerous in applications with long-lived sessions that can
125
- * create many unique requests and memory usage will only go up.
126
- *
127
- * Setting non-positive number here is invalid. If you want to turn off organization security settings caching,
128
- * tweak the `maxSecuritySettingsOrgs`.
129
- */
130
- maxSecuritySettingsOrgUrls?: number;
131
- /**
132
- * Maximum age of cached organization's URL validation results. The value is in milliseconds.
133
- *
134
- * Items are not pro-actively pruned out as they age, but if you try to get an item that is too old,
135
- * it'll drop it and make a new request to the backend. The purpose of the cache setting is not mainly
136
- * to limit its size to prevent memory usage grow (tweak `maxSecuritySettingsOrgUrls` for that)
137
- * but to propagate URL whitelist changes on backend to the long-lived application sessions.
138
- *
139
- * Setting non-positive number here is invalid. If you want to turn off organization security settings
140
- * caching, tweak the `maxSecuritySettingsOrgs`.
141
- */
142
- maxSecuritySettingsOrgUrlsAge?: number;
143
- /**
144
- * Maximum number of workspaces for which to cache selected {@link @gooddata/sdk-backend-spi#IWorkspaceAttributesService} calls.
145
- * The workspace identifier is used as cache key.
146
- * For each workspace, there will be a cache entry holding `maxAttributeDisplayFormsPerWorkspace` entries for attribute display form-related calls.
147
- *
148
- * When limit is reached, cache entries will be evicted using LRU policy.
149
- *
150
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
151
- * cache may be OK in applications where number of workspaces is small - the cache will be limited
152
- * naturally and will not grow uncontrollably.
153
- *
154
- * When non-positive number is specified, then no caching will be done.
155
- */
156
- maxAttributeWorkspaces?: number;
157
- /**
158
- * Maximum number of attribute display forms to cache per workspace.
159
- *
160
- * When limit is reached, cache entries will be evicted using LRU policy.
161
- *
162
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
163
- * attribute display form cache may be OK in applications where number of attribute display forms is small
164
- * and/or they are requested infrequently - the cache will be limited naturally and will not grow uncontrollably.
165
- *
166
- * Setting non-positive number here is invalid. If you want to turn off attribute display form
167
- * caching, tweak the `maxAttributeWorkspaces` value.
168
- */
169
- maxAttributeDisplayFormsPerWorkspace?: number;
170
- /**
171
- * Maximum number of attributes to cache per workspace.
172
- *
173
- * When limit is reached, cache entries will be evicted using LRU policy.
174
- *
175
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
176
- * attribute cache may be OK in applications where number of attributes is small and/or they are requested
177
- * infrequently - the cache will be limited naturally and will not grow uncontrollably.
178
- *
179
- * Setting non-positive number here is invalid. If you want to turn off attribute caching,
180
- * tweak the `maxAttributeWorkspaces` value.
181
- */
182
- maxAttributesPerWorkspace?: number;
183
- /**
184
- * Maximum number of attribute element results to cache per workspace.
185
- *
186
- * Note that not all the queries are cached (e.g. queries with `filter` value).
187
- *
188
- * When limit is reached, cache entries will be evicted using LRU policy.
189
- *
190
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
191
- * attribute elements cache may be OK in applications where number of attributes and/or their elements is small
192
- * and/or they are requested infrequently - the cache will be limited naturally and will not grow uncontrollably.
193
- *
194
- * The `maxAttributeWorkspaces` value must be positive, otherwise this setting is ignored.
195
- * When non-positive number is specified, then no caching of attribute element results will be done.
196
- */
197
- maxAttributeElementResultsPerWorkspace?: number;
198
- /**
199
- * Maximum number of settings for a workspace and for a user to cache per workspace.
200
- *
201
- * When limit is reached, cache entries will be evicted using LRU policy.
202
- *
203
- * When no maximum number is specified, the cache will be unbounded and no evictions will happen. Unbounded
204
- * workspace settings cache is dangerous in applications that change query the settings of many different
205
- * workspaces - this will cache quite large objects for each workspace and can make the memory usage go up.
206
- *
207
- * When non-positive number is specified, then no caching of result windows will be done.
208
- */
209
- maxWorkspaceSettings?: number;
210
- };
211
- /**
212
- * These are the recommended settings for the backend caching.
213
- *
214
- * @remarks
215
- * For more information on what the options mean see {@link CachingConfiguration}.
216
- *
217
- * @public
218
- */
219
- export declare const RecommendedCachingConfiguration: CachingConfiguration;
220
- /**
221
- * Adds caching layer on top of an existing analytical backend instance. It is currently possible to cache
222
- * results of executions and the workspace LDM catalog.
223
- *
224
- * @remarks see {@link CachingConfiguration} properties for more information.
225
- * @param realBackend - real backend to decorate with caching
226
- * @param config - caching configuration. {@link RecommendedCachingConfiguration} can be used
227
- * @public
228
- */
229
- export declare function withCaching(realBackend: IAnalyticalBackend, config: CachingConfiguration): IAnalyticalBackend;
230
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cachingBackend/index.ts"],"names":[],"mappings":"AACA,OAAO,EACH,kBAAkB,EAoBrB,MAAM,2BAA2B,CAAC;AAkuBnC;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB;;;;;OAKG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAE5B;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAElC;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAE5B;;OAEG;IACH,sBAAsB,EAAE,MAAM,IAAI,CAAC;IAEnC;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;IAEpD;;;;;;;;;;;OAWG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;;;;;;;;;OAYG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC;;;;;;;;;;OAUG;IACH,6BAA6B,CAAC,EAAE,MAAM,CAAC;IAEvC;;;;;;;;;;;;OAYG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;;;;;;;;OAWG;IACH,oCAAoC,CAAC,EAAE,MAAM,CAAC;IAE9C;;;;;;;;;;;OAWG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;;;;;;;;;;;OAaG;IACH,sCAAsC,CAAC,EAAE,MAAM,CAAC;IAEhD;;;;;;;;;;OAUG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AASF;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,EAAE,oBAa7C,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACvB,WAAW,EAAE,kBAAkB,EAC/B,MAAM,EAAE,oBAAoB,GAC7B,kBAAkB,CA8CpB"}