From 476d6266942bcc03670a267e23e4f76735dc1757 Mon Sep 17 00:00:00 2001 From: Frederik Wessberg Date: Wed, 25 May 2022 20:21:52 +0200 Subject: [PATCH] 0.2.0 --- CHANGELOG.md | 110 +++++++++++++++++++++++++++++++++++++++++++++------ LICENSE.md | 2 +- README.md | 8 ++-- package.json | 3 +- 4 files changed, 104 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31ccad6..974d101 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,111 +1,195 @@ +# [0.2.0](https://github.com/wessberg/ts-evaluator/compare/v0.1.0...v0.2.0) (2022-05-25) + + +### Features + +* add TypeScript v4.7 support. Add new sponsor: scrubtheweb ([1e91aab](https://github.com/wessberg/ts-evaluator/commit/1e91aaba01f40b8358dd1b3747eee51c3f038d4b)) +* fix issues with ShorthandPropertyAssignments. Move jsdom and chalk to optional peer dependencies ([d963c22](https://github.com/wessberg/ts-evaluator/commit/d963c22c429a1a381a4a91c6948aafd5cff6c6e4)) + + + # [0.1.0](https://github.com/wessberg/ts-evaluator/compare/v0.0.29...v0.1.0) (2021-05-20) + ### Performance Improvements -- remove runtime dependency on tslib ([684fe07](https://github.com/wessberg/ts-evaluator/commit/684fe0739c62d083228311907e98392e7865878c)) +* remove runtime dependency on tslib ([684fe07](https://github.com/wessberg/ts-evaluator/commit/684fe0739c62d083228311907e98392e7865878c)) + + ## [0.0.29](https://github.com/wessberg/ts-evaluator/compare/v0.0.28...v0.0.29) (2021-05-17) + ### Features -- **typescript:** add support for TypeScript 4.3 ([a955f91](https://github.com/wessberg/ts-evaluator/commit/a955f9199553cdd4ef79b2c00c9d866fed0ccf76)) +* **typescript:** add support for TypeScript 4.3 ([a955f91](https://github.com/wessberg/ts-evaluator/commit/a955f9199553cdd4ef79b2c00c9d866fed0ccf76)) + + ## [0.0.28](https://github.com/wessberg/ts-evaluator/compare/v0.0.27...v0.0.28) (2021-03-17) + ### Features -- **typescript:** add TypeScript 4.2 support ([e87b496](https://github.com/wessberg/ts-evaluator/commit/e87b4962e8453926171607f29bbbf5e05a014714)) +* **typescript:** add TypeScript 4.2 support ([e87b496](https://github.com/wessberg/ts-evaluator/commit/e87b4962e8453926171607f29bbbf5e05a014714)) + + ## [0.0.27](https://github.com/wessberg/ts-evaluator/compare/v0.0.26...v0.0.27) (2020-10-20) + ### Features -- add TypeScript 4.1 support ([f1d2e28](https://github.com/wessberg/ts-evaluator/commit/f1d2e283e164021150c693c037d26e8e5a928df9)) +* add TypeScript 4.1 support ([f1d2e28](https://github.com/wessberg/ts-evaluator/commit/f1d2e283e164021150c693c037d26e8e5a928df9)) + + ## [0.0.26](https://github.com/wessberg/ts-evaluator/compare/v0.0.25...v0.0.26) (2020-08-07) + ### Features -- **logical assignment:** add support for Logical Assignments ([639bc5c](https://github.com/wessberg/ts-evaluator/commit/639bc5ce192de9b1d7d87ac525038af409d4a4b3)) +* **logical assignment:** add support for Logical Assignments ([639bc5c](https://github.com/wessberg/ts-evaluator/commit/639bc5ce192de9b1d7d87ac525038af409d4a4b3)) + + ## [0.0.25](https://github.com/wessberg/ts-evaluator/compare/v0.0.24...v0.0.25) (2020-03-01) + ### Features -- add support for TypeScript v3.8. Add support for passing a specific TypeScript version to the evaluate function. Remove dependency on deasync. Return a Promise when evaluating an await-expression. Disallow evaluating async iterators with the synchronous variant of evaluate ([c19e1cc](https://github.com/wessberg/ts-evaluator/commit/c19e1cca6ba84c38bbb63f3c0a8db8f0722a2e63)) +* add support for TypeScript v3.8. Add support for passing a specific TypeScript version to the evaluate function. Remove dependency on deasync. Return a Promise when evaluating an await-expression. Disallow evaluating async iterators with the synchronous variant of evaluate ([c19e1cc](https://github.com/wessberg/ts-evaluator/commit/c19e1cca6ba84c38bbb63f3c0a8db8f0722a2e63)) + + ## [0.0.24](https://github.com/wessberg/ts-evaluator/compare/v0.0.23...v0.0.24) (2019-11-09) + ### Features -- **optional chaining:** add support for optional chaining and nullish coalescing ([7a79b34](https://github.com/wessberg/ts-evaluator/commit/7a79b34e6dd098a87f98bfab64c707a640c55ade)) +* **optional chaining:** add support for optional chaining and nullish coalescing ([7a79b34](https://github.com/wessberg/ts-evaluator/commit/7a79b34e6dd098a87f98bfab64c707a640c55ade)) + + ## [0.0.23](https://github.com/wessberg/ts-evaluator/compare/v0.0.22...v0.0.23) (2019-10-14) + ### Features -- **deasync:** make the deasync module an optional dependency since not all environments support it ([814e2f8](https://github.com/wessberg/ts-evaluator/commit/814e2f857132b9ff356a15be0c41217eb5c27f64)) +* **deasync:** make the deasync module an optional dependency since not all environments support it ([814e2f8](https://github.com/wessberg/ts-evaluator/commit/814e2f857132b9ff356a15be0c41217eb5c27f64)) + + ## [0.0.22](https://github.com/wessberg/ts-evaluator/compare/v0.0.21...v0.0.22) (2019-09-09) + + ## [0.0.21](https://github.com/wessberg/ts-evaluator/compare/v0.0.20...v0.0.21) (2019-05-29) + + ## [0.0.20](https://github.com/wessberg/ts-evaluator/compare/v0.0.19...v0.0.20) (2019-04-25) + + ## [0.0.19](https://github.com/wessberg/ts-evaluator/compare/v0.0.18...v0.0.19) (2019-03-06) + ### Bug Fixes -- **bug:** fixes an issue with ArrayLiteralExpressions and iterables. ([41c6452](https://github.com/wessberg/ts-evaluator/commit/41c6452342b31f606ee5fb9c4c50c6bc2d867e76)) +* **bug:** fixes an issue with ArrayLiteralExpressions and iterables. ([41c6452](https://github.com/wessberg/ts-evaluator/commit/41c6452342b31f606ee5fb9c4c50c6bc2d867e76)) + + ## [0.0.18](https://github.com/wessberg/ts-evaluator/compare/v0.0.17...v0.0.18) (2018-12-30) + ### Features -- **reporting:** adds a new reporter: reportErrors. This is a reporting hook that will be invoked for each error that is thrown, both when evaluating a result, and for subsequent invocations on, for example, returned function instances. Holds a reference to the error, as well ast the AST node that threw or caused the Error ([a65e386](https://github.com/wessberg/ts-evaluator/commit/a65e3861a1659e80ffd46e9c2ed48dff756dfebc)) +* **reporting:** adds a new reporter: reportErrors. This is a reporting hook that will be invoked for each error that is thrown, both when evaluating a result, and for subsequent invocations on, for example, returned function instances. Holds a reference to the error, as well ast the AST node that threw or caused the Error ([a65e386](https://github.com/wessberg/ts-evaluator/commit/a65e3861a1659e80ffd46e9c2ed48dff756dfebc)) + + ## [0.0.17](https://github.com/wessberg/ts-evaluator/compare/v0.0.16...v0.0.17) (2018-12-30) + ### Bug Fixes -- **bug:** fixes an issue where constructor arguments with a [public|protected|private] modifier wouldn't be set on the class instance as instance properties. Fixes [#10](https://github.com/wessberg/ts-evaluator/issues/10) ([2e091c0](https://github.com/wessberg/ts-evaluator/commit/2e091c034c46832715a493c26dc0a320de8c9ff9)) +* **bug:** fixes an issue where constructor arguments with a [public|protected|private] modifier wouldn't be set on the class instance as instance properties. Fixes [#10](https://github.com/wessberg/ts-evaluator/issues/10) ([2e091c0](https://github.com/wessberg/ts-evaluator/commit/2e091c034c46832715a493c26dc0a320de8c9ff9)) + ### Features -- **error:** errors now point to the Node that caused or threw them. Errors caused by the evaluated code itself such as ThrowStatements will produce ThrownError objects that point to the original error as well as the Node that caused or threw it. Fixes [#8](https://github.com/wessberg/ts-evaluator/issues/8) ([134b8ef](https://github.com/wessberg/ts-evaluator/commit/134b8efc4ea5854695883150641ffabac413bd5c)) +* **error:** errors now point to the Node that caused or threw them. Errors caused by the evaluated code itself such as ThrowStatements will produce ThrownError objects that point to the original error as well as the Node that caused or threw it. Fixes [#8](https://github.com/wessberg/ts-evaluator/issues/8) ([134b8ef](https://github.com/wessberg/ts-evaluator/commit/134b8efc4ea5854695883150641ffabac413bd5c)) + + ## [0.0.16](https://github.com/wessberg/ts-evaluator/compare/v0.0.15...v0.0.16) (2018-12-30) + + ## [0.0.15](https://github.com/wessberg/ts-evaluator/compare/v0.0.14...v0.0.15) (2018-12-30) + + ## [0.0.14](https://github.com/wessberg/ts-evaluator/compare/v0.0.13...v0.0.14) (2018-12-30) + ### Bug Fixes -- **bug:** fixes an issue with evaluating a ClassMember such as a MethodDeclaration, PropertyDeclaration, or a GetAccessorDeclaration directly. Fixes [#7](https://github.com/wessberg/ts-evaluator/issues/7) ([ad8bc78](https://github.com/wessberg/ts-evaluator/commit/ad8bc78f585f13211329ba7345d9c5b2d3b9d201)) +* **bug:** fixes an issue with evaluating a ClassMember such as a MethodDeclaration, PropertyDeclaration, or a GetAccessorDeclaration directly. Fixes [#7](https://github.com/wessberg/ts-evaluator/issues/7) ([ad8bc78](https://github.com/wessberg/ts-evaluator/commit/ad8bc78f585f13211329ba7345d9c5b2d3b9d201)) + + ## [0.0.13](https://github.com/wessberg/ts-evaluator/compare/v0.0.12...v0.0.13) (2018-12-29) + + ## [0.0.12](https://github.com/wessberg/ts-evaluator/compare/v0.0.11...v0.0.12) (2018-12-29) + + ## [0.0.11](https://github.com/wessberg/ts-evaluator/compare/v0.0.10...v0.0.11) (2018-12-28) + + ## [0.0.10](https://github.com/wessberg/ts-evaluator/compare/v0.0.9...v0.0.10) (2018-12-28) + + ## [0.0.9](https://github.com/wessberg/ts-evaluator/compare/v0.0.8...v0.0.9) (2018-12-19) + + ## [0.0.8](https://github.com/wessberg/ts-evaluator/compare/v0.0.7...v0.0.8) (2018-12-18) + + ## [0.0.7](https://github.com/wessberg/ts-evaluator/compare/v0.0.6...v0.0.7) (2018-12-16) + + ## [0.0.6](https://github.com/wessberg/ts-evaluator/compare/v0.0.5...v0.0.6) (2018-12-16) + + ## [0.0.5](https://github.com/wessberg/ts-evaluator/compare/v0.0.4...v0.0.5) (2018-12-16) + + ## [0.0.4](https://github.com/wessberg/ts-evaluator/compare/v0.0.3...v0.0.4) (2018-12-16) + + ## [0.0.3](https://github.com/wessberg/ts-evaluator/compare/v0.0.2...v0.0.3) (2018-12-16) + + ## [0.0.2](https://github.com/wessberg/ts-evaluator/compare/v0.0.1...v0.0.2) (2018-12-16) + + ## 0.0.1 (2018-12-16) + + + diff --git a/LICENSE.md b/LICENSE.md index 34bdda7..8bd2556 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright © 2021 [Frederik Wessberg](mailto:frederikwessberg@hotmail.com) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg)) +Copyright © 2022 [Frederik Wessberg](mailto:frederikwessberg@hotmail.com) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg)) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 7a795c3..7a67dc5 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,9 @@ If you are looking for a Typescript REPL, or a way to _execute_ a full Typescrip [Become a sponsor/backer](https://github.com/wessberg/ts-evaluator?sponsor=1) and get your logo listed here. -| Bubbles | Christopher Blanchard | Ideal Postcodes | Xerox | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | -| [Bubbles](https://usebubbles.com)
Twitter: [@usebubbles](https://twitter.com/usebubbles) | [Christopher Blanchard](https://github.com/cblanc) | [Ideal Postcodes](https://github.com/ideal-postcodes) | [Xerox](https://www.xerox.com) | +| Bubbles | Christopher Blanchard | Ideal Postcodes | Xerox | Trent Raymond | scrubtheweb | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| [Bubbles](https://usebubbles.com)
Twitter: [@usebubbles](https://twitter.com/usebubbles) | [Christopher Blanchard](https://github.com/cblanc) | [Ideal Postcodes](https://github.com/ideal-postcodes) | [Xerox](https://www.xerox.com) | [Trent Raymond](https://changelog.me) | [scrubtheweb](https://scrubtheweb.com) | ### Patreon @@ -128,6 +128,8 @@ $ pnpm add ts-evaluator `ts-evaluator` depends on `typescript`, so you need to manually install this as well. +You may also need to install additional peer dependencies such as `jsdom` or `chalk` depending on the features you are going to use. Refer to the documentation for the specific cases where any of these may be relevant. + diff --git a/package.json b/package.json index f0d4db3..7fe2111 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-evaluator", - "version": "0.1.0", + "version": "0.2.0", "description": "An interpreter for Typescript that can evaluate an arbitrary Node within a Typescript AST", "scripts": { "generate:sandhog": "sandhog all --yes", @@ -105,7 +105,6 @@ "optional": true } }, - "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "browser": "./dist/esm/index.js",