@equinor/fusion-framework-module-app 6.1.18 → 7.0.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 +73 -0
- package/dist/esm/schemas.js +9 -13
- package/dist/esm/schemas.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/app/actions.d.ts +3 -3
- package/dist/types/app/create-reducer.d.ts +1 -1
- package/dist/types/schemas.d.ts +25 -329
- package/dist/types/types.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +11 -11
- package/src/schemas.ts +9 -12
- package/src/types.ts +7 -1
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#3394](https://github.com/equinor/fusion-framework/pull/3394) [`c222c67`](https://github.com/equinor/fusion-framework/commit/c222c673bc7cdefff6eb0cd9436bfa3d1f185295) Thanks [@odinr](https://github.com/odinr)! - feat: migrate to zod v4
|
|
8
|
+
|
|
9
|
+
Updated source code to migrate from zod v3 to v4. Updated zod dependency from v3.25.76 to v4.1.8 and modified schema definitions in the app module to use explicit key and value types for records and updated error message format from `description` to `message` for zod v4 compatibility.
|
|
10
|
+
|
|
11
|
+
Key changes in source code:
|
|
12
|
+
|
|
13
|
+
- Fixed record schema definitions to use explicit key and value types (`z.record(z.string(), z.any())`)
|
|
14
|
+
- Updated error message options format (replaced `description` with `message`)
|
|
15
|
+
- Enhanced `ApiAppConfigSchema` with proper record type definitions for environment and endpoints
|
|
16
|
+
- Updated `ApiApplicationPersonSchema` to use zod v4 error message format
|
|
17
|
+
|
|
18
|
+
Breaking changes: Record schemas must specify both key and value types explicitly. Error message format has changed from zod v3 to v4 format. Function schema definitions now require explicit typing.
|
|
19
|
+
|
|
20
|
+
Links:
|
|
21
|
+
|
|
22
|
+
- [Zod v4 Migration Guide](https://github.com/colinhacks/zod/releases/tag/v4.0.0)
|
|
23
|
+
- [Zod v4.1.8 Release Notes](https://github.com/colinhacks/zod/releases/tag/v4.1.8)
|
|
24
|
+
|
|
25
|
+
## 6.1.19
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- [#3367](https://github.com/equinor/fusion-framework/pull/3367) [`e7de2b7`](https://github.com/equinor/fusion-framework/commit/e7de2b7c1114094da445625a761fc9a3be6bdf87) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - Add `landing-page` to union of `AppType`
|
|
30
|
+
|
|
31
|
+
- [#3395](https://github.com/equinor/fusion-framework/pull/3395) [`29f6710`](https://github.com/equinor/fusion-framework/commit/29f6710238baf9b29f42394b30cb8b97f25462c3) Thanks [@odinr](https://github.com/odinr)! - Updated immer from 9.0.16 to 10.1.3 across all packages.
|
|
32
|
+
|
|
33
|
+
### Breaking Changes
|
|
34
|
+
|
|
35
|
+
- Immer 10.x introduces stricter TypeScript types for draft functions
|
|
36
|
+
- `ValidRecipeReturnType` type constraints have changed
|
|
37
|
+
- Promise return types in draft functions are no longer automatically handled
|
|
38
|
+
|
|
39
|
+
### Fixes Applied
|
|
40
|
+
|
|
41
|
+
- Updated BookmarkProvider to handle new immer type constraints
|
|
42
|
+
- Fixed ObservableInput type assignments in mergeScan operations
|
|
43
|
+
- Removed async/await from immer draft functions to comply with new type requirements
|
|
44
|
+
|
|
45
|
+
### Links
|
|
46
|
+
|
|
47
|
+
- [Immer 10.0.0 Release Notes](https://github.com/immerjs/immer/releases/tag/v10.0.0)
|
|
48
|
+
- [Immer Migration Guide](https://github.com/immerjs/immer/blob/main/MIGRATION.md)
|
|
49
|
+
|
|
50
|
+
- [#3386](https://github.com/equinor/fusion-framework/pull/3386) [`d740b78`](https://github.com/equinor/fusion-framework/commit/d740b7829694efb73edcd32006ec1f26e0075e9a) Thanks [@eikeland](https://github.com/eikeland)! - Added 'template-app' as a new app type to the AppType union.
|
|
51
|
+
|
|
52
|
+
This change extends the available app types that consumers can use when configuring applications, providing support for template-based apps.
|
|
53
|
+
|
|
54
|
+
- [#3347](https://github.com/equinor/fusion-framework/pull/3347) [`11143fa`](https://github.com/equinor/fusion-framework/commit/11143fa3002fb8a6c095052a04c7e596c56bafa8) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump uuid from 11.0.3 to 13.0.0
|
|
55
|
+
|
|
56
|
+
### Breaking Changes
|
|
57
|
+
|
|
58
|
+
- v13.0.0: Make browser exports the default
|
|
59
|
+
- v12.0.0: Update to TypeScript 5.2, remove CommonJS support, drop Node 16 support
|
|
60
|
+
|
|
61
|
+
### New Features
|
|
62
|
+
|
|
63
|
+
- Improved v4() performance
|
|
64
|
+
- Added Node 24 to CI matrix
|
|
65
|
+
- Restored node: prefix support
|
|
66
|
+
|
|
67
|
+
### Links
|
|
68
|
+
|
|
69
|
+
- [GitHub releases](https://github.com/uuidjs/uuid/releases/tag/v13.0.0)
|
|
70
|
+
- [npm changelog](https://www.npmjs.com/package/uuid?activeTab=versions)
|
|
71
|
+
|
|
72
|
+
- Updated dependencies [[`29f6710`](https://github.com/equinor/fusion-framework/commit/29f6710238baf9b29f42394b30cb8b97f25462c3), [`7bb88c6`](https://github.com/equinor/fusion-framework/commit/7bb88c6247f3d93eccf363d610116c519f1ecff4), [`11143fa`](https://github.com/equinor/fusion-framework/commit/11143fa3002fb8a6c095052a04c7e596c56bafa8)]:
|
|
73
|
+
- @equinor/fusion-query@5.2.13
|
|
74
|
+
- @equinor/fusion-observable@8.5.3
|
|
75
|
+
|
|
3
76
|
## 6.1.18
|
|
4
77
|
|
|
5
78
|
### Patch Changes
|
package/dist/esm/schemas.js
CHANGED
|
@@ -11,9 +11,9 @@ import { z } from 'zod';
|
|
|
11
11
|
* - `scopes` (optional): An array of strings representing the scopes. Defaults to an empty array.
|
|
12
12
|
*/
|
|
13
13
|
export const ApiAppConfigSchema = z.object({
|
|
14
|
-
environment: z.record(z.any()).optional().default({}),
|
|
14
|
+
environment: z.record(z.string(), z.any()).optional().default({}),
|
|
15
15
|
endpoints: z
|
|
16
|
-
.record(z.object({
|
|
16
|
+
.record(z.string(), z.object({
|
|
17
17
|
url: z.string(),
|
|
18
18
|
scopes: z.array(z.string()).optional().default([]),
|
|
19
19
|
}))
|
|
@@ -32,27 +32,23 @@ export const ApiAppConfigSchema = z.object({
|
|
|
32
32
|
* - `isExpired` (boolean | nullish): Indicates whether the account is expired, which can be null or undefined.
|
|
33
33
|
*/
|
|
34
34
|
const ApiApplicationPersonSchema = z.object({
|
|
35
|
-
azureUniqueId: z.string({
|
|
36
|
-
displayName: z.string({
|
|
35
|
+
azureUniqueId: z.string({ message: 'The unique identifier for the person in Azure.' }),
|
|
36
|
+
displayName: z.string({ message: 'The display name of the person.' }),
|
|
37
37
|
mail: z
|
|
38
|
-
.string({
|
|
38
|
+
.string({ message: 'The email address of the person, which can be null or undefined.' })
|
|
39
39
|
.nullish(),
|
|
40
40
|
upn: z
|
|
41
41
|
.string({
|
|
42
|
-
|
|
42
|
+
message: 'The User Principal Name (UPN) of the person, which can be null or undefined.',
|
|
43
43
|
})
|
|
44
44
|
.nullish(),
|
|
45
|
-
accountType: z.string({
|
|
46
|
-
description: 'The type of account the person has.',
|
|
47
|
-
}),
|
|
45
|
+
accountType: z.string({ message: 'The type of account the person has.' }),
|
|
48
46
|
accountClassification: z
|
|
49
|
-
.string({
|
|
50
|
-
description: 'The classification of the account, which can be null or undefined.',
|
|
51
|
-
})
|
|
47
|
+
.string({ message: 'The classification of the account, which can be null or undefined.' })
|
|
52
48
|
.nullish(),
|
|
53
49
|
isExpired: z
|
|
54
50
|
.boolean({
|
|
55
|
-
|
|
51
|
+
message: 'Indicates whether the account is expired, which can be null or undefined.',
|
|
56
52
|
})
|
|
57
53
|
.nullish(),
|
|
58
54
|
});
|
package/dist/esm/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IACjE,SAAS,EAAE,CAAC;SACT,MAAM,CACL,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,MAAM,CAAC;QACP,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;QACf,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;KACnD,CAAC,CACH;SACA,QAAQ,EAAE;CACd,CAAC,CAAC;AAIH;;;;;;;;;;;GAWG;AACH,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;IACtF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,O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,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,EAAE;IACrD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,EAAE;IACrD,KAAK,EAAE,yBAAyB,CAAC,OAAO,EAAE;CAC3C,CAAC,CAAC"}
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
|