Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1 #474

Merged
merged 86 commits into from
Sep 24, 2024
Merged

v1 #474

merged 86 commits into from
Sep 24, 2024

Conversation

josdejong
Copy link
Owner

@josdejong josdejong commented Jul 30, 2024

We're close to finishing svelte-jsoneditor@1.0.0 🎉

  • fix: shortcut keys Ctrl+F and Ctrl+H not working in table mode whilst editing a value
  • fix: the do you want to format message popped up after clicking the "Compact" button
  • fix: define svelte@4 as a peer dependency
  • feat: implemented a powerful API for expand and collapse #458
  • feat: export more utility functions #461
  • feat: replace the default query language with jsonquery #469
  • feat: implement support for the query language JSONPath #470
  • chore: the internal data structure holding state like expanded nodes and search results #450
  • chore: the API to consistently use undefined instead of null #453
  • chore: cleanup deprecation messages
  • chore: refactor the logic to paste JSON #460
  • chore: replace svelte-simple-modal with native HTML <dialog /> #462
  • chore: refactor KeySelection and ValueSelection #463
  • chore: refactor selection styling #468
  • docs: describe browser requirements (March 2022 or newer)

josdejong added 30 commits June 14, 2024 13:41
…ctures (#450)

BREAKING CHANGE: 

Though the editor functions exactly the same, this refactor changes the internal core data structures, so be careful.
BREAKING CHANGE:

Changed the API to consistently use `undefined` instead of `null`. This involves properties `selection`, `onChange` (properties `contentErrors and `patchResult`), `onRenderContextMenu` (property `selection`), `onSelect`, and methods `validate`, and `select`.
BREAKING CHANGE:
Old deprecation messages are removed.
BREAKING CHANGE:

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, use the `collapse(path)` method for that.
josdejong added 28 commits July 25, 2024 17:49
BREAKING CHANGE:
The default query language is changed to `jsonquery`.
…o `createJSONEditor(...)`

BREAKING CHANGE:
The vanilla editor needs to be instantiated using `createJSONEditor(...)` instead
of `new JSONEditor(...)` in preparation for the upgrade to Svelte 5.
@josdejong josdejong merged commit 3a65392 into main Sep 24, 2024
5 checks passed
@josdejong josdejong deleted the v1 branch September 24, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant