@equinor/fusion-framework-module-app 6.1.19 → 7.0.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 +37 -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/schemas.d.ts +25 -329
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -8
- package/src/schemas.ts +9 -12
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3428](https://github.com/equinor/fusion-framework/pull/3428) [`1700ca8`](https://github.com/equinor/fusion-framework/commit/1700ca8851fa108e55e9729fd24f595272766e63) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update zod from 4.1.9 to 4.1.11
|
|
8
|
+
|
|
9
|
+
- **v4.1.10**: Fixed shape caching issue (#5263) improving validation performance for complex schemas
|
|
10
|
+
- **v4.1.11**: Maintenance release with general improvements
|
|
11
|
+
|
|
12
|
+
This patch update enhances schema validation performance without changing any APIs.
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`3b614f8`](https://github.com/equinor/fusion-framework/commit/3b614f87138f5a52f8ccc50ca8c6598ef3db37d6)]:
|
|
15
|
+
- @equinor/fusion-observable@8.5.4
|
|
16
|
+
- @equinor/fusion-query@5.2.14
|
|
17
|
+
|
|
18
|
+
## 7.0.0
|
|
19
|
+
|
|
20
|
+
### Major Changes
|
|
21
|
+
|
|
22
|
+
- [#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
|
|
23
|
+
|
|
24
|
+
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.
|
|
25
|
+
|
|
26
|
+
Key changes in source code:
|
|
27
|
+
|
|
28
|
+
- Fixed record schema definitions to use explicit key and value types (`z.record(z.string(), z.any())`)
|
|
29
|
+
- Updated error message options format (replaced `description` with `message`)
|
|
30
|
+
- Enhanced `ApiAppConfigSchema` with proper record type definitions for environment and endpoints
|
|
31
|
+
- Updated `ApiApplicationPersonSchema` to use zod v4 error message format
|
|
32
|
+
|
|
33
|
+
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.
|
|
34
|
+
|
|
35
|
+
Links:
|
|
36
|
+
|
|
37
|
+
- [Zod v4 Migration Guide](https://github.com/colinhacks/zod/releases/tag/v4.0.0)
|
|
38
|
+
- [Zod v4.1.8 Release Notes](https://github.com/colinhacks/zod/releases/tag/v4.1.8)
|
|
39
|
+
|
|
3
40
|
## 6.1.19
|
|
4
41
|
|
|
5
42
|
### 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
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AW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;IAC/B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACpC,QAAQ,EAAE,CAAC;SACR,MAAM,CAAC;QACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;KACtB,CAAC;SACD,OAAO,EAAE;IACZ,aAAa,EAAE,CAAC;SACb,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;KACtB,CAAC;SACD,OAAO,EAAE;IACZ,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACvC,MAAM,EAAE,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"}
|