Skip to content

Commit 2e32346

Browse files
committed
release: [email protected] [skip ci]
## 💥 BREAKING CHANGES 💥 - Minimum supported Node.js version is now 20.18.0 - Default exports are no longer available. See usage instructions for details on proper import syntax. - `ResultFormatter` is no longer synchronous and can now return a `Promise`. - Adoption of prettier\@3 requires some versions of Node to be executed with the `--experimental-vm-modules` option. E.g. `NODE_OPTIONS="--no-warnings --experimental-vm-modules" npx jest`. - Attempting to install babel-plugin-tester alongside jest@<30 will cause NPM to fail with `ERESOLVE`. This is because only jest@>=30 (jest-snapshot) supports the prettier\@3 asynchronous interface. ## ✨ Features - Allow testing entire babel transform result via `outputRaw` ([e9d5aa1][2]) <sup>see [#186][3]</sup> - Support collapsing/overwriting technically-illegal duplicate plugin/preset `PluginItem`s ([bf0a088][4]) - Upgrade to prettier\@3 ([3334248][5]) ## 🪄 Fixes - **readme:** use proper codecov coverage badge ([1047e5c][6]) ## ⚙️ Build System - Adopt @-xun/symbiote ([89ec951][7]) - **deps:** bump core-js from 3.40.0 to 3.42.0 ([879dd6b][8]) - **deps:** bump core-js from 3.42.0 to 3.43.0 ([7590b87][9]) - **deps:** bump debug from 4.4.0 to 4.4.1 ([3c2538c][10]) - **deps:** bump prettier from 3.4.2 to 3.5.3 ([e0a29da][11]) - **deps:** bump pretty-format from 29.7.0 to 30.0.0 ([7ea13c3][12]) - **deps:** bump rejoinder from 1.2.5 to 2.0.1 ([76dcccd][13]) - **deps:** bump type-fest from 4.32.0 to 4.41.0 ([bcbb568][14]) - **package:** be more selective about which files are included during docs generation ([cbb4215][15]) - **package:** bump minimum supported node versions to maintained ([ee6f7da][16]) - **release:** add "master" branch to release branches ([03734ea][17]) - Upgrade typescript-babel toolchain to nodenext ([d0b722f][19]) ## 🧙🏿 Refactored - **src:** deprecated default exports are no longer available ([b02d4f0][20]) [1]: https://github.com/babel-utils/babel-plugin-tester/compare/[email protected]@12.0.0 [2]: e9d5aa1 [3]: #186 [4]: bf0a088 [5]: 3334248 [6]: 1047e5c [7]: 89ec951 [8]: 879dd6b [9]: 7590b87 [10]: 3c2538c [11]: e0a29da [12]: 7ea13c3 [13]: 76dcccd [14]: bcbb568 [15]: cbb4215 [16]: ee6f7da [17]: 03734ea [18]: 170248d [19]: d0b722f [20]: b02d4f0
1 parent 4d4ff26 commit 2e32346

File tree

171 files changed

+4103
-2355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+4103
-2355
lines changed

CHANGELOG.md

Lines changed: 338 additions & 292 deletions
Large diffs are not rendered by default.

docs/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
## Modules
88

99
- [src](src/README.md)
10+
- [src/constant](src/constant/README.md)
1011
- [src/errors](src/errors/README.md)
1112
- [src/formatters/prettier](src/formatters/prettier/README.md)
1213
- [src/plugin-tester](src/plugin-tester/README.md)
1314
- [src/serializers/unstring-snapshot](src/serializers/unstring-snapshot/README.md)
14-
- [src/symbols](src/symbols/README.md)
15-
- [test/setup](test/setup/README.md)
16-
- [types/global](types/global/README.md)
17-
- [types/unique-filename](types/unique-filename/README.md)
15+
- [src/types](src/types/README.md)
16+
- [test/util](test/util/README.md)

docs/src/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,43 @@
1818

1919
### BabelType
2020

21-
Re-exports [BabelType](../types/global/type-aliases/BabelType.md)
21+
Re-exports [BabelType](types/type-aliases/BabelType.md)
2222

2323
***
2424

2525
### ErrorExpectation
2626

27-
Re-exports [ErrorExpectation](../types/global/type-aliases/ErrorExpectation.md)
27+
Re-exports [ErrorExpectation](types/type-aliases/ErrorExpectation.md)
2828

2929
***
3030

3131
### FixtureOptions
3232

33-
Re-exports [FixtureOptions](../types/global/interfaces/FixtureOptions.md)
33+
Re-exports [FixtureOptions](types/interfaces/FixtureOptions.md)
3434

3535
***
3636

3737
### OutputTesterFunction
3838

39-
Re-exports [OutputTesterFunction](../types/global/type-aliases/OutputTesterFunction.md)
39+
Re-exports [OutputTesterFunction](types/type-aliases/OutputTesterFunction.md)
4040

4141
***
4242

4343
### PluginTesterOptions
4444

45-
Re-exports [PluginTesterOptions](../types/global/interfaces/PluginTesterOptions.md)
45+
Re-exports [PluginTesterOptions](types/interfaces/PluginTesterOptions.md)
4646

4747
***
4848

4949
### prettierFormatter
5050

51-
Re-exports [prettierFormatter](formatters/prettier/functions/prettierFormatter.md)
51+
Re-exports [prettierFormatter](formatters/prettier/variables/prettierFormatter.md)
5252

5353
***
5454

5555
### ResultFormatter
5656

57-
Re-exports [ResultFormatter](../types/global/type-aliases/ResultFormatter.md)
57+
Re-exports [ResultFormatter](types/type-aliases/ResultFormatter.md)
5858

5959
***
6060

@@ -72,19 +72,19 @@ Re-exports [runPresetUnderTestHere](plugin-tester/variables/runPresetUnderTestHe
7272

7373
### SetupFunction
7474

75-
Re-exports [SetupFunction](../types/global/type-aliases/SetupFunction.md)
75+
Re-exports [SetupFunction](types/type-aliases/SetupFunction.md)
7676

7777
***
7878

7979
### TeardownFunction
8080

81-
Re-exports [TeardownFunction](../types/global/type-aliases/TeardownFunction.md)
81+
Re-exports [TeardownFunction](types/type-aliases/TeardownFunction.md)
8282

8383
***
8484

8585
### TestObject
8686

87-
Re-exports [TestObject](../types/global/interfaces/TestObject.md)
87+
Re-exports [TestObject](types/interfaces/TestObject.md)
8888

8989
***
9090

docs/src/constant/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[**babel-plugin-tester**](../../README.md)
2+
3+
***
4+
5+
[babel-plugin-tester](../../README.md) / src/constant
6+
7+
# src/constant
8+
9+
## Variables
10+
11+
- [globalDebugger](variables/globalDebugger.md)
12+
- [globalDebuggerNamespace](variables/globalDebuggerNamespace.md)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[**babel-plugin-tester**](../../../README.md)
2+
3+
***
4+
5+
[babel-plugin-tester](../../../README.md) / [src/constant](../README.md) / globalDebugger
6+
7+
# Variable: globalDebugger
8+
9+
> `const` **globalDebugger**: `ExtendedDebugger`
10+
11+
Defined in: [src/constant.ts:16](https://github.com/babel-utils/babel-plugin-tester/blob/4d4ff268cbd4a3f5ae326c51e5487f07121f5c9d/src/constant.ts#L16)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[**babel-plugin-tester**](../../../README.md)
2+
3+
***
4+
5+
[babel-plugin-tester](../../../README.md) / [src/constant](../README.md) / globalDebuggerNamespace
6+
7+
# Variable: globalDebuggerNamespace
8+
9+
> `const` **globalDebuggerNamespace**: `"bpt"` = `'bpt'`
10+
11+
Defined in: [src/constant.ts:14](https://github.com/babel-utils/babel-plugin-tester/blob/4d4ff268cbd4a3f5ae326c51e5487f07121f5c9d/src/constant.ts#L14)
12+
13+
The project-wide namespace that appears in debugger output. Only used in
14+
tests.

docs/src/errors/variables/ErrorMessage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
> `const` **ErrorMessage**: `object`
1010
11-
Defined in: [src/errors.ts:17](https://github.com/babel-utils/babel-plugin-tester/blob/03734eaa985470bea60d71fab1aa0d0dbdddae3c/src/errors.ts#L17)
11+
Defined in: [src/errors.ts:17](https://github.com/babel-utils/babel-plugin-tester/blob/4d4ff268cbd4a3f5ae326c51e5487f07121f5c9d/src/errors.ts#L17)
1212

1313
A collection of possible errors and warnings.
1414

@@ -128,7 +128,7 @@ A collection of possible errors and warnings.
128128

129129
### BadEnvironmentVariableRange()
130130

131-
> **BadEnvironmentVariableRange**: (`name`, `rangeStr`, `range`?) => `string`
131+
> **BadEnvironmentVariableRange**: (`name`, `rangeStr`, `range?`) => `string`
132132
133133
#### Parameters
134134

@@ -164,7 +164,7 @@ A collection of possible errors and warnings.
164164

165165
##### expectedError
166166

167-
`Function` | \{ `name`: `string`; \}
167+
`Function` | \{ `name?`: `string`; \}
168168

169169
#### Returns
170170

@@ -420,7 +420,7 @@ A collection of possible errors and warnings.
420420

421421
### TeardownFunctionFailed()
422422

423-
> **TeardownFunctionFailed**: (`functionError`, `frameworkError`?) => `string`
423+
> **TeardownFunctionFailed**: (`functionError`, `frameworkError?`) => `string`
424424
425425
#### Parameters
426426

docs/src/formatters/prettier/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
- [PrettierOptions](interfaces/PrettierOptions.md)
1212

13-
## Functions
13+
## Variables
1414

15-
- [prettierFormatter](functions/prettierFormatter.md)
15+
- [prettierFormatter](variables/prettierFormatter.md)
1616

1717
## References
1818

1919
### default
2020

21-
Renames and re-exports [prettierFormatter](functions/prettierFormatter.md)
21+
Renames and re-exports [prettierFormatter](variables/prettierFormatter.md)

docs/src/formatters/prettier/functions/prettierFormatter.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)