@equinor/fusion-framework-react 7.4.18 → 7.4.19-next.0
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,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.4.19-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3693](https://github.com/equinor/fusion-framework/pull/3693) [`d6be2c4`](https://github.com/equinor/fusion-framework/commit/d6be2c4f2e01bab008b4d1f78f9adecb06647e66) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fix MSAL v4 compatibility in React framework useCurrentUser hook.
|
|
8
|
+
|
|
9
|
+
- Replace deprecated defaultAccount with account property
|
|
10
|
+
- Ensure proper null/undefined handling for account information
|
|
11
|
+
- Maintain type safety for AccountInfo return type
|
|
12
|
+
|
|
13
|
+
This change ensures the React framework hook works correctly with MSAL v4 while maintaining backward compatibility.
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`d6be2c4`](https://github.com/equinor/fusion-framework/commit/d6be2c4f2e01bab008b4d1f78f9adecb06647e66)]:
|
|
16
|
+
- @equinor/fusion-framework@7.4.2-next.0
|
|
17
|
+
- @equinor/fusion-framework-module-feature-flag@1.1.26
|
|
18
|
+
- @equinor/fusion-framework-react-module-http@10.0.1-next.0
|
|
19
|
+
- @equinor/fusion-framework-react-module-signalr@3.0.35-next.0
|
|
20
|
+
|
|
3
21
|
## 7.4.18
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useFramework } from '../useFramework';
|
|
2
2
|
export const useCurrentUser = () => {
|
|
3
3
|
const framework = useFramework();
|
|
4
|
-
return framework.modules.auth.
|
|
4
|
+
return framework.modules.auth.account || undefined;
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=use-current-user.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-current-user.js","sourceRoot":"","sources":["../../../src/hooks/use-current-user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,GAA4B,EAAE;IAC1D,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,OAAO,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"use-current-user.js","sourceRoot":"","sources":["../../../src/hooks/use-current-user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,GAA4B,EAAE;IAC1D,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,OAAO,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC;AACrD,CAAC,CAAC"}
|