@atlaskit/media-client 28.0.7 → 28.0.8

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/media-client
2
2
 
3
+ ## 28.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#158161](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/158161)
8
+ [`f092b9d2f949d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f092b9d2f949d) -
9
+ clean up LD Media CDN FFs
10
+
3
11
  ## 28.0.7
4
12
 
5
13
  ### Patch Changes
@@ -42,7 +42,7 @@ var jsonHeaders = {
42
42
  };
43
43
  var cdnFeatureFlag = function cdnFeatureFlag(endpoint) {
44
44
  var result = endpoint;
45
- if ((0, _platformFeatureFlags.fg)('platform.media-cdn-delivery') || (0, _platformFeatureFlags.fg)('platform_media_cdn_delivery')) {
45
+ if ((0, _platformFeatureFlags.fg)('platform_media_cdn_delivery')) {
46
46
  if ((0, _isCommercial.isCommercial)()) {
47
47
  result += '/cdn';
48
48
  }
@@ -9,7 +9,7 @@ var _isCommercial = require("../utils/isCommercial");
9
9
  var getArtifactUrl = exports.getArtifactUrl = function getArtifactUrl(artifacts, prop) {
10
10
  var _artifacts$prop, _artifacts$prop3;
11
11
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
12
- if ((0, _isCommercial.isCommercial)() && ((0, _platformFeatureFlags.fg)('platform.media-cdn-delivery') || (0, _platformFeatureFlags.fg)('platform_media_cdn_delivery')) && (_artifacts$prop = artifacts[prop]) !== null && _artifacts$prop !== void 0 && _artifacts$prop.url) {
12
+ if ((0, _isCommercial.isCommercial)() && (0, _platformFeatureFlags.fg)('platform_media_cdn_delivery') && (_artifacts$prop = artifacts[prop]) !== null && _artifacts$prop !== void 0 && _artifacts$prop.url) {
13
13
  var _artifacts$prop2;
14
14
  return "".concat((_artifacts$prop2 = artifacts[prop]) === null || _artifacts$prop2 === void 0 ? void 0 : _artifacts$prop2.url, "/cdn");
15
15
  }
@@ -23,7 +23,7 @@ function mapToMediaCdnUrl(url, token) {
23
23
  return url;
24
24
  }
25
25
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
26
- if (((0, _platformFeatureFlags.fg)('platform.media-cdn-delivery') || (0, _platformFeatureFlags.fg)('platform_media_cdn_delivery')) && ((0, _platformFeatureFlags.fg)('platform.media-cdn-single-host') || (0, _platformFeatureFlags.fg)('platform_media_cdn_single_host'))) {
26
+ if ((0, _platformFeatureFlags.fg)('platform_media_cdn_delivery') && (0, _platformFeatureFlags.fg)('platform_media_cdn_single_host')) {
27
27
  try {
28
28
  var parsedUrl = new URL(url);
29
29
  var cdnHost = MEDIA_CDN_MAP[parsedUrl.host];
@@ -31,7 +31,7 @@ const jsonHeaders = {
31
31
  };
32
32
  const cdnFeatureFlag = endpoint => {
33
33
  let result = endpoint;
34
- if (fg('platform.media-cdn-delivery') || fg('platform_media_cdn_delivery')) {
34
+ if (fg('platform_media_cdn_delivery')) {
35
35
  if (isCommercial()) {
36
36
  result += '/cdn';
37
37
  }
@@ -3,7 +3,7 @@ import { isCommercial } from '../utils/isCommercial';
3
3
  export const getArtifactUrl = (artifacts, prop) => {
4
4
  var _artifacts$prop, _artifacts$prop3;
5
5
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
6
- if (isCommercial() && (fg('platform.media-cdn-delivery') || fg('platform_media_cdn_delivery')) && (_artifacts$prop = artifacts[prop]) !== null && _artifacts$prop !== void 0 && _artifacts$prop.url) {
6
+ if (isCommercial() && fg('platform_media_cdn_delivery') && (_artifacts$prop = artifacts[prop]) !== null && _artifacts$prop !== void 0 && _artifacts$prop.url) {
7
7
  var _artifacts$prop2;
8
8
  return `${(_artifacts$prop2 = artifacts[prop]) === null || _artifacts$prop2 === void 0 ? void 0 : _artifacts$prop2.url}/cdn`;
9
9
  }
@@ -16,7 +16,7 @@ export function mapToMediaCdnUrl(url, token) {
16
16
  return url;
17
17
  }
18
18
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
19
- if ((fg('platform.media-cdn-delivery') || fg('platform_media_cdn_delivery')) && (fg('platform.media-cdn-single-host') || fg('platform_media_cdn_single_host'))) {
19
+ if (fg('platform_media_cdn_delivery') && fg('platform_media_cdn_single_host')) {
20
20
  try {
21
21
  const parsedUrl = new URL(url);
22
22
  const cdnHost = MEDIA_CDN_MAP[parsedUrl.host];
@@ -36,7 +36,7 @@ var jsonHeaders = {
36
36
  };
37
37
  var cdnFeatureFlag = function cdnFeatureFlag(endpoint) {
38
38
  var result = endpoint;
39
- if (fg('platform.media-cdn-delivery') || fg('platform_media_cdn_delivery')) {
39
+ if (fg('platform_media_cdn_delivery')) {
40
40
  if (isCommercial()) {
41
41
  result += '/cdn';
42
42
  }
@@ -3,7 +3,7 @@ import { isCommercial } from '../utils/isCommercial';
3
3
  export var getArtifactUrl = function getArtifactUrl(artifacts, prop) {
4
4
  var _artifacts$prop, _artifacts$prop3;
5
5
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
6
- if (isCommercial() && (fg('platform.media-cdn-delivery') || fg('platform_media_cdn_delivery')) && (_artifacts$prop = artifacts[prop]) !== null && _artifacts$prop !== void 0 && _artifacts$prop.url) {
6
+ if (isCommercial() && fg('platform_media_cdn_delivery') && (_artifacts$prop = artifacts[prop]) !== null && _artifacts$prop !== void 0 && _artifacts$prop.url) {
7
7
  var _artifacts$prop2;
8
8
  return "".concat((_artifacts$prop2 = artifacts[prop]) === null || _artifacts$prop2 === void 0 ? void 0 : _artifacts$prop2.url, "/cdn");
9
9
  }
@@ -16,7 +16,7 @@ export function mapToMediaCdnUrl(url, token) {
16
16
  return url;
17
17
  }
18
18
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
19
- if ((fg('platform.media-cdn-delivery') || fg('platform_media_cdn_delivery')) && (fg('platform.media-cdn-single-host') || fg('platform_media_cdn_single_host'))) {
19
+ if (fg('platform_media_cdn_delivery') && fg('platform_media_cdn_single_host')) {
20
20
  try {
21
21
  var parsedUrl = new URL(url);
22
22
  var cdnHost = MEDIA_CDN_MAP[parsedUrl.host];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "28.0.7",
3
+ "version": "28.0.8",
4
4
  "description": "Media API Web Client Library",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -81,15 +81,9 @@
81
81
  }
82
82
  },
83
83
  "platform-feature-flags": {
84
- "platform.media-cdn-delivery": {
85
- "type": "boolean"
86
- },
87
84
  "platform.media-card-performance-observer_a803k": {
88
85
  "type": "boolean"
89
86
  },
90
- "platform.media-cdn-single-host": {
91
- "type": "boolean"
92
- },
93
87
  "platform_media_cdn_single_host": {
94
88
  "type": "boolean"
95
89
  },