Skip to content

Releases: CarstenWickner/react-jsonschema-inspector

v5.0.0 – Custom Search Input Rendering

08 Oct 20:20
Compare
Choose a tag to compare

Added

  • allow for custom rendering of the search input field via a new renderSearchInput prop

Changed

  • Updating a number of dev dependencies including TypeScript (resulting in slight changes in type definitions)
  • BREAKING CHANGE: Dropping support for JSON Schema Draft 4 (mainly ignoring "id" properties in favour of "$id")

Fixed

  • Handling of allOf containing multiple oneOf and/or anyOf entries

Breadcrumbs style fix

17 Dec 10:28
Compare
Choose a tag to compare

Fixed

  • Add vertical spacing for breadcrumbs wrapping over multiple lines

Also fixed the Storybook setup to apply same browser compatibility settings as the component itself.

Compatibility with IE11

16 Dec 22:24
Compare
Choose a tag to compare

Changed

  • Compatibility: replace <button> tags for items in columns with focusable <div> tags
  • Compatibility: replace css clip-path usage for nested-item indicator with css shape from borders
  • Compatibility: replace css clip-path usage for leading breadcrumbs icon with css shape from borders
  • Compatibility: replace css clip-path usage for breadcrumbs items with css shape from borders

Further support for draft 2019-09 and $ref in general

11 Dec 23:06
Compare
Choose a tag to compare

Added

  • Draft 2019-09: basic support for $recursiveRef as an alias for $ref (not yet covering advanced use cases)
  • Derive base URI from $id when looking-up sub-schemas via their $ref

Fixed

  • Exported type definitions should include the main <Inspector> component and its props
  • Include type definition for Draft 2019-09 for expected props
  • Borders of "Details" block should not be shown if there is no selection and no renderEmptyDetails prop was provided
  • Borders of "Details" block should not be shown if there is no selection and renderEmptyDetails returns no content to be shown
  • Borders of "Details" block should not be shown if there is a selection and renderSelectionDetails returns no content to be shown

Support Draft 2019-09 and improved single schema display

04 Dec 22:26
Compare
Choose a tag to compare

Added

  • Draft 2019-09: support $defs as alternative to definitions keyword
  • Draft 2019-09: include other keywords alongside $ref
  • Draft 2019-09: support $anchor keyword as $ref target
  • Draft 2019-09: explicitly document unsupported keywords
  • introduce hideSingleRootItem prop for displaying only a single schema's properties

Header Customisation

26 Nov 07:33
Compare
Choose a tag to compare

Added

  • allow for addition of tool-bar items in the header besides the search input via renderHeaderToolBar prop

Fixed

  • height of breadcrumb items should not grow with custom trailing content

Bundle Size Reduction

01 Nov 00:31
Compare
Choose a tag to compare

Fixed

  • ignore non-string values when searching by fields

Removed

  • run-time proptype validation for JSON Schemas (now only at compile-time through TypeScript)
  • proptype validations for internal (i.e. not exported) components

TypeScript

28 Oct 22:22
Compare
Choose a tag to compare

Changed

  • introduce TypeScript
  • changed expected parameters for breadcrumbs.renderItem prop to a single object with named attributes
  • changed expected parameters for breadcrumbs.renderTrailingContent prop to a single object with named attributes

Also:

  • introduced "Prettier"
  • changed the Storybook to MDX format with additional explanations for each story

ES Module + CommonJS + external dependencies

11 Oct 21:50
Compare
Choose a tag to compare

Changed

  • declare all dependencies as external to allow tree-shaking by consumers

Fixed

  • declaration of ES module in package.json
  • provide CommonJS output as fall-back

ES Module

09 Oct 21:57
Compare
Choose a tag to compare

Changed

  • use rollup instead of webpack for generating bundle
  • provide ES module instead of CommonJS bundle
  • reduced bundle size