@atlaskit/renderer 137.4.0 → 137.4.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/renderer
2
2
 
3
+ ## 137.4.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
  ## 137.4.0
4
39
 
5
40
  ### Minor Changes
@@ -30,7 +30,7 @@ var _types = require("@atlaskit/analytics-listeners/types");
30
30
  var _FabricEditorAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext");
31
31
  var _analytics = require("@atlaskit/editor-common/analytics");
32
32
  var _normalizeFeatureFlags = require("@atlaskit/editor-common/normalize-feature-flags");
33
- var _v = _interopRequireDefault(require("uuid/v4"));
33
+ var _uuid = require("uuid");
34
34
  var _ = require("../../");
35
35
  var _analyticsContext = _interopRequireDefault(require("../../analytics/analyticsContext"));
36
36
  var _events = require("../../analytics/events");
@@ -74,7 +74,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
74
74
  var TABLE_INFO_TIMEOUT = 10000;
75
75
  var RENDER_EVENT_SAMPLE_RATE = 0.1;
76
76
  var packageName = "@atlaskit/renderer";
77
- var packageVersion = "137.3.0";
77
+ var packageVersion = "137.4.0";
78
78
  var setAsQueryContainerStyles = (0, _react2.css)({
79
79
  containerName: 'ak-renderer-wrapper',
80
80
  containerType: 'inline-size'
@@ -295,7 +295,7 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
295
295
  var editorRef = props.innerRef || localRef;
296
296
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
297
297
  var id = (0, _react.useMemo)(function () {
298
- return (0, _v.default)();
298
+ return (0, _uuid.v4)();
299
299
  }, []);
300
300
  var renderedMeasurementDistortedDurationMonitor = (0, _react.useMemo)(function () {
301
301
  return (0, _measureRender.getDistortedDurationMonitor)();
@@ -631,7 +631,7 @@ var RendererWithAnalytics = exports.RendererWithAnalytics = /*#__PURE__*/_react.
631
631
  packageVersion: packageVersion,
632
632
  componentName: 'renderer',
633
633
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
634
- editorSessionId: (0, _v.default)()
634
+ editorSessionId: (0, _uuid.v4)()
635
635
  }
636
636
  }, (0, _react2.jsx)(_ui.WithCreateAnalyticsEvent
637
637
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
@@ -9,7 +8,7 @@ exports.SelectionInlineCommentMounter = void 0;
9
8
  var _react = _interopRequireWildcard(require("react"));
10
9
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
10
  var _fg = require("@atlaskit/platform-feature-flags/fg");
12
- var _v = _interopRequireDefault(require("uuid/v4"));
11
+ var _uuid = require("uuid");
13
12
  var _annotation = require("@atlaskit/adf-schema/annotation");
14
13
  var _dom = require("../draft/dom");
15
14
  var _types = require("@atlaskit/analytics-listeners/types");
@@ -211,7 +210,7 @@ var SelectionInlineCommentMounter = exports.SelectionInlineCommentMounter = /*#_
211
210
  // this is because clearing the draft will remove the mark node from the DOM, which will cause the selection range to be invalid
212
211
 
213
212
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
214
- var id = (0, _v.default)();
213
+ var id = (0, _uuid.v4)();
215
214
  var result = applyDraftModeCallback({
216
215
  annotationId: id,
217
216
  keepNativeSelection: false
@@ -25,7 +25,7 @@ import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-con
25
25
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
26
26
  import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
27
27
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
28
- import uuid from 'uuid/v4';
28
+ import { v4 as uuid } from 'uuid';
29
29
  import { ReactSerializer, renderDocument } from '../../';
30
30
  import AnalyticsContext from '../../analytics/analyticsContext';
31
31
  import { MODE, PLATFORM } from '../../analytics/events';
@@ -60,7 +60,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
60
60
  const TABLE_INFO_TIMEOUT = 10000;
61
61
  const RENDER_EVENT_SAMPLE_RATE = 0.1;
62
62
  const packageName = "@atlaskit/renderer";
63
- const packageVersion = "137.3.0";
63
+ const packageVersion = "137.4.0";
64
64
  const setAsQueryContainerStyles = css({
65
65
  containerName: 'ak-renderer-wrapper',
66
66
  containerType: 'inline-size'
@@ -3,7 +3,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
3
  import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
 
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 { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
8
8
  import { updateWindowSelectionAroundDraft } from '../draft/dom';
9
9
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
@@ -30,7 +30,7 @@ import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-con
30
30
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
31
31
  import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
32
32
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
33
- import uuid from 'uuid/v4';
33
+ import { v4 as uuid } from 'uuid';
34
34
  import { ReactSerializer, renderDocument } from '../../';
35
35
  import AnalyticsContext from '../../analytics/analyticsContext';
36
36
  import { MODE, PLATFORM } from '../../analytics/events';
@@ -65,7 +65,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
65
65
  var TABLE_INFO_TIMEOUT = 10000;
66
66
  var RENDER_EVENT_SAMPLE_RATE = 0.1;
67
67
  var packageName = "@atlaskit/renderer";
68
- var packageVersion = "137.3.0";
68
+ var packageVersion = "137.4.0";
69
69
  var setAsQueryContainerStyles = css({
70
70
  containerName: 'ak-renderer-wrapper',
71
71
  containerType: 'inline-size'
@@ -3,7 +3,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
3
  import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
 
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 { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
8
8
  import { updateWindowSelectionAroundDraft } from '../draft/dom';
9
9
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "137.4.0",
3
+ "version": "137.4.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -82,7 +82,7 @@
82
82
  "memoize-one": "^6.0.0",
83
83
  "react-loadable": "^5.1.0",
84
84
  "react-loosely-lazy": "^1.0.0",
85
- "uuid": "^3.1.0"
85
+ "uuid": "^11.1.1"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@atlaskit/editor-common": "^120.13.0",