Minor Changes
-
#6126
18c105b
Thanks @IRCody! - feature: Add 'cloudchamber curl' commandAdds a cloudchamber curl command which allows easy access to arbitrary cloudchamber API endpoints.
-
#6649
46a91e7
Thanks @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 pipeline
wrangler pipelines list
: List current pipelines
wrangler pipelines show <pipeline>
: Show a pipeline configuration
wrangler pipelines update <pipeline>
: Update a pipeline
wrangler 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
6471090
Thanks @dario-piotrowicz! - fix: Add hyperdrive binding support ingetPlatformProxy
example:
# 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 theconnect
methods, all the other values point to the
same db connection specified in the user configuration -
#6620
ecdfabe
Thanks @petebacondarwin! - fix: don't warn aboutnode:async_hooks
ifnodejs_als
is setFixes #6011
-
Updated dependencies [
5936282
,6471090
]:- miniflare@3.20240821.2