@atlaskit/media-client 37.2.4 → 37.2.5
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,20 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 37.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b1cf9e336f0f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1cf9e336f0f0) -
|
|
8
|
+
Migrate consumers of @atlaskit/atlassian-context from barrel imports to direct subpath imports,
|
|
9
|
+
and remove the deprecated `./domain-lookup`, `./generalized-domain-lookup`, and `./perimeter`
|
|
10
|
+
entry-point exports (all symbols remain available via their per-export subpaths).
|
|
11
|
+
|
|
12
|
+
Also extends the `no-restricted-fedramp-imports` ESLint rule to cover the new
|
|
13
|
+
`@atlaskit/atlassian-context/is-fedramp` and `@atlaskit/atlassian-context/is-isolated-cloud`
|
|
14
|
+
subpaths, so the FedRamp/IsolatedCloud deprecation guardrail keeps firing after the migration.
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 37.2.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -8,7 +8,7 @@ exports.isCDNEnabled = isCDNEnabled;
|
|
|
8
8
|
exports.mapToMediaCdnUrl = mapToMediaCdnUrl;
|
|
9
9
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
10
|
var _isCommercial = require("./isCommercial");
|
|
11
|
-
var
|
|
11
|
+
var _isIsolatedCloud = require("@atlaskit/atlassian-context/is-isolated-cloud");
|
|
12
12
|
var _mediaEnvUtils = require("@atlaskit/media-common/mediaEnvUtils");
|
|
13
13
|
var _pathBasedUrl = require("./pathBasedUrl");
|
|
14
14
|
var MEDIA_CDN_MAP = exports.MEDIA_CDN_MAP = {
|
|
@@ -21,7 +21,7 @@ var MEDIA_CDN_MAP = exports.MEDIA_CDN_MAP = {
|
|
|
21
21
|
// Assuming other parts of the URL make up a max of ~1000 (in reality it's lower), the token can be ~7000
|
|
22
22
|
var MEDIA_TOKEN_LENGTH_LIMIT = 7000;
|
|
23
23
|
function isCDNEnabled() {
|
|
24
|
-
return (0, _isCommercial.isCommercial)() && !(0,
|
|
24
|
+
return (0, _isCommercial.isCommercial)() && !(0, _isIsolatedCloud.isIsolatedCloud)() && !(0, _mediaEnvUtils.isGCPtenant)() && (0, _platformFeatureFlags.fg)('platform_media_cdn_delivery') && !(0, _pathBasedUrl.isPathBasedEnabled)();
|
|
25
25
|
}
|
|
26
26
|
function mapToMediaCdnUrl(url, token) {
|
|
27
27
|
var _token$length;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
2
|
import { isCommercial } from './isCommercial';
|
|
3
|
-
import { isIsolatedCloud } from '@atlaskit/atlassian-context';
|
|
3
|
+
import { isIsolatedCloud } from '@atlaskit/atlassian-context/is-isolated-cloud';
|
|
4
4
|
import { isGCPtenant } from '@atlaskit/media-common/mediaEnvUtils';
|
|
5
5
|
import { isPathBasedEnabled } from './pathBasedUrl';
|
|
6
6
|
export const MEDIA_CDN_MAP = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
2
|
import { isCommercial } from './isCommercial';
|
|
3
|
-
import { isIsolatedCloud } from '@atlaskit/atlassian-context';
|
|
3
|
+
import { isIsolatedCloud } from '@atlaskit/atlassian-context/is-isolated-cloud';
|
|
4
4
|
import { isGCPtenant } from '@atlaskit/media-common/mediaEnvUtils';
|
|
5
5
|
import { isPathBasedEnabled } from './pathBasedUrl';
|
|
6
6
|
export var MEDIA_CDN_MAP = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-client",
|
|
3
|
-
"version": "37.2.
|
|
3
|
+
"version": "37.2.5",
|
|
4
4
|
"description": "Media API Web Client Library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/atlassian-context": "^1.
|
|
24
|
+
"@atlaskit/atlassian-context": "^1.1.0",
|
|
25
25
|
"@atlaskit/chunkinator": "^8.0.0",
|
|
26
26
|
"@atlaskit/media-common": "^14.3.0",
|
|
27
27
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
28
|
-
"@atlaskit/tmp-editor-statsig": "^124.
|
|
28
|
+
"@atlaskit/tmp-editor-statsig": "^124.6.0",
|
|
29
29
|
"@babel/runtime": "^7.0.0",
|
|
30
30
|
"dataloader": "^2.1.0",
|
|
31
31
|
"deep-equal": "^1.0.1",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@atlaskit/media-core": "^38.0.0",
|
|
46
46
|
"@atlaskit/media-state": "^3.0.0",
|
|
47
47
|
"@atlaskit/ssr": "workspace:^",
|
|
48
|
-
"@atlaskit/tokens": "^15.
|
|
48
|
+
"@atlaskit/tokens": "^15.8.0",
|
|
49
49
|
"@atlassian/a11y-jest-testing": "^0.13.0",
|
|
50
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
50
|
+
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"@types/deep-equal": "^1.0.1",
|
|
53
53
|
"fetch-mock": "^8.0.0",
|