ts-jest 28.0.0 → 28.0.3

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
- 8fe34073b4722909e5054517258d5da2209f949e
1
+ 159743cd9897e435c297560fc7e873b39bceb367
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ ## [28.0.3](https://github.com/kulshekhar/ts-jest/compare/v28.0.2...v28.0.3) (2022-05-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **security:** update version of `json5` ([#3528](https://github.com/kulshekhar/ts-jest/issues/3528)) ([b31f5ba](https://github.com/kulshekhar/ts-jest/commit/b31f5bab142466fd8b6157ec03eff7316584e51d))
7
+
8
+
9
+
10
+ ## [28.0.2](https://github.com/kulshekhar/ts-jest/compare/v28.0.1...v28.0.2) (2022-05-07)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **transformers:** use `Array.sort` in hoisting transformer ([#3498](https://github.com/kulshekhar/ts-jest/issues/3498)) ([e400a6e](https://github.com/kulshekhar/ts-jest/commit/e400a6ec0e4706f606ae9b1e2897b0bb1cff6343)), closes [#3476](https://github.com/kulshekhar/ts-jest/issues/3476)
16
+
17
+
18
+
19
+ ## [28.0.1](https://github.com/kulshekhar/ts-jest/compare/v28.0.0...v28.0.1) (2022-05-03)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * lower the required node version to ^16.10 ([#3495](https://github.com/kulshekhar/ts-jest/issues/3495)) ([3a4e48a](https://github.com/kulshekhar/ts-jest/commit/3a4e48afffa56f76efb98f48ad3e07a92731748e)), closes [#3494](https://github.com/kulshekhar/ts-jest/issues/3494)
25
+
26
+
27
+
1
28
  # [28.0.0](https://github.com/kulshekhar/ts-jest/compare/v28.0.0-next.3...v28.0.0) (2022-05-02)
2
29
 
3
30
 
@@ -33,6 +60,15 @@
33
60
 
34
61
 
35
62
 
63
+ ## [27.1.5](https://github.com/kulshekhar/ts-jest/compare/v27.1.3...v27.1.4) (2022-05-17)
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * **transformers** use `Array.sort` in hoisting transformer ([#3498](https://github.com/kulshekhar/ts-jest/pull/3498)) ([e400a6e](https://github.com/kulshekhar/ts-jest/commit/e400a6ec0e4706f606ae9b1e2897b0bb1cff6343)), fixes [#3476](https://github.com/kulshekhar/ts-jest/issues/3476)
69
+
70
+
71
+
36
72
  ## [27.1.4](https://github.com/kulshekhar/ts-jest/compare/v27.1.3...v27.1.4) (2022-03-24)
37
73
 
38
74
 
@@ -816,7 +852,7 @@ import { mocked, createJestPreset, pathsToModuleNameMapper` } from 'ts-jest/util
816
852
  ### BREAKING CHANGES
817
853
 
818
854
  * Requires a minimum of TypeScript v3.8
819
- * Drop support for Node 8
855
+ * Drop support for Node 8
820
856
 
821
857
 
822
858
  <a name="25.5.1"></a>
package/README.md CHANGED
@@ -39,7 +39,7 @@ These instructions will get you setup to use `ts-jest` in your project. For more
39
39
  | **Prerequisites** | `npm i -D jest typescript` | `yarn add --dev jest typescript` |
40
40
  | **Installing** | `npm i -D ts-jest @types/jest` | `yarn add --dev ts-jest @types/jest` |
41
41
  | **Creating config** | `npx ts-jest config:init` | `yarn ts-jest config:init` |
42
- | **Running tests** | `npm t` or `npx jest` | `yarn test` or `yarn jest` |
42
+ | **Running tests** | `npm test` or `npx jest` | `yarn test` or `yarn jest` |
43
43
 
44
44
  ## Built With
45
45
 
@@ -50,21 +50,12 @@ function factory(_a) {
50
50
  if (statements.length <= 1) {
51
51
  return statements;
52
52
  }
53
- var pivot = statements[0];
54
- var leftPart = [];
55
- var rightPart = [];
56
- for (var i = 1; i < statements.length; i++) {
57
- var currentStatement = statements[i];
58
- if (isJestGlobalImport(currentStatement)) {
59
- leftPart.push(currentStatement);
60
- }
61
- else {
62
- isHoistableStatement(currentStatement) && !isHoistableStatement(pivot) && !isJestGlobalImport(pivot)
63
- ? leftPart.push(currentStatement)
64
- : rightPart.push(currentStatement);
65
- }
66
- }
67
- return sortStatements(leftPart).concat(pivot, sortStatements(rightPart));
53
+ return statements.sort(function (stmtA, stmtB) {
54
+ return isJestGlobalImport(stmtA) ||
55
+ (isHoistableStatement(stmtA) && !isHoistableStatement(stmtB) && !isJestGlobalImport(stmtB))
56
+ ? -1
57
+ : 1;
58
+ });
68
59
  };
69
60
  var createVisitor = function (ctx, _) {
70
61
  var visitor = function (node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-jest",
3
- "version": "28.0.0",
3
+ "version": "28.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "bin": {
@@ -54,7 +54,7 @@
54
54
  "bs-logger": "0.x",
55
55
  "fast-json-stable-stringify": "2.x",
56
56
  "jest-util": "^28.0.0",
57
- "json5": "2.x",
57
+ "json5": "^2.2.1",
58
58
  "lodash.memoize": "4.x",
59
59
  "make-error": "1.x",
60
60
  "semver": "7.x",
@@ -89,8 +89,8 @@
89
89
  }
90
90
  },
91
91
  "devDependencies": {
92
- "@commitlint/cli": "16.x",
93
- "@commitlint/config-angular": "^16.0.0",
92
+ "@commitlint/cli": "17.x",
93
+ "@commitlint/config-angular": "^17.0.0",
94
94
  "@jest/transform": "^28.0.0",
95
95
  "@jest/types": "^28.0.0",
96
96
  "@types/babel__core": "7.x",
@@ -102,7 +102,7 @@
102
102
  "@types/lodash.memoize": "4.x",
103
103
  "@types/lodash.set": "4.x",
104
104
  "@types/micromatch": "4.x",
105
- "@types/node": "17.0.30",
105
+ "@types/node": "17.0.35",
106
106
  "@types/node-fetch": "^3.0.3",
107
107
  "@types/react": "18.x",
108
108
  "@types/rimraf": "^3.0.2",
@@ -144,6 +144,6 @@
144
144
  ]
145
145
  },
146
146
  "engines": {
147
- "node": "^12.13.0 || ^14.15.0 || ^16.13.0 || >=17.0.0"
147
+ "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0"
148
148
  }
149
149
  }