Releases: azhukaudev/convex-angular
Releases · azhukaudev/convex-angular
v1.6.0
✨ Features
- Add
injectQueries()for keyed multi-query subscriptions with per-keyresults(),errors(),statuses(), and aggregateisLoading(). - Add
injectPrewarmQuery()to warm the local Convex cache before navigation or other anticipated UI work. - Add
injectConvexConnectionState()for reactive Convex connection diagnostics. - Add paginated optimistic update helpers for updating cached paginated query results during optimistic mutations.
⚠️ Breaking Changes
- Enforce root-only
provideConvexAuth()registration by throwing on duplicate or nested auth provider setup.
🐛 Bug Fixes
- Ignore stale
injectQuery()subscription callbacks so outdated responses do not overwrite newer state. - Ignore stale
injectPaginatedQuery()callbacks and throw a clear error when experimental paginated query support is unavailable on the Convex client. - Scope Convex auth state to the root injector to prevent inconsistent auth sync across nested provider scopes.
📖 Documentation
- Document
injectQueries(),injectPrewarmQuery(),injectConvexConnectionState(), and paginated optimistic update helpers in both READMEs. - Add new frontend examples for multi-query subscriptions, connection state, prewarming queries, and paginated optimistic updates.
View changes on GitHub: v1.5.0...v1.6.0
v1.5.0
⚠️ Breaking Changes
- Change
injectQuery(),injectMutation(), andinjectAction()sodata()is typed asT | undefined, matching the existing initial, skipped, and reset runtime states.
🐛 Bug Fixes
- Make
injectMutation().mutate()andinjectAction().run()reject on failure after updating the reactive error state. - Ignore stale mutation and action completions so only the latest invocation updates reactive state.
📖 Documentation
- Document rejected promise behavior for
mutate()andrun()in both READMEs. - Document the corrected
data()typing in both READMEs.
View changes on GitHub: v1.4.0...v1.5.0
v1.4.0
✨ Features
- Rework
injectAuth()auth sync sostatus()stays loading until Convex confirms the current token with the backend. - Extend
ConvexAuthProviderwith optionalreauthVersionanderrorsignals, and update built-in Clerk/Auth0 integrations to wire auth sync throughprovideConvexAuth()automatically.
📖 Documentation
- Clarify
injectAuth()loading/authenticated/error semantics and document the optionalConvexAuthProviderreauth/error hooks in both READMEs.
View changes on GitHub: v1.3.0...v1.4.0
v1.3.0
✨ Features
- Add optional
injectRefsupport to all publicinject*helpers so they can be created outside the initial Angular injection context
📖 Documentation
- Document
injectRefusage for creating helpers outside the initial injection context.
View changes on GitHub: v1.2.0...v1.3.0
v1.2.0
⚠️ Breaking Changes
injectPaginatedQuery(...)now takes a plain options object,initialNumItemsacceptsnumber | Signal<number>, and the legacy() => optionsform was removed.
📖 Documentation
- Update README and JSDoc examples to use object-form
injectPaginatedQuery(...)options and signal-basedinitialNumItems.
View changes on GitHub: v1.1.0...v1.2.0
v1.1.0
✨ Features
- Enforce root-only Convex setup by validating
provideConvex(...)registrations and throwing on duplicate or nested provider scopes.
⚠️ Breaking Changes
provideConvex(...)now returnsEnvironmentProvidersand must be configured exactly once in root app providers.
📖 Documentation
- Clarify root-only
provideConvex(...)setup requirements in package and repository READMEs.
View changes on GitHub: v1.0.4...v1.1.0
v1.0.4
📖 Documentation
- Refresh README examples and fix inconsistencies (requirements note, safer
injectQuery, updated pagination/guard snippets, auth examples now useuseExisting, repo dev commands).
View changes on GitHub: v1.0.3...v1.0.4
v1.0.3
✨ Features
- Add
provideConvexAuthFromExisting(...)to wireCONVEX_AUTHto an existing injectable auth provider instance (avoids accidental duplicate instances)
📖 Documentation
- Update Custom Auth Provider examples to use
useExistingand warn thatuseClasscan create a second instance so auth signal changes won’t reach Convex auth sync - Add a
@convex-dev/authintegration snippet and clarify thatprovideConvexAuth()handlessetAuth/clearAuthautomatically whenisAuthenticatedchanges - Align JSDoc auth provider/token examples to prefer
useExisting
View changes on GitHub: v1.0.2...v1.0.3
v1.0.2
🐛 Bug Fixes
- Clear Convex auth when the provider is loading or unauthenticated to avoid stale tokens
- Auto-initialize auth sync when registering auth providers so queries refresh on sign-in/out
📖 Documentation
- Document automatic auth sync initialization and logout behavior
View changes on GitHub: v1.0.1...v1.0.2
v1.0.1
🐛 Bug Fixes
- Prevent double unsubscribe when toggling
skipToken, avoiding ConvexnumSubscriberserrors ininjectQueryandinjectPaginatedQuery
View changes on GitHub: v1.0.0...v1.0.1