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

vanilla-jsoneditor

Package Overview
Dependencies
Maintainers
1
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

0.22.0

Diff

Changelog

Source

0.22.0 (2024-03-01)

⚠ BREAKING CHANGES

  • The onChange callback is no longer triggered on programmatic changes via a two-way binded content or via methods .update(), .set(), and .patch().

Features

  • do not trigger onChange on programmatic changes (#410) (201f602)
  • document the requirement for immutable changes in content (see #318) (0545e64)
  • update dependencies (a.o. fixing an issue with wrapping tab indented lines) (1bd92e7)

Bug Fixes

  • add missing property onSelect to interface JSONEditorPropsOptional (4087e3f)
  • improve the logic to determine whether a JSON document needs formatting (bb15bd1)
  • onCreateMenu and onCreateContextMenu possibly applying mutated changes without returning (da8fd60)
josdejong
published 0.21.6 •

Changelog

Source

0.21.6 (2024-02-15)

Features

  • upgrade codemirror, jsonrepair, svelte, svelte-simple-modal, and dev dependencies (3255741)

Bug Fixes

  • improve the logic to determine whether a JSON document needs formatting (0ca8a49)
  • type definition of JSONEditorPropsOptional.flattenColumns (3a28757)
  • type definition of RenderMenuContext.mode (51a7133)
josdejong
published 0.21.5 •

Changelog

Source

0.21.5 (2024-02-05)

Features

  • implement support for vanilla JS components in onRenderValue using Svelte Action (#398) (db482ea)

Bug Fixes

  • #392 property onRenderContextMenu missing in JSONEditorPropsOptional (ee9b4c9)
  • #401 original data can be mutated by the TransformModal previews (337f812)
  • consistently use selectedJson in the TransformModal (ac31a79)
  • use flex-start instead of start for align-items (#395) (b8be1a5)
josdejong
published 0.21.4 •

Changelog

Source

0.21.4 (2024-01-24)

Bug Fixes

  • #381 method .update() throwing an exception when calling directly after creating the editor (75c3b5e)
  • update @codemirror/view and dev dependencies (3f2afef)
josdejong
published 0.21.3 •

Changelog

Source

0.21.3 (2024-01-19)

Bug Fixes

  • #381 method set() sometimes throwing an error in text mode (2dc62f0)
  • #391 editor not supporting Object.create(null) as object (918a126)
  • update dependencies and devDependencies (0d49b66)
josdejong
published 0.21.2 •

Changelog

Source

0.21.2 (2024-01-10)

Features

  • provide the current selection in onRenderContextMenu (#376) (2068823)
  • update deps codemirror, jsonrepair, sass, svelte-awesome, svelte-select, and more (63ac195)

Bug Fixes

  • #379 ContextMenu not closing after using a custom button via onRenderContextMenu (2a83137)
  • #386 add a standalone.d.ts file to the vanilla-jsoneditor package (4f8fa55)
  • improve performance of isColor detection (see #378) (514f6ca)
  • improve performance of isColor detection for long text values (See #378) (b1a04fc)
  • update dependency jsonrepair (ec23521)
josdejong
published 0.21.1 •

Changelog

Source

0.21.1 (2023-12-20)

Bug Fixes

  • add a module export again to the svelte-jsoneditor package (0c695a4)
josdejong
published 0.21.0 •

Changelog

Source

0.21.0 (2023-12-20)

⚠ BREAKING CHANGES

  • The type Content is changed from { json: JSONValue} | { text: string } into { json: unknown } | { text: string }, and all other types having JSONValue changed to unknown. The return type of JSONParser.stringify changed from string to string | undefined.

Features

  • change the type of json from JSONValue to unknown (#371) (dc4671a)
  • implement onRenderContextMenu (fix #82) (e53a620)
  • upgrade to upgrade @sveltejs/kit@2, vite-plugin-svelte@3, vite@5, and vitest@1 (#374) (b83e321)
josdejong
published 0.20.0 •

Changelog

Source

0.20.0 (2023-12-06)

⚠ BREAKING CHANGES

  • When using vanilla-jsoneditor directly in the browser, you now have to import { JSONEditor } from 'vanilla-jsoneditor/standalone.js' instead of import { JSONEditor } from 'vanilla-jsoneditor'. For projects with a build setup (React, Vue, Angular) it should be a drop-in replacement.
  • CSS variables are no longer defined globally, and the file themes/jse-theme-default.css is now removed (replaced by an internal defaults.scss). The provided dark theme still works as-is. The CSS variable --jse-modal-theme-color has been renamed to --jse-modal-editor-theme-color, and --jse-modal-theme-color-highlight has been renamed to --jse-modal-editor-theme-color-highlight.

Features

  • export one bundle with and one without external dependencies in vanilla-jsoneditor (#353) (9c1ad15)
  • update dependencies codemirror, fontawesome, svelte-awesome, and dev dependencies (75596ae)
  • use SCSS variables internally (#344) (ec4b788)

Bug Fixes

  • allow isEditing property to be true when in readOnly mode (see #342) (3b0bdb7)
  • cleanup a console.log (005f189)
  • make argument element of helper function onEscape optional (6eb9b82)
  • styling issue with a button text color in dark mode (4ff40f9)
josdejong
published 0.19.0 •

Changelog

Source

0.19.0 (2023-11-21)

⚠ BREAKING CHANGES

  • Changes in the package exports

Features

  • additional classes for improved CSS targeting (4392f2c)
  • package exports not working in Jest (77697b3)

Bug Fixes

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