Releases: skymethod/denoflare
v0.7.0
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli
Denoflare is now compatible with Deno 2 🦕🦕
Under the hood, it uses esbuild + esbuild-deno-loader on Deno 2.x and deno bundle on Deno 1.x.
Notable changes and new features
cfapi: New get-script-settings subcommand.deploy: Split out dash vs rest api.deploy: More read-only deploy rest api calls.cfapi: run-ai-model text-to-image.push: New version-tag option to push version instead. Api for updating allocations.tail: Update for email/overload events.examples: Update webtail with new events.push: Rewrite cloudflare:email to local stub. types: EmailMessage.push: Add send-email bindings and config.types: Hibernatable WebSockets api.types: Split off DO-specific ws extensions.tail: Support found getWebSocketEvent.serve: Make .statusText available in DenoflareResponse and over rpc.cfapi: New ai-related subcommands.cfapi: list-zone-rulesets and create-custom-error-response.site: Migrate to Deno.serve.serve: Migrate to Deno.serve.common: Bytes.formatSize now handles gb.cfapi: New queues-related subcommands.tail: Handle new scriptVersion property in payload.push: New ratelimit binding.types: Ratelimiter runtime interface.push: Command-line arg for ratelimit binding.push-lambda: Better error msg for no zip.cfapi: Query KV request/storage analytics.serve: Support requests with FormData over rpc.bundle: New bundle backend using esbuild, supporting params wasm vs native, and for module version.cli: New d1-related subcommands for data import/export and time-travel.serve: Sqlite-based d1 backend. Only pay for imports if actually used.tail: Handle new truncated property.tail: Handle new exception stack property.push: Observability.cfapi: r2 sse options for get-object/put-object.cli: d1 clear (drop all objects).push: Support for sqlite-backed DOs.serve: Support for sqlite-backed DOs in local development.serve: Default to esbuild bundle on deno2.push-lambda: Use official deno arm zips for layers when they exist.tail: Support new executionModel prop.cfapi: R2 event notification rule management.cfapi: Pipelines.serve: Support file:// urls for scripts.serve: Allow sqlite inside worker isolate, only if dosql binding exists.deploy: Expose upgradeWebSocket on deno deploy.r2: Add signAwsCallV2.bundle: Implement support for importText/etc with esbuild backend.push: New cpu-limit flag and cpuLimit script config to set max-cpu millis.tail: Handle cpu/wallTime keys. examples: Update webtail.examples: Retest all examples on Deno2.
v0.6.0
push-deploy: deploy worker to Deno Deploypush-lambda: deploy worker to AWS Lambda + public function urlpush-supabase: deploy worker to Supabase Edge Functionsexamples: New multiplat worker example, same code deployed to all four supported platformssupabase: Management API and eszip helpersdeno: Update to [email protected]aws: SES-based emailerd1: newdenoflare d1subcommandcfapi:list-ai-modelsandrun-ai-modelcfapi: Hyperdrive commands (and bindings)examples: New keyspace exampledeno: Migrate to non-deprecated assertsdeploy: Deno Deploy API + KV runtime bindingscfapi: Get account detailsconfig: Look for the newCLOUDFLARE_ACCOUNT_ID/CLOUDFLARE_API_TOKENas well as the old varsr2: Async iter overlist-objects-v2. HandleContinuationTokenin responsecli: Newdenoflare ae-proxysubcommand (a proxy endpoint to Analytics Engine more compatible with Clickhouse Grafana plugins)serve: Basic tcp socket support in local isolationconfig: Add browser binding to support the new Browser Rendering beta.
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli
v0.5.12
serve: Bare ip address https workaround not needed as of 1.33.4.config: Env var substitution in config binding and profile property resolution using${env:VAR_NAME}cfapi:list-kv-namespacesandlist-keys.deno: Update to latest [email protected].deno: Event loop workaround in rpc fetch bodies to fix #56.bundle: Unparsed bundle error output now returned as an error diagnostic.serve: Implement KVput,list,deletewhen running locally (thanks to @thebergamo!)push: Fix file import on Windows (thanks to @FaeyUmbrea!)serve: KV get type text.serve: Use profile from script config, if present.types: Add queue.sendBatch.types: Add new DO locationHint param.xml: Expose xml validation.tail: Support queue & alarm events properly.serve: Add new--local-isolationoption.config:.denoflareconfig schema: Allow Trailing Commas (thanks to @JustinGrote!)push: Optional compatibilityFlags option and script-level config property.
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli
v0.5.11
deno: Update spawn to use new Deno.Command on 1.28+.config: AddserviceEnvironmentto json schema and validation for configuring service bindings in config.push: Add support for secret key (CryptoKey) worker env variables (found here).serve: Add support for crypto key bindings.cfapi:list-worker-deploymentsandget-worker-service-metadata.xml: Ability to specify additional named entities when parsing xml.serve: Start in-memory R2 bucket implementation. Syntax =local:memory:bucketName.serve: Improve external fetch support for non-Request init with bodies.r2: Support new r2 multipart upload worker bindings.serve: Support these new r2 multipart upload worker bindings in local implementations.cfapi:create/update/delete-logpush-jobfor configuring Workers Trace Events Logpush.push: Newlogpushcommand-line flag and script config option to enable logpush for the given worker.
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli
v0.5.10
presigned-url: Example worker now supports custom domains.cli:r2 presignsupports custom domains and keypairs.push/serve: Fix regression when there is no script-level profile configured.cfapi: Newlist-user-billing-historysubcommand.deno: Update to [email protected], corresponds to latest Deno v1.27.1.cleanup: Remove js-based md5, obsolete in Deno std (implemented in wasm crypto lib) and unused in Denoflare.r2: Bucket binding now supports liststartAfter.types: AddDurableObjectStorage.sync().types:R2Bucket.delete(multiple keys), put optionsonlyIf,R2Object.checksums, and new hashes.push: Initial Queues support, bindings, config, and types.cfapi: Queues management apis.types: Migrate to a copy ofIncomingRequestCfPropertiesfrom workers-types with minimal tweaks.types: D1 bindings and local no-op stub.types:KVNamespace.getshould support no opts (defaults to text).
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli
v0.5.9
deno: Fix DedicatedWorkerGlobalScope caches error when running on Deno 1.26+.deno: Update to latest[email protected], corresponding to Deno 1.26.1.push: Actually use script-level profile in config, if present.types: Update AE binding to match production.serve: Update local r2-over-api bucket impl to latest etag requirements.public-read: Workaround for R2 S3 api no longer returningcontent-lengthingetObject.
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli
v0.5.8
bundle: Workaround removal ofDeno.Diagnosticin unstable Deno 1.25.watch: Handle file url entry paths.types: AddDurableObjectStorage.startAfter, recently added to production runtime, implement in local DO versions.serve: DO alarms, in-memory only.serve: ImplementDurableObjectStorage.listprefixand other options in local web storage DOs.push: Command-line option for Analytics Engine bindings.push: Script module import rewriter should allow'../to start relative paths.
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli
v0.5.7
public-read: Allow range computation for HEAD requests as well. (See #24)cli: cfapi get-bucket-usage-summary.analytics: Update known r2 class a and b operations.
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli
v0.5.6
compat: New spawn helper to paper over breaking result type changes to unstableDeno.spawnin Deno 1.24.denoflareshould now support running even with--checkon Deno 1.23 and Deno 1.24.
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli
v0.5.5
public-read: Bring back etag quote stripping to fix conditional requests.r2: Removexmlnsexpectation forErrorresponses to follow recent R2 production change.serve: Fix permissionless webworker build with latest Deno lib decls, remove dep tolocalStorage.public-read: New optionalallowCorsOriginsandallowCorsTypesenvironment variable bindings to configure CORS.
Installation
Follow the installation instructions on our docs page: https://denoflare.dev/cli