You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, Miniflare had its own implementations of `BetaDatabase`
and `Statement`. These were subtly different to the implementations
in the D1 Wrangler shim D1JS, causing behaviour mismatches.
This change switches the implementation to use the shim, with
Miniflare implementing the underlying D1 HTTP API instead. We'll
need to do this anyway when adding D1 support to Miniflare 3 using
`workerd`.
Specific changes:
- Throw when calling `D1PreparedStatement#run()` with statements that
return data, closes#441
- Fix response envelope format, closes#442 and
cloudflare/workers-sdk#2504
- Fix binding/return of `BLOB`-typed values, closes wrangler2#2527
- Fix `D1Database#raw()` return, closescloudflare/workers-sdk#2238
(already fixed in #474)
- Add support for `D1Database#dump()`
- Run `D1Database#{batch,exec}()` statements in implicit transaction
- Only run first statement when calling
`D1PreparedStatement#{first,run,all,raw}()`
Previously, Miniflare had its own implementations of `BetaDatabase`
and `Statement`. These were subtly different to the implementations
in the D1 Wrangler shim D1JS, causing behaviour mismatches.
This change switches the implementation to use the shim, with
Miniflare implementing the underlying D1 HTTP API instead. We'll
need to do this anyway when adding D1 support to Miniflare 3 using
`workerd`.
Specific changes:
- Throw when calling `D1PreparedStatement#run()` with statements that
return data, closes#441
- Fix response envelope format, closes#442 and
cloudflare/workers-sdk#2504
- Fix binding/return of `BLOB`-typed values, closes wrangler2#2527
- Fix `D1Database#raw()` return, closescloudflare/workers-sdk#2238
(already fixed in #474)
- Add support for `D1Database#dump()`
- Run `D1Database#{batch,exec}()` statements in implicit transaction
- Only run first statement when calling
`D1PreparedStatement#{first,run,all,raw}()`
What version of
Wrangler
are you using?2.4.2
What operating system are you using?
Linux
Describe the Bug
Hello! Consider the following code:
When ran in the cloud, the response looks like this:
However then running in the local mode (
npm start -- --local --persist
), the response is different:The text was updated successfully, but these errors were encountered: