Releases: rjsf-team/react-jsonschema-form
Releases · rjsf-team/react-jsonschema-form
v1.8.1
v2.0.0-alpha.1
Alpha version of v2.0.0 is out! It's in alpha so we can iron out bug fixes and still add some other breaking changes if need be. Please check it out and give feedback!
Breaking changes
- React 16+ is now a peer dependency (#1408)
- We no longer actively support Node version < 8 (#1462)
- Removed setState, setImmediate, safeRenderCompletion helpers/hacks (#1454)
- Inject defaults in arrays (#1499)
Features
- Add material-ui theme in the main repo (#1420) (note: has not been fully integrated yet -- this will be fully integrated when we publish multiple packages with lerna - #1501)
- Add extraErrors prop for async validation (#1444)
Fixes
- Fix issue with false as formData on radio components (#1438)
- Security patches (#1458, #1459)
- Memo components in custom widgets and fields. (#1447)
- Introduce Form autoComplete attribute and deprecate autocomplete (#1483)
- Rewrite mergeSchemas to fix schema dependencies merging (#1476)
- Update arrays correctly when changing index (#1485)
- Update anyOf schema to correctly update items in an array (#1491)
- Update schema to re-render when idschema changes (#1493)
v1.8.0
New features
- Allow restriction of accepted filetypes in file widget (#1246)
- Support adding items to an array at any position, instead of always at the end (#1352)
Fixes
- Change inclusion of lodash dependencies to fix errors when using Yarn (#1366)
- Fix dependency defaults when using
Form
as an uncontrolled component (#1371) - Reformat tests (#1372) and fix linting (#1373)
- Use the Monaco editor component in the playground instead of CodeMirror (#1374, #1379)
- Add missing space in playground (#1384)
- Add Bootstrap version to playground (#1386)
- Fix bug with trying to enter numbers such as "0.1" (#1360)
- Fix bug where user editing of
additionalProperties
names was erased (#1401) - Playground now records whether "live" was set (#1403)
- Fix bug in
omitData
where data was always cast into an object, even if it should have remained an array (#1406) - Support
$ref
inadditionalProperties
(#1402) - Fix bug where data was being omitted incorrectly (#1419)
v1.7.0
New features
- Pass registry to ArrayFieldTemplate (#1317)
- Add "Omit extra data" prop (#1283), including a "live omit" option (#1332, #1356)
- NumberField now has access to
min
andmax
props (#1341) - Allow for a custom tag name to be used instead of
form
(#1345) - Added properties
ui:FieldTemplate
,ui:ArrayFieldTemplate
, andui:ObjectFieldTemplate
touiSchema
(#1152)
Bug fixes
- Fix nested dependencies updating (#1320)
- Minor follow-ups from #1283 (#1331)
- Pass
formContext
toSchemaField
(#1330) - Fix bug where defaults are not applied correctly for anyOf/oneOf schemas (#1338)
- Ensure all widgets are represented in documentation (#1350)
- Array items now have unique, stable keys (#1335)
- Prevent submits from propagating when forms are nested in other forms (#1336)
- Update to Babel 7 (#1322)
v1.6.1
v1.6.0
New features
- Add
withTheme
higher-order component (#1226). - Improve support for customization -- pass
schema
toAnyOfField
/OneOfField
(#1302), passlabel
,placeholder
andregistry
toArrayField
(#1301), passrequired
to custom checkbox widgets (#1259). - Support
readOnly
from latest JSON Schema draft (#1282). - Allow unknown
format
properties, in accordance with JSON Schema spec (#1277). - Numbers can now be nullable (#1269).
- Support widgets that are wrapped using
React.ForwardedRef
(#1227). - Add example for collapsing fields to documentation (#1294).
- Schemas without
type
but withproperties
are now assumed to beobject
(#1292).
Bug fixes
- Update wording in documentation (#1266).
- Correctly use
$ref
when matching options withoneOf
(#1287). - Remove
setState
call inFileWidget
to fix test failures especially with newernode
(#1285). - Ensure defaults are passed along for multiselect arrays when filling items to match
minItems
(#1264). - Fix bugs with defaults in combination with schema dependencies and
oneOf
/anyOf
(#1304).
v1.5.0
New features
- Custom string formats are now supported (#1186).
- We now use
SelectWidget
to render theoneOf
/anyOf
control (#1220). - Add
NullField
(#1238).
Bug fixes
P.S. v1.4.1 was published for 8 minutes or so. It's the same as this release and only existed as long as it took for me to realize that a minor version bump was necessary and not a patch version.
v1.4.0
New features
- The errors argument in
transformErrors
now have aschemaPath
(#1205). Fixes #838 and #818. - Basic support for nullable types (#1213). This is a targeted fix that allows
"type": [<T>, "null"]
to be interpreted as"type": <T>
. - No longer throw an error, but log a warning instead, when properties in
ui:order
do not correspond to any property in the schema (#814).
Bug fixes
- Use plain text in playground demos (#1215).
- Reduce number of "empty" meaningless divs (#1218).
- Don't try to "merge"
File
s (#1234). - Documentation - no longer pass a
schema
attribute when rendering HTML (#946). - Document
placeholder
andautofocus
widget props (#1223). - Add the Mozilla Code of Conduct (#1240).
v1.3.0
New features
- Better support for
$schema
to let you control the metaschema to validate against (#1130). - Better handling of decimal points and trailing zeroes in numbers (#1183).
- Submit events on
Form
now provide the event as the second argument (#1172). - Infer types for schemas defined using
const
(#1174).
Bug fixes
- Fix multiple bugs related to switching between options in
anyOf
/oneOf
(#1169). - Fix a bug causing rjsf to put an empty
select
item inenums
which shouldn't have any (#1163). - Fix documentation build and remove dependency on
toctoc
(#1189). - Clean up HTML removing unnecessary wrapper elements (#1158).
- Don't add
required
oncheckbox
inputs in cases where it doesn't make sense (#1194).
Internal changes
v1.2.1
Bug fixes
- Fix typos in documentation (#1135).
- Fix corner case in how we fill array items (#871).
anyOf
actually supportsoneOf
as well (#1133) and can work inside array items (#1131).- Fix custom labels on booleans (#1137).
- Arrays now support
hidden
fields (#978). - Radio boolean fields now have an ID (see #1139).
- Filenames of
data
URLs are now URI encoded (#967). - Resolve
$ref
schemas inside a$ref
(#1142). - Fix bug where
anyOf
branch was not selected correctly (#1129). - Name is not required in data-url format (#1147).
- Use
div
instead ofp
to wrap submit buttons (#766). uiSchema
supportsadditionalProperties
(#1144).
Documentation
- Documentation is now hosted on ReadTheDocs and organized into several files in
docs/
rather than one giant README (#1138). - Add a link to a JSFiddle that demonstrates using a custom component with
ui:help
(#1145). - Document an unfortunate interaction between schema dependencies and
additionalProperties: false
(#1149, based on work in #1018; see also #1148).
Thanks very much to new maintainer @epicfaace who has been putting a lot of time and effort into cleaning up this repository!