@atlaskit/navigation-system 10.5.1 → 10.5.2
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,18 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 10.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c84bd629439e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c84bd629439e0) -
|
|
8
|
+
Opt `IconRenderer` out of React Compiler memoization (`'use no memo'`). This file is a copy of
|
|
9
|
+
`@atlaskit/button`'s `IconRenderer`, sharing the same `isIconRenderProp()` heuristic that
|
|
10
|
+
misclassifies icon components missing a `displayName` as render-props and invokes them as plain
|
|
11
|
+
functions instead of JSX. Under React Compiler, memoization of this render could skip re-invoking
|
|
12
|
+
an already-compiled icon component on some renders, dropping a hook call and causing a hook-count
|
|
13
|
+
mismatch (React error #300).
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 10.5.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -28,6 +28,9 @@ function isIconRenderProp(func) {
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
var IconRenderer = function IconRenderer(_ref) {
|
|
31
|
+
// React Compiler opt-out: RC-incompatible (memoization breaks runtime behaviour).
|
|
32
|
+
'use no memo';
|
|
33
|
+
|
|
31
34
|
var Icon = _ref.icon;
|
|
32
35
|
var isRenderProp = isIconRenderProp(Icon);
|
|
33
36
|
var iconProps = {
|
|
@@ -23,6 +23,9 @@ function isIconRenderProp(func) {
|
|
|
23
23
|
const IconRenderer = ({
|
|
24
24
|
icon: Icon
|
|
25
25
|
}) => {
|
|
26
|
+
// React Compiler opt-out: RC-incompatible (memoization breaks runtime behaviour).
|
|
27
|
+
'use no memo';
|
|
28
|
+
|
|
26
29
|
const isRenderProp = isIconRenderProp(Icon);
|
|
27
30
|
let iconProps = {
|
|
28
31
|
label: '',
|
|
@@ -21,6 +21,9 @@ function isIconRenderProp(func) {
|
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
var IconRenderer = function IconRenderer(_ref) {
|
|
24
|
+
// React Compiler opt-out: RC-incompatible (memoization breaks runtime behaviour).
|
|
25
|
+
'use no memo';
|
|
26
|
+
|
|
24
27
|
var Icon = _ref.icon;
|
|
25
28
|
var isRenderProp = isIconRenderProp(Icon);
|
|
26
29
|
var iconProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.2",
|
|
4
4
|
"description": "The latest navigation system for Atlassian apps.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@atlaskit/analytics-next": "^12.
|
|
56
|
+
"@atlaskit/analytics-next": "^12.3.0",
|
|
57
57
|
"@atlaskit/app-provider": "^5.1.0",
|
|
58
58
|
"@atlaskit/avatar": "^26.1.0",
|
|
59
59
|
"@atlaskit/button": "^24.3.0",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
67
67
|
"@atlaskit/popup": "^5.1.0",
|
|
68
68
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.0",
|
|
69
|
-
"@atlaskit/primitives": "^20.
|
|
69
|
+
"@atlaskit/primitives": "^20.6.0",
|
|
70
70
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
71
71
|
"@atlaskit/side-nav-items": "^2.2.0",
|
|
72
|
-
"@atlaskit/tokens": "^15.
|
|
72
|
+
"@atlaskit/tokens": "^15.6.0",
|
|
73
73
|
"@atlaskit/tooltip": "^23.1.0",
|
|
74
74
|
"@atlaskit/visually-hidden": "^4.1.0",
|
|
75
75
|
"@babel/runtime": "^7.0.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@af/visual-regression": "workspace:^",
|
|
89
89
|
"@atlaskit/badge": "^19.1.0",
|
|
90
90
|
"@atlaskit/banner": "^15.1.0",
|
|
91
|
-
"@atlaskit/breadcrumbs": "^17.
|
|
91
|
+
"@atlaskit/breadcrumbs": "^17.4.0",
|
|
92
92
|
"@atlaskit/dropdown-menu": "^17.1.0",
|
|
93
93
|
"@atlaskit/flag": "^18.1.0",
|
|
94
94
|
"@atlaskit/form": "^16.1.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@atlaskit/onboarding": "^15.1.0",
|
|
102
102
|
"@atlaskit/page-header": "^13.1.0",
|
|
103
103
|
"@atlaskit/page-layout": "^5.2.0",
|
|
104
|
-
"@atlaskit/popper": "^8.
|
|
104
|
+
"@atlaskit/popper": "^8.3.0",
|
|
105
105
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
|
|
106
106
|
"@atlaskit/select": "^22.5.0",
|
|
107
107
|
"@atlaskit/skeleton": "^4.2.0",
|