Skip to content

Upcoming v12 #2625

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

Closed
wants to merge 6 commits into from
Closed

Upcoming v12 #2625

wants to merge 6 commits into from

Conversation

axe312ger
Copy link
Collaborator

BREAKING CHANGE

  • Full native ESM support - Single Rollup pipeline now emits ESM, CJS and browser bundles
    • Update your import/require paths as needed. See MIGRATION.md and the updated README for quick examples.

Dependencies & tooling

  • Upgraded to the ESM edition of contentful-sdk-core
  • Deep cleanup
  • Latest typescript
  • Adjusted CI

Types

  • Replaced legacy SysLink/MetaLinkProps with Link generic
  • Narrowed sys.type to string-literal types
  • version parameter made required for entry.patch (plain client)

Docs:

  • Added MIGRATION.md for the ESM switch
  • README tidy-up

whitelisab and others added 3 commits April 16, 2025 09:46
* 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]>
@axe312ger axe312ger requested review from a team as code owners April 29, 2025 08:11
@whitelisab whitelisab closed this Apr 30, 2025
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.

2 participants