Skip to content

Conversation

@greenkeeper
Copy link

@greenkeeper greenkeeper bot commented May 8, 2017

Version 2.0.0 of postcss-loader just got published.

Dependency postcss-loader
Current Version 1.1.0
Type dependency

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 54 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)
  • e101b84 Release 1.3.3 version
  • bd84aab Update dependencies
  • 833df03 Remove webpack Plugin warning (#179) (#180)
  • 7b5bda5 Release 1.3.2 version
  • d1f811e Update dependencies
  • 519a8c0 fix deprecated warning (#178)
  • aab8226 Release 1.3.1 version
  • 148e1c0 Update dependencies
  • d51afd9 Do not load config file from --config (#174)

There are 54 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

greenkeeper bot added a commit that referenced this pull request May 8, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented May 8, 2017

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 added a commit that referenced this pull request May 9, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented May 9, 2017

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 5 commits0.

  • fbef238 chore(release): 2.0.2
  • e764761 fix(index): 'No PostCSS Config found' (options.config) (#215)
  • 2192d46 docs(README): rename cssnext to postcss-cssnext (#216)
  • 63f3b14 docs(README): add missing comma (#214)
  • e57cd91 docs(README): add missing comas in code examples (#211)

false

See the full diff

greenkeeper bot added a commit that referenced this pull request May 9, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented May 9, 2017

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 added a commit that referenced this pull request May 10, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented May 10, 2017

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 added a commit that referenced this pull request May 10, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented May 10, 2017

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 added a commit that referenced this pull request Jun 15, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 15, 2017

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 added a commit that referenced this pull request Oct 10, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 10, 2017

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 added a commit that referenced this pull request Oct 14, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Oct 14, 2017

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

greenkeeper bot added a commit that referenced this pull request Nov 24, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 24, 2017

Version 2.0.9 just got published.

Update to this version instead 🚀

Release Notes v2.0.9

2017-11-24

Bug Fixes

Commits

The new version differs by 4 commits.

  • b9c1add chore(release): 2.0.9
  • 3e1c7fa fix(index): filter ident (options.ident) (#315)
  • f33131c test: filter ident (options.ident) (#314)
  • 31a25e8 docs(README): fix broken link (importLoaders) (#310)

See the full diff

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

greenkeeper bot commented Jan 3, 2018

Version 2.0.10 just got published.

Update to this version instead 🚀

Release Notes v2.0.10

2018-01-03

Bug Fixes

  • index: copy loader options before modifying (#326) (61ff03c)
Commits

The new version differs by 2 commits.

  • 08c063a chore(release): 2.0.10
  • 61ff03c fix(index): copy loader options before modifying (#326)

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 2, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 2, 2018

Version 2.1.0 just got published.

Update to this version instead 🚀

Commits

The new version differs by 6 commits.

  • 6ddc2bb chore(release): 2.1.0
  • 410bbf9 chore(package): update dependencies
  • 56232e7 feat(index): pass AST (result.root) && Messages (result.messages) as metadata to other loaders (#322)
  • 4e8e20c ci(travis): add node stable && lts/*
  • 8242689 test(watch): linting && structure
  • a8921cc fix(index): continue watching after dependency {Error} (#332)

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 26, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 26, 2018

Version 2.1.1 just got published.

Update to this version instead 🚀

Release Notes v2.1.1

2018-02-26

Bug Fixes

Commits

The new version differs by 3 commits.

  • e2f4498 chore(release): 2.1.1
  • cdbb8b6 fix(index): don't set to value (options) (#339)
  • 0a643de docs(README): fix source map anchor link in options table (#336)

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 17, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 17, 2018

Version 2.1.2 just got published.

Update to this version instead 🚀

Release Notes v2.1.2

2018-03-17

Bug Fixes

  • options: disallow additional properties and add ident to validation (#346) (82ef553)
Commits

The new version differs by 3 commits.

  • 0c2259b chore(release): 2.1.2
  • 82ef553 fix(options): disallow additional properties and add ident to validation (#346)
  • 1e0cade docs(README): use strong equality operator in example (#344)

See the full diff

greenkeeper bot added a commit that referenced this pull request Mar 20, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 20, 2018

Version 2.1.3 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

  • ce2adca chore(release): 2.1.3
  • bd7fc38 fix(options): revert additionalProperties changes to keep SemVer

See the full diff

greenkeeper bot added a commit that referenced this pull request Apr 16, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Apr 16, 2018

Version 2.1.4 just got published.

Update to this version instead 🚀

Commits

The new version differs by 2 commits.

  • 2484275 chore(release): 2.1.4
  • 2ff1735 fix: restore loader object in postcss config context (#355)

See the full diff

greenkeeper bot added a commit that referenced this pull request May 4, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented May 4, 2018

Version 2.1.5 just got published.

Update to this version instead 🚀

Release Notes v2.1.5

2018-05-04

Bug Fixes

Commits

The new version differs by 2 commits.

  • 928d5c4 chore(release): 2.1.5
  • 4416791 fix(index): remove sourceMap warning (#361)

See the full diff

greenkeeper bot added a commit that referenced this pull request Jul 10, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 10, 2018

Version 2.1.6 just got published.

Update to this version instead 🚀

Release Notes v2.1.6

2018-07-10

Bug Fixes

  • package: config memory leak, updates postcss-load-config v1.2.0...2.0.0 (dependencies) (0547b12)
Commits

The new version differs by 3 commits.

  • 4955792 chore(release): 2.1.6
  • 0547b12 fix(package): config memory leak, updates postcss-load-config v1.2.0...2.0.0 (dependencies)
  • 22846d3 chore(package): update standard v10.0.0...11.0.0 (devDependencies)

See the full diff

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

greenkeeper bot commented Aug 8, 2018

Version 3.0.0 just got published.

Update to this version instead 🚀

Release Notes v3.0.0

2018-08-08

Bug Fixes

  • index: add ast version (meta.ast) (f34954f)
  • index: emit warnings as an instance of {Error} (8ac6fb5)
  • options: improved ValidationError messages (549ea08)

Chores

  • package: update postcss v6.0.0...7.0.0 (dependencies) (#375) (daa0da8)

BREAKING CHANGES

  • package: requires node >= v6.0.0
Commits

The new version differs by 27 commits.

  • 7647ac9 chore(release): 3.0.0
  • 313c3c4 docs(README): update filename formatting
  • d6931da refactor(Error): add error property checks
  • 962b1d6 refactor(options): remove ident from validation schema
  • 1f98aee refactor(Warning): add warning property checks
  • 95de4c1 docs(LOADER): update JSDoc
  • ea68a42 chore(package): update schema-utils v0.4.5...1.0.0 (dependencies)
  • 73a8c66 chore(ISSUE_TEMPLATE/DOCS): add template for documentation issues
  • 70f4426 chore(ISSUE_TEMPLATE/FEATURE): add feature request template
  • 4a0328e chore(ISSUE_TEMPLATE/BUG): move bug reports into their own template
  • 319d1f7 chore(PULL_REQUEST_TEMPLATE): improve format and content
  • bdcbef0 refactor(src): update code base with latest ES2015+ features
  • f34954f fix(index): add ast version (meta.ast)
  • 8ac6fb5 fix(index): emit warnings as an instance of {Error}
  • 2c6033b test(Errors): remove stacktrace from snapshot

There are 27 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