JSONForms v2.3.0-alpha.0 Release Notes
Release Date: 2019-06-12 // almost 5 years ago-
๐ฅ [react/material] BREAKING Provide context-based API (#1329)
- The original
JsonForms
component used for dispatching has been renamed toJsonFormsDispatch
. - A new
JsonForms
component allows usage of JSON Forms without redux. This allows for truly isolated forms, e.g.
<JsonFormsdata={{ foo: '' }}uischema={{ type: 'Control', scope: '#/properties/foo' }}schema={schema1}renderers={[{ tester: () => 3, renderer: customRenderer1 }]} /> <JsonFormsdata={{ bar: 0 }}schema={schema2}uischema={{ type: 'Control', scope: '#/properties/bar' }}renderers={[{ tester: () => 3, renderer: customRenderer2 }]} />
- The original
If using redux, you need to wrap the entry point with a new component called
JsonFromsReduxContext
, the typical usage in this case is as follows:\<Provider store={store}\> \<JsonFormsReduxContext\> \<JsonFormsDispatch /\> \</JsonFormsReduxContext\> \</Provider\>
NOTE: as this is still a alpha the naming is not yet final
As redux is not mandatory anymore you don't need to
connect
your custom renderers anymore. Instead use thewithXXX
HOCs from@jsonforms/react
.- ๐ [core] Add support for
const
(#1254) - โก๏ธ [material] Update to 4.0.1 (#1394)
- ๐ [material] Add option for enabling move up/down buttons in array layout renderer (#1378)
- [material] Zero value not displaying in 'number' fields (#1351)
- ๐ [material] Decimals lower than 0.1 are unsupported in 'number' fields (#1352)
- [react] Export
UnknownRenderer
(#1361) - โ
[core, material]
schemaTypeIs
tester derives type instead of relying on type keywords, increase ranks of AllOf/AnyOf renderers to 3 (#1354) - [angular] Fix object renderer by passing the path property correctly down the component hierarchy (#1366)
- ๐ [angular] Fix l10n support of number renderer (#1365)
- ๐ป [angular] No UI schema is generated for objects anymore (#1368)
- ๐ [core, angular] Support for read-only forms (#1371)
- ๐ [dev] Configure and fix linting errors (#1392)