Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80ed684

Browse files
committed
v1.0.0
1 parent 1aa9e9a commit 80ed684

File tree

6 files changed

+49
-11
lines changed

6 files changed

+49
-11
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: node_js
33
node_js:
44
- 4
55
- 6
6-
- 7
6+
- 8
77

88
branches:
99
only:

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
### [ [>](https://github.com/svg/svgo/tree/v1.0.0) ] 1.0.0 / 30.10.2017
2+
* SVGO now requires Node 4 or higher.
3+
* Changed CLI syntax to treat filenames as input, thus allowing `svgo *.svg` syntax.
4+
* `SVGO.optimize()` now returns `Promise`.
5+
* Added `datauri` option to JS API.
6+
* Added support for SVG 2 `href` attribute.
7+
* `cleanupIDs` now don't removes IDs if an image consists only of `defs`.
8+
* New plugin `inlineStyles` for converting styles from `<style>` element to attributes if possible (by @strarsis).
9+
* `cleanupNumericValues` now rounds values in `viewBox` (by @caub).
10+
* New plugin: `removeScriptElement` (disabled by default) to align with `removeStyleElement` (by @pklingem).
11+
* `minifyStyles` now removes styles based on usage with controlling options (by @lahmatiy).
12+
* New option `except` in `cleanupIDs` to keep IDs (by @Velenir).
13+
* New option `force` in `cleanupIDs` to work even if SVG contains `style` or `script` elements (by @Velenir).
14+
* Fixed arcs transforming with different signed `scale` parameters (by @JoshyPHP).
15+
* Fixed `removeUselessStrokeAndFill` to check for `style` or `script` elements per file (by @caub).
16+
* New option `keepAriaAttrs` in `removeUnknownsAndDefaults` (by @davidtheclark).
17+
* Corrected parsing in `cleanupIDs` to account animation syntax (by @caub).
18+
* `#ff0000` now converts to `red` as well as `#f00` (by @davidleston).
19+
* Added “gray” variation to colors list per CSS Color Module Level 4 (by @JoshyPHP).
20+
* Fixed error on empty files.
21+
* A separator character in `removeAttrs` now can be changed per `elemSeparator` option (by @mikestreety).
22+
* `addAttributesToSVGElement` now can add values to attributes.
23+
124
### [ [>](https://github.com/svg/svgo/tree/v0.7.2) ] 0.7.2 / 29.01.2017
225
* Extended `currentColor` match conditions (string, rx, bool) (by @AlimovSV)
326
* Fixed removing `<animate>` in `<stop>`.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ coveralls: lib-cov
1313
@cat lcov.info | ./node_modules/.bin/coveralls
1414
@rm -rf lib-cov lcov.info
1515

16-
travis: jshint test coveralls
16+
travis: lint test coveralls
1717

18-
jshint:
19-
@npm run jshint
18+
lint:
19+
@npm run lint
2020

2121
.PHONY: test

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ Options:
101101
102102
Arguments:
103103
INPUT : Alias to --input
104-
OUTPUT : Alias to --output
105104
```
106105

107106
* with files:
@@ -113,7 +112,11 @@ Arguments:
113112
or:
114113

115114
```sh
116-
$ svgo test.svg test.min.svg
115+
$ svgo test.svg other.svg third.svg
116+
```
117+
118+
```sh
119+
$ svgo *.svg
117120
```
118121

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

140+
```sh
141+
$ svgo *.svg -o ../path/to/folder/with/svg/output
142+
```
143+
137144
* with strings:
138145

139146
```sh

README.ru.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ $ [sudo] npm install -g svgo
101101
102102
Аргументы:
103103
INPUT : Аналогично --input
104-
OUTPUT : Аналогично --output
105104
```
106105

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

115114
```sh
116-
$ svgo test.svg test.min.svg
115+
$ svgo test.svg other.svg third.svg
116+
```
117+
118+
```sh
119+
$ svgo *.svg
117120
```
118121

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

140+
```sh
141+
$ svgo *.svg -o ../path/to/folder/with/svg/output
142+
```
143+
137144
* со строками:
138145

139146
```sh
@@ -176,4 +183,4 @@ $ [sudo] npm install -g svgo
176183

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

179-
Логотип – [Егор Большаков](1/).
186+
Логотип – [Егор Большаков](http://xizzzy.ru/).

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svgo",
3-
"version": "0.7.2",
3+
"version": "1.0.0",
44
"description": "Nodejs-based tool for optimizing SVG vector graphics files",
55
"keywords": [
66
"svgo",
@@ -45,7 +45,8 @@
4545
},
4646
"scripts": {
4747
"test": "set NODE_ENV=test && mocha",
48-
"jshint": "jshint --show-non-errors ."
48+
"lint": "jshint --show-non-errors .",
49+
"jshint": "npm run lint"
4950
},
5051
"dependencies": {
5152
"coa": "~2.0.0",

0 commit comments

Comments
 (0)