subfont 7.2.1 → 7.2.2

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 CHANGED
@@ -1,3 +1,8 @@
1
+ ### v7.2.2 (2026-03-21)
2
+
3
+ - [Drive-by: Add test for unicodeRange generation](https://github.com/Munter/subfont/commit/ae58ca03f846d5e95942875bf163f66d4c6cdb1c) ([Andreas Lind](mailto:andreas.lind@workday.com))
4
+ - [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))
5
+
1
6
  ### v7.2.1 (2024-05-08)
2
7
 
3
8
  - [Update font-tracer to ^3.7.0, fixes \#173](https://github.com/Munter/subfont/commit/0fae200fe8156ab5ccbf632c765e75d65a240210) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
@@ -101,13 +106,9 @@
101
106
  - [Update subset-font to ^1.5.0](https://github.com/Munter/subfont/commit/ba79ef6db81cedfd0e52672b530ca3afddd68a94) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
102
107
  - [Fix warning about missing glyphs for BMP chars](https://github.com/Munter/subfont/commit/5ba0168f35bfef33f9bb9cc8a6d64de8fa1d5585) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
103
108
  - [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
109
  - [Fix CHANGELOG https:\/\/github.com\/Munter\/subfont\/commit\/5365689a5a925304a158fddef2b6af702857371c\#r78084394](https://github.com/Munter/subfont/commit/d42c7a2cffd33662d42d4532c45cb8b90080f128) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
109
110
  - [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
- - [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))
111
+ - [+1 more](https://github.com/Munter/subfont/compare/v6.6.0...v6.7.0)
111
112
 
112
113
  ### v6.6.0 (2022-07-09)
113
114
 
@@ -394,13 +395,16 @@
394
395
  #### Pull requests
395
396
 
396
397
  - [#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
398
 
399
399
  #### Commits to master
400
400
 
401
401
  - [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
402
  - [Don't populate source map relations](https://github.com/Munter/subfont/commit/5c07218b6f1dcc6fad88702a3bcb7b33bf9df54e) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
403
403
 
404
+ ### v4.1.2 (2020-01-09)
405
+
406
+ - [#75](https://github.com/Munter/subfont/pull/75) Fix omitFallbacks with Google Web Fonts ([Andreas Lind](mailto:andreas.lind@peakon.com))
407
+
404
408
  ### v4.1.1 (2020-01-04)
405
409
 
406
410
  - [Add regression test](https://github.com/Munter/subfont/commit/46eddce9c09268dbde459b1f98fe5cec9e4c98f5) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
@@ -431,7 +435,8 @@
431
435
  - [Add vscode debugger launch configuration for the test suite](https://github.com/Munter/subfont/commit/f8f9abc42909c556765555cc49f44eb40a9194db) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
432
436
  - [Guard against an already detached relation when cleaning up](https://github.com/Munter/subfont/commit/6392fc359222772c9033a58a9020e3b35487d019) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
433
437
 
434
- ### v4.0.3
438
+ ### v4.0.3 (2019-11-02)
439
+
435
440
  #### Pull requests
436
441
 
437
442
  - [#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))
@@ -710,7 +710,10 @@ const validFontDisplayValues = [
710
710
  ];
711
711
 
712
712
  function getCodepoints(text) {
713
- const codepoints = text.split('').map((c) => c.codePointAt(0));
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.1",
3
+ "version": "7.2.2",
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"