Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 28, 2022
1 parent b2c2c2b commit 93bbb52
Show file tree
Hide file tree
Showing 25 changed files with 99 additions and 161 deletions.
12 changes: 0 additions & 12 deletions .changeset/big-tables-judge.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/curly-bulldogs-shake.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/fast-yaks-kiss.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/forty-doors-argue.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/lemon-olives-sip.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-cheetahs-tan.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/purple-files-camp.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rotten-radios-wink.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/rude-radios-buy.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/shiny-avocados-smoke.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/shiny-brooms-exercise.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/slow-pianos-impress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/small-needles-wash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-birds-care.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/spotty-onions-exist.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/swift-bobcats-joke.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tall-jobs-shave.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/thick-meals-itch.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/thirty-eagles-add.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-poems-run.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-pens-shake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/witty-jokes-invite.md

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

101 changes: 97 additions & 4 deletions packages/wrangler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,98 @@
# wrangler

## 2.0.16

### Patch Changes

- [#992](https://github.com/cloudflare/wrangler2/pull/992) [`ee6b413`](https://github.com/cloudflare/wrangler2/commit/ee6b4138121b200c86566b61fdb01495cb05947b) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix: add warning to `fetch()` calls that will change the requested port

In Workers published to the Edge (rather than previews) there is a bug where a custom port on a downstream fetch request is ignored, defaulting to the standard port.
For example, `https://my.example.com:668` will actually send the request to `https://my.example.com:443`.

This does not happen when using `wrangler dev` (both in remote and local mode), but to ensure that developers are aware of it this change displays a runtime warning in the console when the bug is hit.

Closes #1320

* [#1213](https://github.com/cloudflare/wrangler2/pull/1213) [`1bab3f6`](https://github.com/cloudflare/wrangler2/commit/1bab3f6923c1d205c3a3bc9ee490adf20245cb21) Thanks [@threepointone](https://github.com/threepointone)! - fix: pass `routes` to `dev` session

We can pass routes when creating a `dev` session. The effect of this is when you visit a path that _doesn't_ match the given routes, then it instead does a fetch from the deployed worker on that path (if any). We were previously passing `*/*`, i.e, matching _all_ routes in dev; this fix now passes configured routes instead.

- [#1355](https://github.com/cloudflare/wrangler2/pull/1355) [`61c31a9`](https://github.com/cloudflare/wrangler2/commit/61c31a980a25123e96f5f69277d74997118eb323) Thanks [@wgyt](https://github.com/wgyt)! - fix: Fallback to non-interactive mode on error

If the terminal isn't a TTY, fallback to non-interactive mode instead of throwing an error. This makes it so users of Bash on Windows can pipe to wrangler without an error being thrown.

resolves #1303

* [#1337](https://github.com/cloudflare/wrangler2/pull/1337) [`1d778ae`](https://github.com/cloudflare/wrangler2/commit/1d778ae16c432166b39dd6435a4bab49a2248e06) Thanks [@JacobMGEvans](https://github.com/JacobMGEvans)! - polish: bundle reporter was not printing during publish errors

The reporter is now called before the publish API call, printing every time.

resolves #1328

- [#1335](https://github.com/cloudflare/wrangler2/pull/1335) [`49cf17e`](https://github.com/cloudflare/wrangler2/commit/49cf17e6e605f2b446fea01d158d7ddee49a22b9) Thanks [@JacobMGEvans](https://github.com/JacobMGEvans)! - feat: resolve `--assets` cli arg relative to current working directory

Before we were resolving the Asset directory relative to the location of `wrangler.toml` at all times.
Now the `--assets` cli arg is resolved relative to current working directory.

resolves #1333

* [#1342](https://github.com/cloudflare/wrangler2/pull/1342) [`6426625`](https://github.com/cloudflare/wrangler2/commit/6426625805a9e9ce37029454e37bb3dd7d05837c) Thanks [@rozenmd](https://github.com/rozenmd)! - polish: split dev function out of index.tsx

- [#1344](https://github.com/cloudflare/wrangler2/pull/1344) [`7ba19fe`](https://github.com/cloudflare/wrangler2/commit/7ba19fe925f6de5acddf94bb065b19245cc5b887) Thanks [@rozenmd](https://github.com/rozenmd)! - polish: move init into its own file

* [#1278](https://github.com/cloudflare/wrangler2/pull/1278) [`8201733`](https://github.com/cloudflare/wrangler2/commit/820173330031acda5d2cd5c1b7bca58209a6ddff) Thanks [@Maximo-Guk](https://github.com/Maximo-Guk)! - Throw error if user attempts to use config with pages

- [#1348](https://github.com/cloudflare/wrangler2/pull/1348) [`eb948b0`](https://github.com/cloudflare/wrangler2/commit/eb948b09930b3a0a39cd66638cc36e61c73fef55) Thanks [@threepointone](https://github.com/threepointone)! - polish: add an experimental warning if `--assets` is used

We already have a warning when `config.assets` is used, this adds it for the cli argument as well.

* [#1326](https://github.com/cloudflare/wrangler2/pull/1326) [`12f2703`](https://github.com/cloudflare/wrangler2/commit/12f2703c5130524f95df823dc30358ad51584759) Thanks [@timabb031](https://github.com/timabb031)! - fix: show console.error/console.warn logs when using `dev --local`.

Prior to this change, logging with console.error/console.warn in a Worker wouldn't output anything to the console when running in local mode. This was happening because stderr data event handler was being removed after the `Debugger listening...` string was found.

This change updates the stderr data event handler to forward on all events to `process.stderr`.

Closes #1324

- [#1309](https://github.com/cloudflare/wrangler2/pull/1309) [`e5a6aca`](https://github.com/cloudflare/wrangler2/commit/e5a6aca696108cda8c3890b8ce2ec44c6cc09a0e) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - style: convert all source code indentation to tabs

Fixes #1298

* [#1365](https://github.com/cloudflare/wrangler2/pull/1365) [`b9f7200`](https://github.com/cloudflare/wrangler2/commit/b9f7200afdfd2dbfed277fbb3c29ddbdaaa969da) Thanks [@threepointone](https://github.com/threepointone)! - fix: normalise `account_id = ''` to `account_id: undefined`

In older templates, (i.e made for wrangler 1.x), `account_id =''` is considered as a valid input, but then ignored. With wrangler 2, when running wrangler dev, we log an error, but it fixes itself after we get an account id. Much like https://github.com/cloudflare/wrangler2/issues/1329, the fix here is to normalise that value when we see it, and replace it with `undefined` while logging a warning.

This fix also tweaks the messaging for a blank route value to suggest some user action.

- [#1363](https://github.com/cloudflare/wrangler2/pull/1363) [`b2c2c2b`](https://github.com/cloudflare/wrangler2/commit/b2c2c2b86278734f9ddf398dbb93c06ffcc0d5b0) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix: display email from process env in whoami and display better error when lacking permissions

* [#1343](https://github.com/cloudflare/wrangler2/pull/1343) [`59a83f8`](https://github.com/cloudflare/wrangler2/commit/59a83f8ff4fc1bffcf049ad4795d3539d25f9eb8) Thanks [@rozenmd](https://github.com/rozenmd)! - polish: split generate into its own file

- [#1300](https://github.com/cloudflare/wrangler2/pull/1300) [`dcffc93`](https://github.com/cloudflare/wrangler2/commit/dcffc931d879b0332571ae8ee0c9d4e14c5c3064) Thanks [@threepointone](https://github.com/threepointone)! - feat: `publish --no-build`

This adds a `--no-build` flag to `wrangler publish`. We've had a bunch of people asking to be able to upload a worker directly, without any modifications. While there are tradeoffs to this approach (any linked modules etc won't work), we understand that people who need this functionality are aware of it (and the usecases that have presented themselves all seem to match this).

* [#1297](https://github.com/cloudflare/wrangler2/pull/1297) [`40036e2`](https://github.com/cloudflare/wrangler2/commit/40036e22214cc2eaa6fd1f6f977b8bcf38d0ca9e) Thanks [@threepointone](https://github.com/threepointone)! - feat: implement `config.define`

This implements `config.define`. This lets the user define a map of keys to strings that will be substituted in the worker's source. This is particularly useful when combined with environments. A common usecase is for values that are sent along with metrics events; environment name, public keys, version numbers, etc. It's also sometimes a workaround for the usability of module env vars, which otherwise have to be threaded through request function stacks.

- [`8d68226`](https://github.com/cloudflare/wrangler2/commit/8d68226fe892530eb9e981f06ac8e1ae00d5bab1) Thanks [@threepointone](https://github.com/threepointone)! - feat: add support for pubsub commands (via @elithrar and @netcli in https://github.com/cloudflare/wrangler2/pull/1314)

* [#1351](https://github.com/cloudflare/wrangler2/pull/1351) [`c770167`](https://github.com/cloudflare/wrangler2/commit/c770167c8403c6c157cdad91e4f2bd2b1f571df2) Thanks [@geelen](https://github.com/geelen)! - feat: add support for CLOUDFLARE_API_KEY + CLOUDFLARE_EMAIL to authorise

This adds support for using the CLOUDFLARE_API_KEY + CLOUDFLARE_EMAIL env vars for authorising a user. This also adds support for CF_API_KEY + CF_EMAIL from wrangler 1, with a deprecation warning.

- [#1352](https://github.com/cloudflare/wrangler2/pull/1352) [`4e03036`](https://github.com/cloudflare/wrangler2/commit/4e03036d72ec831036f0f6223d803be99282022f) Thanks [@JacobMGEvans](https://github.com/JacobMGEvans)! - bugfix: Allow route setting to be `""`
Previously Wrangler1 behavior had allowed for `route = ""`. To keep parity it will be possible to set `route = ""` in the config file and represent not setting a route, while providing a warning.

resolves #1329

* [`4ad084e`](https://github.com/cloudflare/wrangler2/commit/4ad084ef093e39eca4752c615bf19e6479ae448c) Thanks [@sbquinlan](https://github.com/sbquinlan)! - feature By @sbquinlan: Set "upstream" miniflare option when running dev in local mode

- [#1274](https://github.com/cloudflare/wrangler2/pull/1274) [`5cc0772`](https://github.com/cloudflare/wrangler2/commit/5cc0772bb8c358c0f39085077ff676dc6738efd3) Thanks [@Maximo-Guk](https://github.com/Maximo-Guk)! - Added .dev.vars support for pages

* [#1349](https://github.com/cloudflare/wrangler2/pull/1349) [`ef9dac8`](https://github.com/cloudflare/wrangler2/commit/ef9dac84d4b4c54d0a7d7df002ae8f0117ef0400) Thanks [@rozenmd](https://github.com/rozenmd)! - polish: move preview into its own file

## 2.0.15

### Patch Changes
Expand Down Expand Up @@ -481,9 +574,9 @@ And in your worker, you can call it like so:

```js
export default {
fetch(req, env, ctx) {
return env.MYWORKER.fetch(new Request("http://domain/some-path"));
}
fetch(req, env, ctx) {
return env.MYWORKER.fetch(new Request("http://domain/some-path"));
}
};
```

Expand Down Expand Up @@ -1449,7 +1542,7 @@ Fixes https://github.com/cloudflare/wrangler2/issues/1026
```jsx
import SomeDependency from "some-dependency.js";
addEventListener("fetch", event => {
// ...
// ...
});
```

Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wrangler",
"version": "2.0.15",
"version": "2.0.16",
"author": "wrangler@cloudflare.com",
"description": "Command-line interface for all things Cloudflare Workers",
"bin": {
Expand Down

0 comments on commit 93bbb52

Please sign in to comment.