@atlaskit/link-picker 6.7.0 → 6.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,40 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 6.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
|
+
|
|
36
|
+
- Updated dependencies
|
|
37
|
+
|
|
3
38
|
## 6.7.0
|
|
4
39
|
|
|
5
40
|
### Minor Changes
|
|
@@ -17,7 +17,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _reactIntl = require("react-intl");
|
|
19
19
|
var _useCallbackRef = require("use-callback-ref");
|
|
20
|
-
var _uuid =
|
|
20
|
+
var _uuid = require("uuid");
|
|
21
21
|
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
22
22
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
23
23
|
var _url2 = require("@atlaskit/linking-common/url");
|
|
@@ -160,7 +160,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
160
160
|
|
|
161
161
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
162
162
|
var submitMessageId = (0, _react.useMemo)(function () {
|
|
163
|
-
return (0, _uuid.
|
|
163
|
+
return (0, _uuid.v4)();
|
|
164
164
|
}, []);
|
|
165
165
|
(0, _react.useLayoutEffect)(function () {
|
|
166
166
|
if (onContentResize) {
|
|
@@ -6,7 +6,7 @@ import React, { Fragment, memo, useCallback, useLayoutEffect, useMemo, useReduce
|
|
|
6
6
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
7
7
|
import { useMergeRefs } from 'use-callback-ref';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
9
|
-
import uuid from 'uuid';
|
|
9
|
+
import { v4 as uuid } from 'uuid';
|
|
10
10
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
11
11
|
import { CardClient } from '@atlaskit/link-provider';
|
|
12
12
|
import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
|
|
@@ -12,7 +12,7 @@ import React, { Fragment, memo, useCallback, useLayoutEffect, useMemo, useReduce
|
|
|
12
12
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
13
13
|
import { useMergeRefs } from 'use-callback-ref';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
15
|
-
import uuid from 'uuid';
|
|
15
|
+
import { v4 as uuid } from 'uuid';
|
|
16
16
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
17
17
|
import { CardClient } from '@atlaskit/link-provider';
|
|
18
18
|
import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.1",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react-loosely-lazy": "^1.0.0",
|
|
81
81
|
"use-callback-ref": "^1.2.3",
|
|
82
82
|
"use-debounce": "^3.4.0",
|
|
83
|
-
"uuid": "^
|
|
83
|
+
"uuid": "^11.1.1"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"react": "^18.2.0",
|