Skip to content

Tags: 43081j/picoquery

Tags

2.4.0

Toggle 2.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.

1.4.0

Toggle 1.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #50 from 43081j/main

feat: add support for serializing complex objects (#49)

2.3.1

Toggle 2.3.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.

1.3.1

Toggle 1.3.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #44 from 43081j/main

fix: nested repeated array syntax (#43)

2.3.0

Toggle 2.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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

1.3.0

Toggle 1.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #41 from 43081j/main

Backport js syntax to v1

2.2.0

Toggle 2.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add value serializers (#35)

Adds a new `valueSerializer` option so we can provide a custom value
serializer.

2.1.0

Toggle 2.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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

2.1.0-beta.0

Toggle 2.1.0-beta.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
docs: update benchmarks (#26)

Re-runs the benchmarks since we changed the parse loop recently.

1.2.0

Toggle 1.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #36 from 43081j/main

feat: add value serializers (#35)