| 1 | # Changes to CSS Has Pseudo
|
|---|
| 2 |
|
|---|
| 3 | ### 3.0.4 (February 5, 2022)
|
|---|
| 4 |
|
|---|
| 5 | - Rebuild of browser polyfills
|
|---|
| 6 |
|
|---|
| 7 | ### 3.0.3 (January 12, 2022)
|
|---|
| 8 |
|
|---|
| 9 | - Fix compatibility with PostCSS `v8.2.x` [#147](https://github.com/csstools/postcss-plugins/issues/147)
|
|---|
| 10 |
|
|---|
| 11 | This version is not officially supported but some tool providers pinned PostCSS to `v8.2.x`,
|
|---|
| 12 | making it impossible for end users to have a working setup.
|
|---|
| 13 |
|
|---|
| 14 | ### 3.0.2 (January 2, 2022)
|
|---|
| 15 |
|
|---|
| 16 | - Removed Sourcemaps from package tarball.
|
|---|
| 17 | - Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121).
|
|---|
| 18 |
|
|---|
| 19 | ### 3.0.1 (December 27, 2021)
|
|---|
| 20 |
|
|---|
| 21 | - Fixed: require/import paths for browser script
|
|---|
| 22 |
|
|---|
| 23 | ### 3.0.0 (December 13, 2021)
|
|---|
| 24 |
|
|---|
| 25 | - Breaking: require/import paths have changed
|
|---|
| 26 | - Changed: new polyfill CDN urls.
|
|---|
| 27 | - Updated: documentation
|
|---|
| 28 |
|
|---|
| 29 | **Migrating to 3.0.0**
|
|---|
| 30 |
|
|---|
| 31 | PostCSS plugin :
|
|---|
| 32 |
|
|---|
| 33 | ```diff
|
|---|
| 34 | - const postcssHasPseudo = require('css-has-pseudo/postcss');
|
|---|
| 35 | + const postcssHasPseudo = require('css-has-pseudo');
|
|---|
| 36 | ```
|
|---|
| 37 |
|
|---|
| 38 | Browser Polyfill :
|
|---|
| 39 |
|
|---|
| 40 | ```diff
|
|---|
| 41 | - const cssHasPseudo = require('css-has-pseudo');
|
|---|
| 42 | + const cssHasPseudo = require('css-has-pseudo/browser');
|
|---|
| 43 | ```
|
|---|
| 44 |
|
|---|
| 45 | _The old CND url is now deprecated and will be removed in a next major release._
|
|---|
| 46 | _It will continue to work for now._
|
|---|
| 47 |
|
|---|
| 48 | ```diff
|
|---|
| 49 | - <script src="https://unpkg.com/css-has-pseudo/browser"></script>
|
|---|
| 50 | + <script src="https://unpkg.com/css-has-pseudo/dist/browser-global.js"></script>
|
|---|
| 51 | ```
|
|---|
| 52 |
|
|---|
| 53 | ### 2.0.0 (September 16, 2021)
|
|---|
| 54 |
|
|---|
| 55 | - Updated: Support for PostCS 8+ (major).
|
|---|
| 56 | - Updated: Support for Node 12+ (major).
|
|---|
| 57 |
|
|---|
| 58 | ### 1.0.0 (June 10, 2019)
|
|---|
| 59 |
|
|---|
| 60 | - Updated: `postcss-selector-parser` to 6.0.2 (major)
|
|---|
| 61 | - Updated: `postcss` to 7.0.16 (patch)
|
|---|
| 62 | - Updated: Node 8+ compatibility (major)
|
|---|
| 63 |
|
|---|
| 64 | ### 0.10.0 (December 11, 2018)
|
|---|
| 65 |
|
|---|
| 66 | - Fixed an issue where inaccessible rules would crash the library
|
|---|
| 67 |
|
|---|
| 68 | ### 0.9.0 (November 26, 2018)
|
|---|
| 69 |
|
|---|
| 70 | - Improved CLI usage
|
|---|
| 71 |
|
|---|
| 72 | ### 0.8.0 (November 26, 2018)
|
|---|
| 73 |
|
|---|
| 74 | - Fixed an issue where attribute names were not being properly encoded
|
|---|
| 75 |
|
|---|
| 76 | ### 0.7.0 (November 25, 2018)
|
|---|
| 77 |
|
|---|
| 78 | - Replaced `setImmediate` with `requestAnimationFrame` for future compatibility
|
|---|
| 79 |
|
|---|
| 80 | ### 0.6.0 (November 25, 2018)
|
|---|
| 81 |
|
|---|
| 82 | - Fixed an issue where nested rules were not supported
|
|---|
| 83 |
|
|---|
| 84 | ### 0.5.0 (November 21, 2018)
|
|---|
| 85 |
|
|---|
| 86 | - Further optimize script; from 775 bytes to 757 bytes
|
|---|
| 87 |
|
|---|
| 88 | ### 0.4.0 (November 21, 2018)
|
|---|
| 89 |
|
|---|
| 90 | - Fixed an issue with the browser script not picking up added nodes
|
|---|
| 91 |
|
|---|
| 92 | ### 0.3.0 (November 21, 2018)
|
|---|
| 93 |
|
|---|
| 94 | - Fixed the misnamed function name for the browser-ready script
|
|---|
| 95 |
|
|---|
| 96 | ### 0.2.0 (November 21, 2018)
|
|---|
| 97 |
|
|---|
| 98 | - Improved browser compatibility with updated parsers, encoders, and decoders
|
|---|
| 99 | - Improved performance by walking the DOM less
|
|---|
| 100 | - Reduced script size by 9%; from 855 bytes to 775 bytes
|
|---|
| 101 |
|
|---|
| 102 | ### 0.1.0 (November 20, 2018)
|
|---|
| 103 |
|
|---|
| 104 | - Initial version
|
|---|