@vtex/api 6.47.0 → 6.48.1-beta

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 (404) hide show
  1. package/gen/manifest.schema +0 -3
  2. package/lib/{clients/apps → HttpClient}/AppClient.d.ts +3 -3
  3. package/lib/{clients/apps → HttpClient}/AppClient.js +5 -10
  4. package/lib/{clients/apps → HttpClient}/AppGraphQLClient.d.ts +3 -3
  5. package/lib/{clients/apps → HttpClient}/AppGraphQLClient.js +5 -10
  6. package/lib/{clients/external → HttpClient}/ExternalClient.d.ts +3 -3
  7. package/lib/{clients/external → HttpClient}/ExternalClient.js +2 -9
  8. package/lib/HttpClient/GraphQLClient.d.ts +1 -2
  9. package/lib/HttpClient/GraphQLClient.js +1 -4
  10. package/lib/HttpClient/HttpClient.d.ts +5 -6
  11. package/lib/HttpClient/HttpClient.js +21 -63
  12. package/lib/{clients → HttpClient}/IOClient.d.ts +4 -4
  13. package/lib/HttpClient/IOClient.js +14 -0
  14. package/lib/{clients → HttpClient}/IOGraphQLClient.d.ts +4 -4
  15. package/lib/{clients → HttpClient}/IOGraphQLClient.js +2 -2
  16. package/lib/{clients/infra → HttpClient}/InfraClient.d.ts +3 -3
  17. package/lib/{clients/infra → HttpClient}/InfraClient.js +4 -9
  18. package/lib/{clients/janus → HttpClient}/JanusClient.d.ts +3 -3
  19. package/lib/{clients/janus → HttpClient}/JanusClient.js +3 -7
  20. package/lib/HttpClient/factories/index.d.ts +8 -0
  21. package/lib/HttpClient/factories/index.js +31 -0
  22. package/lib/HttpClient/index.d.ts +7 -1
  23. package/lib/HttpClient/index.js +7 -1
  24. package/lib/HttpClient/middlewares/cache.d.ts +2 -8
  25. package/lib/HttpClient/middlewares/cache.js +31 -120
  26. package/lib/HttpClient/middlewares/cancellationToken.d.ts +1 -1
  27. package/lib/HttpClient/middlewares/cancellationToken.js +1 -2
  28. package/lib/HttpClient/middlewares/memoization.js +1 -8
  29. package/lib/HttpClient/middlewares/metrics.js +31 -12
  30. package/lib/HttpClient/middlewares/recorder.d.ts +1 -1
  31. package/lib/HttpClient/middlewares/recorder.js +13 -16
  32. package/lib/HttpClient/middlewares/request.d.ts +10 -0
  33. package/lib/HttpClient/middlewares/request.js +87 -0
  34. package/lib/HttpClient/typings.d.ts +9 -43
  35. package/lib/IODataSource.d.ts +27 -0
  36. package/lib/IODataSource.js +46 -0
  37. package/lib/caches/LRUCache.js +1 -5
  38. package/lib/caches/LRUDiskCache.js +1 -5
  39. package/lib/clients/Apps.d.ts +84 -0
  40. package/lib/clients/Apps.js +326 -0
  41. package/lib/clients/Assets.d.ts +21 -0
  42. package/lib/clients/{infra/Assets.js → Assets.js} +19 -74
  43. package/lib/clients/Billing.d.ts +11 -0
  44. package/lib/clients/{apps/Billing.js → Billing.js} +3 -8
  45. package/lib/clients/BillingMetrics.d.ts +12 -0
  46. package/lib/clients/BillingMetrics.js +10 -0
  47. package/lib/clients/{apps/Builder.d.ts → Builder.d.ts} +11 -12
  48. package/lib/clients/{apps/Builder.js → Builder.js} +22 -49
  49. package/lib/clients/Events.d.ts +6 -0
  50. package/lib/clients/Events.js +19 -0
  51. package/lib/clients/Housekeeper.d.ts +11 -0
  52. package/lib/clients/Housekeeper.js +24 -0
  53. package/lib/clients/ID.d.ts +22 -0
  54. package/lib/clients/ID.js +48 -0
  55. package/lib/clients/IOClients.d.ts +24 -29
  56. package/lib/clients/IOClients.js +26 -36
  57. package/lib/clients/LicenseManager.d.ts +6 -0
  58. package/lib/clients/{janus/LicenseManager.js → LicenseManager.js} +8 -23
  59. package/lib/clients/Logger.d.ts +27 -0
  60. package/lib/clients/Logger.js +32 -0
  61. package/lib/clients/Messages.d.ts +18 -0
  62. package/lib/clients/Messages.js +20 -0
  63. package/lib/clients/MessagesGraphQL.d.ts +63 -0
  64. package/lib/clients/MessagesGraphQL.js +50 -0
  65. package/lib/clients/Metadata.d.ts +25 -0
  66. package/lib/clients/Metadata.js +53 -0
  67. package/lib/clients/Registry.d.ts +61 -0
  68. package/lib/clients/{infra/Registry.js → Registry.js} +33 -93
  69. package/lib/clients/Router.d.ts +33 -0
  70. package/lib/clients/Router.js +50 -0
  71. package/lib/clients/{janus/Segment.d.ts → Segment.d.ts} +11 -7
  72. package/lib/clients/Segment.js +69 -0
  73. package/lib/clients/{janus/Session.d.ts → Session.d.ts} +4 -4
  74. package/lib/clients/{janus/Session.js → Session.js} +13 -24
  75. package/lib/clients/{apps/Settings.d.ts → Settings.d.ts} +4 -5
  76. package/lib/clients/{apps/Settings.js → Settings.js} +20 -14
  77. package/lib/clients/Sphinx.d.ts +12 -0
  78. package/lib/clients/Sphinx.js +19 -0
  79. package/lib/clients/{janus/Tenant.d.ts → Tenant.d.ts} +7 -6
  80. package/lib/clients/Tenant.js +13 -0
  81. package/lib/clients/VBase.d.ts +57 -0
  82. package/lib/clients/VBase.js +116 -0
  83. package/lib/clients/Workspaces.d.ts +17 -0
  84. package/lib/clients/Workspaces.js +38 -0
  85. package/lib/clients/index.d.ts +21 -9
  86. package/lib/clients/index.js +21 -12
  87. package/lib/constants.d.ts +1 -49
  88. package/lib/constants.js +1 -54
  89. package/lib/errors/ResolverError.d.ts +1 -1
  90. package/lib/errors/ResolverError.js +2 -2
  91. package/lib/errors/ResolverWarning.d.ts +1 -1
  92. package/lib/errors/ResolverWarning.js +2 -2
  93. package/lib/index.d.ts +7 -9
  94. package/lib/index.js +6 -8
  95. package/lib/metrics/MetricsAccumulator.d.ts +18 -1
  96. package/lib/metrics/MetricsAccumulator.js +22 -38
  97. package/lib/responses.d.ts +44 -3
  98. package/lib/service/Runtime.d.ts +18 -0
  99. package/lib/service/Runtime.js +57 -0
  100. package/lib/service/{worker/runtime/Service.d.ts → Service.d.ts} +5 -5
  101. package/lib/service/{worker/runtime/Service.js → Service.js} +1 -2
  102. package/lib/service/events/index.d.ts +3 -0
  103. package/lib/service/events/index.js +21 -0
  104. package/lib/service/graphql/index.d.ts +7 -0
  105. package/lib/service/graphql/index.js +33 -0
  106. package/lib/service/graphql/middlewares/error.js +107 -0
  107. package/lib/service/graphql/middlewares/formatters.d.ts +2 -0
  108. package/lib/service/graphql/middlewares/formatters.js +64 -0
  109. package/lib/service/graphql/middlewares/query.d.ts +2 -0
  110. package/lib/service/graphql/middlewares/query.js +32 -0
  111. package/lib/service/graphql/middlewares/response.js +36 -0
  112. package/lib/service/graphql/middlewares/run.d.ts +4 -0
  113. package/lib/service/graphql/middlewares/run.js +55 -0
  114. package/lib/service/graphql/middlewares/schema.d.ts +2 -0
  115. package/lib/service/graphql/middlewares/schema.js +8 -0
  116. package/lib/service/graphql/middlewares/timings.d.ts +2 -0
  117. package/lib/service/graphql/middlewares/timings.js +10 -0
  118. package/lib/service/graphql/middlewares/upload.d.ts +7 -0
  119. package/lib/service/graphql/schema/index.d.ts +3 -0
  120. package/lib/service/graphql/schema/index.js +66 -0
  121. package/lib/service/graphql/schema/messagesLoader.d.ts +4 -0
  122. package/lib/service/graphql/schema/messagesLoader.js +41 -0
  123. package/lib/service/graphql/schema/messagesLoaderV2.d.ts +5 -0
  124. package/lib/service/graphql/schema/messagesLoaderV2.js +44 -0
  125. package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/Auth.d.ts +0 -1
  126. package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/Auth.js +5 -11
  127. package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/Sanitize.d.ts +0 -1
  128. package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/Sanitize.js +0 -6
  129. package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/SmartCacheDirective.d.ts +0 -1
  130. package/lib/service/{worker/runtime/graphql → graphql}/schema/schemaDirectives/SmartCacheDirective.js +3 -8
  131. package/lib/service/{worker/runtime/graphql/schema/schemaDirectives/TranslateTo.d.ts → graphql/schema/schemaDirectives/Translatable.d.ts} +1 -2
  132. package/lib/service/graphql/schema/schemaDirectives/Translatable.js +54 -0
  133. package/lib/service/graphql/schema/schemaDirectives/TranslatableV2.d.ts +13 -0
  134. package/lib/service/graphql/schema/schemaDirectives/TranslatableV2.js +67 -0
  135. package/lib/service/graphql/schema/schemaDirectives/index.d.ts +13 -0
  136. package/lib/service/graphql/schema/schemaDirectives/index.js +17 -0
  137. package/lib/service/graphql/schema/typeDefs/index.d.ts +16 -0
  138. package/lib/service/graphql/schema/typeDefs/index.js +21 -0
  139. package/lib/service/graphql/schema/typeDefs/ioMessage.d.ts +8 -0
  140. package/lib/service/graphql/schema/typeDefs/ioMessage.js +33 -0
  141. package/lib/service/{worker/runtime/graphql → graphql}/schema/typeDefs/sanitizedString.js +1 -5
  142. package/lib/service/graphql/typings.d.ts +21 -0
  143. package/lib/service/graphql/utils/cacheControl.d.ts +6 -0
  144. package/lib/service/graphql/utils/cacheControl.js +38 -0
  145. package/lib/service/graphql/utils/maxAgeEnum.d.ts +6 -0
  146. package/lib/service/graphql/utils/maxAgeEnum.js +17 -0
  147. package/lib/service/http/index.d.ts +3 -0
  148. package/lib/service/http/index.js +18 -0
  149. package/lib/service/http/middlewares/authTokens.d.ts +3 -0
  150. package/lib/service/http/middlewares/cancellationToken.d.ts +3 -0
  151. package/lib/service/{worker/runtime/http → http}/middlewares/cancellationToken.js +1 -2
  152. package/lib/service/http/middlewares/clients.d.ts +4 -0
  153. package/lib/service/http/middlewares/error.d.ts +3 -0
  154. package/lib/service/{worker/runtime/http → http}/middlewares/error.js +10 -19
  155. package/lib/service/{worker/runtime/http → http}/middlewares/requestStats.d.ts +3 -3
  156. package/lib/service/http/middlewares/setCookie.d.ts +3 -0
  157. package/lib/service/http/middlewares/timings.d.ts +3 -0
  158. package/lib/service/{worker/runtime/http → http}/middlewares/timings.js +8 -21
  159. package/lib/service/http/middlewares/vary.d.ts +3 -0
  160. package/lib/service/{worker/runtime/http → http}/middlewares/vary.js +3 -3
  161. package/lib/service/logger/index.d.ts +28 -2
  162. package/lib/service/logger/index.js +68 -5
  163. package/lib/service/method.d.ts +9 -0
  164. package/lib/service/{worker/runtime/typings.d.ts → typings.d.ts} +36 -70
  165. package/lib/service/utils/compose.d.ts +4 -0
  166. package/lib/service/{worker/runtime/utils → utils}/compose.js +2 -2
  167. package/lib/utils/MineWinsConflictsResolver.d.ts +4 -5
  168. package/lib/utils/MineWinsConflictsResolver.js +17 -23
  169. package/lib/utils/MineWinsConflictsResolver.test.d.ts +1 -0
  170. package/lib/utils/MineWinsConflictsResolver.test.js +134 -0
  171. package/lib/utils/app.d.ts +1 -3
  172. package/lib/utils/app.js +1 -3
  173. package/lib/utils/appsStaleIfError.d.ts +1 -1
  174. package/lib/utils/appsStaleIfError.js +2 -2
  175. package/lib/utils/billingOptions.d.ts +3 -36
  176. package/lib/utils/billingOptions.js +3 -7
  177. package/lib/utils/binding.d.ts +3 -3
  178. package/lib/utils/cancel.d.ts +2 -2
  179. package/lib/utils/cancel.js +1 -2
  180. package/lib/utils/log.d.ts +3 -1
  181. package/lib/utils/log.js +2 -2
  182. package/lib/utils/message.js +1 -4
  183. package/lib/utils/tenant.d.ts +3 -3
  184. package/lib/utils/time.d.ts +2 -4
  185. package/lib/utils/time.js +2 -9
  186. package/lib/utils/unhandled.d.ts +1 -0
  187. package/lib/{service/worker/listeners.js → utils/unhandled.js} +15 -9
  188. package/package.json +2 -2
  189. package/CHANGELOG.md +0 -1846
  190. package/lib/HttpClient/agents.d.ts +0 -3
  191. package/lib/HttpClient/agents.js +0 -24
  192. package/lib/HttpClient/middlewares/request/HttpAgentSingleton.d.ts +0 -11
  193. package/lib/HttpClient/middlewares/request/HttpAgentSingleton.js +0 -30
  194. package/lib/HttpClient/middlewares/request/index.d.ts +0 -18
  195. package/lib/HttpClient/middlewares/request/index.js +0 -84
  196. package/lib/HttpClient/middlewares/request/setupAxios/index.d.ts +0 -1
  197. package/lib/HttpClient/middlewares/request/setupAxios/index.js +0 -20
  198. package/lib/HttpClient/middlewares/request/setupAxios/interceptors/exponentialBackoff.d.ts +0 -2
  199. package/lib/HttpClient/middlewares/request/setupAxios/interceptors/exponentialBackoff.js +0 -53
  200. package/lib/HttpClient/middlewares/request/setupAxios/interceptors/index.d.ts +0 -2
  201. package/lib/HttpClient/middlewares/request/setupAxios/interceptors/index.js +0 -7
  202. package/lib/HttpClient/middlewares/request/setupAxios/interceptors/tracing/index.d.ts +0 -8
  203. package/lib/HttpClient/middlewares/request/setupAxios/interceptors/tracing/index.js +0 -53
  204. package/lib/HttpClient/middlewares/request/setupAxios/interceptors/tracing/spanSetup.d.ts +0 -4
  205. package/lib/HttpClient/middlewares/request/setupAxios/interceptors/tracing/spanSetup.js +0 -29
  206. package/lib/HttpClient/middlewares/tracing.d.ts +0 -15
  207. package/lib/HttpClient/middlewares/tracing.js +0 -56
  208. package/lib/clients/IOClient.js +0 -19
  209. package/lib/clients/apps/Billing.d.ts +0 -12
  210. package/lib/clients/apps/MessagesGraphQL.d.ts +0 -61
  211. package/lib/clients/apps/MessagesGraphQL.js +0 -121
  212. package/lib/clients/apps/catalogGraphQL/brand.d.ts +0 -13
  213. package/lib/clients/apps/catalogGraphQL/brand.js +0 -18
  214. package/lib/clients/apps/catalogGraphQL/category.d.ts +0 -11
  215. package/lib/clients/apps/catalogGraphQL/category.js +0 -16
  216. package/lib/clients/apps/catalogGraphQL/index.d.ts +0 -22
  217. package/lib/clients/apps/catalogGraphQL/index.js +0 -88
  218. package/lib/clients/apps/catalogGraphQL/product.d.ts +0 -25
  219. package/lib/clients/apps/catalogGraphQL/product.js +0 -30
  220. package/lib/clients/apps/catalogGraphQL/sku.d.ts +0 -26
  221. package/lib/clients/apps/catalogGraphQL/sku.js +0 -30
  222. package/lib/clients/apps/index.d.ts +0 -7
  223. package/lib/clients/apps/index.js +0 -12
  224. package/lib/clients/external/ID.d.ts +0 -23
  225. package/lib/clients/external/ID.js +0 -60
  226. package/lib/clients/external/Masterdata.d.ts +0 -94
  227. package/lib/clients/external/Masterdata.js +0 -224
  228. package/lib/clients/external/PaymentProvider.d.ts +0 -31
  229. package/lib/clients/external/PaymentProvider.js +0 -42
  230. package/lib/clients/external/index.d.ts +0 -4
  231. package/lib/clients/external/index.js +0 -9
  232. package/lib/clients/infra/Apps.d.ts +0 -88
  233. package/lib/clients/infra/Apps.js +0 -508
  234. package/lib/clients/infra/Assets.d.ts +0 -34
  235. package/lib/clients/infra/BillingMetrics.d.ts +0 -13
  236. package/lib/clients/infra/BillingMetrics.js +0 -15
  237. package/lib/clients/infra/Events.d.ts +0 -12
  238. package/lib/clients/infra/Events.js +0 -33
  239. package/lib/clients/infra/Housekeeper.d.ts +0 -10
  240. package/lib/clients/infra/Housekeeper.js +0 -30
  241. package/lib/clients/infra/Metadata.d.ts +0 -26
  242. package/lib/clients/infra/Metadata.js +0 -83
  243. package/lib/clients/infra/Registry.d.ts +0 -59
  244. package/lib/clients/infra/Router.d.ts +0 -34
  245. package/lib/clients/infra/Router.js +0 -81
  246. package/lib/clients/infra/Sphinx.d.ts +0 -13
  247. package/lib/clients/infra/Sphinx.js +0 -29
  248. package/lib/clients/infra/VBase.d.ts +0 -60
  249. package/lib/clients/infra/VBase.js +0 -196
  250. package/lib/clients/infra/Workspaces.d.ts +0 -18
  251. package/lib/clients/infra/Workspaces.js +0 -65
  252. package/lib/clients/infra/index.d.ts +0 -12
  253. package/lib/clients/infra/index.js +0 -17
  254. package/lib/clients/janus/LicenseManager.d.ts +0 -7
  255. package/lib/clients/janus/Segment.js +0 -88
  256. package/lib/clients/janus/Tenant.js +0 -28
  257. package/lib/clients/janus/index.d.ts +0 -5
  258. package/lib/clients/janus/index.js +0 -10
  259. package/lib/service/index.d.ts +0 -2
  260. package/lib/service/index.js +0 -30
  261. package/lib/service/loaders.d.ts +0 -8
  262. package/lib/service/loaders.js +0 -54
  263. package/lib/service/logger/console.d.ts +0 -10
  264. package/lib/service/logger/console.js +0 -36
  265. package/lib/service/logger/logger.d.ts +0 -29
  266. package/lib/service/logger/logger.js +0 -61
  267. package/lib/service/logger/metricsLogger.d.ts +0 -40
  268. package/lib/service/logger/metricsLogger.js +0 -149
  269. package/lib/service/master.d.ts +0 -2
  270. package/lib/service/master.js +0 -87
  271. package/lib/service/metrics/requestMetricsMiddleware.d.ts +0 -2
  272. package/lib/service/metrics/requestMetricsMiddleware.js +0 -44
  273. package/lib/service/tracing/TracerSingleton.d.ts +0 -7
  274. package/lib/service/tracing/TracerSingleton.js +0 -48
  275. package/lib/service/tracing/metrics/MetricNames.d.ts +0 -60
  276. package/lib/service/tracing/metrics/MetricNames.js +0 -44
  277. package/lib/service/tracing/metrics/instruments.d.ts +0 -9
  278. package/lib/service/tracing/metrics/instruments.js +0 -11
  279. package/lib/service/tracing/metrics/measurers/EventLoopLagMeasurer.d.ts +0 -9
  280. package/lib/service/tracing/metrics/measurers/EventLoopLagMeasurer.js +0 -25
  281. package/lib/service/tracing/tracingMiddlewares.d.ts +0 -5
  282. package/lib/service/tracing/tracingMiddlewares.js +0 -107
  283. package/lib/service/worker/index.d.ts +0 -11
  284. package/lib/service/worker/index.js +0 -195
  285. package/lib/service/worker/listeners.d.ts +0 -3
  286. package/lib/service/worker/runtime/builtIn/handlers.d.ts +0 -4
  287. package/lib/service/worker/runtime/builtIn/handlers.js +0 -30
  288. package/lib/service/worker/runtime/builtIn/middlewares.d.ts +0 -4
  289. package/lib/service/worker/runtime/builtIn/middlewares.js +0 -40
  290. package/lib/service/worker/runtime/events/index.d.ts +0 -4
  291. package/lib/service/worker/runtime/events/index.js +0 -46
  292. package/lib/service/worker/runtime/events/middlewares/body.d.ts +0 -3
  293. package/lib/service/worker/runtime/events/middlewares/body.js +0 -22
  294. package/lib/service/worker/runtime/events/middlewares/context.d.ts +0 -3
  295. package/lib/service/worker/runtime/events/middlewares/context.js +0 -22
  296. package/lib/service/worker/runtime/events/router.d.ts +0 -2
  297. package/lib/service/worker/runtime/events/router.js +0 -27
  298. package/lib/service/worker/runtime/graphql/index.d.ts +0 -6
  299. package/lib/service/worker/runtime/graphql/index.js +0 -27
  300. package/lib/service/worker/runtime/graphql/middlewares/context.d.ts +0 -2
  301. package/lib/service/worker/runtime/graphql/middlewares/context.js +0 -16
  302. package/lib/service/worker/runtime/graphql/middlewares/error.js +0 -93
  303. package/lib/service/worker/runtime/graphql/middlewares/query.d.ts +0 -2
  304. package/lib/service/worker/runtime/graphql/middlewares/query.js +0 -52
  305. package/lib/service/worker/runtime/graphql/middlewares/response.js +0 -38
  306. package/lib/service/worker/runtime/graphql/middlewares/run.d.ts +0 -2
  307. package/lib/service/worker/runtime/graphql/middlewares/run.js +0 -19
  308. package/lib/service/worker/runtime/graphql/middlewares/updateSchema.d.ts +0 -4
  309. package/lib/service/worker/runtime/graphql/middlewares/updateSchema.js +0 -28
  310. package/lib/service/worker/runtime/graphql/middlewares/upload.d.ts +0 -4
  311. package/lib/service/worker/runtime/graphql/schema/index.d.ts +0 -7
  312. package/lib/service/worker/runtime/graphql/schema/index.js +0 -31
  313. package/lib/service/worker/runtime/graphql/schema/messagesLoaderV2.d.ts +0 -6
  314. package/lib/service/worker/runtime/graphql/schema/messagesLoaderV2.js +0 -79
  315. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/CacheControl.d.ts +0 -7
  316. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/CacheControl.js +0 -37
  317. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Deprecated.d.ts +0 -11
  318. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Deprecated.js +0 -61
  319. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Metric.d.ts +0 -7
  320. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Metric.js +0 -40
  321. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Settings.d.ts +0 -6
  322. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/Settings.js +0 -34
  323. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.d.ts +0 -7
  324. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/TranslatableV2.js +0 -39
  325. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/TranslateTo.js +0 -33
  326. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/index.d.ts +0 -22
  327. package/lib/service/worker/runtime/graphql/schema/schemaDirectives/index.js +0 -36
  328. package/lib/service/worker/runtime/graphql/schema/typeDefs/index.d.ts +0 -7
  329. package/lib/service/worker/runtime/graphql/schema/typeDefs/index.js +0 -12
  330. package/lib/service/worker/runtime/graphql/typings.d.ts +0 -31
  331. package/lib/service/worker/runtime/graphql/utils/cacheControl.d.ts +0 -1
  332. package/lib/service/worker/runtime/graphql/utils/cacheControl.js +0 -32
  333. package/lib/service/worker/runtime/graphql/utils/error.d.ts +0 -1
  334. package/lib/service/worker/runtime/graphql/utils/error.js +0 -76
  335. package/lib/service/worker/runtime/graphql/utils/translations.d.ts +0 -14
  336. package/lib/service/worker/runtime/graphql/utils/translations.js +0 -38
  337. package/lib/service/worker/runtime/http/index.d.ts +0 -5
  338. package/lib/service/worker/runtime/http/index.js +0 -58
  339. package/lib/service/worker/runtime/http/middlewares/authTokens.d.ts +0 -3
  340. package/lib/service/worker/runtime/http/middlewares/cancellationToken.d.ts +0 -3
  341. package/lib/service/worker/runtime/http/middlewares/clients.d.ts +0 -4
  342. package/lib/service/worker/runtime/http/middlewares/context.d.ts +0 -4
  343. package/lib/service/worker/runtime/http/middlewares/context.js +0 -36
  344. package/lib/service/worker/runtime/http/middlewares/error.d.ts +0 -2
  345. package/lib/service/worker/runtime/http/middlewares/rateLimit.d.ts +0 -6
  346. package/lib/service/worker/runtime/http/middlewares/rateLimit.js +0 -42
  347. package/lib/service/worker/runtime/http/middlewares/setCookie.d.ts +0 -3
  348. package/lib/service/worker/runtime/http/middlewares/settings.d.ts +0 -9
  349. package/lib/service/worker/runtime/http/middlewares/settings.js +0 -44
  350. package/lib/service/worker/runtime/http/middlewares/timings.d.ts +0 -3
  351. package/lib/service/worker/runtime/http/middlewares/vary.d.ts +0 -3
  352. package/lib/service/worker/runtime/http/router.d.ts +0 -2
  353. package/lib/service/worker/runtime/http/router.js +0 -23
  354. package/lib/service/worker/runtime/http/routes.d.ts +0 -19
  355. package/lib/service/worker/runtime/http/routes.js +0 -12
  356. package/lib/service/worker/runtime/method.d.ts +0 -9
  357. package/lib/service/worker/runtime/statusTrack.d.ts +0 -14
  358. package/lib/service/worker/runtime/statusTrack.js +0 -37
  359. package/lib/service/worker/runtime/utils/compose.d.ts +0 -5
  360. package/lib/service/worker/runtime/utils/context.d.ts +0 -2
  361. package/lib/service/worker/runtime/utils/context.js +0 -40
  362. package/lib/service/worker/runtime/utils/diff.d.ts +0 -12
  363. package/lib/service/worker/runtime/utils/diff.js +0 -21
  364. package/lib/service/worker/runtime/utils/recorder.d.ts +0 -8
  365. package/lib/service/worker/runtime/utils/recorder.js +0 -37
  366. package/lib/service/worker/runtime/utils/tokenBucket.d.ts +0 -2
  367. package/lib/service/worker/runtime/utils/tokenBucket.js +0 -16
  368. package/lib/tracing/LogEvents.d.ts +0 -31
  369. package/lib/tracing/LogEvents.js +0 -3
  370. package/lib/tracing/LogFields.d.ts +0 -66
  371. package/lib/tracing/LogFields.js +0 -3
  372. package/lib/tracing/Tags.d.ts +0 -81
  373. package/lib/tracing/Tags.js +0 -7
  374. package/lib/tracing/UserLandTracer.d.ts +0 -27
  375. package/lib/tracing/UserLandTracer.js +0 -56
  376. package/lib/tracing/errorReporting/ErrorReport.d.ts +0 -31
  377. package/lib/tracing/errorReporting/ErrorReport.js +0 -70
  378. package/lib/tracing/index.d.ts +0 -9
  379. package/lib/tracing/index.js +0 -19
  380. package/lib/tracing/spanReference/SpanReferenceTypes.d.ts +0 -4
  381. package/lib/tracing/spanReference/SpanReferenceTypes.js +0 -7
  382. package/lib/tracing/spanReference/createSpanReference.d.ts +0 -3
  383. package/lib/tracing/spanReference/createSpanReference.js +0 -8
  384. package/lib/tracing/utils.d.ts +0 -13
  385. package/lib/tracing/utils.js +0 -40
  386. package/lib/utils/conflicts.mock.d.ts +0 -17
  387. package/lib/utils/conflicts.mock.js +0 -27
  388. /package/lib/service/{worker/runtime/graphql → graphql}/middlewares/error.d.ts +0 -0
  389. /package/lib/service/{worker/runtime/graphql → graphql}/middlewares/response.d.ts +0 -0
  390. /package/lib/service/{worker/runtime/graphql → graphql}/middlewares/upload.js +0 -0
  391. /package/lib/service/{worker/runtime/graphql → graphql}/schema/typeDefs/ioUpload.d.ts +0 -0
  392. /package/lib/service/{worker/runtime/graphql → graphql}/schema/typeDefs/ioUpload.js +0 -0
  393. /package/lib/service/{worker/runtime/graphql → graphql}/schema/typeDefs/sanitizedString.d.ts +0 -0
  394. /package/lib/service/{worker/runtime/graphql → graphql}/typings.js +0 -0
  395. /package/lib/service/{worker/runtime/utils/toArray.d.ts → graphql/utils/array.d.ts} +0 -0
  396. /package/lib/service/{worker/runtime/utils/toArray.js → graphql/utils/array.js} +0 -0
  397. /package/lib/service/{worker/runtime/graphql → graphql}/utils/pathname.d.ts +0 -0
  398. /package/lib/service/{worker/runtime/graphql → graphql}/utils/pathname.js +0 -0
  399. /package/lib/service/{worker/runtime/http → http}/middlewares/authTokens.js +0 -0
  400. /package/lib/service/{worker/runtime/http → http}/middlewares/clients.js +0 -0
  401. /package/lib/service/{worker/runtime/http → http}/middlewares/requestStats.js +0 -0
  402. /package/lib/service/{worker/runtime/http → http}/middlewares/setCookie.js +0 -0
  403. /package/lib/service/{worker/runtime/method.js → method.js} +0 -0
  404. /package/lib/service/{worker/runtime/typings.js → typings.js} +0 -0
package/CHANGELOG.md DELETED
@@ -1,1846 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [6.47.0] - 2024-06-11
11
- ### Added
12
- - Add option to save asynchronous cache
13
-
14
- ### Fixed
15
- - Add handler name for runtime http handlers
16
-
17
- ## [6.46.1] - 2024-01-31
18
-
19
- ### Fixed
20
- - Return type for the saveJSON method of VBase client
21
-
22
- ### Changed
23
- - Increase timeout for messagesGraphQL client
24
-
25
- ## [6.46.0] - 2023-10-25
26
- ### Added
27
- - Add disk cache steps and retry count to tracing
28
-
29
- ### Changed
30
- - Stop updating client cache when revalidated and still expired
31
-
32
- ## [6.45.24] - 2023-10-05
33
- ### Added
34
-
35
- - Allow disabling memoization for all requests of a client
36
-
37
- ## [6.45.23] - 2023-10-04
38
-
39
- ### Fixed
40
- - Fix metrics being restricted by tracing restrictions
41
-
42
- ## [6.45.22] - 2023-09-20
43
-
44
- ### Removed
45
-
46
- - Remove reference of how to search for the app's errors on now-defunct Splunk.
47
-
48
- ### Fixed
49
-
50
- - Error tracing spans not logging the details.
51
-
52
- ## [6.45.21] - 2023-09-19
53
- ### Changed
54
- - Fix tracingMiddleware shouldTrace decision
55
- - Fix HttpClient tracing based on sampling decision
56
-
57
- ## [6.45.21-beta.2] - 2023-09-19
58
-
59
- ## [6.45.21-beta.1] - 2023-09-07
60
-
61
- ## [6.45.21-beta.0] - 2023-09-04
62
-
63
- ## [6.45.21-beta] - 2023-09-04
64
-
65
- ## [6.45.20] - 2023-08-30
66
- ### Changed
67
- - Remove sampling decision from runtime
68
- - Only create tracing spans when they come from router
69
-
70
- ## [6.45.20-beta] - 2023-08-30
71
-
72
- ## [6.45.19] - 2023-07-12
73
- ### Changed
74
- - Bump `graphql-upload` version
75
-
76
- ## [6.45.18] - 2023-07-07
77
- ### Fixed
78
- - Metrics to prometheus
79
-
80
- ## [6.45.16] - 2023-07-03
81
- ### Changed
82
- - Bump `prom-client` version
83
-
84
- ## [6.45.15] - 2023-02-01
85
- ### Changed
86
- - Removed unnecessary worker signal logs
87
-
88
- ## [6.45.14] - 2023-02-01
89
-
90
- ### Added
91
-
92
- - New tests for `MineWinsConflictsResolver`.
93
-
94
- ### Fixed
95
-
96
- - Merged/Rebased content not being returned causing inconsistencies.
97
- - Do not return empty content if no conflict is found.
98
-
99
- ## [6.45.13] - 2022-12-12
100
- ### Changed
101
- - Deterministic cache for getWithBody
102
- - Remove socket metrics per origin
103
-
104
- ## [6.45.12] - 2022-04-14
105
-
106
- ### Fixed
107
-
108
- - Update sensitive fields list.
109
- - Remove "error" field.
110
- - Add missing fields.
111
-
112
- ## [6.45.11] - 2022-04-08
113
-
114
- ### Fixed
115
-
116
- - Add where parameter to the MasterData scroll method
117
-
118
- ## [6.45.10] - 2022-03-15
119
-
120
- ### Fixed
121
-
122
- - Update sensitive fields.
123
- - Add 'authorization', rawheaders', 'x-vtex-credential' and 'x-vtex-session'.
124
- - Lowercase fields before comparison in cleanJson.
125
-
126
- ## [6.45.9] - 2022-03-08
127
-
128
- ### Fixed
129
-
130
- - Fix cleanJson utility.
131
-
132
- ## [6.45.8] - 2022-02-25
133
-
134
- ### Fixed
135
-
136
- - Remove only cookie fields when cleaning logs.
137
-
138
- ## [6.45.7] - 2022-02-23
139
-
140
- ### Fixed
141
-
142
- - Remove sensitive data from logs.
143
-
144
- ## [6.45.6] - 2021-10-26
145
-
146
- ### Fixed
147
-
148
- - `vtex_segment` cookie extraction
149
-
150
- ## [6.54.5] - 2021-10-22
151
-
152
- ### Fixed
153
-
154
- - Extract session cookie in a safe manner
155
-
156
- ## [6.45.4] - 2021-09-16
157
-
158
- ### Removed
159
-
160
- - `Missing x-vtex-provider header` log.
161
-
162
- ## [6.45.3] - 2021-08-30
163
-
164
- ### Fixed
165
-
166
- - Cover new test cases where mine is left equal to base and master updates an item.
167
-
168
- ## [6.45.0] - 2021-08-24
169
-
170
- ### Changed
171
-
172
- - Export Prometheus client
173
-
174
- ## [6.44.0] - 2021-07-15
175
-
176
- ### Added
177
-
178
- - `@metric` GraphQL directive
179
-
180
- ## [6.43.1] - 2021-07-12
181
-
182
- ### Fixed
183
-
184
- - Update axios to `0.21.1`
185
-
186
- ## [6.43.0] - 2021-06-23
187
-
188
- ### Added
189
-
190
- - Update schema in runtime when provider app changes version
191
-
192
- ## [6.42.1] - 2021-05-18
193
-
194
- ### Fixed
195
-
196
- - [startWorker] Remove duplicated middleware
197
-
198
- ## [6.42.0] - 2021-05-17
199
-
200
- ### Added
201
-
202
- - [Rate Limit] Enable user to config the amount of requests to be processed per minute and concurrently by setting it in `service.json`.
203
-
204
- ## [6.41.1] - 2021-05-17
205
-
206
- ### Fixed
207
-
208
- - Fix prometheus metrics being publicly exposed on /metrics.
209
-
210
- ## [6.41.0] - 2021-03-09
211
-
212
- ### Added
213
-
214
- - Added an interface to the `userTranslations` query of the MessagesGraphQL client.
215
-
216
- ## [6.40.0] - 2021-03-02
217
-
218
- ### Added
219
-
220
- - `getAppState` method to `registry` client
221
-
222
- ## [6.39.1] - 2021-02-05
223
-
224
- - Increase HTTP agents connection pools freeSockets and lifetime
225
-
226
- ## [6.39.0] - 2021-01-27
227
-
228
- ### Added
229
-
230
- - `TranslateTo` schema directive.
231
- - `translations` util.
232
- - README's `Development with IO clients` directions.
233
-
234
- ### Changed
235
-
236
- - Moved the `TranslatableMessageV2` interface, `parseTranslatableStringV2`, `formatTranslatableStringV2` and `handleSingleString` methods and `CONTEXT_REGEX`, `FROM_REGEX` and `CONTENT_REGEX` constants from the `TranslatableV2` schema directive to the `translations` util.
237
- - README's `Development` section format.
238
-
239
- ## [6.37.1] - 2020-12-10
240
-
241
- ### Changed
242
-
243
- - Add logs to MineWinsConflictResolver
244
-
245
- ## [6.37.0] - 2020-10-08
246
-
247
- ### Added
248
-
249
- - `searchDocumentsWithPaginationInfo` on Masterdata client
250
-
251
- ## [6.36.3] - 2020-09-09
252
-
253
- ### Changed
254
-
255
- - Allow sending events to any resource
256
-
257
- ## [6.36.2] - 2020-08-19
258
-
259
- ### Fixed
260
-
261
- - Set wait time to force shutdown workers based on service timeout
262
- - Stop removing response from error.
263
- - Update @vtex/node-error-report to remove sensitive information from errors logged to splunk and to distributed tracing.
264
- - Remove sensitive information from headers before logging onto tracing spans.
265
-
266
- ## [6.36.1] - 2020-08-17
267
-
268
- ### Fixed
269
-
270
- - Remove sensitive exception data before responding to browser.
271
-
272
- ## [6.36.0] - 2020-07-30
273
-
274
- ### Added
275
-
276
- - [metric] Created new Prometheus metrics related to Event Loop Lag between scrapes:
277
- - runtime_event_loop_lag_max_between_scrapes_seconds
278
- - runtime_event_loop_lag_percentiles_between_scrapes_seconds
279
-
280
- ## [6.35.2] - 2020-07-24
281
-
282
- ### Added
283
-
284
- - `timestamp` field to VTEX IO Billing log.
285
-
286
- ## [6.35.1] - 2020-07-22
287
-
288
- ### Added
289
-
290
- - [metrics] Export jaeger metrics.
291
-
292
- ### Fixed
293
-
294
- - [metrics] Typo on event listened to increment `runtime_http_aborted_requests_total`.
295
- - [tracing:entrypoint] Fix waiting for response stream to finish.
296
-
297
- ## [6.35.0] - 2020-07-08
298
-
299
- ### Added
300
-
301
- - [metrics] Create new Prometheus exported metrics:
302
- - runtime_http_requests_total
303
- - runtime_http_aborted_requests_total
304
- - runtime_http_requests_duration_milliseconds
305
- - runtime_http_response_size_bytes
306
- - [tracing] Finish entrypoint span when response finishes streaming.
307
-
308
- ### Changed
309
-
310
- - Update `billingOptions` type.
311
-
312
- ## [6.34.0] - 2020-07-03
313
-
314
- ### Fixed
315
-
316
- - Remove fallback to x-vtex-credential as adminUserAuthToken.
317
-
318
- ### Added
319
-
320
- - Send workspace to session service.
321
- - Add channelPrivacy to SegmentData type.
322
-
323
- ## [6.33.0] - 2020-06-25
324
-
325
- ### Added
326
-
327
- - [clients:tracing] Create span wrapping HttpClient middlewares with information on caching and retries.
328
-
329
- ## [6.32.0] - 2020-06-25
330
-
331
- ### Changed
332
-
333
- - [tracing] Remove span wrapping user middlewares.
334
- - [tracing] Add entrypoint span tags and logs after the execution of middlewares.
335
- - [ErrorReport] Do not allow creating recursive ErrorReports.
336
-
337
- ## [6.31.1] - 2020-06-05
338
-
339
- ### Fixed
340
-
341
- - Release the 6.31.0 again due to issues.
342
-
343
- ## [6.31.0] - 2020-06-04
344
-
345
- ### Added
346
-
347
- - Add `putRaw` method on HttpClient.
348
- - Support to `If-Match` header usage on VBase client.
349
-
350
- ### Changed
351
-
352
- - [ErrorReport] Log ErrorReport errors created on `HttpClient` requests or thrown by user handlers to splunk.
353
- - [ErrorReport] Add error metadata on span logs instead of on span tags.
354
- - [tracing:entrypoint] Log incoming request headers and outgoing response headers.
355
- - [tracing] Use remote sampling.
356
-
357
- ### Fixed
358
-
359
- - [tracing:entrypoint] Fix URL tag on entrypoint span - use `ctx.request.href` instead of `ctx.request.originalUrl`.
360
- - Masterdata sort typing and scroll pagination.
361
-
362
- ## [6.30.1] - 2020-05-21
363
-
364
- ### Changed
365
-
366
- - Remove `serverTiming` metrics from client headers.
367
- - Add `serverTiming` metrics on error report.
368
-
369
- ## [6.30.0] - 2020-05-20
370
-
371
- ### Added
372
-
373
- - Masterdata client
374
-
375
- ## [6.29.0] - 2020-05-18
376
-
377
- ### Changed
378
-
379
- - Create an option to disable conditional segment/session vary
380
- - Set vary: x-vtex-session if the scope is private
381
-
382
- ## [6.28.3] - 2020-05-15
383
-
384
- ### Fixed
385
-
386
- - [ErrorReport] Update `@vtex/node-error-report` package:
387
- - Clone objects before sanitizing them.
388
-
389
- ## [6.28.2] - 2020-05-13
390
-
391
- ### Changed
392
-
393
- - [ErrorReport] Use `@vtex/node-error-report` package.
394
-
395
- ## [6.28.1] - 2020-05-05
396
-
397
- ### Fixed
398
-
399
- - [tracing:logger] Make Logger serializable again.
400
-
401
- ## [6.28.0] - 2020-05-04
402
-
403
- ### Changed
404
-
405
- - [tracing:init] Increase sampling rate to 5%.
406
- - [ErrorReport] Serialize buffer only as a `byteCount` and a `type: buffer`.
407
- - [ErrorReport] Increase ErrorReport serialization depth from 6 to 8.
408
-
409
- ### Added
410
-
411
- - [tracing:entrypoint-span] Add `vtex.request_id` tag.
412
- - [ErrorReport] Add `error.server.code`, `error.server.source`, `error.server.request_id` to tags added to error spans.
413
- - [response:headers] Add `x-trace-id` when request is traced.
414
- - [logger] Log `trace-id` when request is traced.
415
- - [tracing:tags] Use snake case to conform with OpenTracing.
416
-
417
- ## [6.27.0] - 2020-04-28
418
-
419
- ## [6.26.2-beta] - 2020-04-28
420
-
421
- ## [6.26.1-beta] - 2020-04-27
422
-
423
- ## [6.25.1-beta] - 2020-04-27
424
-
425
- ### Added
426
-
427
- - Settings from settings builder to events.
428
-
429
- ## [6.26.0] - 2020-04-22
430
-
431
- ### Changed
432
-
433
- - Tracing utilities export.
434
-
435
- ### Added
436
-
437
- - `NODE_ENV` tag to process tracing tags.
438
- - `tracingConfig` argument to all clients request functions.
439
- - Option on request spans to define if request is childOf rootSpan or followsFrom it.
440
- - Option on request span to add suffix on request span name - it will be `http-request:suffx`.
441
- - Helper `createTracingContextFromCarrier` to allow worker threads and child processes to be traced.
442
-
443
- ## [6.25.0] - 2020-04-15
444
-
445
- ### Added
446
-
447
- - Extensions field to graphql client.
448
-
449
- ## [6.24.4] - 2020-04-08
450
-
451
- ### Fixed
452
-
453
- - Adds missing `@` in BillingMetrics client
454
-
455
- ## [6.24.3] - 2020-04-01
456
-
457
- ### Fixed
458
-
459
- - [tracing] Fix `ErrorReport` object strings truncating (StackOverflow error in some cases).
460
- - [tracing] Make `ctx.vtex.tracer` a required field on `IOContext`.
461
-
462
- ### Added
463
-
464
- - [tracing] Add `fallbackSpanContext` method to `UserLandTracer`.
465
-
466
- ## [6.24.2] - 2020-03-31
467
-
468
- - Workspaces sharing apps metainfo.
469
-
470
- ## [6.24.1] - 2020-03-31
471
-
472
- - Bump version.
473
-
474
- ## [6.24.0] - 2020-03-31
475
-
476
- ## Changed
477
-
478
- - Send events using `Courier` instead of `Colossus`.
479
-
480
- ## [6.23.1] - 2020-03-26
481
-
482
- ### Fixed
483
-
484
- - Trace only 1% of the requests.
485
-
486
- ## [6.23.0] - 2020-03-26
487
-
488
- ### Added
489
-
490
- - Tracing instrumentation.
491
-
492
- ## [6.22.0] - 2020-03-20
493
-
494
- ### Changed
495
-
496
- - Updated `Billing Options` types
497
-
498
- ### Added
499
-
500
- - Apps' Install API response type
501
- - Skidder topic names on logs are not based on account anymore
502
-
503
- ### Fixed
504
-
505
- - Fixed params for VBase list
506
-
507
- ## [6.21.0] - 2020-03-05
508
-
509
- ### Added
510
-
511
- - createHttpsAgent helper function so devs can import it in their apps and use our agent
512
- - httpsAgent added to instanceOptions so we can add the agent in the client's constructor
513
-
514
- ### Removed
515
-
516
- - Https interceptor agent
517
-
518
- ## [6.20.0] - 2020-03-04
519
-
520
- ### Added
521
-
522
- - Support for a external schema to be passed into graphql Service configuration.
523
-
524
- ## [6.19.0] - 2020-03-02
525
-
526
- ### Added
527
-
528
- - Get `adminUserAuthToken` from header `X-Vtex-Credential`.
529
-
530
- ## [6.18.0] - 2020-02-27
531
-
532
- ### Added
533
-
534
- - Adds stale while revalidating to apps get meta infos function
535
-
536
- ## [6.17.0] - 2020-02-18
537
-
538
- ### Added
539
-
540
- - Injects `__SKIDDER_TOPIC_1` and `__SKIDDER_TOPIC_2` keys in logs
541
-
542
- ## [6.16.1] - 2020-02-17
543
-
544
- ### Changed
545
-
546
- - Exponential timeout and backoff variables can now be set by request and not only by client.
547
-
548
- ### Fixed
549
-
550
- - Fix revalidation for cached buffer responses.
551
-
552
- ## [6.16.0] - 2020-02-13
553
-
554
- ### Changed
555
-
556
- - Removes slowRecorder from code
557
-
558
- ## [6.15.2] - 2020-02-13
559
-
560
- ### Added
561
-
562
- - Payment Provider client
563
-
564
- ## [6.15.1] - 2020-02-10
565
-
566
- ### Fixed
567
-
568
- - Fix `x-vtex-etag-control` set by SmartCacheDirective.
569
-
570
- ## [6.15.0] - 2020-02-06
571
-
572
- ### Added
573
-
574
- - Add support for router binding header.
575
-
576
- ## [6.14.0] - 2020-02-06
577
-
578
- ## [6.13.1] - 2020-02-04
579
-
580
- ### Fixed
581
-
582
- - Adds catalog Graphql client to IOClients
583
-
584
- ## [6.13.0] - 2020-02-03
585
-
586
- ## [6.12.1] - 2020-02-03
587
-
588
- ### Changed
589
-
590
- - Make it usable outside of IO
591
-
592
- ## [6.12.0] - 2020-01-31
593
-
594
- ### Added
595
-
596
- - Adds `catalogGraphQL` client
597
-
598
- ## [6.11.1] - 2020-01-30
599
-
600
- ### Fixed
601
-
602
- - Export tenant data
603
-
604
- ## [6.11.0] - 2020-01-30
605
-
606
- ### Changed
607
-
608
- - Update axios from 0.18.0 to 0.19.2
609
-
610
- ## [6.10.1] - 2020-01-29
611
-
612
- ### Fixed
613
-
614
- - getAppsMetaInfos typings from Apps client
615
-
616
- ## [6.10.0] - 2020-01-29
617
-
618
- ### Changed
619
-
620
- - Improve `cacheKey` performance and sort params in the key.
621
-
622
- ## [6.9.0] - 2020-01-29
623
-
624
- ### Added
625
-
626
- - Adds new query to messages client
627
- - Uses new resolver in Translatable resolver
628
-
629
- ## [6.8.1] - 2020-01-28
630
-
631
- ### Chore
632
-
633
- - Increase query size limit from 1mb to 3mb.
634
-
635
- ### Fixed
636
-
637
- - Settings format is now the same delivered by settings server.
638
-
639
- ## [6.8.0] - 2020-01-23
640
-
641
- ### Added
642
-
643
- - New settings middleware.
644
- - New directive in graphql for declaring route settings type.
645
-
646
- ## [6.7.1] - 2020-01-22
647
-
648
- ### Fixed
649
-
650
- - Encodes Buffer with base64 to cache it correctly
651
-
652
- ## [6.7.0] - 2020-01-22
653
-
654
- ### Added
655
-
656
- - `@deprecated` directive logs to Splunk when used. To avoid overflowing splunk with useless logs, we only log once at every minute
657
-
658
- ## [6.6.2] - 2020-01-16
659
-
660
- ### Added
661
-
662
- - Parameters to customize exponential backoff delay and increase timeout at each retry.
663
-
664
- ### Changed
665
-
666
- - Stop using `axios-retry` logic, implement retry manually.
667
-
668
- ## [6.6.1] - 2020-01-16
669
-
670
- ### Fixed
671
-
672
- - Vbase `getJSON` typings. Do not return type `{}`
673
-
674
- ### Changed
675
-
676
- - Do not rely on state for flushing `x-vtex-meta` headers
677
-
678
- ## [6.6.0] - 2020-01-16
679
-
680
- ## [6.6.0-beta] - 2020-01-15
681
-
682
- ### Changed
683
-
684
- - Enables fast recorder
685
-
686
- ## [6.5.0] - 2020-01-15
687
-
688
- ### Changed
689
-
690
- - Sets `x-vtex-meta` header _ONCE_ in the `recorder` middleware to tackle performance issues
691
-
692
- ## [6.4.1] - 2020-01-09
693
-
694
- ### Fixed
695
-
696
- - Internal app path log in toolbelt
697
-
698
- ## [6.4.0] - 2020-01-09
699
-
700
- ### Added
701
-
702
- - Allow getting segment data with default locale and currency from binding instead of tenant.
703
-
704
- ## [6.3.0] - 2020-01-08
705
-
706
- ### Added
707
-
708
- - New route to get files from Apps with only the app name, account and workspace
709
-
710
- ## [6.2.2] - 2020-01-08
711
-
712
- ### Fixed
713
-
714
- - Logic to get cancellable methods for cancellation token
715
-
716
- ## [6.2.1] - 2020-01-08
717
-
718
- ### Fixed
719
-
720
- - There was a HUGE performance drop when setting `x-vtex-meta` header via `ctx.set` using an array. Joining in a single string solved the problem
721
-
722
- ## [6.2.0] - 2020-01-07
723
-
724
- ### Added
725
-
726
- - Batches messages to be translated
727
-
728
- ## [6.1.7] - 2020-01-02
729
-
730
- ### Changed
731
-
732
- - Added correct getFile function to Assets client
733
-
734
- ## [6.1.6] - 2019-12-17
735
-
736
- ### Changed
737
-
738
- - When linking only one worker will be available
739
- - Gracefull shutdown when receiving `sigterm` from master and child processes
740
-
741
- ### Fixed
742
-
743
- - Remote debugger now debugs worker instead of master process
744
- - @transltableV2 directive arguments
745
-
746
- ## [6.1.5] - 2019-12-12
747
-
748
- ## [6.1.4] - 2019-12-12
749
-
750
- ### Fixed
751
-
752
- - Add binding to context when receiving header
753
-
754
- ## [6.1.3] - 2019-12-11
755
-
756
- ### Fixed
757
-
758
- - Public routes now working
759
-
760
- ## [6.1.2] - 2019-12-11
761
-
762
- ## [6.1.1] - 2019-12-10
763
-
764
- ## [6.1.0] - 2019-12-09
765
-
766
- ## [6.0.0] - 2019-11-27
767
-
768
- ## [6.0.0-beta.12] - 2019-11-26
769
-
770
- ## [3.66.3] - 2019-11-26
771
-
772
- ### Removed
773
-
774
- - Splunk log in clients to console.log only
775
-
776
- ## [3.66.2] - 2019-11-26
777
-
778
- ### Fixed
779
-
780
- - Flag `fireEvent` in Messages `saveV2` should be optional
781
-
782
- ## [3.66.1] - 2019-11-25
783
-
784
- ### Fixed
785
-
786
- - Checks if logger.warn is a function before calling it
787
-
788
- ## [3.66.0] - 2019-11-25
789
-
790
- ### Added
791
-
792
- - Add binding information to HttpClient requests
793
-
794
- ## [3.65.4] - 2019-11-25
795
-
796
- ### Fixed
797
-
798
- - Conflicts Resolver only use `comparableKeys` when objects owns them
799
-
800
- ## [3.65.3] - 2019-11-25
801
-
802
- ## Added
803
-
804
- - Allows filter dependencies from app list
805
-
806
- ## [3.65.2] - 2019-11-25
807
-
808
- ### Added
809
-
810
- - New attribute to messages API
811
-
812
- ## [3.65.1] - 2019-11-21
813
-
814
- ## [3.65.1-beta] - 2019-11-21
815
-
816
- ### Fixed
817
-
818
- - Uses http in old routes
819
-
820
- ## [3.65.0] - 2019-11-21
821
-
822
- ### Added
823
-
824
- - Error type `TooManyRequestsError` that returns status code 429
825
-
826
- ## [3.64.0] - 2019-11-19
827
-
828
- ### Added
829
-
830
- - Uses https if request is from outside IO
831
-
832
- ### Changed
833
-
834
- - Updates internal routing
835
-
836
- ## [3.63.0] - 2019-11-18
837
-
838
- ### Added
839
-
840
- - Update Messages SaveArgsV2 interface
841
-
842
- ## [3.62.6] - 2019-11-14
843
-
844
- ### Fixed
845
-
846
- - Removes `ctx.graphql` object sharing and make it have a request cycle duration
847
-
848
- ## [3.62.5] - 2019-11-11
849
-
850
- ### Changed
851
-
852
- - Upgrades new error query format for splunk 72
853
-
854
- ### Fixed
855
-
856
- - Fix "socket hang up" by preventing client request abortion after server response is finished or client response is completed.
857
- - Fix cancellation error not being thrown if the request does not have metric.
858
-
859
- ## [3.62.4] - 2019-11-04
860
-
861
- ### Changed
862
-
863
- - Removes tracing from graphqlruntime
864
-
865
- ## [3.62.3] - 2019-10-30
866
-
867
- ### Fixed
868
-
869
- - stale getAppFile accepts MAJOR.x app name
870
-
871
- ## [3.62.2] - 2019-10-30
872
-
873
- ### Fixed
874
-
875
- - Handle nullable nested objects in MineWinsConflictsResolver
876
-
877
- ## [3.62.1] - 2019-10-29
878
-
879
- ### Fixed
880
-
881
- - Export error type RequestCancelledError in index
882
-
883
- ## [3.62.0] - 2019-10-29
884
-
885
- ### Added
886
-
887
- - New scalar type and directive to sanitize strings
888
-
889
- ### Fixed
890
-
891
- - Handle error without response in VBase getJSON calls
892
-
893
- ## [3.61.1] - 2019-10-29
894
-
895
- ### Fixed
896
-
897
- - Throw error in `getAppsMetaInfos` method if `staleIfError`` is false.
898
-
899
- ## [3.60.0] - 2019-10-28
900
-
901
- ## [3.59.2] - 2019-10-24
902
-
903
- ### Fixed
904
-
905
- - Handle nullable arrays passed to MineWinsConflictsResolver
906
-
907
- ## [3.59.1] - 2019-10-18
908
-
909
- ### Fixed
910
-
911
- - Correctly handle errors caused by requests cancelled with cancellation token
912
-
913
- ## [3.59.0] - 2019-10-16
914
-
915
- ## [3.58.0] - 2019-10-14
916
-
917
- ### Added
918
-
919
- - **environment** arg to `JanusClient`.
920
-
921
- ## [3.57.1] - 2019-10-11
922
-
923
- ## Added
924
-
925
- - Apps install accepts `infra:service-*` apps
926
-
927
- ## [3.56.0] - 2019-10-10
928
-
929
- ### Added
930
-
931
- - New getAppMetaInfos function with diskCache fallback
932
- - Add MineWinsConflict resolver logic to VBase client
933
- - New getAppFiles with fallback strategies
934
-
935
- ## [3.55.4-beta] - 2019-10-09
936
-
937
- ## [3.55.3] - 2019-10-09
938
-
939
- ### Fixed
940
-
941
- - Messages Save v2 interface
942
-
943
- ## [3.55.2] - 2019-10-01
944
-
945
- ### Fixed
946
-
947
- - Warnings logged as errors
948
-
949
- ## [3.55.1] - 2019-09-27
950
-
951
- ## [3.55.0] - 2019-09-25
952
-
953
- ## [3.54.1] - 2019-09-23
954
-
955
- ### Added
956
-
957
- - Tenant client added
958
-
959
- ## [3.54.0] - 2019-09-23
960
-
961
- ### Changed
962
-
963
- - Logger client instantiated in service-node
964
- - `@translatableV2` directive uses language from context instead of making an IO
965
-
966
- ## [3.53.0] - 2019-09-16
967
-
968
- ### Changed
969
-
970
- - TranslatableV2 support for context and from in message encoding
971
-
972
- ### Changed
973
-
974
- - Resolve context in message at directive translatableV2
975
-
976
- ## [3.52.0] - 2019-09-16
977
-
978
- ### Added
979
-
980
- - Add saveV2 method in MessagesGraphQL client
981
-
982
- ## [3.51.1] - 2019-09-13
983
-
984
- ### Fixed
985
-
986
- - Add host to IOContext
987
-
988
- ## [3.51.0] - 2019-09-13
989
-
990
- ### Added
991
-
992
- - Forward x-forwarded-host header.
993
- - Add vary x-forwarded-host.
994
-
995
- ## [3.50.2] - 2019-09-13
996
-
997
- ## [3.50.2-beta] - 2019-09-12
998
-
999
- ### Added
1000
-
1001
- - Add `platform` to `ctx`
1002
-
1003
- ## [3.50.1] - 2019-09-11
1004
-
1005
- ## [3.50.0] - 2019-09-11
1006
-
1007
- ## [3.50.0-beta] - 2019-09-11
1008
-
1009
- ### Added
1010
-
1011
- - Export list of all available public domains
1012
-
1013
- ## [3.49.0] - 2019-09-10
1014
-
1015
- ## [3.48.3] - 2019-09-09
1016
-
1017
- ### Fixed
1018
-
1019
- - Added logger middleware to events pipeline.
1020
-
1021
- ## [3.48.2] - 2019-09-04
1022
-
1023
- ## [3.48.1] - 2019-09-04
1024
-
1025
- ## [3.48.1-beta.0] - 2019-09-04
1026
-
1027
- ## [3.48.1-beta] - 2019-09-03
1028
-
1029
- ## [3.48.0] - 2019-09-03
1030
-
1031
- ### Added
1032
-
1033
- - Route for testing apps on `builder-hub`.
1034
-
1035
- ## [3.47.2] - 2019-09-02
1036
-
1037
- ### Fixed
1038
-
1039
- - Update missing changelog.
1040
- - Remove if statements on existence of ctx.vtex.logger
1041
-
1042
- ## [3.47.1] - 2019-08-29
1043
-
1044
- ### Fixed
1045
-
1046
- - Fix ramda typings errors.
1047
-
1048
- ## [3.47.0] - 2019-08-29
1049
-
1050
- ### Added
1051
-
1052
- - Add parameter `skipSemVerEnsure` in app publish.
1053
-
1054
- ## [3.46.0] - 2019-08-26
1055
-
1056
- ### Added
1057
-
1058
- - Create event handler similar to http requests, providing vtex clients, timings and error logs.
1059
-
1060
- ## [3.46.0-beta.2] - 2019-08-26
1061
-
1062
- ## [3.46.0-beta.1] - 2019-08-26
1063
-
1064
- ## [3.46.0-beta.0] - 2019-08-26
1065
-
1066
- ## [3.46.0-beta] - 2019-08-26
1067
-
1068
- ## [3.45.0] - 2019-08-22
1069
-
1070
- ## [3.44.3] - 2019-08-20
1071
-
1072
- ### Fixed
1073
-
1074
- - Stop ignoring 0ms metrics.
1075
- - Rename GraphQL middlewares to resolve metrics conflict.
1076
-
1077
- ### Changed
1078
-
1079
- - Stop measuring event-loop overhead.
1080
-
1081
- ## [3.44.2] - 2019-08-19
1082
-
1083
- ## [3.44.1] - 2019-08-19
1084
-
1085
- ### Fixed
1086
-
1087
- - Truncate long GraphQL errors so they can be sent to Splunk.
1088
-
1089
- ## [3.44.0] - 2019-08-19
1090
-
1091
- ### Changed
1092
-
1093
- - Deprecate Colossus logger completely, using stdout instead.
1094
-
1095
- ## [3.43.0] - 2019-08-19
1096
-
1097
- ### Changed
1098
-
1099
- - Properly times metrics, considering total elapsed and code run after `await next()`.
1100
- - Avoid broken metrics when a middleware throws.
1101
- - Do not batch metrics for unsuccessful handlers and middlewares.
1102
- - Rename `http-handler-success-*` to `http-handler-*` and only count non-success statuses.
1103
-
1104
- ## [3.42.0] - 2019-08-19
1105
-
1106
- ### Changed
1107
-
1108
- - Disable caching if response varies with session. (Before, we incorrectly disabled caching if _we had a session token_)
1109
-
1110
- ## [3.41.1] - 2019-08-15
1111
-
1112
- ## [3.41.1-beta] - 2019-08-15
1113
-
1114
- ## [3.41.0] - 2019-08-13
1115
-
1116
- ## [3.40.1] - 2019-08-12
1117
-
1118
- ### Fixed
1119
-
1120
- - Typo on segment path.
1121
-
1122
- ## [3.40.0] - 2019-08-09
1123
-
1124
- ## [3.39.0] - 2019-08-09
1125
-
1126
- ## [3.38.0] - 2019-08-08
1127
-
1128
- ### Added
1129
-
1130
- - Inside the class `Translatable`, allow `string` arrays to be translated too.
1131
-
1132
- ## [3.37.2] - 2019-08-08
1133
-
1134
- ## [3.37.1] - 2019-08-08
1135
-
1136
- ## [3.37.0] - 2019-08-08
1137
-
1138
- ## [3.36.1] - 2019-08-08
1139
-
1140
- ## [3.36.0] - 2019-08-08
1141
-
1142
- ## [3.35.0] - 2019-08-01
1143
-
1144
- ### Fixed
1145
-
1146
- - Use POST requests for queries only in the `MessagesGraphQL` client, not in the `GraphQLClient`.
1147
-
1148
- ## [3.34.1] - 2019-07-31
1149
-
1150
- ## [3.34.0] - 2019-07-30
1151
-
1152
- ### Fixed
1153
-
1154
- - Create middleware that deletes headers passed to make cache behavior consistent regarldess of CDN.
1155
-
1156
- ## [3.33.1] - 2019-07-29
1157
-
1158
- ### Changed
1159
-
1160
- - `getAccountData` now requires to pass the param `VtexIdclientAutCookie`.
1161
-
1162
- ## [3.33.0] - 2019-07-26
1163
-
1164
- ## [3.32.2] - 2019-07-24
1165
-
1166
- ### Added
1167
-
1168
- - Accept `VtexIdclientAutCookie` as param to `getAccountData`.
1169
-
1170
- ## [3.32.1] - 2019-07-23
1171
-
1172
- ### Fixed
1173
-
1174
- - Revert changes made in release 3.31.0.
1175
-
1176
- ## [3.32.0] - 2019-07-22
1177
-
1178
- ### Added
1179
-
1180
- - Function to check resource access in License Manager Client
1181
-
1182
- ## [3.31.0] - 2019-07-15
1183
-
1184
- ### Changed
1185
-
1186
- - Do not separate messages `translate` queries in batches. Instead, use a single POST request for all translations.
1187
-
1188
- ## [3.30.2] - 2019-07-10
1189
-
1190
- ## [3.30.1] - 2019-07-10
1191
-
1192
- ## [3.30.0] - 2019-07-09
1193
-
1194
- ## [3.29.1] - 2019-07-09
1195
-
1196
- ## [3.29.0] - 2019-07-09
1197
-
1198
- ## [3.28.1] - 2019-07-08
1199
-
1200
- ## [3.28.0] - 2019-07-08
1201
-
1202
- ## [3.27.2] - 2019-07-08
1203
-
1204
- ## [3.27.1] - 2019-07-02
1205
-
1206
- ### Added
1207
-
1208
- - Http head request
1209
- - VBase get file metadata
1210
-
1211
- ## [3.27.0] - 2019-06-27
1212
-
1213
- ## [3.26.5] - 2019-06-27
1214
-
1215
- ## [3.26.4] - 2019-06-27
1216
-
1217
- ### Fixed
1218
-
1219
- - Removal of circular references in logs.
1220
-
1221
- ## [3.26.3] - 2019-06-24
1222
-
1223
- ## [3.26.2] - 2019-06-24
1224
-
1225
- ## [3.26.1] - 2019-06-21
1226
-
1227
- ### Fixed
1228
-
1229
- - Problem with `recorder` inside `context` - Assure that `recorder` is inside `context` at the right moment.
1230
-
1231
- ## [3.26.0] - 2019-06-19
1232
-
1233
- ## [3.25.0] - 2019-06-19
1234
-
1235
- ## [3.24.1] - 2019-06-17
1236
-
1237
- ### Fixed
1238
-
1239
- - Fixes `Please use a named function as handler for better metrics` warnings
1240
-
1241
- ## [3.24.0] - 2019-06-14
1242
-
1243
- ## [3.24.0-beta.0] - 2019-06-13
1244
-
1245
- ## [3.24.0-beta] - 2019-06-13
1246
-
1247
- ### Added
1248
-
1249
- - Propagate `x-vtex-session` across requests.
1250
-
1251
- ## [3.23.0] - 2019-06-13
1252
-
1253
- ### Added
1254
-
1255
- - Enable environment selection, e.g beta, when cookie `vtex-commerce-env` is set
1256
-
1257
- ## [3.22.0] - 2019-06-06
1258
-
1259
- ### Added
1260
-
1261
- - Typings for Free and Paid Billing Options
1262
- - Typings for Fixed and Metric-Based Calculation Items
1263
- - Type guards for Billing Options
1264
-
1265
- ## [3.21.3] - 2019-06-04
1266
-
1267
- ## [3.21.2] - 2019-05-27
1268
-
1269
- ## [3.21.1] - 2019-05-27
1270
-
1271
- ## [3.21.0] - 2019-05-27
1272
-
1273
- ## [3.20.0] - 2019-05-27
1274
-
1275
- ## [3.20.0-beta] - 2019-05-25
1276
-
1277
- ## [3.19.0] - 2019-05-24
1278
-
1279
- ## [3.18.2] - 2019-05-23
1280
-
1281
- ## [3.18.1] - 2019-05-21
1282
-
1283
- ## [3.18.0] - 2019-05-20
1284
-
1285
- ### Added
1286
-
1287
- - Generate `manifest.json` schema from TypeScript definition.
1288
-
1289
- ## [3.17.0] - 2019-05-20
1290
-
1291
- ### Added
1292
-
1293
- - GraphQL Client
1294
-
1295
- ## [3.16.0] - 2019-05-17
1296
-
1297
- ## [3.15.1] - 2019-05-17
1298
-
1299
- ### Changed
1300
-
1301
- - Change type of `buildFeatures` to `Record<string, string[]>`
1302
-
1303
- ## [3.15.0] - 2019-05-13
1304
-
1305
- ## [3.14.1] - 2019-05-10
1306
-
1307
- ## [3.14.1-beta] - 2019-05-09
1308
-
1309
- ## [3.14.0] - 2019-05-09
1310
-
1311
- ## [3.13.1] - 2019-05-09
1312
-
1313
- ## [3.13.0] - 2019-05-08
1314
-
1315
- ### Changed
1316
-
1317
- - Made query string param serialization `repeat` by default. This means arrays, which were previously encoded as e.g. `files[]=a&files[]=b` become `files=a&files=b`.
1318
-
1319
- ### Added
1320
-
1321
- - Implement Settings client for `vtex.settings-server`.
1322
-
1323
- ## [3.12.1] - 2019-05-08
1324
-
1325
- ## [3.12.0] - 2019-05-07
1326
-
1327
- ### Added
1328
-
1329
- - Add "buildFeatures" inside "manifest".
1330
-
1331
- ## [3.11.0] - 2019-05-06
1332
-
1333
- ## [3.10.0] - 2019-05-06
1334
-
1335
- ### Changed
1336
-
1337
- - Add caller, params and query to error logs
1338
- - Relax error typing and capture stack automatically
1339
-
1340
- ## [3.9.2] - 2019-05-02
1341
-
1342
- ### Fixed
1343
-
1344
- - Usage of `routes.Links` function in the `routes.Unlink` function (Apps client)
1345
-
1346
- ## [3.9.1] - 2019-05-02
1347
-
1348
- ## [3.9.0] - 2019-04-30
1349
-
1350
- ## [3.8.2-beta] - 2019-04-30
1351
-
1352
- ## [3.8.1] - 2019-04-26
1353
-
1354
- ## [3.8.0] - 2019-04-26
1355
-
1356
- ### Changed
1357
-
1358
- - Add `adminUserAuthToken` (from cookie `VtexIdclientAutCookie`) and `storeUserAuthToken` (from cookie `VtexIdclientAutCookie_${account}`) to `ctx.vtex`
1359
-
1360
- ## [3.7.0] - 2019-04-25
1361
-
1362
- ### Changed
1363
-
1364
- - Add LicenseManager client
1365
- - Add Session client
1366
- - Restructure HttpClient
1367
- - Implement IOClient
1368
- - Implement IOClient subclasses
1369
- - Port all native clients
1370
- - Reduced default timeout to 1s
1371
- - Added default `params` to HttpClient
1372
-
1373
- ## [3.6.1] - 2019-04-24
1374
-
1375
- ## [3.6.0] - 2019-04-24
1376
-
1377
- ## [3.5.2-beta] - 2019-04-24
1378
-
1379
- ## [3.5.1] - 2019-04-23
1380
-
1381
- ## [3.5.0] - 2019-04-22
1382
-
1383
- ### Added
1384
-
1385
- - Add native error and warning classes and log these appropriately.
1386
-
1387
- ## [3.4.4] - 2019-04-22
1388
-
1389
- ## [3.4.4-beta] - 2019-04-19
1390
-
1391
- ### Changed
1392
-
1393
- - Fixed host reference for Billing metrics sending
1394
-
1395
- ## [3.4.3] - 2019-04-18
1396
-
1397
- ## [3.4.2] - 2019-04-18
1398
-
1399
- ## [3.4.1] - 2019-04-18
1400
-
1401
- ## [3.4.0] - 2019-04-18
1402
-
1403
- ## [3.3.1] - 2019-04-16
1404
-
1405
- ## [3.3.1-beta.1] - 2019-04-17
1406
-
1407
- ## [3.3.1-beta.0] - 2019-04-17
1408
-
1409
- ## [3.3.1-beta] - 2019-04-15
1410
-
1411
- ## [3.3.0] - 2019-04-11
1412
-
1413
- ### Added
1414
-
1415
- - Messages `saveTransalation` method
1416
-
1417
- ## [3.2.4] - 2019-04-10
1418
-
1419
- ## [3.2.3] - 2019-04-10
1420
-
1421
- ## [3.2.2] - 2019-04-09
1422
-
1423
- ## [3.2.1] - 2019-04-09
1424
-
1425
- ### Fixed
1426
-
1427
- - Security hole as `Authorization`, `Proxy-Authorization` and `vtexIdClientAutCookie` headers were being sent to graphql errors
1428
-
1429
- ## [3.2.0] - 2019-04-09
1430
-
1431
- ## [3.2.0-beta.7] - 2019-04-09
1432
-
1433
- ## [3.2.0-beta.6] - 2019-04-09
1434
-
1435
- ## [3.2.0-beta.5] - 2019-04-09
1436
-
1437
- ## [3.2.0-beta.4] - 2019-04-08
1438
-
1439
- ## [3.2.0-beta.3] - 2019-04-08
1440
-
1441
- ### Added
1442
-
1443
- - `segment.getSegment` and `segment.getSegmentByToken`
1444
-
1445
- ## [3.2.0-beta.2] - 2019-04-08
1446
-
1447
- ## [3.2.0-beta.1] - 2019-04-08
1448
-
1449
- ## [3.2.0-beta.0] - 2019-04-08
1450
-
1451
- ## [3.2.0-beta] - 2019-04-08
1452
-
1453
- ### Added
1454
-
1455
- - Option `forceMaxAge` option to `HttpClient` request config. This allows certain requests to forceably be cached for `forceMaxAge` seconds, regardless of the responses' `Cache-control` header, as long as status is 200.
1456
-
1457
- ## [3.1.2] - 2019-04-09
1458
-
1459
- ### Changed
1460
-
1461
- - Makes errors compliant to [apollo's specification](https://www.apollographql.com/docs/apollo-server/features/errors)
1462
- - Makes it possible to use graphql handler with a scary warning
1463
-
1464
- ## [3.1.2-beta.0] - 2019-04-08
1465
-
1466
- ## [3.1.2-beta] - 2019-04-08
1467
-
1468
- ## [3.1.0] - 2019-04-04
1469
-
1470
- ## [3.1.0-beta.0] - 2019-04-04
1471
-
1472
- ## [3.1.0-beta] - 2019-04-04
1473
-
1474
- ## [3.0.16] - 2019-04-04
1475
-
1476
- ## [3.0.16-beta.0] - 2019-04-04
1477
-
1478
- ## [3.0.16-beta] - 2019-04-04
1479
-
1480
- ## [3.0.15] - 2019-04-03
1481
-
1482
- ### Changed
1483
-
1484
- - Added type inference for `IOClients.getOrSet` method. No need to type instantiations like
1485
-
1486
- ```ts
1487
- export class IOClients {
1488
- public get logger(): Logger {
1489
- return this.getOrSet('logger', Logger)
1490
- }
1491
- }
1492
- ```
1493
-
1494
- You can just do
1495
-
1496
- ```ts
1497
- export class IOClients {
1498
- public get logger() {
1499
- return this.getOrSet('logger', Logger)
1500
- }
1501
- }
1502
- ```
1503
-
1504
- instead
1505
-
1506
- ## [3.0.14] - 2019-04-03
1507
-
1508
- ## [3.0.14-beta.0] - 2019-04-03
1509
-
1510
- ## [3.0.14-beta] - 2019-04-03
1511
-
1512
- ## [3.0.13] - 2019-04-03
1513
-
1514
- ## [3.0.12] - 2019-04-02
1515
-
1516
- ## [3.0.11] - 2019-03-31
1517
-
1518
- ## [3.0.11-beta.7] - 2019-03-29
1519
-
1520
- ## [3.0.11-beta.6] - 2019-03-29
1521
-
1522
- ## [3.0.11-beta.5] - 2019-03-29
1523
-
1524
- ## [3.0.11-beta.4] - 2019-03-29
1525
-
1526
- ## [3.0.11-beta.3] - 2019-03-29
1527
-
1528
- ## [3.0.11-beta.2] - 2019-03-29
1529
-
1530
- ## [3.0.11-beta.1] - 2019-03-29
1531
-
1532
- ## [3.0.11-beta.0] - 2019-03-29
1533
-
1534
- ## [3.0.11-beta] - 2019-03-29
1535
-
1536
- ## [3.0.10] - 2019-03-28
1537
-
1538
- ## [3.0.9] - 2019-03-28
1539
-
1540
- ### Changed
1541
-
1542
- - Expose more details on all errors (e.g. operationId, requestId, query source, variables).
1543
-
1544
- ## [3.0.9-beta.4] - 2019-03-28
1545
-
1546
- ## [3.0.9-beta.3] - 2019-03-28
1547
-
1548
- ## [3.0.9-beta.2] - 2019-03-28
1549
-
1550
- ## [3.0.9-beta.1] - 2019-03-28
1551
-
1552
- ## [3.0.9-beta.0] - 2019-03-28
1553
-
1554
- ## [3.0.9-beta] - 2019-03-28
1555
-
1556
- ## [3.0.8] - 2019-03-28
1557
-
1558
- ## [3.0.8-beta] - 2019-03-28
1559
-
1560
- ### Changed
1561
-
1562
- - Conflate 2xx and 5xx status labels to success and error respectively.
1563
- - Adds `graphql-operation` metric that considers if _any_ resolver had errors, with two dimensions: success and error
1564
- - Logs each resolver error individually and add request information
1565
- - Stop logging successful route handlers
1566
- - Add single hardcoded retry for sending error logs
1567
- - Prepare for `graphql` route id (deprecating `__graphql`)
1568
- - Disallow declaration of `graphql` as http route handler
1569
-
1570
- ## [3.0.7-beta.0] - 2019-03-28
1571
-
1572
- ## [3.0.7] - 2019-03-28
1573
-
1574
- ### Added
1575
-
1576
- - tsErrorsAsWarnings parameter for the `linkApp` and `relinkApp` methods of the `Builder` class
1577
-
1578
- ## [3.0.7-beta] - 2019-03-28
1579
-
1580
- ## [3.0.6] - 2019-03-28
1581
-
1582
- ## [3.0.5] - 2019-03-27
1583
-
1584
- ## [3.0.4] - 2019-03-27
1585
-
1586
- ## [3.0.3] - 2019-03-27
1587
-
1588
- ### Added
1589
-
1590
- - Implement new Service() wrapper and port graphql route generation from service-runtime-node.
1591
-
1592
- ## [3.0.3-beta.4] - 2019-03-27
1593
-
1594
- ## [3.0.3-beta.3] - 2019-03-27
1595
-
1596
- ## [3.0.3-beta.2] - 2019-03-27
1597
-
1598
- ## [3.0.3-beta.1] - 2019-03-26
1599
-
1600
- ## [3.0.3-beta.0] - 2019-03-26
1601
-
1602
- ## [3.0.1-beta.28] - 2019-03-26
1603
-
1604
- ## [3.0.1-beta.27] - 2019-03-26
1605
-
1606
- ## [3.0.1-beta.26] - 2019-03-26
1607
-
1608
- ## [3.0.1-beta.25] - 2019-03-26
1609
-
1610
- ## [3.0.1-beta.24] - 2019-03-26
1611
-
1612
- ## [3.0.1-beta.23] - 2019-03-26
1613
-
1614
- ## [3.0.1-beta.22] - 2019-03-26
1615
-
1616
- ## [3.0.1-beta.21] - 2019-03-26
1617
-
1618
- ## [3.0.1-beta.20] - 2019-03-25
1619
-
1620
- ## [3.0.1-beta.19] - 2019-03-25
1621
-
1622
- ## [3.0.1-beta.18] - 2019-03-25
1623
-
1624
- ## [3.0.1-beta.17] - 2019-03-21
1625
-
1626
- ## [3.0.1-beta.16] - 2019-03-21
1627
-
1628
- ## [3.0.1-beta.15] - 2019-03-21
1629
-
1630
- ## [3.0.1-beta.14] - 2019-03-21
1631
-
1632
- ## [3.0.1-beta.13] - 2019-03-20
1633
-
1634
- ## [3.0.1-beta.12] - 2019-03-20
1635
-
1636
- ## [3.0.1-beta.11] - 2019-03-20
1637
-
1638
- ## [3.0.0-beta.16] - 2019-03-20
1639
-
1640
- ## [3.0.0-beta.15] - 2019-03-20
1641
-
1642
- ## [3.0.0-beta.14] - 2019-03-20
1643
-
1644
- ## [3.0.0-beta.13] - 2019-03-20
1645
-
1646
- ## [3.0.0-beta.12] - 2019-03-20
1647
-
1648
- ## [3.0.0-beta.11] - 2019-03-20
1649
-
1650
- ## [3.0.0-beta.10] - 2019-03-19
1651
-
1652
- ## [3.0.0-beta.9] - 2019-03-19
1653
-
1654
- ## [3.0.0-beta.8] - 2019-03-18
1655
-
1656
- ## [3.0.0-beta.7] - 2019-03-18
1657
-
1658
- ## [3.0.0-beta.6] - 2019-03-18
1659
-
1660
- ## [3.0.0-beta.5] - 2019-03-18
1661
-
1662
- ## [3.0.0-beta.4] - 2019-03-17
1663
-
1664
- ## [3.0.0-beta.3] - 2019-03-17
1665
-
1666
- ## [3.0.0-beta.2] - 2019-03-17
1667
-
1668
- ## [3.0.0-beta.1] - 2019-03-17
1669
-
1670
- ## [3.0.0-beta.0] - 2019-03-17
1671
-
1672
- ## [3.0.0-beta] - 2019-03-17
1673
-
1674
- ## [2.4.0] - 2019-03-16
1675
-
1676
- ## [2.3.6] - 2019-03-16
1677
-
1678
- ## [2.3.6-beta] - 2019-03-16
1679
-
1680
- ## [2.3.5] - 2019-03-14
1681
-
1682
- ## [2.3.4] - 2019-03-14
1683
-
1684
- ### Changed
1685
-
1686
- - Add production dimension to all metrics
1687
-
1688
- ## [2.3.3] - 2019-03-13
1689
-
1690
- ## [2.3.2] - 2019-03-13
1691
-
1692
- ## [2.3.1] - 2019-03-13
1693
-
1694
- ## [2.3.0] - 2019-03-13
1695
-
1696
- ## [2.3.0-beta.3] - 2019-03-13
1697
-
1698
- ## [2.3.0-beta.2] - 2019-03-13
1699
-
1700
- ## [2.3.0-beta.1] - 2019-03-13
1701
-
1702
- ## [2.3.0-beta.0] - 2019-03-13
1703
-
1704
- ## [2.3.0-beta] - 2019-03-13
1705
-
1706
- ### Changed
1707
-
1708
- - Remove production from MetricsAccumulator methods and add cacheHits
1709
-
1710
- ## [2.2.0] - 2019-03-12
1711
-
1712
- ## [2.2.0-beta.0] - 2019-03-11
1713
-
1714
- ## [2.2.0-beta] - 2019-03-11
1715
-
1716
- ### Changed
1717
-
1718
- - Only retry safe requests
1719
- - Add metrics for proxy timeout and retries
1720
- - Add `metric` config to clients requests
1721
- - Add `concurrency` option to HttpClient to limit amount of parallel requests
1722
-
1723
- ## [2.1.0] - 2019-03-07
1724
-
1725
- ### Changed
1726
-
1727
- - Change default retry behaviour to only retry on network error once
1728
- - Accept retryConfig on each HttpClient
1729
-
1730
- ## [2.1.0-beta.1] - 2019-02-28
1731
-
1732
- ## [2.1.0-beta.0] - 2019-02-27
1733
-
1734
- ## [2.1.0-beta] - 2019-02-27
1735
-
1736
- ### Changed
1737
-
1738
- - Added new required parameter to create a new workspace on Workspaces API.
1739
-
1740
- ## [1.9.0] - 2019-02-25
1741
-
1742
- ### Added
1743
-
1744
- - Functions that call new Apps API for dependency resolution.
1745
-
1746
- ## [1.8.3] - 2019-02-22
1747
-
1748
- ### Changed
1749
-
1750
- - Updated App Manifest types
1751
-
1752
- ## [1.8.2] - 2019-02-22
1753
-
1754
- ## [1.8.2-beta] - 2019-02-22
1755
-
1756
- ## [1.8.1] - 2019-02-13
1757
-
1758
- ## [1.8.1-beta] - 2019-02-12
1759
-
1760
- ## [1.8.0-beta] - 2019-02-12
1761
-
1762
- ## [1.7.0] - 2019-02-12
1763
-
1764
- ### Added
1765
-
1766
- - segmentToken and sessionToken to IOContext type definition
1767
-
1768
- ## [1.7.0-beta] - 2019-02-12
1769
-
1770
- ## [1.6.0] - 2019-01-25
1771
-
1772
- ## [1.5.4] - 2019-01-17
1773
-
1774
- ### Added
1775
-
1776
- - protected context in favor of private one in IODataSource
1777
-
1778
- ## [1.5.3] - 2019-01-11
1779
-
1780
- ### Fixed
1781
-
1782
- - IOContext types mismatch with service-runtime-node
1783
-
1784
- ## [1.5.2] - 2018-11-27
1785
-
1786
- ## [1.5.1] - 2018-10-31
1787
-
1788
- ## [1.5.0] - 2018-10-31
1789
-
1790
- ## [1.4.0] - 2018-10-29
1791
-
1792
- ## [1.2.0] - 2018-10-16
1793
-
1794
- ## [1.1.0] - 2018-10-15
1795
-
1796
- ## [1.0.0] - 2018-10-08
1797
-
1798
- ## [1.0.0-beta.16] - 2018-10-08
1799
-
1800
- ## [1.0.0-beta.15] - 2018-09-28
1801
-
1802
- ## [1.0.0-beta.14] - 2018-09-25
1803
-
1804
- ## [1.0.0-beta.13] - 2018-09-25
1805
-
1806
- ## [1.0.0-beta.12] - 2018-09-25
1807
-
1808
- ## [1.0.0-beta.11] - 2018-09-25
1809
-
1810
- ## [1.0.0-beta.10] - 2018-09-25
1811
-
1812
- ## [1.0.0-beta.9] - 2018-09-25
1813
-
1814
- ## [1.0.0-beta] - 2018-09-21
1815
-
1816
- ### Added
1817
-
1818
- - Added changelog :grimacing:.
1819
- - Added MetricsAccumulator
1820
- - Added Metrics support in HttpClient
1821
-
1822
- ### Changed
1823
-
1824
- - Lint the whole damn thing.
1825
- - Update all dependencies.
1826
-
1827
- ## [0.48.0] - 2018-09-21
1828
-
1829
- ### Changed
1830
-
1831
- - `HttpClient` now adds `'Accept-Encoding': 'gzip'` header by default.
1832
-
1833
-
1834
- [Unreleased]: https://github.com/vtex/node-vtex-api/compare/v6.45.22...HEAD
1835
- [6.45.15]: https://github.com/vtex/node-vtex-api/compare/v6.45.14...v6.45.15
1836
- [6.45.14]: https://github.com/vtex/node-vtex-api/compare/v6.45.13...v6.45.14
1837
- [6.45.13]: https://github.com/vtex/node-vtex-api/compare/v6.45.12...v6.45.13
1838
-
1839
- [6.45.22]: https://github.com/vtex/node-vtex-api/compare/v6.45.21...v6.45.22
1840
- [6.45.21]: https://github.com/vtex/node-vtex-api/compare/v6.45.21-beta.2...v6.45.21
1841
- [6.45.21-beta.2]: https://github.com/vtex/node-vtex-api/compare/v6.45.21-beta.1...v6.45.21-beta.2
1842
- [6.45.21-beta.1]: https://github.com/vtex/node-vtex-api/compare/v6.45.21-beta.0...v6.45.21-beta.1
1843
- [6.45.21-beta.0]: https://github.com/vtex/node-vtex-api/compare/v6.45.21-beta...v6.45.21-beta.0
1844
- [6.45.21-beta]: https://github.com/vtex/node-vtex-api/compare/v6.45.20...v6.45.21-beta
1845
- [6.45.20]: https://github.com/vtex/node-vtex-api/compare/v6.45.20-beta...v6.45.20
1846
- [6.45.20-beta]: https://github.com/vtex/node-vtex-api/compare/v6.45.19...v6.45.20-beta