Skip to main content
autumn-js 1.6 is ESM-only and server-side. The Autumn class and every API call keep the same shape. It removes the client-side and framework entries that were deprecated in 1.5, because a browser client could modify the requests they proxied.

What changed

autumn-js/core and autumn-js/funcs/<name> load only the models the calls you use need. Importing AutumnCore and check retains about 4 MB of heap, compared with about 25 MB for the Autumn class.
Function names follow the class methods: autumn.customers.getOrCreate(...) becomes customersGetOrCreate(autumn, ...) from autumn-js/funcs/customers-get-or-create. Standalone functions return a Result instead of throwing. Check result.error against the error classes exported by autumn-js/core. To route edge-served calls such as check through the edge cache, pass useEdge: true and your edgeURL to AutumnCore, as autumn.edge does on the Autumn class.

Staying on 1.5

autumn-js 1.5.x keeps every removed entry, in both CommonJS and ESM. Pin autumn-js@~1.5 if you can’t migrate yet.