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