oslllo-svg-fixer 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/CHANGELOG.md +0 -324
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oslllo-svg-fixer",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Converts SVG Strokes To Fill.",
5
5
  "bin": "src/cli.js",
6
6
  "main": "src/index.js",
@@ -43,10 +43,10 @@
43
43
  "homepage": "https://docs.oslllo.com/svg-fixer/master",
44
44
  "dependencies": {
45
45
  "ansi-colors": "^4.1.1",
46
- "cli-progress": "^3.10.0",
46
+ "cli-progress": "^3.11.0",
47
47
  "fast-glob": "^3.2.11",
48
48
  "oslllo-potrace": "^2.0.0",
49
- "oslllo-svg2": "^2.0.0",
49
+ "oslllo-svg2": "^2.0.1",
50
50
  "oslllo-validator": "^3.0.0",
51
51
  "yargs": "^16.2.0"
52
52
  },
@@ -55,10 +55,10 @@
55
55
  "chai-as-promised": "^7.1.1",
56
56
  "coveralls": "^3.1.1",
57
57
  "eslint": "^7.32.0",
58
- "fs-extra": "^10.0.1",
59
- "inquirer": "^8.2.0",
58
+ "fs-extra": "^10.1.0",
59
+ "inquirer": "^8.2.4",
60
60
  "looks-same": "^7.3.0",
61
- "mocha": "^9.2.1",
61
+ "mocha": "^9.2.2",
62
62
  "mocha-lcov-reporter": "^1.3.0",
63
63
  "nyc": "^15.1.0",
64
64
  "stopwatch-node": "^1.1.0"
package/CHANGELOG.md DELETED
@@ -1,324 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [2.1.0](https://www.github.com/oslllo/svg-fixer/compare/v2.0.1...v2.1.1) (2022-03-8)
9
-
10
- ### Added
11
-
12
- - add configurable trace resolution ([#72](https://github.com/oslllo/svg-fixer/pull/72))
13
-
14
- ### Updated
15
-
16
- - Updated dependencies
17
-
18
- ## [2.0.1](https://www.github.com/oslllo/svg-fixer/compare/v2.0.0...v2.0.1) (2022-01-21)
19
-
20
-
21
- ### Refactor
22
-
23
- - improve perfomance ([3b310aa](https://github.com/oslllo/svg-fixer/commit/3b310aaf3bf39f47b0bb56a722f03d40ad6a1b31))
24
-
25
- ## [2.0.0](https://www.github.com/oslllo/svg-fixer/compare/v1.4.1...v2.0.0) (2022-01-12)
26
-
27
- This version did not break the api so upgrading from `v1.0.0` without any changes should be fine. The reason for the major version change is just in case something did break.
28
-
29
- ### Changed
30
-
31
- - Removed `Canvas & JSDOM` to fix very slow `npm install` cycles.
32
- - Switched from `Canvas` to `svg2png-wasm`.
33
-
34
- ### Updated
35
-
36
- - Updated dependencies
37
-
38
-
39
- ## [1.4.1](https://www.github.com/oslllo/svg-fixer/compare/v1.4.0...v1.4.1) (2021-09-05)
40
-
41
-
42
- ### Bug Fixes
43
-
44
- * vulnerabilities ([99621c6](https://www.github.com/oslllo/svg-fixer/commit/99621c6258e52836f0aaaf9876fe4b4859c81ab6))
45
-
46
- ## [1.4.0](https://www.github.com/oslllo/svg-fixer/compare/v1.3.2...v1.4.0) (2021-07-14)
47
-
48
-
49
- ### Features
50
-
51
- * add support for svgs with "ex", "ch", "cm", "mm", "q", "in", "pc", "pt" ([4d2c18e](https://www.github.com/oslllo/svg-fixer/commit/4d2c18ef496b9ce08cbc917e3fbb91d9f352c6ff))
52
- * add support for svgs with fill color in path style attribute ([1aeb079](https://www.github.com/oslllo/svg-fixer/commit/1aeb0794e9693079c79981616ea00e99379c863f))
53
- * support svgs without a set viewBox attribute ([17b876c](https://www.github.com/oslllo/svg-fixer/commit/17b876ce49ed0a047dedb098d47adcccb22ff0cf))
54
-
55
- ### [1.3.2](https://www.github.com/oslllo/svg-fixer/compare/v1.3.1...v1.3.2) (2021-06-26)
56
-
57
-
58
- ### Bug Fixes
59
-
60
- * security vulnerabilities ([372730b](https://www.github.com/oslllo/svg-fixer/commit/372730bef6cf761877961796635fc406a2ecc776))
61
-
62
- ### [1.3.1](https://www.github.com/oslllo/svg-fixer/compare/v1.3.0...v1.3.1) (2021-05-27)
63
-
64
-
65
- ### Bug Fixes
66
-
67
- * output svg being smaller than viewBox ([#48](https://www.github.com/oslllo/svg-fixer/issues/48)) ([f658614](https://www.github.com/oslllo/svg-fixer/commit/f65861448802b9b7c6cd6c889207b5f1a7c66592))
68
-
69
- ## [1.3.0](https://www.github.com/oslllo/svg-fixer/compare/v1.2.1...v1.3.0) (2021-05-15)
70
-
71
-
72
- ### Features
73
-
74
- * add support for svgs with light colored fill ([#45](https://www.github.com/oslllo/svg-fixer/issues/45)) ([47aa95d](https://www.github.com/oslllo/svg-fixer/commit/47aa95da9e7054b84f3b2d36528784c5dbe6663d))
75
-
76
-
77
- ### Bug Fixes
78
-
79
- * **eslint:** script error ([d34780e](https://www.github.com/oslllo/svg-fixer/commit/d34780e1db64d350695f5be7c4713136f9c66331))
80
-
81
- ### [1.2.1](https://www.github.com/oslllo/svg-fixer/compare/v1.2.0...v1.2.1) (2021-05-06)
82
-
83
-
84
- ### Bug Fixes
85
-
86
- * drop yargs version to 16 ([7b4d9cc](https://www.github.com/oslllo/svg-fixer/commit/7b4d9ccb563027b24aefe59d394848b8937067b9))
87
- * package breaking when process.env.NODE_ENV env variable is set ([51c6318](https://www.github.com/oslllo/svg-fixer/commit/51c6318340b97d6840ab7d2c499c77aff27b6f10))
88
-
89
- ## [1.2.0] - 2021/4/1
90
-
91
- ### Fixed
92
-
93
- - Fixed bug in test.
94
-
95
- ### Updated
96
-
97
- - Updated dependencies.
98
-
99
- ## [1.1.2] - 2020/12/12
100
-
101
- ### Fixed
102
-
103
- - Fixed vulnerability.
104
-
105
- ### Updated
106
-
107
- - Updated dependencies.
108
-
109
- ## [1.1.1] - 2020/10/22
110
-
111
- ### Fixed
112
-
113
- - Fixed large npm package.
114
-
115
- ## [1.1.0] - 2020/10/22
116
-
117
- ### Fixed
118
-
119
- - Fixed bug that allowed you to update `options` that do not exist.
120
-
121
- ### Added
122
-
123
- - Added `CLI` functionality.
124
- - Added `callback` functionality to `SVGFixer.fix()`.
125
-
126
- ### Changed
127
-
128
- - Refactored `tests`.
129
- - Refactored `progress bar`.
130
-
131
- ## [1.0.2] - 2020/10/2
132
-
133
- ### Fixed
134
-
135
- - Fixed not being able to process SVGs with `%` dimensions.
136
-
137
- ### Added
138
-
139
- - SVG attribute tests.
140
-
141
- ## [1.0.1] - 2020/9/16
142
-
143
- ### Changed
144
-
145
- - Remove tests from npm `package` to help reduce unpacked `package` size.
146
-
147
- ## [1.0.0] - 2020/9/16
148
-
149
- ⚠️ Contains breaking changes.
150
-
151
- ### Breaking Changes
152
-
153
- - `svgfixer.fix(source, destination, options)` ***=>*** `SVGFixer(source, destination, options).fix()`.
154
- - It was changed from a wrapper function to a method function for `SVGFixer`.
155
- - It still returns a `Promise`.
156
- - `fix()` no more takes in `parameters`, those should be passed into `SVGFixer()`.
157
- - `svgfixer.SVGFixer()` class ***=>*** `SVGFixer()`.
158
- - The `.setOptions(options)` method has been removed, `options` should now be passed in class constructor as the 3rd `parameter`.
159
- - The `.setSourceAndDest()` method has been removed, `source` and `destination` should now be passed in class constructor as the 1st and 2nd `parameters`.
160
- - The `.process()` method has been removed, use `.fix()` instead.
161
- - `SVGFixer()` does not require the [`new`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new) operator anymore.
162
- - `fixConcurrency` has been removed, might be reimplemented on later versions.
163
-
164
- ### Changed
165
-
166
- - Updated dependencies.
167
- - Refactored codebase.
168
- - Refactored progressbar.
169
-
170
- ## [0.6.0] - 2020/8/13
171
-
172
- ### Security
173
-
174
- - Updated dependencies. Fixes [Vulnerability](https://npmjs.com/advisories/1548)
175
-
176
- ### Changed
177
-
178
- - Updated image processor.
179
- - Updated `CHANGELOG.md` wording and formatting.
180
-
181
- ## [0.5.1] - 2020/7/7
182
-
183
- ### Changed
184
-
185
- - Updated `README.md`.
186
-
187
- ### Added
188
-
189
- - Documentation.
190
-
191
- ## [0.5.0] - 2020/6/13
192
-
193
- ### Changed
194
-
195
- - Changed image processing engine from Sharp to Jimp. Fixes [#7](https://github.com/oslllo/svg-fixer/issues/7)
196
- - Refactored async pools (fixConcurrency).
197
-
198
- ### Fixed
199
-
200
- - Fixed pathing issues on windows. Fixes [#8](https://github.com/oslllo/svg-fixer/issues/8)
201
-
202
- ## [0.4.4] - 2020/6/8
203
-
204
- ### Changed
205
-
206
- - Updated dependencies. Fixes [#7](https://github.com/oslllo/svg-fixer/issues/7)
207
-
208
- ## [0.4.3] - 2020/6/2
209
-
210
- ### Changed
211
-
212
- - Updated `package.json` description.
213
-
214
- ## [0.4.2] - 2020/5/24
215
-
216
- ### Fixed
217
-
218
- - Fixed incorrect svg data when source svg has 'px', 'rem' or 'em' on height and width attributes as a unit of measurement. See ([#5](https://github.com/oslllo/svg-fixer/issues/5))
219
-
220
- ## [0.4.1] - 2020/5/16
221
-
222
- ### Security
223
-
224
- - Fixed [Vulnerability](https://www.npmjs.com/advisories/1500)
225
-
226
- ## [0.4.0] - 2020/5/14
227
-
228
- ### Added
229
-
230
- - Added new parameter `fixConcurrency` to control how many svgs to fix at a given time.
231
- - Added new tests
232
- - Added an perfomance increase by ~67%
233
-
234
- |Version|completion (%)|Time (seconds)|Number of SVGs fixed|
235
- |------|------|-----|-----|
236
- |v0.4.0|100.00|~ 127|1315|
237
- |v0.3.3|100.00|~ 190|1315|
238
- |-|-|-|-|
239
- |**VPS**|**CPU**|**RAM**|||
240
- ||Intel(R) Xeon(R) E5-1650 v3 3.50GHz (2x) | 1548MiB|||
241
-
242
- ### Fixed
243
-
244
- - Fixed tests
245
-
246
- ### Changed
247
-
248
- - Reduceed npm package size.
249
- - Updated `README.md`.
250
-
251
- ## [0.3.3] - 2020/5/12
252
-
253
- ### Added
254
-
255
- - Added badge links to `README.md`.
256
- - Added new tags to `package.json`.
257
-
258
- ### Changed
259
-
260
- - Updated `README.md` content.
261
-
262
- ## [0.3.2] - 2020/5/10
263
-
264
- ### Changed
265
-
266
- - Updated README.md
267
-
268
- ## [0.3.1] - 2020/5/9
269
-
270
- ### Changed
271
-
272
- - Updated `README.md`
273
-
274
- ## [0.3.0] - 2020/5/8
275
-
276
- ### Changed
277
-
278
- - Refactored the whole codebase.
279
- - Updated README.md
280
-
281
- ### Added
282
-
283
- - Added tests
284
- - Added slight performance increase.
285
-
286
- ## [0.2.0] - 2020/4/18
287
-
288
- ### Added
289
-
290
- - Added progress bar
291
-
292
- ## [0.1.0] - 2020/4/17
293
-
294
- ### Added
295
-
296
- - Added [CHANGELOG.md](https://github.com/oslllo/svg-fixer/blob/master/CHANGELOG.md)
297
- - Create destination folder if it does not exist.
298
-
299
- ### Changed
300
-
301
- - Switched from `fs` to `fs-extra`
302
- - Changed `SvgFixer()` function name from `SvgFixer` to `svgFixer` because its a function not a class.
303
-
304
- ### Removed
305
-
306
- - Removed debug functions
307
-
308
- ## [0.0.3] - 2020/4/16
309
-
310
- ### Added
311
-
312
- - Added package.json description
313
-
314
- ## [0.0.2] - 2020/4/16
315
-
316
- ### Added
317
-
318
- - Added [README.md](https://github.com/oslllo/svg-fixer/blob/master/README.md)
319
-
320
- ## [0.0.1] - 2020/4/16
321
-
322
- ### Added
323
-
324
- - Added everything, initial release.