useautumn avatar

autumn-js

0 subscribers
TypeScriptJavaScriptCSS

Javascript SDK for Autumn

Created Apr 2025

MIT license

Live activities

John Yeocx pushed a fix to the main branch that adjusts the checkout dialog’s quantity input for renew scenarios—disabling selection when renewing and cleaning up imports—while bumping the autumn-js library to v0.1.40. He also re-enabled the local Autumn API URL in the Next.js route and updated .gitignore to include new stainless/ and speakeasy/ entries.

Johnyeocx pushed a fix to main that enables analytics caching and bumps package versions for convex (to 0.0.12) and autumn-js (to 0.1.39). The changes add an optional “range” parameter to analytics queries (updating the SWR cache key), switch the customer ID to an environment variable, and update peer dependencies and endpoint configs.

SirTenzin merged johnyeocx’s updates into the main branch, cleaning up extra blank lines in the README and adding an Ask DeepWiki badge for the autumn-js repo.

johnyeocx merged the latest changes from the upstream main branch and fixed query‐parameter handling in the backend handler. He also added an optional pathPrefix override (with normalization) to both ReactAutumnProvider and AutumnClient, and updated the README with a DeepWiki badge.

The change adds a new optional pathPrefix prop in ReactAutumnProvider and AutumnClient so you can override the hard-coded “/api/autumn” endpoint. This makes it easier to point requests at custom routes or proxies in different environments. However, it may break backward compatibility, lacks unit tests for its slash normalization logic, and could mishandle edge cases around leading/trailing slashes.

SirTenzin pushed to the main branch, updating the Autumn JS Monorepo’s README by trimming a couple of blank lines and adding a DeepWiki badge. This tweak makes it easy to jump straight to the project’s DeepWiki documentation.

This change refactors the Better-Auth plugin and Autumn client libraries to use camelCase for all input parameters by introducing a camelCase flag, updating middleware and endpoint configurations, and converting calls in both the backend plugin and React client. It affects every consumer of the plugin—Next.js examples, middleware, API routes, and client methods—so existing snake_case integrations will need to be updated and tested against the new request/response shapes. Because of its broad scope, there’s a high risk of subtle bugs in the conversion logic, breaking backward compatibility, and the sheer number of file changes makes thorough review and testing challenging.

This change adds full organization and entity support to the BetterAuth + Autumn integration by switching to a SQLite store, introducing new middleware and plugin options for organization context, and exposing CRUD endpoints and React hooks (useEntity, identifyOrg, etc.) in the Next.js frontend. It greatly expands authentication and billing capabilities—letting users create/join organizations, set active orgs, and manage “entities”—and updates a wide range of UI components for consistency. However, the PR is very large and lacks documentation or tests, commits database files and hard-coded URLs, and could introduce breaking changes or security/maintenance risks.

On the main branch, pusher johnyeocx cleaned up the Better Auth organizations flow with contributions from both johnyeocx and SirTenzin. The update removes outdated comments, tidies formatting, adds console logs and helper functions for inviting/removing members, and simplifies the auth plugin setup. These fixes build on SirTenzin’s earlier features like automatic org detection, camelCase flags and optimized routing.

johnyeocx pushed a fix on main that bumps the package to v0.0.24, introduces a new --local CLI flag and tightens up confirm‐prompt formatting. Most importantly, schema parse failures for products and features now surface clear, detailed error messages thanks to enhanced Zod validation and improved config loading logic.

- End of feed -