diff --git a/CHANGELOG.md b/CHANGELOG.md index 45fe01a6..82f3b31b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ +# 3.11.0 (2019-12-22) + +* Add runtime validation for options. ([#468]) +* Allow `.tsx` and `.jsx` options when running `sucrase` from the command line. ([#448]) (Ricardo Tomasi, Alexander Mextner) +* Fix bug where generator markers in methods were removed. ([#463]) (Bjørn Tore Håvie) + # 3.10.1 (2019-03-31) * Fix parsing of `ac` in TypeScript. ([#438]) * Add support for new TypeScript 3.4 syntax, other parser improvements. ([#439], [#440]) -* Elide TS `import =` statements that are only used as a type ([#441]) -* Properly handle async arrow functions with multiline type parameters ([#443]) +* Elide TS `import =` statements that are only used as a type. ([#441]) +* Properly handle async arrow functions with multiline type parameters. ([#443]) # 3.10.0 (2019-03-11) diff --git a/package.json b/package.json index d6c0a068..b05f39e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sucrase", - "version": "3.10.1", + "version": "3.11.0", "description": "Super-fast alternative to Babel for when you can target modern JS runtimes", "author": "Alan Pierce ", "license": "MIT", @@ -68,7 +68,7 @@ "mocha": "^6.2.2", "nyc": "^14.1.1", "prettier": "^1.19.1", - "sucrase": "^3.10.1", + "sucrase": "^3.11.0", "ts-interface-builder": "^0.2.1", "tslint": "^5.20.1", "typescript": "^3.7.2", diff --git a/website/package.json b/website/package.json index f7879ea7..a809a536 100644 --- a/website/package.json +++ b/website/package.json @@ -37,7 +37,7 @@ "react-monaco-editor": "^0.32.1", "react-virtualized": "^9.21.1", "style-loader": "^1.0.0", - "sucrase": "^3.10.1", + "sucrase": "^3.11.0", "tslint": "^5.20.1", "typescript": "^3.7.2", "url-loader": "^2.2.0", diff --git a/website/yarn.lock b/website/yarn.lock index 3cb6863d..02ca5b44 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -1638,6 +1638,11 @@ commander@^2.12.1, commander@^2.19.0, commander@^2.20.0, commander@~2.20.3: resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== +commander@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-4.0.1.tgz#b67622721785993182e807f4883633e6401ba53c" + integrity sha512-IPF4ouhCP+qdlcmCedhxX4xiGBPyigb8v5NeUp+0LyhwLgxMqyp3S0vl7TAPfS/hiP7FC3caI/PB9lTmP8r1NA== + commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" @@ -5231,7 +5236,7 @@ pinkie@^2.0.0: resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= -pirates@^4.0.0, pirates@^4.0.1: +pirates@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87" integrity sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA== @@ -6478,15 +6483,16 @@ style-loader@^1.0.0: loader-utils "^1.2.3" schema-utils "^2.0.1" -sucrase@^3.10.1: - version "3.10.1" - resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.10.1.tgz#70ce0bad0e4c8fbc3c3184dbd1797e82990d0602" - integrity sha512-nMOs6rFWwkYRxcKHHDjyQmC5CmLbHN2LwRyWF1n2i0kb/pq0xcB9M19TdY5Ivfcj1BsWfs+az9Ga5B0tFdE5ww== +sucrase@^3.11.0: + version "3.11.0" + resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.11.0.tgz#8d5eeeb38af5c376de906065fa145ba786af5bb8" + integrity sha512-vzaNQWMZGNNIOONwBGkwoVPk/haP8TLK0SRTxL/FvuIoiHzDgySBTReTLaOYLAcv4OXvyU3KddLreDvR/bABLA== dependencies: - commander "^2.19.0" + commander "^4.0.0" lines-and-columns "^1.1.6" mz "^2.7.0" - pirates "^4.0.0" + pirates "^4.0.1" + ts-interface-checker "^0.1.9" supports-color@^2.0.0: version "2.0.0" @@ -6705,6 +6711,11 @@ trim-right@^1.0.1: resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= +ts-interface-checker@^0.1.9: + version "0.1.10" + resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.10.tgz#b68a49e37e90a05797e590f08494dd528bf383cf" + integrity sha512-UJYuKET7ez7ry0CnvfY6fPIUIZDw+UI3qvTUQeS2MyI4TgEeWAUBqy185LeaHcdJ9zG2dgFpPJU/AecXU0Afug== + tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: version "1.10.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" diff --git a/yarn.lock b/yarn.lock index 853fb553..21a7c4a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -771,7 +771,7 @@ color-name@1.1.3: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= -commander@^2.12.1, commander@^2.12.2, commander@^2.19.0, commander@^2.8.1, commander@~2.20.3: +commander@^2.12.1, commander@^2.12.2, commander@^2.8.1, commander@~2.20.3: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -2640,7 +2640,7 @@ pify@^4.0.1: resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== -pirates@^4.0.0, pirates@^4.0.1: +pirates@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87" integrity sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA== @@ -3168,15 +3168,16 @@ strip-json-comments@^3.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.0.1.tgz#85713975a91fb87bf1b305cca77395e40d2a64a7" integrity sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw== -sucrase@^3.10.1: - version "3.10.1" - resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.10.1.tgz#70ce0bad0e4c8fbc3c3184dbd1797e82990d0602" - integrity sha512-nMOs6rFWwkYRxcKHHDjyQmC5CmLbHN2LwRyWF1n2i0kb/pq0xcB9M19TdY5Ivfcj1BsWfs+az9Ga5B0tFdE5ww== +sucrase@^3.11.0: + version "3.11.0" + resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.11.0.tgz#8d5eeeb38af5c376de906065fa145ba786af5bb8" + integrity sha512-vzaNQWMZGNNIOONwBGkwoVPk/haP8TLK0SRTxL/FvuIoiHzDgySBTReTLaOYLAcv4OXvyU3KddLreDvR/bABLA== dependencies: - commander "^2.19.0" + commander "^4.0.0" lines-and-columns "^1.1.6" mz "^2.7.0" - pirates "^4.0.0" + pirates "^4.0.1" + ts-interface-checker "^0.1.9" supports-color@6.0.0: version "6.0.0"