Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vanilla-jsoneditor

Package Overview
Dependencies
Maintainers
0
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanilla-jsoneditor - npm Package Versions

1
13

1.0.0

Diff

Changelog

Source

1.0.0 (2024-09-24)

⚠ BREAKING CHANGES

  • The internal state is refactored. This should not give any issues except when relying on some internal or undocumented features.
  • Changed the API to consistently use undefined instead of null. This involves properties selection, onChange (properties contentErrors and patchResult), onRenderContextMenu(propertyselection), onSelect, and methods validate, and select`.
  • Old deprecation messages are removed.
  • The API of the expand function is changed from expand(callback) to expand(path, callback), and can't be used anymore for collapsing nodes. Instead, se the collapse(path) method for that.
  • The property edit is removed from the types KeySelection and ValueSelection, and two new types EditKeySelection and EditValueSelection are added.
  • The helper functions createKeySelection and createValueSelection are changed, argument edit is removed, and two new helper functions createEditKeySelection and createEditValueSelection are added.
  • The API of the component EditableValue requires an additional property selection.
  • Some of the class names related to selection highlighting are moved/changed.
  • The default query language is changed to jsonquery.
  • The vanilla editor needs to be instantiated using createJSONEditor(...) instead of new JSONEditor(...) in preparation for the upgrade to Svelte 5.

Features

  • change the constructor of the vanilla library from new JSONEditor(...) into createJSONEditor(...) in preparation for an upgrade to Svelte 5.
  • implemented a powerful API for expand and collapse (#458)
  • replace the default query language with a new query language jsonquery (#469)
  • implement support for the query language JSONPath (#470)
  • export more utility functions (#461)
  • change the API to consistently use undefined instead of null (#453).
  • replaced svelte-simple-modal with native HTML <dialog /> (#462)
  • the property edit is removed from the types KeySelection and ValueSelection, and two new types EditKeySelection and EditValueSelection are added.
  • internal refactor of the data structure holding state like expanded nodes and search results.

Bug Fixes

  • shortcut keys Ctrl+F and Ctrl+H not working in table mode whilst editing a value
  • the do you want to format message popped up after clicking the "Compact" button
  • define svelte@4 as a peer dependency
  • a lot of small bugfixes.
josdejong
published 0.23.8 •

Changelog

Source

0.23.8 (2024-07-26)

Bug Fixes

  • revert the "text mode loads partially scrolled down" fix (#471) (38e7dd9)
josdejong
published 0.23.7 •

Changelog

Source

0.23.7 (2024-06-06)

Bug Fixes

  • search and replace in table mode not working (3f8a398)
josdejong
published 0.23.6 •

Changelog

Source

0.23.6 (2024-06-05)

Features

  • update dependencies codemirror, codemirror-indentation-markers, ajv, sass (1eb5c0b)

Bug Fixes

  • #436 Ctrl+Click (Cmd+Click) not working on Mac (7142783)
josdejong
published 0.23.5 •

Changelog

Source

0.23.5 (2024-05-30)

Features

  • upgrade dependencies codemirror, ajv, jsonrepair, and update dev dependencies (999acfc)

Bug Fixes

  • cleanup wrong classname jse-readonly-password attached to all values (eabbeb2)
  • make platform detection more robust and future proof (#435) (776ff70)
josdejong
published 0.23.4 •

Changelog

Source

0.23.4 (2024-05-09)

Bug Fixes

  • cannot use middle mouse button to scroll (d0e7f4c)
  • update jsonrepair and other dependencies (7b9063f)
josdejong
published 0.23.3 •

Changelog

Source

0.23.3 (2024-05-06)

Features

  • update codemirror, ajv, fontawesome, jsonrepair, and dev dependencies (7bd08e7)

Bug Fixes

  • text mode loads partially scrolled down (56e18ee)
josdejong
published 0.23.2 •

Changelog

Source

0.23.2 (2024-04-17)

Bug Fixes

  • #423 error about an invalid selection in text mode when clearing the contents (5ed8a86)
  • change text "fullscreen" to "full screen" (a56415f)
  • editor not getting focus when clicking in an empty area in table mode (0e74043)
josdejong
published 0.23.1 •

Changelog

Source

0.23.1 (2024-03-28)

Features

Bug Fixes

  • support pressing Esc to close the CopyPasteModal (fb77efe)
  • update dependency vanilla-picker and update devDependencies (b0ba13f)
josdejong
published 0.23.0 •

Changelog

Source

0.23.0 (2024-03-13)

⚠ BREAKING CHANGES

  • The onRenderContextMenu callback now also triggers when the editor is readOnly, so you now have to handle that case in the callback.

Features

  • #399 enable onRenderContextMenu when the editor is readOnly (#411) (db3fb57)
  • extend the contexts of onRenderMenu and onRenderContextMenu with a prop readOnly (#411) (4df5548)
  • search and replace in table mode (#415) (0860f3e)

Bug Fixes

  • cannot convert an Array into an Object (4b3af48)
  • context menu not closing when clicking a button in a dropdown menu (e2c419a)
  • disable all relevant context menu buttons when readOnly (see #411) (c66ee09)
  • disable wrapped line indent when using tabs because that doesn't work well (2a067e1)
  • editor not getting focus when clicking inside the welcome screen of table mode (919a31e)
  • insert an object or array in tree mode in an empty document not working (5382e1c)
  • status bar not visible when caret is at the start of the document (dca87f0)
  • table row actions not disabled in the table mode context menu when having an empty document (7123249)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc