Skip to content
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

Bump the production-dependencies group with 4 updates #1222

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 1, 2025

Bumps the production-dependencies group with 4 updates: @connectrpc/connect, @connectrpc/connect-web, @reduxjs/toolkit and antd.

Updates @connectrpc/connect from 2.0.1 to 2.0.2

Release notes

Sourced from @​connectrpc/connect's releases.

v2.0.2

What's Changed

Full Changelog: connectrpc/connect-es@v2.0.1...v2.0.2

Commits

Updates @connectrpc/connect-web from 2.0.1 to 2.0.2

Release notes

Sourced from @​connectrpc/connect-web's releases.

v2.0.2

What's Changed

Full Changelog: connectrpc/connect-es@v2.0.1...v2.0.2

Commits

Updates @reduxjs/toolkit from 2.5.1 to 2.6.0

Release notes

Sourced from @​reduxjs/toolkit's releases.

v2.6.0

This feature release adds infinite query support to RTK Query.

Changelog

RTK Query Infinite Query support

Since we first released RTK Query in 2021, we've had users asking us to add support for "infinite queries" - the ability to keep fetching additional pages of data for a given endpoint. It's been by far our most requested feature. Until recently, our answer was that we felt there were too many use cases to support with a single API design approach.

Last year, we revisited this concept and concluded that the best approach was to mimic the flexible infinite query API design from React Query. We had additional discussions with @​tkdodo , who described the rationale and implementation approach and encouraged us to use their API design, and @​riqts provided an initial implementation on top of RTKQ's existing internals.

We're excited to announce that this release officially adds full infinite query endpoint support to RTK Query!

Using Infinite Queries

As with React Query, the API design is based around "page param" values that act as the query arguments for fetching a specific page for the given cache entry.

Infinite queries are defined with a new build.infiniteQuery() endpoint type. It accepts all of the same options as normal query endpoints, but also needs an additional infiniteQueryOptions field that specifies the infinite query behaviors. With TypeScript, you must supply 3 generic arguments: build.infiniteQuery<ResultType, QueryArg, PageParam>, where ResultType is the contents of a single page, QueryArg is the type passed in as the cache key, and PageParam is the value used to request a specific page.

The endpoint must define an initialPageParam value that will be used as the default (and can be overridden if desired). It also needs a getNextPageParam callback that will calculate the params for each page based on the existing values, and optionally a getPreviousPageParam callback if reverse fetching is needed. Finally, a maxPages option can be provided to limit the entry cache size.

The query and queryFn methods now receive a {queryArg, pageParam} object, instead of just the queryArg.

For the cache entries and hooks, the data field is now an object like {pages: ResultType[], pageParams: PageParam[]>. This gives you flexibility in how you use the data for rendering.

const pokemonApi = createApi({
  baseQuery: fetchBaseQuery({ baseUrl: 'https://example.com/pokemon' }),
  endpoints: (build) => ({
    // 3 TS generics: page contents, query arg, page param
    getInfinitePokemonWithMax: build.infiniteQuery<Pokemon[], string, number>({
      infiniteQueryOptions: {
        // Must provide a default initial page param value
        initialPageParam: 1,
        // Optionally limit the number of cached pages
        maxPages: 3,
        // Must provide a `getNextPageParam` function
        getNextPageParam: (lastPage, allPages, lastPageParam, allPageParams) =>
          lastPageParam + 1,
        // Optionally provide a `getPreviousPageParam` function
        getPreviousPageParam: (
          firstPage,
          allPages,
          firstPageParam,
          allPageParams,
        ) => {
          return firstPageParam > 0 ? firstPageParam - 1 : undefined
        },
      },
      // The `query` function receives `{queryArg, pageParam}` as its argument
</tr></table> 

... (truncated)

Commits
  • 18ddd7e Release 2.6.0
  • 09e1466 RTKQ Infinite Query integration (#4738)
  • 7897c4c Merge pull request #4847 from Tasin5541/doc-lazy-query-reset
  • cdb264f doc: update type definitions for lazy query hooks to include reset method
  • See full diff in compare view

Updates antd from 5.24.1 to 5.24.2

Release notes

Sourced from antd's releases.

5.24.2

  • Input
    • 🐞 Fix Input with component token inputFontSize breaks the height of controlHeight. #52865 @​zombieJ
    • 🐞 Fix Input.Search has a border that is not aligned with the bottom of the search button when configure variable as underlined. #52861 @​ustcfury
    • 🛠 Improve Input.OTP logic for create default state. #52878 @​Dandelion-F
    • 🛠 Improve Input.OTP implementation for render separator. #52841 @​li-jia-nan
  • Watermark
    • 🐞 Fix Watermark may cause page unresponsive when re-rendering. #52897 @​765477020
    • 🆕 Improve Watermark rendering logic to avoid disable it via developer tools and hidden attribute. #52891 @​arronlai
  • 🐞 Fix DatePicker.RangePicker arrow position not correctly when sometime reopened. #52854 @​zombieJ
  • 🐞 Fix Layout.Sider content overflow issue when collapsedWidth={0}. #52862 @​afc163
  • 🛠 Refactor Grid internal useBreakpoint logic to be same as other component, this will not affect usage. #52870 @​zombieJ
  • 💄 Fix Button styles for hyperlink mode. #52888 @​DDDDD12138
  • 💄 Fix Table sortable column headers could not wrap automatically. #52899 @​765477020
  • ⚡️ Improve Menu re-rendering performance when pass function to expandIcon property. #52863 @​wanpan11
  • ⚡️ Improve Carousel indicator animation performance. #52881 @​li-jia-nan
  • RTL

  • Input
    • 🐞 修复 Input 配置 inputFontSize component token 时,controlHeight 会不生效的问题。#52865 @​zombieJ
    • 🐞 修复 Input.Search 在设置 variantunderlined 时下边框与搜索按钮底部没对齐的问题。#52861 @​ustcfury
    • 🛠 优化 Input.OTP 的默认状态创建逻辑。#52878 @​Dandelion-F
    • 🛠 优化 Input.OTP 的分隔符渲染实现。#52841 @​li-jia-nan
  • Watermark
    • 🐞 修复 Watermark 重新渲染时可能导致页面卡死的问题。#52897 @​765477020
    • 🆕 调整 Watermark 渲染逻辑,防止通过开发者工具添加 hidden 属性来去掉水印。#52891 @​arronlai
  • 🐞 修复 DatePicker.RangePicker 在弹层重新打开的时候,有可能出现箭头位置不正确的问题。#52854 @​zombieJ
  • 🐞 修复 Layout.Sider 当 collapsedWidth={0} 时的内容溢出的问题。#52862 @​afc163
  • 🛠 重构 Grid 内部响应式逻辑以复用其他组件类似的逻辑,该更新不会于使用上有所变化。#52870 @​zombieJ
  • 💄 修复 Button 超链接模式的样式。#52888 @​DDDDD12138
  • 💄 修复 Table 可排序列头不自动换行的问题。#52899 @​765477020
  • ⚡️ 优化 Menu 在 expandIcon 属性传入函数时重新渲染的性能。#52863 @​wanpan11
  • ⚡️ 优化 Carousel 指示器的动画性能。#52881 @​li-jia-nan
  • RTL
Changelog

Sourced from antd's changelog.

5.24.2

2025-02-24

  • Input
    • 🐞 Fix Input with component token inputFontSize breaks the height of controlHeight. #52865 @​zombieJ
    • 🐞 Fix Input.Search has a border that is not aligned with the bottom of the search button when configure variable as underlined. #52861 @​ustcfury
    • 🛠 Improve Input.OTP logic for create default state. #52878 @​Dandelion-F
    • 🛠 Improve Input.OTP implementation for render separator. #52841 @​li-jia-nan
  • Watermark
    • 🐞 Fix Watermark may cause page unresponsive when re-rendering. #52897 @​765477020
    • 🆕 Improve Watermark rendering logic to avoid disable it via developer tools and hidden attribute. #52891 @​arronlai
  • 🐞 Fix DatePicker.RangePicker arrow position not correctly when sometime reopened. #52854 @​zombieJ
  • 🐞 Fix Layout.Sider content overflow issue when collapsedWidth={0}. #52862 @​afc163
  • 🛠 Refactor Grid internal useBreakpoint logic to be same as other component, this will not affect usage. #52870 @​zombieJ
  • 💄 Fix Button styles for hyperlink mode. #52888 @​DDDDD12138
  • 💄 Fix Table sortable column headers could not wrap automatically. #52899 @​765477020
  • ⚡️ Improve Menu re-rendering performance when pass function to expandIcon property. #52863 @​wanpan11
  • ⚡️ Improve Carousel indicator animation performance. #52881 @​li-jia-nan
  • RTL
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the production-dependencies group with 4 updates: [@connectrpc/connect](https://github.com/connectrpc/connect-es/tree/HEAD/packages/connect), [@connectrpc/connect-web](https://github.com/connectrpc/connect-es/tree/HEAD/packages/connect-web), [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) and [antd](https://github.com/ant-design/ant-design).


Updates `@connectrpc/connect` from 2.0.1 to 2.0.2
- [Release notes](https://github.com/connectrpc/connect-es/releases)
- [Commits](https://github.com/connectrpc/connect-es/commits/v2.0.2/packages/connect)

Updates `@connectrpc/connect-web` from 2.0.1 to 2.0.2
- [Release notes](https://github.com/connectrpc/connect-es/releases)
- [Commits](https://github.com/connectrpc/connect-es/commits/v2.0.2/packages/connect-web)

Updates `@reduxjs/toolkit` from 2.5.1 to 2.6.0
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](reduxjs/redux-toolkit@v2.5.1...v2.6.0)

Updates `antd` from 5.24.1 to 5.24.2
- [Release notes](https://github.com/ant-design/ant-design/releases)
- [Changelog](https://github.com/ant-design/ant-design/blob/master/CHANGELOG.en-US.md)
- [Commits](ant-design/ant-design@5.24.1...5.24.2)

---
updated-dependencies:
- dependency-name: "@connectrpc/connect"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@connectrpc/connect-web"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@reduxjs/toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: antd
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependency javascript Pull requests that update Javascript code labels Mar 1, 2025
@mpapenbr mpapenbr merged commit 514ecc0 into main Mar 1, 2025
3 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/production-dependencies-96ad539235 branch March 1, 2025 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant