Skip to content

Commit 39f61d5

Browse files
committed
2.0.0
1 parent b2deb18 commit 39f61d5

File tree

4 files changed

+32
-137
lines changed

4 files changed

+32
-137
lines changed

CHANGELOG.md

Lines changed: 30 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,277 +1,178 @@
1-
# [1.2.0](https://github.com/wessberg/ts-evaluator/compare/v1.1.0...v1.2.0) (2023-08-04)
2-
1+
# [2.0.0](https://github.com/wessberg/ts-evaluator/compare/v1.2.0...v2.0.0) (2024-10-10)
32

43
### Features
54

6-
* add Typescript v[4.9.5 ; 5.1.6] support ([b699f23](https://github.com/wessberg/ts-evaluator/commit/b699f237b26ca9fe3a263b6e65b50fb6a4cba7d7))
7-
* add TypeScript v5.1 support. Add support for newer JSDOM versions ([6f06ef0](https://github.com/wessberg/ts-evaluator/commit/6f06ef0635136578c64738fec01f7f1817c85be8))
5+
- add TypeScript v5.6 support ([73ed586](https://github.com/wessberg/ts-evaluator/commit/73ed586142b01c3306cabde47ce6bc5460f33afa))
86

7+
# [1.2.0](https://github.com/wessberg/ts-evaluator/compare/v1.1.0...v1.2.0) (2023-08-04)
98

9+
### Features
1010

11-
# [1.1.0](https://github.com/wessberg/ts-evaluator/compare/v1.0.7...v1.1.0) (2023-01-10)
11+
- add Typescript v[4.9.5 ; 5.1.6] support ([b699f23](https://github.com/wessberg/ts-evaluator/commit/b699f237b26ca9fe3a263b6e65b50fb6a4cba7d7))
12+
- add TypeScript v5.1 support. Add support for newer JSDOM versions ([6f06ef0](https://github.com/wessberg/ts-evaluator/commit/6f06ef0635136578c64738fec01f7f1817c85be8))
1213

14+
# [1.1.0](https://github.com/wessberg/ts-evaluator/compare/v1.0.7...v1.1.0) (2023-01-10)
1315

1416
### Features
1517

16-
* add TypeScript v4.9 support ([590293c](https://github.com/wessberg/ts-evaluator/commit/590293c77bc5a7fc0b472451e070d2d279bb6ce9))
17-
18-
18+
- add TypeScript v4.9 support ([590293c](https://github.com/wessberg/ts-evaluator/commit/590293c77bc5a7fc0b472451e070d2d279bb6ce9))
1919

2020
## [1.0.7](https://github.com/wessberg/ts-evaluator/compare/v1.0.6...v1.0.7) (2022-07-29)
2121

22-
23-
2422
## [1.0.6](https://github.com/wessberg/ts-evaluator/compare/v1.0.5...v1.0.6) (2022-07-29)
2523

26-
2724
### Features
2825

29-
* change error handling to a continuation function approach ([8f7cfdb](https://github.com/wessberg/ts-evaluator/commit/8f7cfdbb25af525f1928d2bf3471d68d1bad5c30))
30-
31-
26+
- change error handling to a continuation function approach ([8f7cfdb](https://github.com/wessberg/ts-evaluator/commit/8f7cfdbb25af525f1928d2bf3471d68d1bad5c30))
3227

3328
## [1.0.5](https://github.com/wessberg/ts-evaluator/compare/v1.0.4...v1.0.5) (2022-07-23)
3429

35-
3630
### Bug Fixes
3731

38-
* add null-check to avoid runtime exceptions under some circumstances on returned values ([d89671c](https://github.com/wessberg/ts-evaluator/commit/d89671c80df99bd8ae2a5c66c7657055c46646fd))
39-
40-
32+
- add null-check to avoid runtime exceptions under some circumstances on returned values ([d89671c](https://github.com/wessberg/ts-evaluator/commit/d89671c80df99bd8ae2a5c66c7657055c46646fd))
4133

4234
## [1.0.4](https://github.com/wessberg/ts-evaluator/compare/v1.0.3...v1.0.4) (2022-07-23)
4335

44-
4536
### Features
4637

47-
* add ([e121d66](https://github.com/wessberg/ts-evaluator/commit/e121d662745c5cdbb83e2a0669258ff0c16a4b9d))
48-
49-
38+
- add ([e121d66](https://github.com/wessberg/ts-evaluator/commit/e121d662745c5cdbb83e2a0669258ff0c16a4b9d))
5039

5140
## [1.0.3](https://github.com/wessberg/ts-evaluator/compare/v1.0.2...v1.0.3) (2022-07-22)
5241

53-
5442
### Features
5543

56-
* make behavior when not passing in a typechecker far more robust ([5f6634f](https://github.com/wessberg/ts-evaluator/commit/5f6634f55929955a9d37a9263f99d0227f1a3956))
57-
* make evaluating identifiers more robust ([8436f68](https://github.com/wessberg/ts-evaluator/commit/8436f686b10d218977e242afcabbc2172f32bdca))
58-
59-
44+
- make behavior when not passing in a typechecker far more robust ([5f6634f](https://github.com/wessberg/ts-evaluator/commit/5f6634f55929955a9d37a9263f99d0227f1a3956))
45+
- make evaluating identifiers more robust ([8436f68](https://github.com/wessberg/ts-evaluator/commit/8436f686b10d218977e242afcabbc2172f32bdca))
6046

6147
## [1.0.2](https://github.com/wessberg/ts-evaluator/compare/v1.0.1...v1.0.2) (2022-07-22)
6248

63-
6449
### Features
6550

66-
* make passing in a typechecker optional and document its operation ([3966d4b](https://github.com/wessberg/ts-evaluator/commit/3966d4ba8fda13297bd794743d1061408b3c7a71))
67-
68-
51+
- make passing in a typechecker optional and document its operation ([3966d4b](https://github.com/wessberg/ts-evaluator/commit/3966d4ba8fda13297bd794743d1061408b3c7a71))
6952

7053
## [1.0.1](https://github.com/wessberg/ts-evaluator/compare/v1.0.0...v1.0.1) (2022-06-07)
7154

72-
73-
7455
# [1.0.0](https://github.com/wessberg/ts-evaluator/compare/v0.2.0...v1.0.0) (2022-06-07)
7556

76-
7757
### Features
7858

79-
* add TypeScript v4.7 support. Add NODE_ESM preset. Add support for evaluating new.target and import.meta meta properties ([dbe0433](https://github.com/wessberg/ts-evaluator/commit/dbe0433270c96540950a2b0a4b552249dbab50cf))
80-
81-
59+
- add TypeScript v4.7 support. Add NODE_ESM preset. Add support for evaluating new.target and import.meta meta properties ([dbe0433](https://github.com/wessberg/ts-evaluator/commit/dbe0433270c96540950a2b0a4b552249dbab50cf))
8260

8361
# [0.2.0](https://github.com/wessberg/ts-evaluator/compare/v0.1.0...v0.2.0) (2022-05-25)
8462

85-
8663
### Features
8764

88-
* add TypeScript v4.7 support. Add new sponsor: scrubtheweb ([1e91aab](https://github.com/wessberg/ts-evaluator/commit/1e91aaba01f40b8358dd1b3747eee51c3f038d4b))
89-
* fix issues with ShorthandPropertyAssignments. Move jsdom and chalk to optional peer dependencies ([d963c22](https://github.com/wessberg/ts-evaluator/commit/d963c22c429a1a381a4a91c6948aafd5cff6c6e4))
90-
91-
65+
- add TypeScript v4.7 support. Add new sponsor: scrubtheweb ([1e91aab](https://github.com/wessberg/ts-evaluator/commit/1e91aaba01f40b8358dd1b3747eee51c3f038d4b))
66+
- fix issues with ShorthandPropertyAssignments. Move jsdom and chalk to optional peer dependencies ([d963c22](https://github.com/wessberg/ts-evaluator/commit/d963c22c429a1a381a4a91c6948aafd5cff6c6e4))
9267

9368
# [0.1.0](https://github.com/wessberg/ts-evaluator/compare/v0.0.29...v0.1.0) (2021-05-20)
9469

95-
9670
### Performance Improvements
9771

98-
* remove runtime dependency on tslib ([684fe07](https://github.com/wessberg/ts-evaluator/commit/684fe0739c62d083228311907e98392e7865878c))
99-
100-
72+
- remove runtime dependency on tslib ([684fe07](https://github.com/wessberg/ts-evaluator/commit/684fe0739c62d083228311907e98392e7865878c))
10173

10274
## [0.0.29](https://github.com/wessberg/ts-evaluator/compare/v0.0.28...v0.0.29) (2021-05-17)
10375

104-
10576
### Features
10677

107-
* **typescript:** add support for TypeScript 4.3 ([a955f91](https://github.com/wessberg/ts-evaluator/commit/a955f9199553cdd4ef79b2c00c9d866fed0ccf76))
108-
109-
78+
- **typescript:** add support for TypeScript 4.3 ([a955f91](https://github.com/wessberg/ts-evaluator/commit/a955f9199553cdd4ef79b2c00c9d866fed0ccf76))
11079

11180
## [0.0.28](https://github.com/wessberg/ts-evaluator/compare/v0.0.27...v0.0.28) (2021-03-17)
11281

113-
11482
### Features
11583

116-
* **typescript:** add TypeScript 4.2 support ([e87b496](https://github.com/wessberg/ts-evaluator/commit/e87b4962e8453926171607f29bbbf5e05a014714))
117-
118-
84+
- **typescript:** add TypeScript 4.2 support ([e87b496](https://github.com/wessberg/ts-evaluator/commit/e87b4962e8453926171607f29bbbf5e05a014714))
11985

12086
## [0.0.27](https://github.com/wessberg/ts-evaluator/compare/v0.0.26...v0.0.27) (2020-10-20)
12187

122-
12388
### Features
12489

125-
* add TypeScript 4.1 support ([f1d2e28](https://github.com/wessberg/ts-evaluator/commit/f1d2e283e164021150c693c037d26e8e5a928df9))
126-
127-
90+
- add TypeScript 4.1 support ([f1d2e28](https://github.com/wessberg/ts-evaluator/commit/f1d2e283e164021150c693c037d26e8e5a928df9))
12891

12992
## [0.0.26](https://github.com/wessberg/ts-evaluator/compare/v0.0.25...v0.0.26) (2020-08-07)
13093

131-
13294
### Features
13395

134-
* **logical assignment:** add support for Logical Assignments ([639bc5c](https://github.com/wessberg/ts-evaluator/commit/639bc5ce192de9b1d7d87ac525038af409d4a4b3))
135-
136-
96+
- **logical assignment:** add support for Logical Assignments ([639bc5c](https://github.com/wessberg/ts-evaluator/commit/639bc5ce192de9b1d7d87ac525038af409d4a4b3))
13797

13898
## [0.0.25](https://github.com/wessberg/ts-evaluator/compare/v0.0.24...v0.0.25) (2020-03-01)
13999

140-
141100
### Features
142101

143-
* 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))
144-
145-
102+
- 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))
146103

147104
## [0.0.24](https://github.com/wessberg/ts-evaluator/compare/v0.0.23...v0.0.24) (2019-11-09)
148105

149-
150106
### Features
151107

152-
* **optional chaining:** add support for optional chaining and nullish coalescing ([7a79b34](https://github.com/wessberg/ts-evaluator/commit/7a79b34e6dd098a87f98bfab64c707a640c55ade))
153-
154-
108+
- **optional chaining:** add support for optional chaining and nullish coalescing ([7a79b34](https://github.com/wessberg/ts-evaluator/commit/7a79b34e6dd098a87f98bfab64c707a640c55ade))
155109

156110
## [0.0.23](https://github.com/wessberg/ts-evaluator/compare/v0.0.22...v0.0.23) (2019-10-14)
157111

158-
159112
### Features
160113

161-
* **deasync:** make the deasync module an optional dependency since not all environments support it ([814e2f8](https://github.com/wessberg/ts-evaluator/commit/814e2f857132b9ff356a15be0c41217eb5c27f64))
162-
163-
114+
- **deasync:** make the deasync module an optional dependency since not all environments support it ([814e2f8](https://github.com/wessberg/ts-evaluator/commit/814e2f857132b9ff356a15be0c41217eb5c27f64))
164115

165116
## [0.0.22](https://github.com/wessberg/ts-evaluator/compare/v0.0.21...v0.0.22) (2019-09-09)
166117

167-
168-
169118
## [0.0.21](https://github.com/wessberg/ts-evaluator/compare/v0.0.20...v0.0.21) (2019-05-29)
170119

171-
172-
173120
## [0.0.20](https://github.com/wessberg/ts-evaluator/compare/v0.0.19...v0.0.20) (2019-04-25)
174121

175-
176-
177122
## [0.0.19](https://github.com/wessberg/ts-evaluator/compare/v0.0.18...v0.0.19) (2019-03-06)
178123

179-
180124
### Bug Fixes
181125

182-
* **bug:** fixes an issue with ArrayLiteralExpressions and iterables. ([41c6452](https://github.com/wessberg/ts-evaluator/commit/41c6452342b31f606ee5fb9c4c50c6bc2d867e76))
183-
184-
126+
- **bug:** fixes an issue with ArrayLiteralExpressions and iterables. ([41c6452](https://github.com/wessberg/ts-evaluator/commit/41c6452342b31f606ee5fb9c4c50c6bc2d867e76))
185127

186128
## [0.0.18](https://github.com/wessberg/ts-evaluator/compare/v0.0.17...v0.0.18) (2018-12-30)
187129

188-
189130
### Features
190131

191-
* **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))
192-
193-
132+
- **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))
194133

195134
## [0.0.17](https://github.com/wessberg/ts-evaluator/compare/v0.0.16...v0.0.17) (2018-12-30)
196135

197-
198136
### Bug Fixes
199137

200-
* **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))
201-
138+
- **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))
202139

203140
### Features
204141

205-
* **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))
206-
207-
142+
- **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))
208143

209144
## [0.0.16](https://github.com/wessberg/ts-evaluator/compare/v0.0.15...v0.0.16) (2018-12-30)
210145

211-
212-
213146
## [0.0.15](https://github.com/wessberg/ts-evaluator/compare/v0.0.14...v0.0.15) (2018-12-30)
214147

215-
216-
217148
## [0.0.14](https://github.com/wessberg/ts-evaluator/compare/v0.0.13...v0.0.14) (2018-12-30)
218149

219-
220150
### Bug Fixes
221151

222-
* **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))
223-
224-
152+
- **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))
225153

226154
## [0.0.13](https://github.com/wessberg/ts-evaluator/compare/v0.0.12...v0.0.13) (2018-12-29)
227155

228-
229-
230156
## [0.0.12](https://github.com/wessberg/ts-evaluator/compare/v0.0.11...v0.0.12) (2018-12-29)
231157

232-
233-
234158
## [0.0.11](https://github.com/wessberg/ts-evaluator/compare/v0.0.10...v0.0.11) (2018-12-28)
235159

236-
237-
238160
## [0.0.10](https://github.com/wessberg/ts-evaluator/compare/v0.0.9...v0.0.10) (2018-12-28)
239161

240-
241-
242162
## [0.0.9](https://github.com/wessberg/ts-evaluator/compare/v0.0.8...v0.0.9) (2018-12-19)
243163

244-
245-
246164
## [0.0.8](https://github.com/wessberg/ts-evaluator/compare/v0.0.7...v0.0.8) (2018-12-18)
247165

248-
249-
250166
## [0.0.7](https://github.com/wessberg/ts-evaluator/compare/v0.0.6...v0.0.7) (2018-12-16)
251167

252-
253-
254168
## [0.0.6](https://github.com/wessberg/ts-evaluator/compare/v0.0.5...v0.0.6) (2018-12-16)
255169

256-
257-
258170
## [0.0.5](https://github.com/wessberg/ts-evaluator/compare/v0.0.4...v0.0.5) (2018-12-16)
259171

260-
261-
262172
## [0.0.4](https://github.com/wessberg/ts-evaluator/compare/v0.0.3...v0.0.4) (2018-12-16)
263173

264-
265-
266174
## [0.0.3](https://github.com/wessberg/ts-evaluator/compare/v0.0.2...v0.0.3) (2018-12-16)
267175

268-
269-
270176
## [0.0.2](https://github.com/wessberg/ts-evaluator/compare/v0.0.1...v0.0.2) (2018-12-16)
271177

272-
273-
274178
## 0.0.1 (2018-12-16)
275-
276-
277-

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © 2023 [Frederik Wessberg](mailto:[email protected]) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg))
3+
Copyright © 2024 [Frederik Wessberg](mailto:[email protected]) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg))
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ If you are looking for a Typescript REPL, or a way to _execute_ a full Typescrip
6262

6363
## Backers
6464

65-
[Become a sponsor/backer](https://github.com/wessberg/ts-evaluator?sponsor=1) and get your logo listed here.
66-
67-
| <a href="https://changelog.me"><img alt="Trent Raymond" src="https://avatars.githubusercontent.com/u/1509616?v=4" height="70" /></a> | <a href="https://scrubtheweb.com/computers/programming/1"><img alt="scrubtheweb" src="https://avatars.githubusercontent.com/u/41668218?v=4" height="70" /></a> |
68-
| -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
69-
| [Trent Raymond](https://changelog.me) | [scrubtheweb](https://scrubtheweb.com/computers/programming/1) |
70-
7165
### Patreon
7266

7367
<a href="https://www.patreon.com/bePatron?u=11315442"><img alt="Patrons on Patreon" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dwessberg%26type%3Dpatrons" width="200" /></a>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-evaluator",
3-
"version": "1.2.0",
3+
"version": "2.0.0",
44
"description": "An interpreter for Typescript that can evaluate an arbitrary Node within a Typescript AST",
55
"scripts": {
66
"generate:sandhog": "sandhog all --yes",

0 commit comments

Comments
 (0)