Releases: cljoly/rusqlite_migration
Version 1.3.1
Version 1.3.0
The code of this version is identical to Version 1.3.0 Beta 1
Rusqlite was updated from 0.31.0 to 0.32.1. Please see the release notes for 0.32.0 and for 0.32.1. Tokio Rusqlite was updated from 0.5.1 to 0.6.0. Please see the release notes.
Minimum Rust Version
Rust 1.77
Documentation
Various documentation improvements and clarification. In particular, call out that if a rusqlite error is encountered during a migration, the next migrations in the list are not applied.
Other
- Apply minor or patch updates to the dependencies
- Update development dependencies
- Make CI testing more reproducible by forcing the use of Cargo.lock
What's Changed
- chore: bump Cargo version by @cljoly in #154
- chore(deps): bump insta from 1.36.1 to 1.37.0 by @dependabot in #156
- chore(deps): bump insta from 1.37.0 to 1.38.0 by @dependabot in #157
- chore(deps): bump tokio from 1.36.0 to 1.37.0 by @dependabot in #158
- test: use
cargo --locked
in CI by @cljoly in #159 - chore(deps): bump anyhow from 1.0.81 to 1.0.82 by @dependabot in #160
- chore(deps): bump anyhow from 1.0.82 to 1.0.83 by @dependabot in #161
- chore(deps): bump insta from 1.38.0 to 1.39.0 by @dependabot in #162
- chore(deps): bump anyhow from 1.0.83 to 1.0.86 by @dependabot in #163
- chore(deps): bump tokio from 1.37.0 to 1.38.0 by @dependabot in #164
- chore(deps): bump include_dir from 0.7.3 to 0.7.4 by @dependabot in #165
- chore(deps): bump lazy_static from 1.4.0 to 1.5.0 by @dependabot in #166
- chore(deps): bump log from 0.4.21 to 0.4.22 by @dependabot in #167
- chore: clean-up Cargo.toml by @cljoly in #168
- chore: fix deprecated insta macro by @cljoly in #169
- chore(deps): bump tokio from 1.38.0 to 1.38.1 by @dependabot in #172
- fix: wrap migrations from AsyncMigrations in Arc by @cljoly in #174
- chore(deps): bump tokio from 1.38.1 to 1.39.1 by @dependabot in #175
- docs: fix indentation by @cljoly in #178
- refactor: Use workspace features for consistency by @cljoly in #176
- chore(deps): bump tokio from 1.39.1 to 1.39.2 by @dependabot in #179
- docs: document what happens with extra_check by @cljoly in #180
- Prepare an alpha version without tokio features by @cljoly in #182
- chore(deps): bump env_logger from 0.10.1 to 0.11.1 by @dependabot in #138
- chore(deps): bump env_logger from 0.11.1 to 0.11.5 by @dependabot in #184
- chore(deps): bump tokio from 1.39.2 to 1.39.3 by @dependabot in #185
- chore(deps): bump tokio from 1.39.3 to 1.40.0 by @dependabot in #186
- chore(deps): bump anyhow from 1.0.86 to 1.0.88 by @dependabot in #191
- chore(deps): bump insta from 1.39.0 to 1.40.0 by @dependabot in #188
- chore(deps): bump anyhow from 1.0.88 to 1.0.89 by @dependabot in #192
- chore! Update rusqlite to v0.33 by @cljoly in #173
- test: fix typo in feature name by @cljoly in #193
- chore(deps): bump rusqlite from 0.32.0 to 0.32.1 by @dependabot in #194
- doc: update changelog & bump cargo version by @cljoly in #196
Full Changelog: v1.2.0...v1.3.0
Version 1.3.0 Beta 1
Please see the changelog.
Version 1.3.0 Alpha-Without-Tokio 1
Major Changes
This is an alpha version to start integrating rusqlite 0.32.1. Unfortunately, at this time, tokio-rusqlite is did not update to rusqlite 0.32.1. So we are temporarily removing the async features, while we figure out a way to bring them back. To be clear, we intend to support the async features going forward, this is a temporary change in a specifically tagged version.
Effectively, this version allows interested parties to opt-in to the updated rusqlite version of this library.
Rusqlite was updated from 0.31.0 to 0.32.1. Please see the release notes for 0.32.0 and for 0.32.1
Minimum Rust Version
Rust 1.77
Documentation
Various documentation improvements and clarification. In particular, call out that if a rusqlite error is encountered during a migration, the next migrations in the list are not applied.
Other
- Apply minor or patch updates to the dependencies
- Update development dependencies
- Make CI testing more reproducible by forcing the use of Cargo.lock
What's Changed
- chore!: temporarily remove async features by @xuxiaocheng0201 in #181
- chore: bump Cargo version by @cljoly in #154
- chore(deps): bump insta from 1.36.1 to 1.37.0 by @dependabot in #156
- chore(deps): bump insta from 1.37.0 to 1.38.0 by @dependabot in #157
- chore(deps): bump tokio from 1.36.0 to 1.37.0 by @dependabot in #158
- test: use
cargo --locked
in CI by @cljoly in #159 - chore(deps): bump anyhow from 1.0.81 to 1.0.82 by @dependabot in #160
- chore(deps): bump anyhow from 1.0.82 to 1.0.83 by @dependabot in #161
- chore(deps): bump insta from 1.38.0 to 1.39.0 by @dependabot in #162
- chore(deps): bump anyhow from 1.0.83 to 1.0.86 by @dependabot in #163
- chore(deps): bump tokio from 1.37.0 to 1.38.0 by @dependabot in #164
- chore(deps): bump include_dir from 0.7.3 to 0.7.4 by @dependabot in #165
- chore(deps): bump lazy_static from 1.4.0 to 1.5.0 by @dependabot in #166
- chore(deps): bump log from 0.4.21 to 0.4.22 by @dependabot in #167
- chore: clean-up Cargo.toml by @cljoly in #168
- chore: fix deprecated insta macro by @cljoly in #169
- chore(deps): bump tokio from 1.38.0 to 1.38.1 by @dependabot in #172
- fix: wrap migrations from AsyncMigrations in Arc by @cljoly in #174
- chore(deps): bump tokio from 1.38.1 to 1.39.1 by @dependabot in #175
- docs: fix indentation by @cljoly in #178
- refactor: Use workspace features for consistency by @cljoly in #176
- chore(deps): bump tokio from 1.39.1 to 1.39.2 by @dependabot in #179
- docs: document what happens with extra_check by @cljoly in #180
- Prepare an alpha version without tokio features by @cljoly in #182
- chore(deps): bump env_logger from 0.10.1 to 0.11.1 by @dependabot in #138
Full Changelog: v1.2.0...v1.3.0-alpha-without-tokio.1
Version 1.2.0
Same Rust code as 1.2.0 beta1, but some cosmetic changes were made to the documentation.
Version 1.2.0 Beta 1
Small release, mainly to update dependencies.
Minimum Rust Version
Now using edition 2021, but the minimum rust version is still 1.70
New Features
No new features.
Other
- Update rusqlite to 0.31
- Update various development dependencies
- Improve CI build time
- Impove documentation
- Fix some broken examples
See also
Rusqlite was updated from 0.30 to 0.31. Please see its release notes
Version 1.1.0
Same code as version 1.1.0-beta.1
Minimum Rust Version
Rust 1.70
New Features
- Support for tokio-rusqlite behind the feature named
alpha-async-tokio-rusqlite
thanks to @czocher. See the example. This feature is alpha, meaning that compatibility in future minor versions is not guaranteed. - Create migrations from directories holding SQL files thanks to @czocher. See the example.
- Add up/down hooks to run custom Rust code during migrations (PR thanks to @matze)
- Add foreign_key_check method to migrations (PR thanks to @Jokler)
- Make
Migration
functions const (PR thanks to @fkaa) - Make
Migrations
serializable (using the Debug serializer) with insta.
Depreciation
- Mark
Migrations::from_iter
as deprecated
Other
- Documentation improvements
- Repository metadata improvements
- Code quality improvements
- Introduce cargo mutants & fix bugs found
- Clippy warning fixes and other linter improvements
- Report on test coverage & improve test coverage
- Add benchmarks
- Made errors returned more precise
- Updated dependencies
See also
Rusqlite was updated from 0.29.0 to 0.30.0. Please see its release notes
What's Changed
- fix: error instead of panicking on higher migration level by @cljoly in #18
- Make
Migration
functions const by @fkaa in #19 - Add foreign_key_check method to migrations by @Jokler in #20
- chore(deps): update mktemp requirement from 0.4 to 0.5 by @dependabot in #23
- Misc. test fixes by @cljoly in #25
- Minimum Rust version check in CI by @cljoly in #22
- Add up/down hooks to insert custom Rust code by @matze in #28
- Fix clippy warnings by @czocher in #32
- Update the env_logger dependency by @czocher in #31
- Update repository metadata by @czocher in #30
- Fix pedantic warnings by @matze in #38
- Follow-up on clippy pedantic warnings by @cljoly in #42
- Add support for tokio-rusqlite by @czocher in #29
- Fix clippy pedantic warnings by @czocher in #44
- Fix problems and improve tests according to
cargo mutants
by @czocher in #47 - Fix
AsyncMigrations::new
documentation by @czocher in #50 - Fix example test by @czocher in #49
- doc: add thanks to Migadu by @cljoly in #48
- Attempt to implement coverage reports by @cljoly in #52
- test: attempt to use nightly test coverage in CI by @cljoly in #54
- Tweak coverage parameters by @cljoly in #55
- Change runner to
tarpaulin
by @czocher in #57 - test: ensure smooth error conversion from rusqlite by @cljoly in #58
- Update GitHub actions to newer versions by @czocher in #60
- test: test Eq implementations by @cljoly in #59
- Add coveralls badge to README by @cljoly in #53
- Additional async tests by @czocher in #61
- Create CODEOWNERS file by @cljoly in #62
- doc: make sure the README is displayed on sr.ht by @cljoly in #63
- doc: explain cargo sync-readme to contributors by @cljoly in #65
- doc: remove a badge from README by @cljoly in #66
- refactor: misc. style and robustness improvements by @cljoly in #67
- doc: add changelog entry for 1.0.2 by @cljoly in #72
- Add a feature to load migrations from a directory by @czocher in #51
- Documentation improvements by @cljoly in #79
- Add benchmarks by @cljoly in #80
- refactor: improve the performance of from_directory by @cljoly in #77
- refactor!: deprecate
Migrations::from_iter
by @cljoly in #81 - fix: gitignore some Tarpaulin artefacts by @cljoly in #82
- fix: fix some clippy pedantic warnings by @cljoly in #83
- doc: make the deps badge more accurate by @cljoly in #89
- Migrate to the newest tokio-rusqlite by @czocher in #87
- Fix ConnectionClosed mapping by @czocher in #90
- Replace BTreeMap with Vec by @czocher in #92
- chore(deps): update criterion requirement from 0.4 to 0.5 by @dependabot in #88
- Improve edit api by @czocher in #91
- Require new version of rusqlite by @czocher in #93
- Remove unnecessary dead_code markers by @czocher in #94
- Update Changelog by @cljoly in #96
- Extract test helper methods by @czocher in #100
- chore: bump cargo version by @cljoly in #102
- Fix cargo-mutants in CI by @cljoly in #104
- doc: remove cargo-sync-readme by @cljoly in #105
- doc: misc. improvements by @cljoly in #103
- Make down migrations respect the
foreign_key_check
setting by @czocher in #99 - Fix typos in the project by @czocher in #106
- Update
rusqlite
by @czocher in #109 - chore: refactor cargo manifests and add pkg by @cljoly in #111
- Update documentation and Changelog by @cljoly in #114
- Don't pin to exact rusqlite version by @fkrull in #120
- Stop installing an old cargo mutants in CI by @cljoly in #116
- Multi errors fkc by @cljoly in #118
- doc: mention cargo-insta in the Readme by @cljoly in #119
- doc: make docs.rs show features by @cljoly in #121
- test: fix formatting and add more snapshots by @cljoly in #122
- doc: make it clear that the async feature is alpha by @cljoly in #123
- Add tests to preserve API compatibility by @cljoly in #124
- doc: Update changelog for version 1.1.0 Beta 1 by @cljoly in #125
- doc: Prepare changelog for version 1.1.0 by @cljoly in #128
New Contributors
- @fkaa made their first contribution in #19
- @Jokler made their first contribution in #20
- @matze made their first contribution in #28
- @czocher made their first contribution in #32
- @fkrull made their first contribution in #120
Full Changelog: v1.0.0...v1.1.0
Version 1.1.0 Beta 1
Summing up all the changes from the previous Alpha versions.
Minimum Rust Version
Rust 1.70
New Features
- Support for tokio-rusqlite behind the feature named
alpha-async-tokio-rusqlite
thanks to @czocher. See the example. This feature is alpha, meaning that compatibility in future minor versions is not guaranteed. - Create migrations from directories holding SQL files thanks to @czocher. See the example.
- Add up/down hooks to run custom Rust code during migrations (PR thanks to @matze)
- Add foreign_key_check method to migrations (PR thanks to @Jokler)
- Make
Migration
functions const (PR thanks to @fkaa) - Make
Migrations
serializable (using the Debug serializer) with insta.
Depreciation
- Mark
Migrations::from_iter
as deprecated
Other
- Documentation improvements
- Repository metadata improvements
- Code quality improvements
- Introduce cargo mutants & fix bugs found
- Clippy warning fixes and other linter improvements
- Report on test coverage & improve test coverage
- Add benchmarks
- Made errors returned more precise
- Updated dependencies
See also
Rusqlite was updated from 0.29.0 to 0.30.0. Please see its release notes
What's Changed
- Update Changelog by @cljoly in #96
- Extract test helper methods by @czocher in #100
- chore: bump cargo version by @cljoly in #102
- Fix cargo-mutants in CI by @cljoly in #104
- doc: remove cargo-sync-readme by @cljoly in #105
- doc: misc. improvements by @cljoly in #103
- Make down migrations respect the
foreign_key_check
setting by @czocher in #99 - Fix typos in the project by @czocher in #106
- Update
rusqlite
by @czocher in #109 - chore: refactor cargo manifests and add pkg by @cljoly in #111
- Update documentation and Changelog by @cljoly in #114
- Don't pin to exact rusqlite version by @fkrull in #120
- Stop installing an old cargo mutants in CI by @cljoly in #116
- Multi errors fkc by @cljoly in #118
- doc: mention cargo-insta in the Readme by @cljoly in #119
- doc: make docs.rs show features by @cljoly in #121
- test: fix formatting and add more snapshots by @cljoly in #122
- doc: make it clear that the async feature is alpha by @cljoly in #123
- Add tests to preserve API compatibility by @cljoly in #124
New Contributors
Full Changelog: v1.1.0-alpha.2...v1.1.0-beta.1
Version 1.1.0 Alpha 2
Minimum Rust Version
Rust 1.64
New Features
- Create migrations from directories holding SQL files. See the example.
Depreciation
- Mark
Migrations::from_iter
as deprecated
Other
- Documentation improvements
- Code quality improvements
- Introduce cargo mutants & fix bugs found
- Clippy warning fixes
- Report on test coverage & improve test coverage
- Add benchmarks
- Made errors returned more precise
- Update dependencies
What's Changed
- Fix pedantic warnings by @matze in #38
- Follow-up on clippy pedantic warnings by @cljoly in #42
- Add support for tokio-rusqlite by @czocher in #29
- Fix clippy pedantic warnings by @czocher in #44
- Fix problems and improve tests according to
cargo mutants
by @czocher in #47 - Fix
AsyncMigrations::new
documentation by @czocher in #50 - Fix example test by @czocher in #49
- doc: add thanks to Migadu by @cljoly in #48
- Attempt to implement coverage reports by @cljoly in #52
- test: attempt to use nightly test coverage in CI by @cljoly in #54
- Tweak coverage parameters by @cljoly in #55
- Change runner to
tarpaulin
by @czocher in #57 - test: ensure smooth error conversion from rusqlite by @cljoly in #58
- Update GitHub actions to newer versions by @czocher in #60
- test: test Eq implementations by @cljoly in #59
- Add coveralls badge to README by @cljoly in #53
- Additional async tests by @czocher in #61
- Create CODEOWNERS file by @cljoly in #62
- doc: make sure the README is displayed on sr.ht by @cljoly in #63
- doc: explain cargo sync-readme to contributors by @cljoly in #65
- doc: remove a badge from README by @cljoly in #66
- refactor: misc. style and robustness improvements by @cljoly in #67
- doc: add changelog entry for 1.0.2 by @cljoly in #72
- Add a feature to load migrations from a directory by @czocher in #51
- Documentation improvements by @cljoly in #79
- Add benchmarks by @cljoly in #80
- refactor: improve the performance of from_directory by @cljoly in #77
- refactor!: deprecate
Migrations::from_iter
by @cljoly in #81 - fix: gitignore some Tarpaulin artefacts by @cljoly in #82
- fix: fix some clippy pedantic warnings by @cljoly in #83
- doc: make the deps badge more accurate by @cljoly in #89
- Migrate to the newest tokio-rusqlite by @czocher in #87
- Fix ConnectionClosed mapping by @czocher in #90
- Replace BTreeMap with Vec by @czocher in #92
- chore(deps): update criterion requirement from 0.4 to 0.5 by @dependabot in #88
- Improve edit api by @czocher in #91
- Require new version of rusqlite by @czocher in #93
- Remove unnecessary dead_code markers by @czocher in #94
Full Changelog: v1.1.0-alpha.1...v1.1.0-alpha.2
Release v1.0.2
Bug fix
- fix: adapt to rusqlite 0.29 and tighten dependency requirements for rusqlite (see this discussion). Thanks to @johnbcodes for flagging this!