Skip to content

Version 1.1.0

Compare
Choose a tag to compare
@cljoly cljoly released this 17 Dec 14:11
· 34 commits to master since this release

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-rusqlitethanks 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

Full Changelog: v1.0.0...v1.1.0