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

Release notes for v11 #2334

Closed
alvarlagerlof opened this issue Sep 23, 2024 · 1 comment
Closed

Release notes for v11 #2334

alvarlagerlof opened this issue Sep 23, 2024 · 1 comment

Comments

@alvarlagerlof
Copy link

Expected Behavior

Major versions have releases and release notes in https://github.com/contentful/contentful.js/releases

Actual Behavior

No releases notes (as far as I can find) for v11, which makes upgrading hard.

@axe312ger
Copy link
Collaborator

axe312ger commented Sep 26, 2024

Preparing them right now, for now, here is my draft for the release notes:

  • No internal logic was changed. If you get the new imports working, all your other code should be able to stay untouched.
  • We now provide real ESM by default, while also providing CJS variants for older environments
    • This was tested in 22 browsers/devices, AngularJS, GatsbyJS, NextJS, NextJS + TS, Node (with and without TS, with CJS and MJS files), Nuxt, React Native (Expo), Rollup, Svelte, Vite, Vite + TS, Webpack
    • To support all these environments, we define our package type in package.json via the "type": "module" with the regular main field and as well support the new exports field.
  • We no more provide pre bundles code for nodejs (removes eval from our exported code)
  • Improved tree shaking support (finally)
  • Reduced browser bundles sizes almost by factor 3 (128kb -> 45kb)
  • Reworked our internal test environment from jest to vitest

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

No branches or pull requests

2 participants