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
Copy file name to clipboardExpand all lines: packages/types/CHANGELOG.md
+66-1Lines changed: 66 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,74 @@ Each higher version type can also inherit characteristics from the lower version
16
16
17
17
For prereleases:
18
18
19
-
- Pre-release versions (x.x.x-pre.x) are unstable releases for the designated API version. These contain work-in-progress types and annotations. Pre-release versions are not meant to be used except for trying out new API interfaces and giving feedback, and may change without prior programmatic notice. Pre-release versions are meant to be used with new builds from the `dev` branch of the base extension repo.
19
+
- Pre-release versions (x.x.x-pre.x) are unstable releases for the designated API version. These contain work-in-progress types and annotations. Pre-release versions are not meant to be used except for trying out new API interfaces and giving feedback, and may change without prior programmatic or verbal notice. Pre-release versions are meant to be used with new builds from the `dev` branch of the base extension repo.
20
20
- Release candidates (x.x.x-rc.x) are stable previews for the designated API version. These contain types that are more or less finalized for the designated release. Breaking changes should not be expected, both in type signature and functionality, but will always be highlighted in the changelog if necessary. This is also meant for feedback, but only for more subtle feedback before releasing that version such that it simply just contains bug fixes and very minor changes.
21
21
22
+
## 1.0.0-pre.8
23
+
24
+
### Breaking changes
25
+
26
+
- The `RCEContext` interface no longer has the following properties: `name`, `action`.
27
+
- You may now get some extra type errors on action definitions where you wouldn't previously. Read below for more information.
28
+
29
+
### Added
30
+
31
+
- You may now use a [Standard JSON Schema](https://standardschema.dev/json-schema) compliant validator library to construct your schemas, instead of a normal JSON schema.
32
+
- To allow for typing support with this, a new `defineAction` identity function has been added to the package. This function simply wraps an action, and provides type hints for action data in the context object.
33
+
- Schema validation is still done with the `jsonschema` library. Refinements and modifications by the validation library is not allowed and will not be performed. Types for the action data reflect this (they use the validation schema's input types, not output types).
34
+
- RCEContext will default to `unknown` for normal JSON schemas. This may now cause type errors in your code when it wouldn't previously.
0 commit comments