Releases: insin/nwb
v0.16.1
0.16.1 / 2017-05-31
Fixed:
- Fixed bad render shim paths which were breaking the
nwb react
,nwb preact
andnwb inferno
quick development commands. - Fixed
nwb preact
commands andnwb react
's--preact[-compat]
when used with Preact 8 by removing a workaround for an old preact-compat distribution issue.
Added:
- Added support for create-react-class when using preact-compat.
Dependencies:
- css-loader: v0.28.3 → v0.28.4 - preserve leading underscore in class names
v0.16.0
Breaking Changes:
-
Global
react
,preact
, andinferno
commands are no longer installed when nwb is installed globally [#308]These are now subcommands of the global
nwb
command, to avoid conflicting with global commands installed by official tools for these libraries, e.g.preact-cli
is now available, which provides a globalpreact
command. -
Node.js v4.6.0 is now the minimum required version, based on the
engines
config of nwb's dependencies, -
A separate Webpack rule for stylesheets imported from
node_modules/
is no longer created by default.For backwards compatibility you can set
webpack.style
config to'old'
to use the old default behaviour - this capability will be removed in a future release. -
The Babel plugin for Inferno now requires Inferno >= 1.5 and is not backwards-compatible with 1.4.
-
Default Webpack config now sets
module.strictExportPresence = true
so a missing export is now a compile error.
Added:
-
You can now control how Webpack rules are created for stylesheets via
webpack.styles
config.This allows you to set up multiple rules for your own stylesheets (e.g. using CSS Modules only for stylesheets in a particular directory) and to provide rules for dependencies which need a specific Webpack rule for their stylesheets.
You can also disable creation of stylesheet rules by setting
webpack.styles
tofalse
. -
Re-enabled the
react-constant-elements
transform for React production builds, due to significant bug fixes. -
Added a
--no-hmre
flag for use when serving a React app, to disable use of React Transform to attempt to automatically handle Hot Module Replacement for React components and display an overlay withrender()
errors [#263] -
Added support for intl and react-intl in
webpack.compat
config [#260] [grahamlyus] -
You can now provide a
webpack.config()
function which will be given the generated Webpack config to do whatever it wants with [#256] -
You can now provide
use
config with a list of loaders inwebpack.rules
to replace a rule's default loader with chained loaders [#256] -
You can now disable a default Webpack config rule by setting it to
false
[#256]
Changed:
- Default options are no longer used if you provide a custom
loader
for a rule inwebpack.rules
[#256] - React project templates now use classes and
React.Component
instead ofReact.createClass()
, which is deprecated as of React v15.5 [#216]
Fixed:
- Fixed chunk hash not changing when imports in a split chunk are changed, by dropping use of the
webpack-md5-hash
plugin [#301] [grahamlyus] - Added missing config for
CopyWebpackPlugin
when serving areact-component
project's demo app, so any static content indemo/public/
will be also served by the dev server [#307] - Removed
node_modules/
caching from default Travis CI config in project skeletons, as it's been reported to cause build failures [#271] - An output directory specified with a trailing slash is now cleaned properly when creating a build.
- A
loader
configured for a Webpack rule is no longer moved into theoptions
object when an options object hasn't been explicitly configured [#256] - Fixed cleaning nested dirs, including a demo app's
demo/dist/
dir. - Fixed cleaning output directories specified with a trailing slash.
Dependencies:
- autoprefixer: v6.7.0 → v7.1.1
- babel-cli: v6.22.2 → v6.24.1
- babel-core: v6.22.1 → v6.24.1
- babel-loader: v6.2.10 → v7.0.0
- babel-plugin-inferno: v1.7.0 → v3.2.0 - adds support for Inferno 1.5, not backwards-compatible with 1.4
- babel-plugin-istanbul: v3.1.2 → v4.1.4 - drop support for Node.js v0.10 and v0.12
- babel-plugin-transform-react-jsx: v6.22.0 → v6.24.1
- babel-plugin-transform-react-remove-prop-types: v0.2.11 → v0.4.5 - dropped support for
React.createClass()
in favour of the newcreate-react-class
package - babel-plugin-transform-runtime: v6.22.0 → v6.23.0
- babel-polyfill: v6.22.0 → v6.23.0
- babel-preset-es2015: v6.22.0 → v6.24.1
- babel-preset-es2016: v6.22.0 → v6.24.1
- babel-preset-react: v6.22.0 → v6.24.1
- babel-preset-stage-0: v6.22.0 → v6.24.1
- babel-preset-stage-1: v6.22.0 → v6.24.1
- babel-preset-stage-2: v6.22.0 → v6.24.1
- babel-preset-stage-3: v6.22.0 → v6.24.1
- babel-runtime: v6.22.0 → v6.23.0
- case-sensitive-paths-webpack-plugin: v1.1.4 → v2.0.0 - use the file system exposed by the compiler
- css-loader: v0.26.1 → v0.28.3 - added an
alias
option - detect-port: v1.1.0 → v1.1.3
- express: v4.14.0 → v4.15.3
- file-loader: v0.9.0 → v0.11.1 - added
useRelativePath
option - filesize: v3.4.3 → v3.5.10
- inquirer: v3.0.1 → v3.0.6
- karma: v1.4.0 → v1.7.0
- karma-chrome-launcher: v2.0.0 → v2.1.1 - add support for headless Chrome/ChromeCanary
- karma-mocha-reporter: v2.2.2 → v2.2.3
- karma-phantomjs-launcher: v1.0.2 → v1.0.4 - fixed more path issues
- karma-webpack: v2.0.1 → v2.0.3 - don't swallow configuration errors
- mocha: v3.2.0 → v3.4.2
- ora: v1.1.0 → v1.2.0 - added
warn()
andinfo()
utilities - postcss-loader: v1.2.2 → v2.0.5 - validate options
- resolve: v1.2.0 → v1.3.3
- style-loader: v0.13.1 → v0.18.1
- url-loader: v0.5.7 → v0.5.8 - fix loader util deprecation warning
- webpack: v2.2.1 → v2.6.1 -
import()
can now configure a chunk name,require.ensure()
can now take an error callback, addedmodule.strictExportPresence
- webpack-dev-middleware: v1.9.0 → v1.10.2 - CORS security fix
- webpack-hot-middleware: v2.15.0 → v2.18.0 - client overlay style can now be customised with CSS using
#webpack-hot-middleware-clientOverlay
- webpack-merge: v2.4.0 → v4.1.0
- whatwg-fetch: v2.0.2 → v2.0.3
Internal:
- Use
fs
andfs-extra
instead ofglob
andrimraf
, which are now onlydevDependencies
.
v0.15.8
This release fixes dependency issues from v0.15.7
Dependencies:
v0.15.7
Added:
- Added
npm.cjs
config to disable creation of a CommonJS build inlib/
if you don't need it [#285] [treshugart]
Changed:
- Disable creation of a minified UMD build when
webpack.uglify
config isfalse
[#288] [treshugart] - Support use of Karma
customLaunchers
which start with "Chrome" [#296] [michaelsbradleyjr]
Fixed:
Docs:
- Document use of Karma's
usePolling
config to reduce CPU usage on macOS [#297] [michaelsbradleyjr]
v0.15.6
v0.15.5
Fixed:
- Fixed blank version being set for the React
peerDependency
in newreact-component
projects.getstorybook
now works in a newreact-component
project again
- Use the transpiled ES5 version of
preact-compat
for compatibility builds usingreact build
with the--preact
flag, to prevent UglifyJS errors [#244]
v0.15.4
v0.15.3
Fixed:
-
Added a missing
.default
to the Preact project skeleton where CommonJSrequire()
was being used to import an ES module [#245].default
must now be used to access the default export from an ES module when importing with CommonJSrequire()
as Webpack 2 prevents module format mixing, which was previously used to provide CommonJS interop.