Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2d45129
feat: implement `stringify`
josdejong Sep 13, 2024
71df5c0
feat: implement `parse` (WIP)
josdejong Sep 13, 2024
3ae27f2
feat: parse objects (WIP)
josdejong Sep 13, 2024
ce121c9
feat: parse operators, numbers, keywords (WIP)
josdejong Sep 16, 2024
c694193
chore: refactor `parse` to use regexps to minimize the amount of code…
josdejong Sep 16, 2024
3f991fd
chore: refactor `parseFunction` (WIP)
josdejong Sep 16, 2024
c13adcb
chore: refactor `parseFunction` further
josdejong Sep 16, 2024
945cce5
chore: refactor parseObject, parseString, parseKeyword, and parseNumb…
josdejong Sep 16, 2024
28b00b0
chore: refactor functions into arrow functions
josdejong Sep 16, 2024
7e3e065
docs: add comments for the functions `stringify` and `parse`
josdejong Sep 16, 2024
2698a7b
docs: more compact example
josdejong Sep 16, 2024
885d6ec
chore: move unit tests to compile.test.ts
josdejong Sep 16, 2024
c702562
feat: support a string query in `jsonquery`
josdejong Sep 17, 2024
a40e1f1
fix: support array indices as property
josdejong Sep 17, 2024
8316fa3
chore: group tests together
josdejong Sep 17, 2024
24d8042
docs: implement parse/stringify in the playground (WIP)
josdejong Sep 17, 2024
c0be2bc
fix: some fixes in parsing pipe, operators, and indices
josdejong Sep 18, 2024
0a95cef
fix: improve error messages, fix handling of nested operators
josdejong Sep 18, 2024
b5ea362
chore: improve error handling
josdejong Sep 18, 2024
ac2f0a0
fix: allow parsing `.` as root property
josdejong Sep 18, 2024
eb6b788
chore: create an internal function `throwError`
josdejong Sep 18, 2024
d80dc1d
chore: use biome instead of prettier
josdejong Sep 18, 2024
eeee8ef
chore: setup test coverage
josdejong Sep 18, 2024
dda9ea9
feat: turn `pipe` and `object` into a regular function and implement …
josdejong Sep 18, 2024
6410881
feat: implement support for `array` in parse and stringify
josdejong Sep 19, 2024
10d818f
feat: implement support for `array` in parse and stringify
josdejong Sep 19, 2024
ede15a3
feat: implement a toggle in the playground to use either Text or JSON…
josdejong Sep 20, 2024
695b9d3
feat: smart JSON formatting in the playground
josdejong Sep 20, 2024
7078699
fix: use the cdn version of jsonquery again
josdejong Sep 20, 2024
909c0cf
docs: update jsonquery-overview.svg
josdejong Sep 20, 2024
61f3877
docs: update the README.md
josdejong Sep 20, 2024
922071e
docs: update the function reference
josdejong Sep 20, 2024
eaabc6d
docs: document functions pick, object, and array and reorganize the r…
josdejong Sep 20, 2024
a0fb880
docs: update the quick reference on the playground
josdejong Sep 20, 2024
4e77a7c
docs: use the CDN version of the library in the playground
josdejong Sep 20, 2024
453b31e
docs: some styling tweaks
josdejong Sep 20, 2024
bcfa64f
docs: argh. use the CDN version of the library again
josdejong Sep 20, 2024
6bfa926
fix: stringify `array` not working
josdejong Sep 20, 2024
f2e8ec5
feat: implement smart stringify
josdejong Sep 23, 2024
86272d9
fix: parsing/stringifying of root property
josdejong Sep 23, 2024
ccd90db
chore: define internal type `JoinDefinition`
josdejong Sep 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
lib
coverage
.idea
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

411 changes: 313 additions & 98 deletions README.md

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.1/schema.json",
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": { "ignoreUnknown": false, "ignore": ["lib", "coverage"] },
"formatter": {
"enabled": true,
"useEditorconfig": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100,
"attributePosition": "auto",
"bracketSpacing": true
},
"organizeImports": { "enabled": true },
"linter": { "enabled": true, "rules": { "recommended": true } },
"javascript": {
"formatter": {
"quoteProperties": "asNeeded",
"trailingCommas": "none",
"semicolons": "asNeeded",
"arrowParentheses": "always",
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto",
"bracketSpacing": true
}
}
}
Loading