Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate to native ESM #84

Merged
merged 1 commit into from
Sep 29, 2021
Merged

feat: migrate to native ESM #84

merged 1 commit into from
Sep 29, 2021

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Sep 28, 2021

Need to start dogfooding ESM in Jest.

@@ -1,14 +1,13 @@
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"module": "ES2020",
"moduleResolution": "node",
"lib": ["es2018"],
"noEmit": true,
"noImplicitReturns": true,
"strict": true,
"esModuleInterop": true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chalk still uses exports =, after that we can remove

BREAKING CHANGE: Drop support for Jest v26

BREAKING CHANGE: Module is now written in native ESM
@SimenB SimenB changed the base branch from main to next September 29, 2021 07:12
},
}));

jest.doMock('ansi-escapes', () => ({
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to mock the CJS version used by jest-watcher and the ESM version used by ourselves

@SimenB SimenB marked this pull request as ready for review September 29, 2021 07:15
@SimenB SimenB merged commit a8e6940 into next Sep 29, 2021
@SimenB SimenB deleted the native-esm branch September 29, 2021 07:15
github-actions bot pushed a commit that referenced this pull request Sep 29, 2021
# [1.0.0](v0.6.5...v1.0.0) (2021-09-29)

### Bug Fixes

* add `exports` field to package.json ([#86](#86)) ([1bcd08f](1bcd08f))
* drop support for EOL versions of node ([#85](#85)) ([7351933](7351933))

### Features

* migrate to native ESM ([#84](#84)) ([a8e6940](a8e6940))

### BREAKING CHANGES

* Drop support for Jest v26
* Module is now written in native ESM
* Disallow importing internal files
* Supported version range of node is now ^12.22.0 || ^14.17.0 || >=16.0.0
@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant