-
Notifications
You must be signed in to change notification settings - Fork 2
Comparing changes
Open a pull request
base repository: 43081j/picoquery
base: 1.0.0
head repository: 43081j/picoquery
compare: main
- 15 commits
- 12 files changed
- 3 contributors
Commits on Jun 22, 2024
-
feat: switch to esm-only (#22)
2.x and beyond will ship as ESM only. 1.x will continue to have backported fixes and non-breaking features.
Configuration menu - View commit details
-
Copy full SHA for bb7b731 - Browse repository at this point
Copy the full SHA bb7b731View commit details
Commits on Jun 23, 2024
-
perf: follow nested object during parsing (#23)
Instead of traversing objects twice (once to set, once to get), we now keep track of it through the parse loop and key into it gradually as keys are parsed.
Configuration menu - View commit details
-
Copy full SHA for 4da194f - Browse repository at this point
Copy the full SHA 4da194fView commit details -
fix: remove dead code for index nested start keys (#24)
When using index nesting, the parse loop visits `[` and computes keys _only if_ we didn't just pass a `]`. This is to capture the start of such a key. For example, `foo[bar][baz]` would result in the only occurrence of this being `foo[`. Since a syntactically valid indexed key should only have one of these (at the start), `lastKey` should always be `undefined` at that point. So we can remove the check.
Configuration menu - View commit details
-
Copy full SHA for f168317 - Browse repository at this point
Copy the full SHA f168317View commit details -
perf: rework stringify to avoid array alloc (#25)
Changes the stringify logic to build a string up internally rather than producing an array of traversed key/value pairs. Should result in a little less memory usage and seems to bump the perf up a fair amount in some cases.
Configuration menu - View commit details
-
Copy full SHA for 9c6f311 - Browse repository at this point
Copy the full SHA 9c6f311View commit details -
Re-runs the benchmarks since we changed the parse loop recently.
Configuration menu - View commit details
-
Copy full SHA for 7c01017 - Browse repository at this point
Copy the full SHA 7c01017View commit details -
chore: tweak publish flows (#29)
Sets the publish flow to do the following: - `1.*` pre-releases have the `v1-next` tag - `1.*` releases have the `v1` tag - all other pre-releases have the `next` tag - all other releases have the `latest` tag
Configuration menu - View commit details
-
Copy full SHA for 5d67a39 - Browse repository at this point
Copy the full SHA 5d67a39View commit details -
Configuration menu - View commit details
-
Copy full SHA for c32c11a - Browse repository at this point
Copy the full SHA c32c11aView commit details -
fix: export shared types (#33)
Exports the shared types so we can get hold of `Options` etc.
Configuration menu - View commit details
-
Copy full SHA for d22d54b - Browse repository at this point
Copy the full SHA d22d54bView commit details -
feat: add value serializers (#35)
Adds a new `valueSerializer` option so we can provide a custom value serializer.
Configuration menu - View commit details
-
Copy full SHA for 036311a - Browse repository at this point
Copy the full SHA 036311aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7a909e - Browse repository at this point
Copy the full SHA b7a909eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed18519 - Browse repository at this point
Copy the full SHA ed18519View commit details
Commits on Jun 24, 2024
-
feat: add new js nesting syntax (#40)
Adds a new syntax type, `js`. With this syntax, arrays use indices and properties use dot-notation. For example: ```ts // foo.bar[0]=baz ({ foo: { bar: [ 'baz' ] } }) ``` Closes #39
Configuration menu - View commit details
-
Copy full SHA for 6b05645 - Browse repository at this point
Copy the full SHA 6b05645View commit details
Commits on Jun 25, 2024
-
fix: nested repeated array syntax (#43)
Fixes #42 Essentially we had two bugs 👀 Bug 1: if you have repeat syntax when using bracket-notation, but only had one key, we would _not_ create it as a string. For example: ```ts parse('foo[]=1', opts); // {foo: 1} - wrong! parse('foo[]=1&foo[]=2', opts); // {foo: [1, 2]} - right! ``` Bug 2: if you have repeat syntax following an index-nested member, we would not parse it correctly. For example: ```ts parse('foo[bar][]=1', opts); // {foo: {bar: 1}} - wrong! // expected: {foo: {bar: [1]}} ``` These should both now be fixed.
Configuration menu - View commit details
-
Copy full SHA for 5d0a39f - Browse repository at this point
Copy the full SHA 5d0a39fView commit details
Commits on Jul 27, 2024
-
feat: add support for serializing complex objects (#49)
Adds a `shouldSerializeObject` function which determines if a value should be serialized or should attempt to be nested. The default implementation checks if a value is a non-date object, meaning all objects which are not dates will trigger nesting.
Configuration menu - View commit details
-
Copy full SHA for d663bd1 - Browse repository at this point
Copy the full SHA d663bd1View commit details
Commits on Aug 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 327c7db - Browse repository at this point
Copy the full SHA 327c7dbView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 1.0.0...main