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

fix(deps): update all non-major dependencies #248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 7, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@ant-design/icons (source) 5.5.1 -> 5.5.2 age adoption passing confidence
@ant-design/plots 2.3.2 -> 2.3.3 age adoption passing confidence
@ant-design/pro-components (source) 2.7.19 -> 2.8.3 age adoption passing confidence
@ant-design/pro-skeleton (source) 2.1.13 -> 2.2.1 age adoption passing confidence
@reduxjs/toolkit (source) 2.2.8 -> 2.5.0 age adoption passing confidence
@testing-library/jest-dom 6.5.0 -> 6.6.3 age adoption passing confidence
@types/mapbox-gl (source) 3.4.0 -> 3.4.1 age adoption passing confidence
@types/react (source) 18.3.11 -> 18.3.18 age adoption passing confidence
@types/react-dom (source) 18.3.0 -> 18.3.5 age adoption passing confidence
@vitejs/plugin-react-swc 3.7.1 -> 3.7.2 age adoption passing confidence
antd (source) 5.21.3 -> 5.23.0 age adoption passing confidence
antd-img-crop 4.23.0 -> 4.24.0 age adoption passing confidence
apexcharts (source) 3.54.0 -> 3.54.1 age adoption passing confidence
axios (source) 1.7.7 -> 1.7.9 age adoption passing confidence
dotenv 16.4.5 -> 16.4.7 age adoption passing confidence
eslint (source) 9.12.0 -> 9.17.0 age adoption passing confidence
eslint-plugin-react-refresh 0.4.12 -> 0.4.16 age adoption passing confidence
less (source) 4.2.0 -> 4.2.1 age adoption passing confidence
mapbox-gl 3.7.0 -> 3.9.2 age adoption passing confidence
react-apexcharts 1.4.1 -> 1.7.0 age adoption passing confidence
react-redux 9.1.2 -> 9.2.0 age adoption passing confidence
react-router-dom (source) 6.26.2 -> 6.28.1 age adoption passing confidence
socket.io-client (source) 4.8.0 -> 4.8.1 age adoption passing confidence
styled-components (source) 6.1.13 -> 6.1.14 age adoption passing confidence
typescript (source) 5.6.3 -> 5.7.2 age adoption passing confidence
vite (source) 5.4.8 -> 5.4.11 age adoption passing confidence

Release Notes

ant-design/pro-components (@​ant-design/pro-components)

v2.8.3

Compare Source

v2.8.2

Compare Source

v2.8.1

Compare Source

v2.8.0

Compare Source

  • fix(components):修复 ts 定义导致列名获取不到的问题 (#​8795). #​8795 @​qnnp-me
  • fix(form): field 为 checkbox 时设置了 fieldNames 后控制器报错的问题 React does not recognize the fieldNames prop on a DOM element (#​8785). #​8785 @​echoyl
reduxjs/redux-toolkit (@​reduxjs/toolkit)

v2.5.0

Compare Source

This feature release updates the React peer dependency to work with React 19, and fixes an additional skip token issue.

Changelog

React 19 Compat

React 19 was just released! We've updated our peer dep to accept React 19, and updated our runtime and type tests to check against both React 18 and 19.

Also see React-Redux v9.2.0 for the same peer dep update.

Other Fixes

We previously fixed an issue with the RTKQ core where serializeQueryArgs callbacks could be called with skipToken, potentially leading to errors. We've fixed an additional location in the useQuery hooks where that could happen as well.

What's Changed

Full Changelog: reduxjs/redux-toolkit@v2.4.0...v2.5.0

v2.4.0

Compare Source

This feature release includes multiple tweaks and fixes to RTK Query functionality, additional exported TS types, and drops support for TS versions earlier than 5.0.

Changelog

RTK Query Improvements

Lazy query hooks can now be reset.

retry.fail now accepts meta as a second argument.

Tag invalidation arrays now ignore nullish values.

We did some small internal refactoring around Maps and default values that shrank bundle size slightly.

Bugfixes

Passing skipToken to a query hook now bails out before running any other logic, which fixes cases where serializeQueryArgs previously threw an error because there were no args to process.

The autoBatchEnhancer now reads window.requestAnimationFrame later, which it to work properly with Jest fake timers.

We fixed cases where the hook result isSuccess flag would briefly flicker to false when switched to a different cache entry that was uninitialized, and would briefly flicker to true when refetching a query that previously errored.

The listener middleware previously had inconsistent logic checks for comparing against existing listener entries (effect + type, vs effect only). It now always checks both effect + type.

Additional TS Types

We now export Typed[Query|Mutation]OnQueryStarted helpers to let you define onQueryStarted callbacks outside of createApi if desired.

We also now export a CreateAsyncThunkFunction type that can be used to type userland wrappers around createAsyncThunk.

TS Support Matrix Updates

We've historically tried to maintain TS backwards compatibility as long as possible, and made occasional updates to our TS support matrix in minor versions over time. As of RTK 2.3.0, we officially supported back through TS 4.7.

As of this release, we're tweaking that support policy to match the policy used by DefinitelyTyped:

Definitely Typed only tests packages on versions of TypeScript that are less than 2 years old
image

Given that, we've dropped official support for TS versions earlier than 5.0. (RTK may work with those versions, but we no longer test against them and won't try to fix issues with those versions.)

We'll continue to update our TS support matrix over time based on that 2-year rolling window.

What's Changed

Full Changelog: reduxjs/redux-toolkit@v2.3.0...v2.4.0

v2.3.0

Compare Source

This feature release adds a new RTK Query upsertQueryEntries util to batch-upsert cache entries more efficiently, passes through additional values for use in prepareHeaders, and exports additional TS types around query options and selectors.

Changelog

upsertQueryEntries

RTK Query already had an upsertQueryData thunk that would upsert a single cache entry. However, some users wanted to upsert many cache entries (potentially hundreds or thousands), and found that upsertQueryData had poor performance in those cases. This is because upsertQueryData runs the full async request handling sequence, including dispatching both pending and fulfilled actions, each of which run the main reducer and update store subscribers. That means there's 2N store / UI updates per item, so upserting hundreds of items becomes extremely perf-intensive.

RTK Query now includes an api.util.upsertQueryEntries action that is meant to handle the batched upsert use case more efficiently. It's a single synchronous action that accepts an array of many {endpointName, arg, value} entries to upsert. This results in a single store update, making this vastly better for performance vs many individual upsertQueryData calls.

We see this as having two main use cases. The first is prefilling the cache with data retrieved from storage on app startup (and it's worth noting that upsertQueryEntries can accept entries for many different endpoints as part of the same array).

The second is to act as a "pseudo-normalization" tool. RTK Query is not a "normalized" cache. However, there are times when you may want to prefill other cache entries with the contents of another endpoint, such as taking the results of a getPosts list endpoint response and prefilling the individual getPost(id) endpoint cache entries, so that components that reference an individual item endpoint already have that data available.

Currently, you can implement the "pseudo-normalization" approach by dispatching upsertQueryEntries in an endpoint lifecycle, like this:

const api = createApi({
  endpoints: (build) => ({
    getPosts: build.query<Post[], void>({
      query: () => '/posts',
      async onQueryStarted(_, { dispatch, queryFulfilled }) {
        const res = await queryFulfilled
        const posts = res.data

        // Pre-fill the individual post entries with the results
        // from the list endpoint query
        dispatch(
          api.util.upsertQueryEntries(
            posts.map((post) => ({
              endpointName: 'getPost',
              arg: { id: post.id },
              value: post,
            })),
          ),
        )
      },
    }),
    getPost: build.query<Post, Pick<Post, 'id'>>({
      query: (post) => `post/${post.id}`,
    }),
  }),
})

Down the road we may add a new option to query endpoints that would let you provide the mapping function and have it automatically update the corresponding entries.

For additional comparisons between upsertQueryData and upsertQueryEntries, see the upsertQueryEntries API reference.

prepareHeaders Options

The prepareHeaders callback for fetchBaseQuery now receives two additional values in the api argument:

  • arg: the URL string or FetchArgs object that was passed in to fetchBaseQuery for this endpoint
  • extraOptions: any extra options that were provided to the base query
Additional TS Types

We've added a TypedQueryStateSelector type that can be used to pre-type selectors for use with selectFromResult:

const typedSelectFromResult: TypedQueryStateSelector<
  PostsApiResponse,
  QueryArgument,
  BaseQueryFunction,
  SelectedResult
> = (state) => ({ posts: state.data?.posts ?? EMPTY_ARRAY })

function PostsList() {
  const { posts } = useGetPostsQuery(undefined, {
    selectFromResult: typedSelectFromResult,
  })
}

We've also exported several additional TS types around base queries and tag definitions.

What's Changed

Full Changelog: reduxjs/redux-toolkit@v2.2.8...v2.3.0

testing-library/jest-dom (@​testing-library/jest-dom)

v6.6.3

Compare Source

v6.6.2

Compare Source

Bug Fixes

v6.6.1

Compare Source

v6.6.0

Compare Source

vitejs/vite-plugin-react-swc (@​vitejs/plugin-react-swc)

v3.7.2

Compare Source

Add Vite 6 to peerDependencies range #​207

Thanks @​RobinTail

Revert throw when refresh runtime is loaded twice #​237

Revert the throw when refresh runtime is loaded twice to enable usage in micro frontend apps. This was added to help fix setup usage, and this is not worth an annoying warning for others or a config parameter.

This revert was done in the Babel plugin last year and I didn't port it back.

ant-design/ant-design (antd)

v5.23.0

Compare Source


v5.22.7

Compare Source


v5.22.6

Compare Source


  • 🐞 修复 Button 有图标和无图标按钮对齐差一像素的问题。#​52070
  • 🐞 修复 Splitter 组件折叠图标 z-index 层级过低问题。#​52065 @​wanpan11
  • 🐞 修复 Button 启用 loading 时,动画不够顺滑的问题。#​52059 @​zombieJ
  • 🐞 修复 Button 暗色模式下默认填充按钮文本在悬停时消失的问题。#​52024 @​DDDDD12138

v5.22.5

Compare Source

  • 🛠 Refactor Wave/Menu/Form ref check logic to resolve React 19 ref conflict (Note, this is not finally support React 19 but we will resolve step by step in future version). #​51952 @​zombieJ
  • 🐞 Fix Dropdown cannot accept ReactNode as children. #​50174 @​coding-ice
  • 🐞 Fix Carousel cannot display correctly in Modal without icon. #​51988 @​quan060798
  • 🐞 Fix Select label overflow issue. #​52011 @​OysterD3
  • 🐞 Fix Form setFieldValue not reset field validation. #​51993 @​zombieJ
  • 🐞 Fix Pagination with setting showSizeChanger.showSearch not working. #​51962 @​zombieJ
  • 🇰🇷 Improve Korean locales for DatePicker. [#​51983](ht

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 becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/npm-all-minor-patch branch 6 times, most recently from b1ac4f1 to 1397b3b Compare November 15, 2024 18:03
@renovate renovate bot force-pushed the renovate/npm-all-minor-patch branch 3 times, most recently from e11d5de to 7c537e5 Compare November 22, 2024 18:59
@renovate renovate bot force-pushed the renovate/npm-all-minor-patch branch 8 times, most recently from abb20e4 to 352388f Compare December 2, 2024 14:38
@renovate renovate bot force-pushed the renovate/npm-all-minor-patch branch 7 times, most recently from f269a7b to 94f9644 Compare December 9, 2024 20:20
@renovate renovate bot force-pushed the renovate/npm-all-minor-patch branch 5 times, most recently from e702c6c to c494936 Compare December 16, 2024 13:04
@renovate renovate bot force-pushed the renovate/npm-all-minor-patch branch 4 times, most recently from 425988c to 043f713 Compare December 23, 2024 13:00
@renovate renovate bot force-pushed the renovate/npm-all-minor-patch branch 2 times, most recently from be330d2 to c5db75c Compare January 2, 2025 09:38
@renovate renovate bot force-pushed the renovate/npm-all-minor-patch branch 3 times, most recently from 82c8c61 to f352adb Compare January 6, 2025 09:43
@renovate renovate bot force-pushed the renovate/npm-all-minor-patch branch from f352adb to ee73de8 Compare January 6, 2025 13:06
Copy link

sonarqubecloud bot commented Jan 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant