You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
core: Refactor UI Schema types for better type safety (#2436)
Refactor UI Schema types for better typechecks by TypeScript
* Rename current UISchemaElement type to BaseUISchemaElement
* Add UISchemaElement type that is a union of all ui schema element types (e.g. Control)
* Rename current Condition type to BaseCondition
* Add Condition type that is a union of all rule conidtion types (e.g. AndCondition).
* Misc: Align node version in .nvmrc with actual requirements
fixes#2109
Copy file name to clipboardExpand all lines: MIGRATION.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,15 @@
1
1
# Migration guide
2
2
3
+
## Migrating to JSON Forms 3.6
4
+
5
+
### UI schema type changes
6
+
7
+
The `UISchemaElement` type was renamed to `BaseUISchemaElement` and a new `UISchemaElement` type was introduced, which is a union of all available UI schema types.
8
+
9
+
The `Condition` type was renamed to `BaseCondition` and a new `Condition` type was introduced, which is a union of all available condition types.
10
+
11
+
Both unions include their respective base type for backwards compatibility, but if you run into errors, replace `UISchemaElement` with `BaseUISchemaElement`/`Condition` with `BaseCondition` in your code to restore the old behaviour.
12
+
3
13
## Migrating to JSON Forms 3.5
4
14
5
15
### Angular support now targets Angular 18 and Angular 19
0 commit comments