subfont 7.2.1 → 7.2.3
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 +16 -7
- package/lib/HeadlessBrowser.js +1 -0
- package/lib/subsetFonts.js +4 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
### v7.2.3 (2026-03-21)
|
|
2
|
+
|
|
3
|
+
- [Bump assetgraph to ^7.13.0](https://github.com/Munter/subfont/commit/2963cc38663d00bc115dffcac4942a0e0f94db58) ([Andreas Lind](mailto:andreas.lind@workday.com))
|
|
4
|
+
|
|
5
|
+
### v7.2.2 (2026-03-21)
|
|
6
|
+
|
|
7
|
+
- [Drive-by: Add test for unicodeRange generation](https://github.com/Munter/subfont/commit/ae58ca03f846d5e95942875bf163f66d4c6cdb1c) ([Andreas Lind](mailto:andreas.lind@workday.com))
|
|
8
|
+
- [Fix extraction of codepoints from the page text in the presence of surrogate pairs](https://github.com/Munter/subfont/commit/5f29df4cdf59b1f903bee040ba896877776ec0c8) ([Andreas Lind](mailto:andreas.lind@workday.com))
|
|
9
|
+
|
|
1
10
|
### v7.2.1 (2024-05-08)
|
|
2
11
|
|
|
3
12
|
- [Update font-tracer to ^3.7.0, fixes \#173](https://github.com/Munter/subfont/commit/0fae200fe8156ab5ccbf632c765e75d65a240210) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
@@ -101,13 +110,9 @@
|
|
|
101
110
|
- [Update subset-font to ^1.5.0](https://github.com/Munter/subfont/commit/ba79ef6db81cedfd0e52672b530ca3afddd68a94) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
102
111
|
- [Fix warning about missing glyphs for BMP chars](https://github.com/Munter/subfont/commit/5ba0168f35bfef33f9bb9cc8a6d64de8fa1d5585) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
103
112
|
- [Fix CHANGELOG generation in preversion script](https://github.com/Munter/subfont/commit/3ea696f8c336c6072411c9817c0c2f5b8d8d61b9) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
104
|
-
|
|
105
|
-
### v6.6.1 (2022-07-09)
|
|
106
|
-
|
|
107
|
-
- [ugrvw](https://github.com/Munter/subfont/commit/5ccb873025f9790faf65641551df1a7e65fbfdbf) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
108
113
|
- [Fix CHANGELOG https:\/\/github.com\/Munter\/subfont\/commit\/5365689a5a925304a158fddef2b6af702857371c\#r78084394](https://github.com/Munter/subfont/commit/d42c7a2cffd33662d42d4532c45cb8b90080f128) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
109
114
|
- [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))
|
|
110
|
-
- [
|
|
115
|
+
- [+1 more](https://github.com/Munter/subfont/compare/v6.6.0...v6.7.0)
|
|
111
116
|
|
|
112
117
|
### v6.6.0 (2022-07-09)
|
|
113
118
|
|
|
@@ -394,13 +399,16 @@
|
|
|
394
399
|
#### Pull requests
|
|
395
400
|
|
|
396
401
|
- [#76](https://github.com/Munter/subfont/pull/76) Fix the prettier setup ([Andreas Lind](mailto:andreas.lind@peakon.com))
|
|
397
|
-
- [#75](https://github.com/Munter/subfont/pull/75) Fix omitFallbacks with Google Web Fonts ([Andreas Lind](mailto:andreas.lind@peakon.com))
|
|
398
402
|
|
|
399
403
|
#### Commits to master
|
|
400
404
|
|
|
401
405
|
- [Switch to the official css-font-parser now that bramstein\/css-font-parser\#7 has been merged and released](https://github.com/Munter/subfont/commit/457c7f0e4cef0a8c1bd8f816c23ace64c9987424) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
402
406
|
- [Don't populate source map relations](https://github.com/Munter/subfont/commit/5c07218b6f1dcc6fad88702a3bcb7b33bf9df54e) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
403
407
|
|
|
408
|
+
### v4.1.2 (2020-01-09)
|
|
409
|
+
|
|
410
|
+
- [#75](https://github.com/Munter/subfont/pull/75) Fix omitFallbacks with Google Web Fonts ([Andreas Lind](mailto:andreas.lind@peakon.com))
|
|
411
|
+
|
|
404
412
|
### v4.1.1 (2020-01-04)
|
|
405
413
|
|
|
406
414
|
- [Add regression test](https://github.com/Munter/subfont/commit/46eddce9c09268dbde459b1f98fe5cec9e4c98f5) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
@@ -431,7 +439,8 @@
|
|
|
431
439
|
- [Add vscode debugger launch configuration for the test suite](https://github.com/Munter/subfont/commit/f8f9abc42909c556765555cc49f44eb40a9194db) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
432
440
|
- [Guard against an already detached relation when cleaning up](https://github.com/Munter/subfont/commit/6392fc359222772c9033a58a9020e3b35487d019) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
433
441
|
|
|
434
|
-
### v4.0.3
|
|
442
|
+
### v4.0.3 (2019-11-02)
|
|
443
|
+
|
|
435
444
|
#### Pull requests
|
|
436
445
|
|
|
437
446
|
- [#67](https://github.com/Munter/subfont/pull/67) Only warn about missing fonttools install if we are actually trying t… ([Peter Müller](mailto:munter@fumle.dk))
|
package/lib/HeadlessBrowser.js
CHANGED
package/lib/subsetFonts.js
CHANGED
|
@@ -710,7 +710,10 @@ const validFontDisplayValues = [
|
|
|
710
710
|
];
|
|
711
711
|
|
|
712
712
|
function getCodepoints(text) {
|
|
713
|
-
const codepoints =
|
|
713
|
+
const codepoints = [];
|
|
714
|
+
for (const c of text) {
|
|
715
|
+
codepoints.push(c.codePointAt(0));
|
|
716
|
+
}
|
|
714
717
|
|
|
715
718
|
if (!codepoints.includes(32)) {
|
|
716
719
|
// Make sure that space is always part of the subset fonts (and that it's announced in unicode-range).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "subfont",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.3",
|
|
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"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@gustavnikolaj/async-main-wrap": "^3.0.1",
|
|
50
50
|
"@hookun/parse-animation-shorthand": "^0.1.5",
|
|
51
|
-
"assetgraph": "^7.
|
|
51
|
+
"assetgraph": "^7.13.0",
|
|
52
52
|
"browserslist": "^4.13.0",
|
|
53
53
|
"css-font-parser": "^2.0.0",
|
|
54
54
|
"css-font-weight-names": "^0.2.1",
|
|
@@ -90,12 +90,15 @@
|
|
|
90
90
|
"offline-github-changelog": "^1.6.1",
|
|
91
91
|
"prettier": "~2.3.0",
|
|
92
92
|
"proxyquire": "^2.1.1",
|
|
93
|
-
"puppeteer": "^
|
|
93
|
+
"puppeteer": "^24.40.0",
|
|
94
94
|
"sinon": "^9.0.2",
|
|
95
95
|
"unexpected": "^11.8.1",
|
|
96
96
|
"unexpected-check": "^2.3.1",
|
|
97
97
|
"unexpected-resemble": "^5.0.1",
|
|
98
98
|
"unexpected-set": "^2.0.1",
|
|
99
99
|
"unexpected-sinon": "^10.11.2"
|
|
100
|
+
},
|
|
101
|
+
"overrides": {
|
|
102
|
+
"canvas": "latest"
|
|
100
103
|
}
|
|
101
104
|
}
|