-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implemented options
parser
and validationParser
to support …
…alternative JSON parsers like lossless-json (#151) * feat: custom parser largely working (WIP) * fix: extend `isTimestamp` to support `LosslessNumber` and `bigint` * fix: show error when sorting throws an error * fix: use the custom parser when validating content in `text` mode * docs: describe the new property `parser` in the readme * fix: truncate raw contents in development page * fix: enforce string not working with custom parser * chore: create a real `getAbsolutePath` function for use in the build scripts * fix: mark the package as side-effects free, allowing better optimization in bundlers * chore: fix merge conflicts * fix: upgrade to `immutable-json-patch@5.0.0`, fixing search * chore: cleanup logging * fix: support `bigint` in the query languages * feat: rerender the editor when parser changes * feat: implement `validationParser` * fix: only validate when a validator function is provided * fix: do not show parse or validation errors when the editor is disabled * chore: make all properties of the internal TextMode and TreeMode required, remove the default values * docs: add homepage in package.json * chore: reorder fields in package.json * fix: export util function `isEqualParser` * chore: update all dependencies, including `lossless-json@2.0.0`
- Loading branch information
Showing
59 changed files
with
1,832 additions
and
1,769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ module.exports = { | |
env: { | ||
browser: true, | ||
es2017: true, | ||
es2020: true, | ||
node: true, | ||
mocha: true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.