From c9c44b8e0441187f8b69d9141533ec0d1a846593 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 26 Jan 2022 12:39:25 +0000 Subject: [PATCH] Version Packages --- .changeset/lovely-elephants-reflect.md | 9 ------- .changeset/sour-toys-heal.md | 17 ------------- .changeset/strange-melons-provide.md | 9 ------- .changeset/twelve-bears-yell.md | 7 ------ package-lock.json | 2 +- packages/wrangler/CHANGELOG.md | 34 ++++++++++++++++++++++++++ packages/wrangler/package.json | 2 +- 7 files changed, 36 insertions(+), 44 deletions(-) delete mode 100644 .changeset/lovely-elephants-reflect.md delete mode 100644 .changeset/sour-toys-heal.md delete mode 100644 .changeset/strange-melons-provide.md delete mode 100644 .changeset/twelve-bears-yell.md diff --git a/.changeset/lovely-elephants-reflect.md b/.changeset/lovely-elephants-reflect.md deleted file mode 100644 index 74516e7dfed7..000000000000 --- a/.changeset/lovely-elephants-reflect.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"wrangler": patch ---- - -fix: warn if the `site.entry-point` configuration is found during publishing - -Also updates the message and adds a test for the error when there is no entry-point specified. - -Fixes #282 diff --git a/.changeset/sour-toys-heal.md b/.changeset/sour-toys-heal.md deleted file mode 100644 index 4eae131961af..000000000000 --- a/.changeset/sour-toys-heal.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"wrangler": patch ---- - -feat: enhance `wrangler init` - -This PR adds some enhancements/fixes to the `wrangler init` command. - -- doesn't overwrite `wrangler.toml` if it already exists -- installs `wrangler` when creating `package.json` -- offers to install `wrangler` into `package.json` even if `package.json` already exists -- offers to install `@cloudflare/workers-types` even if `tsconfig.json` already exists -- pipes stdio back to the terminal so there's feedback when it's installing npm packages - -This does have the side effect of making out tests slower. I added `--prefer-offline` to the `npm install` calls to make this a shade quicker, but I can't figure out a good way of mocking these. I'll think about it some more later. We should work on making the installs themselves quicker (re: https://github.com/cloudflare/wrangler2/issues/66) - -This PR also fixes a bug with our tests - `runWrangler` would catch thrown errors, and if we didn't manually verify the error, tests would pass. Instead, it now throws correctly, and I modified all the tests to assert on thrown errors. It seems like a lot, but it was just mechanical rewriting. diff --git a/.changeset/strange-melons-provide.md b/.changeset/strange-melons-provide.md deleted file mode 100644 index 5892f771c9c2..000000000000 --- a/.changeset/strange-melons-provide.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"wrangler": patch ---- - -feature: add more types that get logged via `console` methods - -This PR adds more special logic for some data types that get logged via `console` methods. Types like `Promise`, `Date`, `WeakMaps`, and some more, now get logged correctly (or at least, better than they used to). - -This PR also fixes a sinister bug - the `type` of the `ConsoleAPICalled` events don't match 1:1 with actual console methods (eg: `console.warn` message type is `warning`). This PR adds a mapping between those types and method names. Some methods don't seem to have a message type, I'm not sure why, but we'll get to them later. diff --git a/.changeset/twelve-bears-yell.md b/.changeset/twelve-bears-yell.md deleted file mode 100644 index 7f2db64846e2..000000000000 --- a/.changeset/twelve-bears-yell.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"wrangler": patch ---- - -feat: error if a site definition doesn't have a `bucket` field - -This adds an assertion error for making sure a `[site]` definition always has a `bucket` field.As a cleanup, I made some small fixes to the `Config` type definition, and modified the tests in `publish.test.ts` to use the config format when creating a `wrangler.toml` file. diff --git a/package-lock.json b/package-lock.json index fd36952ae491..1d458934e9ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15122,7 +15122,7 @@ "license": "ISC" }, "packages/wrangler": { - "version": "0.0.12", + "version": "0.0.13", "license": "MIT OR Apache-2.0", "dependencies": { "esbuild": "0.14.1", diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index 1916635a729c..e6e3fd2f41ab 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,39 @@ # wrangler +## 0.0.13 + +### Patch Changes + +- [#293](https://github.com/cloudflare/wrangler2/pull/293) [`71b0fab`](https://github.com/cloudflare/wrangler2/commit/71b0fab02e4f65342b4b106f9dc3fa6a98db2a19) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix: warn if the `site.entry-point` configuration is found during publishing + + Also updates the message and adds a test for the error when there is no entry-point specified. + + Fixes #282 + +* [#304](https://github.com/cloudflare/wrangler2/pull/304) [`7477b52`](https://github.com/cloudflare/wrangler2/commit/7477b52bd4b72b601b501564121fd4ee6a90aaef) Thanks [@threepointone](https://github.com/threepointone)! - feat: enhance `wrangler init` + + This PR adds some enhancements/fixes to the `wrangler init` command. + + - doesn't overwrite `wrangler.toml` if it already exists + - installs `wrangler` when creating `package.json` + - offers to install `wrangler` into `package.json` even if `package.json` already exists + - offers to install `@cloudflare/workers-types` even if `tsconfig.json` already exists + - pipes stdio back to the terminal so there's feedback when it's installing npm packages + + This does have the side effect of making out tests slower. I added `--prefer-offline` to the `npm install` calls to make this a shade quicker, but I can't figure out a good way of mocking these. I'll think about it some more later. We should work on making the installs themselves quicker (re: https://github.com/cloudflare/wrangler2/issues/66) + + This PR also fixes a bug with our tests - `runWrangler` would catch thrown errors, and if we didn't manually verify the error, tests would pass. Instead, it now throws correctly, and I modified all the tests to assert on thrown errors. It seems like a lot, but it was just mechanical rewriting. + +- [#294](https://github.com/cloudflare/wrangler2/pull/294) [`7746fba`](https://github.com/cloudflare/wrangler2/commit/7746fba6d36c2361851064f68eed5feb34dc8fbc) Thanks [@threepointone](https://github.com/threepointone)! - feature: add more types that get logged via `console` methods + + This PR adds more special logic for some data types that get logged via `console` methods. Types like `Promise`, `Date`, `WeakMaps`, and some more, now get logged correctly (or at least, better than they used to). + + This PR also fixes a sinister bug - the `type` of the `ConsoleAPICalled` events don't match 1:1 with actual console methods (eg: `console.warn` message type is `warning`). This PR adds a mapping between those types and method names. Some methods don't seem to have a message type, I'm not sure why, but we'll get to them later. + +* [#310](https://github.com/cloudflare/wrangler2/pull/310) [`52c99ee`](https://github.com/cloudflare/wrangler2/commit/52c99ee74aab4db05d8e061dc4c205b1114e1bcc) Thanks [@threepointone](https://github.com/threepointone)! - feat: error if a site definition doesn't have a `bucket` field + + This adds an assertion error for making sure a `[site]` definition always has a `bucket` field.As a cleanup, I made some small fixes to the `Config` type definition, and modified the tests in `publish.test.ts` to use the config format when creating a `wrangler.toml` file. + ## 0.0.12 ### Patch Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index f9726f45141f..5a013b201990 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "0.0.12", + "version": "0.0.13", "author": "wrangler@cloudflare.com", "description": "Command-line interface for all things Cloudflare Workers", "bin": {