Skip to content

Commit

Permalink
Version bump for 0.11.0 minor release
Browse files Browse the repository at this point in the history
Summary: Release version `0.11.0`

Reviewed By: pieterv

Differential Revision: D45398692

fbshipit-source-id: e89a70e8bab07579846fae602195d18c178c623e
  • Loading branch information
Noah Lemen authored and facebook-github-bot committed Apr 28, 2023
1 parent 6434c9c commit 38f5f98
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 11 deletions.
44 changes: 44 additions & 0 deletions tools/hermes-parser/js/CHANGELOG.md
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`
Expand Down
2 changes: 1 addition & 1 deletion tools/hermes-parser/js/flow-api-translator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flow-api-translator",
"version": "0.10.1",
"version": "0.11.0",
"description": "Toolkit for creating Flow and TypeScript compatible libraries from Flow source code.",
"main": "dist/index.js",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions tools/hermes-parser/js/hermes-eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hermes-eslint",
"version": "0.10.1",
"version": "0.11.0",
"description": "A custom parser for ESLint using the Hermes parser",
"main": "dist/index.js",
"license": "MIT",
Expand All @@ -16,7 +16,7 @@
],
"dependencies": {
"esrecurse": "^4.3.0",
"hermes-estree": "0.10.1",
"hermes-parser": "0.10.1"
"hermes-estree": "0.11.0",
"hermes-parser": "0.11.0"
}
}
2 changes: 1 addition & 1 deletion tools/hermes-parser/js/hermes-estree/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hermes-estree",
"version": "0.10.1",
"version": "0.11.0",
"description": "Flow types for the Flow-ESTree spec produced by the hermes parser",
"main": "dist/index.js",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions tools/hermes-parser/js/hermes-parser/package.json
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",
Expand All @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions tools/hermes-parser/js/hermes-transform/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hermes-transform",
"version": "0.10.1",
"version": "0.11.0",
"description": "Tools built on top of Hermes-ESTree to enable codebase transformation",
"main": "dist/index.js",
"license": "MIT",
Expand All @@ -12,9 +12,9 @@
"@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"
"hermes-eslint": "0.11.0",
"hermes-estree": "0.11.0",
"hermes-parser": "0.11.0"
},
"peerDependencies": {
"prettier": "^2.7.1"
Expand Down
33 changes: 33 additions & 0 deletions tools/hermes-parser/js/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 38f5f98

Please sign in to comment.