oslllo-svg-fixer 2.1.1 → 2.1.2

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