forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version bump for 0.11.0 minor release
Summary: Release version `0.11.0` Reviewed By: pieterv Differential Revision: D45398692 fbshipit-source-id: e89a70e8bab07579846fae602195d18c178c623e
- Loading branch information
1 parent
6434c9c
commit 38f5f98
Showing
7 changed files
with
88 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,49 @@ | ||
## Unreleased | ||
|
||
## 0.11.0 | ||
|
||
### `hermes-parser` | ||
|
||
- Update Flow AST representation for `typeof` types. `TypeofTypeAnnotation` now can have `QualifiedTypeofIdentifier` and `Identifiers` as arguments directly. | ||
- Add support for parsing `TupleTypeSpreadElement` and `TupleTypeLabeledElement` in Flow. | ||
- `DeclareVariable` in Flow now has a `kind` property, which can be `var`, `let`, or `const`. | ||
- Add support for parsing `DeclareEnum` in Flow. | ||
- Add support for parsing type arguments in `JSXElement` in Flow. | ||
- Fixes typo in parsed TypeScript `TSConditionalType` nodes. The `falseTYpe` property has been renamed to `falseType`. | ||
- Add support for parsing `keyof` types in Flow. | ||
- Add support for parsing `ConditionalTypeAnnotation` in Flow. | ||
- Add support for parsing `InferTypeAnnotation` in Flow. | ||
- Add support for parsing `ObjectTypeMappedTypeProperty` in Flow. | ||
- Add support for parsing `TypePredicate` in Flow. | ||
|
||
### `hermes-transform` | ||
- Add support for Flow AST nodes as parsed by [`[email protected]`](#`hermes-parser`). | ||
- Exports `makeCommentOwnLine` function which makes added comments print on their own line. | ||
- Add support for corrected `MemberExpression` representation with `optional` property from [`[email protected]`](#`hermes-estree`). | ||
|
||
### `hermes-eslint` | ||
- Add support for Flow AST nodes as parsed by [`[email protected]`](#`hermes-parser`). | ||
|
||
### `hermes-estree` | ||
- Add support for Flow AST nodes as parsed by [`[email protected]`](#`hermes-parser`). | ||
- Fix `MemberExpression` to properly expose `optional` property in Flow. | ||
|
||
### `flow-api-translator` | ||
- Add handling for updated `typeof` type representation. | ||
- Add handling for `DeclareVariable` with `kind` property. | ||
- Add handling for `DeclareEnum`. | ||
- Adds error recovery for unsupported Flow syntax in TypeScript translation. Instead of exiting, most errors will now be printed as comments in the output TypeScript code with appropriate type fallbacks. | ||
- Add handling for Flow `typeof` imports. | ||
- Improve scope resolution of `React` imports. | ||
- Add `React.ElementConfig` handling. | ||
- Add `React.Key` handling. | ||
- Add `React.Ref` handling. | ||
- Add `React.Component` handling. | ||
- Add `React.ElementType` handling. | ||
- Add `React.ChildrenArray` handling. | ||
- Improve `React.ComponentType` handling. | ||
- Improve `React.AbstractComponent` handling. | ||
|
||
## 0.10.1 | ||
|
||
### `hermes-parser` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "hermes-parser", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "A JavaScript parser built from the Hermes engine", | ||
"main": "dist/index.js", | ||
"license": "MIT", | ||
|
@@ -9,7 +9,7 @@ | |
"url": "[email protected]:facebook/hermes.git" | ||
}, | ||
"dependencies": { | ||
"hermes-estree": "0.10.1" | ||
"hermes-estree": "0.11.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/parser": "7.7.4", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2910,6 +2910,39 @@ has@^1.0.3: | |
dependencies: | ||
function-bind "^1.1.1" | ||
|
||
[email protected]: | ||
version "0.10.1" | ||
resolved "https://registry.yarnpkg.com/hermes-eslint/-/hermes-eslint-0.10.1.tgz#f89ace4ccebe38c3463af27927e9c03a7937fc2b" | ||
integrity sha512-3Myj2H9AsWC7kb1gqVOr0/9RXZCwawtnnGHZUDfkDE8Ta336utDgCS3dNtEjYm2UAS3/ZweWiz1Olm/HIdLThw== | ||
dependencies: | ||
esrecurse "^4.3.0" | ||
hermes-estree "0.10.1" | ||
hermes-parser "0.10.1" | ||
|
||
[email protected]: | ||
version "0.10.1" | ||
resolved "https://registry.yarnpkg.com/hermes-estree/-/hermes-estree-0.10.1.tgz#6a5ac13e2343c19492708ad325e9e6bb12d3d76a" | ||
integrity sha512-92opTqdY8y4ifTcp53/2c+qvk5r+z0qZ5zz1LuZamNtJdMeekUQpnKraLDTKLzmRoC1J/VeYx0fZLxK/+H3fMg== | ||
|
||
[email protected]: | ||
version "0.10.1" | ||
resolved "https://registry.yarnpkg.com/hermes-parser/-/hermes-parser-0.10.1.tgz#fc037d7d3fbe29a917dc4814726dd631e1fda00a" | ||
integrity sha512-3lgVZgNGzQuLjJAdDhF11pxOaA+KV9+BQ83QuhAQhkGgty1lRIYSfSzNMyD3c3U1oDObQgMYvi2Mlv7vZrQi7w== | ||
dependencies: | ||
hermes-estree "0.10.1" | ||
|
||
[email protected]: | ||
version "0.10.1" | ||
resolved "https://registry.yarnpkg.com/hermes-transform/-/hermes-transform-0.10.1.tgz#b61ba584b4cc1b204880dcf57e51f94d82366f9a" | ||
integrity sha512-FYDZI9XeWyVKmml7AEZlYlbS4LiN+kNZPJS6jlxGA/0Nv8mY6itoAex0xjZR4d0LqbDPv/u3tZA+O1DTLKVoGg== | ||
dependencies: | ||
"@babel/code-frame" "^7.16.0" | ||
esquery "^1.4.0" | ||
flow-enums-runtime "^0.0.6" | ||
hermes-eslint "0.10.1" | ||
hermes-estree "0.10.1" | ||
hermes-parser "0.10.1" | ||
|
||
homedir-polyfill@^1.0.1: | ||
version "1.0.3" | ||
resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8" | ||
|