@atlaskit/util-service-support 6.2.4 → 6.2.6

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 CHANGED
@@ -1,100 +1,146 @@
1
1
  # @atlaskit/util-service-support
2
2
 
3
+ ## 6.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.2.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
14
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
15
+ Upgrade Typescript from `4.9.5` to `5.4.2`
16
+
3
17
  ## 6.2.4
4
18
 
5
19
  ### Patch Changes
6
20
 
7
- - [#68561](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68561) [`6a1919bf8400`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a1919bf8400) - Migrate packages to use declarative entry points
21
+ - [#68561](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68561)
22
+ [`6a1919bf8400`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a1919bf8400) -
23
+ Migrate packages to use declarative entry points
8
24
 
9
25
  ## 6.2.3
10
26
 
11
27
  ### Patch Changes
12
28
 
13
- - [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
29
+ - [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
30
+ [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete
31
+ version.json
14
32
 
15
33
  ## 6.2.2
16
34
 
17
35
  ### Patch Changes
18
36
 
19
- - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
37
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
38
+ [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
39
+ legacy types are published for TS 4.5-4.8
20
40
 
21
41
  ## 6.2.1
22
42
 
23
43
  ### Patch Changes
24
44
 
25
- - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
45
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
46
+ [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
47
+ Typescript from `4.5.5` to `4.9.5`
26
48
 
27
49
  ## 6.2.0
28
50
 
29
51
  ### Minor Changes
30
52
 
31
- - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
53
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
54
+ [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
55
+ minor dependency bump
32
56
 
33
57
  ## 6.1.3
34
58
 
35
59
  ### Patch Changes
36
60
 
37
- - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
61
+ - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
62
+ [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
63
+ Typescript from `4.3.5` to `4.5.5`
38
64
 
39
65
  ## 6.1.2
40
66
 
41
67
  ### Patch Changes
42
68
 
43
- - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
69
+ - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
70
+ [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
71
+ Typescript from `4.2.4` to `4.3.5`.
44
72
 
45
73
  ## 6.1.1
46
74
 
47
75
  ### Patch Changes
48
76
 
49
- - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
77
+ - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
78
+ [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
79
+ to TypeScript 4.2.4
50
80
 
51
81
  ## 6.1.0
52
82
 
53
83
  ### Minor Changes
54
84
 
55
- - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Remove unused polyfills
85
+ - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
86
+ [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Remove
87
+ unused polyfills
56
88
 
57
89
  ## 6.0.5
58
90
 
59
91
  ### Patch Changes
60
92
 
61
- - [#8625](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8625) [`dfe01a5dad7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfe01a5dad7) - Added ability to ignore JSON payload on status.ok responses
93
+ - [#8625](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8625)
94
+ [`dfe01a5dad7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfe01a5dad7) - Added
95
+ ability to ignore JSON payload on status.ok responses
62
96
 
63
97
  ## 6.0.4
64
98
 
65
99
  ### Patch Changes
66
100
 
67
- - [#9338](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9338) [`0241ccdf088`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0241ccdf088) - Accept paths which already have a leading slash.
101
+ - [#9338](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9338)
102
+ [`0241ccdf088`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0241ccdf088) - Accept
103
+ paths which already have a leading slash.
68
104
 
69
105
  ## 6.0.3
70
106
 
71
107
  ### Patch Changes
72
108
 
73
- - [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
109
+ - [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
110
+ [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
111
+ packages using babel rather than tsc
74
112
 
75
113
  ## 6.0.2
76
114
 
77
115
  ### Patch Changes
78
116
 
79
- - [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
80
- This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
81
- Also add `typescript` to `devDependencies` to denote version that the package was built with.
117
+ - [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
118
+ [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
119
+ types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
120
+ compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
121
+ versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
122
+ `devDependencies` to denote version that the package was built with.
82
123
 
83
124
  ## 6.0.1
84
125
 
85
126
  ### Patch Changes
86
127
 
87
- - [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
128
+ - [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
129
+ [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
130
+ to TypeScript 3.9.6 and tslib to 2.0.0
88
131
 
89
- Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
90
- to prevent duplicates of tslib being bundled.
132
+ Since tslib is a dependency for all our packages we recommend that products also follow this tslib
133
+ upgrade to prevent duplicates of tslib being bundled.
91
134
 
92
135
  ## 6.0.0
93
136
 
94
137
  ### Major Changes
95
138
 
96
- - [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
97
- For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
139
+ - [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
140
+ [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
141
+ dropping IE11 support, from this version onwards there are no warranties of the package working in
142
+ IE11. For more information see:
143
+ https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
98
144
 
99
145
  ## 5.0.1
100
146
 
@@ -102,7 +148,8 @@
102
148
 
103
149
  - [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
104
150
 
105
- Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
151
+ Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
152
+ [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
106
153
 
107
154
  - @atlaskit/docs@8.3.2
108
155
 
@@ -154,7 +201,8 @@
154
201
 
155
202
  - [patch][36f5a93068](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/36f5a93068):
156
203
 
157
- Revert API breaking change `headers[key]` => `headers.get(key)`. This change will be reintroduced as a major in a subsequent release.
204
+ Revert API breaking change `headers[key]` => `headers.get(key)`. This change will be reintroduced
205
+ as a major in a subsequent release.
158
206
 
159
207
  ## 4.1.0
160
208
 
@@ -166,13 +214,15 @@ _Contains an API breaking change:`headers.map(key)` => `headers[key]`._
166
214
 
167
215
  - [minor][c38928b077](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c38928b077):
168
216
 
169
- ED-7631: fixed code to build headers to run in Chrome in serviceUtils.requestService- [minor][ae4f336a3a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ae4f336a3a):
217
+ ED-7631: fixed code to build headers to run in Chrome in serviceUtils.requestService-
218
+ [minor][ae4f336a3a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ae4f336a3a):
170
219
 
171
220
  **FABDODGEM-13 Editor Damask Release** - [Internal post](http://go.atlassian.com/damask-release)
172
221
 
173
222
  **BREAKING CHANGES**
174
223
 
175
- - **Media:** Removed deprecated "context" property from media components in favor of "mediaClientConfig". This affects all public media UI components.
224
+ - **Media:** Removed deprecated "context" property from media components in favor of
225
+ "mediaClientConfig". This affects all public media UI components.
176
226
  - https://product-fabric.atlassian.net/browse/MS-2038
177
227
  - **Tasks & Decisions:** Removed containerAri for task-decisions components.
178
228
  - https://product-fabric.atlassian.net/browse/ED-7631
@@ -257,7 +307,8 @@ Bumped dependencies.
257
307
 
258
308
  - [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
259
309
 
260
- Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
310
+ Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
311
+ non-relative imports as relative imports
261
312
 
262
313
  ## 4.0.6
263
314
 
@@ -287,12 +338,15 @@ Bumped dependencies.
287
338
  - Adding back cjs
288
339
  - Replacing es5 by cjs and es2015 by esm
289
340
  - Creating folders at the root for entry-points
290
- - Removing the generation of the entry-points at the root
291
- Please see this [ticket](https://product-fabric.atlassian.net/browse/BUILDTOOLS-118) or this [page](https://hello.atlassian.net/wiki/spaces/FED/pages/452325500/Finishing+Atlaskit+multiple+entry+points) for further details
341
+ - Removing the generation of the entry-points at the root Please see this
342
+ [ticket](https://product-fabric.atlassian.net/browse/BUILDTOOLS-118) or this
343
+ [page](https://hello.atlassian.net/wiki/spaces/FED/pages/452325500/Finishing+Atlaskit+multiple+entry+points)
344
+ for further details
292
345
 
293
346
  ## 4.0.3
294
347
 
295
- - Updated dependencies [7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
348
+ - Updated dependencies
349
+ [7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
296
350
  - @atlaskit/docs@8.0.0
297
351
 
298
352
  ## 4.0.2
@@ -315,7 +369,8 @@ Bumped dependencies.
315
369
 
316
370
  ## 3.1.1
317
371
 
318
- - Updated dependencies [76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
372
+ - Updated dependencies
373
+ [76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
319
374
  - @atlaskit/docs@7.0.0
320
375
 
321
376
  ## 3.1.0
@@ -337,78 +392,98 @@ Bumped dependencies.
337
392
 
338
393
  ## 3.0.3
339
394
 
340
- - [patch] FS-2941 Stop using Request object and upgrade fetch-mock [dff332a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dff332a)
395
+ - [patch] FS-2941 Stop using Request object and upgrade fetch-mock
396
+ [dff332a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dff332a)
341
397
 
342
398
  ## 3.0.2
343
399
 
344
- - [patch] Fix es5 exports of some of the newer modules [3f0cd7d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f0cd7d)
400
+ - [patch] Fix es5 exports of some of the newer modules
401
+ [3f0cd7d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f0cd7d)
345
402
 
346
403
  ## 3.0.1
347
404
 
348
- - [patch] Updated dependencies [acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1)
405
+ - [patch] Updated dependencies
406
+ [acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1)
349
407
  - @atlaskit/docs@5.0.2
350
408
 
351
409
  ## 3.0.0
352
410
 
353
- - [major] Updated dependencies [563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb)
411
+ - [major] Updated dependencies
412
+ [563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb)
354
413
  - @atlaskit/docs@5.0.0
355
- - [major] Updated dependencies [7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
414
+ - [major] Updated dependencies
415
+ [7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
356
416
  - @atlaskit/docs@5.0.0
357
417
 
358
418
  ## 2.0.12
359
419
 
360
- - [patch] Move the tests under src and club the tests under unit, integration and visual regression [f1a9069](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f1a9069)
420
+ - [patch] Move the tests under src and club the tests under unit, integration and visual regression
421
+ [f1a9069](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f1a9069)
361
422
 
362
423
  ## 2.0.11
363
424
 
364
- - [patch] Update changelogs to remove duplicate [cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
365
- - [none] Updated dependencies [cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
425
+ - [patch] Update changelogs to remove duplicate
426
+ [cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
427
+ - [none] Updated dependencies
428
+ [cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
366
429
  - @atlaskit/docs@4.1.1
367
430
 
368
431
  ## 2.0.10
369
432
 
370
- - [none] Updated dependencies [9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54)
433
+ - [none] Updated dependencies
434
+ [9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54)
371
435
  - @atlaskit/docs@4.1.0
372
436
 
373
437
  ## 2.0.9
374
438
 
375
- - [patch] FS-797 Allow setting url for pubsub example and fix url-search-params import style [1c85e67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1c85e67)
439
+ - [patch] FS-797 Allow setting url for pubsub example and fix url-search-params import style
440
+ [1c85e67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1c85e67)
376
441
 
377
442
  ## 2.0.8
378
443
 
379
- - [patch] Updated dependencies [1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
444
+ - [patch] Updated dependencies
445
+ [1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
380
446
  - @atlaskit/docs@4.0.0
381
447
 
382
448
  ## 2.0.7
383
449
 
384
- - [patch] Updated dependencies [d662caa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d662caa)
450
+ - [patch] Updated dependencies
451
+ [d662caa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d662caa)
385
452
  - @atlaskit/docs@3.0.4
386
453
 
387
454
  ## 2.0.6
388
455
 
389
- - [patch] Fixed tsconfig in build/es5 [c8e55d0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c8e55d0)
456
+ - [patch] Fixed tsconfig in build/es5
457
+ [c8e55d0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c8e55d0)
390
458
 
391
459
  ## 2.0.5
392
460
 
393
- - [patch] FS-1698 migrated util-service-support to mk-2 [e0bcb61](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e0bcb61)
461
+ - [patch] FS-1698 migrated util-service-support to mk-2
462
+ [e0bcb61](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e0bcb61)
394
463
 
395
464
  ## 2.0.4 (2018-02-06)
396
465
 
397
- - bug fix; added omitCredentials to SecurityOptions ([88cb203](https://bitbucket.org/atlassian/atlaskit/commits/88cb203))
466
+ - bug fix; added omitCredentials to SecurityOptions
467
+ ([88cb203](https://bitbucket.org/atlassian/atlaskit/commits/88cb203))
398
468
 
399
469
  ## 2.0.3 (2017-12-26)
400
470
 
401
- - bug fix; remove @atlaskit/util-common-test from devDependencies ([e9faeab](https://bitbucket.org/atlassian/atlaskit/commits/e9faeab))
402
- - bug fix; add url-search-params as a dependency (issues closed: fs-1091) ([b33cdcf](https://bitbucket.org/atlassian/atlaskit/commits/b33cdcf))
471
+ - bug fix; remove @atlaskit/util-common-test from devDependencies
472
+ ([e9faeab](https://bitbucket.org/atlassian/atlaskit/commits/e9faeab))
473
+ - bug fix; add url-search-params as a dependency (issues closed: fs-1091)
474
+ ([b33cdcf](https://bitbucket.org/atlassian/atlaskit/commits/b33cdcf))
403
475
 
404
476
  ## 2.0.2 (2017-09-12)
405
477
 
406
- - bug fix; requestService can handle 204 responses with no content ([edf13d5](https://bitbucket.org/atlassian/atlaskit/commits/edf13d5))
478
+ - bug fix; requestService can handle 204 responses with no content
479
+ ([edf13d5](https://bitbucket.org/atlassian/atlaskit/commits/edf13d5))
407
480
 
408
481
  ## 2.0.1 (2017-07-24)
409
482
 
410
- - fix; make sure types from utils are exports (extracted types to separate file) ([ebde291](https://bitbucket.org/atlassian/atlaskit/commits/ebde291))
483
+ - fix; make sure types from utils are exports (extracted types to separate file)
484
+ ([ebde291](https://bitbucket.org/atlassian/atlaskit/commits/ebde291))
411
485
 
412
486
  ## 1.0.0 (2017-07-24)
413
487
 
414
- - feature; extract common service integration code into a shared library ([5714832](https://bitbucket.org/atlassian/atlaskit/commits/5714832))
488
+ - feature; extract common service integration code into a shared library
489
+ ([5714832](https://bitbucket.org/atlassian/atlaskit/commits/5714832))
@@ -5,8 +5,7 @@
5
5
  "target": "es5",
6
6
  "composite": true,
7
7
  "outDir": "../dist",
8
- "rootDir": "../",
9
- "baseUrl": "../"
8
+ "rootDir": "../"
10
9
  },
11
10
  "include": [
12
11
  "../src/**/*.ts",
@@ -17,5 +16,12 @@
17
16
  "../src/**/*.test.*",
18
17
  "../src/**/test.*"
19
18
  ],
20
- "references": []
19
+ "references": [
20
+ {
21
+ "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../../react-ufo/atlaskit/afm-cc/tsconfig.json"
25
+ }
26
+ ]
21
27
  }
@@ -0,0 +1,27 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.jira.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__util-service-support/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../../react-ufo/atlaskit/afm-jira/tsconfig.json"
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.post-office.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../post-office/tsDist/@atlaskit__util-service-support/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../../react-ufo/atlaskit/afm-post-office/tsconfig.json"
25
+ }
26
+ ]
27
+ }
package/dist/cjs/index.js CHANGED
@@ -33,6 +33,6 @@ Object.keys(_serviceResources).forEach(function (key) {
33
33
  });
34
34
  });
35
35
  var serviceUtils = _interopRequireWildcard(require("./serviceUtils"));
36
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
36
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
37
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
38
38
  var utils = exports.utils = serviceUtils;
@@ -13,7 +13,7 @@ var AbstractResource = exports.AbstractResource = /*#__PURE__*/function () {
13
13
  (0, _classCallCheck2.default)(this, AbstractResource);
14
14
  (0, _defineProperty2.default)(this, "listeners", new Set());
15
15
  }
16
- (0, _createClass2.default)(AbstractResource, [{
16
+ return (0, _createClass2.default)(AbstractResource, [{
17
17
  key: "subscribe",
18
18
  value: function subscribe(onChange) {
19
19
  this.listeners.add(onChange);
@@ -62,5 +62,4 @@ var AbstractResource = exports.AbstractResource = /*#__PURE__*/function () {
62
62
  });
63
63
  }
64
64
  }]);
65
- return AbstractResource;
66
65
  }();
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.requestService = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _experienceTraceIdContext = require("@atlaskit/react-ufo/experience-trace-id-context");
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
+ var _featureFlagsAccessed = require("@atlaskit/react-ufo/feature-flags-accessed");
9
12
  var _types = require("./types");
10
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -78,7 +81,7 @@ var buildHeaders = function buildHeaders(secOptions, extraHeaders) {
78
81
  /**
79
82
  * @returns Promise containing the json response
80
83
  */
81
- var requestService = exports.requestService = function requestService(serviceConfig, options) {
84
+ var _requestService = exports.requestService = function requestService(serviceConfig, options) {
82
85
  var url = serviceConfig.url,
83
86
  securityProvider = serviceConfig.securityProvider,
84
87
  refreshedSecurityProvider = serviceConfig.refreshedSecurityProvider;
@@ -91,8 +94,20 @@ var requestService = exports.requestService = function requestService(serviceCon
91
94
  var headers = buildHeaders(secOptions, requestInit && requestInit.headers);
92
95
  var credentials = (0, _types.buildCredentials)(secOptions);
93
96
  var ignoreResponsePayload = (options === null || options === void 0 ? void 0 : options.ignoreResponsePayload) || false;
97
+
98
+ //Get tracing headers from UFO
99
+ var TRACING_HEADER_FOR_SERVICE_UTIL = 'platform_collab_provider_tracingheaders';
100
+ var tracingHeaderEnabled = (0, _platformFeatureFlags.fg)('platform_collab_provider_tracingheaders');
101
+ (0, _featureFlagsAccessed.addFeatureFlagAccessed)(TRACING_HEADER_FOR_SERVICE_UTIL, tracingHeaderEnabled);
102
+ var tracingHeaders = {};
103
+ if (tracingHeaderEnabled) {
104
+ tracingHeaders = (0, _experienceTraceIdContext.getActiveTraceHttpRequestHeaders)(url);
105
+ }
94
106
  var requestOptions = _objectSpread(_objectSpread({}, requestInit), {}, {
95
- headers: headers,
107
+ // populate headers mainly for the collab provider however
108
+ // other components which uses this util can get the header as well.
109
+ // Those tracing headers shall not incur any issues as long as backends handle them properly
110
+ headers: _objectSpread(_objectSpread({}, headers), tracingHeaders),
96
111
  credentials: credentials
97
112
  });
98
113
  return fetch(requestUrl, requestOptions).then(function (response) {
@@ -109,7 +124,7 @@ var requestService = exports.requestService = function requestService(serviceCon
109
124
  return newSecOptions;
110
125
  }
111
126
  };
112
- return requestService(retryServiceConfig, options);
127
+ return _requestService(retryServiceConfig, options);
113
128
  });
114
129
  }
115
130
  return Promise.reject({
@@ -1,3 +1,6 @@
1
+ import { getActiveTraceHttpRequestHeaders } from '@atlaskit/react-ufo/experience-trace-id-context';
2
+ import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
1
4
  import { buildCredentials } from './types';
2
5
  const defaultRequestServiceOptions = {};
3
6
  const buildUrl = (baseUrl, path = '', queryParams, secOptions) => {
@@ -81,9 +84,24 @@ export const requestService = (serviceConfig, options) => {
81
84
  const headers = buildHeaders(secOptions, requestInit && requestInit.headers);
82
85
  const credentials = buildCredentials(secOptions);
83
86
  const ignoreResponsePayload = (options === null || options === void 0 ? void 0 : options.ignoreResponsePayload) || false;
87
+
88
+ //Get tracing headers from UFO
89
+ const TRACING_HEADER_FOR_SERVICE_UTIL = 'platform_collab_provider_tracingheaders';
90
+ const tracingHeaderEnabled = fg('platform_collab_provider_tracingheaders');
91
+ addFeatureFlagAccessed(TRACING_HEADER_FOR_SERVICE_UTIL, tracingHeaderEnabled);
92
+ let tracingHeaders = {};
93
+ if (tracingHeaderEnabled) {
94
+ tracingHeaders = getActiveTraceHttpRequestHeaders(url);
95
+ }
84
96
  const requestOptions = {
85
97
  ...requestInit,
86
- headers,
98
+ // populate headers mainly for the collab provider however
99
+ // other components which uses this util can get the header as well.
100
+ // Those tracing headers shall not incur any issues as long as backends handle them properly
101
+ headers: {
102
+ ...headers,
103
+ ...tracingHeaders
104
+ },
87
105
  credentials
88
106
  };
89
107
  return fetch(requestUrl, requestOptions).then(response => {
@@ -6,7 +6,7 @@ export var AbstractResource = /*#__PURE__*/function () {
6
6
  _classCallCheck(this, AbstractResource);
7
7
  _defineProperty(this, "listeners", new Set());
8
8
  }
9
- _createClass(AbstractResource, [{
9
+ return _createClass(AbstractResource, [{
10
10
  key: "subscribe",
11
11
  value: function subscribe(onChange) {
12
12
  this.listeners.add(onChange);
@@ -55,5 +55,4 @@ export var AbstractResource = /*#__PURE__*/function () {
55
55
  });
56
56
  }
57
57
  }]);
58
- return AbstractResource;
59
58
  }();
@@ -1,6 +1,9 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ import { getActiveTraceHttpRequestHeaders } from '@atlaskit/react-ufo/experience-trace-id-context';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
+ import { addFeatureFlagAccessed } from '@atlaskit/react-ufo/feature-flags-accessed';
4
7
  import { buildCredentials } from './types';
5
8
  var defaultRequestServiceOptions = {};
6
9
  var buildUrl = function buildUrl(baseUrl) {
@@ -71,7 +74,7 @@ var buildHeaders = function buildHeaders(secOptions, extraHeaders) {
71
74
  /**
72
75
  * @returns Promise containing the json response
73
76
  */
74
- export var requestService = function requestService(serviceConfig, options) {
77
+ var _requestService = function requestService(serviceConfig, options) {
75
78
  var url = serviceConfig.url,
76
79
  securityProvider = serviceConfig.securityProvider,
77
80
  refreshedSecurityProvider = serviceConfig.refreshedSecurityProvider;
@@ -84,8 +87,20 @@ export var requestService = function requestService(serviceConfig, options) {
84
87
  var headers = buildHeaders(secOptions, requestInit && requestInit.headers);
85
88
  var credentials = buildCredentials(secOptions);
86
89
  var ignoreResponsePayload = (options === null || options === void 0 ? void 0 : options.ignoreResponsePayload) || false;
90
+
91
+ //Get tracing headers from UFO
92
+ var TRACING_HEADER_FOR_SERVICE_UTIL = 'platform_collab_provider_tracingheaders';
93
+ var tracingHeaderEnabled = fg('platform_collab_provider_tracingheaders');
94
+ addFeatureFlagAccessed(TRACING_HEADER_FOR_SERVICE_UTIL, tracingHeaderEnabled);
95
+ var tracingHeaders = {};
96
+ if (tracingHeaderEnabled) {
97
+ tracingHeaders = getActiveTraceHttpRequestHeaders(url);
98
+ }
87
99
  var requestOptions = _objectSpread(_objectSpread({}, requestInit), {}, {
88
- headers: headers,
100
+ // populate headers mainly for the collab provider however
101
+ // other components which uses this util can get the header as well.
102
+ // Those tracing headers shall not incur any issues as long as backends handle them properly
103
+ headers: _objectSpread(_objectSpread({}, headers), tracingHeaders),
89
104
  credentials: credentials
90
105
  });
91
106
  return fetch(requestUrl, requestOptions).then(function (response) {
@@ -102,7 +117,7 @@ export var requestService = function requestService(serviceConfig, options) {
102
117
  return newSecOptions;
103
118
  }
104
119
  };
105
- return requestService(retryServiceConfig, options);
120
+ return _requestService(retryServiceConfig, options);
106
121
  });
107
122
  }
108
123
  return Promise.reject({
@@ -110,4 +125,5 @@ export var requestService = function requestService(serviceConfig, options) {
110
125
  reason: response.statusText
111
126
  });
112
127
  });
113
- };
128
+ };
129
+ export { _requestService as requestService };
@@ -1,4 +1,4 @@
1
- import { OnProviderChange, Provider } from './types';
1
+ import { type OnProviderChange, type Provider } from './types';
2
2
  export declare abstract class AbstractResource<Q, R, E, I, O> implements Provider<Q, R, E, I, O> {
3
3
  private lastResult;
4
4
  private listeners;
@@ -1,4 +1,4 @@
1
- import { RequestServiceOptions, ServiceConfig } from './types';
1
+ import { type RequestServiceOptions, type ServiceConfig } from './types';
2
2
  /**
3
3
  * @returns Promise containing the json response
4
4
  */
@@ -1,4 +1,4 @@
1
- import { OnProviderChange, Provider } from './types';
1
+ import { type OnProviderChange, type Provider } from './types';
2
2
  export declare abstract class AbstractResource<Q, R, E, I, O> implements Provider<Q, R, E, I, O> {
3
3
  private lastResult;
4
4
  private listeners;
@@ -1,4 +1,4 @@
1
- import { RequestServiceOptions, ServiceConfig } from './types';
1
+ import { type RequestServiceOptions, type ServiceConfig } from './types';
2
2
  /**
3
3
  * @returns Promise containing the json response
4
4
  */
package/docs/0-intro.tsx CHANGED
@@ -1,21 +1,22 @@
1
1
  import { md } from '@atlaskit/docs';
2
2
 
3
3
  export default md`
4
- # Util Service Support
4
+ # Util Service Support
5
5
 
6
- A library of support classes for integrating React components with REST HTTP services, including support for authentication.
6
+ A library of support classes for integrating React components with REST HTTP services, including
7
+ support for authentication.
7
8
 
8
- ## Installation
9
+ ## Installation
9
10
 
10
- ~~~js
11
- npm install @atlaskit/mention
12
- # or
13
- yarn add @atlaskit/mention
14
- ~~~
11
+ ~~~js
12
+ npm install @atlaskit/mention
13
+ # or
14
+ yarn add @atlaskit/mention
15
+ ~~~
15
16
 
16
- ## Using the component
17
+ ## Using the component
17
18
 
18
- Use the component in your React app as follows:
19
+ Use the component in your React app as follows:
19
20
 
20
- import { AbstractResource } from '@atlaskit/util-service-support';
21
+ import { AbstractResource } from '@atlaskit/util-service-support';
21
22
  `;
package/package.json CHANGED
@@ -1,58 +1,62 @@
1
1
  {
2
- "name": "@atlaskit/util-service-support",
3
- "version": "6.2.4",
4
- "description": "A library of support classes for integrating React components with REST HTTP services",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/"
7
- },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
- "author": "Atlassian Pty Ltd",
10
- "license": "Apache-2.0",
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "module:es2019": "dist/es2019/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
- "atlaskit:src": "src/index.ts",
24
- "af:exports": {
25
- ".": "./src/index.ts",
26
- "./serviceResources": "./src/serviceResources.ts",
27
- "./serviceUtils": "./src/serviceUtils.ts",
28
- "./types": "./src/types.ts"
29
- },
30
- "atlassian": {
31
- "releaseModel": "continuous",
32
- "team": "UIP: Frontend Delivery"
33
- },
34
- "config": {
35
- "access": "public"
36
- },
37
- "dependencies": {
38
- "@babel/runtime": "^7.0.0"
39
- },
40
- "devDependencies": {
41
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
42
- "es6-promise": "^4.0.5",
43
- "fetch-mock": "^8.0.0",
44
- "sinon": "^2.2.0",
45
- "typescript": "~4.9.5"
46
- },
47
- "keywords": [
48
- "fabric",
49
- "ui",
50
- "private"
51
- ],
52
- "techstack": {
53
- "@atlassian/frontend": {
54
- "tree-shaking": []
55
- }
56
- },
57
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
58
- }
2
+ "name": "@atlaskit/util-service-support",
3
+ "version": "6.2.6",
4
+ "description": "A library of support classes for integrating React components with REST HTTP services",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "module:es2019": "dist/es2019/index.js",
14
+ "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
23
+ "atlaskit:src": "src/index.ts",
24
+ "af:exports": {
25
+ ".": "./src/index.ts",
26
+ "./serviceResources": "./src/serviceResources.ts",
27
+ "./serviceUtils": "./src/serviceUtils.ts",
28
+ "./types": "./src/types.ts"
29
+ },
30
+ "atlassian": {
31
+ "team": "Build Infra"
32
+ },
33
+ "config": {
34
+ "access": "public"
35
+ },
36
+ "dependencies": {
37
+ "@atlaskit/platform-feature-flags": "^1.0.0",
38
+ "@atlaskit/react-ufo": "^2.14.0",
39
+ "@babel/runtime": "^7.0.0"
40
+ },
41
+ "devDependencies": {
42
+ "es6-promise": "^4.0.5",
43
+ "fetch-mock": "^8.0.0",
44
+ "sinon": "^2.2.0",
45
+ "typescript": "~5.4.2"
46
+ },
47
+ "keywords": [
48
+ "fabric",
49
+ "ui",
50
+ "private"
51
+ ],
52
+ "techstack": {
53
+ "@atlassian/frontend": {
54
+ "tree-shaking": []
55
+ }
56
+ },
57
+ "platform-feature-flags": {
58
+ "platform_collab_provider_tracingheaders": {
59
+ "type": "boolean"
60
+ }
61
+ }
62
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/util-service-support"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -16,105 +17,101 @@
16
17
 
17
18
  ```ts
18
19
  // @public (undocumented)
19
- export abstract class AbstractResource<Q, R, E, I, O>
20
- implements Provider<Q, R, E, I, O>
21
- {
22
- // (undocumented)
23
- abstract filter(query?: Q, options?: O): void;
24
- // (undocumented)
25
- protected notifyError(error: E): void;
26
- // (undocumented)
27
- protected notifyInfo(info: I): void;
28
- // (undocumented)
29
- protected notifyNotReady(): void;
30
- // (undocumented)
31
- protected notifyResult(result: R): void;
32
- // (undocumented)
33
- subscribe(onChange: OnProviderChange<R, E, I>): void;
34
- // (undocumented)
35
- unsubscribe(onChange: OnProviderChange<R, E, I>): void;
20
+ export abstract class AbstractResource<Q, R, E, I, O> implements Provider<Q, R, E, I, O> {
21
+ // (undocumented)
22
+ abstract filter(query?: Q, options?: O): void;
23
+ // (undocumented)
24
+ protected notifyError(error: E): void;
25
+ // (undocumented)
26
+ protected notifyInfo(info: I): void;
27
+ // (undocumented)
28
+ protected notifyNotReady(): void;
29
+ // (undocumented)
30
+ protected notifyResult(result: R): void;
31
+ // (undocumented)
32
+ subscribe(onChange: OnProviderChange<R, E, I>): void;
33
+ // (undocumented)
34
+ unsubscribe(onChange: OnProviderChange<R, E, I>): void;
36
35
  }
37
36
 
38
37
  // @public (undocumented)
39
- export const buildCredentials: (
40
- secOptions?: SecurityOptions,
41
- ) => 'include' | 'omit';
38
+ export const buildCredentials: (secOptions?: SecurityOptions) => 'include' | 'omit';
42
39
 
43
40
  // @public (undocumented)
44
41
  export interface KeyValues {
45
- // (undocumented)
46
- [index: string]: any;
42
+ // (undocumented)
43
+ [index: string]: any;
47
44
  }
48
45
 
49
46
  // @public (undocumented)
50
47
  export interface OnProviderChange<R, E, I> {
51
- error?(error: E): void;
52
- info?(info: I): void;
53
- notReady?(): void;
54
- result(result: R): void;
48
+ error?(error: E): void;
49
+ info?(info: I): void;
50
+ notReady?(): void;
51
+ result(result: R): void;
55
52
  }
56
53
 
57
54
  // @public
58
55
  export interface Provider<Q, R, E, I, O> {
59
- filter(query?: Q, options?: O): void;
60
- // (undocumented)
61
- subscribe(onChange: OnProviderChange<R, E, I>): void;
62
- // (undocumented)
63
- unsubscribe(onChange: OnProviderChange<R, E, I>): void;
56
+ filter(query?: Q, options?: O): void;
57
+ // (undocumented)
58
+ subscribe(onChange: OnProviderChange<R, E, I>): void;
59
+ // (undocumented)
60
+ unsubscribe(onChange: OnProviderChange<R, E, I>): void;
64
61
  }
65
62
 
66
63
  // @public
67
64
  export interface RefreshSecurityProvider {
68
- // (undocumented)
69
- (): Promise<SecurityOptions>;
65
+ // (undocumented)
66
+ (): Promise<SecurityOptions>;
70
67
  }
71
68
 
72
69
  // @public (undocumented)
73
70
  const requestService: <T>(
74
- serviceConfig: ServiceConfig,
75
- options?: RequestServiceOptions,
71
+ serviceConfig: ServiceConfig,
72
+ options?: RequestServiceOptions,
76
73
  ) => Promise<T>;
77
74
 
78
75
  // @public (undocumented)
79
76
  export interface RequestServiceOptions {
80
- // (undocumented)
81
- ignoreResponsePayload?: boolean;
82
- // (undocumented)
83
- path?: string;
84
- // (undocumented)
85
- queryParams?: KeyValues;
86
- // (undocumented)
87
- requestInit?: RequestInit;
77
+ // (undocumented)
78
+ ignoreResponsePayload?: boolean;
79
+ // (undocumented)
80
+ path?: string;
81
+ // (undocumented)
82
+ queryParams?: KeyValues;
83
+ // (undocumented)
84
+ requestInit?: RequestInit;
88
85
  }
89
86
 
90
87
  // @public (undocumented)
91
88
  export interface SecurityOptions {
92
- // (undocumented)
93
- headers?: KeyValues;
94
- // (undocumented)
95
- omitCredentials?: boolean;
96
- // (undocumented)
97
- params?: KeyValues;
89
+ // (undocumented)
90
+ headers?: KeyValues;
91
+ // (undocumented)
92
+ omitCredentials?: boolean;
93
+ // (undocumented)
94
+ params?: KeyValues;
98
95
  }
99
96
 
100
97
  // @public
101
98
  export interface SecurityProvider {
102
- // (undocumented)
103
- (): SecurityOptions;
99
+ // (undocumented)
100
+ (): SecurityOptions;
104
101
  }
105
102
 
106
103
  // @public (undocumented)
107
104
  export interface ServiceConfig {
108
- // (undocumented)
109
- refreshedSecurityProvider?: RefreshSecurityProvider;
110
- // (undocumented)
111
- securityProvider?: SecurityProvider;
112
- // (undocumented)
113
- url: string;
105
+ // (undocumented)
106
+ refreshedSecurityProvider?: RefreshSecurityProvider;
107
+ // (undocumented)
108
+ securityProvider?: SecurityProvider;
109
+ // (undocumented)
110
+ url: string;
114
111
  }
115
112
 
116
113
  declare namespace serviceUtils {
117
- export { requestService };
114
+ export { requestService };
118
115
  }
119
116
 
120
117
  // @public (undocumented)
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/serviceResources.js",
6
6
  "types": "../dist/types/serviceResources.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/serviceResources.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/serviceUtils.js",
6
6
  "types": "../dist/types/serviceUtils.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/serviceUtils.d.ts"
11
11
  ]
package/tsconfig.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../tsconfig.json",
3
3
  "compilerOptions": {
4
- "baseUrl": "./"
5
4
  },
6
5
  "include": [
7
6
  "./src/**/*.ts",
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/types.js",
6
6
  "types": "../dist/types/types.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/types.d.ts"
11
11
  ]