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.

51 lines
2.2 KiB

7 years ago
  1. # Changelog
  2. All notable changes to this project will be documented in this file.
  3. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
  4. and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
  5. ## [Unreleased 1.2.0] - 2020-xx-xx
  6. You can install edge-version over
  7. `npm i -D evrone/postcss-px-to-viewport` or `yarn add -D evrone/postcss-px-to-viewport`.
  8. ### Added
  9. - [#50](https://github.com/evrone/postcss-px-to-viewport/pull/50) by [@IceApriler](https://github.com/IceApriler):
  10. `include` (Regexp or Array of Regexp) If `include` is set, only matching files will be converted,
  11. for example, only files under `src/mobile/` (`include: /\/src\/mobile\//`)
  12. > `exclude` and `include` can be set together, and the intersection of the two rules will be taken.
  13. - Added `/* px-to-viewport-ignore */` and `/* px-to-viewport-ignore-next */` — special comments
  14. for ignore conversion of single lines, inspired by
  15. [#27](https://github.com/evrone/postcss-px-to-viewport/pull/27) from [@lcat](https://github.com/lcat)
  16. [Read more about ignoring](https://github.com/evrone/postcss-px-to-viewport#ignoring).
  17. ### Changed
  18. - Changed testing lib to [Jest](https://github.com/facebook/jest)
  19. from [jasmine-node](https://github.com/mhevery/jasmine-node).
  20. - `package-lock.json` included to git-repo.
  21. ## [1.1.1] - 2019-07-08
  22. ### Fixed
  23. - Fixed `rule.source === undefined` from `postcss-modules-values`.
  24. ## [1.1.0] - 2019-02-05
  25. ### Added
  26. - `landscape` (Boolean) Adds `@media (orientation: landscape)` with values converted via `landscapeWidth`.
  27. - `landscapeUnit` (String) Expected unit for `landscape` option
  28. - `landscapeWidth` (Number) Viewport width for landscape orientation.
  29. ### Fixed
  30. - `mediaQuery` option if `true` does not mutate its value now, but the rule inside it instead.
  31. ## [1.0.0] - 2019-01-28
  32. ### Added
  33. - `replace` option - (Boolean) replaces rules containing `vw` instead of adding fallbacks.
  34. - `propList` option - (Array) The properties that can change from `px` to `vw`.
  35. - `exclude` option - (Array or Regexp) Ignore some files like `node_modules`.
  36. ### Changed
  37. - zero values now remain unitless.
  38. - replace regexp is now case sensitive, so if you want to change `px`, then `pX` values won't be changed.