Instructions for rolling back to a previous version of CanxJS in case of critical issues.
Downgrading may cause issues if you have run database migrations associated with the newer version.Always backup your database before performing a downgrade.
Check the NPM versions or your package.json history to find the stable version you want to revert to (e.g., 1.5.0).
Use bun add (or npm install) with the specific version tag:
bun add canxjs@1.5.0If the newer version included database schema changes, you should rollback those migrations before switching the code.
bun canx migration:rollbackClear your node_modules and lock files to ensure a clean slate.
rm -rf node_modules bun.lockb
bun installIf you see errors about missing modules after downgrading, it likely means the newer version introduced modules that your code is still trying to import. You will need to remove references to these new features in your application code.
Type definitions might have changed. You may need to restart your TS server in VS Code (Ctrl+Shift+P > TypeScript: Restart TS Server).