@atlaskit/media-client 37.7.0 → 37.7.3

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,50 @@
1
1
  # @atlaskit/media-client
2
2
 
3
+ ## 37.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 37.7.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 37.7.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [`0927c3666c010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0927c3666c010) -
20
+ Upgrade `uuid` from `3.x` to `11.1.1` to remediate GHSA-w5hq-g745-h8pq / SNYK-JS-UUID-16133035.
21
+
22
+ `uuid@11` removed the deep subpath exports (`uuid/v4`, `uuid/v1`, `uuid/v5`) and the default
23
+ export, so all internal call sites were migrated to named imports:
24
+
25
+ ```diff
26
+ -import uuid from 'uuid/v4';
27
+ +import { v4 as uuid } from 'uuid';
28
+
29
+ -import uuid from 'uuid';
30
+ +import { v4 as uuid } from 'uuid';
31
+ ```
32
+
33
+ With the exception of `@atlassian/integrations` (below), this is an internal implementation change
34
+ only - no public API, export, or entrypoint changed. UUID generation behaviour is unchanged
35
+ (`uuid@3`'s default export was already `v4`).
36
+
37
+ `@atlassian/integrations` declares `uuid` as a peer dependency, so its declared range moved from
38
+ `^3.1.0` to `^11.1.1`. That is a peer dependency declaration change, hence `minor` rather than
39
+ `patch` for that package.
40
+
41
+ The following `platform/packages/ai-mate` packages were also touched, but are all `private: true`
42
+ and so are intentionally not listed in the frontmatter above:
43
+ - `@atlassian/csm-assistance-service` - bumped its explicit `uuid` dependency from `npm:^9.0.0` to
44
+ `npm:^11.1.1` (`9.0.1` is also within the advisory's affected range).
45
+ - `@atlassian/csm-guidance-config` - example helper only, migrated to the named `uuid` import.
46
+ - `@atlassian/csm-ui-components` - example helper only, migrated to the named `uuid` import.
47
+
3
48
  ## 37.7.0
4
49
 
5
50
  ### Minor Changes
@@ -24,7 +24,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
24
24
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
25
25
  var _map = require("rxjs/operators/map");
26
26
  var _Subscription = require("rxjs/Subscription");
27
- var _v = _interopRequireDefault(require("uuid/v4"));
27
+ var _uuid = require("uuid");
28
28
  var _authToOwner = require("@atlaskit/media-core/auth-to-owner");
29
29
  var _isValidUuid = require("@atlaskit/media-common/isValidUuid");
30
30
  var _downloadUrl = require("@atlaskit/media-common/downloadUrl");
@@ -551,9 +551,9 @@ var FileFetcherImpl = exports.FileFetcherImpl = /*#__PURE__*/function () {
551
551
  key: "generateUploadableFileUpfrontIds",
552
552
  value: function generateUploadableFileUpfrontIds(collection, traceContext, expectedFileSize) {
553
553
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
554
- var id = (0, _v.default)();
554
+ var id = (0, _uuid.v4)();
555
555
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
556
- var occurrenceKey = (0, _v.default)();
556
+ var occurrenceKey = (0, _uuid.v4)();
557
557
  var touchFileDescriptor = {
558
558
  fileId: id,
559
559
  occurrenceKey: occurrenceKey,
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import { map } from 'rxjs/operators/map';
4
4
  import { Subscription } from 'rxjs/Subscription';
5
5
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
6
- import uuid from 'uuid/v4';
6
+ import { v4 as uuid } from 'uuid';
7
7
  import { authToOwner } from '@atlaskit/media-core/auth-to-owner';
8
8
  import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
9
9
  import { downloadUrl } from '@atlaskit/media-common/downloadUrl';
@@ -9,7 +9,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
9
9
  import { map } from 'rxjs/operators/map';
10
10
  import { Subscription } from 'rxjs/Subscription';
11
11
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
12
- import uuid from 'uuid/v4';
12
+ import { v4 as uuid } from 'uuid';
13
13
  import { authToOwner } from '@atlaskit/media-core/auth-to-owner';
14
14
  import { isValidUuid } from '@atlaskit/media-common/isValidUuid';
15
15
  import { downloadUrl } from '@atlaskit/media-common/downloadUrl';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-client",
3
- "version": "37.7.0",
3
+ "version": "37.7.3",
4
4
  "description": "Media API Web Client Library",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,7 +25,7 @@
25
25
  "@atlaskit/chunkinator": "^8.1.0",
26
26
  "@atlaskit/media-common": "^14.6.0",
27
27
  "@atlaskit/platform-feature-flags": "^2.2.0",
28
- "@atlaskit/tmp-editor-statsig": "^174.0.0",
28
+ "@atlaskit/tmp-editor-statsig": "^176.0.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "dataloader": "^2.1.0",
31
31
  "deep-equal": "^1.0.1",
@@ -34,7 +34,7 @@
34
34
  "lru_map": "^0.4.1",
35
35
  "rusha": "^0.8.13",
36
36
  "rxjs": "^5.5.0",
37
- "uuid": "^3.1.0",
37
+ "uuid": "^11.1.1",
38
38
  "xstate": "4.20.0"
39
39
  },
40
40
  "peerDependencies": {