70 Commits
Author SHA1 Message Date
Andrey Sitnik 0048657b13 Add "use strict" because it may effect on tokenizer performance 2020-09-08 01:46:46 -04:00
Andrey Sitnik 887783b405 Change plugin running code and mark moved nodes as dirty 2020-09-05 00:31:30 -04:00
Andrey Sitnik 1ae90b7f70 Speed up PostCSS 2020-09-02 22:17:01 -04:00
Andrey Sitnik 15d0f4b7e4 Speed up async visitor API 2020-09-01 00:12:25 -04:00
Andrey Sitnik 6df84fce5e Fix two args walk methods in proxies 2020-08-24 21:24:28 -05:00
Andrey Sitnik 8b5c41e777 Prevent loop with visitor API 2020-08-22 14:56:49 -05:00
Andrey Sitnik 6fbb0d5434 Change plugin API 2020-08-06 16:00:46 -07:00
Andrey Sitnik c3b3015661 Improve test coverage 2020-08-04 17:37:21 -07:00
Andrey Sitnik 8aae507a45 Clean up types and replace JSDoc to TypeDoc 2020-07-08 17:55:13 -07:00
Andrey Sitnik fa6b5f9981 Add PrettierX 2020-07-06 17:24:57 -07:00
Joseph KapturandAndrey Sitnik 688279df21 Allow replaceWith to be called with input that includes itself. (#1368)
* Allow replaceWith to be called with a list of nodes that includes the node itself.

* Fix semicolons

* Fix semicolons
2020-06-21 19:13:54 -04:00
Andrey Sitnik 5d99a77f30 Move nodes in constructor fix from 7.0.19 2020-06-21 19:13:53 -04:00
Andrey Sitnik 7a0bf06706 Clean up visitor API 2020-06-21 19:13:53 -04:00
Andrey Sitnik 288d2ffdb6 Clean up code 2020-06-21 19:13:53 -04:00
Andrey Sitnik 6407a95d28 Update dependencies 2020-06-21 19:13:53 -04:00
Andrey Sitnik 04b816cbde Remove Babel 2020-06-21 19:13:52 -04:00
Andrey Sitnik f43a45a907 Use .es6 ext for ES6 sources 2015-08-17 16:20:40 +03:00
Andrey Sitnik 8a278b8757 Change custom syntax options 2015-08-17 16:20:39 +03:00
Andrey Sitnik ab400d3b1d Add optional stringifier to Node#toString() 2015-08-17 16:20:38 +03:00
Andrey Sitnik 2c116fd933 Change custom syntaxes API 2015-08-17 16:20:38 +03:00
Andrey Sitnik 615715be68 Add word option to Node#error 2015-08-17 16:20:38 +03:00
Andrey Sitnik 7cfa8dc4ea Clean up Node#positionInside code 2015-08-17 16:20:38 +03:00
Andrey Sitnik fe5acddc4f Add options to change PostCSS syntax 2015-08-17 16:20:37 +03:00
Andrey Sitnik 42dd6ebfcb Move Node#style to Stringifier 2015-08-17 16:20:37 +03:00
Andrey Sitnik 137024f2b8 Fix depreacted getters for raw properties 2015-08-17 16:20:37 +03:00
Andrey Sitnik b76b5a34fc Move code style properties to Node#raw 2015-08-17 16:20:37 +03:00
Andrey Sitnik 7d6f4de392 Make stringifier as a class 2015-08-17 16:20:37 +03:00
Andrey Sitnik c128e5b954 Clean up code styles 2015-08-17 16:20:37 +03:00
Andrey Sitnik a6efbaf345 Move stringifing to separated file 2015-08-17 16:20:37 +03:00
Jonathan NealandAndrey Sitnik 2a36aae2b6 Use ES6 conventions
- `…thing`
- `for (thing of things)`
2015-08-17 16:20:37 +03:00
David ClarkandAndrey Sitnik cddbf99b11 PoC for positionAt 2015-08-17 16:20:37 +03:00
Jonathan NealandAndrey Sitnik 7e3da3c1b3 Support multiple nodes on DOM4 methods
Support multiple nodes on append, prepend, and replaceWith
2015-08-17 16:20:37 +03:00
Andrey Sitnik 94732f3bf1 Speed up node.clone() 2015-05-05 13:29:51 +03:00
Andrey Sitnik 709200a2b4 Lint code with ESLint 2015-03-14 22:02:49 +03:00
Andrey Sitnik 6a43f7b367 Add CssSyntaxError#plugin 2015-03-14 22:02:49 +03:00
Andrey Sitnik 9eb7f69d31 Remove outdated comments because we have API.md 2015-03-14 22:02:49 +03:00
Andrey Sitnik 4c9c4eed48 Fix name conflict in new Babel 2015-02-22 19:42:49 +03:00
Roman VanesyanandAndrey Sitnik d8fc131077 fix travis 2015-02-16 13:14:25 +03:00
Roman VanesyanandAndrey Sitnik f023fd8177 Move defaultStyle object from prototype to constructor
It's antipatterns to add to prototype anything else except function
2015-02-16 13:14:25 +03:00
Roman VanesyanandAndrey Sitnik f9b3b4a5f3 fix typo in comments 2015-02-16 13:14:25 +03:00
Andrey Sitnik 35e3c61417 Use ES6 export statement instead of module.exports 2015-02-14 13:17:18 +03:00
Andrey Sitnik 1392efeabe More safe indent detect 2015-02-14 13:06:50 +03:00
Andrey Sitnik 912d6ea2a0 Use ES6 import 2015-02-02 07:07:53 +03:00
Andrey Sitnik 99ed1f81cd Fix jshint warning 2015-01-28 14:19:10 +03:00
Andrey Sitnik fab10ab407 Update to 6to5 3.0 2015-01-28 14:12:10 +03:00
Andrey Sitnik 1bcbfb9e20 Do not copy IE hacks to code style 2015-01-24 20:09:03 +03:00
Andrey Sitnik 7e1b183d84 Fix rare parent check 2015-01-24 03:53:09 +03:00
Andrey Sitnik 2392286b94 Fix comment before clone 2014-12-29 23:46:05 +01:00
Andrey Sitnik 2151d2a779 Use style system for comments 2014-12-29 23:14:32 +01:00
Andrey Sitnik bb50a6eccf Clean up Node#style API 2014-12-29 23:08:20 +01:00