Skip to content

Commit dd4d507

Browse files
authored
Updates type signature for memo-cache and fix security issue (#3943)
* fix types in memo-cache as well as a codescan security issue * Change files
1 parent f2195a3 commit dd4d507

36 files changed

+159
-120
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix types in memo-cache as well as a codescan security issue",
4+
"packageName": "@fluentui-react-native/framework",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix types in memo-cache as well as a codescan security issue",
4+
"packageName": "@fluentui-react-native/framework-base",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix types in memo-cache as well as a codescan security issue",
4+
"packageName": "@fluentui-react-native/icon",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix types in memo-cache as well as a codescan security issue",
4+
"packageName": "@fluentui-react-native/memo-cache",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix types in memo-cache as well as a codescan security issue",
4+
"packageName": "@fluentui-react-native/use-styling",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix types in memo-cache as well as a codescan security issue",
4+
"packageName": "@fluentui-react-native/use-tokens",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix types in memo-cache as well as a codescan security issue",
4+
"packageName": "@uifabricshared/foundation-compose",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix types in memo-cache as well as a codescan security issue",
4+
"packageName": "@uifabricshared/foundation-tokens",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix types in memo-cache as well as a codescan security issue",
4+
"packageName": "@uifabricshared/themed-settings",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/components/Icon/src/SvgIcon/useSvgIcon.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import type { ImageStyle } from 'react-native';
2-
31
import { getMemoCache, mergeStyles } from '@fluentui-react-native/framework';
42

53
import type { SvgIconProps } from './SvgIcon.types';
64

7-
const rasterImageStyleCache = getMemoCache<ImageStyle>();
5+
const rasterImageStyleCache = getMemoCache();
86

97
export const useSvgIcon = (props: SvgIconProps): SvgIconProps => {
108
const { accessible, style, height, width, ...rest } = props;

0 commit comments

Comments
 (0)