-
Notifications
You must be signed in to change notification settings - Fork 99
[WIP] BREAKING CHANGE: full ESM support #2472
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0432433
to
c2e2a6b
Compare
11 tasks
…s from last merge
…still should be resolved at some point
…g this api client
467d2d4
to
f0e17c2
Compare
axe312ger
commented
Jan 23, 2025
mgoudy91
reviewed
Feb 4, 2025
This was referenced Feb 14, 2025
itxch
reviewed
Feb 26, 2025
mgoudy91
previously approved these changes
Mar 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great since my last review - happy to reapprove once the merge conflicts are fixed
whitelisab
added a commit
that referenced
this pull request
Apr 16, 2025
* BREAKING CHANGE: full ESM support (#2472) * fix: clean dependencies, delete unused file, migrated overlooked tests from last merge * refactor: build process now supports TS, ESM, CJS and browser * build: upgrade to ESM version of contentful-sdk-core * test: reduce bundle size limits thanks to our optimizations * build: clean up depdency changes * chore: typos * feat: this SDK now also includes its version number in its bundles * test: fix output integration tests * build: npm dedupe * build: latest rollup dependencies * fix: use with keyword instead of assert to mark import as json * build: update depndencies related to this branch * build: make npm happy to resolve our dependencies without --force * test: ensure new failing typescript lint rules throw warnings only - still should be resolved at some point * test: fix import paths * build: ensure json-patch is available for typescript in projects using this api client * ci: update node version * fix: adjust import path * style: ensure prettier doesnt fail on our rollup config file * style: format code to make prettier lint happy * style: format code to make prettier lint happy #2 * ci: update circleci config to match our new setup * ci: cleanup * test: slightly increase bundle size limits * feat: introduce MIGRATION.md file * docs: readme cleanup * fix: move types definition to top of exports as demanded by node docs * fix: disable linting on inject-env file * docs: fix wrong link --------- Co-authored-by: Lisa White <[email protected]> * fix: replace `SysLink` & `MetaLinkProps` with `Link<T>` to improve type safety [CFISO-2344] (#2590) * fix: replace `SysLink` & `MetaLinkProps` with `Link<T>` to improve type safety * chore: prettier * fix: more specific types for subject links * fix: snapshots are created by users * fix: webhook health is created by webhook defs * fix: webhook call is created by webhook defs * chore: formatting * fix: update AiAction links * fix: `createdBy` etc should be a union, not an object * fix: remove unused types * fix: remove import * feat: narrow `sys.type` to a string literal type for better type safety (#2611) * feat: narrow `sys.type` to a string literal type for better type safety * fix: types for `Usage` * chore: prettier * feat: align taxonomy update methods with standard [NONE] (#2478) * fix: make version param required for entry patch method of plain client [DX-34] (#2610) --------- Co-authored-by: Benedikt Rötsch <[email protected]> Co-authored-by: Andi Pätzold <[email protected]> Co-authored-by: LiamStokingerContentful <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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