subfont 6.12.2 → 6.12.4
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 +11 -7
- package/lib/getCssRulesByProperty.js +3 -1
- package/lib/subsetFonts.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### v6.12.3 (2023-01-06)
|
|
2
|
+
|
|
3
|
+
- [Update @hookun\/parse-animation-shorthand to ^0.1.5, fixes \#168](https://github.com/Munter/subfont/commit/ec19b28392e02c2a4cc42e0124cca5fce4c2ba32) ([Andreas Lind](mailto:andreas.lind@workday.com))
|
|
4
|
+
|
|
1
5
|
### v6.12.2 (2022-11-02)
|
|
2
6
|
|
|
3
7
|
- [Be resilient when an insertion point cannot be found for subfont's preloads and stylesheets Fixes assetgraph\/assetgraph\#1251](https://github.com/Munter/subfont/commit/75beca70fb6cf696cf958326d8ea65b31d125b71) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
@@ -50,13 +54,9 @@
|
|
|
50
54
|
- [Update subset-font to ^1.5.0](https://github.com/Munter/subfont/commit/ba79ef6db81cedfd0e52672b530ca3afddd68a94) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
51
55
|
- [Fix warning about missing glyphs for BMP chars](https://github.com/Munter/subfont/commit/5ba0168f35bfef33f9bb9cc8a6d64de8fa1d5585) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
52
56
|
- [Fix CHANGELOG generation in preversion script](https://github.com/Munter/subfont/commit/3ea696f8c336c6072411c9817c0c2f5b8d8d61b9) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
53
|
-
|
|
54
|
-
### v6.6.1 (2022-07-09)
|
|
55
|
-
|
|
56
|
-
- [ugrvw](https://github.com/Munter/subfont/commit/5ccb873025f9790faf65641551df1a7e65fbfdbf) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
57
57
|
- [Fix CHANGELOG https:\/\/github.com\/Munter\/subfont\/commit\/5365689a5a925304a158fddef2b6af702857371c\#r78084394](https://github.com/Munter/subfont/commit/d42c7a2cffd33662d42d4532c45cb8b90080f128) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
58
58
|
- [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))
|
|
59
|
-
- [
|
|
59
|
+
- [+1 more](https://github.com/Munter/subfont/compare/v6.6.0...v6.7.0)
|
|
60
60
|
|
|
61
61
|
### v6.6.0 (2022-07-09)
|
|
62
62
|
|
|
@@ -343,13 +343,16 @@
|
|
|
343
343
|
#### Pull requests
|
|
344
344
|
|
|
345
345
|
- [#76](https://github.com/Munter/subfont/pull/76) Fix the prettier setup ([Andreas Lind](mailto:andreas.lind@peakon.com))
|
|
346
|
-
- [#75](https://github.com/Munter/subfont/pull/75) Fix omitFallbacks with Google Web Fonts ([Andreas Lind](mailto:andreas.lind@peakon.com))
|
|
347
346
|
|
|
348
347
|
#### Commits to master
|
|
349
348
|
|
|
350
349
|
- [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))
|
|
351
350
|
- [Don't populate source map relations](https://github.com/Munter/subfont/commit/5c07218b6f1dcc6fad88702a3bcb7b33bf9df54e) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
352
351
|
|
|
352
|
+
### v4.1.2 (2020-01-09)
|
|
353
|
+
|
|
354
|
+
- [#75](https://github.com/Munter/subfont/pull/75) Fix omitFallbacks with Google Web Fonts ([Andreas Lind](mailto:andreas.lind@peakon.com))
|
|
355
|
+
|
|
353
356
|
### v4.1.1 (2020-01-04)
|
|
354
357
|
|
|
355
358
|
- [Add regression test](https://github.com/Munter/subfont/commit/46eddce9c09268dbde459b1f98fe5cec9e4c98f5) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
@@ -380,7 +383,8 @@
|
|
|
380
383
|
- [Add vscode debugger launch configuration for the test suite](https://github.com/Munter/subfont/commit/f8f9abc42909c556765555cc49f44eb40a9194db) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
381
384
|
- [Guard against an already detached relation when cleaning up](https://github.com/Munter/subfont/commit/6392fc359222772c9033a58a9020e3b35487d019) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
382
385
|
|
|
383
|
-
### v4.0.3
|
|
386
|
+
### v4.0.3 (2019-11-02)
|
|
387
|
+
|
|
384
388
|
#### Pull requests
|
|
385
389
|
|
|
386
390
|
- [#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))
|
|
@@ -147,7 +147,9 @@ function getCssRulesByProperty(properties, cssSource, existingPredicates) {
|
|
|
147
147
|
}
|
|
148
148
|
} else if (propName === 'animation') {
|
|
149
149
|
// Shorthand
|
|
150
|
-
const parsedAnimation = parseAnimationShorthand.parseSingle(
|
|
150
|
+
const parsedAnimation = parseAnimationShorthand.parseSingle(
|
|
151
|
+
node.value
|
|
152
|
+
).value;
|
|
151
153
|
|
|
152
154
|
if (properties.includes('animation-name')) {
|
|
153
155
|
// Split up combined selectors as they might have different specificity
|
package/lib/subsetFonts.js
CHANGED
|
@@ -94,7 +94,7 @@ function isOutOfBoundsAnimationTimingFunction(animationTimingFunctionStr) {
|
|
|
94
94
|
}
|
|
95
95
|
const { timingFunction } = parseAnimationShorthand.parseSingle(
|
|
96
96
|
`${animationTimingFunctionStr} ignored-name`
|
|
97
|
-
);
|
|
97
|
+
).value;
|
|
98
98
|
|
|
99
99
|
if (timingFunction.type === 'cubic-bezier') {
|
|
100
100
|
const [, y1, , y2] = timingFunction.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "subfont",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.4",
|
|
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,7 +47,7 @@
|
|
|
47
47
|
"homepage": "https://github.com/Munter/subfont#readme",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@gustavnikolaj/async-main-wrap": "^3.0.1",
|
|
50
|
-
"@hookun/parse-animation-shorthand": "^0.1.
|
|
50
|
+
"@hookun/parse-animation-shorthand": "^0.1.5",
|
|
51
51
|
"assetgraph": "^7.8.1",
|
|
52
52
|
"browserslist": "^4.13.0",
|
|
53
53
|
"css-font-parser": "^2.0.0",
|