项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

CHANGELOG.md 2.5 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. # 2.1.1
  2. * Fixes a compatibility issue with `modular-css` - now the module will only
  3. use the raw selector value if it equal to the 'cleaned' selector value.
  4. # 2.1.0
  5. * Adds support for converting between similar `:nth-child` selectors. For
  6. example, `:nth-child(1)` can be converted to `:first-child`, and
  7. `p:nth-last-child(2n + 1)` converts to `p:nth-last-child(odd)`.
  8. # 2.0.7
  9. * Fixes a regression where postcss-minify-selectors would transform `[title=""]`
  10. into `[title=]` (thanks to @arperry).
  11. # 2.0.6
  12. * Performance tweaks; now calls `Node#toString()` ~50% less often, removed dead
  13. branches, extracted each node type into a separate transformer function.
  14. * Resolves an issue where extraneous whitespace around a case-insensitive
  15. attribute selector (`[href="foo" i]`) would not be removed.
  16. # 2.0.5
  17. * Updated postcss-selector-parser to `2.0.0`.
  18. # 2.0.4
  19. * Now compiled with babel 6.
  20. # 2.0.3
  21. * Fixed an issue where `[a="-"]` was incorrectly minified to `[a=-]`.
  22. # 2.0.2
  23. * Fixed a crash with Polymer mixins; now the module will pass through any
  24. selector string with a trailing colon.
  25. # 2.0.1
  26. * Replaced javascript-natural-sort with alphanum-sort (thanks to @TrySound).
  27. # 2.0.0
  28. * Upgraded to PostCSS 5.
  29. * At-rule parameter minification was extracted out of this module into
  30. postcss-minify-params (thanks to @TrySound).
  31. # 1.5.0
  32. * Added support for converting pseudo elements with double colon syntax to
  33. the single colon syntax.
  34. # 1.4.7
  35. * Further performance improvements by using less postcss-selector-parser
  36. iterations.
  37. # 1.4.6
  38. * Bump normalize-selector to `0.2.0`, decreases overall package weight.
  39. * Speed up node iteration by calling `eachInside` once rather than twice.
  40. # 1.4.5
  41. * Update normalize-selector to cut down package weight.
  42. # 1.4.4
  43. * Fixed an integration issue with postcss-font-magician.
  44. # 1.4.3
  45. * Fixed an issue where `.from` was transformed to `0%`.
  46. # 1.4.2
  47. * Bump dependencies.
  48. * Fixes for PostCSS plugin guidelines.
  49. # 1.4.1
  50. * Fixes incorrect deduplication of pseudo selector rules.
  51. # 1.4.0
  52. * Update to postcss-selector-parser to greatly improve parsing logic.
  53. # 1.3.1
  54. * Fixes a crash when nothing was passed to `node-balanced`.
  55. # 1.3.0
  56. * Now uses the PostCSS `4.1` plugin API.
  57. # 1.2.1
  58. * Passes original test case in issue 1.
  59. # 1.2.0
  60. * Does not touch quoted values in attribute selectors.
  61. * No longer will mangle values such as `2100%` in keyframes.
  62. # 1.1.0
  63. * Now minifies `from` to `0%` and `100%` to `to` in keyframe declarations.
  64. # 1.0.0
  65. * Initial release.