From 09453a490b7d502f4fdc28e9cebe1a19945d218b Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 30 Apr 2015 23:27:37 +0100 Subject: [PATCH] 5.2.0 --- CHANGELOG.md | 20 ++++++++++++++++++++ packages/babel-cli/package.json | 6 +++--- packages/babel-runtime/package.json | 2 +- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a058022257..f2bf4da880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,26 @@ _Note: Gaps between patch versions are faulty/broken releases._ See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog. +## 5.2.0 + + * **Bug Fix** + * Fix plugin strings splitting arbitrarily on `:` which caused full paths on Windows to fail as they include `:` after the drive letter. + * Call class property `initializer`s with their target instead of their descriptor. + * Fix `ignore` and `only` not properly working on Windows path separators. Thanks [@stagas](https://github.com/stagas)! + * Fix `resolveRc` running on files twice causing issues. Thanks [@lukescott](https://github.com/lukescott)! + * Fix shorthand properties not correctly being target for `isReferenced` checks. Thanks [@monsanto](https://github.com/monsanto)! + * **Polish** + * Allow passing an array of globs to `babel/register` `only` and `ignore` options. Thanks [@Mark-Simulacrum](https://github.com/Mark-Simulacrum)! + * When inferring function names that collide with upper bindings, instead of doing the wrapper, instead rename them. + * Consider constant-like variable declaration functions to always refer to themselves so TOC can be performed. + * Process globs manually when using `$ babel` as some shells such as Windows don't explode them. Thanks [@jden](https://github.com/jden)! + * **Internal** + * Remove multiple internal transformers in favor of directly doing things when we need to. Previously, declarations such as `_ref` that we needed to create in specific scopes were done at the very end via the `_declarations` transformer. Now, they're done and added to the scope **right** when they're needed. This gets rid of the crappy `_declarations` property on scope nodes and fixes the crappy regenerator bug where it was creating a new `BlockStatement` so the declarations were being lost. + * Rework transformer traversal optimisation. Turns out that calling a `check` function for **every single node** in the AST is ridiculously expensive. 300,000 nodes timesed by ~30 transformers meant that it took tens of seconds to perform while it's quicker to just do the unnecessary traversal. Seems obvious in hindsight. + * **New Feature** + * Add `jscript` transformer that turns named function expressions into function declarations to get around [JScript's horribly broken function expression semantics](https://kangax.github.io/nfe/#jscript-bugs). Thanks [@kondi](https://github.com/kondi)! + * Add `@@hasInstance` support to objects when using the `es6.spec.symbols` transformer. + ## 5.1.13 * **Polish** diff --git a/packages/babel-cli/package.json b/packages/babel-cli/package.json index 5be752d38c..6245118de3 100644 --- a/packages/babel-cli/package.json +++ b/packages/babel-cli/package.json @@ -1,13 +1,13 @@ { "name": "babel", "description": "Turn ES6 code into readable vanilla ES5 with source maps", - "version": "5.1.13", + "version": "5.2.0", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", "repository": "babel/babel", "preferGlobal": true, "dependencies": { - "babel-core": "^5.1.13", + "babel-core": "^5.2.0", "chokidar": "^1.0.0", "commander": "^2.6.0", "convert-source-map": "^1.1.0", @@ -23,4 +23,4 @@ "babel-node": "./bin/babel-node", "babel-external-helpers": "./bin/babel-external-helpers" } -} +} \ No newline at end of file diff --git a/packages/babel-runtime/package.json b/packages/babel-runtime/package.json index 15f57e0b6b..43005afad5 100644 --- a/packages/babel-runtime/package.json +++ b/packages/babel-runtime/package.json @@ -1,7 +1,7 @@ { "name": "babel-runtime", "description": "babel selfContained runtime", - "version": "5.1.13", + "version": "5.2.0", "repository": "babel/babel", "author": "Sebastian McKenzie ", "dependencies": {