@atlaskit/util-service-support 7.2.0 → 7.2.1

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,13 @@
1
1
  # @atlaskit/util-service-support
2
2
 
3
+ ## 7.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9001b66f2e78c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9001b66f2e78c) -
8
+ Replace the `export *` barrels in the package entry point with explicit named re-exports
9
+ (`export { … }` / `export type { … }`). Public API is unchanged; improves tree-shaking.
10
+
3
11
  ## 7.2.0
4
12
 
5
13
  ### 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.2.1",
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.1.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
  }