Skip to content

Conversation

@mgoldenberg
Copy link
Owner

@mgoldenberg mgoldenberg commented Sep 7, 2025

This is a pull request for checking that all C.I. tests are passing. The real pull request exists in Alorel#72.

…pgrade needed callback

BREAKING CHANGE: The callback provided to
`OpenDbRequestBuilder::with_on_upgrade_needed` must now accept a
reference to a `Transaction` rather than a `Database`. For most cases,
existing code can be made compatible by calling `Transaction::database`
in order to get access to the underlying database. The caveat is that
the `Transaction::database` provides a reference, rather than ownership
of the `Database`.
…back

BREAKING CHANGE: `AsyncFnOnce` was stabilized in version 1.85.0 of Rust,
so the MSRV had to be bumped to accommodate this. Additionally,
synchronous closures that use `async move` blocks are not drop-in
replacements for `async` closures, so users of
`OpenDbRequestBuilder::with_on_upgrade_needed_fut` will have to make minor
changes to their invocations.
…sync upgrade needed callback

BREAKING CHANGE: The callback provided to
`OpenDbRequestBuilder::with_on_upgrade_needed_fut` must now accept a
reference to a `Transaction` rather than a `Database`. For most cases,
existing code can be made compatible by calling `Transaction::database`
in order to get access to the underlying database. The caveat is that
the `Transaction::database` provides a reference, rather than ownership
of the `Database`.
@mgoldenberg mgoldenberg force-pushed the expose-version-change-transaction-changes branch from 282fb69 to 4047942 Compare September 7, 2025 14:39
@mgoldenberg mgoldenberg force-pushed the expose-version-change-transaction-changes branch from 3d1b196 to 7322370 Compare September 7, 2025 18:58
For some reason, calling `TransactionSys::do_commit` in the `Drop`
implementation of `Transaction` causes tests in a headless Chrome
browser to hang, even though they pass in a non-headless context.
Ultimately, the default behavior on the JavaScript end is for the
transaction to be committed, so it is safe to exclude this action.
@mgoldenberg mgoldenberg force-pushed the expose-version-change-transaction-changes branch from 7322370 to 9571c47 Compare September 7, 2025 19:07
@mgoldenberg mgoldenberg closed this Sep 7, 2025
@mgoldenberg mgoldenberg deleted the expose-version-change-transaction-changes branch September 7, 2025 19:29
@mgoldenberg mgoldenberg changed the title Expose version change transaction changes Provide access to active transaction in callback provided to OpenDbRequestBuilder::with_on_upgrade_needed{_fut} Sep 7, 2025
@mgoldenberg mgoldenberg changed the title Provide access to active transaction in callback provided to OpenDbRequestBuilder::with_on_upgrade_needed{_fut} TEST: Provide access to active transaction in callback provided to OpenDbRequestBuilder::with_on_upgrade_needed{_fut} Sep 7, 2025
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.

2 participants