@atlaskit/editor-plugin-hyperlink 18.1.6 → 18.1.9

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,52 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 18.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 18.1.8
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 18.1.7
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
+
48
+ - Updated dependencies
49
+
3
50
  ## 18.1.6
4
51
 
5
52
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.stateKey = exports.plugin = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _uuid = _interopRequireDefault(require("uuid"));
9
+ var _uuid = require("uuid");
10
10
  var _link3 = require("@atlaskit/editor-common/link");
11
11
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
12
12
  var _utils = require("@atlaskit/editor-common/utils");
@@ -164,7 +164,7 @@ var plugin = exports.plugin = function plugin(dispatch, intl, editorAppearance,
164
164
  var stateForAnalytics = [_link3.LinkAction.SHOW_INSERT_TOOLBAR, _link3.LinkAction.EDIT_INSERTED_TOOLBAR].includes(action) ? {
165
165
  timesViewed: ++state.timesViewed,
166
166
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
167
- searchSessionId: (0, _uuid.default)()
167
+ searchSessionId: (0, _uuid.v4)()
168
168
  } : {
169
169
  timesViewed: state.timesViewed,
170
170
  searchSessionId: state.searchSessionId
@@ -1,5 +1,5 @@
1
1
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
2
- import uuid from 'uuid';
2
+ import { v4 as uuid } from 'uuid';
3
3
  import { InsertStatus, LinkAction, getActiveLinkMark } from '@atlaskit/editor-common/link';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import { canLinkBeCreatedInRange, shallowEqual } from '@atlaskit/editor-common/utils';
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
5
- import uuid from 'uuid';
5
+ import { v4 as uuid } from 'uuid';
6
6
  import { InsertStatus, LinkAction, getActiveLinkMark } from '@atlaskit/editor-common/link';
7
7
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
8
8
  import { canLinkBeCreatedInRange, shallowEqual } from '@atlaskit/editor-common/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-hyperlink",
3
- "version": "18.1.6",
3
+ "version": "18.1.9",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^57.2.0",
24
+ "@atlaskit/adf-schema": "^57.3.0",
25
25
  "@atlaskit/analytics-next": "^12.5.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^16.1.0",
27
27
  "@atlaskit/editor-plugin-card": "^22.1.0",
@@ -40,13 +40,13 @@
40
40
  "@atlaskit/platform-feature-experiments": "^0.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.2.0",
42
42
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
43
- "@atlaskit/tmp-editor-statsig": "^174.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^176.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1",
46
- "uuid": "^3.1.0"
46
+ "uuid": "^11.1.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^120.12.0",
49
+ "@atlaskit/editor-common": "^120.16.0",
50
50
  "react": "^18.2.0 || ^19.2.0",
51
51
  "react-dom": "^18.2.0 || ^19.2.0",
52
52
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"