chore(deps): update dependency @connectrpc/protoc-gen-connect-query to v1 #168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.6.0
->^1.0.0
Release Notes
connectrpc/connect-query-es (@connectrpc/protoc-gen-connect-query)
v1.1.1
Compare Source
What's Changed
Full Changelog: connectrpc/connect-query-es@v1.1.0...v1.1.1
v1.1.0
Compare Source
What's Changed
CJS output
By default, protoc-gen-connect-query (and all other plugins based on @bufbuild/protoplugin) generate ECMAScript
import
andexport
statements. For use cases where CommonJS is difficult to avoid, a new plugin option has been added namedjs_import_style
which can be used to generate CommonJSrequire()
calls.Here is an example buf.gen.yaml:
To view the full PR, see Added support for cjs output by @paul-sachs in https://github.com/connectrpc/connect-query-es/pull/303
Full Changelog: connectrpc/connect-query-es@v1.0.0...v1.1.0
v1.0.0
Compare Source
What's Changed
V1 Release 🚀
Introducing a whole new API for connect-query. This API ties itself more tightly with the fantastic
@tanstack/react-query
in order to improve developer experience and reduce bundle size.At the core of this change is the new
MethodUnaryDescriptor
type, which is essentially just a self contained description of a service method. The new code generator just outputs one of these per method and those are passed to the hooks/methods. This new additional type brings a huge level of flexibility about how we write additional methods, and it's trivial to write your own hooks/methods around these simple types.Example usage
Breaking changes
use*Query
hooks now return data instead of just options.create*
methods have been removed.protoc-gen-connect-query
now outputs very simple method descriptors instead of a bunch of hooks per method.Reasoning
There are a number of reasons we've decided to make this major breaking change.
@tanstack/react-query@5
provides better usage of Suspense versions of the API.Migration
The migration process is easy but manual:
Before
After
Full Changelog: connectrpc/connect-query-es@v0.6.0...v1.0.0
Configuration
📅 Schedule: Branch creation - "before 10am on friday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.