Ticketfly-UI / ember-css-composer

CSS Class Name Macros
MIT License
2 stars 0 forks source link

Update postcss to the latest version πŸš€ #22

Open greenkeeper[bot] opened 7 years ago

greenkeeper[bot] commented 7 years ago

Version 6.0.0 of postcss just got published.

Dependency postcss
Current Version 5.2.17
Type dependency

The version 6.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. 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 6.0 β€œMarquis Orias”

Marquis Orias seal

PostCSS 6.0 dropped Node.js 0.12 support, cleaned raws API, added @apply support and uses less memory.

Breaking Changes

Node.js stopped 0.12 support in January 01. So PostCSS dropped Node.js 0.12 from all tests. Please update your Node.js to 4.0 or 7.0 versions.

In 6.0 we fixed our mistakes in API design. First, if node already had a parent, insert methods (append, insertAfter, etc) will not clone it anymore. In 6.0 inserts methods will remove inserted node from previous parent:

parent1.nodes.length //=> 3
parent2.append(parent1.nodes[0])
parent1.nodes.length //=> 2

So, right now there are no needs to moveTo, moveAfter and moveBefore methods. Regular insert methods have move behavior. In this case, we deprecated move methods.

Also Node#clone now return the exactly copy of the node. In 6.0 it stops to clean raws.

node.raws.before //=> "\n  "
const clone = node.clone()
clone.raws.before //=> "\n  "

Every PostCSS plugin has plugin.process shortcut. In 6.0 we split process and plugin options in this shortcut:

const plugin = postcss.plugin('postcss-awesome', colors => {
  …
})
plugin.process(css, { from: 'app.css' }, colors).css

In the new major release, we finally remove all deprecated methods from PostCSS 4.0. It should not be a big problem because we show deprecated warnings for them for 2 years. Most of the plugins updated their API.

New Methods and Properties

Since we removed deprecated methods from PostCSS 4.0, in 6.0 we were free to add before() and after() shortcuts, similar to DOM API methods.

node1.before(node2)
// is equal too
node1.parent.insertBefore(node1, node2)

Chrome 51 started to support β€œnative CSS mixins” from @tabatkins spec under the flag:

:root {
  --clearfix: {
    display: table;
    clear: both;
    content: '';
  };
}

.box:after{
  @apply --clearfix;
}

PostCSS 5.0 could parse it pretty well, but in some cases, it lost semicolon after mixin definition. In PostCSS 6.0 parser we covered this case, and node rules have Rule#raws.ownSemicolon for own semicolon.

Stream Parser

In PostCSS 5.0 tokenizing and parsing were separated steps. As a result, we put all tokens to memory between steps. It works well in most of the cases. But memory usage was pretty big when you try to parse really big CSS files (more than 25 MB).

In 6.0 @hzlmn rewrote parser, and now parser and tokenizer work together (stream parser). As a result, we put only a few latest tokens in memory. So 6.0 will use less memory.

Package Size

We care about node_modules size problem. So in 6.0 @lahmatiy and @h0tc0d3 removed js-base64 dependency to use native Node.js and Browsers ways to base64 encoding.

Also, PostCSS was moved to babel-preset-env. Instead of regular babel, it will compile only necessary parts of ES6. So build in npm packages will be cleaner. Current browserslist config for babel-preset-env is last 1 version and node 4.

Other Changes

  • Fix error message on single : in CSS.
  • Move tests to Jest.
  • Clean up test (by @gkal19).
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 6.0.1 just got published.

Update to this version instead πŸš€

Release Notes 6.0.1
greenkeeper[bot] commented 7 years ago

Version 6.0.3 just got published.

Update to this version instead πŸš€

Release Notes 6.0.3
  • Fix escape sequences parsing (by @hzlmn).
  • Added ability to force disable colors with an environment variable.
  • Improved color detection of some terminal apps.
greenkeeper[bot] commented 7 years ago

Version 6.0.4 just got published.

Update to this version instead πŸš€

Release Notes 6.0.4
greenkeeper[bot] commented 7 years ago

Version 6.0.5 just got published.

Update to this version instead πŸš€

Release Notes 6.0.5
  • Move Babel config from package.json for node_modules compiling cases.
greenkeeper[bot] commented 7 years ago

Version 6.0.6 just got published.

Update to this version instead πŸš€

Release Notes 6.0.6
  • Fix end position in at-rule without semicolon (by @hzlmn).
greenkeeper[bot] commented 7 years ago

Version 6.0.7 just got published.

Update to this version instead πŸš€

greenkeeper[bot] commented 7 years ago

Version 6.0.8 just got published.

Update to this version instead πŸš€

Release Notes 6.0.8
  • Fix Node.js 4.2.2 support.
greenkeeper[bot] commented 7 years ago

Version 6.0.9 just got published.

Update to this version instead πŸš€

Release Notes 6.0.9
  • Improve error message for plugin with old PostCSS (by @igoradamenko).
greenkeeper[bot] commented 7 years ago

Version 6.0.10 just got published.

Update to this version instead πŸš€

greenkeeper[bot] commented 7 years ago

Version 6.0.11 just got published.

Update to this version instead πŸš€

Release Notes 6.0.11
  • Add upper case !IMPORTANT support.
greenkeeper[bot] commented 7 years ago

Version 6.0.12 just got published.

Update to this version instead πŸš€

Release Notes 6.0.12
  • Don’t copy * hack to declaration indent.
greenkeeper[bot] commented 7 years ago

Version 6.0.13 just got published.

Update to this version instead πŸš€

Release Notes 6.0.13
  • Fix TypeScript definitions for case of multiple PostCSS versions in node_modules (by @chriseppstein).
  • Use source-map 0.6.
greenkeeper[bot] commented 7 years ago

Version 6.0.14 just got published.

Update to this version instead πŸš€

Release Notes 6.0.14
  • Fix TypeScript definitions (by @jedmao).
greenkeeper[bot] commented 6 years ago

Version 6.0.15 just got published.

Update to this version instead πŸš€

greenkeeper[bot] commented 6 years ago

Version 6.0.16 just got published.

Update to this version instead πŸš€

Release Notes 6.0.16
greenkeeper[bot] commented 6 years ago

Version 6.0.17 just got published.

Update to this version instead πŸš€

greenkeeper[bot] commented 6 years ago

Version 6.0.18 just got published.

Update to this version instead πŸš€

greenkeeper[bot] commented 6 years ago

Version 6.0.19 just got published.

Update to this version instead πŸš€

greenkeeper[bot] commented 6 years ago

Version 6.0.20 just got published.

Update to this version instead πŸš€

Release Notes 6.0.20
  • Better error message on null as input CSS.
greenkeeper[bot] commented 6 years ago

Version 6.0.21 just got published.

Update to this version instead πŸš€

Release Notes 6.0.21
greenkeeper[bot] commented 6 years ago

Version 6.0.22 just got published.

Update to this version instead πŸš€

Release Notes 6.0.22
  • Fix Node#prev and Node#next on missed parent.
greenkeeper[bot] commented 6 years ago

Version 6.0.23 just got published.

Update to this version instead πŸš€

Release Notes 6.0.23
  • Fix parsing nested at-rules without semicolon, params, and spaces.
  • Fix docs (by @kschiffer and @tivac).
greenkeeper[bot] commented 6 years ago

Version 7.0.0 just got published.

Update to this version instead πŸš€

Release Notes 7.0 β€œPresident Amy”

President Amy seal

PostCSS 7.0 dropped Node.js 4 support and brought small features.

Breaking Changes

We removed Node.js 4 and Node.js 9 support since it doesn’t have security updates anymore.

We removed IE and β€œdead” browsers (without security updates) fromΒ Babel’sΒ Browserslist:

last 2 version
not dead
not Explorer 11
not ExplorerMobile 11

New Features

@nikhilgaba added cute thing for plugin developers. If an error was happened in Container#walk() circle, PostCSS will show in stack trace CSS node, which causes this error:

TypeError: Cannot read property '0' of undefined
    at /home/ai/Dev/test/app.css:10:4
    at plugin (plugin.js:2:4)
    at runPostCSS (runner.js:2:1)

@igorkamyshev added finally method to LazyResult to make it compatible with the latest Promise API.

Other Changes

  • Client-side size was reduced by Size Limit feedback.
  • Add warning on calling PostCSS without plugins and syntax options.
greenkeeper[bot] commented 6 years ago

Version 7.0.1 just got published.

Update to this version instead πŸš€

Release Notes 7.0.1
greenkeeper[bot] commented 6 years ago

Version 7.0.2 just got published.

Update to this version instead πŸš€

Release Notes 7.0.2
  • Fix warning text (by @rapzo).
greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for 7.0.3
greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for 7.0.4
  • Fix safe parser regression.
greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for 7.0.5
  • Reduce npm package size (by @pgilad).
greenkeeper[bot] commented 6 years ago

Update to this version instead πŸš€

Release Notes for 7.0.6
  • Fix parsing files with BOM (by @vkrol).
greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for 7.0.7
  • Extend Error in CssSyntaxError.
greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for 7.0.8
  • Fix TypeScript definitions (by @aoberoi).
  • Use support-colors 6.0.
greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for 7.0.9
  • Increase stringifing performance for non-raws AST.
greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for 7.0.11
  • Fix source maps on declaration semicolon (by @mischnic).
greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for 7.0.12
  • Fix parsing broken CSS with two words in declaration property.
greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for 7.0.13
  • Fix parsing regression in 7.0.12 for comments between property and value.
greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for 7.0.14
greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

Release Notes for 7.0.15
  • Fix Custom Properties support (by @isolovev).
greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 5 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 4 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 4 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 4 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 4 years ago

Update to this version instead πŸš€

greenkeeper[bot] commented 4 years ago

Update to this version instead πŸš€