Skip to content

Conversation

whitelisab
Copy link
Contributor

Summary

Updates include:

  • BREAKING CHANGE: ESM support
  • BREAKING CHANGE: Stricter types
  • BREAKING CHANGE: Taxonomy support changes

Description

Motivation and Context

Checklist (check all before merging)

  • Both unit and integration tests are passing
  • There are no breaking changes
  • Changes are reflected in the documentation

When adding a new method:

  • The new method is exported through the default and plain CMA client
  • All new public types are exported from ./lib/export-types.ts
  • Added a unit test for the new method
  • Added an integration test for the new method
  • The new method is added to the documentation

axe312ger and others added 5 commits April 16, 2025 08:47
* 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]>
…pe 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
…ty (#2611)

* feat: narrow `sys.type` to a string literal type for better type safety

* fix: types for `Usage`

* chore: prettier
@whitelisab whitelisab requested review from a team as code owners April 16, 2025 15:45
@whitelisab whitelisab merged commit 3cb96b2 into beta Apr 16, 2025
6 checks passed
@whitelisab whitelisab deleted the release/v12 branch April 16, 2025 15:46
@whitelisab whitelisab restored the release/v12 branch April 16, 2025 15:46
@contentful-automation
Copy link
Contributor

🎉 This PR is included in version 12.0.0-beta.1 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants