From 0d55de82f9f4df8d158cfe0ab03e6aca7cfbcc82 Mon Sep 17 00:00:00 2001 From: Kam Date: Thu, 14 May 2026 00:16:32 +0300 Subject: [PATCH] refactor(core): mark resource() overloads as @publicApi 22.0 #68253 graduated `resource`, `rxResource`, and `httpResource` to stable by swapping `@experimental` for `@publicApi 22.0` across three files. The two `resource()` overloads in `packages/core/src/resource/resource.ts` were missed and still carried `@experimental 19.0`. The public-api golden already lists both overloads as `// @public`, so this aligns the source with what the rest of the codebase reflects. (cherry picked from commit 7557b339ea70dbbe1c81b35a34831d40122cda3d) --- packages/core/src/resource/resource.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/resource/resource.ts b/packages/core/src/resource/resource.ts index 9124299347f..db93093f050 100644 --- a/packages/core/src/resource/resource.ts +++ b/packages/core/src/resource/resource.ts @@ -46,7 +46,7 @@ import {StateKey, TransferState} from '../transfer_state'; * * @see [Async reactivity with resources](guide/signals/resource) * - * @experimental 19.0 + * @publicApi 22.0 */ export function resource( options: ResourceOptions & {defaultValue: NoInfer}, @@ -60,7 +60,7 @@ export function resource( * `resource` will cancel in-progress loads via the `AbortSignal` when destroyed or when a new * request object becomes available, which could prematurely abort mutations. * - * @experimental 19.0 + * @publicApi 22.0 * @see [Async reactivity with resources](guide/signals/resource) */ export function resource(options: ResourceOptions): ResourceRef;