axe312ger / metalsmith-webpack-suite

:chains: Working example of metalsmith and webpack 3
30 stars 9 forks source link

Update postcss-loader to the latest version 🚀 #31

Closed greenkeeper[bot] closed 6 years ago

greenkeeper[bot] commented 7 years ago

Version 2.0.0 of postcss-loader just got published.

Dependency postcss-loader
Current Version 1.3.3
Type devDependency

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

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of postcss-loader. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Release Notes v2.0.0

Features

  • index: add ctx, ctx.file, ctx.options (0dceb2c)

webpack.config.js

{
  test: /\.css$/
  use: [ 
    { 
      loader: 'postcss-loader',
      options: { 
       config: { 
         ctx: {
           cssnext: {...options}
         } 
       }
    }
  ]
}

postcss.config.js

module.exports = ({ file, options, env }) => ({
    parser: file.extname === '.sss' ? 'sugarss' : false,
    plugins: {
      'postcss-import': { root: file.dirname },
      'cssnext': options.cssnext ? options.cssnext : false
      'cssnano': env === 'production' ? { safe: true } : false
    }    
})
  • index: add options validation (2b76df8)

Breaking Chances

  • Removed Support for node =< v4.0.0 (LTS)
  • Removectx.webpack
  • Remove Presets options.pack
  • Remove webpack Plugin Hook (postcss-loader-before-processing)
  • Refactor options.config for ctx.options

webpack.config.js

{
  test: /\.css$/
  use: [ 
    { 
      loader: 'postcss-loader',
      options: { 
-      config: 'path/to/postcss.config.js'
+      config: {
+        ctx: {},
+        path: 'path/to/postcss.config.js'
+     }
    }
  ]
}
Commits

The new version differs by 6 commits0.

  • e586f4a chore(release): 2.0.0
  • 40d2268 chore(package): add standard-version
  • 0b63024 chore(index): v2.0.0 (#191)
  • 2b76df8 feat(index): add options validation
  • 0dceb2c feat(index): add ctx, ctx.file, ctx.options
  • d591cdf doc(): update webpack v2 part (#186)

false

See the full diff

Not sure how things should work exactly? There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper Bot :palm_tree:

greenkeeper[bot] commented 7 years ago

Version 2.0.1 just got published.

Update to this version instead 🚀

Release Notes v2.0.1

Bug Fixes

  • index: 'Cannot create property prev on boolean false' (options.sourceMap) (c4f0064)
Commits

The new version differs by 0 commits0.

false

See the full diff

greenkeeper[bot] commented 7 years ago

Version 2.0.2 just got published.

Update to this version instead 🚀

Release Notes v2.0.2

Bug Fixes

  • index: 'No PostCSS Config found' (options.config) (#215) (e764761)
Commits

The new version differs by 0 commits0.

false

See the full diff

greenkeeper[bot] commented 7 years ago

Version 2.0.3 just got published.

Update to this version instead 🚀

Release Notes v2.0.3

Bug Fixes

  • index: don't fail on 'sourceMap: false' && emit a warning instead, when previous map found (options.sourceMap) (159b66a)
Commits

The new version differs by 2 commits0.

  • 6388f0b chore(release): 2.0.3
  • 159b66a fix(index): don't fail on 'sourceMap: false' && emit a warning instead, when previous map found (options.sourceMap)

false

See the full diff

greenkeeper[bot] commented 7 years ago

Version 2.0.4 just got published.

Update to this version instead 🚀

Commits

The new version differs by 5 commits0.

  • cc6544e chore(release): 2.0.4
  • faaeee4 fix(index): postcss.config.js not resolved correctly (options.config)
  • 4f20c99 fix(index): update validation schema, better warning message
  • 3963860 docs(README): add missing comma (#223)
  • df0226b docs(README): add missing comma (#225)

false

See the full diff

greenkeeper[bot] commented 7 years ago

Version 2.0.5 just got published.

Update to this version instead 🚀

Release Notes v2.0.5

Bug Fixes

Commits

The new version differs by 2 commits0.

  • 12c19b9 chore(release): 2.0.5
  • dca52a9 fix: regression with options.plugins {Function} (webpack.config.js) (#229)

false

See the full diff

greenkeeper[bot] commented 7 years ago

Version 2.0.6 just got published.

Update to this version instead 🚀

Release Notes v2.0.6

Bug Fixes

Commits

The new version differs by 9 commits.

  • b5b3188 chore(release): 2.0.6
  • b313478 fix(index): simplify config loading behaviour (#259)
  • 2ef4449 docs(README): inconsistent use of cssnext && postcss-cssnext references
  • 45d10ce ci(travis): rm yarn
  • 76d7c33 chore(package): update dependencies
  • 4974607 fix: allow to pass an {Object} (options.parser) (#257)
  • adcbb2e fix: misspelling in warnings (#237)
  • f7aa9a8 docs(README): added missing comma (#233)
  • 9785226 test: refactor using .config.js (JS) for test configs (#230)

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.0.7 just got published.

Update to this version instead 🚀

Release Notes v2.0.7

2017-10-10

Bug Fixes

Commits

The new version differs by 14 commits.

  • 30d8d51 chore(release): 2.0.7
  • e066f34 test: refactor (#299)
  • aaf1672 chore(package): update jest v20.0.0...21.0.0
  • 305840c chore(.github): add PULL_REQUEST_TEMPLATE
  • cd7cc1f chore(.github): add ISSUE_TEMPLATE
  • 0ec251d chore(.github): add CODEOWNERS for review
  • 081a638 docs(README): add loader description (#298)
  • 813bcbd docs(README): readd ident: postcss to examples (options.ident) (#297)
  • 8df20ce fix(index): runaway promise (#269)
  • 44f01bb docs(README): remove autoprefixer from example (#289)
  • 403f5e2 fix(index): runaway promise (#269)
  • f512a20 docs(README): add missing comma in example (#295)
  • 271ab9a chore(package): update webpack v2.6.1...3.0.0 (devDependencies) (#270)
  • 753dea7 fix: sanitizing from and to options (postcss.config.js) (#260)

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.0.8 just got published.

Update to this version instead 🚀

Release Notes v2.0.8

2017-10-14

Bug Fixes

  • lib/options: handle {Object} return (options.plugins) (#301) (df010a7)
  • schema: allow to pass an {Object} (options.syntax/options.stringifier) (#300) (58e9996)
Commits

The new version differs by 5 commits.

  • bcc9ccf chore(release): 2.0.8
  • df010a7 fix(lib/options): handle {Object} return (options.plugins) (#301)
  • e7e5478 refactor(lib/Error): remove unused branches (#302)
  • d39b84e docs(README): add option types && links (#303)
  • 58e9996 fix(schema): allow to pass an {Object} (options.syntax/options.stringifier) (#300)

See the full diff