@microeinhundert/radonis@5.0.0
This is another major release that fixes many flaws in the static analysis implemented in the Radonis compiler.
Major Changes
-
97f238d
Thanks @microeinhundert! - Removed the undocumenteduseFormField
hook. -
87c6921
Thanks @microeinhundert! - RemovedallErrors
,hasError
,hasAnyError
andgetError
utility methods from theuseFlashMessages
hook. Useall
,has
,hasAny
andget
instead. -
1008ab5
Thanks @microeinhundert! - Revised the way static analysis is performed. Instead of extracting identifiers from specifically named snippets of code, Radonis now looks for any function call, object property or JSX property whose name ends with a dollar sign$
. This has the advantage of simplifying static analysis and reducing edge cases, but also gives you more flexibility. Any function call, object property or JSX property in your codebase will now be statically analysed if it ends with a dollar sign. This convention also makes it clearer to the reader what is statically analysed and what is not.Migration:
useI18n
:formatMessage
->formatMessage$
useFlashMessages
:get
->get$
,has
->has$
useUrlBuilder
:make
->make$
<Form>
anduseForm
:action
->action$
useRoute
:isCurrent
->isCurrent$
.
See the documentation to learn more.
-
4f44646
Thanks @microeinhundert! - Renamedfetch$
utility toradonisFetch
.
Minor Changes
-
9a1fe5c
Thanks @microeinhundert! - Changed default build script.Migration:
Change thebuild
script inpackage.json
tonpm run build:server && npm run build:client
. This ensures that the two build steps are performed in order. -
c7a59fb
Thanks @microeinhundert! - Restricted buildOptions type. -
f8d2206
Thanks @microeinhundert! - Addedtoken$
utility function.
Patch Changes
- Updated dependencies [
4fbcc6c
,3d5f284
,5c00c86
,573a79b
,4031b32
,9a1fe5c
,97f238d
,c7a59fb
,87c6921
,fafe5ba
,9f23f13
,4f44646
,7663090
]:- @microeinhundert/radonis-form@5.0.0
- @microeinhundert/radonis-hooks@5.0.0
- @microeinhundert/radonis-types@5.0.0
- @microeinhundert/radonis-shared@5.0.0
- @microeinhundert/radonis-server@5.0.0
- @microeinhundert/radonis-hydrate@5.0.0