Skip to content

JsonTree.js v2.9.0 - RegExp, Set, and Map type support! Multiple file dropping support! Lots and lots of fixes!

Choose a tag to compare

@william-troup william-troup released this 27 Aug 10:50
· 510 commits to main since this release
47f1420

New Features:

  • Added RegExp type support!
  • Added Map/WeakMap type support!
  • Added Set/WeakSet type support!
  • Added multiple file-dropping support!

Binding Options:

  • Added a new binding option called "ignore.regExpValues" (defaults to false), which states if RegExp values should be ignored.
  • Added a new binding option called "ignore.mapValues" (defaults to false), which states if Map values should be ignored.
  • Added a new binding option called "ignore.setValues" (defaults to false), which states if Map values should be ignored.
  • The binding option "allowEditing" can now accept a boolean again to enable/disable all supported editable types (you can still pass them individually if required).
  • Added {fff} (milliseconds padded to 3 places) and {ff} (milliseconds padded to 2 places) support for the "dateTimeFormat" option.

Binding Options - Custom Triggers:

  • Added a new binding option custom trigger called "onRegExpRender", which fires an event when a RegExp value is rendered (allow element render overrides).

Configuration Options:

  • Added a new option called "text.mapText", which states the text to use for the map types (defaults to "map").
  • Added a new option called "text.setText", which states the text to use for the set types (defaults to "set").

UI Improvements:

  • The property name now also shows a tooltip, if available via the "valueToolTips" binding option.
  • The label "There is currently no JSON to view." is now centred in the screen when full-screen mode is turned on.

General Improvements:

  • Added an ignore path for ".DS_Store" files when packing the NuGet package.
  • Updated to the latest version of the NPM packages.

Fixes:

  • Fixed a fault that prevented NPM packages from being updated correctly.
  • Fixed the "Frisian" translation file missing some text.
  • Fixed a fault that caused the wrong type to be passed when clicking an Array type (when shown as the main object).
  • Fixed a fault that caused the closing symbols to show in the wrong position when the binding option "showArrowToggles" is set to false.
  • Fixed a fault that prevented the Open/Close All buttons from working when the binding option "showArrowToggles" is set to false.
  • Fixed a fault that caused zero padding to be used for the contents at the top when the title bar was not visible.
  • Fixed a fault that caused the title bar text to be centred when no data was available to be shown.
  • Fixed the title bar buttons not using the correct spacing.
  • Fixed the title bar text not using the correct margins when no data is available to be shown.
  • Fixed a missing space that is not being shown for the paging object index title.
  • Fixed a fault that caused the title bar buttons to appear in different sizes (if the default font is not available).
  • Fixed the missing colors in the theme files.
  • Fixed a fault that prevented additional margins for the last items in the display from being removed.