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

chore: convert codebase to ESM #562

Merged
merged 5 commits into from
Jul 31, 2024
Merged

chore: convert codebase to ESM #562

merged 5 commits into from
Jul 31, 2024

Conversation

digitalsadhu
Copy link
Member

BREAKING CHANGE: JavaScript API is now ESM only and no longer supports CJS

BREAKING CHANGE: JavaScript API is now ESM only and no longer supports CJS
Copy link
Contributor

@leftieFriele leftieFriele left a comment

Choose a reason for hiding this comment

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

Looks good to me, ESM 🔥 one thing I was wondering about, should we update all the outdated dependencies as well while doing this breaking change?

commands/publish.js Outdated Show resolved Hide resolved
import scrollIntoView from 'scroll-into-view-if-needed';

const main = () => {
// eslint-disable-next-line no-undef
const node = document.getElementById('hero');
Copy link
Contributor

Choose a reason for hiding this comment

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

Not that this is the part under test, but I think this missing line is what eslint is complaining about 😅

utils/hash/compare.js Show resolved Hide resolved
classes/index.js Outdated Show resolved Hide resolved
@wkillerud
Copy link
Contributor

should we update all the outdated dependencies as well while doing this breaking change?

+1, would be nice to do a sweep of the open PRs and bump deps that would be a breaking change.

@digitalsadhu
Copy link
Member Author

Might be worth either merging this into a "next" and then updating dept, then merging into main or doing dep updates as part of this PR to avoid multiple breaking changes

@digitalsadhu digitalsadhu changed the base branch from main to next July 31, 2024 20:12
@digitalsadhu
Copy link
Member Author

This PR is now against next and I'll merge it into that and continue work updating dependencies from there

@digitalsadhu digitalsadhu merged commit 0e892f5 into next Jul 31, 2024
2 checks passed
@digitalsadhu digitalsadhu deleted the convert_codebase_to_esm branch July 31, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants