@atlaskit/util-service-support 7.2.0 → 7.3.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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/util-service-support
2
2
 
3
+ ## 7.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
8
+ Remove stale API report artifacts from published Platform packages.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 7.2.1
15
+
16
+ ### Patch Changes
17
+
18
+ - [`9001b66f2e78c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9001b66f2e78c) -
19
+ Replace the `export *` barrels in the package entry point with explicit named re-exports
20
+ (`export { … }` / `export type { … }`). Public API is unchanged; improves tree-shaking.
21
+
3
22
  ## 7.2.0
4
23
 
5
24
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -3,10 +3,18 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _exportNames = {
7
- utils: true,
8
- multipartUtils: true
9
- };
6
+ Object.defineProperty(exports, "AbstractResource", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _serviceResources.AbstractResource;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "buildCredentials", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _types.buildCredentials;
16
+ }
17
+ });
10
18
  Object.defineProperty(exports, "multipartUtils", {
11
19
  enumerable: true,
12
20
  get: function get() {
@@ -20,27 +28,5 @@ Object.defineProperty(exports, "utils", {
20
28
  }
21
29
  });
22
30
  var _types = require("./types");
23
- Object.keys(_types).forEach(function (key) {
24
- if (key === "default" || key === "__esModule") return;
25
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
26
- if (key in exports && exports[key] === _types[key]) return;
27
- Object.defineProperty(exports, key, {
28
- enumerable: true,
29
- get: function get() {
30
- return _types[key];
31
- }
32
- });
33
- });
34
31
  var _serviceResources = require("./serviceResources");
35
- Object.keys(_serviceResources).forEach(function (key) {
36
- if (key === "default" || key === "__esModule") return;
37
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
38
- if (key in exports && exports[key] === _serviceResources[key]) return;
39
- Object.defineProperty(exports, key, {
40
- enumerable: true,
41
- get: function get() {
42
- return _serviceResources[key];
43
- }
44
- });
45
- });
46
32
  var _constants = require("./constants");
@@ -1,3 +1,3 @@
1
- export * from './types';
2
- export * from './serviceResources';
1
+ export { buildCredentials } from './types';
2
+ export { AbstractResource } from './serviceResources';
3
3
  export { utils, multipartUtils } from './constants';
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from './types';
2
- export * from './serviceResources';
1
+ export { buildCredentials } from './types';
2
+ export { AbstractResource } from './serviceResources';
3
3
  export { utils, multipartUtils } from './constants';
@@ -1,4 +1,5 @@
1
- export * from './types';
2
- export * from './serviceResources';
1
+ export { buildCredentials } from './types';
2
+ export type { KeyValues, OnProviderChange, Provider, RefreshSecurityProvider, RequestServiceOptions, SecurityOptions, SecurityProvider, ServiceConfig, } from './types';
3
+ export { AbstractResource } from './serviceResources';
3
4
  export { utils, multipartUtils } from './constants';
4
5
  export type { RequestServiceResult, PartsGenerator, MultiPartFetchResult, BodyResult, } from './multipartServiceUtils';
@@ -53,7 +53,7 @@ export interface SecurityOptions {
53
53
  omitCredentials?: boolean;
54
54
  params?: KeyValues;
55
55
  }
56
- export declare const buildCredentials: (secOptions?: SecurityOptions) => "omit" | "include";
56
+ export declare const buildCredentials: (secOptions?: SecurityOptions) => 'omit' | 'include';
57
57
  /**
58
58
  * Returns a promise to a SecurityOptions that has just been forcibly refreshed with a
59
59
  * new token. Will be used for single retry per request if a 401 is returned.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/util-service-support",
3
- "version": "7.2.0",
3
+ "version": "7.3.0",
4
4
  "description": "A library of support classes for integrating React components with REST HTTP services",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,9 +27,9 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@atlaskit/platform-feature-flags": "^2.0.0",
30
+ "@atlaskit/platform-feature-flags": "^2.2.0",
31
31
  "@atlaskit/react-compiler-gating": "^0.2.0",
32
- "@atlaskit/react-ufo": "^7.3.0",
32
+ "@atlaskit/react-ufo": "^7.7.0",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "meros": "^1.3.0"
35
35
  },
package/tsconfig.json CHANGED
@@ -1,4 +1,7 @@
1
1
  {
2
- "extends": "../../../tsconfig.json",
3
- "include": ["./src/**/*.ts", "./src/**/*.tsx", "./docs/**/*.ts", "./docs/**/*.tsx"]
2
+ "extends": "./tsconfig.dev.json",
3
+ "compilerOptions": {
4
+ "disableReferencedProjectLoad": true,
5
+ "disableSolutionSearching": true
6
+ }
4
7
  }
package/report.api.md DELETED
@@ -1,133 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/util-service-support"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- // @public (undocumented)
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;
35
- }
36
-
37
- // @public (undocumented)
38
- export const buildCredentials: (secOptions?: SecurityOptions) => 'include' | 'omit';
39
-
40
- // @public (undocumented)
41
- export interface KeyValues {
42
- // (undocumented)
43
- [index: string]: any;
44
- }
45
-
46
- // @public (undocumented)
47
- export interface OnProviderChange<R, E, I> {
48
- error?(error: E): void;
49
- info?(info: I): void;
50
- notReady?(): void;
51
- result(result: R): void;
52
- }
53
-
54
- // @public
55
- export interface Provider<Q, R, E, I, O> {
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;
61
- }
62
-
63
- // @public
64
- export interface RefreshSecurityProvider {
65
- // (undocumented)
66
- (): Promise<SecurityOptions>;
67
- }
68
-
69
- // @public (undocumented)
70
- const requestService: <T>(
71
- serviceConfig: ServiceConfig,
72
- options?: RequestServiceOptions,
73
- ) => Promise<T>;
74
-
75
- // @public (undocumented)
76
- export interface RequestServiceOptions {
77
- // (undocumented)
78
- ignoreResponsePayload?: boolean;
79
- // (undocumented)
80
- path?: string;
81
- // (undocumented)
82
- queryParams?: KeyValues;
83
- // (undocumented)
84
- requestInit?: RequestInit;
85
- }
86
-
87
- // @public (undocumented)
88
- export interface SecurityOptions {
89
- // (undocumented)
90
- headers?: KeyValues;
91
- // (undocumented)
92
- omitCredentials?: boolean;
93
- // (undocumented)
94
- params?: KeyValues;
95
- }
96
-
97
- // @public
98
- export interface SecurityProvider {
99
- // (undocumented)
100
- (): SecurityOptions;
101
- }
102
-
103
- // @public (undocumented)
104
- export interface ServiceConfig {
105
- // (undocumented)
106
- refreshedSecurityProvider?: RefreshSecurityProvider;
107
- // (undocumented)
108
- securityProvider?: SecurityProvider;
109
- // (undocumented)
110
- url: string;
111
- }
112
-
113
- declare namespace serviceUtils {
114
- export { requestService };
115
- }
116
-
117
- // @public (undocumented)
118
- export const utils: typeof serviceUtils;
119
-
120
- // (No @packageDocumentation comment for this package)
121
- ```
122
-
123
- <!--SECTION END: Main Entry Types-->
124
-
125
- ### Peer Dependencies
126
-
127
- <!--SECTION START: Peer Dependencies-->
128
-
129
- ```json
130
- {}
131
- ```
132
-
133
- <!--SECTION END: Peer Dependencies-->