Skip to content

Commit

Permalink
Version Packages (#2005)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Oct 17, 2022
1 parent 4ad48e4 commit 6c8d013
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 109 deletions.
9 changes: 0 additions & 9 deletions .changeset/empty-vans-sneeze.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/few-donuts-own.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/funny-ties-serve.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/gold-ghosts-give.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/loud-teachers-own.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/nice-cameras-march.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/tidy-lobsters-sip.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wicked-pears-train.md

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

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

13 changes: 13 additions & 0 deletions packages/pages-shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @cloudflare/pages-shared

## 0.0.9

### Patch Changes

- [#2004](https://github.com/cloudflare/wrangler2/pull/2004) [`f2d5728f`](https://github.com/cloudflare/wrangler2/commit/f2d5728fc10f1ef8298b777ffb586ff315f00a35) Thanks [@GregBrimble](https://github.com/GregBrimble)! - feat: Slightly relax the selectors for generating `Link` headers from `<link>` elements in Pages Early Hints feature

Previously, we'd only generate `Link` headers if the `rel="preload"` or `rel="preconnect"` matched exactly. Now, this change will generate `Link` headers if `preload` or `preconnect` appears as a whitespace-separated value in the `rel` attribute. For example, `rel="stylesheet preconnect"` is now valid.

For more info, check out [this GitHub issue on the Cloudflare Developer Docs repo](https://github.com/cloudflare/cloudflare-docs/pull/6183#issuecomment-1272007522).

* [#2003](https://github.com/cloudflare/wrangler2/pull/2003) [`3ed06b40`](https://github.com/cloudflare/wrangler2/commit/3ed06b4096d3ea9ed601ae05d77442e5b0217678) Thanks [@GregBrimble](https://github.com/GregBrimble)! - chore: Bump [email protected]
2 changes: 1 addition & 1 deletion packages/pages-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflare/pages-shared",
"version": "0.0.8",
"version": "0.0.9",
"repository": {
"type": "git",
"url": "https://github.com/cloudflare/wrangler2.git",
Expand Down
78 changes: 78 additions & 0 deletions packages/wrangler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,83 @@
# wrangler

## 2.1.12

### Patch Changes

- [#2023](https://github.com/cloudflare/wrangler2/pull/2023) [`d6660ce3`](https://github.com/cloudflare/wrangler2/commit/d6660ce3e26d44b4db39b149868cb850e47763f0) Thanks [@caass](https://github.com/caass)! - Display a more helpful error when trying to publish to a route in use by another worker.

Previously, when trying to publish a worker to a route that was in use by another worker,
there would be a really unhelpful message about a failed API call. Now, there's a much
nicer message that tells you what worker is running on that route, and gives you a link
to the workers overview page so you can unassign it if you want.

```text
⛅️ wrangler 2.1.11
--------------------
Total Upload: 0.20 KiB / gzip: 0.17 KiB
✘ [ERROR] Can't publish a worker to routes that are assigned to another worker.
"test-custom-routes-redeploy" is already assigned to route
test-custom-worker.swag.lgbt
Unassign other workers from the routes you want to publish to, and then try again.
Visit
https://dash.cloudflare.com/<account_id>/workers/overview
to unassign a worker from a route.
```

Closes #1849

* [#2013](https://github.com/cloudflare/wrangler2/pull/2013) [`c63ca0a5`](https://github.com/cloudflare/wrangler2/commit/c63ca0a550a4c3801665161d6d6ce5d2d3bff0a5) Thanks [@rozenmd](https://github.com/rozenmd)! - fix: make d1 help print if a command is incomplete

Prior to this change, d1's commands would return silently if wrangler wasn't supplied enough arguments to run the command.

This change resolves this issue, and ensures help is always printed if the command couldn't run.

- [#2016](https://github.com/cloudflare/wrangler2/pull/2016) [`932fecc0`](https://github.com/cloudflare/wrangler2/commit/932fecc0857dfdf8401b2293f71c34836a5bbb9d) Thanks [@caass](https://github.com/caass)! - Offer to create a workers.dev subdomain if a user needs one

Previously, when a user wanted to publish a worker to https://workers.dev by setting `workers_dev = true` in their `wrangler.toml`,
but their account didn't have a subdomain registered, we would error out.

Now, we offer to create one for them. It's not implemented for `wrangler dev`, which also expects you to have registered a
workers.dev subdomain, but we now error correctly and tell them what the problem is.

* [#2003](https://github.com/cloudflare/wrangler2/pull/2003) [`3ed06b40`](https://github.com/cloudflare/wrangler2/commit/3ed06b4096d3ea9ed601ae05d77442e5b0217678) Thanks [@GregBrimble](https://github.com/GregBrimble)! - chore: Bump [email protected]

- [#2024](https://github.com/cloudflare/wrangler2/pull/2024) [`4ad48e4d`](https://github.com/cloudflare/wrangler2/commit/4ad48e4d9b617dd322c6d4b9c0853588a1521a71) Thanks [@rozenmd](https://github.com/rozenmd)! - fix: make it possible for values in vars and defines to have colons (:)

Prior to this change, passing --define someKey:https://some-value.com would result in an incomplete value being passed to the Worker.

This change correctly handles colons for var and define in `wrangler dev` and `wrangler publish`.

* [#2032](https://github.com/cloudflare/wrangler2/pull/2032) [`f33805d2`](https://github.com/cloudflare/wrangler2/commit/f33805d28b23b613f03169726b91ac3b1b3428d5) Thanks [@caass](https://github.com/caass)! - Catch unsupported terminal errors and provide a nicer error message.

Wrangler depends on terminals supporting [raw mode](https://en.wikipedia.org/wiki/Terminal_mode). Previously, attempting to run wrangler from a terminal that didn't support raw mode would result in
an Ink error, which was both an exposure of an internal implementation detail to the user and also not actionable:

```text
ERROR Raw mode is not supported on the current process.stdin, which Ink uses
as input stream by default.
Read about how to prevent this error on
https://github.com/vadimdemedes/ink/#israwmodesupported
```

Now, we provide a much nicer error, which provides an easy next step for th user:

```text
ERROR: This terminal doesn't support raw mode.
Wrangler uses raw mode to read user input and write output to the terminal, and won't function correctly without it.
Try running your previous command in a terminal that supports raw mode, such as Command Prompt or Powershell.
```

Closes #1992

- [#1946](https://github.com/cloudflare/wrangler2/pull/1946) [`7716c3b9`](https://github.com/cloudflare/wrangler2/commit/7716c3b9dfed540d7ddfec90f042e870a262be78) Thanks [@penalosa](https://github.com/penalosa)! - Support subdomains with wrangler dev for routes defined with `zone_name` (instead of just for routes defined with `zone_id`)

## 2.1.11

### Patch Changes
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.1.11",
"version": "2.1.12",
"description": "Command-line interface for all things Cloudflare Workers",
"keywords": [
"wrangler",
Expand Down

0 comments on commit 6c8d013

Please sign in to comment.