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

[WIP] BREAKING CHANGE: full ESM support #2472

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

axe312ger
Copy link
Collaborator

@axe312ger axe312ger commented Nov 21, 2024

Main PR which will turn enable full ESM support for this package. Part of #2334.

Status: Pretty much finished. Reviews welcome!

The changes in this PR will be a BREAKING CHANGE and therefore we need to release it as new major version.

Anything that can be done before will be extracted and listed in #2334

Base automatically changed from refactor/modern-testing to master November 21, 2024 17:46
@axe312ger axe312ger force-pushed the refactor/full-esm-support branch from 0432433 to c2e2a6b Compare November 26, 2024 11:03
@axe312ger axe312ger changed the title [WIP] Refactor: full esm support [WIP] BREAKING CHANGE: full ESM support Nov 26, 2024
@axe312ger axe312ger force-pushed the refactor/full-esm-support branch from 467d2d4 to f0e17c2 Compare January 23, 2025 10:49
@axe312ger axe312ger marked this pull request as ready for review January 29, 2025 11:00
@axe312ger axe312ger requested a review from a team as a code owner January 29, 2025 11:00
README.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

reminder to add migration.md + link from readme?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

".": {
"import": "./dist/esm/index.js",
"require": "./dist/contentful-management.cjs",
"types": "./dist/types/index.d.ts"
Copy link

Choose a reason for hiding this comment

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

Types should be the first item in the exports btw, as per https://nodejs.org/api/packages.html#exports
CleanShot 2025-02-26 at 09 11 21

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