<commit_before>---
layout: post
title:  "Upgrade guide for Babel 7"
author: <NAME>
date:   2017-01-23 12:00:00
categories: announcements
share_text: "Upgrade guide for Babel 7"
third_party_js:
- https://platform.twitter.com/widgets.js
custom_js_with_timestamps:
- docs.js
---

- [babel]({{page.url}}#babel)
- [babylon]({{page.url}}#babylon)
- [babel-core]({{page.url}}#babel-core)
- [babel-preset-stage-3]({{page.url}}#babel-preset-stage-3)
- [babel-plugin-syntax-class-constructor-call]({{page.url}}#babel-plugin-syntax-class-constructor-call)

# TODO

- add-module-exports - https://github.com/babel/babel/issues/5127
- https://github.com/babel/babel/pull/5128
- https://github.com/babel/babel/issues/5197

## babel

#### Support for Node.js 0.10 and 0.12 has been dropped

We highly encourage you to use a newer version of Node.js since these versions are in end of maintenance.

#### Yarn

Along npm Babel supports Yarn. See [Yarn's documentation](https://yarnpkg.com/en/docs/usage) on how to use it.

## babylon

#### Trailing comma after rest parameter in objects is not allowed anymore

Before:

```js
var { ...y, } = { a: 1};
```

This will now throw a SyntaxError.

After:

```js
var { ...y } = { a: 1};
```

or:<commit_msg>docs: remove yarn<commit_after>---
layout: post
title:  "Upgrade guide for Babel 7"
author: <NAME>
date:   2017-01-23 12:00:00
categories: announcements
share_text: "Upgrade guide for Babel 7"
third_party_js:
- https://platform.twitter.com/widgets.js
custom_js_with_timestamps:
- docs.js
---

- [babel]({{page.url}}#babel)
- [babylon]({{page.url}}#babylon)
- [babel-core]({{page.url}}#babel-core)
- [babel-preset-stage-3]({{page.url}}#babel-preset-stage-3)
- [babel-plugin-syntax-class-constructor-call]({{page.url}}#babel-plugin-syntax-class-constructor-call)

# TODO

- add-module-exports - https://github.com/babel/babel/issues/5127
- https://github.com/babel/babel/pull/5128
- https://github.com/babel/babel/issues/5197

## babel

#### Support for Node.js 0.10 and 0.12 has been dropped

We highly encourage you to use a newer version of Node.js since these versions are in end of maintenance.

## babylon

#### Trailing comma after rest parameter in objects is not allowed anymore

Before:

```js
var { ...y, } = { a: 1};
```

This will now throw a SyntaxError.

After:

```js
var { ...y } = { a: 1};
```

or:
{'fraction_non_alphanumeric': 0.17426501917341286, 'fraction_numerical': 0.03238176395398381, 'mean_word_length': 3.9535864978902953, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '953228', 'n_tokens_mistral': 946, 'n_tokens_neox': 833, 'n_words': 207}