Releases: insin/nwb
v0.25.2
v0.25.1
v0.25.0
Breaking Changes
- Node.js 8 is no longer supported; Node.js 10.13.0 is now the minimum required version, as per many of nwb's dependencies.
Browser Support
-
Removed default polyfills for
Promise
,fetch()
andObject.assign()
and deprecatedpolyfill
config.If you need to support older browsers, you will now need to include the necessary polyfills in your app - see the new Browser Support docs for details on polyfilling and suggested modules which provide them.
If this change affects your app, a quick fix is to use react-app-polyfill's IE11 polyfill, which is equivalent to what nwb's default polyfill used to be:
import 'react-app-polyfill/ie11'
-
For apps and quick commands,
@babel/preset-env
is now configured to only transpile the necessary ECMAScript 2015+ for supported browsers.When running a development server, this defaults to the most recent version of Chrome, Firefox or Safari, so you may need to adjust
browsers.development
config if you're using an out of date browser and you will need to adjust it if you're developing with an older browser supported by your app. -
Default browser configuration for Autoprefixer when building an app has changed from
>1%, last 4 versions, Firefox ESR, not ie < 9
to>0.2%, not dead, not op_mini all
.When running a development server, the default browser configuration has changed to
last 1 chrome version, last 1 firefox version, last 1 safari version
.
Configuration
-
Deprecated using a string for
webpack.autoprefixer
config to configure supported browsers - this will no longer do anything and should be moved to the newbrowsers
config. -
Removed support for
babel.stage
andwebpack.uglify
config deprecated in nwb v0.24.0. -
copy-webpack-plugin v6.0.0 has breaking changes to its options which you should read if you're using
webpack.copy
config.In particular, the
ignore
option in a copy pattern must now be put inside the newglobOptions
option.
Dependencies
- file-loader v6.0.0 changed its default hashing algorithm so hashes in output filenames will change after updating to this release, even if their contents haven't changed.
Added
- Added top-level
browsers
config to configure supported browsers. This supports using separate browserslist queries for development and production. - Added Browser Support docs, with a section on polyfilling missing language features.
Dependencies
v0.24.7
v0.24.6
Dependencies
- @babel/core: v7.90 → v7.9.6
- @babel/plugin-transform-runtime: v7.9.0 → v7.9.6
- @babel/preset-env: v7.9.0 → v7.9.6
- @babel/runtime: v7.9.2 → v7.9.6
- @pmmmwh/react-refresh-webpack-plugin: v0.2.0 → v0.3.1
- autoprefixer: v9.7.5 → v9.7.6
- cross-spawn: v7.0.1 → v7.0.2
- css-loader: v3.4.2 → v3.5.3
- html-webpack-plugin: v3.2.0 → v4.3.0
- karma-coverage: v2.0.1 → v2.0.2
- mocha: v7.1.1 → v7.1.2
- ora: v4.0.3 → v4.0.4
- react-refresh: v0.8.1 → v0.8.2
- resolve: v1.15.1 → v1.17.0
- semver: v7.1.3 → v7.3.2
- style-loader: v1.1.3 → v1.2.1
- terser-webpack-plugin v2.3.5 → v2.3.6
- webpack: v4.42.1 → v4.43.0
- webpack-dev-server: v3.10.3 → v3.11.0
v0.24.5
0.24.5 / 2020-03-24
Changed
- html-webpack-plugin got a major version bump to v4
- Output HTML is now minified by default - you can disable this by configuring
html.minification = false
. - Chunk sorting was removed, but it seems to work as before for the ordering of the JavaScript files generated by nwb's build.
- The plugin nwb uses to inline the webpack runtime chunk was rewritten to use v4's new hooks.
- Output HTML is now minified by default - you can disable this by configuring
Fixed
- The
lang
attribute on<html>
wasn't getting set to the default'en'
when using thenwb react
,nwb preact
andnwb inferno
quick development commands.
Dependencies
v0.24.4
0.24.4 / 2020-03-21
Added
-
Added
babel.react
config to configure@babel/preset-react
options, allowing you to opt-in to using the newautomatic
runtime which was added in Babel v7.9.0.For convenience, you can just configure the runtime name if you want to try it with the experimental version of React:
module.exports = { babel: { react: 'automatic' } }
Changed
- Updated to Babel v7.9.0.
- Validate that the entry module for quick commands (e.g.
nwb react run SomeComponent.js
) exists, to avoid a confusing error message [#441]
Dependencies
- @babel/core: v7.8.7 → v7.9.0
- @babel/plugin-transform-react-constant-elements: v7.8.3 → v7.9.0
- @babel/plugin-transform-react-jsx: v7.8.3 → v7.9.1
- @babel/plugin-transform-runtime: v7.8.3 → v7.9.0
- @babel/preset-env: v7.8.7 → v7.9.0
- @babel/preset-react: v7.8.3 → v7.9.1
- @babel/runtime: v7.8.7 → v7.9.0
- babel-loader: v8.0.6 → v8.1.0
- mocha: v7.1.0 → v7.1.1
- react-refresh: v0.8.0 → v0.8.1
v0.24.3
0.24.3 / 2020-03-14
Changed
- Added a temporary hack to bypass startup info logging Webpack Dev Server currently does even when its
quiet
option is set. - CSS minification hasn't been enabled since nwb v0.23.0 as css-loader v1.0.0 stopped doing it by default - re-enable it using Optimize CSS Assets Webpack Plugin [#467]
Dependencies
- minimist v1.2.4 → v1.2.5
- optimize-css-assets-webpack-plugin v5.0.3
v0.24.2
0.24.2 / 2020-03-12
Fixed
- Fixed copying of co-located
.test.js
/.spec.js
files when building a React component or web module by also passing the new--no-copy-ignored
flag when calling @babel/cli [#529]