From 11eec4d1ebcffe5987a710167ab4ec2e69bf3d98 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 26 Jan 2022 12:39:16 +0000 Subject: [PATCH] Version Packages --- .changeset/lovely-elephants-reflect.md | 9 -------- .changeset/sour-toys-heal.md | 17 --------------- .changeset/strange-melons-provide.md | 9 -------- package-lock.json | 2 +- packages/wrangler/CHANGELOG.md | 30 ++++++++++++++++++++++++++ packages/wrangler/package.json | 2 +- 6 files changed, 32 insertions(+), 37 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 diff --git a/.changeset/lovely-elephants-reflect.md b/.changeset/lovely-elephants-reflect.md deleted file mode 100644 index 74516e7dfed7c..0000000000000 --- 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 4eae131961afa..0000000000000 --- 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 5892f771c9c29..0000000000000 --- 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/package-lock.json b/package-lock.json index fd36952ae491c..1d458934e9ca3 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 1916635a729c4..7326ec5cecf80 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,35 @@ # 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. + ## 0.0.12 ### Patch Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index f9726f45141f4..5a013b2019900 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": {