Releases: SaulMoro/ngrx-rtk-query
Release list
ngrx-rtk-query@21.3.1
ngrx-rtk-query@21.3.0
Minor Changes
-
#115
88733c6Thanks @SaulMoro! - Deprecate importingprovideStoreApifrom the root entrypoint.Import
provideStoreApifromngrx-rtk-query/storeinstead. Core APIs such ascreateApiandfetchBaseQueryremain available fromngrx-rtk-query. Signal Store runtime features remain available fromngrx-rtk-query/signal-store.This prepares a future major version where the root entrypoint will no longer re-export the NgRx Store provider.
ngrx-rtk-query@21.2.5
ngrx-rtk-query@21.2.4
ngrx-rtk-query@21.2.3
ngrx-rtk-query@21.2.2
Patch Changes
-
#106
522d8faThanks @SaulMoro! - FixTS2527andTS2742in consumer projects with declaration emit enabled.TS2527("inaccessible 'unique symbol' type"): the post-build.d.tspatcher now promotes every bundleddeclare const X: unique symbol;toexport declare const X: unique symbol;, including internal registry keys (mountedApiRegistryKey,apiStateRegistryKey) that leak through the return types ofwithApi/withApiState. A previous filter that only promoted symbols present in grouped value exports skipped these keys and reintroduced the error in consumers usingsignalStore(..., withApi(api))orwithApiState(api).TS2742("cannot be named without a reference to '…/ngrx-rtk-query/core' — likely not portable"): thecoreentry point now re-exports every type from./src/types, exposing the baseUseQuery,UseMutation,UseLazyQuery,UseInfiniteQuery,HooksWithUniqueNames, etc. that generated hook signatures (useGetXxxQuery,useUpdateXxxMutation,apiEndpoints) refer to. Without these top-level re-exports TypeScript fell back to a deep.pnpm/…absolute path.
The duplicated local
DefinitionTypeenum incore/src/types/hooks-types.tsis removed in favor of the canonical one from@reduxjs/toolkit/queryso the wildcard re-export does not clash withexport * from '@reduxjs/toolkit/query'.
ngrx-rtk-query@21.2.1
Patch Changes
-
#104
0432c08Thanks @SaulMoro! - FixTS4023in consumer projects when exporting generated query hooks likeuseGetXxxQuerywith declaration emit enabled.The public
coreentry point now re-exports theSignal,SignalsMap, andDeepSignalhelper types used by generated hook signatures so TypeScript can name those exported hook types in consumer.d.tsoutput.This release also hardens
createApiteardown so late RTK Query middleware timers can drain after a host store is released without throwing unbound API errors in tests or consumer runtimes.
ngrx-rtk-query@21.2.0
Minor Changes
-
#102
818c3b3Thanks @SaulMoro! - FixTS2527: The inferred type of '...' references an inaccessible 'unique symbol' type. A type annotation is necessaryin consumer projects when assigning the result ofcreateApi(...)(or any value whose type indirectly references one of the library'sunique symbols) to an exported binding.This release also raises the minimum supported
@ngrx/signalsand@ngrx/storeversion for Angular 21 from21.0.xto21.1.x, so consumers using the signal-store runtime should upgrade NgRx accordingly.The bundled
.d.tswas emittingdeclare const X: unique symbol;plus a groupedexport { X };clause at the bottom of the file. TypeScript's declaration emitter cannot reach aunique symbolthrough that grouped re-export, so it failed to serialize the inferred type in consumer code.The build now post-processes the bundled
.d.tsto promote each exported localdeclare const X: unique symbol;toexport declare const X: unique symbol;(matching how upstream@reduxjs/toolkit/query/reactships its symbols) and removes the now-duplicate entries from the grouped export, while leaving internalunique symbols untouched. The fix is enforced via aprepublishOnlyhook so anypnpm pub:*flow always ships a patched.d.ts.
ngrx-rtk-query@21.1.0
Minor Changes
-
#100
a29839bThanks @SaulMoro! - AddwithApiState(api)tongrx-rtk-query/signal-storeso Signal Stores can read generated...State()methods from the same store, a child store, or providers likeprovideStoreApi(api)andprovideNoopStoreApi(api).Keep API mounting in
withApi(api), tighten signal-store binding guards, and update the Signal Store docs, tests, and example to show deriving view state from generated readers insidewithComputed(...)andwithProps(...).
ngrx-rtk-query@21.0.0
Major Changes
-
#96
797a5d6Thanks @SaulMoro! - ### Breaking Changes- Updated to Angular 21 and Nx 21
- Library version now aligned with Angular major version (21.x)
Features
- Infinite Queries: Added
refetchCachedPagesoption synced with RTK Query 2.11- Allows refetching all cached pages when the cache entry is invalidated
- Can be set at hook level or per-call basis
Fixes
- Fixed query state types for
exactOptionalPropertyTypesTypeScript compatibility
Documentation
- Added comprehensive AGENTS.md for AI agent guidance
- Added documentation and examples for infinite queries
- Improved README with infinite query usage examples
Internal
- Updated CI workflows to use Node.js 22
- Updated GitHub Actions versions
- Refactored code structure for improved readability and maintainability