-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(react-query): Generate polymorphic route/mutation/query interfaces from tRPC router #3646
feat(react-query): Generate polymorphic route/mutation/query interfaces from tRPC router #3646
Conversation
@Nick-Lucas is attempting to deploy a commit to the trpc Team on Vercel. A member of the Team first needs to authorize it. |
9350905
to
f233f03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
- I think the QueryLike and MutationLike types are useful. They should be exported in
@trpc/react-query/shared
- Documentation should be added in here. I think it can be quite light with a link to the test you're making as a reference.
- I'd like the test, since it might also act as documentation, should import more comments
@@ -171,3 +171,99 @@ function usePostById(input: PostByIdInput, options?: PostByIdOptions) { | |||
return trpc.post.byId.useQuery(input, options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this section is part of the react-query library and not particularly portable to other clients, should we actually move these to a new file under the react docs? Perhaps www/docs/react/infer-types.md
?
0fbc9ec
to
b96c732
Compare
Thanks for the initial feedback, I believe that's all covered now. I've added some higher level types and the docs, plus had a stab at finding the right home for a couple types. Once we're happy with this, I do think it will be worth it to write a test with a router factory which can utilise sub-types, and adapt the polymorphic types to work in that case. Having a generic (in the true OO sense) react component which can accept a sub-type and some inversion-of-control for the extra fields seems like the natural continuation of this work, and pretty important if a use case is to include a CRUD factory where the entities are all based off a core type like |
Okay, I've added a second example today to check support for sub-types in both the input/output data, and in extending the router beyond the initial factory result. I believe this is ready now @KATT though obviously it's changed significantly since you last reviewed so I'm expecting some change requests :) |
145d315
to
fe99e5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like this, but I want a second pair of eyes on it before merging.
can any of you guys check it, @trpc/trpc-core and smash the merge button?
…generating an abstract interface
…r types intos inferReactQueryProcedure
f12b4b2
to
b33b92f
Compare
Thanks @sachinraja, looks like prettier wanted the imports in a different order so I've pushed that. Also rebased to get things up to date |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some reservations about merging this, primarily because those tests look type-heavy but I don't know when I'll get to addressing those so this is fine to merge now. The types themselves look good and I can think of valid use cases for them.
Thanks for getting this over the line! Yes the tests ended up pretty substantial. We can probably almost half the test code (and move code from the sister files into the spec) just by jettisoning the simpler example, but since the goal was for them also to serve as an example linked in the docs it might be worth doing that at the same time as standing up an example project for the factory pattern. I'm pretty active on discord if you want to chat informally about it and come up with a plan |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@iconify-json/carbon](https://icon-sets.iconify.design/carbon/) | [`1.1.14` -> `1.1.15`](https://renovatebot.com/diffs/npm/@iconify-json%2fcarbon/1.1.14/1.1.15) | [![age](https://badges.renovateapi.com/packages/npm/@iconify-json%2fcarbon/1.1.15/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@iconify-json%2fcarbon/1.1.15/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@iconify-json%2fcarbon/1.1.15/compatibility-slim/1.1.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@iconify-json%2fcarbon/1.1.15/confidence-slim/1.1.14)](https://docs.renovatebot.com/merge-confidence/) | | [@iconify-json/simple-icons](https://icon-sets.iconify.design/simple-icons/) | [`1.1.42` -> `1.1.44`](https://renovatebot.com/diffs/npm/@iconify-json%2fsimple-icons/1.1.42/1.1.44) | [![age](https://badges.renovateapi.com/packages/npm/@iconify-json%2fsimple-icons/1.1.44/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@iconify-json%2fsimple-icons/1.1.44/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@iconify-json%2fsimple-icons/1.1.44/compatibility-slim/1.1.42)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@iconify-json%2fsimple-icons/1.1.44/confidence-slim/1.1.42)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/addon-a11y](https://togithub.com/storybookjs/storybook/tree/main/addons/a11y) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2faddon-a11y/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-a11y/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-a11y/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-a11y/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-a11y/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/addon-actions](https://togithub.com/storybookjs/storybook/tree/main/addons/actions) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2faddon-actions/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-actions/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-actions/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-actions/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-actions/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/addon-docs](https://togithub.com/storybookjs/storybook/tree/main/addons/docs) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2faddon-docs/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-docs/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-docs/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-docs/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-docs/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/addon-essentials](https://togithub.com/storybookjs/storybook/tree/main/addons/essentials) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2faddon-essentials/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-essentials/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-essentials/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-essentials/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-essentials/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/addon-interactions](https://togithub.com/storybookjs/storybook/tree/main/addons/interactions) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2faddon-interactions/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-interactions/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-interactions/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-interactions/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-interactions/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/addon-links](https://togithub.com/storybookjs/storybook/tree/main/addons/links) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2faddon-links/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-links/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-links/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-links/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-links/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/addon-viewport](https://togithub.com/storybookjs/storybook/tree/main/addons/viewport) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2faddon-viewport/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-viewport/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-viewport/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-viewport/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2faddon-viewport/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/nextjs](https://togithub.com/storybookjs/storybook/tree/next/code/frameworks/nextjs) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2fnextjs/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2fnextjs/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2fnextjs/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2fnextjs/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2fnextjs/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/react](https://togithub.com/storybookjs/storybook/tree/main/app/react) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2freact/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2freact/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2freact/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2freact/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2freact/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@storybook/theming](https://togithub.com/storybookjs/storybook/tree/main/lib/theming) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/@storybook%2ftheming/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/@storybook%2ftheming/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@storybook%2ftheming/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@storybook%2ftheming/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@storybook%2ftheming/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [@tanstack/eslint-plugin-query](https://tanstack.com/query) ([source](https://togithub.com/tanstack/query)) | [`4.24.5` -> `4.24.7`](https://renovatebot.com/diffs/npm/@tanstack%2feslint-plugin-query/4.24.5/4.24.7) | [![age](https://badges.renovateapi.com/packages/npm/@tanstack%2feslint-plugin-query/4.24.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@tanstack%2feslint-plugin-query/4.24.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@tanstack%2feslint-plugin-query/4.24.7/compatibility-slim/4.24.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@tanstack%2feslint-plugin-query/4.24.7/confidence-slim/4.24.5)](https://docs.renovatebot.com/merge-confidence/) | | [@tanstack/react-query](https://tanstack.com/query) ([source](https://togithub.com/tanstack/query)) | [`4.24.4` -> `4.24.6`](https://renovatebot.com/diffs/npm/@tanstack%2freact-query/4.24.4/4.24.6) | [![age](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query/4.24.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query/4.24.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query/4.24.6/compatibility-slim/4.24.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query/4.24.6/confidence-slim/4.24.4)](https://docs.renovatebot.com/merge-confidence/) | | [@tanstack/react-query-devtools](https://tanstack.com/query) ([source](https://togithub.com/tanstack/query)) | [`4.24.4` -> `4.24.6`](https://renovatebot.com/diffs/npm/@tanstack%2freact-query-devtools/4.24.4/4.24.6) | [![age](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query-devtools/4.24.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query-devtools/4.24.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query-devtools/4.24.6/compatibility-slim/4.24.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@tanstack%2freact-query-devtools/4.24.6/confidence-slim/4.24.4)](https://docs.renovatebot.com/merge-confidence/) | | [@trpc/client](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.10.0` -> `10.11.1`](https://renovatebot.com/diffs/npm/@trpc%2fclient/10.10.0/10.11.1) | [![age](https://badges.renovateapi.com/packages/npm/@trpc%2fclient/10.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@trpc%2fclient/10.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@trpc%2fclient/10.11.1/compatibility-slim/10.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@trpc%2fclient/10.11.1/confidence-slim/10.10.0)](https://docs.renovatebot.com/merge-confidence/) | | [@trpc/next](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.10.0` -> `10.11.1`](https://renovatebot.com/diffs/npm/@trpc%2fnext/10.10.0/10.11.1) | [![age](https://badges.renovateapi.com/packages/npm/@trpc%2fnext/10.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@trpc%2fnext/10.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@trpc%2fnext/10.11.1/compatibility-slim/10.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@trpc%2fnext/10.11.1/confidence-slim/10.10.0)](https://docs.renovatebot.com/merge-confidence/) | | [@trpc/react-query](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.10.0` -> `10.11.1`](https://renovatebot.com/diffs/npm/@trpc%2freact-query/10.10.0/10.11.1) | [![age](https://badges.renovateapi.com/packages/npm/@trpc%2freact-query/10.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@trpc%2freact-query/10.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@trpc%2freact-query/10.11.1/compatibility-slim/10.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@trpc%2freact-query/10.11.1/confidence-slim/10.10.0)](https://docs.renovatebot.com/merge-confidence/) | | [@trpc/server](https://trpc.io) ([source](https://togithub.com/trpc/trpc)) | [`10.10.0` -> `10.11.1`](https://renovatebot.com/diffs/npm/@trpc%2fserver/10.10.0/10.11.1) | [![age](https://badges.renovateapi.com/packages/npm/@trpc%2fserver/10.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@trpc%2fserver/10.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@trpc%2fserver/10.11.1/compatibility-slim/10.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@trpc%2fserver/10.11.1/confidence-slim/10.10.0)](https://docs.renovatebot.com/merge-confidence/) | | [@types/react](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`18.0.27` -> `18.0.28`](https://renovatebot.com/diffs/npm/@types%2freact/18.0.27/18.0.28) | [![age](https://badges.renovateapi.com/packages/npm/@types%2freact/18.0.28/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2freact/18.0.28/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2freact/18.0.28/compatibility-slim/18.0.27)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2freact/18.0.28/confidence-slim/18.0.27)](https://docs.renovatebot.com/merge-confidence/) | | [@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/typescript-eslint) | [`5.51.0` -> `5.52.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/5.51.0/5.52.0) | [![age](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.52.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.52.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.52.0/compatibility-slim/5.51.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.52.0/confidence-slim/5.51.0)](https://docs.renovatebot.com/merge-confidence/) | | [@typescript-eslint/parser](https://togithub.com/typescript-eslint/typescript-eslint) | [`5.51.0` -> `5.52.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/5.51.0/5.52.0) | [![age](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.52.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.52.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.52.0/compatibility-slim/5.51.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.52.0/confidence-slim/5.51.0)](https://docs.renovatebot.com/merge-confidence/) | | [axios](https://axios-http.com) ([source](https://togithub.com/axios/axios)) | [`1.3.2` -> `1.3.3`](https://renovatebot.com/diffs/npm/axios/1.3.2/1.3.3) | [![age](https://badges.renovateapi.com/packages/npm/axios/1.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/axios/1.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/axios/1.3.3/compatibility-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/axios/1.3.3/confidence-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | | [eslint](https://eslint.org) ([source](https://togithub.com/eslint/eslint)) | [`8.33.0` -> `8.34.0`](https://renovatebot.com/diffs/npm/eslint/8.33.0/8.34.0) | [![age](https://badges.renovateapi.com/packages/npm/eslint/8.34.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/eslint/8.34.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/eslint/8.34.0/compatibility-slim/8.33.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/eslint/8.34.0/confidence-slim/8.33.0)](https://docs.renovatebot.com/merge-confidence/) | | [lint-staged](https://togithub.com/okonet/lint-staged) | [`13.1.1` -> `13.1.2`](https://renovatebot.com/diffs/npm/lint-staged/13.1.1/13.1.2) | [![age](https://badges.renovateapi.com/packages/npm/lint-staged/13.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/lint-staged/13.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/lint-staged/13.1.2/compatibility-slim/13.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/lint-staged/13.1.2/confidence-slim/13.1.1)](https://docs.renovatebot.com/merge-confidence/) | | [mongoback](https://mongoback.vercel.app) ([source](https://togithub.com/euberdeveloper/mongoback)) | [`3.0.4` -> `3.0.6`](https://renovatebot.com/diffs/npm/mongoback/3.0.4/3.0.6) | [![age](https://badges.renovateapi.com/packages/npm/mongoback/3.0.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/mongoback/3.0.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/mongoback/3.0.6/compatibility-slim/3.0.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/mongoback/3.0.6/confidence-slim/3.0.4)](https://docs.renovatebot.com/merge-confidence/) | | [msw](https://mswjs.io/) ([source](https://togithub.com/mswjs/msw)) | [`1.0.0` -> `1.0.1`](https://renovatebot.com/diffs/npm/msw/1.0.0/1.0.1) | [![age](https://badges.renovateapi.com/packages/npm/msw/1.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/msw/1.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/msw/1.0.1/compatibility-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/msw/1.0.1/confidence-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | | [prettier-plugin-packagejson](https://togithub.com/matzkoh/prettier-plugin-packagejson) | [`2.4.2` -> `2.4.3`](https://renovatebot.com/diffs/npm/prettier-plugin-packagejson/2.4.2/2.4.3) | [![age](https://badges.renovateapi.com/packages/npm/prettier-plugin-packagejson/2.4.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/prettier-plugin-packagejson/2.4.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/prettier-plugin-packagejson/2.4.3/compatibility-slim/2.4.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/prettier-plugin-packagejson/2.4.3/confidence-slim/2.4.2)](https://docs.renovatebot.com/merge-confidence/) | | [quicktype-core](https://togithub.com/quicktype/quicktype) | [`21.0.10` -> `21.0.13`](https://renovatebot.com/diffs/npm/quicktype-core/21.0.10/21.0.13) | [![age](https://badges.renovateapi.com/packages/npm/quicktype-core/21.0.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/quicktype-core/21.0.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/quicktype-core/21.0.13/compatibility-slim/21.0.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/quicktype-core/21.0.13/confidence-slim/21.0.10)](https://docs.renovatebot.com/merge-confidence/) | | [storybook](https://togithub.com/storybookjs/storybook/tree/main/lib/cli) ([source](https://togithub.com/storybookjs/storybook)) | [`7.0.0-beta.45` -> `7.0.0-beta.47`](https://renovatebot.com/diffs/npm/storybook/7.0.0-beta.45/7.0.0-beta.47) | [![age](https://badges.renovateapi.com/packages/npm/storybook/7.0.0-beta.47/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/storybook/7.0.0-beta.47/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/storybook/7.0.0-beta.47/compatibility-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/storybook/7.0.0-beta.47/confidence-slim/7.0.0-beta.45)](https://docs.renovatebot.com/merge-confidence/) | | [zod-prisma-types](https://togithub.com/chrishoermann/zod-prisma-types) | [`2.0.8` -> `2.0.17`](https://renovatebot.com/diffs/npm/zod-prisma-types/2.0.8/2.0.17) | [![age](https://badges.renovateapi.com/packages/npm/zod-prisma-types/2.0.17/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/zod-prisma-types/2.0.17/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/zod-prisma-types/2.0.17/compatibility-slim/2.0.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/zod-prisma-types/2.0.17/confidence-slim/2.0.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>storybookjs/storybook</summary> ### [`v7.0.0-beta.47`](https://togithub.com/storybookjs/storybook/blob/HEAD/CHANGELOG.md#​700-beta47-February-14-2023) [Compare Source](https://togithub.com/storybookjs/storybook/compare/v7.0.0-beta.46...v7.0.0-beta.47) ##### Features - Vite: Support legacyMdx1 fallback flag [#​20823](https://togithub.com/storybooks/storybook/pull/20823) - CLI: Automigration to update `mdx` stories config [#​21035](https://togithub.com/storybooks/storybook/pull/21035) ##### Bug Fixes - Vue3: Fix CSF2 support with decorators [#​20995](https://togithub.com/storybooks/storybook/pull/20995) - CLI: Do not use modern TS assets in legacy TS projects [#​20458](https://togithub.com/storybooks/storybook/pull/20458) - CLI: Fix conflicts in static dirs [#​21064](https://togithub.com/storybooks/storybook/pull/21064) ##### Maintenance - CLI: Update init script for react-native v6.5 [#​20719](https://togithub.com/storybooks/storybook/pull/20719) - CLI: Re-enable vue-vite in new-frameworks automigration [#​20970](https://togithub.com/storybooks/storybook/pull/20970) ### [`v7.0.0-beta.46`](https://togithub.com/storybookjs/storybook/blob/HEAD/CHANGELOG.md#​700-beta46-February-10-2023) [Compare Source](https://togithub.com/storybookjs/storybook/compare/v7.0.0-beta.45...v7.0.0-beta.46) ##### Features - CLI: Add Solid integration [#​20991](https://togithub.com/storybooks/storybook/pull/20991) - Viewport: Add `defaultOrientation` parameter [#​21048](https://togithub.com/storybooks/storybook/pull/21048) ##### Bug Fixes - CLI: Account for pnp when creating main.js in `storybook init` [#​21049](https://togithub.com/storybooks/storybook/pull/21049) - Core: Detect mdx2 errors and provide guidance to fix them [#​20917](https://togithub.com/storybooks/storybook/pull/20917) - Angular: provideHttpClient when HttpClientModule is present in the imports array [#​21028](https://togithub.com/storybooks/storybook/pull/21028) ##### Build - Build: Allow `stories` folder to be served by vite sandboxes [#​21022](https://togithub.com/storybooks/storybook/pull/21022) </details> <details> <summary>tanstack/query</summary> ### [`v4.24.7`](https://togithub.com/TanStack/query/releases/tag/v4.24.7) [Compare Source](https://togithub.com/tanstack/query/compare/v4.24.5...v4.24.7) Version 4.24.7 - 2/12/2023, 9:29 AM #### Changes ##### Fix - eslint-plugin-query: mutation function is turned into mutation key ([#​4973](https://togithub.com/tanstack/query/issues/4973)) ([`48e806b`](https://togithub.com/tanstack/query/commit/48e806b8)) by Eliya Cohen #### Packages - [@​tanstack/eslint-plugin-query](https://togithub.com/tanstack/eslint-plugin-query)[@​4](https://togithub.com/4).24.7 </details> <details> <summary>trpc/trpc</summary> ### [`v10.11.1`](https://togithub.com/trpc/trpc/releases/tag/v10.11.1) [Compare Source](https://togithub.com/trpc/trpc/compare/v10.11.0...v10.11.1) ##### What's Changed - fix(server): don't merge configs by [@​sachinraja](https://togithub.com/sachinraja) in [trpc/trpc#3756 - fix(server/client): add `Simplify<T>` to serialized output by [@​juliusmarminge](https://togithub.com/juliusmarminge) in [trpc/trpc#3762 - fix(client): replace `AbortSignalEsque` with `AbortSignal` & remove `abort-controller` polyfill by [@​JoshuaKGoldberg](https://togithub.com/JoshuaKGoldberg) in [trpc/trpc#3746 **Full Changelog**: trpc/trpc@v10.11.0...v10.11.1 ### [`v10.11.0`](https://togithub.com/trpc/trpc/releases/tag/v10.11.0) [Compare Source](https://togithub.com/trpc/trpc/compare/v10.10.0...v10.11.0) ##### What's Changed - feat(react-query): Generate polymorphic route/mutation/query interfaces from tRPC router by [@​Nick-Lucas](https://togithub.com/Nick-Lucas) in [trpc/trpc#3646 - feat(server): make `mergeRouters()` recursive by [@​sachinraja](https://togithub.com/sachinraja) in [trpc/trpc#3755 ##### New Contributors - [@​Lioness100](https://togithub.com/Lioness100) made their first contribution in [trpc/trpc#3735 - [@​saud-alnasser](https://togithub.com/saud-alnasser) made their first contribution in [trpc/trpc#3742 - [@​Nick-Lucas](https://togithub.com/Nick-Lucas) made their first contribution in [trpc/trpc#3646 - [@​danieluhl](https://togithub.com/danieluhl) made their first contribution in [trpc/trpc#3743 **Full Changelog**: trpc/trpc@v10.10.0...v10.11.0 </details> <details> <summary>typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin)</summary> ### [`v5.52.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#​5520-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5510v5520-2023-02-13) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.51.0...v5.52.0) ##### Bug Fixes - **eslint-plugin:** \[no-import-type-side-effects] correctly ignore zero-specifier imports ([#​6444](https://togithub.com/typescript-eslint/typescript-eslint/issues/6444)) ([d5a6688](https://togithub.com/typescript-eslint/typescript-eslint/commit/d5a6688a22ebaa2992e549f44c224fc8d0fc5cc7)) - **eslint-plugin:** \[no-unnecessary-condition] account for optional chaining on potentially void values ([#​6432](https://togithub.com/typescript-eslint/typescript-eslint/issues/6432)) ([e1d9c67](https://togithub.com/typescript-eslint/typescript-eslint/commit/e1d9c67981be53e091a4107f326b9bf097650c1f)), closes [#​5255](https://togithub.com/typescript-eslint/typescript-eslint/issues/5255) - **eslint-plugin:** \[no-unnecessary-condition] fix false positive when checking indexed access types ([#​6452](https://togithub.com/typescript-eslint/typescript-eslint/issues/6452)) ([d569924](https://togithub.com/typescript-eslint/typescript-eslint/commit/d569924cf3c223c185f6ba913390cd865cd33197)) - **eslint-plugin:** fix key-spacing when type starts on next line ([#​6412](https://togithub.com/typescript-eslint/typescript-eslint/issues/6412)) ([3eb2eed](https://togithub.com/typescript-eslint/typescript-eslint/commit/3eb2eed6167e2ffad6c44c0fcbd86be4b6202aeb)) ##### Features - **eslint-plugin:** \[block-spacing] extending base rule for TS related blocks ([#​6195](https://togithub.com/typescript-eslint/typescript-eslint/issues/6195)) ([b2db3f5](https://togithub.com/typescript-eslint/typescript-eslint/commit/b2db3f57d3b551e1159380c3d23edee14f133ac1)) - **eslint-plugin:** \[explicit-function-return-type] add allowFunctionsWithoutTypeParameters option ([#​6105](https://togithub.com/typescript-eslint/typescript-eslint/issues/6105)) ([113640e](https://togithub.com/typescript-eslint/typescript-eslint/commit/113640e9742acb3a193078e9704648517aebf1d8)) - **eslint-plugin:** \[explicit-function-return-type] add allowIIFEs option ([#​6237](https://togithub.com/typescript-eslint/typescript-eslint/issues/6237)) ([a1b3f7b](https://togithub.com/typescript-eslint/typescript-eslint/commit/a1b3f7b4d97154ac4b0d7934d12f1d5970cffe15)) </details> <details> <summary>typescript-eslint/typescript-eslint (@​typescript-eslint/parser)</summary> ### [`v5.52.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#​5520-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5510v5520-2023-02-13) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.51.0...v5.52.0) **Note:** Version bump only for package [@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) </details> <details> <summary>axios/axios</summary> ### [`v1.3.3`](https://togithub.com/axios/axios/blob/HEAD/CHANGELOG.md#​133-httpsgithubcomaxiosaxioscomparev132v133-2023-02-13) [Compare Source](https://togithub.com/axios/axios/compare/v1.3.2...v1.3.3) ##### Bug Fixes - **formdata:** added a check to make sure the FormData class is available in the browser's global scope; ([#​5545](https://togithub.com/axios/axios/issues/5545)) ([a6dfa72](https://togithub.com/axios/axios/commit/a6dfa72010db5ad52db8bd13c0f98e537e8fd05d)) - **formdata:** fixed setting NaN as Content-Length for form payload in some cases; ([#​5535](https://togithub.com/axios/axios/issues/5535)) ([c19f7bf](https://togithub.com/axios/axios/commit/c19f7bf770f90ae8307f4ea3104f227056912da1)) - **headers:** fixed the filtering logic of the clear method; ([#​5542](https://togithub.com/axios/axios/issues/5542)) ([ea87ebf](https://togithub.com/axios/axios/commit/ea87ebfe6d1699af072b9e7cd40faf8f14b0ab93)) ##### Contributors to this release - <img src="https://avatars.githubusercontent.com/u/12586868?v=4&s=18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://togithub.com/DigitalBrainJS "+11/-7 (#​5545 #​5535 #​5542 )") - <img src="https://avatars.githubusercontent.com/u/19842213?v=4&s=18" alt="avatar" width="18"/> [陈若枫](https://togithub.com/ruofee "+2/-2 (#​5467 )") </details> <details> <summary>eslint/eslint</summary> ### [`v8.34.0`](https://togithub.com/eslint/eslint/releases/tag/v8.34.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.33.0...v8.34.0) #### Features - [`9b2fcf7`](https://togithub.com/eslint/eslint/commit/9b2fcf7e928fc92ac6d43617bdee1bda250b7491) feat: `array-callback-return` supports `Array.prototype.toSorted` ([#​16845](https://togithub.com/eslint/eslint/issues/16845)) (SUZUKI Sosuke) #### Bug Fixes - [`923f61d`](https://togithub.com/eslint/eslint/commit/923f61d8fc82d83b912c6ba95abb5a509c4d7b52) fix: false positive with assignment in `no-extra-parens` ([#​16872](https://togithub.com/eslint/eslint/issues/16872)) (Francesco Trotta) #### Documentation - [`f0a9883`](https://togithub.com/eslint/eslint/commit/f0a988384ea1a262150e70d83abd8a5e50c46fa7) docs: split rules documentation ([#​16797](https://togithub.com/eslint/eslint/issues/16797)) (Ben Perlmutter) - [`67aa37b`](https://togithub.com/eslint/eslint/commit/67aa37b583f059226b9c959672400f04ed6a56b5) docs: fix typo in command-line-interface.md ([#​16871](https://togithub.com/eslint/eslint/issues/16871)) (Kevin Rouchut) - [`337f7ed`](https://togithub.com/eslint/eslint/commit/337f7ed96131d873be7ae6b010739476d0ad15e9) docs: fix width of language input ([#​16849](https://togithub.com/eslint/eslint/issues/16849)) (Tanuj Kanti) - [`71349a1`](https://togithub.com/eslint/eslint/commit/71349a1f709baa361bd656a7ce4a7d35d857a9a8) docs: Configure a Parser page ([#​16803](https://togithub.com/eslint/eslint/issues/16803)) (Ben Perlmutter) - [`de7e925`](https://togithub.com/eslint/eslint/commit/de7e925d03764f3681269b30bb60b92ee463c10f) docs: remove extra line numbers in example ([#​16848](https://togithub.com/eslint/eslint/issues/16848)) (jonz94) - [`ad38d77`](https://togithub.com/eslint/eslint/commit/ad38d77102d6fe30cfa92c831174f178bb35c88b) docs: Update README (GitHub Actions Bot) #### Chores - [`9dbe06d`](https://togithub.com/eslint/eslint/commit/9dbe06d0ad875e6d5964497e2975e8d789e763d0) chore: add `type` property to array-element-newline schema ([#​16877](https://togithub.com/eslint/eslint/issues/16877)) (MHO) - [`a061527`](https://togithub.com/eslint/eslint/commit/a061527a0332f0edf559acfc2902a327cae098d9) chore: Remove unused functions ([#​16868](https://togithub.com/eslint/eslint/issues/16868)) (Nicholas C. Zakas) </details> <details> <summary>okonet/lint-staged</summary> ### [`v13.1.2`](https://togithub.com/okonet/lint-staged/releases/tag/v13.1.2) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v13.1.1...v13.1.2) ##### Bug Fixes - disable stash by default when using diff option ([#​1259](https://togithub.com/okonet/lint-staged/issues/1259)) ([142c6f2](https://togithub.com/okonet/lint-staged/commit/142c6f225087207ec4c63b7847795857d567ce40)) </details> <details> <summary>euberdeveloper/mongoback</summary> ### [`v3.0.6`](https://togithub.com/euberdeveloper/mongoback/compare/7edbb3f7f167d4402859ad8a13cfed4afa47503d...241637751efa0a6b5df31cadc9620c5a81f2570f) [Compare Source](https://togithub.com/euberdeveloper/mongoback/compare/7edbb3f7f167d4402859ad8a13cfed4afa47503d...241637751efa0a6b5df31cadc9620c5a81f2570f) ### [`v3.0.5`](https://togithub.com/euberdeveloper/mongoback/compare/8e0ece0bae7c3648c086fdf3d7c9ba09caf57f79...7edbb3f7f167d4402859ad8a13cfed4afa47503d) [Compare Source](https://togithub.com/euberdeveloper/mongoback/compare/8e0ece0bae7c3648c086fdf3d7c9ba09caf57f79...7edbb3f7f167d4402859ad8a13cfed4afa47503d) </details> <details> <summary>mswjs/msw</summary> ### [`v1.0.1`](https://togithub.com/mswjs/msw/releases/tag/v1.0.1) [Compare Source](https://togithub.com/mswjs/msw/compare/v1.0.0...v1.0.1) #### v1.0.1 (2023-02-10) ##### Bug Fixes - add "package.json" subpath export ([#​1530](https://togithub.com/mswjs/msw/issues/1530)) ([`12a581f`](https://togithub.com/mswjs/msw/commit/12a581f480e3a2f9bdcda7874f98114c148c9d85)) [@​iceu-bb](https://togithub.com/iceu-bb) [@​kettanaito](https://togithub.com/kettanaito) </details> <details> <summary>matzkoh/prettier-plugin-packagejson</summary> ### [`v2.4.3`](https://togithub.com/matzkoh/prettier-plugin-packagejson/releases/tag/v2.4.3) [Compare Source](https://togithub.com/matzkoh/prettier-plugin-packagejson/compare/v2.4.2...v2.4.3) ##### Bug Fixes - **deps:** update dependency sort-package-json to v2.4.1 ([758ac0b](https://togithub.com/matzkoh/prettier-plugin-packagejson/commit/758ac0b0add272813371c475cab701018cb596dc)) </details> <details> <summary>quicktype/quicktype</summary> ### [`v21.0.13`](https://togithub.com/quicktype/quicktype/compare/810046620db9e3baa13cbe5f389e61db9c4cc04f...c9c152e1aa93ae2768b6c88687bf53ef8bee1874) [Compare Source](https://togithub.com/quicktype/quicktype/compare/810046620db9e3baa13cbe5f389e61db9c4cc04f...c9c152e1aa93ae2768b6c88687bf53ef8bee1874) ### [`v21.0.12`](https://togithub.com/quicktype/quicktype/compare/e7aa74271fdc672929d28373b879c65e6bc49693...810046620db9e3baa13cbe5f389e61db9c4cc04f) [Compare Source](https://togithub.com/quicktype/quicktype/compare/e7aa74271fdc672929d28373b879c65e6bc49693...810046620db9e3baa13cbe5f389e61db9c4cc04f) ### [`v21.0.11`](https://togithub.com/quicktype/quicktype/compare/12ea9f506abb3c953afecba5b3477211be2b1099...e7aa74271fdc672929d28373b879c65e6bc49693) [Compare Source](https://togithub.com/quicktype/quicktype/compare/12ea9f506abb3c953afecba5b3477211be2b1099...e7aa74271fdc672929d28373b879c65e6bc49693) </details> <details> <summary>chrishoermann/zod-prisma-types</summary> ### [`v2.0.17`](https://togithub.com/chrishoermann/zod-prisma-types/releases/tag/v2.0.17): 2.0.17 [Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/v2.0.16...v2.0.17) #### What's changed - fixed but with multiple imports on `include` and `select` schemas in multifile mode - fixed mistake in docs ### [`v2.0.16`](https://togithub.com/chrishoermann/zod-prisma-types/releases/tag/v2.0.16): 2.0.16 [Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/v2.0.15...v2.0.16) #### What's changed - fixed mistake in the docs concerning `createRelationValuesTypes` ### [`v2.0.15`](https://togithub.com/chrishoermann/zod-prisma-types/releases/tag/v2.0.15): 2.0.15 [Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/v2.0.14...v2.0.15) #### What's changed - fixed missing imports when using `$` ### [`v2.0.14`](https://togithub.com/chrishoermann/zod-prisma-types/releases/tag/v2.0.14): 2.0.14 [Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/9258e64d241ff285da47ff2b7b7fb007888e0f15...v2.0.14) \##What's changed - fixed ENOENT when runnint generator version 2.0.9 ### [`v2.0.13`](https://togithub.com/chrishoermann/zod-prisma-types/compare/9e7e56c0e1fc8c11d6619c2ff44ca45a1c518e16...9258e64d241ff285da47ff2b7b7fb007888e0f15) [Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/9e7e56c0e1fc8c11d6619c2ff44ca45a1c518e16...9258e64d241ff285da47ff2b7b7fb007888e0f15) ### [`v2.0.12`](https://togithub.com/chrishoermann/zod-prisma-types/compare/a3e5f512e29c11edda62717756d20995014a9755...9e7e56c0e1fc8c11d6619c2ff44ca45a1c518e16) [Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/a3e5f512e29c11edda62717756d20995014a9755...9e7e56c0e1fc8c11d6619c2ff44ca45a1c518e16) ### [`v2.0.11`](https://togithub.com/chrishoermann/zod-prisma-types/compare/ff163b3a855bb61748b0a1b9f51a9e91e4c1a44d...a3e5f512e29c11edda62717756d20995014a9755) [Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/ff163b3a855bb61748b0a1b9f51a9e91e4c1a44d...a3e5f512e29c11edda62717756d20995014a9755) ### [`v2.0.10`](https://togithub.com/chrishoermann/zod-prisma-types/compare/v2.0.9...ff163b3a855bb61748b0a1b9f51a9e91e4c1a44d) [Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/v2.0.9...ff163b3a855bb61748b0a1b9f51a9e91e4c1a44d) ### [`v2.0.9`](https://togithub.com/chrishoermann/zod-prisma-types/releases/tag/v2.0.9): 2.0.9 [Compare Source](https://togithub.com/chrishoermann/zod-prisma-types/compare/v2.0.8...v2.0.9) #### What's changed - added inferred types for models - [#​74](https://togithub.com/chrishoermann/zod-prisma-types/issues/74) - removed added `whereUniqueInput` refinement since it caused issues when using `createOrConnect` - [#​68](https://togithub.com/chrishoermann/zod-prisma-types/issues/68) - added option to add validators to `whereUniqueInput` fields - [#​34](https://togithub.com/chrishoermann/zod-prisma-types/issues/34) - fixed bug for imports that use `"$"` like in SvelteKit </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/weareinreach/InReach). PR-URL: #232 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This adds some helper types under
react-query/src/shared/polymorphism
, primarilyRouterLike<TProcedure>
,MutationLike<TProcedure>
andQueryLike<TProcedure>
, and documents a factory pattern for generating routes which share common functionality across several sub-routes.The goal is to provide a 1st class API for passing around a factory-built route to React components, so we can build generic components with a variable tRPC route. I'm referring to it as polymorphism but there might be a better name here.
Closes #3627
🎯 Changes
What changes are made in this PR? Is it a feature or a bug fix?
✅ Checklist