Skip to content

Commit 0ac3891

Browse files
committed
chore(release): 29.3.0
1 parent 4a33ec1 commit 0ac3891

30 files changed

+3260
-17
lines changed

CHANGELOG.md

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1-
### [29.2.6](https://github.com/kulshekhar/ts-jest/compare/v29.2.5...v29.2.6) (2025-02-22)
1+
## [29.3.0](https://github.com/kulshekhar/ts-jest/compare/v29.2.6...v29.3.0) (2025-03-21)
2+
3+
4+
### Features
5+
6+
* feat: support hybrid `module` values for `isolatedModules: true` ([f372121](https://github.com/kulshekhar/ts-jest/commit/f372121))
7+
8+
9+
### Bug Fixes
10+
11+
* fix: set `customConditions` to `undefined` in `TsCompiler` ([b091d70](https://github.com/kulshekhar/ts-jest/commit/b091d70)), closes [#4620](https://github.com/kulshekhar/ts-jest/issues/4620)
12+
13+
14+
### Code Refactoring
15+
16+
* refactor: remove manual version checker ([89458fc](https://github.com/kulshekhar/ts-jest/commit/89458fc))
17+
* refactor: remove patching deps based on version checker ([bac4c43](https://github.com/kulshekhar/ts-jest/commit/bac4c43))
18+
* refactor: deprecate `RawCompilerOptions` interface ([2b1b6cd](https://github.com/kulshekhar/ts-jest/commit/2b1b6cd))
19+
* refactor: deprecate transform option `isolatedModules` ([7dfef71](https://github.com/kulshekhar/ts-jest/commit/7dfef71))
20+
21+
22+
## DEPRECATIONS
23+
24+
* `RawCompilerOptions` is deprecated in favor of `TsConfigJson.CompilerOptions` from `type-fest`
25+
* `isolatedModules` transform option is deprecated in favor of https://www.typescriptlang.org/tsconfig/#isolatedModules
26+
27+
28+
29+
## [29.2.6](https://github.com/kulshekhar/ts-jest/compare/v29.2.5...v29.2.6) (2025-02-22)
230

331

432
### Bug Fixes
@@ -9,7 +37,7 @@
937

1038

1139

12-
### [29.2.5](https://github.com/kulshekhar/ts-jest/compare/v29.2.4...v29.2.5) (2024-08-23)
40+
## [29.2.5](https://github.com/kulshekhar/ts-jest/compare/v29.2.4...v29.2.5) (2024-08-23)
1341

1442

1543
### Bug Fixes
@@ -20,7 +48,7 @@
2048

2149

2250

23-
### [29.2.4](https://github.com/kulshekhar/ts-jest/compare/v29.2.3...v29.2.4) (2024-08-01)
51+
## [29.2.4](https://github.com/kulshekhar/ts-jest/compare/v29.2.3...v29.2.4) (2024-08-01)
2452

2553

2654
### Bug Fixes
@@ -29,7 +57,7 @@
2957

3058

3159

32-
### [29.2.3](https://github.com/kulshekhar/ts-jest/compare/v29.2.2...v29.2.3) (2024-07-18)
60+
## [29.2.3](https://github.com/kulshekhar/ts-jest/compare/v29.2.2...v29.2.3) (2024-07-18)
3361

3462

3563
### Security Fixes
@@ -52,7 +80,7 @@
5280

5381

5482

55-
### [29.2.1](https://github.com/kulshekhar/ts-jest/compare/v29.2.0...v29.2.1) (2024-07-10)
83+
## [29.2.1](https://github.com/kulshekhar/ts-jest/compare/v29.2.0...v29.2.1) (2024-07-10)
5684

5785

5886
### Bug Fixes
@@ -94,7 +122,7 @@
94122

95123

96124

97-
### [29.1.5](https://github.com/kulshekhar/ts-jest/compare/v29.1.4...v29.1.5) (2024-06-16)
125+
## [29.1.5](https://github.com/kulshekhar/ts-jest/compare/v29.1.4...v29.1.5) (2024-06-16)
98126

99127

100128
### Bug Fixes
@@ -103,7 +131,7 @@
103131

104132

105133

106-
### [29.1.4](https://github.com/kulshekhar/ts-jest/compare/v29.1.3...v29.1.4) (2024-05-28)
134+
## [29.1.4](https://github.com/kulshekhar/ts-jest/compare/v29.1.3...v29.1.4) (2024-05-28)
107135

108136

109137
### Bug Fixes
@@ -117,7 +145,7 @@
117145

118146

119147

120-
### [29.1.3](https://github.com/kulshekhar/ts-jest/compare/v29.1.2...v29.1.3) (2024-05-21)
148+
## [29.1.3](https://github.com/kulshekhar/ts-jest/compare/v29.1.2...v29.1.3) (2024-05-21)
121149

122150

123151
### Bug Fixes
@@ -132,7 +160,7 @@
132160

133161

134162

135-
### [29.1.2](https://github.com/kulshekhar/ts-jest/compare/v29.1.1...v29.1.2) (2024-01-22)
163+
## [29.1.2](https://github.com/kulshekhar/ts-jest/compare/v29.1.1...v29.1.2) (2024-01-22)
136164

137165

138166
### Bug Fixes
@@ -170,7 +198,7 @@
170198

171199

172200

173-
### [29.0.4](https://github.com/kulshekhar/ts-jest/compare/v29.0.3...v29.0.4) (2023-01-10)
201+
## [29.0.4](https://github.com/kulshekhar/ts-jest/compare/v29.0.3...v29.0.4) (2023-01-10)
174202

175203

176204
### Bug Fixes
@@ -180,7 +208,7 @@
180208

181209

182210

183-
### [29.0.3](https://github.com/kulshekhar/ts-jest/compare/v29.0.2...v29.0.3) (2022-09-28)
211+
## [29.0.3](https://github.com/kulshekhar/ts-jest/compare/v29.0.2...v29.0.3) (2022-09-28)
184212

185213

186214
### Bug Fixes
@@ -195,7 +223,7 @@
195223

196224

197225

198-
### [29.0.2](https://github.com/kulshekhar/ts-jest/compare/v29.0.1...v29.0.2) (2022-09-23)
226+
## [29.0.2](https://github.com/kulshekhar/ts-jest/compare/v29.0.1...v29.0.2) (2022-09-23)
199227

200228

201229
### Bug Fixes
@@ -205,7 +233,7 @@
205233

206234

207235

208-
### [29.0.1](https://github.com/kulshekhar/ts-jest/compare/v29.0.0...v29.0.1) (2022-09-13)
236+
## [29.0.1](https://github.com/kulshekhar/ts-jest/compare/v29.0.0...v29.0.1) (2022-09-13)
209237

210238

211239
### Bug Fixes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-jest",
3-
"version": "29.2.6",
3+
"version": "29.3.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"type": "commonjs",

website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"swizzle": "docusaurus swizzle",
1010
"deploy": "GIT_USER=kulshekhar USE_SSH=true docusaurus deploy",
1111
"serve": "docusaurus serve",
12-
"clear": "docusaurus clear"
12+
"clear": "docusaurus clear",
13+
"version": "docusaurus docs:version"
1314
},
1415
"dependencies": {
1516
"@akebifiky/remark-simple-plantuml": "^1.0.2",
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
id: babel7-or-ts
3+
title: Babel7 or TypeScript
4+
---
5+
6+
In Sept. 2018 Babel7 got released with an interesting preset: `@babel/preset-typescript`.
7+
8+
The goal is to make it easy for users using Babel to try TypeScript without moving out from Babel, just by adding a preset in their Babel config (here is the [MSDN blog post](https://blogs.msdn.microsoft.com/typescript/2018/08/27/typescript-and-babel-7/) about TypeScript and Babel 7).
9+
10+
## Limitations
11+
12+
While `@babel/preset-typescript` is a great preset, you must know the limitation of it. Here is what is possible with TypeScript (and `ts-jest`), which is not with Babel7 and `@babel/preset-typescript`:
13+
14+
#### No type-checking
15+
16+
This is the big **PRO** of using TypeScript vs Babel, you have type-checking out of the box.
17+
18+
You'll get a more fluent TDD experience (when using `ts-jest`) since files will be type-checked at the same time they're compiled and ran.
19+
20+
Here TypeScript will throw while Babel won't:
21+
22+
```ts
23+
const str: string = 42
24+
```
25+
26+
With Babel, files are transpiled as isolated modules, there is no notion of "project". With TypeScript, files are part of a project and are compiled in that scope.
27+
28+
---
29+
30+
#### No `namespace`
31+
32+
```ts
33+
namespace app {
34+
export const VERSION = '1.0.0'
35+
export class App {
36+
/* ... */
37+
}
38+
}
39+
```
40+
41+
---
42+
43+
#### No `const enum`
44+
45+
```ts
46+
const enum Directions {
47+
Up,
48+
Down,
49+
Left,
50+
Right,
51+
}
52+
```
53+
54+
---
55+
56+
#### No declaration merging (`enum`, `namespace`, ...)
57+
58+
You won't be able to do [declaration merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html).
59+
60+
---
61+
62+
#### No legacy `import`/`export`
63+
64+
```ts
65+
import lib = require('lib')
66+
// ...
67+
export = myVar
68+
```
69+
70+
---
71+
72+
#### No caret type-casting with JSX enabled
73+
74+
```ts
75+
const val = <string>input
76+
```

0 commit comments

Comments
 (0)