Skip to content

Commit 3ea1242

Browse files
Reorders version summaries in README.
1 parent 4c17387 commit 3ea1242

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Previously a part of clean-css it's a separate package since clean-css 4.0.
2020
- [Install](#install)
2121
- [Use](#use)
2222
* [What's new in version 5.0](#whats-new-in-version-50)
23-
* [Important: 4.0 breaking changes](#important-40-breaking-changes)
24-
* [What's new in version 4.1](#whats-new-in-version-41)
25-
* [What's new in version 4.2](#whats-new-in-version-42)
2623
* [What's new in version 4.3](#whats-new-in-version-43)
24+
* [What's new in version 4.2](#whats-new-in-version-42)
25+
* [What's new in version 4.1](#whats-new-in-version-41)
26+
* [What's new in version 4.0](#whats-new-in-version-40)
2727
* [CLI options](#cli-options)
2828
* [Compatibility modes](#compatibility-modes)
2929
* [Formatting options](#formatting-options)
@@ -71,23 +71,17 @@ clean-css-cli 5.0 introduces the following changes / features:
7171
* `--skip-rebase` option has been removed as rebasing URLs is disabled by default now
7272
* `--with-rebase` option is added if you really want URLs rebasing
7373

74-
## Important: 4.0 breaking changes
74+
## What's new in version 4.3
7575

76-
clean-css-cli 4.0 introduces some breaking changes:
76+
clean-css-cli 4.3 introduces the following changes / features:
7777

78-
* API and CLI interfaces are split, so CLI has been moved to this repository while API stays at [clean-css](https://github.com/jakubpawlowicz/clean-css);
79-
* `--root` and `--relativeTo` options are replaced by a single option taken from `--output` path - this means that rebasing URLs and import inlining is much simpler but may not be (YMMV) as powerful as in 3.x;
80-
* `--rounding-precision` is disabled by default;
81-
* `--rounding-precision` applies to **all** units now, not only `px` as in 3.x;
82-
* `--skip-import` and `--skip-import-from` are merged into `--inline` option which defaults to `local`. Remote `@import` rules are **NOT** inlined by default anymore;
83-
* renames `--timeout` option to `--inline-timeout`;
84-
* remote resources without a protocol, e.g. `//fonts.googleapis.com/css?family=Domine:700`, are not inlined anymore;
85-
* changes default Internet Explorer compatibility from 9+ to 10+, to revert the old default use `--compatibility ie9` option;
86-
* moves `--rounding-precision`, `--s0`, and `--s1` options to level 1 optimization options, see examples;
87-
* moves `--skip-media-merging`, `--skip-restructuring`, `--semantic-merging`, and `--skip-shorthand-compacting` to level 2 optimizations options, see examples below;
88-
* level 1 optimizations are the new default, up to 3.x it was level 2;
89-
* `--keep-breaks` option is replaced with `--format keep-breaks` to ease transition;
90-
* `--skip-aggressive-merging` option is removed as aggressive merging is replaced by smarter override merging.
78+
* `--input-source-map` option which accepts a path to input source map file.
79+
80+
## What's new in version 4.2
81+
82+
clean-css-cli 4.2 introduces the following changes / features:
83+
84+
* [clean-css 4.2](https://github.com/jakubpawlowicz/clean-css#whats-new-in-version-42) as a dependency;
9185

9286
## What's new in version 4.1
9387

@@ -100,17 +94,23 @@ clean-css-cli 4.1 introduces the following changes / features:
10094
* extracts CLI into an importable module, so it can be reused and enhanced if needed;
10195
* adds `beforeMinify` callback as a second argument to CLI module, see [example use case](#as-a-module).
10296

103-
## What's new in version 4.2
104-
105-
clean-css-cli 4.2 introduces the following changes / features:
106-
107-
* [clean-css 4.2](https://github.com/jakubpawlowicz/clean-css#whats-new-in-version-42) as a dependency;
97+
## What's new in version 4.0
10898

109-
## What's new in version 4.3
110-
111-
clean-css-cli 4.3 introduces the following changes / features:
99+
clean-css-cli 4.0 introduces some breaking changes:
112100

113-
* `--input-source-map` option which accepts a path to input source map file.
101+
* API and CLI interfaces are split, so CLI has been moved to this repository while API stays at [clean-css](https://github.com/jakubpawlowicz/clean-css);
102+
* `--root` and `--relativeTo` options are replaced by a single option taken from `--output` path - this means that rebasing URLs and import inlining is much simpler but may not be (YMMV) as powerful as in 3.x;
103+
* `--rounding-precision` is disabled by default;
104+
* `--rounding-precision` applies to **all** units now, not only `px` as in 3.x;
105+
* `--skip-import` and `--skip-import-from` are merged into `--inline` option which defaults to `local`. Remote `@import` rules are **NOT** inlined by default anymore;
106+
* renames `--timeout` option to `--inline-timeout`;
107+
* remote resources without a protocol, e.g. `//fonts.googleapis.com/css?family=Domine:700`, are not inlined anymore;
108+
* changes default Internet Explorer compatibility from 9+ to 10+, to revert the old default use `--compatibility ie9` option;
109+
* moves `--rounding-precision`, `--s0`, and `--s1` options to level 1 optimization options, see examples;
110+
* moves `--skip-media-merging`, `--skip-restructuring`, `--semantic-merging`, and `--skip-shorthand-compacting` to level 2 optimizations options, see examples below;
111+
* level 1 optimizations are the new default, up to 3.x it was level 2;
112+
* `--keep-breaks` option is replaced with `--format keep-breaks` to ease transition;
113+
* `--skip-aggressive-merging` option is removed as aggressive merging is replaced by smarter override merging.
114114

115115
## CLI options
116116

0 commit comments

Comments
 (0)