59 Commits
Author SHA1 Message Date
Andrey Sitnik 19afb318d6 Sort source code and fix ESLint 2024-08-31 23:26:27 +02:00
VitalyandGitHub f1cc359611 fix: print deprecation warning only when plugin is used 2022-05-13 16:00:28 +03:00
Andrey Kim afe45db6e8 Merge branch 'main' of https://github.com/postcss/postcss into main 2021-11-17 23:55:23 +03:00
Andrey Sitnik 3261a7ed1d Export Processor type 2021-11-16 16:43:49 +01:00
Andrey Kim c5059e1501 Convert istanbul ignores to c8 2021-11-15 23:10:13 +03:00
Andrey Sitnik 8376510769 Prevent console.log issue in the future 2021-10-21 14:46:50 +02:00
Aleks Hudochenkov 430ee0d902 Add Document node and related API (#1498) 2021-05-16 20:15:56 +02:00
Andrey Sitnik 843ab11b6e Add Prettier 2021-03-11 19:11:37 -05:00
Andrey Sitnik fe2a06476d Clean up warning text 2021-01-09 05:26:21 -05:00
thomas williams 8c73f032fb fix: add plugin name to deprecation message 2021-01-08 10:40:31 -08:00
Andrey Sitnik 23f7c44800 Remove dead code 2021-01-08 07:57:55 -05:00
Niklas Mischkulnig 781e433bdb Add missing test, linting, typings 2020-12-05 11:07:00 +01:00
Niklas Mischkulnig ec69e352d9 fromJSON and toJSON 2020-12-05 00:15:24 +01:00
Remco Haszing b94a22e19f Fix usage of default exports with TypeScript
This is done by assigning the property `default` for all properties that are
exported using `export default` according to their type definitions.

Closes #1424
2020-11-10 14:24:37 +01:00
Andrey Sitnik 8378eaee28 Print both English and Chinese warning 2020-09-21 20:33:17 -04:00
Andrey Sitnik f15f9994ec Add link to Chinese article 2020-09-21 10:39:11 -04:00
Andrey Sitnik 0048657b13 Add "use strict" because it may effect on tokenizer performance 2020-09-08 01:46:46 -04:00
Andrey Sitnik 9b7553e2df Full link for migration URL 2020-08-28 20:50:44 -05:00
Andrey Sitnik 7c2a7425d7 Update link 2020-08-24 11:37:21 -05:00
Andrey Sitnik 15a248c06d Pass postcss & Result to second argument for visitors 2020-08-07 11:46:58 -07:00
Andrey Sitnik 6fbb0d5434 Change plugin API 2020-08-06 16:00:46 -07:00
Andrey Sitnik 389b7b00a9 Export public classes from main entry 2020-07-12 16:31:09 -07:00
Andrey Sitnik 8aae507a45 Clean up types and replace JSDoc to TypeDoc 2020-07-08 17:55:13 -07:00
Andrey Sitnik 4caccf1541 Remove postcss.vendor API 2020-07-07 22:52:46 -07:00
Andrey Sitnik fa6b5f9981 Add PrettierX 2020-07-06 17:24:57 -07: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 87ba8dc66a Use ES7 syntax to set class properties 2015-08-17 16:20:38 +03:00
Andrey Sitnik 02fd426c50 Add postcss.stringify 2015-08-17 16:20:38 +03:00
Andrey Sitnik a425e295fd Clean up code 2015-08-17 16:20:37 +03:00
Ben BriggsandAndrey Sitnik 14c0818209 Add plugin#process shortcut. Fixes #337. 2015-08-17 16:20:37 +03:00
Andrey Sitnik 709200a2b4 Lint code with ESLint 2015-03-14 22:02:49 +03:00
Andrey Sitnik 7887438558 Move compatibility warning to LazyResult#run 2015-03-14 22:02:49 +03:00
Andrey Sitnik 38d3840cc1 Fix JSHint warning 2015-03-14 22:02:49 +03:00
Andrey Sitnik 4e1e0a1687 Save postcssPlugin and postcssVersion to plugin function 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 c26dbaa50f Clean up code 2015-03-14 22:02:48 +03:00
Andrey Sitnik 58faac110c Fix code indentation 2015-03-14 22:02:48 +03:00
Andrey Sitnik 7797406b3f Verify plugin compatibility 2015-03-14 22:02:48 +03:00
Andrey Sitnik a43880fc5f Add postcss.plugin method 2015-03-14 22:02:48 +03:00
Andrey Sitnik 22239d0687 Make postcss.list and postcss.vendor aliases 2015-03-14 22:02:48 +03:00
Andrey Sitnik 19b1eaae14 Rename PostCSS class to Processor 2015-03-14 22:02:48 +03:00
Andrey Sitnik a6af7ab64e Clean up imports 2015-02-14 13:23:49 +03:00
Andrey Sitnik 35e3c61417 Use ES6 export statement instead of module.exports 2015-02-14 13:17:18 +03:00
Andrey Sitnik 912d6ea2a0 Use ES6 import 2015-02-02 07:07:53 +03:00
Andrey Sitnik fab10ab407 Update to 6to5 3.0 2015-01-28 14:12:10 +03:00
Andrey Sitnik 569a361814 Rename PostCSS#processors to plugins 2014-12-29 01:20:52 +01:00
Andrey Sitnik 77a3121f97 Remove deprecated APIs 2014-12-27 00:24:13 +03:00
Andrey Sitnik 69c2e25b3a Clean up code 2014-12-09 11:51:43 +03:00
Maxime Thirouin 6aca962ddd Safer way for PostCSS to consume PostCSS object as plugin
Because project like grunt are doing some shitty cloning for option,
the test ìnstanceof PostCSS` can return false, even if the object has
been cloned from a PostCSS instance.
To avoid this, we need to tolerate object that have array `processors`.

Ref https://github.com/nDmitry/grunt-postcss/issues/8
2014-12-09 08:18:03 +01:00