Skip to content

release 1.0.0-rc.2 - #29

Merged
jaemk merged 1 commit into
mainfrom
260718.pre-1.0-rc2
Jul 19, 2026
Merged

jaemk merged 1 commit into
mainfrom
260718.pre-1.0-rc2

Conversation

@jaemk

@jaemk jaemk commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Pre-1.0 API cleanup for the 1.0.0-rc.2 release.

Breaking

  • Settings builders (SqliteSettingsBuilder/PostgresSettingsBuilder/MySqlSettingsBuilder) and SettingsFileInitializer use owned self builder chains (setters take/return Self), unifying them with the migration builders. build(&self) is unchanged. with_*_options take the builder by value.
  • Migrator setters (direction/force/fake/all/show_output/synchronized) take/return owned self. with_config/apply unchanged.
  • MigrationStatus fields tag/applied are private; read them via the tag() and applied() accessors.
  • DbKind and ForceMode are now #[non_exhaustive], so downstream matches need a wildcard arm. This lets future backends and force modes land without a breaking change.
  • Config stays &mut self (it is a live-connection handle, not a builder).

These are source-compatible for existing chained call sites; only two-statement builder patterns and exhaustive matches need updating.

Added

  • --no-sync on apply and redo disables the cross-process advisory lock, for runs serialized by an external mechanism. On redo it covers both the down and up runs.

Other

  • Bump both crates to 1.0.0-rc.2; update changelogs, specs, docs, and the regenerated migrant_lib/README.md.
  • Backfill the missing v0.14.0/v0.15.0/v0.15.1 git tags (resolves Missing tag for v0.14 #19).

- settings builders and `Migrator` now use owned `self` chains
- `SettingsFileInitializer::with_*_options` take the builder by value
- `MigrationStatus` fields are private; use `tag()`/`applied()` accessors
- `DbKind` and `ForceMode` are now `#[non_exhaustive]`
- add `--no-sync` to `apply`/`redo` to disable the advisory lock
- keep `Config` on `&mut self`
@jaemk
jaemk merged commit 74523d9 into main Jul 19, 2026
5 checks passed
@jaemk
jaemk deleted the 260718.pre-1.0-rc2 branch July 27, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing tag for v0.14

1 participant