Skip to content

Releases: SaulMoro/ngrx-rtk-query

ngrx-rtk-query@21.3.1

Choose a tag to compare

@github-actions github-actions released this 07 May 13:49
97cc537

Patch Changes

  • #118 d9c36ee Thanks @SaulMoro! - Refactor runtime host lifecycle mounting behind an internal core helper.

ngrx-rtk-query@21.3.0

Choose a tag to compare

@github-actions github-actions released this 07 May 11:00
da0c27e

Minor Changes

  • #115 88733c6 Thanks @SaulMoro! - Deprecate importing provideStoreApi from the root entrypoint.

    Import provideStoreApi from ngrx-rtk-query/store instead. Core APIs such as createApi and fetchBaseQuery remain available from ngrx-rtk-query. Signal Store runtime features remain available from ngrx-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

Choose a tag to compare

@github-actions github-actions released this 04 May 12:38
ca804c4

Patch Changes

  • #112 dd9b425 Thanks @SaulMoro! - Support reactive mutation options and callable query result signal keys.

ngrx-rtk-query@21.2.4

Choose a tag to compare

@github-actions github-actions released this 21 Apr 15:46
6a304e1

Patch Changes

  • #110 1a98692 Thanks @SaulMoro! - Allow resetApiState to be dispatched even before an API store has been bound so it behaves as a safe no-op cleanup step.

ngrx-rtk-query@21.2.3

Choose a tag to compare

@github-actions github-actions released this 21 Apr 12:25
af43664

Patch Changes

  • #108 6ba22ba Thanks @SaulMoro! - Allow resetApiState to be dispatched after an API store has been released while still preserving the unbound-store error for other actions.

ngrx-rtk-query@21.2.2

Choose a tag to compare

@github-actions github-actions released this 16 Apr 21:28
231cdb0

Patch Changes

  • #106 522d8fa Thanks @SaulMoro! - Fix TS2527 and TS2742 in consumer projects with declaration emit enabled.

    • TS2527 ("inaccessible 'unique symbol' type"): the post-build .d.ts patcher now promotes every bundled declare const X: unique symbol; to export declare const X: unique symbol;, including internal registry keys (mountedApiRegistryKey, apiStateRegistryKey) that leak through the return types of withApi / withApiState. A previous filter that only promoted symbols present in grouped value exports skipped these keys and reintroduced the error in consumers using signalStore(..., withApi(api)) or withApiState(api).
    • TS2742 ("cannot be named without a reference to '…/ngrx-rtk-query/core' — likely not portable"): the core entry point now re-exports every type from ./src/types, exposing the base UseQuery, 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 DefinitionType enum in core/src/types/hooks-types.ts is removed in favor of the canonical one from @reduxjs/toolkit/query so the wildcard re-export does not clash with export * from '@reduxjs/toolkit/query'.

ngrx-rtk-query@21.2.1

Choose a tag to compare

@github-actions github-actions released this 16 Apr 20:22
0744d92

Patch Changes

  • #104 0432c08 Thanks @SaulMoro! - Fix TS4023 in consumer projects when exporting generated query hooks like useGetXxxQuery with declaration emit enabled.

    The public core entry point now re-exports the Signal, SignalsMap, and DeepSignal helper types used by generated hook signatures so TypeScript can name those exported hook types in consumer .d.ts output.

    This release also hardens createApi teardown 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

Choose a tag to compare

@github-actions github-actions released this 16 Apr 18:28
a8ed667

Minor Changes

  • #102 818c3b3 Thanks @SaulMoro! - Fix TS2527: The inferred type of '...' references an inaccessible 'unique symbol' type. A type annotation is necessary in consumer projects when assigning the result of createApi(...) (or any value whose type indirectly references one of the library's unique symbols) to an exported binding.

    This release also raises the minimum supported @ngrx/signals and @ngrx/store version for Angular 21 from 21.0.x to 21.1.x, so consumers using the signal-store runtime should upgrade NgRx accordingly.

    The bundled .d.ts was emitting declare const X: unique symbol; plus a grouped export { X }; clause at the bottom of the file. TypeScript's declaration emitter cannot reach a unique symbol through that grouped re-export, so it failed to serialize the inferred type in consumer code.

    The build now post-processes the bundled .d.ts to promote each exported local declare const X: unique symbol; to export declare const X: unique symbol; (matching how upstream @reduxjs/toolkit/query/react ships its symbols) and removes the now-duplicate entries from the grouped export, while leaving internal unique symbols untouched. The fix is enforced via a prepublishOnly hook so any pnpm pub:* flow always ships a patched .d.ts.

ngrx-rtk-query@21.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Apr 12:21
e357188

Minor Changes

  • #100 a29839b Thanks @SaulMoro! - Add withApiState(api) to ngrx-rtk-query/signal-store so Signal Stores can read generated ...State() methods from the same store, a child store, or providers like provideStoreApi(api) and provideNoopStoreApi(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 inside withComputed(...) and withProps(...).

ngrx-rtk-query@21.0.0

Choose a tag to compare

@github-actions github-actions released this 15 Jan 12:13
5f120dc

Major Changes

  • #96 797a5d6 Thanks @SaulMoro! - ### Breaking Changes

    • Updated to Angular 21 and Nx 21
    • Library version now aligned with Angular major version (21.x)

    Features

    • Infinite Queries: Added refetchCachedPages option 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 exactOptionalPropertyTypes TypeScript 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