From 78ec87cd9c98b5e77f07b056872e061683a090e6 Mon Sep 17 00:00:00 2001 From: Lucas Azzola Date: Sat, 29 Apr 2017 22:37:47 +1000 Subject: [PATCH] Breaking: Support TypeScript 2.3 (fixes #232) --- README.md | 2 +- lib/ast-converter.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a87465..170350a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A parser that converts TypeScript into an [ESTree](https://github.com/estree/est We will always endeavor to support the latest stable version of TypeScript. -The version of TypeScript currently supported by this parser is `~2.2.1`. This is reflected in the `devDependency` requirement within the package.json file, and it is what the tests will be run against. We have an open `peerDependency` requirement in order to allow for experimentation on newer/beta versions of TypeScript. +The version of TypeScript currently supported by this parser is `~2.3.2`. This is reflected in the `devDependency` requirement within the package.json file, and it is what the tests will be run against. We have an open `peerDependency` requirement in order to allow for experimentation on newer/beta versions of TypeScript. If you use a non-supported version of TypeScript, the parser will log a warning to the console. diff --git a/lib/ast-converter.js b/lib/ast-converter.js index 1d253e4..1bcd9f2 100644 --- a/lib/ast-converter.js +++ b/lib/ast-converter.js @@ -1947,7 +1947,7 @@ module.exports = function(ast, extra) { type: "JSXOpeningElement", selfClosing: false, name: openingTagName, - attributes: node.attributes.map(convertChild) + attributes: node.attributes.properties.map(convertChild) }); break; diff --git a/package.json b/package.json index e0e3c0e..95d132c 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "semver": "^4.1.1", "shelljs": "^0.3.0", "shelljs-nodecli": "^0.1.1", - "typescript": "~2.2.1" + "typescript": "~2.3.2" }, "keywords": [ "ast",