Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nwb to the latest version 🚀 #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Aug 3, 2018

Version 0.22.0 of nwb was just published.

Dependency nwb
Current Version 0.21.5
Type devDependency

The version 0.22.0 is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of nwb.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes v0.22.0

Breaking Changes

  • Node.js 4 is no longer supported; Node.js 6.11.5 is now the minimum required version, as per Webpack 4 [#400]
  • Updated to Webpack 4 - if you were customising your build with nwb.config.js, some of the nwb config you depended on may have changed, and the options Webpack accepts may have changed [#409]
    • Webpack's new mode option is now set to activate Webpack 4's new defaults, which removes the need for a bunch of manual configuration nwb was doing:
      • ModuleConcatenationPlugin is now automatically enabled in production mode instead of being explicitly configured, so nwb's webpack.hoisting config has been removed.
      • NamedModulesPlugin is now automatically used in development mode instead of being explicitly configured.
      • Development UMD builds for modules now use production mode with minimization disabled, as the new development mode defaults are unsuitable for code which will be published to npm.
    • Webpack's optimization options are now used for certain pieces of configuration:
      • optimization.noEmitOnErrors is used instead of NoEmitOnErrorsPlugin to prevent emission of assets when using Hot Module Replacement.
      • UglifyJS is now configured via optimization.minimize/optimization.minimizer instead of just adding UglifyJsPlugin directly to plugins.
      • CommonsChunkPlugin has been removed in Webpack 4 - optimization.runtimeChunk is now configured to create a runtime chunk (which replaces the old manifest chunk) and optimization.splitChunks is configured to create a vendor bundle.
    • Replaced used of ExtractTextPlugin with MiniCssExtractPlugin:
      • Separate CSS files are now created and loaded on-demand for code splits.
      • Replaced webpack.extractText config with webpack.extractCSS config - this is not backwards-compatible, as plugin options differ.
    • Webpack's default performance option size warnings have been disabled (for now).
  • Updated Inferno config for Inferno v4 - see the Inferno v4 migration guide for breaking changes [#429]
    • nwb new inferno-app now asks if you want to install inferno-compat as it's no longer a single dependency, defaulting to not installing it.
  • nwb new preact-app now asks if you want to install preact-compat, defaulting to not installing it.
  • Updated to Mocha 5, which dropped support for IE9 and IE10 and fixed some false positives.
  • Removed support for deprecated webpack.compat.enzyme, webpack.compat.sinon and webpack.style = 'old' config.

Known Issues

Added

  • Added an -f/--force flag to nwb new to accept defaults and skip questions.

Changed

  • The dev server's fallback index.html serving can now be configured with dot arguments - e.g. pass --fallback.disableDotRule if you need to use dots in your path when using the HTML5 History API.
  • --no-polyfill can now be used to disable default polyfills for app projects as well as quick commands.

Dependencies

  • autoprefixer: v7.2.5 → v8.1.0
  • babel-loader: v7.1.2 → v7.1.4
  • babel-plugin-inferno: v3.3.1 → v4.0.0
  • case-sensitive-paths-webpack-plugin: v2.1.1 → v2.1.2
  • chalk: v2.3.0 → v2.3.2
  • copy-webpack-plugin: v4.3.1 → v4.5.1
  • cross-spawn: v6.0.4 → v6.0.5
  • css-loader: v0.28.9 → v0.28.10
  • extract-text-webpack-plugin v3.0.0 → mini-css-extract-plugin v0.2.0
  • filesize: v3.5.11 → v3.6.0
  • inquirer: v3.3.0 → v5.1.0 - latest version requires Node.js 6
  • karma-webpack: v2.0.9 → v2.0.13
  • mocha: v4.1.0 → v5.0.4
  • npm-install-webpack-plugin v4.0.5 → @insin/npm-install-webpack-plugin v5.0.0 - Webpack 4 compatibility
  • ora: v1.3.0 → v2.0.0
  • postcss-loader: v2.0.10 → v2.1.1
  • style-loader: v0.20.1 → v0.20.2 - skip empty url()s
  • uglifyjs-webpack-plugin: v1.1.8 → v1.2.3
  • url-loader: v0.6.2 → v1.0.1
  • webpack: v3.10.0 → v4.1.1
  • webpack-dev-middleware: v1.12.2 → v3.0.1
  • webpack-dev-server: v2.9.7 → v3.1.1
  • webpack-hot-middleware: v2.21.0 → v2.21.2
  • webpack-merge: v4.1.1 → v4.1.2

Internal

  • Updated StatusPlugin and InlineRuntimePlugin to use the Use the new Webpack 4 .hooks plugin API.

Docs

Commits

The new version differs by 29 commits.

  • cbba39e Release v0.22.0 as nwb@next
  • f0f9412 Doc cleanup
  • e4791d6 Use a temporary scoped version of NpmInstallPlugin which supports Webpack 4
  • 245dbe9 Allow dev server fallback serving to be configured with dot arguments
  • ebdcae4 Add --no-polyfill support to app commands
  • 6b7948d Added inferno-* .mjs publishing to Known Issues
  • 6e271eb Fixed webpack.debug - beautify is no longer a top-level option in UglifyJsPlugin
  • b741485 Use createComponentVNode for exported components in the Inferno render shim
  • 5692966 Update CHANGES for the uppgrade to Webpack 4 & dropping Node.js 4 support
  • c21d9e2 Update lint config
  • e3a91fe Update uglify-webpack-plugin
  • 558e36b Use production mode for all UMD builds
  • 16849ef Upgrade to Webpack 4
  • a218457 Re-disable inferno test
  • 75f51b9 Update dependencies

There are 29 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request Aug 3, 2018
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Aug 3, 2018

Version 0.23.0 just got published.

Update to this version instead 🚀

Release Notes v0.23.0

Breaking Changes

  • Updated Inferno config for Inferno 5 - inferno-* packages (such as inferno-compat) work again with Webpack 4 [#440]

Added

  • Added prepublishOnly to react-component and web-module project package.json scripts, which invokes npm run build prior to publishing [#436] [hanford]
  • Added npm.umd.entry config to specify a different entry point for the UMD build in npm module projects. Currently, the UMD build requires an entry point which must have a default export [#411]

Fixed

  • Always add CopyPlugin when webpack.copy config is provided [#431]
  • Remove use of object destructuring from render shims - fixes output of quick build commands in IE11 [#453]

Dependencies

  • autoprefixer: v8.1.0 → v9.0.2
  • babel-core: v6.26.0 → v6.26.3
  • babel-loader: v7.1.4 → v7.1.5
  • babel-plugin-inferno: v4.0.0 → v5.0.1
  • babel-plugin-istanbul: v4.1.5 → v4.1.6
  • babel-plugin-transform-decorators-legacy: v1.3.4 → v1.3.5
  • chalk: v2.3.2 → v2.4.1
  • copy-template-dir: v1.3.0 → v1.4.0
  • copy-webpack-plugin: v4.5.1 → v4.5.2
  • css-loader: v0.28.10 → v1.0.0
  • detect-port: v1.2.2 → v1.2.3
  • filesize: v3.6.0 → v3.6.1
  • fs-extra: v6.0.0 → v7.0.0
  • gzip-size: v4.1.0 → v5.0.0 - dropped Node.js 4 support
  • html-webpack-plugin: v3.0.6 → v3.2.0
  • inquirer: v5.1.0 → v6.0.0
  • karma: v2.0.0 → v2.0.5
  • karma-coverage: v1.1.1 → v1.1.2
  • karma-webpack: v2.0.13 → v3.0.0
  • mini-css-extract-plugin v0.2.0 → v0.4.1
  • mocha: v5.0.4 → v5.2.0
  • opn: v5.2.0 → v5.3.0
  • ora: v2.0.0 → v3.0.0
  • postcss-loader: v2.1.1 → v2.1.6
  • resolve: v1.5.0 → v1.8.1
  • run-series: v1.1.6 → v1.1.8
  • style-loader: v0.20.2 → v0.21.0
  • uglifyjs-webpack-plugin: v1.2.3 → v1.2.7
  • webpack: v4.1.1 → v4.16.4
  • webpack-dev-middleware: v3.0.1 → v3.1.3
  • webpack-dev-server: v3.1.1 → v3.1.5
  • webpack-hot-middleware: v2.21.2 → v2.22.3
  • webpack-merge: v4.1.2 → v4.1.4
  • whatwg-fetch: v2.0.3 → v2.0.4

Docs

Commits

The new version differs by 37 commits.

  • 7345372 Release v0.23.0
  • b2aff81 Update dependencies
  • 2fb46fc Indicate that npm.umd.entry config is available from v0.23.0 onwards
  • aec1453 Update dependencies
  • e8bb5d2 Fix typo
  • bd32199 Update dependencies
  • 2df5ae1 Update dependencies
  • 6d828a1 Update Node.js version in template CONTRIBUTING files
  • cd6bd93 Update dependencies
  • 9b9ea9b Add Node.js 10 to test versions
  • 3e864bf Don't use destructuring in render shims
  • 27281f3 Update dependencies
  • cbf2b46 Missed a few ES6 → ES changes
  • 5e8f129 Update dependencies
  • 9ea6b20 Replace usage of "ES6" with plain old "ES"

There are 37 commits in total.

See the full diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant