Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

convex

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convex - npm Package Versions

1
15

1.14.3

Diff

sshader
published 1.14.2 •

sshader
published 1.14.2-alpha.0 •

ballingt
published 1.14.1 •

sshader
published 1.14.0 •

Changelog

Source

1.14.0

  • Updates to ConvexReactClient to work better with authentication and server rendering
  • npx convex init and npx convex reinit have been deprecated in favor of npx convex dev --configure
  • Drop support for Node.js v16, and with it drop the dependency on node-fetch. This removes the 'punycode' deprecation warning printed when running the CLI in more recent versions of Node.js.
  • Support for custom claims in JWTs
ldanilek
published 1.13.3-alpha.0 •

ballingt
published 1.13.2 •

Changelog

Source

1.13.2

  • Fix npx convex import regression in 1.13.1
ballingt
published 1.13.1 •

Changelog

Source

1.13.1

  • Relax client URL validation to prepare for Convex backends accessible on arbitrary domain. This makes skipConvexDeploymentUrlCheck client option also no longer required for accessing deployments not hosted on the Convex BaaS.

  • Fix bug where the first mutation request send over the WebSocket failing would not roll back the corresponding optimistic update (completedMutationId could be 0 which is falsey!)

  • Fix bug where codegen --init would fail if no Convex directory existed yet.

  • Action and query function wrappers now also allow validators for args (previously only objects were accepted) and objects for returns (previously only validators were accepted).

  • Change httpRouter behavior for overlapping paths: exact matches first, then the longest prefix patch that matches.

sshader
published 1.13.0 •

Changelog

Source

1.13.0

  • Convex queries, mutations, and actions now accept returns: property to specify a return value validator.

    Return value validators throw a runtime error (so will roll back the transaction in a mutation) when the value returned from a query or mutation does not match this validator. This is stricter than TypeScript in that extra properties will not be allowed.

  • Validator fields are now exposed: the return value of v.object({ ... }) now has a .fields property with the validators for each property on it.

    const message = v.object({ user: v.string(), body: v.string() });
    const imageMessage = v.object({ ...message.fields, })
    

    These validators are also exposed on the schema at schema.tables.messages.validator

    The Validator export is no longer a class. It is now a discriminated union type of all validators where the .kind as the discriminator. The Validator type still has three type parameters with only the first (the TypeScript type enforced by the validator) required.

    The second type parameter IsOptional is no longer a boolean, is it "optional" or "required" now.

    These are breaking changes if you're using the two optional type parameters of Validator or doing instanceof checks with Validator! We apologize for the inconvenience. The same users this affects should be the ones that most benefit from the ability to work with validator types more directly.

  • Argument validators now accept validators (object validators and union validators) in addition to objects with validators as properties. Return value validators similarly accept either validators or objects with validators as properties, but unlike args: any validator is allowed.

    Custom function wrappers (AKA middleware) should continue to work, but to present the same API has the builtin Convex function wrappers query, internalQuery, mutation etc. you'll need to update such code to accept either a validator or an object of validators. You'll likely want to update these anyway to support return value validators. The new asValidator helper maybe useful here.

  • The default tsconfig.json created in projects when first creating the convex/ directory now uses "moduleResolution": "Bundler". This is just a better default, you probably never want the previous default "node"/"node10".

ballingt
published 1.13.0-alpha.2 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc