subfont 6.6.0 → 6.7.0
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.
- package/CHANGELOG.md +14 -1
- package/lib/subsetFonts.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
### v6.
|
|
1
|
+
### v6.7.0 (2022-07-24)
|
|
2
|
+
|
|
3
|
+
- [Update subset-font to ^1.5.0](https://github.com/Munter/subfont/commit/ba79ef6db81cedfd0e52672b530ca3afddd68a94) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
4
|
+
- [Fix warning about missing glyphs for BMP chars](https://github.com/Munter/subfont/commit/5ba0168f35bfef33f9bb9cc8a6d64de8fa1d5585) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
5
|
+
- [Fix CHANGELOG generation in preversion script](https://github.com/Munter/subfont/commit/3ea696f8c336c6072411c9817c0c2f5b8d8d61b9) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
6
|
+
|
|
7
|
+
### v6.6.1 (2022-07-09)
|
|
8
|
+
|
|
9
|
+
- [ugrvw](https://github.com/Munter/subfont/commit/5ccb873025f9790faf65641551df1a7e65fbfdbf) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
10
|
+
- [Fix CHANGELOG https:\/\/github.com\/Munter\/subfont\/commit\/5365689a5a925304a158fddef2b6af702857371c\#r78084394](https://github.com/Munter/subfont/commit/d42c7a2cffd33662d42d4532c45cb8b90080f128) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
11
|
+
- [Expect browserslist to only prescribe woff I guess the browser features + usage statistics finally changed so woff isn't needed](https://github.com/Munter/subfont/commit/b70db9b769955cabbda2f2a76f2e7758f9968ec7) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
12
|
+
- [Tests: Tolerate u+ in unicode-range \(I guess an in-range dep changed\)](https://github.com/Munter/subfont/commit/92a7871457246b64a997c0bffd9bb2766655d811) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
13
|
+
|
|
14
|
+
### v6.6.0 (2022-07-09)
|
|
2
15
|
|
|
3
16
|
#### Pull requests
|
|
4
17
|
|
package/lib/subsetFonts.js
CHANGED
|
@@ -917,7 +917,7 @@ async function subsetFonts(
|
|
|
917
917
|
if (missingGlyphsErrors.length) {
|
|
918
918
|
const errorLog = missingGlyphsErrors.map(
|
|
919
919
|
({ char, fontUsage, location }) =>
|
|
920
|
-
`- \\u{${char.
|
|
920
|
+
`- \\u{${char.codePointAt(0).toString(16)}} (${char}) in font-family '${
|
|
921
921
|
fontUsage.props['font-family']
|
|
922
922
|
}' (${fontUsage.props['font-weight']}/${
|
|
923
923
|
fontUsage.props['font-style']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "subfont",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "Speeds up your pages initial paint by automatically subsetting local or Google fonts and loading them optimally",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=10.0.0"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"test": "mocha && npm run lint",
|
|
11
11
|
"travis": "npm run coverage && npm run lint",
|
|
12
12
|
"coverage": "nyc --reporter=lcov --reporter=text -- mocha",
|
|
13
|
-
"preversion": "offline-github-changelog --next=${
|
|
13
|
+
"preversion": "offline-github-changelog --next=${npm_new_version} > CHANGELOG.md && git add CHANGELOG.md"
|
|
14
14
|
},
|
|
15
15
|
"bin": {
|
|
16
16
|
"subfont": "lib/cli.js"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"pretty-bytes": "^5.1.0",
|
|
67
67
|
"puppeteer-core": "^8.0.0",
|
|
68
68
|
"specificity": "^0.4.1",
|
|
69
|
-
"subset-font": "^1.
|
|
69
|
+
"subset-font": "^1.5.0",
|
|
70
70
|
"urltools": "^0.4.1",
|
|
71
71
|
"yargs": "^15.4.0"
|
|
72
72
|
},
|