@atlaskit/media-client 37.7.0 → 37.7.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,38 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 37.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0927c3666c010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0927c3666c010) -
|
|
8
|
+
Upgrade `uuid` from `3.x` to `11.1.1` to remediate GHSA-w5hq-g745-h8pq / SNYK-JS-UUID-16133035.
|
|
9
|
+
|
|
10
|
+
`uuid@11` removed the deep subpath exports (`uuid/v4`, `uuid/v1`, `uuid/v5`) and the default
|
|
11
|
+
export, so all internal call sites were migrated to named imports:
|
|
12
|
+
|
|
13
|
+
```diff
|
|
14
|
+
-import uuid from 'uuid/v4';
|
|
15
|
+
+import { v4 as uuid } from 'uuid';
|
|
16
|
+
|
|
17
|
+
-import uuid from 'uuid';
|
|
18
|
+
+import { v4 as uuid } from 'uuid';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
With the exception of `@atlassian/integrations` (below), this is an internal implementation change
|
|
22
|
+
only - no public API, export, or entrypoint changed. UUID generation behaviour is unchanged
|
|
23
|
+
(`uuid@3`'s default export was already `v4`).
|
|
24
|
+
|
|
25
|
+
`@atlassian/integrations` declares `uuid` as a peer dependency, so its declared range moved from
|
|
26
|
+
`^3.1.0` to `^11.1.1`. That is a peer dependency declaration change, hence `minor` rather than
|
|
27
|
+
`patch` for that package.
|
|
28
|
+
|
|
29
|
+
The following `platform/packages/ai-mate` packages were also touched, but are all `private: true`
|
|
30
|
+
and so are intentionally not listed in the frontmatter above:
|
|
31
|
+
- `@atlassian/csm-assistance-service` - bumped its explicit `uuid` dependency from `npm:^9.0.0` to
|
|
32
|
+
`npm:^11.1.1` (`9.0.1` is also within the advisory's affected range).
|
|
33
|
+
- `@atlassian/csm-guidance-config` - example helper only, migrated to the named `uuid` import.
|
|
34
|
+
- `@atlassian/csm-ui-components` - example helper only, migrated to the named `uuid` import.
|
|
35
|
+
|
|
3
36
|
## 37.7.0
|
|
4
37
|
|
|
5
38
|
### 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
|
|
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,
|
|
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,
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "37.7.1",
|
|
4
4
|
"description": "Media API Web Client Library",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -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": "^
|
|
37
|
+
"uuid": "^11.1.1",
|
|
38
38
|
"xstate": "4.20.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|