This release brings quality-of-life improvements across the board: conditional useQuery with a skip option, an esbuild upgrade unlocking modern TypeScript syntax, and warnings for unawaited promises that catch subtle bugs early. The JavaScript runtime also gains streaming and crypto APIs, and the dashboard now includes a global function runner for quick testing.
Convex 1.1
Convex Team
Published on August 25, 2023
Overview
Included Features (6)
Pass the special string 'skip' in place of arguments to useQuery to conditionally avoid running a query, solving the React hooks-in-conditionals problem.
Upgraded to esbuild 0.17.5, enabling new TypeScript syntax like const type parameters in Convex functions.
Convex now logs a runtime warning when a promise is not resolved by the time a function finishes executing, helping catch floating promise bugs.
Added support for streaming APIs and common crypto APIs in the Convex runtime, enabling more npm packages to work without the Node.js 'use node' directive.
The function runner is now available from any dashboard pane, allowing you to run mutations and watch queries update live.
Smoother spreadsheet-like interaction, ability to add multiple documents at once, team-level usage graphs, filtered logs, and cancel all scheduled jobs.