UNPKG

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