Wrangler
Patch Changes
#6744
e3136f9Thanks @petebacondarwin! - chore: update unenv dependency version#6749
9a06f88Thanks @CarmenPopoviciu! - fix: Throw error when attempting to configure Workers with assets and tail consumersTail Workers are currently not supported for Workers with assets. This commit ensures we throw a corresponding error if users are attempting to configure
tail_consumersvia their configuration file, for a Worker with assets. This validation is applied for allwrangler dev,wrangler deploy,wrangler versions upload.#6746
0deb42bThanks @GregBrimble! - fix: Fix assets upload message to correctly report number of uploaded assets#6745
6dbbb88Thanks @jonesphillip! - fix: r2 bucket notification get <bucket_name> has been marked deprecated in favor of r2 bucket notification list <bucket_name> to reflect behavior.Updated dependencies [
2407c41]:
Patch Changes
#6706
1c42466Thanks @jkoe-cf! - fix: making explicit to only send a body if there are rule ids specified in the config delete#6714
62082aaThanks @OilyLime! - fix: rough edges when creating and updating Hyperdrive over Access configs#6705
ea60a52Thanks @emily-shen! - fix: include compatability date in static-asset only uploads (experimental feature)
Patch Changes
- Updated dependencies [
7a8bb17]:- @cloudflare/workers-shared@0.5.3
- miniflare@3.20240909.1
Patch Changes
- Updated dependencies [
31bfd37,5d8547e]:- @cloudflare/workers-shared@0.5.2
- miniflare@3.20240909.1
Minor Changes
#6643
f30c61fThanks @WalshyDev! - feat: add "Deployment alias URL" towrangler pages deployif an alias is available for this deployment.#6415
b27b741Thanks @irvinebroque! - chore: Redirectwrangler generate [template name]andwrangler inittonpm create cloudflare#6647
d68e8c9Thanks @joshthoward! - feat: Configure SQLite backed Durable Objects in local dev#6696
0a9e90aThanks @penalosa! - feat: SupportWRANGLER_CI_MATCH_TAGenvironment variable.When set, this will ensure that
wrangler deployandwrangler versions uploadonly deploy to Workers which match the provided tag.#6702
aa603abThanks @hhoughgg! - feat: Hidewrangler pipelinesuntil release
Patch Changes
#6699
2507304Thanks @joshthoward! - fix: Bugs when warning users using SQLite in Durable Objects in remote dev#6693
0737e0fThanks @GregBrimble! - fix: Persist Workers Assets when doingwrangler versions secrets put/bulkUpdated dependencies [
d68e8c9,fed1fda]:- miniflare@3.20240909.1
- @cloudflare/workers-shared@0.5.1
Minor Changes
#6674
831f892Thanks @andyjessop! - feat: Added new [[pipelines]] bindings. This creates a new binding that allows sending events to the specified pipeline.Example:
[[pipelines]] binding = "MY_PIPELINE" pipeline = "my-pipeline"
#6668
88c40beThanks @zebp! - feature: add observability setting to wrangler.tomlAdds the
observabilitysetting which provides your Worker with automatic persistent logs that can be searched, filtered, and queried directly from the Workers dashboard.#6679
2174127Thanks @jkoe-cf! - feat: adding option to specify a rule within the config to delete (if no rules are specified, all rules get deleted)#6666
4107f57Thanks @threepointone! - feat: support analytics engine in local/remote devThis adds "support" for analytics engine datasets for
wrangler dev. Specifically, it simply mocks the AE bindings so that they exist while developing (and don't throw when accessed).This does NOT add support in Pages, though we very well could do so in a similar way in a followup.
#6640
8527675Thanks @petebacondarwin! - feat: experimental workers assets can be ignored by adding a .assetsignore fileThis file can be added to the root of the assets directory that is to be uploaded alongside the Worker when using
experimental_assets.The file follows the
.gitignoresyntax, and any matching paths will not be included in the upload.#6652
648cfddThanks @bthwaites! - feat: Update R2 Get Event Notification response, display, and actions#6625
8dcd456Thanks @maxwellpeterson! - feature: Add support for placement hintsAdds the
hintfield to smart placement configuration. When set, placement hints will be used to decide where smart-placement-enabled Workers are run.#6631
59a0072Thanks @emily-shen! - feat: Add config options 'html_handling' and 'not_found_handling' to experimental_asset field in wrangler.toml
Patch Changes
#6621
6523db2Thanks @emily-shen! - fix: Validateroutesinwrangler devandwrangler deployfor Workers with assetsWe want wrangler to error if users are trying to deploy a Worker with assets, and routes with a path component.
All Workers with assets must have either:
- custom domain routes
- pattern routes which have no path component (except for the wildcard splat) "some.domain.com/*"
#6687
7bbed63Thanks @GregBrimble! - fix: Fix asset upload count messaging#6628
33cc0ecThanks @GregBrimble! - chore: Improves messaging when uploading assets#6671
48eeff4Thanks @jkoe-cf! - fix: Update R2 Create Event Notification response#6618
67711c2Thanks @GregBrimble! - fix: Switch to multipart/form-data upload format for Workers AssetsThis has proven to be much more reliable.
Updated dependencies [
3f5b934,59a0072]:- miniflare@3.20240909.0
- @cloudflare/workers-shared@0.5.0
Minor Changes
#6126
18c105bThanks @IRCody! - feature: Add 'cloudchamber curl' commandAdds a cloudchamber curl command which allows easy access to arbitrary cloudchamber API endpoints.
#6649
46a91e7Thanks @andyjessop! - feature: Integrate the Cloudflare Pipelines product into wrangler.Cloudflare Pipelines is a product that handles the ingest of event streams into R2. This feature integrates various forms of managing pipelines.
Usage:
wrangler pipelines create <pipeline>: Create a new pipelinewrangler pipelines list: List current pipelineswrangler pipelines show <pipeline>: Show a pipeline configurationwrangler pipelines update <pipeline>: Update a pipelinewrangler pipelines delete <pipeline>: Delete a pipelineExamples: wrangler pipelines create my-pipeline --r2 MY_BUCKET --access-key-id "my-key" --secret-access-key "my-secret" wrangler pipelines show my-pipeline wrangler pipelines delete my-pipline
Patch Changes
#6612
6471090Thanks @dario-piotrowicz! - fix: Add hyperdrive binding support ingetPlatformProxyexample:
# wrangler.toml [[hyperdrive]] binding = "MY_HYPERDRIVE" id = "000000000000000000000000000000000" localConnectionString = "postgres://user:pass@127.0.0.1:1234/db"// index.mjs import postgres from "postgres"; import { getPlatformProxy } from "wrangler"; const { env, dispose } = await getPlatformProxy(); try { const sql = postgres( // Note: connectionString points to `postgres://user:pass@127.0.0.1:1234/db` not to the actual hyperdrive // connection string, for more details see the explanation below env.MY_HYPERDRIVE.connectionString, ); const results = await sql`SELECT * FROM pg_tables`; await sql.end(); } catch (e) { console.error(e); } await dispose();Note: the returned binding values are no-op/passthrough that can be used inside node.js, meaning that besides direct connections via the
connectmethods, all the other values point to the same db connection specified in the user configuration#6620
ecdfabeThanks @petebacondarwin! - fix: don't warn aboutnode:async_hooksifnodejs_alsis setFixes #6011