@atlaskit/util-service-support 7.1.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 +22 -0
- package/compass.yml +38 -0
- package/constants/package.json +7 -0
- package/dist/cjs/constants.js +12 -0
- package/dist/cjs/index.js +25 -33
- package/dist/es2019/constants.js +4 -0
- package/dist/es2019/index.js +3 -6
- package/dist/esm/constants.js +4 -0
- package/dist/esm/index.js +3 -6
- package/dist/types/constants.d.ts +4 -0
- package/dist/types/index.d.ts +4 -6
- package/dist/types/types.d.ts +1 -1
- package/package.json +3 -3
- package/tsconfig.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
11
|
+
## 7.2.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`e8071bab93879`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8071bab93879) -
|
|
16
|
+
Refactor packages with custom root `src/index` barrel logic to use dedicated entry modules (for
|
|
17
|
+
example `main`, `types`, `constants`, `screen`, and package-specific entrypoints) while keeping
|
|
18
|
+
public exports stable. This aligns the packages with barrel-file ratcheting by reducing custom
|
|
19
|
+
logic in root barrels and removing now-safe packages from the prohibited barrel-file list.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 7.1.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/compass.yml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
configVersion: 1
|
|
2
|
+
id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/a1e03a66-d1dd-47ee-bb9f-febb12cd5374
|
|
3
|
+
name: '@atlaskit/util-service-support'
|
|
4
|
+
ownerId: ari:cloud:identity::team/9be50a1a-a131-434b-9432-e114277205af # AFM Experience (Greg Power)
|
|
5
|
+
labels:
|
|
6
|
+
- platform-code
|
|
7
|
+
- platform-afm
|
|
8
|
+
typeId: OTHER
|
|
9
|
+
fields:
|
|
10
|
+
tier: 4
|
|
11
|
+
lifecycle: Active
|
|
12
|
+
isMonorepoProject: true
|
|
13
|
+
links:
|
|
14
|
+
- name: Root Repository
|
|
15
|
+
type: REPOSITORY
|
|
16
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
17
|
+
- name: Slack Channel
|
|
18
|
+
type: CHAT_CHANNEL
|
|
19
|
+
url: https://atlassian.enterprise.slack.com/archives/CL6HC337Z # #help-afm
|
|
20
|
+
- name: Util Service Support
|
|
21
|
+
type: REPOSITORY
|
|
22
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/elements/util-service-support
|
|
23
|
+
customFields:
|
|
24
|
+
- name: Department
|
|
25
|
+
type: text
|
|
26
|
+
value: Eng - Dev Infra
|
|
27
|
+
- name: Technical Owner
|
|
28
|
+
type: user
|
|
29
|
+
value: ari:cloud:identity::user/557058:b8ef8c49-c789-4d00-a432-41c7b91a004b # Raja Bellebon
|
|
30
|
+
- name: Required Reviewers Opt In
|
|
31
|
+
type: boolean
|
|
32
|
+
value: true
|
|
33
|
+
- name: Reviewer Selection Mechanism
|
|
34
|
+
type: text
|
|
35
|
+
value: random(2)
|
|
36
|
+
- name: Required Reviewer Approvals
|
|
37
|
+
type: number
|
|
38
|
+
value: 1
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.utils = exports.multipartUtils = void 0;
|
|
8
|
+
var serviceUtils = _interopRequireWildcard(require("./serviceUtils"));
|
|
9
|
+
var multipartServiceUtils = _interopRequireWildcard(require("./multipartServiceUtils"));
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
11
|
+
var utils = exports.utils = serviceUtils;
|
|
12
|
+
var multipartUtils = exports.multipartUtils = multipartServiceUtils;
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,40 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _types = require("./types");
|
|
13
|
-
Object.keys(_types).forEach(function (key) {
|
|
14
|
-
if (key === "default" || key === "__esModule") return;
|
|
15
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
17
|
-
Object.defineProperty(exports, key, {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function get() {
|
|
20
|
-
return _types[key];
|
|
21
|
-
}
|
|
22
|
-
});
|
|
6
|
+
Object.defineProperty(exports, "AbstractResource", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _serviceResources.AbstractResource;
|
|
10
|
+
}
|
|
23
11
|
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
12
|
+
Object.defineProperty(exports, "buildCredentials", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _types.buildCredentials;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "multipartUtils", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _constants.multipartUtils;
|
|
22
|
+
}
|
|
35
23
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
24
|
+
Object.defineProperty(exports, "utils", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _constants.utils;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _types = require("./types");
|
|
31
|
+
var _serviceResources = require("./serviceResources");
|
|
32
|
+
var _constants = require("./constants");
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
import * as multipartServiceUtils from './multipartServiceUtils';
|
|
5
|
-
export const utils = serviceUtils;
|
|
6
|
-
export const multipartUtils = multipartServiceUtils;
|
|
1
|
+
export { buildCredentials } from './types';
|
|
2
|
+
export { AbstractResource } from './serviceResources';
|
|
3
|
+
export { utils, multipartUtils } from './constants';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
import * as multipartServiceUtils from './multipartServiceUtils';
|
|
5
|
-
export var utils = serviceUtils;
|
|
6
|
-
export var multipartUtils = multipartServiceUtils;
|
|
1
|
+
export { buildCredentials } from './types';
|
|
2
|
+
export { AbstractResource } from './serviceResources';
|
|
3
|
+
export { utils, multipartUtils } from './constants';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const utils: typeof serviceUtils;
|
|
6
|
-
export declare const multipartUtils: typeof multipartServiceUtils;
|
|
1
|
+
export { buildCredentials } from './types';
|
|
2
|
+
export type { KeyValues, OnProviderChange, Provider, RefreshSecurityProvider, RequestServiceOptions, SecurityOptions, SecurityProvider, ServiceConfig, } from './types';
|
|
3
|
+
export { AbstractResource } from './serviceResources';
|
|
4
|
+
export { utils, multipartUtils } from './constants';
|
|
7
5
|
export type { RequestServiceResult, PartsGenerator, MultiPartFetchResult, BodyResult, } from './multipartServiceUtils';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface SecurityOptions {
|
|
|
53
53
|
omitCredentials?: boolean;
|
|
54
54
|
params?: KeyValues;
|
|
55
55
|
}
|
|
56
|
-
export declare const buildCredentials: (secOptions?: SecurityOptions) =>
|
|
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.1
|
|
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.
|
|
30
|
+
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
31
31
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
32
|
-
"@atlaskit/react-ufo": "^7.
|
|
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": "
|
|
3
|
-
"
|
|
2
|
+
"extends": "./tsconfig.dev.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"disableReferencedProjectLoad": true,
|
|
5
|
+
"disableSolutionSearching": true
|
|
6
|
+
}
|
|
4
7
|
}
|