Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Releases: cloudflare/wrangler-legacy

v1.19.5

10 Nov 17:03
886fa42
Compare
Choose a tag to compare

v1.19.5

  • Features

    • add __STATIC_CONTENT_MANIFEST as a text module for modules workers - g45t345rt, pull/2126

      The __STATIC_CONTENT_MANIFEST is not accessible when using modules workers [sites]

      This pr makes it possible to import the content of manifest as text.

      It is also in favor of storing the manifest in vars
      https://github.com/cloudf
      ... truncated

  • Maintenance

    • Bump os-version to 0.2.0 - a1ien, pull/2122

      In 0.2 os-version use new stable version of plist
      In plist 1.2.2(which is not published yet) remove chrono dependency and use time 0.3 which fix part of #2117

    • Fix missing fmt argument in error message - dtolnay, pull/2118

      • The first commit fills in a missing argument to {} in config.rs. Without this, the error message would literally be 'Your token has status "{}"' with curly braces in it instead of the token status.

      • The second commit closes an incon
        ... truncated

    • Fix some migration errors - xortive, pull/2127

      • Don't include migrations in Target for preview/dev uploads
    • Fixes wrangler.toml being incorrectly inserted into existing directory - Scotsoo, pull/2110

      Fixes #2051 by passing new_name rather than name to config_path path

    • Remove serde-hjson transitive dependency - a1ien, pull/2123

      serde-hjson crate is not maintained anymore
      With removing this dependency we also remove duplicate of old serde
      Also in new version of config crate hjson also removed

    • Remove unneeded heartbeat logic with sketchy time addition - nataliescottdavidson, pull/2129

    • Remove unused eventual dependency - a1ien, pull/2119

      This also fix part of #2117

    • Update hash comment to changed XxHash64 usage - dcousens, pull/2124

      As introduced in #1221

    • use --openssl-legacy-provider flag when running node 17 - caass, pull/2116

      Closes #2108

      Node 17 uses openssl 3 by default, which is not
      compatible with webpack 4. This change adds a check to see if
      the user is running node 17, and if they are, we add the appropriate
      flag to the call to node (https://github.com/no
      ... truncated

v1.19.4

18 Oct 19:23
ecc1f1f
Compare
Choose a tag to compare
  • Features

    • Force flag for kv commands to avoid user confirmation prompt - andersquist, pull/2100

      Make it possible to override any user confirmation prompt when performing KV bulk deletes.

  • Fixes

    • Allow running wrangler dev without an account_id - jyn514, pull/2030

      Previously, running it with no account_id and no config in ~/.wrangler would give an error

    • Don't delete unused assets for sites - threepointone, pull/2096

      We have a consistency issue when after uploading a new site, it takes a while for the worker to propagate, so incoming requests will try to fetch older assets, and 404.

    • Allow host to be passed while authenticated - jspspike, pull/2091

      This also adds an --unauthenticated flag to dev and fixes bad error message

    • Fix wrangler dev session expiration - Electroid, pull/2071

      This PR fixes the issue described in #2068. API errors related to syntax or preview token return the same bad_request status code, and the changes should address these two particular cases.

    • Move TOML table fields come later than other fields - antiphoton, pull/2085

      Reorder manifest fields so that table fields (durable_objects, kv_namespaces, site) come later than string fields. The reason table fields need to come later is the same as #2037.

    • Only warn about compatibility dates on publish - Electroid, pull/2080

      Changes the compatibility date warning to only occur when using wrangler publish. We do not want this warning to be sent when using other commands like wrangler tail, etc.

v1.19.3

16 Sep 14:07
7a88634
Compare
Choose a tag to compare
  • Features

    • Generate compatibility_date in wrangler init and warn if it's missing - kentonv, pull/2070

      We'd like everyone to specify a compatibility_date in their wrangler.toml going forward. This change both adds the date automatically to newly-generated wrangler.toml files, and warns when parsing old ones that are missing it.

      See
      ... truncated

    • Implement wrangler dev --inspect - [jyn514], [pull/2016]

      Helps with #946.

      How do I use this?

      1. wrangler dev --inspect, which should have output similar to this:
      💁  watching "./"
      👂  Listening on http://127.0.0.1:8787
      [2021-07-28 13:38:20] GET worker.jnelson.workers.dev/ HTTP/
      ... truncated
      
      [jyn514]: https://github.com/jyn514
      [pull/2016]: https://github.com/cloudflare/wrangler/pull/2016
      
      
    • OAuth integration for Wrangler login - ocsfrank, pull/2048

      Still in staging, but it should be ready for review.

      Please also ignore the cargo.toml, I will update it once the service goes to prod. The CI test are failing because of oauth2 library.

    • Tagged Durable Objects Migrations - xortive, pull/1992

      fixes #1950

      This PR adds support for tagged migrations to wrangler. Migration tags are a way to ensure that you are applying the correct migration to a given script that contains a DO.

      They are also used for allowing multiple migrati
      ... truncated

  • Fixes

    • Allow showing a backtrace for errors returned from main - [jyn514], [pull/2059]

      Example usage:

      $ RUST_BACKTRACE=1 wrangler dev --inspect
      Error: missing field `prewarm` at line 1 column 627
      
      Stack backtrace:
         0: <core::result::Result<T,F> as core::ops::try_trait::FromResidual<core::result::Result<core::con
      ... truncated
      
      [jyn514]: https://github.com/jyn514
      [pull/2059]: https://github.com/cloudflare/wrangler/pull/2059
      
      
    • Fix wrangler dev session expiration - ocsfrank, pull/2071

      This PR fixes the issue described in #2068. API errors related to syntax or preview token return the same bad_request status code, and the changes should address these two particular cases.

      In the future, it would be great to update th
      ... truncated

    • fix: remove panic when send fails, log error instead - nilslice, pull/2061

      Removes the panic on send failure from the last remaining place for this particular --watch error.

v1.19.3-rc.1

10 Sep 17:36
Compare
Choose a tag to compare
1.19.3-rc.1

v1.19.2

02 Sep 15:05
8f932f6
Compare
Choose a tag to compare

v1.19.2

  • Maintenance

    • fix: override rust type to javascript - nilslice, pull/2055

      the rust type seems to only have been added as a way to automatically trigger wasm-pack, but it's much better to put that in a custom [build] step instead. eventually, we really should phase out the rust type from wrangler altogether.

      this is a side-effect of releasing the new Rust template https://github.com/cloudflare/rustwasm-worker-template

    • update crates.io badge in the readme - jim4067, pull/2052

v1.19.1

31 Aug 19:23
1f98116
Compare
Choose a tag to compare

v1.19.1

  • Fixes

    • Allow worker with no routes to be published - jspspike, pull/2024

      Fixes #1700

    • Changed devtools reconnect warning message to log info - jspspike, pull/2027

      Changed devtools reconnect warning message to log info

    • dont eat errors - caass, pull/2022

      Print the original error when we create an error report.

      This should help in debugging install errors, and other stuff where we cant report it
      due to wrangler not being installed correctly

    • Downgrade panic when no account IDs match a token to an error - jyn514, pull/2042

      I'm still not sure exactly how this could happen, and I feel there's a bug here somewhere ... but
      people are hitting this in practice (enough that someone ran wrangler report) and this will help
      the user experience in the meantime.

      ... truncated

    • Load account ID before uploading cron triggers - jyn514, pull/2023

      Fixes #2021.

    • Log bad request error details during dev - mrbbot, pull/2041

      Currently, when the edge preview service returns a 400 Bad Request error during a wrangler dev session because the user's worker is invalid, all you see is Error: HTTP status client error (400 Bad Request) for url. When calling `wrangle
      ... truncated

    • Remove build.rs - jyn514, pull/2029

      While working on tests for get_deployments() in #2023, I found that any change to
      src/settings/toml/tests/mod.rs would cause the whole Wrangler library to be rebuilt, not just the
      tests. I fo
      ... truncated

    • Small typo in error message - robertaboukhalil, pull/2031

      I came across this error message:

      Please specify your deployment routes or wrangler_dev = true inside of your configuration file

      But I think wrangler_dev should be workers_dev

  • Maintenance

    • 2032: Upgrade tar dependency - dhaynespls, pull/2033

      Fixes #2032

    • Add cargo audit and npm audit to CI - jyn514, pull/2034

      This runs:

      • On PRs that modify Cargo.toml or Cargo.lock
      • weekly

      and opens issues if either cargo or npm report an error. This does have false positives
      occasionally, especially for dev-dependencies, but catching vulnerabilities seem
      ... truncated

    • Bump assert_cmd from 1.0.7 to 2.0.0 - dependabot, pull/2019

v1.19.0

30 Jul 18:31
d2f49e2
Compare
Choose a tag to compare

v1.18.0

15 Jul 21:04
e98bb95
Compare
Choose a tag to compare

v1.18.0

  • Features

    • feat: add test for kv sync for site projects - nilslice, pull/1996

      Adds test for quickfix made in #1976.

      TODO: consider adding types for the Key / Value pairs used in this code. It's a bit confusing to rely the comparison of String types which have been considerably modified from the assumed original
      ... truncated

    • feat: add usage_model to metadata - taylorlee, pull/1961

      and remove toggling usage model after upload
      this shouldn't be merged until the upload api supports usage_model in
      metadata

    • Don't require an account_id in wrangler.toml - jyn514, pull/1966

      Helps with #331. I recommend reviewing this commit-by-commit.

      Note that unlike the suggestion in the original issue, this actually never writes to the wrangler.toml at all, which will hopefull
      ... truncated

  • Fixes

    • fix: improve error message when no deployment info is provided - nilslice, pull/1997

      Fixes #1694.

      Adds clarification and links to documentation on how the project must be configured in order to deploy it.

    • Fixed issue with tail not deserailzing event properly - jspspike, pull/1994

      Also added color to wrangler dev and wrangler tail -f pretty json outputs if deserialized properly
      Fixes #1990

    • Temporary workaround to avoid dropping a tokio::runtime while another is running - jyn514, [pull/1991]

      This fixes the following error from wrangler tail:

      $ wrangler tail
      🦚  Setting up log streaming from Worker script "test-project". Using ports 8080 and 8081.
      This may take a few seconds...
      
      Oops! wrangler encountered an error.
      ... truncated
      
      [jyn514]: https://github.com/jyn514
      [pull/1991]: https://github.com/cloudflare/wrangler/pull/1991
      
      
    • Made config add target_type to type instead of "target_type" - jspspike, pull/1988

      Fixes #1960

      We used serde to rename the target_type field to type but when making the toml ourselves we still used target_type

    • fix: use asset manifest for sync op - nilslice, pull/1976

      After #1970, the vec of assets used in the sync operation no longer included the assets that were already uploaded. this diff of assets was re-used to determine remote assets to delete, which would in turn remove files that should have re
      ... truncated

    • Remove misleading rustup install and update rust-toolchain - jyn514, pull/1968

      Previously, CI ran rustup install stable just before running lints, but didn't
      actually use the new toolchain. This removes the unneeded download and updates
      rust-toolchain to the latest stable version.

      This also fixes a bunch of cli
      ... truncated

  • Maintenance

    • Cleanup code in socket.rs - jyn514, pull/2000

      This can just use ? instead of an explicit match.

    • Tell Dependabot to only make PRs for new major versions - jyn514, pull/1987

      This avoids constant small PRs which aren't necessary. Dependabot will still
      make PRs for security updates, which is good because we keep Cargo.lock checked
      into git and Cargo will keep using yanked versions until you update Cargo.lock.

      ... truncated

v1.17.1-rc.1

29 Jun 17:17
52d71bd
Compare
Choose a tag to compare
v1.17.1-rc.1 Pre-release
Pre-release

Install via:

npm i -g @cloudflare/wrangler@beta

v1.17.1-rc.0

25 Jun 21:27
369ca48
Compare
Choose a tag to compare
v1.17.1-rc.0 Pre-release
Pre-release

This beta release is now out of date. If you previously installed this release, you should reinstall with npm i -g @cloudflare/wrangler@beta and see what's changed in the latest release.