#2501a0e5a491 Thanks @geelen! - fix: make it possible to query d1 databases from durable objects
This PR makes it possible to access D1 from Durable Objects.
To be able to query D1 from your Durable Object, you'll need to install the latest version of wrangler, and redeploy your Worker.
For a D1 binding like:
[[d1_databases]]
binding = "DB" # i.e. available in your Worker on env.DB
database_name = "my-database-name"
database_id = "UUID-GOES-HERE"
preview_database_id = "UUID-GOES-HERE"
You'll be able to access your D1 database via env.DB in your Durable Object.
#2280ef110923 Thanks @penalosa! - Support queue and trace events in module middleware. This means that queue and trace events should work properly with the --test-scheduled flag
Currently it is not possible to import wasm modules in either Pages
Functions or Pages Advanced Mode projects.
This commit caries out work to address the aforementioned issue by
enabling wasm module imports in wrangler pages dev. As a result,
Pages users can now import their wasm modules withing their Functions
or _worker.js files, and wrangler pages dev will correctly bundle
everything and serve these "external" modules.
import hello from "./hello.wasm"
export async function onRequest() {
const module = await WebAssembly.instantiate(hello);
return new Response(module.exports.hello);
}
#2501a0e5a491 Thanks @geelen! - fix: make it possible to query d1 databases from durable objects
This PR makes it possible to access D1 from Durable Objects.
To be able to query D1 from your Durable Object, you'll need to install the latest version of wrangler, and redeploy your Worker.
For a D1 binding like:
[[d1_databases]]
binding = "DB" # i.e. available in your Worker on env.DB
database_name = "my-database-name"
database_id = "UUID-GOES-HERE"
preview_database_id = "UUID-GOES-HERE"
You'll be able to access your D1 database via env.DB in your Durable Object.
#2280ef110923 Thanks @penalosa! - Support queue and trace events in module middleware. This means that queue and trace events should work properly with the --test-scheduled flag
Currently it is not possible to import wasm modules in either Pages
Functions or Pages Advanced Mode projects.
This commit caries out work to address the aforementioned issue by
enabling wasm module imports in wrangler pages dev. As a result,
Pages users can now import their wasm modules withing their Functions
or _worker.js files, and wrangler pages dev will correctly bundle
everything and serve these "external" modules.
import hello from "./hello.wasm"
export async function onRequest() {
const module = await WebAssembly.instantiate(hello);
return new Response(module.exports.hello);
}
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps wrangler from 2.8.0 to 2.8.1.
Release notes
Sourced from wrangler's releases.
... (truncated)
Changelog
Sourced from wrangler's changelog.
... (truncated)
Commits
0697f28
Version Packages (#2561)fbeaf60
feat: Add support for wasm module imports inwrangler pages dev
(#2554)6085688
fix: make d1 warning stand out more (#2587)69d379a
feat(api): Adds unstable_pages module to JS API (#2526)7950d51
add test to cover d1-do facade (#2578)a0e5a49
Pipe through the DO bindings to get shimmed (#2501)5ba3956
fix: Copy module imports related files to outdir (#2563)5c1c93b
Fix flakey Pages publish test (#2572)080d976
MSW fetchResult abstraction (#2556)b910f64
Add metrics towrangler deployments
(#2558)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)