# Room 2.4.0-alpha02 - Product: Room (https://whatsnew.fyi/product/room) - Vendor: Google - Date: 2021-05-05 - Version: 2.4.0-alpha02 - Original notes: https://developer.android.com/jetpack/androidx/releases/room - Permalink: https://whatsnew.fyi/product/room/releases/2.4.0-alpha02 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: release facts (products, versions, dates, links, CVE ids and flags) are open data under CC BY 4.0, from the API at https://whatsnew.fyi/api/v1 or the nightly dataset at https://github.com/whatsnew-fyi/dataset. The summaries, labels and curation are © What's New: quote freely with attribution and a link back; wholesale republication of them is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Add @ProvidedAutoMigrationSpec, a new API for declaring that an AutoMigrationSpec will be provided at runtime via RoomDatabase.Builder#addAutoMigrationSpec() - **fixed** — Fix auto migrations where @DatabaseViews were not being properly re-created - **fixed** — Fix Room's JournalMode.TRUNCATE where the InvalidationTracker callback was sometimes invoked invalidly, too late, or not at all @ProvidedAutoMigrationSpec is a new API for declaring that an AutoMigrationSpec will be provided at runtime via RoomDatabase.Builder#addAutoMigrationSpec(). This allows for a dependency injection framework to provide such specs when they need complex dependencies. Fix an issue with auto migrations where @DatabaseViews where not being properly re-created. Fix an issue in Room’s JournalMode.TRUNCATE where the InvalidationTracker callback was sometimes being invoked invalidly, too late, or not at all. Thanks to Uli Bubenheimer | bubenheimer@users.noreply.github.com ( b/154040286)