npm contentful 5.0.1
5.0.1 (2017-10-17)

latest releases: 11.0.2, 10.15.2, 10.15.1...
6 years ago

The uncompressed browser bundle size was reduced in this release from 67K to 43K. (Gzipped: 21K -> 13K)

Breaking Changes
  • The browser bundle got renamed and split up. Modern browsers can use contentful.browser.min.js while legacy browsers might need contentful.legacy.min.js
New Features
  • es-modules: add es-modules version. Available via the module field in package.json. Webpack and Rollup will automatically pick this version
  • legacy browsers split up browser bundle. One small one for modern browsers, another legacy one for old browsers like IE11.
Bug Fixes
  • package: remove browser entry since it was misconfigured
Refactors
  • dependencies:
    • Replace most lodash functions with modern JS and enable tree-shaking for lodash. Reduces bundle size significantly.
    • Remove/Replace some other dependencies to reduce the bundle size further.
Build System / Dependencies
  • npm: Upgrade all dependencies
  • webpack: Upgrade to webpack 3.8.0
Documentation Changes
  • README:
    • add missing configs and small adjustments (b17fe77e)
    • add bundle size badge (b0e56bb5)
    • add missing sync type options (7c9bea43)
Tests
  • e2e: initial end to end tests (d2464ef6)
  • size: add bundle size test to avoid accidentally rising bundle sizes.

Don't miss a new contentful release

NewReleases is sending notifications on new releases.