Skip to content

v1.7.0

Latest

Choose a tag to compare

@azhukaudev azhukaudev released this 08 Apr 21:00

✨ Features

  • Add Angular SSR preload and hydration helpers for server-side Convex fetches, transfer-state serialization, and injectPreloadedQuery() client hydration.
  • Add callable injectMutation() and injectAction() helpers plus .withOptimisticUpdate(...) chains with independent state per optimistic flow.
  • Add React-style paginated query status values and aggregate isLoading() support.

⚠️ Breaking Changes

  • Change injectQueries() to React-parity queries() semantics: each keyed value is now result | Error | undefined, replacing the previous results(), errors(), statuses(), and aggregate isLoading() API.

  • Change injectMutation() and injectAction() to callable helpers instead of .mutate() and .run() methods, and move optimistic mutation configuration to .withOptimisticUpdate(...).

  • Require native Convex Clerk integration in provideClerkAuth(): sessionClaims are now required and JWT template-based Clerk tokens are no longer supported.

🐛 Bug Fixes

  • Clear stale injectQuery() data while a subscription is in an active error state.
  • Stabilize Convex argument identity across query helpers and paginated optimistic updates.
  • Reset paginated queries correctly after first-page failures and align pagination semantics and validation with Convex React.
  • Stop action and mutation helpers from updating state after their Angular scope is destroyed.
  • Surface Auth0 and Clerk token fetch failures as auth errors instead of treating them as ordinary sign-out.
  • Preserve the return URL in convexAuthGuard login redirects.
  • Align auth reauth lifecycle and helper semantics more closely with Convex React behavior.
  • Require Auth0 detailed ID token responses for auth integration correctness.
  • Fix injectQuery() argument cache hydration.
  • Align the demo frontend routes, providers, and examples with the current convex-angular API.

📖 Documentation

  • Rewrite the injectQueries() docs and landing-page examples to use queries() and Angular-friendly derived computed() helpers.
  • Document the new SSR preload and hydration APIs, callable mutation/action helpers, pagination status changes, and updated Clerk/Auth0 integration requirements.

View changes on GitHub: v1.6.0...v1.7.0