ts-jest 27.1.1 → 27.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.ts-jest-digest CHANGED
@@ -1 +1 @@
1
- 89e23259863a0cf11a2b03a32d700d94c8b151b2
1
+ bd2f45610719730fefd953f7489229846114d0d5
package/CHANGELOG.md CHANGED
@@ -1,10 +1,19 @@
1
+ ## [27.1.2](https://github.com/kulshekhar/ts-jest/compare/v27.1.1...v27.1.2) (2021-12-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * stimulate `esbuild` type to avoid importing `esbuild` directly ([#3147](https://github.com/kulshekhar/ts-jest/issues/3147)) ([9ace0a9](https://github.com/kulshekhar/ts-jest/commit/9ace0a9991da8bcb0f04a2e603f7601d6fb630e7))
7
+
8
+
9
+
1
10
  ## [27.1.1](https://github.com/kulshekhar/ts-jest/compare/v27.1.0...v27.1.1) (2021-12-07)
2
11
 
3
12
 
4
13
  ### Bug Fixes
5
14
 
6
15
  * bring back `afterProcess` hook ([#3132](https://github.com/kulshekhar/ts-jest/issues/3132)) ([2b6b86e](https://github.com/kulshekhar/ts-jest/commit/2b6b86e01dcd3d9d9906f24fe3db5cadb799146a))
7
- * make `esbuild` as optional peer dependency ([#3129](https://github.com/kulshekhar/ts-jest/issues/3129)) ([20258de](https://github.com/kulshekhar/ts-jest/commit/20258de54c9c10f8d2495bda174f9865a3cebc91))
16
+ * make `esbuild` as optional peer dependency ([#3129](https://github.com/kulshekhar/ts-jest/pull/3129)) ([20258de](https://github.com/kulshekhar/ts-jest/commit/20258de54c9c10f8d2495bda174f9865a3cebc91))
8
17
 
9
18
 
10
19
 
package/dist/types.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { TransformOptions } from '@jest/transform';
2
2
  import type { Config } from '@jest/types';
3
3
  import type * as _babel from 'babel__core';
4
- import type * as _esbuild from 'esbuild';
5
4
  import type * as _ts from 'typescript';
6
5
  import type { ConfigSet } from './config';
7
6
  import type { RawCompilerOptions } from './raw-compiler-options';
@@ -13,7 +12,16 @@ declare module '@jest/types' {
13
12
  }
14
13
  }
15
14
  export declare type TTypeScript = typeof _ts;
16
- export declare type TEsBuild = typeof _esbuild;
15
+ export interface TEsBuild {
16
+ transformSync(input: string, options?: {
17
+ loader: 'ts' | 'js';
18
+ format: 'cjs' | 'esm';
19
+ target: string;
20
+ }): {
21
+ code: string;
22
+ map: string;
23
+ };
24
+ }
17
25
  export declare type BabelConfig = _babel.TransformOptions;
18
26
  export declare type TsJestPresets = Pick<Config.InitialOptions, 'extensionsToTreatAsEsm' | 'moduleFileExtensions' | 'transform' | 'testMatch'>;
19
27
  export interface AstTransformer<T = Record<string, unknown>> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-jest",
3
- "version": "27.1.1",
3
+ "version": "27.1.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "bin": {
@@ -103,7 +103,7 @@
103
103
  "@types/lodash.memoize": "4.x",
104
104
  "@types/lodash.set": "4.x",
105
105
  "@types/micromatch": "4.x",
106
- "@types/node": "16.11.12",
106
+ "@types/node": "16.11.13",
107
107
  "@types/node-fetch": "^3.0.3",
108
108
  "@types/react": "17.x",
109
109
  "@types/rimraf": "^3.0.2",
@@ -115,7 +115,7 @@
115
115
  "conventional-changelog-cli": "2.x",
116
116
  "cross-spawn": "latest",
117
117
  "esbuild": "~0.14.2",
118
- "eslint": "8.4.1",
118
+ "eslint": "^8.4.1",
119
119
  "eslint-config-prettier": "latest",
120
120
  "eslint-plugin-import": "latest",
121
121
  "eslint-plugin-jest": "latest",
@@ -136,7 +136,6 @@
136
136
  "lodash.set": "^4.3.2",
137
137
  "node-fetch": "^3.0.0",
138
138
  "prettier": "^2.4.0",
139
- "react": "^17.0.2",
140
139
  "typescript": "~4.5.2"
141
140
  },
142
141
  "lint-staged": {