Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. ## 4.0.3 (March 24, 2020)
  2. - Prevented percent sign removal in `flex`/`-ms-flex` (#410)
  3. - Fixed restructuring optimisation in some cases (@charlessuh & @chsuh, #358, #411)
  4. - Bumped dependencies (@AviVahl, #409)
  5. ## 4.0.2 (October 28, 2019)
  6. - Fixed clean stage to avoid exceptions when source has unparsed or bad parts (#380)
  7. - Fixed wrong percentage sign removal for zero values (#395)
  8. ## 4.0.1 (October 22, 2019)
  9. - Bumped CSSTree to [`1.0.0-alpha.37`](https://github.com/csstree/csstree/releases/tag/v1.0.0-alpha.37) to avoid source map generation inconsistency across Node.js versions
  10. ## 4.0.0 (October 21, 2019)
  11. - Dropped support for Node.js < 8
  12. - Refreshed dev dependencies and scripts
  13. - Bumped [CSSTree](https://github.com/csstree/csstree) to `1.0.0-alpha.36` (#399)
  14. - Changed bundle files: `dist/csso.js` and `dist/csso.min.js` instead single `dist/csso-browser.js` (min version)
  15. - Expose `compress()` as `syntax.compress()`
  16. ## 3.5.1 (June 7, 2018)
  17. - Bumped [CSSTree](https://github.com/csstree/csstree) to `1.0.0-alpha.29` (fixes some issues)
  18. ## 3.5.0 (January 14, 2018)
  19. - Migrated to [CSSTree](https://github.com/csstree/csstree) `1.0.0-alpha.27`
  20. ## 3.4.0 (November 3, 2017)
  21. - Added percent sign removal for zero percentages for some properties that is safe (@RubaXa, #286)
  22. - Removed unit removal for zero values in `-ms-flex` due it breaks flex in IE10/11 (#362)
  23. - Improved performance of selectors comparison (@smelukov, #343)
  24. ## 3.3.1 (October 17, 2017)
  25. - Fixed merge of `position` declarations when `sticky` fallback is using (@gruzzilkin, #356)
  26. ## 3.3.0 (October 12, 2017)
  27. - Migrated to [CSSTree](https://github.com/csstree/csstree) `1.0.0-alpha25`
  28. - Changed AST format (see [CSSTree change log](https://github.com/csstree/csstree/blob/master/HISTORY.md) for details)
  29. - Fixed performance issue when generate CSS with source map (quadratic increase in time depending on the size of the CSS)
  30. ## 3.2.0 (September 10, 2017)
  31. - Fixed named color compression to apply only when an identifier is guaranteed to be a color
  32. - Added lifting of `@keyframes` to the beginning of style sheet (chunk), but after `@charset` and `@import` rules
  33. - Added removal of `@keyframes`, `@media` and `@supports` with no prelude
  34. - Added removal of duplicate `@keyframes` (#202)
  35. - Added new option `forceMediaMerge` to force media rules merging. It's unsafe in general, but works fine in many cases. Use it on your own risk (#350)
  36. - Bumped `CSSTree` to `1.0.0-alpha23`
  37. ## 3.1.1 (April 25, 2017)
  38. - Fixed crash on a number processing when it used not in a list (#335)
  39. ## 3.1.0 (April 24, 2017)
  40. - Implemented optimisation for `none` keyword in `border` and `outline` properties (@zoobestik, #41)
  41. - Implemented replacing `rgba(x, x, x, 0)` to `transparent`
  42. - Fixed plus sign omitting for numbers following identifier, hex color, number or unicode range, since it can change the meaning of CSS (e.g. `calc(1px+2px)` has been optimized to `calc(1px2px)` before, now it stays the same)
  43. - Improved usage filtering for nested selectors (i.e. for `:nth-*()`, `:has()`, `:matches` and other pseudos)
  44. - Implemented `blacklist` filtering in usage (#334, see [Black list filtering](https://github.com/css/csso#black-list-filtering))
  45. - Improved white space removing, now white spaces are removing in the beginning and at the ending of sequences, and between stylesheet and block nodes
  46. - Bumped `CSSTree` to `1.0.0-alpha19`
  47. ## 3.0.1 (March 14, 2017)
  48. - Fixed declaration merging when declaration contains an `!important`
  49. ## 3.0.0 (March 13, 2017)
  50. - Migrated to [CSSTree](https://github.com/csstree/csstree) as AST backend and exposed its API behind `syntax` property
  51. - Extracted CLI into standalone package [css/csso-cli](https://github.com/css/csso-cli)
  52. ## 2.3.1 (January 6, 2017)
  53. - Added `\0` IE hack support (#320)
  54. ## 2.3.0 (October 25, 2016)
  55. - Added `beforeCompress` and `afterCompress` options support (#316)
  56. - Fixed crash on empty argument in function (#317)
  57. ## 2.2.1 (July 25, 2016)
  58. - Fixed shorthand optimisation issue when value has a color value or something unknown (#311)
  59. - Fixed `cursor` broken fallback (#306)
  60. ## 2.2.0 (June 23, 2016)
  61. - Implement AST cloning by adding `clone()` [function](https://github.com/css/csso#cloneast) and `clone` [option](https://github.com/css/csso#compressast-options) for `compress()` function (#296)
  62. - Fix parse and translate attribute selector with flags but w/o operator (i.e. `[attrName i]`)
  63. - Don't merge rules with flagged attribute selectors with others (#291)
  64. - Take in account functions when merge TRBL-properties (#297, thanks to @ArturAralin)
  65. - Improve partial merge (#304)
  66. - Tweak scanner, reduce code deoptimizations and other small improvements
  67. ## 2.1.1 (May 11, 2016)
  68. - Fix wrong declaration with `\9` hack merge (#295)
  69. ## 2.1.0 (May 8, 2016)
  70. - New option `comments` to specify what comments to left: `exclamation`, `first-exclamation` and `none`
  71. - Add `offset` to CSS parse error details
  72. - Fix token `offset` computation
  73. ## 2.0.0 (April 5, 2016)
  74. - No more `gonzales` AST format and related code
  75. - `minify()` and `minifyBlock()` is always return an object as result now (i.e. `{ css: String, map: SourceMapGenerator or null }`)
  76. - `parse()`
  77. - Returns AST in new format (so called `internal`)
  78. - Dynamic scanner implemented
  79. - New AST format + dynamic scanner = performance boost and less memory consumption
  80. - No more `context` argument, context should be specified via `options`
  81. - Supported contexts now: `stylesheet`, `atrule`, `atruleExpression`, `ruleset`, `selector`, `simpleSelector`, `block`, `declaration` and `value`
  82. - Drop `needPositions` option, `positions` option should be used instead
  83. - Drop `needInfo` option, `info` object is attaching to nodes when some information is requested by `options`
  84. - `options` should be an object, otherwise it treats as empty object
  85. - `compress()`
  86. - No more AST converting (performance boost and less memory consumption)
  87. - Drop `outputAst` option
  88. - Returns an object as result instead of AST (i.e. `{ ast: Object }`)
  89. - Drop methods: `justDoIt()`, `stringify()`, `cleanInfo()`
  90. ## 1.8.1 (March 30, 2016)
  91. - Don't remove spaces after function/braces/urls since unsafe (#289)
  92. ## 1.8.0 (March 24, 2016)
  93. - Usage data support:
  94. - Filter rulesets by tag names, class names and ids white lists.
  95. - More aggressive ruleset moving using class name scopes information.
  96. - New CLI option `--usage` to pass usage data file.
  97. - Improve initial ruleset merge
  98. - Change order of ruleset processing, now it's left to right. Previously unmerged rulesets may prevent lookup and other rulesets merge.
  99. - Difference in pseudo signature just prevents ruleset merging, but don't stop lookup.
  100. - Simplify block comparison (performance).
  101. - New method `csso.minifyBlock()` for css block compression (e.g. `style` attribute content).
  102. - Ruleset merge improvement: at-rules with block (like `@media` or `@supports`) now can be skipped during ruleset merge lookup if doesn't contain something prevents it.
  103. - FIX: Add negation (`:not()`) to pseudo signature to avoid unsafe merge (old browsers doesn't support it).
  104. - FIX: Check nested parts of value when compute compatibility. It fixes unsafe property merging.
  105. ## 1.7.1 (March 16, 2016)
  106. - pass block mode to tokenizer for correct parsing of declarations properties with `//` hack
  107. - fix wrongly `@import` and `@charset` removal on double exclamation comment
  108. ## 1.7.0 (March 10, 2016)
  109. - support for [CSS Custom Properties](https://www.w3.org/TR/css-variables/) (#279)
  110. - rework RTBL properties merge – better merge for values with special units and don't merge values with CSS-wide keywords (#255)
  111. - remove redundant universal selectors (#178)
  112. - take in account `!important` when check for property overriding (#280)
  113. - don't merge `text-align` declarations with some values (#281)
  114. - add spaces around `/deep/` combinator on translate, since it together with universal selector can produce a comment
  115. - better keyword and property name resolving (tolerant to hacks and so on)
  116. - integration improvements
  117. - compression log function could be customized by `logger` option for `compress()` and `minify()`
  118. - make possible to set initial line and column for parser
  119. ## 1.6.4 (March 1, 2016)
  120. - `npm` publish issue (#276)
  121. ## 1.6.3 (February 29, 2016)
  122. - add `file` to generated source map since other tools can relay on it in source map transform chain
  123. ## 1.6.2 (February 29, 2016)
  124. - tweak some parse error messages and their positions
  125. - fix `:not()` parsing and selector groups in `:not()` is supported now (#215)
  126. - `needPosition` parser option is deprecated, `positions` option should be used instead (`needPosition` is used still if `positions` option omitted)
  127. - expose internal AST API as `csso.internal.*`
  128. - `minify()` adds `sourcesContent` by default when source map is generated
  129. - bring back support for node.js `0.10` until major release (#275)
  130. ## 1.6.1 (February 28, 2016)
  131. - fix exception on zero length dimension compress outside declaration (#273)
  132. ## 1.6.0 (February 27, 2016)
  133. - **source maps support**
  134. - parser remake:
  135. - various parsing issues fixed
  136. - fix unicode sequence processing in ident (#191)
  137. - support for flags in attribute selector (#270)
  138. - position (line and column) of parse error (#109)
  139. - 4x performance boost, less memory consumption
  140. - compressor refactoring
  141. - internal AST is using doubly linked lists (with safe transformation support during iteration) instead of arrays
  142. - rename `restructuring` to `restructure` option for `minify()`/`compress()` (`restructuring` is alias for `restructure` now, with lower priority)
  143. - unquote urls when possible (#141, #60)
  144. - setup code coverage and a number of related fixes
  145. - add eslint to check unused things
  146. ## 1.5.4 (January 27, 2016)
  147. - one more fix (in `restructRuleset` this time) with merge of rulesets when a ruleset with same specificity places between them (#264)
  148. - disable partial merge of rulesets in `@keyframes` rulesets (until sure it's correct)
  149. ## 1.5.3 (January 25, 2016)
  150. - don't override display values with different browser support (#259)
  151. - fix publish issue (one of modules leak in development state)
  152. ## 1.5.2 (January 24, 2016)
  153. - don't merge rulesets if between them a ruleset with same specificity (#264)
  154. ## 1.5.1 (January 14, 2016)
  155. - ensure `-` is not used as an identifier in attribute selectors (thanks to @mathiasbynens)
  156. - fix broken `justDoIt()` function
  157. - various small fixes
  158. ## 1.5.0 (January 14, 2016)
  159. ### Parser
  160. - attach minus to number
  161. ### Compressor
  162. - split code base into small modules and related refactoring
  163. - introduce internal AST format for compressor (`gonzales`→`internal` and `internal`→`gonzales` convertors, walkers, translator)
  164. - various optimizations: no snapshots, using caches and indexes
  165. - sort selectors, merge selectors in alphabet order
  166. - compute selector's specificity
  167. - better ruleset restructuring, improve compression of partially equal blocks
  168. - better ruleset merge – not only closest but also disjoined by other rulesets when safe
  169. - join `@media` with same query
  170. - `outputAst` – new option to specify output AST format (`gonzales` by default for backward compatibility)
  171. - remove quotes surrounding attribute values in attribute selectors when possible (#73)
  172. - replace `from`→`0%` and `100%`→`to` at `@keyframes` (#205)
  173. - prevent partial merge of rulesets at `@keyframes` (#80, #197)
  174. ### API
  175. - walker for `gonzales` AST was implemented
  176. ### CLI
  177. - new option `--stat` (output stat in `stderr`)
  178. - new optional parameter `level` for `--debug` option
  179. ## 1.4.4 (December 10, 2015)
  180. - prevent removal of spaces after braces that before identifier that breaking at-rules expressions (#258)
  181. ## 1.4.3 (December 4, 2015)
  182. - fix unicode-range parsing that cause to wrong function detection (#250)
  183. ## 1.4.2 (November 9, 2015)
  184. - allow spaces between `progid:` and rest part of value for IE's `filter` property as `autoprefixer` generates this kind of code (#249)
  185. - fixes for Windows:
  186. - correct processing new lines
  187. - normalize file content in test suite
  188. - fixes to work in strict mode (#252)
  189. - init compressor dictionaries for every css block (#248, #251)
  190. - bump uglify-js version
  191. ## 1.4.1 (October 20, 2015)
  192. - allow merge for `display` property (#167, #244)
  193. - more accurate `rect` (`clip` property value) merge
  194. - fix typo when specifying options in cli (thanks to @Taritsyn)
  195. - fix safe unit values merge with keyword values (#244)
  196. - fix wrong descendant combinator removal (#246)
  197. - build browser version on `prepublish` (thanks to @silentroach)
  198. - parser: store whitespaces as single token (performance and reduce memory consumption)
  199. - rearrange compress tests layout
  200. ## 1.4 (October 16, 2015)
  201. Bringing project back to life. Changed files structure, cleaned up and refactored most of sources.
  202. ### Common
  203. - single code base (no more `src` folder)
  204. - build browser version with `browserify` (no more `make`, and `web` folder), browser version is available at `dist/csso-browser.js`
  205. - main file is `lib/index.js` now
  206. - minimal `node.js` version is `0.12` now
  207. - restrict file list to publish on npm (no more useless folders and files in package)
  208. - add `jscs` to control code style
  209. - automate `gh-pages` update
  210. - util functions reworked
  211. - translator reworked
  212. - test suite reworked
  213. - compressor refactored
  214. - initial parser refactoring
  215. ### API
  216. - new method `minify(src, options)`, options:
  217. - `restructuring` – if set to `false`, disable structure optimisations (`true` by default)
  218. - `debug` - outputs intermediate state of CSS during compression (`false` by default)
  219. - deprecate `justDoIt()` method (use `minify` instead)
  220. - rename `treeToString()` method to `stringify()`
  221. - drop `printTree()` method
  222. - AST node info
  223. - `column` and `offset` added
  224. - `ln` renamed to `line`
  225. - fix line counting across multiple files and input with CR LF (#147)
  226. ### CLI
  227. - completely reworked, use [clap](https://github.com/lahmatiy/clap) to parse argv
  228. - add support for input from stdin (#128)
  229. - drop undocumented and obsoleted options `--rule` and `--parser` (suppose nobody use it)
  230. - drop `-off` alias for `--restructure-off` as incorrect (only one letter options should starts with single `-`)
  231. - new option `--debug` that reflecting to `options.debug` for `minify`
  232. ### Parsing and optimizations
  233. - keep all exclamation comments (#194)
  234. - add `/deep/` combinator support (#209)
  235. - attribute selector
  236. - allow colon in attribute name (#237)
  237. - support for namespaces (#233)
  238. - color
  239. - support all css/html colors
  240. - convert `hsla` to `rgba` and `hls` to `rgb`
  241. - convert `rgba` with 1 as alpha value to `rgb` (#122)
  242. - interpolate `rgb` and `rgba` percentage values to absolute values
  243. - replace percentage values in `rgba` for normalized/interpolated values
  244. - lowercase hex colors and color names (#169)
  245. - fix color minification when hex value replaced for color name (#176)
  246. - fit rgb values to 0..255 range (#181)
  247. - calc
  248. - remove spaces for multiple operator in calc
  249. - don't remove units inside calc (#222)
  250. - fix wrong white space removal around `+` and `-` (#228)
  251. - don't remove units in `flex` property as it could change value meaning (#200)
  252. - don't merge `\9` hack values (#231)
  253. - merge property values only if they have the same functions (#150, #227)
  254. - don't merge property values with some sort of units (#140, #161)
  255. - fix `!important` issue for `top-right-bottom-left` properties (#189)
  256. - fix `top-right-bottom-left` properties merge (#139, #175)
  257. - support for unicode-range (#148)
  258. - don't crash on ruleset with no selector (#135)
  259. - tolerant to class names that starts with digit (#99, #105)
  260. - fix background compressing (#170)
  261. ## 1.3.12 (October 8, 2015)
  262. - Case insensitive check for `!important` (#187)
  263. - Fix problems with using `csso` as cli command on Windows (#83, #136, #142 and others)
  264. - Remove byte order marker (the UTF-8 BOM) from input
  265. - Don't strip space between funktion-funktion and funktion-vhash (#134)
  266. - Don't merge TRBL values having \9 (hack for IE8 in bootstrap) (#159, #214, #230, #231 and others)
  267. - Don't strip units off dimensions of non-length (#226, #229 and others)
  268. ## 1.3.7 (February 11, 2013)
  269. - Gonzales 1.0.7.
  270. ## 1.3.6 (November 26, 2012)
  271. - Gonzales 1.0.6.
  272. ## 1.3.5 (October 28, 2012)
  273. - Gonzales 1.0.5.
  274. - Protecting copyright notices in CSS: https://github.com/css/csso/issues/92
  275. - Zero CSS throws an error: https://github.com/css/csso/issues/96
  276. - Don't minify the second `0s` in Firefox for animations: https://github.com/css/csso/issues/100
  277. - Japan manual
  278. - BEM ready documentation
  279. ## 1.3.4 (October 10, 2012)
  280. - @page inside @media Causes Error: https://github.com/css/csso/issues/90
  281. ## 1.3.3 (October 9, 2012)
  282. - CSSO 1.3.2 compresses ".t-1" and ".t-01" as identical classes: https://github.com/css/csso/issues/88
  283. ## 1.3.2 (October 8, 2012)
  284. - filter + important breaks CSSO v1.3.1: https://github.com/css/csso/issues/87
  285. ## 1.3.1 (October 8, 2012)
  286. - "filter" IE property breaks CSSO v1.3.0: https://github.com/css/csso/issues/86
  287. ## 1.3.0 (October 4, 2012)
  288. - PeCode CSS parser replaced by Gonzales CSS parser