Releases: saguijs/sagui
v9.0.1
v9.0.0
Sagui v9
The biggest and longest Sagui release of all time (for better or worst), and it brings a lot of goodies!
- Webpack 2
- Babel preset env
- Prettier
- and more!
Thanks to everyone involved @npejo, @abdulhannanali, @ticolucci, @xaviervia and @pirelenito.
BREAKING changes
This is a major release, so there are some breaking changes, but if you are not using any of the escape hatches, migration should be fairly straight forward.
- Webpack 2! If you have any custom configuration, it might need to be updated;
- Changed
sagui.config.js
espape hatches for Webpack and Karma; we rename the formerwebpackConfig
toadditionalWebpackConfig
andkarmaConfig
toadditionalKarmaConfig
; - The
.babelrc
file is no longer supported, and an internal configuration will be used instead; - The
.eslintrc
file has changed, and will need to be updated to a new version (install will show a warning). - Dropped support for some unused post-css features (see style changes bellow);
- The code formatting rules changed to prettier, and will required a
npm run format
to be OK.
Detailed change list
Webpack 2 and safer Babel preset
We migrated internally to the latest stable version of Webpack and changed from the dangerous Babel preset stage-0 to babel-preset-env which will provide a future-proof path in language features. Sagui also no longer supports .babelrc
files.
- Migration to webpack 2 #324 by @pirelenito
- Happypack, migrate to babel-preset-env and inline babelrc 🏎 #327 by @pirelenito
- Better React debug info in development and testing #329 by @pirelenito
- Create a browsers configuration 60ef044 by @pirelenito
- Update documentation to point to Webpack 2 e145fc1
- Fix support for inject loader #369 by @npejo
- Remove support for deprecated react-tranform 😵 #354 by @pirelenito
Style loader
We also dropped support of some unpopular and unused style loader features:
- Drop support for relative path imports in nested SCSS files #339 by @pirelenito
- Remove support for shared variables in CSS #339 by @pirelenito
Prettier
Sagui now comes bundled with prettier, and any formatting issues will be shown up as linter errors.
To format your code on migrating to the new version simply run npm run format
.
- Prettier support #341 by @pirelenito
- Run prettier as part of the linter to check for formatting issues #342 #346 by @npejo
- Add format command that applies prettier #347 by @pirelenito
- Document prettier and change its trailing comma configuration #353 by @pirelenito
- Improve ESLint integration in editors 📈 #367 by @pirelenito
- It should also format the sagui.config.js 👷♀️ #368 by @pirelenito
Other small new additions and fixes
- Add support to load HTML files #340 by @pirelenito
- Fix lint script not executing anything 😿 #360 (reported by @abdulhannanali)
- Enable historyApiFallback if there is only one page 📚 #370 by @xaviervia
- Add handler for unknown commands #362 by @abdulhannanali
- Do not try to write to package.json when there's no change #351 #350 by @ticolucci
- Fix and add integration tests for Flow type for v9 RC #345 by @pirelenito
v9.0.0-rc.19
- Switch to the official prettier ESLint plugin 👸🏻 #371 by @pirelenito
v9.0.0-rc.18
- Enable historyApiFallback if there is only one page 📚 #370 by @xaviervia
- Fix support for inject loader #369 by @npejo
- It should also format the
sagui.config.js
👷♀️ #368 by @pirelenito - Improve ESLint integration in editors 📈 #367 by @pirelenito
- Add handler for unknown commands #362 by @abdulhannanali
v9.0.0-rc.17
- Fix lint script not executing anything 😿 #360 (reported by @abdulhannanali)
v8.1.0
v9.0.0-rc.16
v9.0.0-rc.15
v9.0.0-rc.14
- Do not try to write to package.json when there's no change #351 #350 by @ticolucci
v9.0.0-rc.13
- Add format command that applies prettier #347