Previously, wrangler init generated a tsconfig.json with "types": ["@cloudflare/workers-types", "vitest"], even if Vitest tests weren't generated.
Unlike Jest, Vitest doesn't provide global APIs by default, so there's no need for ambient types.
#28068d462c0c Thanks @GregBrimble! - chore: Remove the --experimental-worker-bundle option from Pages Functions
#2845e3c036d7 Thanks @Cyb3r-Jak3! - feature: include .wrangler directory in gitignore template used with wrangler init
#28068d462c0c Thanks @GregBrimble! - feat: Add --outdir as an option when running wrangler pages functions build.
This deprecates --outfile when building a Pages Plugin with --plugin.
When building functions normally, --outdir may be used to produce a human-inspectable format of the _worker.bundle that is produced.
We now enable bundling by default for a functions/ folder and for an _worker.js in Pages Functions. This allows you to use external modules such as Wasm. You can disable this behavior in Direct Upload projects by using the --no-bundle argument in wrangler pages publish and wrangler pages dev.
#283642fb97e5 Thanks @GregBrimble! - fix: preserve the entrypoint filename when running wrangler publish --outdir <dir>.
Previously, this entrypoint filename would sometimes be overwritten with some internal filenames. It should now be based off of the entrypoint you provide for your Worker.
Previously, wrangler init generated a tsconfig.json with "types": ["@cloudflare/workers-types", "vitest"], even if Vitest tests weren't generated.
Unlike Jest, Vitest doesn't provide global APIs by default, so there's no need for ambient types.
#28068d462c0c Thanks @GregBrimble! - chore: Remove the --experimental-worker-bundle option from Pages Functions
#2845e3c036d7 Thanks @Cyb3r-Jak3! - feature: include .wrangler directory in gitignore template used with wrangler init
#28068d462c0c Thanks @GregBrimble! - feat: Add --outdir as an option when running wrangler pages functions build.
This deprecates --outfile when building a Pages Plugin with --plugin.
When building functions normally, --outdir may be used to produce a human-inspectable format of the _worker.bundle that is produced.
We now enable bundling by default for a functions/ folder and for an _worker.js in Pages Functions. This allows you to use external modules such as Wasm. You can disable this behavior in Direct Upload projects by using the --no-bundle argument in wrangler pages publish and wrangler pages dev.
#283642fb97e5 Thanks @GregBrimble! - fix: preserve the entrypoint filename when running wrangler publish --outdir <dir>.
Previously, this entrypoint filename would sometimes be overwritten with some internal filenames. It should now be based off of the entrypoint you provide for your Worker.
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.12.0 to 2.12.2.
Release notes
Sourced from wrangler's releases.
Changelog
Sourced from wrangler's changelog.
Commits
b0d10ab
Version Packages (#2875)5bcc333
Fix compile loop with_worker.js
andwrangler pages dev
(#2873)5af34f5
Version Packages (#2825)42fb97e
Preserve entrypoint filename when building a Worker with --outdir (#2836)8d462c0
Pages Functions Wasm cleanup (#2806)226e63f
Fix--experimental-local
withwrangler pages dev
(#2855)ad4b123
Remove ambientvitest
types from generatedtsconfig.json
s (#2839)e3c036d
Include .wrangler directory in gitignore template (#2845)2b64176
fix API token guide link (#2831)3ad1798
test(wrangler): ensure that middleware test does not write to the source dire...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)