Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Oct 04:28
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.
7c7daf4

Minor Changes

  • #12 dbf3304 Thanks @JoviDeCroock! - Export React's original useSyncExternalStore hook with branded snapshot results and a stable subscription contract. Document snapshot caching and hydration obligations.

Patch Changes

  • c687189 Thanks @JoviDeCroock! - Document how stableref's type-level stability contracts interact with React Compiler optimization, hook recognition, and exhaustive dependency linting.

  • #4 a848023 Thanks @ayden94! - Support ordinary explicit type arguments for strict React and Preact useMemo<T>, useCallback<F>, and useImperativeHandle<T, R> calls by defaulting the dependency type to StableDeps.

    Explicit calls still reject unproven reference dependencies, with diagnostics against StableDependency. Inferred calls retain the existing actionable dependency diagnostics. Hook identity and stability branding are unchanged.

  • #5 17a99ea Thanks @ayden94! - Preserve mutable initialized refs and precise current-value types with React 18 declarations while retaining React 19 compatibility and branding only the ref container.

  • #10 14f1b55 Thanks @ayden94! - Accept optional stable dependency lists in the strict React and Preact effect and imperative handle hooks while continuing to reject unproven reference dependencies.