- Update dependencies. Thanks @XhmikosR
- Update mirroring
transform-origin
to not flipy-offset
whenx-offset
iscenter
. 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-items
andjustify-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
processEnv
option 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
aliases
option to support processing Custom Properties (CSS Variables). Thanks @elchininet
- Update
README.md
.
- Fixes
TypeError
when placing value directive before!important
. #218
- Use
strict
mode 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
--silent
and--stdin
flags are used together (Fixes #169). - Enable flipping
rotateY
. - Fix flipping
rotate3d
.
useCalc
to flip unit basedtransform-origin
.- CLI: use
console.log
instead of the deprecatedutil.print
(issue #156).
- Ignore white spaces before directives prefix.
- New Option:
useCalc
(default:false
) to flip unit basedbackground-position
usingcalc
. Thanks @zoreet
- Skip processing CSS variables. Thanks @danfooo
- Fixes a bug in flipping
background-position
having 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-position
edge offsets.
- Fixes a bug in flipping backgrounds having URL placed first (Fixes #84).
- Update
node.value
so changes will be picked up by other processors (Closes #85).
- README updates.
- Fixes a bug in complementing
calc
values (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
decl
nodes insideatrule
s andautoRename
enabled. - 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
autoRename
is applied only when a pair exists. - New directives:
config
options
raw
remove
- 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.blacklist
to 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:
autoRename
new default isfalse
.stringMap
:- added
priority
attribute to control maps execution order. - added
exclusive
attribute, 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
,swapLtrRtlInUrl
andswapWestEastInUrl
in favor ofprocessUrls
option.preserveComments
, comments inside declaration values will always be preserved.preserveDirectives
, in favor ofclean
option.
-
Constructor arguments
rules
,declarations
andproperties
are 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
calc
support. - Mark rule as flipped when values are updated by decl. directives.
- Allow further processing for rules that uses
rename
directive.
- 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
matrix3d
transform.
- 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,--ext
to 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-style
andbackground-position-x
- Upgrade to postcss v2.2.1
- Support flipping urls in
@import
rule. - 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
rtlcssConfig
property - Use a special file
.rtlcssrc
or.rtlcssrc.json
- Fix source map generation.
- Fix flipping linear-gradient.
- Allow additional comments inside
ignore
/rename
rule level directives.
- Add CLI support.
- Fix flipping transform-origin.
- Update
autoRename
to search for all swappable words.
- Support flipping
rotateZ
. - Fix flipping
rotate3d
. - Fix flipping
skew
,skewX
andskewY
. - Fix flipping
cursor
value. - Fix flipping
translate3d
. - Update flipping background horizontal position to treat
0
as0%
- 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.