Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GreLI committed Oct 30, 2017
1 parent 1aa9e9a commit 80ed684
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: node_js
node_js:
- 4
- 6
- 7
- 8

branches:
only:
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
### [ [>](https://github.com/svg/svgo/tree/v1.0.0) ] 1.0.0 / 30.10.2017
* SVGO now requires Node 4 or higher.
* Changed CLI syntax to treat filenames as input, thus allowing `svgo *.svg` syntax.
* `SVGO.optimize()` now returns `Promise`.
* Added `datauri` option to JS API.
* Added support for SVG 2 `href` attribute.
* `cleanupIDs` now don't removes IDs if an image consists only of `defs`.
* New plugin `inlineStyles` for converting styles from `<style>` element to attributes if possible (by @strarsis).

This comment has been minimized.

Copy link
@s10wen

s10wen Nov 2, 2017

Awesome!

* `cleanupNumericValues` now rounds values in `viewBox` (by @caub).
* New plugin: `removeScriptElement` (disabled by default) to align with `removeStyleElement` (by @pklingem).
* `minifyStyles` now removes styles based on usage with controlling options (by @lahmatiy).
* New option `except` in `cleanupIDs` to keep IDs (by @Velenir).
* New option `force` in `cleanupIDs` to work even if SVG contains `style` or `script` elements (by @Velenir).
* Fixed arcs transforming with different signed `scale` parameters (by @JoshyPHP).
* Fixed `removeUselessStrokeAndFill` to check for `style` or `script` elements per file (by @caub).
* New option `keepAriaAttrs` in `removeUnknownsAndDefaults` (by @davidtheclark).
* Corrected parsing in `cleanupIDs` to account animation syntax (by @caub).
* `#ff0000` now converts to `red` as well as `#f00` (by @davidleston).
* Added “gray” variation to colors list per CSS Color Module Level 4 (by @JoshyPHP).
* Fixed error on empty files.
* A separator character in `removeAttrs` now can be changed per `elemSeparator` option (by @mikestreety).
* `addAttributesToSVGElement` now can add values to attributes.

### [ [>](https://github.com/svg/svgo/tree/v0.7.2) ] 0.7.2 / 29.01.2017
* Extended `currentColor` match conditions (string, rx, bool) (by @AlimovSV)
* Fixed removing `<animate>` in `<stop>`.
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ coveralls: lib-cov
@cat lcov.info | ./node_modules/.bin/coveralls
@rm -rf lib-cov lcov.info

travis: jshint test coveralls
travis: lint test coveralls

jshint:
@npm run jshint
lint:
@npm run lint

.PHONY: test
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ Options:
Arguments:
INPUT : Alias to --input
OUTPUT : Alias to --output
```

* with files:
Expand All @@ -113,7 +112,11 @@ Arguments:
or:

```sh
$ svgo test.svg test.min.svg
$ svgo test.svg other.svg third.svg
```

```sh
$ svgo *.svg
```

* with STDIN / STDOUT:
Expand All @@ -134,6 +137,10 @@ Arguments:
$ svgo -f ../path/to/folder/with/svg/files -o ../path/to/folder/with/svg/output
```

```sh
$ svgo *.svg -o ../path/to/folder/with/svg/output
```

* with strings:

```sh
Expand Down
13 changes: 10 additions & 3 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ $ [sudo] npm install -g svgo
Аргументы:
INPUT : Аналогично --input
OUTPUT : Аналогично --output
```

* с файлами:
Expand All @@ -113,7 +112,11 @@ $ [sudo] npm install -g svgo
или:

```sh
$ svgo test.svg test.min.svg
$ svgo test.svg other.svg third.svg
```

```sh
$ svgo *.svg
```

* со STDIN / STDOUT:
Expand All @@ -134,6 +137,10 @@ $ [sudo] npm install -g svgo
$ svgo -f ../path/to/folder/with/svg/files -o ../path/to/folder/with/svg/output
```

```sh
$ svgo *.svg -o ../path/to/folder/with/svg/output
```

* со строками:

```sh
Expand Down Expand Up @@ -176,4 +183,4 @@ $ [sudo] npm install -g svgo

Данное программное обеспечение выпускается под [лицензией MIT](https://github.com/svg/svgo/blob/master/LICENSE).

Логотип – [Егор Большаков](1/).
Логотип – [Егор Большаков](http://xizzzy.ru/).
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svgo",
"version": "0.7.2",
"version": "1.0.0",
"description": "Nodejs-based tool for optimizing SVG vector graphics files",
"keywords": [
"svgo",
Expand Down Expand Up @@ -45,7 +45,8 @@
},
"scripts": {
"test": "set NODE_ENV=test && mocha",
"jshint": "jshint --show-non-errors ."
"lint": "jshint --show-non-errors .",
"jshint": "npm run lint"
},
"dependencies": {
"coa": "~2.0.0",
Expand Down

0 comments on commit 80ed684

Please sign in to comment.