Skip to content

Releases: insin/nwb

v0.16.1

30 May 18:05
Compare
Choose a tag to compare

0.16.1 / 2017-05-31

Fixed:

  • Fixed bad render shim paths which were breaking the nwb react, nwb preact and nwb inferno quick development commands.
  • Fixed nwb preact commands and nwb react's --preact[-compat] when used with Preact 8 by removing a workaround for an old preact-compat distribution issue.

Added:

Dependencies:

  • css-loader: v0.28.3 → v0.28.4 - preserve leading underscore in class names

v0.16.0

28 May 14:42
Compare
Choose a tag to compare

Breaking Changes:

  • Global react, preact, and inferno 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 global preact 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 to false.

  • 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 with render() 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 in webpack.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 in webpack.rules [#256]
  • React project templates now use classes and React.Component instead of React.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 a react-component project's demo app, so any static content in demo/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 the options 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 new create-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() and info() 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, added module.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 and fs-extra instead of glob and rimraf, which are now only devDependencies.

v0.15.8

12 May 04:49
Compare
Choose a tag to compare

This release fixes dependency issues from v0.15.7

Dependencies:

  • extract-text-webpack-plugin: v2.1.0 - fix bad scoped version in nwb v0.15.7
  • html-webpack-plugin: v2.26.0 → v2.28.0 - revert relative loader resolving change from v2.25.0 back to a full path
  • webpack: v2.2.0 → v2.2.1 - ident is now automatic, fixes issue passing options to postcss-loader

v0.15.7

10 May 22:08
Compare
Choose a tag to compare

Added:

Changed:

Fixed:

  • Fixed typo in clean command in react-component skeleton [#283] [totaldis]

Docs:

v0.15.6

11 Feb 03:52
Compare
Choose a tag to compare

Changed:

  • Explicitly call process.exit(0) from the nwb command when there are no errors running a command [#262]

v0.15.5

06 Feb 06:09
Compare
Choose a tag to compare

Fixed:

  • Fixed blank version being set for the React peerDependency in new react-component projects.
    • getstorybook now works in a new react-component project again
  • Use the transpiled ES5 version of preact-compat for compatibility builds using react build with the --preact flag, to prevent UglifyJS errors [#244]

v0.15.4

25 Jan 18:43
Compare
Choose a tag to compare

Changed:

  • Support the Array version of deprecated webpack.postcss config.

    conemu64_2017-01-26_04-44-52

  • Tell the user they're including redundant config if they've manually configured inferno-compat or preact-compat aliases for React modules [#247]

    conemu64_2017-01-26_03-11-37

v0.15.3

25 Jan 10:37
Compare
Choose a tag to compare

Fixed:

  • Added a missing .default to the Preact project skeleton where CommonJS require() 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 CommonJS require() as Webpack 2 prevents module format mixing, which was previously used to provide CommonJS interop.

75019261

v0.15.2

25 Jan 09:32
Compare
Choose a tag to compare

Fixed:

  • Use the transpiled ES5 version of preact-compat, as UglifyJS can't handle the ES module build [#244]

v0.15.1

24 Jan 20:27
Compare
Choose a tag to compare

Removed:

  • Remove hints about possibly not needing babel.cherryPick due to Webpack 2 tree shaking, as this doesn't currently appear to be true.