1 | # Changelog
|
2 |
|
3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4 |
|
5 | ## [11.1.0](https://github.com/itgalaxy/webfont/compare/v11.0.0...v11.1.0) (2021-05-12)
|
6 |
|
7 |
|
8 | ### Features
|
9 |
|
10 | * add support to base64 font strings on templates ([2a56338](https://github.com/itgalaxy/webfont/commit/2a56338c0eb74ec7c680ef80e99e5472d69919ab)), closes [#328](https://github.com/itgalaxy/webfont/issues/328) [#329](https://github.com/itgalaxy/webfont/issues/329)
|
11 |
|
12 | ## [11.0.0](https://github.com/itgalaxy/webfont/compare/v10.1.0...v11.0.0) (2021-05-12)
|
13 |
|
14 |
|
15 | ### ⚠ BREAKING CHANGES
|
16 |
|
17 | * We removed support for Node.js 11 and Node.js 10 at this version. Please upgrade your environment to Node.js 12 or higher.
|
18 |
|
19 | ### ci
|
20 |
|
21 | * remove Node.js 10 and 11 support ([0f0dbf6](https://github.com/itgalaxy/webfont/commit/0f0dbf64a2b7ce15519bb9ada86fdb2941251a08))
|
22 |
|
23 | ## [10.1.0](https://github.com/itgalaxy/webfont/compare/v10.0.1...v10.1.0) (2021-05-12)
|
24 |
|
25 |
|
26 | ### Features
|
27 |
|
28 | * **cli:** create output folder if it's not present. ([#280](https://github.com/itgalaxy/webfont/issues/280)) ([d66a0d4](https://github.com/itgalaxy/webfont/commit/d66a0d457068b97a1bb747fb0f8ccc473721ff4a)), closes [#307](https://github.com/itgalaxy/webfont/issues/307)
|
29 |
|
30 |
|
31 | ### Bug Fixes
|
32 |
|
33 | * **deps:** upgrade dependencies ([d623b06](https://github.com/itgalaxy/webfont/commit/d623b06dc8bd9afa5c83b27c5df57404c4b1a3f6))
|
34 |
|
35 | ### [10.0.1](https://github.com/itgalaxy/webfont/compare/v10.0.0...v10.0.1) (2021-05-12)
|
36 |
|
37 | ## [10.0.0](https://github.com/itgalaxy/webfont/compare/v10.0.0-alpha.3...v10.0.0) (2021-04-08)
|
38 |
|
39 | ### ⚠ BREAKING CHANGES
|
40 |
|
41 | - starting from version 10 stable, you should use webfont via named import, like this: `import { webfont } from "webfont"`.
|
42 |
|
43 | - adopt named import/export system ([31adbc7](https://github.com/itgalaxy/webfont/commit/31adbc7faa974c3d5a1ba9ffd4a5944bcab4fae8))
|
44 |
|
45 | - drop support for Node.js 8;
|
46 |
|
47 | ### Features
|
48 |
|
49 | - migrate all codebase to TypeScript ([0b71779](https://github.com/itgalaxy/webfont/commit/0b71779a2a3b97eb27af65f64e936d6730dc5eb9))
|
50 | - add support to ligatures and JSON template ([f622c44](https://github.com/itgalaxy/webfont/commit/f622c44561534f1d997d2ebd82a08e00ca2af86c))
|
51 | - **cli:** add support to `template-cache-string` argument ([ae8b050](https://github.com/itgalaxy/webfont/commit/ae8b0503506be2544cd5b5a5b0f2c420fec588b5))
|
52 | - **demo:** add styl file example ([3aa5180](https://github.com/itgalaxy/webfont/commit/3aa5180a63fffc8d1067803e63ba9f35097009b9))
|
53 | - **demo:** update fonts with ligatures support ([64b10d6](https://github.com/itgalaxy/webfont/commit/64b10d645f43c49f0ffe92ca2978739a3abb115c))
|
54 | - **json template and template cache string:** add json built-in template, and templateCacheString which defaults to unix timestamp. ([1e43bba](https://github.com/itgalaxy/webfont/commit/1e43bba3e7aab537b2ff601c5205bd9b4b136734))
|
55 | - **ligatures:** add ligature support ([9106a13](https://github.com/itgalaxy/webfont/commit/9106a139067141f9d57fe2726ff4f295af35e4b7))
|
56 | - **standalone:** add support to JSON template and cacheString ([ad64421](https://github.com/itgalaxy/webfont/commit/ad64421a9da9cadbaba96e423cc00c1c6be76572))
|
57 | - **templates:** add cacheString support ([f39d2c1](https://github.com/itgalaxy/webfont/commit/f39d2c1753f19474d1fc0defd7de37b5f9706ca5))
|
58 | - **templates:** add template for JSON ([3b704b3](https://github.com/itgalaxy/webfont/commit/3b704b391682a99262c8ffd1a6c2c1bb22b5df58))
|
59 | - add stylus template ([588a753](https://github.com/itgalaxy/webfont/commit/588a75320daead1e3340da18efd716d75db4d00d))
|
60 | - allow adding a hash in generated font file name ([@brunoroux](https://github.com/brunoroux)) ([1913c9a](https://github.com/itgalaxy/webfont/commit/1913c9a87ea868810d7ceac9d6f203f13d90a6ea))
|
61 | - allow to add a hash in generated font file name ([6ca0d9e](https://github.com/itgalaxy/webfont/commit/6ca0d9ea7cb190d677b03db8c591183cd93c9b19))
|
62 | - respect `formats` option when using external config ([29769b0](https://github.com/itgalaxy/webfont/commit/29769b0b7f9b10a1ae77e49b813e3be494e9b699))
|
63 |
|
64 | ### Bug Fixes
|
65 |
|
66 | - **cli:** use `fs` instead of `fs-extra` for writing files ([e7bf9f5](https://github.com/itgalaxy/webfont/commit/e7bf9f567be4aa370193d32f0a167841aa7b1567))
|
67 | - **demo:** adopt `font-display: block` for a little better icon font loading ([0f9dbc0](https://github.com/itgalaxy/webfont/commit/0f9dbc012a65e0f05bec916986e27fa7322d6306))
|
68 | - **deps:** [Snyk] Fix for 1 vulnerabilities ([6e08d33](https://github.com/itgalaxy/webfont/commit/6e08d332797128dbcfba70a2c11a2d1db6f72649)), closes [#197](https://github.com/itgalaxy/webfont/issues/197)
|
69 | - **deps:** [Snyk] Fix for 1 vulnerable dependencies ([6e9e243](https://github.com/itgalaxy/webfont/commit/6e9e24369a7908c494c4fbf91eee5ccce212bd73)), closes [#188](https://github.com/itgalaxy/webfont/issues/188)
|
70 | - **deps:** [Snyk] Security upgrade meow from 5.0.0 to 6.1.0 ([b5f9021](https://github.com/itgalaxy/webfont/commit/b5f9021d9327eaad8aeaf86ea95f80e70f47f9da)), closes [#195](https://github.com/itgalaxy/webfont/issues/195)
|
71 | - **deps:** fix insecure dependency ([59a9604](https://github.com/itgalaxy/webfont/commit/59a96045b3ec2fd296ddc0c49d6ff856105617cb))
|
72 | - **deps:** fix/sort deps and scripts after `npm audit fix` ([cf5cfc4](https://github.com/itgalaxy/webfont/commit/cf5cfc467ca4b4d62071b3bcc5b937878f655777)), closes [#209](https://github.com/itgalaxy/webfont/issues/209)
|
73 | - **deps:** fix/sort deps and scripts after `npm audit fix` ([4118fcf](https://github.com/itgalaxy/webfont/commit/4118fcf5e816c2545bf149791c06457c5c27728f))
|
74 | - **deps:** pin/upgrade eslint dependencies, fix some errors ([9206e72](https://github.com/itgalaxy/webfont/commit/9206e72ec9294373532968253fe4376a718986f6)), closes [#225](https://github.com/itgalaxy/webfont/issues/225)
|
75 | - **deps:** sort/upgrade dependencies after npm audit fix ([0f976a9](https://github.com/itgalaxy/webfont/commit/0f976a930bb345af4401d4812bb37b7044c6a07d)), closes [#220](https://github.com/itgalaxy/webfont/issues/220)
|
76 | - **deps:** sort/upgrade dependencies after npm audit fix ([a1ba509](https://github.com/itgalaxy/webfont/commit/a1ba50959b36763543787478b22e836852e8ab10))
|
77 | - **deps:** upgrade `eslint` dependencies and plugins ([1e5a5ca](https://github.com/itgalaxy/webfont/commit/1e5a5cae0d4f488a45d076d9af6317135ab0ae7e))
|
78 | - **templates:** adopt `font-display: block` for better icon font loading ([4669891](https://github.com/itgalaxy/webfont/commit/4669891dc9e10ce836c13c4e99f5c8357ab7ae51))
|
79 | - .snyk, package.json & package-lock.json to reduce vulnerabilities ([2e387cc](https://github.com/itgalaxy/webfont/commit/2e387ccf780b79ae3efda07030f238e45eb43977))
|
80 | - package.json & package-lock.json to reduce vulnerabilities ([b02f52f](https://github.com/itgalaxy/webfont/commit/b02f52fa77b495ef5e19f14e849d4f886a2f584b))
|
81 | - package.json, package-lock.json & .snyk to reduce vulnerabilities ([c805812](https://github.com/itgalaxy/webfont/commit/c8058125bc1f7410c43c8d057f485c425aa739c9))
|
82 | - package.json, package-lock.json & .snyk to reduce vulnerabilities ([791e5f4](https://github.com/itgalaxy/webfont/commit/791e5f4c56466853e97c5874d74ca52dfee1fd9a))
|
83 | - package.json, package-lock.json & .snyk to reduce vulnerabilities ([8f037d5](https://github.com/itgalaxy/webfont/commit/8f037d50711d633d406a127ef76384662d40ff09))
|
84 |
|
85 | ## 9.0.0 - 2019-04-19
|
86 |
|
87 | - Changed: drops support for Node.js 6.
|
88 | - Feat: improve basic templates (see [templates](templates)).
|
89 | - Feat: use wasm package for generate woff2
|
90 |
|
91 | ## 8.2.1 - 2018-12-28
|
92 |
|
93 | - Chore: update dependencies.
|
94 |
|
95 | ## 8.2.0 - 2018-11-13
|
96 |
|
97 | - Added: `sort` option (and `--no-sort` flag for CLI).
|
98 | - Chore: update dependencies.
|
99 |
|
100 | ## 8.1.4 - 2018-06-05
|
101 |
|
102 | - Chore: minimum require `svgicons2svgfont` version is now `^9.0.3` (this fix compatibility with `nodejs@10`).
|
103 |
|
104 | ## 8.1.3 - 2018-04-25
|
105 |
|
106 | - Chore: minimum require `meow` version is now `^5.0.0`.
|
107 | - Chore: minimum require `cosmiconfig` version is now `^5.0.3`.
|
108 | - Chore: minimum require `fs-extra` version is now `^6.0.1`.
|
109 | - Chore: drop `merge-deep` in favor `lodash.merge`.
|
110 |
|
111 | ## 8.1.2 - 2018-04-23
|
112 |
|
113 | - Fixed: deterministic output (i.e. each glyph in font have same unicode in font).
|
114 |
|
115 | ## 8.1.1 - 2018-03-22
|
116 |
|
117 | - Fixed: always configure `nunjucks` for template path.
|
118 |
|
119 | ## 8.1.0 - 2018-03-22
|
120 |
|
121 | - Feat: export `config` path when he is using (in `result.config.filePath`).
|
122 |
|
123 | ## 8.0.0 - 2018-03-21
|
124 |
|
125 | - Added: `demo` directory (thanks for [@shogo](https://github.com/ShogoFunaguchi)).
|
126 | - Changed: export `glyphsData` instead `foundFiles` (`glyphsData` contain all information about any glyph).
|
127 | - Changed: `result.styles` rename to `result.template` (for API).
|
128 | - Changed: `dest` by default `process.cwd()`.
|
129 | - Changed: rename `dest-styles` CLI option to `dest-template`.
|
130 | - Changed: rename `cssTemplateClassName` to `templateClassName`.
|
131 | - Changed: rename `cssTemplateFontPath` to `templateFontPath`.
|
132 | - Changed: rename `cssTemplateFontName` to `templateFontName`.
|
133 | - Changed: `glyphTransformFn` should always return glyph metadata.
|
134 | - Changed: minimum required `nodejs` version is now `6.9.5` (see [svgicons2svgfont](https://github.com/nfroidure/svgicons2svgfont/blob/master/package.json#L41).
|
135 | - Changed: use `globby@8` (based on `fast-glob`, it is better perf).
|
136 | - Chore: minimum used `svgicons2svgfont` package is now `^9.0.2`
|
137 | - Chore: minimum used `cosmiconfig` package is now `^4.0.0`
|
138 | - Fixed: don't use `globby` for getting build-in tempalte (better perf).
|
139 | - Fixed: always add trailing slash to `templateFontPath`.
|
140 |
|
141 | ## 7.1.4 - 2017-05-24
|
142 |
|
143 | - Fixed: use `copyright`, `ts` and `version` with null value by default, it is avoid problems when your use long term caching.
|
144 | - Fixed: options for `ttf` font generation now correctly handles.
|
145 |
|
146 | ## 7.1.3 - 2017-04-13
|
147 |
|
148 | - Fixed: search config if not present in CLI arguments.
|
149 |
|
150 | ## 7.1.2 - 2017-04-12
|
151 |
|
152 | - Fixed: `template` option now respected from config.
|
153 |
|
154 | ## 7.1.1 - 2017-03-29
|
155 |
|
156 | - Fixed: potential crash with memory allocation when using `fs` for read files.
|
157 |
|
158 | ## 7.1.0 - 2017-01-24
|
159 |
|
160 | - Added: `glyphTransformFn` option for transform glyph metadata before transferred in style template.
|
161 |
|
162 | ## 7.0.2 - 2016-12-22
|
163 |
|
164 | - Fixed: exit code can be not number.
|
165 |
|
166 | ## 7.0.1 - 2016-12-20
|
167 |
|
168 | - Fixed: arguments for svgicons2svgfont (missing font prefix).
|
169 | - Chore: improved output of help in `CLI`.
|
170 |
|
171 | ## 7.0.0 - 2016-11-09
|
172 |
|
173 | - Added: `template` option instead `css`, `cssFormat`, `srcCssTemplate`.
|
174 | - Added: `destStyles` options instead `destCssTemplate`.
|
175 | - Added: `styles` property to result.
|
176 | - Fixed: throw error on empty `svg` files.
|
177 | - Removed: `css` option.
|
178 | - Removed: `cssFormat` option.
|
179 | - Removed: `srcCssTemplate` option.
|
180 | - Removed: `css` property from result.
|
181 | - Removed: `destCssTemplate` argument from `cli`.
|
182 | - Tests: improved tests (relative and absolute path to template).
|
183 |
|
184 | ## 6.0.4 - 2016-11-08
|
185 |
|
186 | - Fixed: regression bug with passed arguments to template.
|
187 |
|
188 | ## 6.0.3 - 2016-11-08
|
189 |
|
190 | - Fixed: validate `xml` of glyphs.
|
191 | - Chore: minimum required `eslint-plugin-ava` version is now `^2.2.0`.
|
192 | - Chore: minimum required `eslint-plugin-itgalaxy` version is now `^26.0.0`.
|
193 | - Chore: minimum required `eslint-plugin-jsx-a11y` version is now `^3.0.0`.
|
194 | - Chore: minimum required `eslint-plugin-react` version is now `^6.6.0`.
|
195 | - Chore: refactoring code.
|
196 |
|
197 | ## 6.0.2 - 2016-11-07
|
198 |
|
199 | - Fixed: use `reject` instead `Promise.reject` in glyphs `error` callback.
|
200 | - Fixed: use callback `finish` instead `end` for `svgicons2svgfont` stream.
|
201 | - Tests: improve tests on bad examples.
|
202 |
|
203 | ## 6.0.1 - 2016-11-07
|
204 |
|
205 | - Fixed: add `error` event to `glyph` stream.
|
206 | - Fixed: don't create `new Error` where this is not necessary.
|
207 | - Chore: minimum required `nunjucks` version is now `^3.0.0`.
|
208 | - Chore: minimum required `eslint` version is now `^3.9.1`.
|
209 | - Chore: minimum required `eslint-plugin-ava` version is now `^4.0.0`.
|
210 | - Chore: minimum required `eslint-plugin-itgalaxy` version is now `^25.0.0`.
|
211 | - Chore: minimum required `eslint-plugin-node` version is now `^3.0.0`.
|
212 | - Chore: minimum required `eslint-plugin-promise` version is now `^3.3.0`.
|
213 | - Chore: minimum required `eslint-plugin-react` version is now `^6.5.0`.
|
214 | - Tests: improve tests on bad examples.
|
215 |
|
216 | ## 6.0.0 - 2016-10-26
|
217 |
|
218 | - Added: support `nodejs` `7`.
|
219 | - Added: `verbose` argument for verbose output.
|
220 | - Remove: `quite` argument.
|
221 | - Chore: improve `README.md`.
|
222 | - Chore: improve `description` in `package.json`.
|
223 |
|
224 | ## 5.0.0 - 2016-10-24
|
225 |
|
226 | - Fixed: wrong `CSS` syntax when not all format are selected.
|
227 | - Chore(SEMVER-MAJOR): rename extension for all templates from `nunjucks` to `njk`.
|
228 |
|
229 | ## 4.0.1 - 2016-10-19
|
230 |
|
231 | - Fixed: CLI `fontName` and `formats` arguments bug.
|
232 | - Chore: minimum required `ajv-cli` version is now `^1.1.0`.
|
233 | - Chore: minimum required `remark-preset-lint-itgalaxy` version is now `^2.0.0`.
|
234 | - Chore: minimum required `nunjucks` from `2.0.0` to `2.5.0`.
|
235 | - Chore: minimum required `eslint-plugin-import` version is now `^2.0.0`.
|
236 | - Chore: minimum required `eslint-plugin-promise` version is now `^3.0.0`.
|
237 | - Chore: minimum required `eslint-plugin-lodash` version is now `^2.1.0`.
|
238 | - Chore: rename `eslint-plugin-xo` to `eslint-plugin-unicorn`.
|
239 | - Chore: minimum required `eslint-plugin-unicorn` version is now `^1.0.0`.
|
240 | - Chore: minimum required `eslint-plugin-itgalaxy` version is now `^23.0.0`.
|
241 | - Chore: minimum required `cosmiconfig` version is now `^2.0.0`.
|
242 |
|
243 | ## 4.0.0
|
244 |
|
245 | - Changed: all style templates for font now have `nunjucks` extension.
|
246 | - Chore(package): remove extra `files` from `package.json`.
|
247 | - Chore(package): install all `peerDependencies` for `eslint-plugin-itgalaxy`.
|
248 | - Chore(package): update a minimal version `ava` from `0.15.0` to `0.16.0`.
|
249 | - Chore(package): update a minimal version `eslint-plugin-ava` from `2.5.0` to `3.0.0`.
|
250 | - Chore(package): update a minimal version `npm-run-all` from `2.3.0` to `3.0.0`.
|
251 | - Chore(package): update a minimal version `eslint-plugin-itgalaxy` from `8.0.0` to `11.0.0`.
|
252 | - Chore(package): update a minimal version `nyc` from `7.0.0` to `8.0.0`.
|
253 | - Chore(package): remove `nyc` settings, now fine works without their.
|
254 | - Chore(package): use `^` instead `~` from `babel-preset-stage-0`.
|
255 | - Chore(package): use `remark-preset-lint-itgalaxy` instead `remark-lint-config-itgalaxy`.
|
256 | - Chore(package): use right version for `eslint-plugin-*` and `eslint`.
|
257 | - Chore: improved `README.md`.
|
258 | - Chore: fix glob pattern for `lint:remark` script command.
|
259 |
|
260 | ## 3.0.1
|
261 |
|
262 | - Fixed: `--css-template-font-path` now get also from `cosmiconfig`.
|
263 |
|
264 | ## 3.0.0
|
265 |
|
266 | - Added: support `cosmiconfig`.
|
267 | - Changed: change function arguments in `standalone`.
|
268 | - Chore: refactoring.
|
269 | - Chore: sorting alphabetically `dependencies` and `devDependencies`.
|
270 | - Chore: remove unused `eslint-*` plugins from `devDependencies`.
|
271 | - Chore: update minimal version `eslint-plugin-itgalaxy` to `8.0.0`.
|
272 | - Chore: check is valid fonts in tests.
|
273 | - Chore: add more tests.
|
274 | - Chore: sharable config for `remark-lint`.
|
275 | - Chore: add `nodejs` v5 to `.travis.yml`.
|
276 |
|
277 | ## 2.0.3
|
278 |
|
279 | - Chore: improved `description` and `keywords` in `package.json`.
|
280 |
|
281 | ## 2.0.2
|
282 |
|
283 | - Fixed: `svg2ttf` now correctly generates `ttf` font.
|
284 | - Fixed: `ttf2eot` now correctly generates `eot` font.
|
285 | - Fixed: `ttf2woff` now correctly generates `woff` font.
|
286 | - Fixed: `svg2ttf` now correctly accepts option.
|
287 | - Chore: more readable name tests.
|
288 | - Chore: rename extension `templates`.
|
289 |
|
290 | ## 2.0.1
|
291 |
|
292 | - Chore: update `globby` to `6.0.0`.
|
293 | - Chore: update minimal version `babel-cli` to `6.11.0`.
|
294 | - Chore: update minimal version `babel-core` to `6.11.0`.
|
295 | - Chore: update `eslint-plugin-itgalaxy` to `6.0.0`.
|
296 |
|
297 | ## 2.0.0
|
298 |
|
299 | - Added: `--src-css-template` agument.
|
300 | - Added: `--css-template-class-name` argument.
|
301 | - Added: `--css-template-font-path` argument.
|
302 | - Added: `--css-template-font-name` argument.
|
303 | - Changed: remove `--css-template-format` argument, now format is taken from `--dest-css-template`.
|
304 | - Changed: remove `--css` argument, css now generated if you use `--dest-css-template` argument.
|
305 | - Changed: rename `--css-template-dest` argument to `--dest-css-template`.
|
306 | - Remove: `--css-template` argument.
|
307 |
|
308 | ## 1.0.1
|
309 |
|
310 | - Fixed: get `fontId` from `fontName`, if `fontId` is `null` or `undefined`.
|
311 |
|
312 | ## 1.0.0
|
313 |
|
314 | - Initial release.
|