Update dependency convex to v1.28.2 #18
                
     Open
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
1.25.0->1.28.21.23.0->1.28.2Release Notes
get-convex/convex-js (convex)
v1.28.0Deploy code path unification: all deploys now use a codepath that supports
components, whether or not any components are used in the project. Generating
the files in
convex/_generated/now requires a deployment to be present andfor all environment variables used in convex/auth.config.ts to be set.
Scripts that call
npx convex codegenare the most likely to be affected bythis change, and
npx convex codgenno longer works for any projects inpreview deployments because preview deployments may not exist until the
deploy.
Committing generated code is recommended and this change makes this
recommendation more important.
WebSocket sync protocol support for TransitionChunk messages: just splitting a
Transition (containing new query results) into multiple WebSocket messages in
order prevent the server from appearing non-responsive.
v1.27.5AuthConfigtype to describe the object exported fromconvex/auth.config.ts.v1.27.4Add a
getAuth()method to the client which returns the current token andclaims. This method is intended for instrumentation purposes like adding this
information to a reported Sentry error or event.
Change to CLI
--admin-keyand--urlarg parsing logic to avoid coercingempty strings to booleans.
Vendor jwt-decode along with a few other dependnecies; this brings the number
of runtime dependencies for Convex from 3 to 2: esbuild (binary) and prettier.
Fix ConvexProviderWithClerk to catch
getToken()errors. This could causechanges in behavior of refreshing Clerk tokens, we'll be watching this one.
v1.27.3HTTPS_PROXY/HTTP_PROXYenvironment variables.This is generally useful but was motivated by making Convex run in remote
asynchronous agent environemnts like Codex.
v1.27.2npx convex runsends function log output to stderr instead of stdout.Increase the timeout when waiting for a local backend to start up from 10 to
30 seconds.
Capability to provision WorkOS environments when
WORKOS_CLIENT_IDenvironment variable is missing.
v1.27.1reconnection messages were logged. These can still be silenced with the
logger: falseclient option."exactOptionalPropertTypes" with the convex package.
messages.
codegenoptions toconvex.jsonschema.v1.27.0node.nodeVersionfield of theconvex.jsonfile(docs).
npx convex datanow supports exporting data as JSON or JSONL with the--formatoption.npx convex env setnow supports setting environment variables via piping(STDIN) (for example
cat keys/my-private-key.txt | npx convex env set JWT_PRIVATE_KEY).v1.26.2v1.26.0Add support for staged indexes. Instead of blocking on push, a staged index
backfills while you push more changes to a deployment, then can be used once
it is no longer marked as staged.
Read more in the docs (link coming soon).
Experimental
ConvexReactClient.prewarmQuery({query, args})method forsubscribing to a query for 5 seconds. Prewarming indicates likely future
interest in a subscription and is currently implemented by subscribing to the
query for 5 seconds.
The return value of this method may change and the arguments may change in the
future so this API should be considered unstable but adapting to these changes
shouldn't be difficult.
Expose the schemaValidation property of schema, intended for runtime tests or
assertions that it is indeed enabled.
Export TokenFetcher type, intended for external auth integrations.
More informative messaging on code push. Link to index backfill progress in
the dashboard.
Fix a bug where an auth token passed initially to the ConvexHttpClient was
ignored.
Experimental
expectAuthoption for Convex clients for indicating thatsetAuth() will be called soon, so to wait for that token. Once setAuth() has
been called the existing token-waiting behavior takes over.
This is useful for applications that create a client and run a mutation,
query, or action before setAuth() has been called, e.g. via a provider in
React.
Change the default permissions for the local MCP server: access to production
deployments is now disabled by default, requiring
--dangerously-enable-production-deploymentsto enable.Add a "logs" tool to the local MCP server.
v1.25.4Experimental
convex dev --once --debug-node-apisdebug flag for tracingthrough imports to find Node.js APIs imported from non-"use node" convex
endpoint files.
Experimental
CONVEX_AGENT_MODE=anonymous npx convex devfor anon-interactive anonymous development flow when not logged in.
Simplify the
Loggerinterface of Convex clients making it easier to replace.Reactive
ConnectionStateviauseConvexConnectionStatehook. How often thisvalue updates may change in the future if more information is added to
ConnectionState.Escape JavaScript keywords in codegen, fixing issues with files in the convex
folder named things like convex/delete.ts.
Warn when the explicit value
undefinedis passed to Next.js server-sidehelpers, indicating the issue may have been an unset environment variable.
This may become an error in the future.
Error closer to the call site when invalid validators are contructed.
v1.25.2connections, good old Happy Eyeballs
nodejs/node#54359.
v1.25.1Print more error info in
npx convex network-test.Crash when it looks like an environment variable is missing:
CONVEX_DEPLOY_KEY=project:me:new-project|eyABCD0= npx convexparses asCONVEX_DEPLOY_KEY=project:me:new-project | eyABCD0='' npx convexbut whenwas meant was
CONVEX_DEPLOY_KEY='project:me:new-project|eyABCD0=' npx convex.Crash when an environment variable like
ey...0=is present to surface errorslike this quicker.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.