- Return an error code when the parsed CSS
stdinis invalid. Thanks @lade-odoo
- Add support for eight-value hex colors.
- Update mirroring
transformto safeguard functions inside values. - Internal code refactoring. Thanks @XhmikosR
- Update dependencies. Thanks @XhmikosR
- Update mirroring
transform-originto not flipy-offsetwhenx-offsetiscenter. Thanks @skmanohar - Return an error code when the parssed CSS file is invalid. Thanks @HANNICHE-Walid
- Update dependencies, Internal code refactoring, cleanup and optimizations. Thanks @XhmikosR
- Support flipping
justify-content,justify-itemsandjustify-self. Thanks @mbehzad - Support flipping length position without using
calc.
- Update dependencies. Thanks @XhmikosR
- Internal code cleanup/formatting. Thanks @XhmikosR
- Support flipping
object-position. - Update devDependencies.
- Add
processEnvoption to support flipping agent-defined environment variables (safe-area-inset-left,safe-area-inset-right).
- Bump glob-parent from 5.1.1 to 5.1.2.
- Add
aliasesoption to support processing Custom Properties (CSS Variables). Thanks @elchininet
- Update
README.md.
- Fixes
TypeErrorwhen placing value directive before!important. #218
- Use
strictmode across all files. Thanks @XhmikosR - Decrease package size by around 6%. Thanks @XhmikosR
- Add guards against prototype pollution. Thanks @XhmikosR
- Allow value directives to be placed any where inside the declaration value.
- Handle value directives placed after
!important. - Fix reading config file sources (#209).
- Upgrade to postcss 8.
- Dropped Node.js 6.x, 8.x, 11.x, and 13.x versions.
- Set input source to same file in raw directive (#180).
- Remove colors dependency from findup (#177).
- Support flipping
perspective-origin(#167). - CLI: Fix empty output when
--silentand--stdinflags are used together (Fixes #169). - Enable flipping
rotateY. - Fix flipping
rotate3d.
useCalcto flip unit basedtransform-origin.- CLI: use
console.loginstead of the deprecatedutil.print(issue #156).
- Ignore white spaces before directives prefix.
- New Option:
useCalc(default:false) to flip unit basedbackground-positionusingcalc. Thanks @zoreet
- Skip processing CSS variables. Thanks @danfooo
- Fixes a bug in flipping
background-positionhaving keywords only (Fixes #107).
- Support for pre/post hooks.
- Upgrade to postcss v6.x
- Internal code update.
- Fixes a bug in self-closing ignore directive (Fixes #88).
- Support CSS
background-positionedge offsets.
- Fixes a bug in flipping backgrounds having URL placed first (Fixes #84).
- Update
node.valueso changes will be picked up by other processors (Closes #85).
- README updates.
- Fixes a bug in complementing
calcvalues (Fixes #71).
- Fixes a bug in flipping cursor value (Fixes #68).
- Guard against flipping tokens, e.g: shadows starting with a color function.
- Fixes a bug in flipping background with a hex color value (Fixes #60).
- Fixes a bug when having
declnodes insideatrules andautoRenameenabled. - Fixes a bug in flipping multi-valued transforms.
- Support for control directive blocks, e.g.
/*rtl:begin:ignore*/ ... /*rtl:end:ignore*/. - Support for strict auto renaming, which ensures
autoRenameis applied only when a pair exists. - New directives:
configoptionsrawremove
- Support for Plugins.
Options and config settings have changed. However, you need not to worry about your CSS files as all directives are backward-compatible. This is a summary of what's changed:
-
New Options:
autoRenameStrict(default:false) to apply auto rename only when a pair exists.blacklistto prevent execution of certain directives.clean(default:true), to remove directives from output CSS.processUrls(default:false) to control URL updates. You can also target specific node types using an object literal. e.g.{'atrule': true, 'decl': false}.
-
Updated Options:
autoRenamenew default isfalse.stringMap:- added
priorityattribute to control maps execution order. - added
exclusiveattribute, which determines if a map execution should stop iterating over other maps. - dropped
'west-east'map from the default map collection.
- added
-
Removed Options:
enableLogging, still warnings and errors are reported directly to postcss.minify, it wasn't actual minification after all!swapLeftRightInUrl,swapLtrRtlInUrlandswapWestEastInUrlin favor ofprocessUrlsoption.preserveComments, comments inside declaration values will always be preserved.preserveDirectives, in favor ofcleanoption.
-
Constructor arguments
rules,declarationsandpropertiesare now replaced withplugins.
- Fixes a bug in flipping multiple transforms.
- Fixes a bug in flipping N-Values containing comments.
- Fixes a bug in flipping N-Values containing comments.
- Fixes a compatibility issue with postcss-js (Fixes #48).
- Fixed a bug in flipping backgrounds having functions (Issue #45).
- Add
calcsupport. - Mark rule as flipped when values are updated by decl. directives.
- Allow further processing for rules that uses
renamedirective.
- CLI: fix source map option (issue #40).
- Upgrade to postcss v5.0.x
- CLI: fix loading custom configuration file manually via the --config flag. Thanks @KeyKaKiTO
- Fixed flipping units having more than 1 digit before the decimal point.
- Support flipping
matrix3dtransform.
- Fix flipping string maps containing regular expressions special characters (Fixes #24).
- Fix flipping multiple shadows when a hex color was used. Thanks @ocean90
- CLI: New option
-e,--extto set output files extension when processing a directory.
- Upgrade to postcss v4.0.x Thanks @necolas
- CLI: Switch to Unix line endings (Fixes #14)
- CLI: Print processing errors.
- CLI: Support processing a directory. See CLI documentation.
- Update README.md (typos).
- New feature - String Maps. Add your own set of swappable strings, for example (prev/next).
- Preserves lowercase, UPPERCASE and Capitalization when swapping left, right, ltr, rtl, west and east.
- Support !important comments for directives (enables flipping minified stylesheets).
- Upgrade to postcss v2.2.5
- Support flipping
border-color,border-styleandbackground-position-x
- Upgrade to postcss v2.2.1
- Support flipping urls in
@importrule. - Fix JSON parse error when configuration file is UTF-8 encoded.
- Better minification.
- New configuration loader.
- CLI configuration can be set using one of the following methods:
- Specify the configuration file manually via the --config flag.
- Put your config into your projects package.json file under the
rtlcssConfigproperty - Use a special file
.rtlcssrcor.rtlcssrc.json
- Fix source map generation.
- Fix flipping linear-gradient.
- Allow additional comments inside
ignore/renamerule level directives.
- Add CLI support.
- Fix flipping transform-origin.
- Update
autoRenameto search for all swappable words.
- Support flipping
rotateZ. - Fix flipping
rotate3d. - Fix flipping
skew,skewXandskewY. - Fix flipping
cursorvalue. - Fix flipping
translate3d. - Update flipping background horizontal position to treat
0as0%
- Upgrade to postcss v0.3.4
- Support combining with other processors.
- Support rad, grad & turn angle units when flipping linear-gradient
- Fix typo in config.js
- Fix missing include in rules.js
- New option: minify output CSS.
- Updated README.md
- Initial commit.