tstyche 1.0.0 → 2.0.0-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tstyche",
3
- "version": "1.0.0",
3
+ "version": "2.0.0-beta.0",
4
4
  "description": "The Essential Type Testing Tool.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -52,38 +52,33 @@
52
52
  "prepublish": "yarn test",
53
53
  "test": "yarn test:unit && yarn test:e2e",
54
54
  "test:coverage": "yarn build --sourcemap && c8 --config c8.config.json yarn test:e2e",
55
- "test:e2e": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.js",
55
+ "test:e2e": "mocha tests/*.test.* --config mocha.config.json",
56
56
  "test:examples": "tstyche examples",
57
- "test:types": "tstyche tests",
58
- "test:unit": "mocha --config mocha.config.json"
57
+ "test:types": "tstyche typetests",
58
+ "test:unit": "mocha **/__tests__/*.test.* --config mocha.config.json"
59
59
  },
60
60
  "devDependencies": {
61
- "@jest/globals": "29.7.0",
62
61
  "@rollup/plugin-typescript": "11.1.6",
63
- "@types/chai": "4.3.11",
64
62
  "@types/mocha": "10.0.6",
65
- "@types/node": "20.11.19",
66
- "@typescript-eslint/eslint-plugin": "7.0.2",
67
- "@typescript-eslint/parser": "7.0.2",
63
+ "@types/node": "20.11.30",
64
+ "@typescript-eslint/eslint-plugin": "7.4.0",
65
+ "@typescript-eslint/parser": "7.4.0",
68
66
  "ajv": "8.12.0",
69
67
  "c8": "9.1.0",
70
- "chai": "5.1.0",
71
- "cspell": "8.4.0",
68
+ "cspell": "8.6.1",
72
69
  "dprint": "0.45.0",
73
- "eslint": "8.56.0",
70
+ "eslint": "8.57.0",
74
71
  "eslint-import-resolver-typescript": "3.6.1",
75
72
  "eslint-plugin-import": "2.29.1",
76
- "eslint-plugin-jest": "27.9.0",
77
- "eslint-plugin-jest-formatting": "3.1.0",
73
+ "eslint-plugin-mocha": "10.4.1",
78
74
  "eslint-plugin-simple-import-sort": "12.0.0",
79
- "jest": "29.7.0",
80
- "magic-string": "0.30.7",
81
- "mocha": "10.3.0",
82
- "pretty-ansi": "1.0.0",
83
- "rollup": "4.12.0",
75
+ "magic-string": "0.30.8",
76
+ "mocha": "10.4.0",
77
+ "pretty-ansi": "2.0.0",
78
+ "rollup": "4.13.1",
84
79
  "rollup-plugin-dts": "6.1.0",
85
80
  "tslib": "2.6.2",
86
- "typescript": "5.3.3"
81
+ "typescript": "5.4.3"
87
82
  },
88
83
  "peerDependencies": {
89
84
  "typescript": "4.x || 5.x"
@@ -93,8 +88,8 @@
93
88
  "optional": true
94
89
  }
95
90
  },
96
- "packageManager": "yarn@3.8.0",
91
+ "packageManager": "yarn@3.8.1",
97
92
  "engines": {
98
- "node": "^16.14 || 18.x || >=20.x"
93
+ "node": ">=14.17"
99
94
  }
100
- }
95
+ }
package/CHANGELOG.md DELETED
@@ -1,156 +0,0 @@
1
- # Changelog
2
-
3
- ## [1.0.0] - 2024-02-20
4
-
5
- _Stable release based on [1.0.0-rc.2]._
6
-
7
- ## [1.0.0-rc.2] - 2024-02-14
8
-
9
- ### Fixed
10
-
11
- - Use the `isTypeRelatedTo()` method directly, to make strict subtype checks possible ([#127](https://github.com/tstyche/tstyche/pull/127), [#126](https://github.com/tstyche/tstyche/pull/126))
12
-
13
- ## [1.0.0-rc.1] - 2024-02-10
14
-
15
- ### Changed
16
-
17
- - **Breaking!** Remove the `disableTestFileLookup` option in favor of `testFileMatch: []` ([#121](https://github.com/tstyche/tstyche/pull/121))
18
-
19
- ### Added
20
-
21
- - **New!** Set `module: "preserve"` in the default compiler options for inferred project that are using TypeScript 5.4 and up ([#111](https://github.com/tstyche/tstyche/pull/111))
22
-
23
- ### Fixed
24
-
25
- - Do not select test files, if `testFileMatch` is an empty list ([#120](https://github.com/tstyche/tstyche/pull/120))
26
-
27
- ## [1.0.0-rc] - 2024-01-28
28
-
29
- ### Changed
30
-
31
- - **Breaking!** Replace the `allowNoTestFiles` option with `disableTestFileLookup` ([#104](https://github.com/tstyche/tstyche/pull/104))
32
-
33
- ### Added
34
-
35
- - **New!** Set default compiler options for inferred (e.g. JavaScript) projects ([#93](https://github.com/tstyche/tstyche/pull/93))
36
- - Add the `TSTYCHE_NO_INTERACTIVE` environment variable ([#88](https://github.com/tstyche/tstyche/pull/88))
37
- - Add the `TSTYCHE_TYPESCRIPT_PATH` environment variable ([#84](https://github.com/tstyche/tstyche/pull/84))
38
-
39
- ### Fixed
40
-
41
- - Only select TypeScript and JavaScript files for test run ([#105](https://github.com/tstyche/tstyche/pull/105))
42
-
43
- ## [1.0.0-beta.9] - 2024-01-05
44
-
45
- ### Fixed
46
-
47
- - Fix `"target": ["current"]` support for TypeScript 5.2 and below ([#83](https://github.com/tstyche/tstyche/pull/83))
48
-
49
- ## [1.0.0-beta.8] - 2024-01-05
50
-
51
- ### Changed
52
-
53
- - **Breaking!** Make `"target": ["current"]` the default instead of `"target": ["latest"]` ([#81](https://github.com/tstyche/tstyche/pull/81), [#80](https://github.com/tstyche/tstyche/pull/80), [#66](https://github.com/tstyche/tstyche/pull/66))
54
- - **New!** Load the installed TypeScript package for type testing instead of installing another copy to the store ([#71](https://github.com/tstyche/tstyche/pull/71), [#64](https://github.com/tstyche/tstyche/pull/64))
55
-
56
- ### Added
57
-
58
- - Add the `Path` class ([#59](https://github.com/tstyche/tstyche/pull/59))
59
-
60
- ### Fixed
61
-
62
- - Correctly handle command line options that do not take a value ([#58](https://github.com/tstyche/tstyche/pull/58))
63
-
64
- ## [1.0.0-beta.7] - 2023-12-29
65
-
66
- ### Changed
67
-
68
- - **Breaking!** Add new `Expect` class to validate provided values and orchestrate matchers logic ([#39](https://github.com/tstyche/tstyche/pull/39))
69
-
70
- ### Added
71
-
72
- - **New!** Load local language service plugins to support files like `.svelte` or `.vue` ([#56](https://github.com/tstyche/tstyche/pull/56))
73
-
74
- ### Fixed
75
-
76
- - Make the source argument checks stricter for the `.toHaveProperty()` matcher ([#46](https://github.com/tstyche/tstyche/pull/46))
77
-
78
- ## [1.0.0-beta.6] - 2023-12-03
79
-
80
- ### Added
81
-
82
- - **New!** Add `.toHaveProperty()` matcher ([#36](https://github.com/tstyche/tstyche/pull/36))
83
-
84
- ### Fixed
85
-
86
- - Accept template literals as arguments of the `.toRaiseError()` matcher ([#38](https://github.com/tstyche/tstyche/pull/38))
87
-
88
- ## [1.0.0-beta.5] - 2023-11-27
89
-
90
- ### Changed
91
-
92
- - **Breaking!** Move retry logic to the `Lock` class ([#31](https://github.com/tstyche/tstyche/pull/31))
93
- - Bring back support for Node.js 16 ([#28](https://github.com/tstyche/tstyche/pull/28), [#27](https://github.com/tstyche/tstyche/pull/27))
94
-
95
- ### Added
96
-
97
- - **New!** Add support for the `current` target tag ([#33](https://github.com/tstyche/tstyche/pull/33))
98
-
99
- ### Fixed
100
-
101
- - Allow `.raiseError()` to take template literals as arguments ([#35](https://github.com/tstyche/tstyche/pull/35))
102
-
103
- ## [1.0.0-beta.4] - 2023-11-24
104
-
105
- ### Added
106
-
107
- - Use Node.js Fetch API ([#23](https://github.com/tstyche/tstyche/pull/23))
108
-
109
- ### Removed
110
-
111
- - **Breaking!** Remove the `context()` helper ([#24](https://github.com/tstyche/tstyche/pull/24))
112
- - **Breaking!** Drop support for Node.js 16 ([#22](https://github.com/tstyche/tstyche/pull/22))
113
- - **Breaking!** Rename methods of the `StoreService` class ([`5d74201`](https://github.com/tstyche/tstyche/commit/5d74201))
114
-
115
- ### Fixed
116
-
117
- - Tune up behavior of `.skip` and `.only` run mode flags ([#25](https://github.com/tstyche/tstyche/pull/25))
118
- - Clean up error messages of primitive type matchers ([#21](https://github.com/tstyche/tstyche/pull/21))
119
- - Normalize `installationPath` path output ([#19](https://github.com/tstyche/tstyche/pull/19))
120
-
121
- ## [1.0.0-beta.3] - 2023-11-13
122
-
123
- ### Fixed
124
-
125
- - Support TypeScript's 'node10' and 'node16' resolutions ([`7dd805a`](https://github.com/tstyche/tstyche/commit/7dd805a), [`9c83e79`](https://github.com/tstyche/tstyche/commit/9c83e79))
126
-
127
- ## [1.0.0-beta.2] - 2023-11-12
128
-
129
- ### Fixed
130
-
131
- - Support TypeScript's 'node10' resolution ([#7](https://github.com/tstyche/tstyche/pull/7))
132
-
133
- ## [1.0.0-beta.1] - 2023-11-09
134
-
135
- ### Fixed
136
-
137
- - Include 'cjs' files in the published package ([`90b6473`](https://github.com/tstyche/tstyche/commit/90b6473))
138
-
139
- ## [1.0.0-beta.0] - 2023-11-09
140
-
141
- _First pre-release._
142
-
143
- [1.0.0]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0
144
- [1.0.0-rc.2]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-rc.2
145
- [1.0.0-rc.1]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-rc.1
146
- [1.0.0-rc]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-rc
147
- [1.0.0-beta.9]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.9
148
- [1.0.0-beta.8]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.8
149
- [1.0.0-beta.7]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.7
150
- [1.0.0-beta.6]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.6
151
- [1.0.0-beta.5]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.5
152
- [1.0.0-beta.4]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.4
153
- [1.0.0-beta.3]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.3
154
- [1.0.0-beta.2]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.2
155
- [1.0.0-beta.1]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.1
156
- [1.0.0-beta.0]: https://github.com/tstyche/tstyche/releases/tag/v1.0.0-beta.0