Releases: contentful/contentful.js
Releases · contentful/contentful.js
v5.0.2
5.0.1 (2017-10-17)
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 needcontentful.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:
Tests
- e2e: initial end to end tests (d2464ef6)
- size: add bundle size test to avoid accidentally rising bundle sizes.