From 2fe84ec40114e9e976fb20351f0c3765d77afef5 Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Wed, 6 Apr 2016 05:25:35 +0300 Subject: [PATCH] 2.0.0 --- HISTORY.md | 19 +++++++++++++++++++ package.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index d2800afd..93f3bff9 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,22 @@ +## 2.0.0 (April 5, 2016) + +- No more `gonzales` AST format and related code +- `minify()` and `minifyBlock()` is always return an object as result now (i.e. `{ css: String, map: SourceMapGenerator or null }`) +- `parse()` + - Returns AST in new format (so called `internal`) + - Dynamic scanner implemented + - New AST format + dynamic scanner = performance boost and less memory consumption + - No more `context` argument, context should be specified via `options` + - Supported contexts now: `stylesheet`, `atrule`, `atruleExpression`, `ruleset`, `selector`, `simpleSelector`, `block`, `declaration` and `value` + - Drop `needPositions` option, `positions` option should be used instead + - Drop `needInfo` option, `info` object is attaching to nodes when some information is requested by `options` + - `options` should be an object, otherwise it treats as empty object +- `compress()` + - No more AST converting (performance boost and less memory consumption) + - Drop `outputAst` option + - Returns an object as result instead of AST (i.e. `{ ast: Object }`) +- Drop methods: `justDoIt()`, `stringify()`, `cleanInfo()` + ## 1.8.1 (March 30, 2016) - Don't remove spaces after function/braces/urls since unsafe (#289) diff --git a/package.json b/package.json index 2335479f..8ff85cc7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "csso", - "version": "1.8.1", + "version": "2.0.0", "description": "CSSO (CSS Optimizer) is a CSS minifier with structural optimisations", "keywords": [ "css",