Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: css/csso
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0328965ce855c331a10fa37102adbfc47f48f9a2
Choose a base ref
...
head repository: css/csso
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d1501611a7007f3be4be4fb25e92732bbffabd61
Choose a head ref
Loading
Showing with 1,036 additions and 14,352 deletions.
  1. +6 −1 HISTORY.md
  2. +1 −1 LICENSE
  3. +192 −277 README.md
  4. +0 −16 bin/csso
  5. +0 −94 docs/debugging.md
  6. +5 −8 lib/{compressor → }/clean/Atrule.js
  7. 0 lib/{compressor → }/clean/Comment.js
  8. +1 −1 lib/{compressor → }/clean/Declaration.js
  9. +10 −12 lib/{compressor/clean/Ruleset.js → clean/Rule.js}
  10. +19 −0 lib/clean/TypeSelector.js
  11. +13 −0 lib/clean/WhiteSpace.js
  12. +17 −0 lib/clean/index.js
  13. +0 −338 lib/cli.js
  14. +36 −31 lib/{compressor/index.js → compress.js}
  15. +0 −9 lib/compressor/clean/Identifier.js
  16. +0 −16 lib/compressor/clean/Space.js
  17. +0 −17 lib/compressor/clean/index.js
  18. +0 −22 lib/compressor/compress/index.js
  19. +0 −42 lib/compressor/restructure/3-disjoinRuleset.js
  20. +0 −261 lib/compressor/restructure/6-restructBlock.js
  21. +0 −48 lib/compressor/restructure/prepare/specificity.js
  22. +9 −22 lib/index.js
  23. +0 −46 lib/parser/const.js
  24. +0 −1,870 lib/parser/index.js
  25. +0 −380 lib/parser/scanner.js
  26. +1 −1 lib/{compressor/compress → replace}/Atrule.js
  27. +2 −2 lib/{compressor/compress/Attribute.js → replace/AttributeSelector.js}
  28. +3 −3 lib/{compressor/compress → replace}/Dimension.js
  29. 0 lib/{compressor/compress → replace}/Number.js
  30. +2 −2 lib/{compressor/compress → replace}/String.js
  31. +1 −1 lib/{compressor/compress → replace}/Url.js
  32. +2 −2 lib/{compressor/compress → replace}/Value.js
  33. +7 −7 lib/{compressor/compress → replace}/atrule/keyframes.js
  34. +49 −49 lib/{compressor/compress → replace}/color.js
  35. +22 −0 lib/replace/index.js
  36. +9 −6 lib/{compressor/compress → replace}/property/background.js
  37. +5 −5 lib/{compressor/compress → replace}/property/font-weight.js
  38. +4 −4 lib/{compressor/compress → replace}/property/font.js
  39. +12 −12 lib/{compressor → }/restructure/1-initialMergeRuleset.js
  40. +12 −8 lib/{compressor → }/restructure/2-mergeAtrule.js
  41. +42 −0 lib/restructure/3-disjoinRuleset.js
  42. +59 −61 lib/{compressor → }/restructure/4-restructShorthand.js
  43. +288 −0 lib/restructure/6-restructBlock.js
  44. +11 −11 lib/{compressor → }/restructure/7-mergeRuleset.js
  45. +30 −30 lib/{compressor → }/restructure/8-restructRuleset.js
  46. 0 lib/{compressor → }/restructure/index.js
  47. +3 −2 lib/{compressor → }/restructure/prepare/createDeclarationIndexer.js
  48. +8 −7 lib/{compressor → }/restructure/prepare/index.js
  49. +23 −28 lib/{compressor → }/restructure/prepare/processSelector.js
  50. +57 −0 lib/restructure/prepare/specificity.js
  51. +10 −12 lib/{compressor → }/restructure/utils.js
  52. 0 lib/{compressor → }/usage.js
  53. +0 −23 lib/utils/clone.js
  54. +0 −389 lib/utils/list.js
  55. +0 −73 lib/utils/names.js
  56. +0 −178 lib/utils/translate.js
  57. +0 −291 lib/utils/translateWithSourceMap.js
  58. +0 −189 lib/utils/walk.js
  59. +11 −8 package.json
  60. +0 −123 test/ast.js
  61. +12 −35 test/clone.js
  62. +0 −57 test/common.js
  63. +11 −9 test/compress.js
  64. +5 −5 test/fixture/compress/atrules/empty.css
  65. +1 −1 test/fixture/compress/atrules/import-2.css
  66. +1 −1 test/fixture/compress/bad-color.min.css
  67. +0 −12 test/fixture/compress/bad-selector.css
  68. +1 −1 test/fixture/compress/css21/part4.3.2-9.css
  69. +2 −2 test/fixture/compress/css21/part4.3.20.css
  70. +1 −1 test/fixture/compress/css21/part7-2.css
  71. +1 −1 test/fixture/compress/css21/part7-2.min.css
  72. 0 test/fixture/compress/issue/135.min.css
  73. 0 test/fixture/compress/issue/{135.css → _135.css}
  74. 0 test/fixture/compress/{bad-selector.min.css → issue/_135.min.css}
  75. +1 −1 test/fixture/compress/property-merge/3.min.css
  76. +1 −1 test/fixture/compress/restructure.border/2.css
  77. +1 −1 test/fixture/compress/restructure.border/2.min.css
  78. +1 −1 test/fixture/compress/variables.css
  79. +1 −1 test/fixture/compress/variables.min.css
  80. +0 −393 test/fixture/parse-errors.json
  81. +0 −476 test/fixture/parse/atrule/block.json
  82. +0 −168 test/fixture/parse/atrule/simple.json
  83. +0 −1,002 test/fixture/parse/atrule/stylesheet.json
  84. +0 −335 test/fixture/parse/block/Block.json
  85. +0 −233 test/fixture/parse/declaration/Declaration.json
  86. +0 −280 test/fixture/parse/declaration/filter.json
  87. +0 −75 test/fixture/parse/index.js
  88. +0 −1,111 test/fixture/parse/ruleset/Ruleset.json
  89. +0 −64 test/fixture/parse/selector/Selector.json
  90. +0 −491 test/fixture/parse/simpleSelector/Attribute.json
  91. +0 −10 test/fixture/parse/simpleSelector/Class.json
  92. +0 −18 test/fixture/parse/simpleSelector/Id.json
  93. +0 −156 test/fixture/parse/simpleSelector/Identifier.json
  94. +0 −18 test/fixture/parse/simpleSelector/PseudoClass.json
  95. +0 −18 test/fixture/parse/simpleSelector/PseudoElement.json
  96. +0 −726 test/fixture/parse/simpleSelector/SimpleSelector.json
  97. +0 −271 test/fixture/parse/simpleSelector/nthselector.json
  98. +0 −1,107 test/fixture/parse/stylesheet/StyleSheet.json
  99. +0 −37 test/fixture/parse/stylesheet/comment.json
  100. +0 −16 test/fixture/parse/stylesheet/unknown.json
  101. +0 −415 test/fixture/parse/value/Braces.json
  102. +0 −29 test/fixture/parse/value/Dimension.json
  103. +0 −520 test/fixture/parse/value/Function.json
  104. +0 −39 test/fixture/parse/value/Hash.json
  105. +0 −46 test/fixture/parse/value/Important.json
  106. +0 −66 test/fixture/parse/value/Number.json
  107. +0 −34 test/fixture/parse/value/Percentage.json
  108. +0 −58 test/fixture/parse/value/String.json
  109. +0 −68 test/fixture/parse/value/Url.json
  110. +0 −482 test/fixture/parse/value/Value.json
  111. +0 −173 test/fixture/parse/value/expression.json
  112. +0 −104 test/fixture/stringify.txt
  113. +0 −113 test/parse.js
  114. +5 −5 test/plugins.js
  115. +4 −21 test/sourceMaps.js
  116. +4 −4 test/specificity.js
  117. +1 −1 test/usage.js
7 changes: 6 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## 2.3.1 (January 6, 2016)
## 3.0.0 (March 13, 2017)

- Migrated to [CSSTree](https://github.com/csstree/csstree) as AST backend and exposed its API behind `syntax` property
- Extracted CLI into standalone package [css/csso-cli](https://github.com/css/csso-cli)

## 2.3.1 (January 6, 2017)

- Added `\0` IE hack support (#320)

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2011-2015 by Sergey Kryzhanovsky
Copyright (C) 2011-2017 by Sergey Kryzhanovsky

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Loading