react-jsonschema-form v2.0.0-alpha.2 Release Notes

Release Date: 2020-02-18 // 3 months ago
  • This version includes the changes below. Notably, we now use a monorepo with Lerna and published two packages (@rjsf/core and @rjsf/material-ui) with this version number. Note that react-jsonschema-form has been renamed to @rjsf/core.

    📦 (Note: themes have not been fully integrated yet -- and we will switch to non-alpha versions once we add a playground with all themes (#1539) and extend test coverage to cover the theme packages)

    💥 Breaking changes

    • ✂ Remove ui:order console warning about extraneous properties (#1508)
    • 0️⃣ Capitalized Yes and No defaults (#1395)
    • Fix id of oneof and anyof select (#1212). The oneof select id is now suffixed by __oneof_select and the anyof select by __ anyof_select.

    🔋 Features

    • Monorepo with Lerna (#1501, #1531)
    • 👍 Allow the tagName prop to accept a React component (#1511)
    • ➕ Add allOf support (#1380, #1546)
    • 👌 Support for "examples" keyword (#1517)
    • 0️⃣ Capitalized Yes and No defaults (#1395)
    • ➕ Add forwardRef to withTheme (#1498)

    🛠 Fixes

    • 🛠 Fix IE11 not able to submit (#1432)
    • ⬇️ Reduce bundle size by specifically importing from lodash (#1523)
    • ♻️ Refactor some tests to assert on change events instead of internal state (#1525, #1535)
    • 🛠 Fix: schema of type string shows defaults when cleared (#1505)
    • 🛠 Fix vulnerabilities (#1530, #1556)
    • Document the onKeyChange prop for custom widgets (#1542)
    • Pass state formData to array field template (#1513)

Previous changes from 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)
    • 0️⃣ 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)