data-table-sqlite@0.5.0
Breaking Changes📦 remixView on GitHub →
⚠ 1 breaking✨ 1 features🔧 5 symbols
Summary
This release removes the DDL operation ADT from `@remix-run/data-table`, resulting in the removal of `migrate` and changes to `compileSql`. SQL-file migrations are now handled via the new `executeScript` method.
⚠️ Breaking Changes
- The functions `migrate(request)` and `compileSql(DataMigrationOperation)` have been removed because the DDL operation ADT was removed from `@remix-run/data-table`. To run SQL-file migrations, use the new `executeScript(sql, transaction?)` method, which uses the SQLite client's native `exec()`.
Migration Steps
- Replace calls to `migrate(request)` with the appropriate new method for your migration strategy.
- Update calls to `compileSql()` to only accept `DataManipulationOperation` instead of `DataMigrationOperation`.
✨ New Features
- Introduced `executeScript(sql, transaction?)` for running SQL-file migrations, delegating to the SQLite client's native `exec()`.