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:
// 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.
This release marks the beta release of the @sentry/nuxt Sentry SDK. For details on how to use it, check out the
Sentry Nuxt SDK README. Please reach out on
GitHub if you have any feedback or concerns.
feat(nuxt): Make dynamic import() wrapping default (#13958) (BREAKING)
feat(nuxt): Add Rollup plugin to wrap server entry with import() (#13945)
It is no longer required to add a Node --import flag. Please update your start command to avoid initializing Sentry
twice (BREAKING CHANGE). The SDK will now apply modifications during the build of your application to allow for
patching of libraries during runtime. If run into issues with this change, you can disable this behavior in your
nuxt.config.ts and use the --import flag instead:
We now require you to explicitly enable sourcemaps for the clientside so that Sentry can un-minify your errors. We made
this change so source maps aren't accidentally leaked to the public. Enable source maps on the client as follows:
This release marks the beta release of the @sentry/nuxt Sentry SDK. For details on how to use it, check out the
Sentry Nuxt SDK README. Please reach out on
GitHub if you have any feedback or concerns.
feat(nuxt): Make dynamic import() wrapping default
(#13958) (BREAKING)
feat(nuxt): Add Rollup plugin to wrap server entry with import()
(#13945)
It is no longer required to add a Node --import flag. Please update your start command to avoid initializing Sentry
twice (BREAKING CHANGE). The SDK will now apply modifications during the build of your application to allow for
patching of libraries during runtime. If run into issues with this change, you can disable this behavior in your
nuxt.config.ts and use the --import flag instead:
We now require you to explicitly enable sourcemaps for the clientside so that Sentry can un-minify your errors. We made
this change so source maps aren't accidentally leaked to the public. Enable source maps on the client as follows:
Bumps the safe group with 36 updates in the / directory:
6.12.5
6.15.0
6.6.8
6.7.0
7.5.7
7.6.0
4.0.0
4.1.0
8.10.3
8.13.0
5.2.14
5.2.17
11.2.14
11.3.0
2.2.7
2.3.0
8.32.0
8.35.0
3.54.0
3.54.1
9.1.0
9.1.1
6.7.0
6.8.1
7.25.6
7.25.7
7.25.2
7.25.8
7.25.1
7.25.8
7.24.7
7.25.7
7.25.4
7.25.7
7.24.7
7.25.7
7.24.7
7.25.7
7.25.4
7.25.8
7.24.7
7.25.7
7.24.6
7.25.7
7.25.6
7.25.7
8.3.4
8.3.6
8.3.4
8.3.6
8.3.4
8.3.6
8.3.4
8.3.6
8.3.4
8.3.6
8.3.4
8.3.6
2.30.0
2.31.0
50.3.0
50.4.3
7.37.0
7.37.1
5.6.0
5.6.2
3.0.2
3.0.3
16.9.0
16.10.0
0.63.0
0.64.0
Updates
@formatjs/intl-datetimeformat
from 6.12.5 to 6.15.0Release notes
Sourced from
@formatjs/intl-datetimeformat
's releases.Commits
d1003ad
build: publishfbb2bbf
feat: upgrade cldr to v45 (#4620)a7dd645
chore: dep++ce1e814
fix(deps): update dependency@types/picomatch
to v3 (#4618)80f8055
fix(deps): update dependency@types/node
to v20 (#4617)5139c3b
chore(deps): update lerna-lite monorepo to v3 (major) (#4615)43aa2c0
chore(deps): update dependency pnpm to v9 (#4614)69b3a65
chore(deps): update dependency husky to v9 (#4612)6c46789
chore(deps): update dependency typescript to v5.6.3 (#4613)2793863
chore(deps): update commitlint monorepo to v19 (major) (#4592)Updates
@formatjs/intl-displaynames
from 6.6.8 to 6.7.0Release notes
Sourced from
@formatjs/intl-displaynames
's releases.Commits
d1003ad
build: publishfbb2bbf
feat: upgrade cldr to v45 (#4620)a7dd645
chore: dep++ce1e814
fix(deps): update dependency@types/picomatch
to v3 (#4618)80f8055
fix(deps): update dependency@types/node
to v20 (#4617)5139c3b
chore(deps): update lerna-lite monorepo to v3 (major) (#4615)43aa2c0
chore(deps): update dependency pnpm to v9 (#4614)69b3a65
chore(deps): update dependency husky to v9 (#4612)6c46789
chore(deps): update dependency typescript to v5.6.3 (#4613)2793863
chore(deps): update commitlint monorepo to v19 (major) (#4592)Updates
@formatjs/intl-listformat
from 7.5.7 to 7.6.0Release notes
Sourced from
@formatjs/intl-listformat
's releases.Commits
d1003ad
build: publishfbb2bbf
feat: upgrade cldr to v45 (#4620)a7dd645
chore: dep++ce1e814
fix(deps): update dependency@types/picomatch
to v3 (#4618)80f8055
fix(deps): update dependency@types/node
to v20 (#4617)5139c3b
chore(deps): update lerna-lite monorepo to v3 (major) (#4615)43aa2c0
chore(deps): update dependency pnpm to v9 (#4614)69b3a65
chore(deps): update dependency husky to v9 (#4612)6c46789
chore(deps): update dependency typescript to v5.6.3 (#4613)2793863
chore(deps): update commitlint monorepo to v19 (major) (#4592)Updates
@formatjs/intl-locale
from 4.0.0 to 4.1.0Release notes
Sourced from
@formatjs/intl-locale
's releases.Commits
d1003ad
build: publishfbb2bbf
feat: upgrade cldr to v45 (#4620)a7dd645
chore: dep++ce1e814
fix(deps): update dependency@types/picomatch
to v3 (#4618)80f8055
fix(deps): update dependency@types/node
to v20 (#4617)5139c3b
chore(deps): update lerna-lite monorepo to v3 (major) (#4615)43aa2c0
chore(deps): update dependency pnpm to v9 (#4614)69b3a65
chore(deps): update dependency husky to v9 (#4612)6c46789
chore(deps): update dependency typescript to v5.6.3 (#4613)2793863
chore(deps): update commitlint monorepo to v19 (major) (#4592)Updates
@formatjs/intl-numberformat
from 8.10.3 to 8.13.0Release notes
Sourced from
@formatjs/intl-numberformat
's releases.Commits
d1003ad
build: publishfbb2bbf
feat: upgrade cldr to v45 (#4620)a7dd645
chore: dep++ce1e814
fix(deps): update dependency@types/picomatch
to v3 (#4618)80f8055
fix(deps): update dependency@types/node
to v20 (#4617)5139c3b
chore(deps): update lerna-lite monorepo to v3 (major) (#4615)43aa2c0
chore(deps): update dependency pnpm to v9 (#4614)69b3a65
chore(deps): update dependency husky to v9 (#4612)6c46789
chore(deps): update dependency typescript to v5.6.3 (#4613)2793863
chore(deps): update commitlint monorepo to v19 (major) (#4592)Updates
@formatjs/intl-pluralrules
from 5.2.14 to 5.2.17Release notes
Sourced from
@formatjs/intl-pluralrules
's releases.Commits
d1003ad
build: publishfbb2bbf
feat: upgrade cldr to v45 (#4620)a7dd645
chore: dep++ce1e814
fix(deps): update dependency@types/picomatch
to v3 (#4618)80f8055
fix(deps): update dependency@types/node
to v20 (#4617)5139c3b
chore(deps): update lerna-lite monorepo to v3 (major) (#4615)43aa2c0
chore(deps): update dependency pnpm to v9 (#4614)69b3a65
chore(deps): update dependency husky to v9 (#4612)6c46789
chore(deps): update dependency typescript to v5.6.3 (#4613)2793863
chore(deps): update commitlint monorepo to v19 (major) (#4592)Updates
@formatjs/intl-relativetimeformat
from 11.2.14 to 11.3.0Release notes
Sourced from
@formatjs/intl-relativetimeformat
's releases.Commits
d1003ad
build: publishfbb2bbf
feat: upgrade cldr to v45 (#4620)a7dd645
chore: dep++ce1e814
fix(deps): update dependency@types/picomatch
to v3 (#4618)80f8055
fix(deps): update dependency@types/node
to v20 (#4617)5139c3b
chore(deps): update lerna-lite monorepo to v3 (major) (#4615)43aa2c0
chore(deps): update dependency pnpm to v9 (#4614)69b3a65
chore(deps): update dependency husky to v9 (#4612)6c46789
chore(deps): update dependency typescript to v5.6.3 (#4613)2793863
chore(deps): update commitlint monorepo to v19 (major) (#4592)Updates
@reduxjs/toolkit
from 2.2.7 to 2.3.0Release notes
Sourced from
@reduxjs/toolkit
's releases.... (truncated)
Commits
77fb33d
Release 2.3.0fa0906e
Merge pull request #4291 from reduxjs/pr/fetchBaseQuery-extraOptions896e4df
Drop generic and make extraOptions unknown41487fd
Fix arguments type1918f13
fix bad inference with an overload?6ef362f
fixup test3e77381
fetchBaseQuery: expose extraOptions to prepareHeaders7b50a61
Merge pull request #4561 from reduxjs/feature/4106-rtkq-normalization3358c13
Fix Parameters headersd38ff98
Merge pull request #4638 from kyletsang/prepareheaders-argsUpdates
@sentry/react
from 8.32.0 to 8.35.0Release notes
Sourced from
@sentry/react
's releases.... (truncated)
Changelog
Sourced from
@sentry/react
's changelog.... (truncated)
Commits
4e33b54
release: 8.35.043a6afe
Merge pull request #14022 from getsentry/prepare-release/8.35.0f4ba039
meta(changelog): Update changelog for 8.35.0f358790
test(e2e): Pin deps in Astro Cloudflare E2E test (#14030)2648ef6
test(e2e): Add event proxy option to allow for event dumps (#13998)ab28544
feat(nuxt): Log server instrumentation might not work in dev (#14021)54d286b
feat(nuxt): Respect user-provided source map generation settings (#14020)96526c2
docs(nuxt): Add beta readme (#13979)d3847b4
perf(node): Truncate breadcrumb messages created by console integration (#14006)77b3355
fix(replay): Ignore older performance entries when starting manually (#13969)Updates
apexcharts
from 3.54.0 to 3.54.1Release notes
Sourced from apexcharts's releases.
Commits
3f73670
build - 3.54.1608954f
3.54.1fc02faa
typo fix for showDuplicatesa7ee8bf
fix #4757; allow duplicate labels in yaxis3521cbe
continue fix for #4750; tooltip missing in safaricbeb9cb
fix #4623; use x value from w.config.series instead of w.globals.labels4b82033
fix #4750; safari tooltip issuea72dc52
update samples4cd7886
Merge pull request #4753 from rosco54/Bar_Column_True_Stroke_Pathfedbcce
Restore true stroke paths on bars and columns.Updates
query-string
from 9.1.0 to 9.1.1Release notes
Sourced from query-string's releases.
Commits
9fce3f9
9.1.119c43d4
FixarrayFormat
bracket-separator
with a URL encoded value (#392)4287e77
Meta tweaksUpdates
react-intl
from 6.7.0 to 6.8.1Release notes
Sourced from react-intl's releases.
Commits
d1003ad
build: publishfbb2bbf
feat: upgrade cldr to v45 (#4620)a7dd645
chore: dep++ce1e814
fix(deps): update dependency@types/picomatch
to v3 (#4618)80f8055
fix(deps): update dependency@types/node
to v20 (#4617)5139c3b
chore(deps): update lerna-lite monorepo to v3 (major) (#4615)43aa2c0
chore(deps): update dependency pnpm to v9 (#4614)69b3a65
chore(deps): update dependency husky to v9 (#4612)6c46789
chore(deps): update dependency typescript to v5.6.3 (#4613)2793863
chore(deps): update commitlint monorepo to v19 (major) (#4592)Updates
@babel/cli
from 7.25.6 to 7.25.7Release notes
Sourced from
@babel/cli
's releases.Changelog
Sourced from
@babel/cli
's changelog.