5132900904
Use explicit file types
...
It's good practice to declare the file type being required. This will help svgo play nice with JSPM. Additionally, one of the requires was already declaring its file type. So, this PR adds consistency, too.
2016-02-22 21:28:29 -08:00
9cdb046383
Improved parser error handling.
...
Show output error position. Resolves #482
2016-02-08 00:36:56 +03:00
e21f8d0e64
Better config error handling. Resolves #466
2016-02-08 00:00:17 +03:00
7b9943072f
Don't fail on plain string SVG after #486
2016-02-07 23:22:54 +03:00
4e9daaef3c
Config object sanity check. Should fix #458
2016-02-07 20:36:20 +03:00
4e9194153f
Add charset handling on Data URI
...
Handle data URI scheme containing optional charset field like `data:image/svg+xml;charset=US-ASCII,%3C%3Fxml%20...` .
2016-01-16 20:38:37 +08:00
0d91a0455d
Parse XML entities.
...
Fixes #225 , fixes #272 , fixes #314 . Closes #476 .
2016-01-04 20:22:11 +03:00
9abb467b03
Fixed up some inefficiencies with jsAPI.js
2015-12-30 00:53:58 -08:00
3f6cddbb2b
Fixes #464 by outputting the version to stdout instead of letting coa send it to stderr
2015-12-28 01:11:57 -08:00
c9062872e9
Conform informal syntax requirements everywhere
2015-11-18 20:29:15 +01:00
8283c542da
Conform to code style
2015-11-18 20:06:56 +01:00
1ab81cea6f
Add option --quiet
...
I trust that svgo works, and the output of my build process is overly long as it is. Add a -q/--quiet option to suppress all the chatter and only show important / error messages.
2015-10-19 08:10:30 +02:00
1bdee52393
Fixed config issues, better tests&docs. Closes #390
2015-09-21 14:23:55 +03:00
7102ed58cf
Corrected path stringification
2015-08-26 11:06:29 +03:00
66ae12f8ea
Fixed error with no space before nubmers like ‘5e-5‘. Fixes #418
2015-08-26 11:00:58 +03:00
bd64cdeb26
Allow config to specify use of self closing tags
...
Allow config to specify `useShortTags` (default true).
When `useShortTags` is true, empty elements are terminated with />
When `useShortTags` is false, empty elements are closed with a full closing tag
e.g. </path>
2015-07-06 22:35:08 +10:00
73c5a73900
Modify jshint rules
2015-06-13 18:32:19 +09:00
3f8e6fd15c
Fix lint
2015-06-12 00:25:32 +09:00
8e6b365c40
Add --show-plugins option
2015-06-07 19:35:49 +09:00
1ec50c4a13
Allow providing custom plugins
...
Eg.
new SVGO({
plugins: [
myCustomPugin: {
type: ‘perItem’,
fn: function(item) {
/* do stuff */
}
}
]
});
2015-06-02 11:41:34 +01:00
1151e44c5a
Sanity checks for <text> trimming. Hopefully fixes #332
2015-04-12 21:38:42 +03:00
5c82e7bbca
Don't throw on parsing error
2015-04-02 16:48:49 +03:00
6fe56ec451
Adding innumerable parentNode back
2015-03-31 15:42:46 +01:00
9b91154ae5
Fix for ownProperty test
2015-03-31 09:21:46 +01:00
652389ed63
JSAPI.prototype.clone - fixes #311
2015-03-31 09:13:33 +01:00
23d617d389
Prevent optimization if there is an error.
2015-03-30 20:32:57 +03:00
60d348b148
Cli-option to set float numbers precision. Resolves #99
2015-03-30 14:19:42 +03:00
8bec56fac8
Throw error on erroneous config file
2015-03-22 22:33:15 +03:00
6661090fe2
Use console instead of Utils and better parsing error handling.
...
Resolves #193 and fixes #234 .
2015-03-22 18:12:09 +03:00
14f139709d
Made parentNode non-enumerable. Should help with #311
2015-02-25 00:09:50 +03:00
85def41186
Collapse groups with one command. Correctly update parent references.
2015-02-24 23:53:47 +03:00
eecfabd5a9
Code styled and logic improvement in convertShapeToPath
2015-02-23 23:06:18 +03:00
d3e4f63ae5
removeUselessStrokeAndFill is back. Checks for inherited attrs and references.
2015-02-23 23:06:18 +03:00
d668a10d14
Prevent removing of meaningful whitespace in text tags. Fixes #299
2015-02-15 22:39:01 +03:00
bd82898b05
Don't blow up in case of <foregnObject>. Fixes #279
2015-02-15 18:45:16 +03:00
bc6fcd2ae9
Encoding entities in output. Likely fixes #267
2015-02-09 00:04:17 +03:00
5e7caa49dc
Code styling
2015-02-08 19:31:55 +03:00
a2f77efa53
Improved files and folders processing. Fixes #259
2015-01-31 21:47:47 +03:00
eae7238415
Don't pretty print text elements because it affects text content. Fixes #241
2015-01-31 15:14:46 +03:00
941d0b5cea
Added a possibility to get an inherited attribute value
2015-01-25 23:11:00 +03:00
8d3c75d6b0
Fix fail with nodes after closing </svg> tag. Fixes #184
2015-01-25 23:09:42 +03:00
30237018ef
make passes to be independent from each other
2014-11-05 16:58:20 +03:00
0d5ce7d4e0
Version 0.5.0
...
Updated dependencies (thanks to @shinnn for bringing attention) and readme.
2014-11-05 00:32:50 +03:00
e0cf16962d
Updated banner (thx to @shinnn)
2014-11-05 00:06:06 +03:00
592fdfe03f
Don't apply transformation to path with references to another objects which also transforms
...
Resolves #104 , fixes #143 and resolves #206 .
2014-11-04 17:36:22 +03:00
943f5fab57
add ability to enable multipass
2014-11-01 00:03:02 +03:00
c351ab0de8
Merge pull request #248 from normanrz/master
...
Replaced deprecated requireing of yml file
2014-09-17 18:57:59 +04:00
6e567beaff
Merge pull request #238 from mistakster/create-item
...
Expose JSAPI as a factory method
2014-09-17 18:48:06 +04:00
26cacc6dbc
Replaced deprecated ing of yml file #245
2014-09-10 14:20:19 +02:00
842f0d1b74
expose jsAPI as factory method
2014-08-28 20:51:11 +06:00