subfont 6.2.0 → 6.4.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 +22 -1
- package/lib/subsetFonts.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
### v6.
|
|
1
|
+
### v6.4.0 (2021-11-10)
|
|
2
|
+
|
|
3
|
+
- [Update subset-font to ^1.4.0](https://github.com/Munter/subfont/commit/3b04abbaa33d47a0fb8df315aa23ec4f47c0e673) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
4
|
+
|
|
5
|
+
### v6.3.1 (2021-10-22)
|
|
6
|
+
|
|
7
|
+
- [Fix tests](https://github.com/Munter/subfont/commit/4f7ab7011220457bab087a7533dbcfd5f8c8020b) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
8
|
+
- [Update postcss to ^8.3.11](https://github.com/Munter/subfont/commit/2b63273784f89f5c1e2944eec238a1d3ab2a96db) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
9
|
+
- [Update font-tracer to ^3.0.1](https://github.com/Munter/subfont/commit/1f3ce78a64c995eee5c49f5ace0ff7a6f6a1f22c) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
10
|
+
- [Drop node.js 16 for the time being because of prebuilt canvas](https://github.com/Munter/subfont/commit/2b45d966c42f7391402dc79df85d2514c71eeee3) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
11
|
+
- [Replace Travis with Github Actions](https://github.com/Munter/subfont/commit/a3851f0ac60f1205977fc2616728c94bcf6dbab8) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
12
|
+
|
|
13
|
+
### v6.3.0 (2021-09-16)
|
|
14
|
+
|
|
15
|
+
- [Update assetgraph to ^7.2.0, fixes \#152](https://github.com/Munter/subfont/commit/485e333202b935260e41f7996bbd96fca50d028a) ([Andreas Lind](mailto:andreas.lind@workday.com))
|
|
16
|
+
|
|
17
|
+
### v6.2.1 (2021-09-05)
|
|
18
|
+
|
|
19
|
+
- [Add test case where the same font-family is defined in an SVG island and the surrounding HTML](https://github.com/Munter/subfont/commit/ea6709648141efcc24177e0461fc2eb5c72c6714) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
20
|
+
- [Avoid "inline SVG in ..." in assetFileName in fontInfo for SVG islands](https://github.com/Munter/subfont/commit/8fa6bfeb41a5e9addda4904810e630e81b4f79e9) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
21
|
+
|
|
22
|
+
### v6.2.0 (2021-09-05)
|
|
2
23
|
|
|
3
24
|
- [Update to font-tracer 3.0.0](https://github.com/Munter/subfont/commit/5236fecd7a3c9387098fcd3f3b5c1ec5c73093fe) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
4
25
|
- [Rename htmlAsset vars\/params\/props for clarity](https://github.com/Munter/subfont/commit/0906ef4b70e45337c8008357d242bfdb237b9ca9) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
package/lib/subsetFonts.js
CHANGED
|
@@ -776,7 +776,7 @@ async function subsetFonts(
|
|
|
776
776
|
return {
|
|
777
777
|
fontInfo: htmlOrSvgAssetTextsWithProps.map(
|
|
778
778
|
({ fontUsages, htmlOrSvgAsset }) => ({
|
|
779
|
-
|
|
779
|
+
assetFileName: htmlOrSvgAsset.nonInlineAncestor.urlOrDescription,
|
|
780
780
|
fontUsages: fontUsages,
|
|
781
781
|
})
|
|
782
782
|
),
|
|
@@ -1467,7 +1467,7 @@ These glyphs are used on your site, but they don't exist in the font you applied
|
|
|
1467
1467
|
return {
|
|
1468
1468
|
fontInfo: htmlOrSvgAssetTextsWithProps.map(
|
|
1469
1469
|
({ fontUsages, htmlOrSvgAsset }) => ({
|
|
1470
|
-
assetFileName: htmlOrSvgAsset.urlOrDescription,
|
|
1470
|
+
assetFileName: htmlOrSvgAsset.nonInlineAncestor.urlOrDescription,
|
|
1471
1471
|
fontUsages: fontUsages.map((fontUsage) => _.omit(fontUsage, 'subsets')),
|
|
1472
1472
|
})
|
|
1473
1473
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "subfont",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.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"
|
|
@@ -47,26 +47,26 @@
|
|
|
47
47
|
"homepage": "https://github.com/Munter/subfont#readme",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@gustavnikolaj/async-main-wrap": "^3.0.1",
|
|
50
|
-
"assetgraph": "^
|
|
50
|
+
"assetgraph": "^7.2.0",
|
|
51
51
|
"browserslist": "^4.13.0",
|
|
52
52
|
"css-font-parser": "^0.3.0",
|
|
53
53
|
"css-font-weight-names": "^0.2.1",
|
|
54
54
|
"css-list-helpers": "^2.0.0",
|
|
55
55
|
"font-family-papandreou": "^0.2.0-patch2",
|
|
56
56
|
"font-snapper": "^1.2.0",
|
|
57
|
-
"font-tracer": "^3.0.
|
|
57
|
+
"font-tracer": "^3.0.1",
|
|
58
58
|
"fontkit": "^1.8.0",
|
|
59
59
|
"fontverter": "^2.0.0",
|
|
60
60
|
"gettemporaryfilepath": "^1.0.1",
|
|
61
61
|
"lines-and-columns": "^1.1.6",
|
|
62
62
|
"lodash": "^4.17.15",
|
|
63
63
|
"memoizesync": "^1.1.1",
|
|
64
|
-
"postcss": "^
|
|
64
|
+
"postcss": "^8.3.11",
|
|
65
65
|
"postcss-value-parser": "^4.0.2",
|
|
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.4.0",
|
|
70
70
|
"urltools": "^0.4.1",
|
|
71
71
|
"yargs": "^15.4.0"
|
|
72
72
|
},
|