-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] next from trpc:next #2
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
Open
pull
wants to merge
618
commits into
Necmttn:next
Choose a base branch
from
trpc:next
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
β¦ll (#6144) fix(server/util): dangling event listener in `AbortSignal.any` ponyfill As suggested by KATT.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
β¦SourceOptions` (#6149)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Update server-components.mdx
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Misleading call to `query()` for getting data in server component
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Closes # * Add routeKey and routeFilter so that routes and single procedures can be invalidate entirely and with a nicer interface (no input needed) * Add infiniteQueryKey and infiniteQueryFilter * Make infinite methods only appear when there's a cursor (stolen the interface from old package) * Support getQueryKeyInternal without 2nd and 3rd param for route methods * Some refactoring to reduce complexity * Add suspense infinite query test since we were lacking that * Adds a useTRPCClient hook to get the typed vanilla client * Revamps testing for codemod to include more granular snapshot testing and also run spec files against the before/after ## π― Changes What changes are made in this PR? Is it a feature or a bug fix? <!-- Note: once you create a Pull request, we will automatically fix auto-fixable lint issues in your branch --> ## β Checklist - [ ] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md). - [ ] If necessary, I have added documentation related to the changes made. - [ ] I have added or updated the tests related to the changes made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new hook for accessing client functionality directly. - Added improved support for infinite queries and optimistic updates, providing smoother data-fetching experiences. - Enhanced query invalidation methods for better cache management. - Added new methods for handling path-based queries and filters. - **Refactor** - Standardized core API method names to better align with routing concepts. - Enhanced context management for clearer separation between client access and utility operations. - **Documentation** - Updated usage guides and migration instructions to reflect the new hooks and API changes. - Clarified documentation on new filtering capabilities and query management. - **Tests** - Expanded testing coverage to validate suspense queries, cache invalidation, and skip token behaviors. - Introduced new tests for optimistic updates and improved handling of query options. - Added tests for the new routing functionalities and query filter methods. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: juliusmarminge <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
## π― Changes There's a missing word, causing the sentence to not make sense. <!-- Note: once you create a Pull request, we will automatically fix auto-fixable lint issues in your branch --> ## β Checklist - [x] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md). - [x] If necessary, I have added documentation related to the changes made. - [x] I have added or updated the tests related to the changes made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated wording in the lazy loading example to improve clarity in the documentation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Nick Lucas <[email protected]>
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [next](https://nextjs.org) ([source](https://redirect.github.com/vercel/next.js)) | [`15.1.7` -> `15.2.0`](https://renovatebot.com/diffs/npm/next/15.1.7/15.2.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/next.js (next)</summary> ### [`v15.2.0`](https://redirect.github.com/vercel/next.js/compare/v15.1.7...v15.2.0) [Compare Source](https://redirect.github.com/vercel/next.js/compare/v15.1.7...v15.2.0) </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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Closes # ## π― Changes What changes are made in this PR? Is it a feature or a bug fix? <!-- Note: once you create a Pull request, we will automatically fix auto-fixable lint issues in your branch --> ## β Checklist - [ ] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md). - [ ] If necessary, I have added documentation related to the changes made. - [ ] I have added or updated the tests related to the changes made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new types for enhanced infinite data handling and error management. - Added a retry mechanism in Playwright configuration for improved test reliability. - **Refactor** - Updated type definitions for improved clarity and specificity in query and error handling. - **Tests** - Enhanced type safety in test cases for infinite query options, ensuring accurate data structure validation. - Improved error type validation in query tests for more robust error handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
β¦6569) Closes #6456 ## π― Changes Updated to use cookie-es to correctly handle the splitting safely for values with expiry. Also the initial test cases weren't actually valid cookies as they by minimum needed the = sign so updated them. ## β Checklist - [x] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md). - [x] If necessary, I have added documentation related to the changes made. - [x] I have added or updated the tests related to the changes made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced cookie handling now accurately extracts detailed attributes from HTTP cookie headersβincluding values, expiration dates, and domain settingsβto improve session management. - **Bug Fixes** - Addressed issues with parsing cookie header strings, ensuring cookies with complex formatting are consistently and correctly processed. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Closes #6558 ## π― Changes > The problem seems to be that you're creating the SSG helpers outside of the `getStaticProps()` so they will reshare the same `QueryClient` which means it will contain a pending `promise` which cannot be hydrated. > > `promise` wasn't a property in TanStack Query v4 > > I will make it be omitted _Originally posted by @KATT in [#6558](#6558 (comment) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced server-side data handling to ensure that only complete data is processed during static page generation, resulting in more reliable content display. - **Tests** - Expanded testing to verify that server-rendered pages consistently receive fully processed data, even when reusing the same rendering instance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.17.19` -> `20.17.21`](https://renovatebot.com/diffs/npm/@types%2fnode/20.17.19/20.17.21) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### 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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.17.21` -> `20.17.22`](https://renovatebot.com/diffs/npm/@types%2fnode/20.17.21/20.17.22) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### 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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Closes # ## π― Changes Bumps typescript to 5.8 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Upgraded the projectβs TypeScript dependency to version 5.8.2 across various modules, which may offer improved performance, reliability, and additional enhancements. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [valibot](https://valibot.dev) ([source](https://redirect.github.com/fabian-hiller/valibot)) | [`1.0.0-rc.2` -> `1.0.0-rc.3`](https://renovatebot.com/diffs/npm/valibot/1.0.0-rc.2/1.0.0-rc.3) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>fabian-hiller/valibot (valibot)</summary> ### [`v1.0.0-rc.3`](https://redirect.github.com/fabian-hiller/valibot/releases/tag/v1.0.0-rc.3) [Compare Source](https://redirect.github.com/fabian-hiller/valibot/compare/v1.0.0-rc.2...v1.0.0-rc.3) Many thanks to [@​andreww2012](https://redirect.github.com/andreww2012) for contributing to this release. - Change `_addIssue` to not ignore empty strings as error message (pull request [#​1065](https://redirect.github.com/fabian-hiller/valibot/issues/1065)) </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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Related to TanStack/query#8670 ## π― Changes What changes are made in this PR? Is it a feature or a bug fix? <!-- Note: once you create a Pull request, we will automatically fix auto-fixable lint issues in your branch --> ## β Checklist - [ ] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md). - [ ] If necessary, I have added documentation related to the changes made. - [ ] I have added or updated the tests related to the changes made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Upgraded the data query library to version 5.67.1 across the project. This update may deliver enhanced performance, improved stability, and bug fixes for a smoother user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.17.22` -> `20.17.23`](https://renovatebot.com/diffs/npm/@types%2fnode/20.17.22/20.17.23) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### 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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [next](https://nextjs.org) ([source](https://redirect.github.com/vercel/next.js)) | [`15.2.0` -> `15.2.1`](https://renovatebot.com/diffs/npm/next/15.2.0/15.2.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/next.js (next)</summary> ### [`v15.2.1`](https://redirect.github.com/vercel/next.js/compare/v15.2.0...633878112ef34fd569486c969261c3350509680d) [Compare Source](https://redirect.github.com/vercel/next.js/compare/v15.2.0...v15.2.1) </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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.17.23` -> `20.17.24`](https://renovatebot.com/diffs/npm/@types%2fnode/20.17.23/20.17.24) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### 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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Closes # ## π― Changes What changes are made in this PR? Is it a feature or a bug fix? <!-- Note: once you create a Pull request, we will automatically fix auto-fixable lint issues in your branch --> ## β Checklist - [ ] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md). - [ ] If necessary, I have added documentation related to the changes made. - [ ] I have added or updated the tests related to the changes made. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced data extraction now supports nested and complex query responses, offering more accurate and up-to-date information. - Improved state update mechanisms ensure that changes in data trigger refreshed views more reliably. - **Refactor** - Streamlined internal transformation logic to accommodate a broader range of data patterns, contributing to smoother component behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [next](https://nextjs.org) ([source](https://redirect.github.com/vercel/next.js)) | [`15.2.1` -> `15.2.2`](https://renovatebot.com/diffs/npm/next/15.2.1/15.2.2) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/next.js (next)</summary> ### [`v15.2.2`](https://redirect.github.com/vercel/next.js/compare/v15.2.1...f4552826e1ed15fbeb951be552d67c5a08ad0672) [Compare Source](https://redirect.github.com/vercel/next.js/compare/v15.2.1...v15.2.2) </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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOTQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE5NC4xIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [valibot](https://valibot.dev) ([source](https://redirect.github.com/fabian-hiller/valibot)) | [`1.0.0-rc.3` -> `1.0.0-rc.4`](https://renovatebot.com/diffs/npm/valibot/1.0.0-rc.3/1.0.0-rc.4) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>fabian-hiller/valibot (valibot)</summary> ### [`v1.0.0-rc.4`](https://redirect.github.com/fabian-hiller/valibot/releases/tag/v1.0.0-rc.4) [Compare Source](https://redirect.github.com/fabian-hiller/valibot/compare/v1.0.0-rc.3...v1.0.0-rc.4) Many thanks to [@​ssalbdivad](https://redirect.github.com/ssalbdivad), [@​matthew-dean](https://redirect.github.com/matthew-dean), [@​Dominic-Preap](https://redirect.github.com/Dominic-Preap), [@​emilesabatier](https://redirect.github.com/emilesabatier) and [@​tats-u](https://redirect.github.com/tats-u) for contributing to this release. - Change `RFC_EMAIL_REGEX` to exactly match HTML specification (pull request [#​1068](https://redirect.github.com/fabian-hiller/valibot/issues/1068)) - Change `ISO_DATE_TIME_REGEX` and `ISO_TIMESTAMP_REGEX` to support space as separator (pull request [#​1064](https://redirect.github.com/fabian-hiller/valibot/issues/1064)) - Change `forward`, `forwardCheck`, `partialCheck` and `partialCheckAsync` to improve TypeScript performance (issue [#​987](https://redirect.github.com/fabian-hiller/valibot/issues/987)) - Change pipe tuple of `pipe` and `pipeAsync` to be readonly by default </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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOTQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE5NC4xIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Streamlined the deployment configuration to support a new websockets example, updating the build and start commands for improved deployment consistency. - Enhanced deployment settings for the chat example, including a shift to Nixpacks, updated health check paths, and new runtime configurations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [bunchee](https://redirect.github.com/huozhi/bunchee) | [`6.4.0` -> `6.5.0`](https://renovatebot.com/diffs/npm/bunchee/6.4.0/6.5.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>huozhi/bunchee (bunchee)</summary> ### [`v6.5.0`](https://redirect.github.com/huozhi/bunchee/releases/tag/v6.5.0) [Compare Source](https://redirect.github.com/huozhi/bunchee/compare/v6.4.0...v6.5.0) ##### Enhancement - enhance: share common swc helpers chunk by [@​huozhi](https://redirect.github.com/huozhi) in [https://github.com/huozhi/bunchee/pull/665](https://redirect.github.com/huozhi/bunchee/pull/665) ##### Patches - fix: `prepare` append EOL to `package.json` by [@​SukkaW](https://redirect.github.com/SukkaW) in [https://github.com/huozhi/bunchee/pull/664](https://redirect.github.com/huozhi/bunchee/pull/664) - fix: prepare overriding conditions by [@​huozhi](https://redirect.github.com/huozhi) in [https://github.com/huozhi/bunchee/pull/668](https://redirect.github.com/huozhi/bunchee/pull/668) **Full Changelog**: huozhi/bunchee@v6.4.0...v6.5.0 </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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM5LjIwMC4wIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [valibot](https://valibot.dev) ([source](https://redirect.github.com/fabian-hiller/valibot)) | [`1.0.0-rc.4` -> `1.0.0`](https://renovatebot.com/diffs/npm/valibot/1.0.0-rc.4/1.0.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>fabian-hiller/valibot (valibot)</summary> ### [`v1.0.0`](https://redirect.github.com/fabian-hiller/valibot/releases/tag/v1.0.0) [Compare Source](https://redirect.github.com/fabian-hiller/valibot/compare/v1.0.0-rc.4...v1.0.0) This is a summary of the changes between v0 and v1. Many thanks to everyone who contributed to this release. - Add `assert` method to assert values (issue [#​862](https://redirect.github.com/fabian-hiller/valibot/issues/862)) - Add `checkItemsAsync` action (pull request [#​856](https://redirect.github.com/fabian-hiller/valibot/issues/856)) - Add `graphemes`, `maxGraphemes`, `minGraphemes` and `notGraphemes` action (pull request [#​853](https://redirect.github.com/fabian-hiller/valibot/issues/853)) - Add `words`, `maxWords`, `minWords` and `notWords` action - Add `args` and `returns` action to transform functions (issue [#​243](https://redirect.github.com/fabian-hiller/valibot/issues/243)) - Add `rfcEmail` action to validate RFC 5322 email addresses (pull request [#​912](https://redirect.github.com/fabian-hiller/valibot/issues/912)) - Add `gtValue` and `ltValue` action for greater than and less than validation (pull request [#​978](https://redirect.github.com/fabian-hiller/valibot/issues/978), [#​985](https://redirect.github.com/fabian-hiller/valibot/issues/985)) - Add `values` and `notValues` action for easier multi-value validation (pull request [#​919](https://redirect.github.com/fabian-hiller/valibot/issues/919)) - Add `slug` action to validate URL slugs (pull request [#​910](https://redirect.github.com/fabian-hiller/valibot/issues/910)) - Add support for `ReadonlyMap` and `ReadonlySet` to `readonly` action (issue [#​1059](https://redirect.github.com/fabian-hiller/valibot/issues/1059)) - Add `entriesFromObjects` util to improve tree shaking (pull request [#​1023](https://redirect.github.com/fabian-hiller/valibot/issues/1023)) - Add new overload signature to `pipe` and `pipeAync` method to support unlimited pipe items of same input and output type (issue [#​852](https://redirect.github.com/fabian-hiller/valibot/issues/852)) - Add `@__NO_SIDE_EFFECTS__` notation to improve tree shaking (pull request [#​995](https://redirect.github.com/fabian-hiller/valibot/issues/995)) - Add `exactOptional` and `exactOptionalAsync` schema (PR [#​1013](https://redirect.github.com/fabian-hiller/valibot/issues/1013)) - Change types and implementation to support Standard Schema - Change behaviour of `minValue` and `maxValue` for `NaN` (pull request [#​843](https://redirect.github.com/fabian-hiller/valibot/issues/843)) - Change type and behaviour of `nullable`, `nullableAsync`, `nullish`, `nullishAsync`, `optional`, `optionalAsync`, `undefinedable` and `undefinedableAsync` for undefined default value (issue [#​878](https://redirect.github.com/fabian-hiller/valibot/issues/878)) - Change type signature of `partialCheck` and `partialCheckAsync` action to add `.pathList` property in a type-safe way - Change type signature of `findItem` action to support type predicates (issue [#​867](https://redirect.github.com/fabian-hiller/valibot/issues/867)) - Change validation of missing object entries in `looseObject`, `looseObjectAsync`, `object`, `objectAsync`, `objectWithRest`, `objectWithRestAsync`, `strictObject` and `strictObject` (PR [#​1013](https://redirect.github.com/fabian-hiller/valibot/issues/1013)) - Change type signature of `optional` and `optionalAsync` when used within an object schema (PR [#​1013](https://redirect.github.com/fabian-hiller/valibot/issues/1013)) - Change `MarkOptional` type to fix order of entries and TS error when using generic schemas (issue [#​1021](https://redirect.github.com/fabian-hiller/valibot/issues/1021)) - Change `VariantOption` and `VariantOptionAsync` type to fix TS error when using generic schemas (issue [#​842](https://redirect.github.com/fabian-hiller/valibot/issues/842)) - Change implementation of `variant` and `variantAsync` to support optional discriminators using `exactOptional`, `exactOptionalAsync`, `optional`, `optionalAsync`, `nullish` or `nullishAsync` - Change `_addIssue` to not ignore empty strings as error message (pull request [#​1065](https://redirect.github.com/fabian-hiller/valibot/issues/1065)) - Change `ISO_DATE_TIME_REGEX` and `ISO_TIMESTAMP_REGEX` to support space as separator (pull request [#​1064](https://redirect.github.com/fabian-hiller/valibot/issues/1064)) - Change pipe tuple of `pipe` and `pipeAsync` to be readonly by default - Change `forward`, `forwardCheck`, `partialCheck` and `partialCheckAsync` to improve TypeScript performance (issue [#​987](https://redirect.github.com/fabian-hiller/valibot/issues/987)) - Change `DECIMAL_REGEX` to support floats that start with a dot (pull request [#​1086](https://redirect.github.com/fabian-hiller/valibot/issues/1086)) - Change exports to export only public types to reduce noise - Refactor `bytes`, `maxBytes`, `minBytes` and `notBytes` action - Fix implementation of `nonOptional`, `nonOptionalAsync`, `nonNullable`, `nonNullableAsync`, `nonNullish` and `nonNullishAsync` schema in edge cases (issue [#​909](https://redirect.github.com/fabian-hiller/valibot/issues/909)) - Fix instantiation error for `any` in `PathKeys` type (issue [#​929](https://redirect.github.com/fabian-hiller/valibot/issues/929)) - Fix TypeScript error of `keyof` method for objects with many keys (pull request [#​988](https://redirect.github.com/fabian-hiller/valibot/issues/988)) - Fix options filtering in `enum_` schema (pull request [#​941](https://redirect.github.com/fabian-hiller/valibot/issues/941)) - Fix `partialCheck` and `partialCheckAsync` action for typed data with issues </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. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/trpc/trpc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Closes #6110 ## π― Changes - Fixes so we use the right generic when concating - Remove `unstable_`-prefix
# Add `waitFor` import restriction ## Description Adds an ESLint rule to prevent importing `waitFor` from `@testing-library/dom` and `@testing-library/react`, enforcing the use of `vi.waitFor` instead. ## Motivation When using fake timers in tests, the `waitFor` utility from Testing Library doesn't work correctly because it uses real timers internally. Using `vi.waitFor` from Vitest ensures proper functionality with fake timers, leading to more reliable tests. ## Changes - Added ESLint import restriction for `waitFor` from Testing Library packages - Added explanatory message directing developers to use `vi.waitFor` instead <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Enhanced linting guidelines to enforce best practices for asynchronous testing. - Updated configuration dependencies to align with recent tooling adjustments, ensuring smoother integration and improved development reliability. - Replaced `waitFor` function from `@testing-library/react` with `vi.waitFor` across various test cases to improve asynchronous operation handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Closes # ## π― Changes Effect example was out of date, referred to `@effect/schema` which is deprecated, and doesn't use the new `standardSchemaV1` helper which I think is better than the `decodeUnknownSync` that's there currently <!-- Note: once you create a Pull request, we will automatically fix auto-fixable lint issues in your branch --> ## β Checklist - [x] I have followed the steps listed in the [Contributing guide](https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md). - [x] If necessary, I have added documentation related to the changes made. - [ ] I have added or updated the tests related to the changes made. (hmm maybe should check for tests too? I ran this on my own repo manually) Note: Should probably explicitly mention standard-schema elsewhere, but thought this small change is worth doing either way. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Upgraded the data validation process to ensure more consistent and robust handling of inputs and outputs. - **Chore** - Streamlined internal dependency integration to improve overall backend reliability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? π Please sponsor : )