expo-font 13.3.0 → 13.3.1
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 +6 -0
- package/android/build.gradle +2 -2
- package/build/memory.d.ts.map +1 -1
- package/build/memory.js +6 -0
- package/build/memory.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0.module → 13.3.1/expo.modules.font-13.3.1.module} +7 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.1/expo.modules.font-13.3.1.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.1/expo.modules.font-13.3.1.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.1/expo.modules.font-13.3.1.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.1/expo.modules.font-13.3.1.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0.pom → 13.3.1/expo.modules.font-13.3.1.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.1/expo.modules.font-13.3.1.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.1/expo.modules.font-13.3.1.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.1/expo.modules.font-13.3.1.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.1/expo.modules.font-13.3.1.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.font/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.font/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/maven-metadata.xml.sha512 +1 -1
- package/package.json +2 -2
- package/src/memory.ts +8 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.0/expo.modules.font-13.3.0.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.0/expo.modules.font-13.3.0.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.0/expo.modules.font-13.3.0.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.0/expo.modules.font-13.3.0.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.0/expo.modules.font-13.3.0.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.0/expo.modules.font-13.3.0.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.0/expo.modules.font-13.3.0.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.0/expo.modules.font-13.3.0.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0-sources.jar → 13.3.1/expo.modules.font-13.3.1-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0-sources.jar.md5 → 13.3.1/expo.modules.font-13.3.1-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0-sources.jar.sha1 → 13.3.1/expo.modules.font-13.3.1-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0-sources.jar.sha256 → 13.3.1/expo.modules.font-13.3.1-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0-sources.jar.sha512 → 13.3.1/expo.modules.font-13.3.1-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0.aar → 13.3.1/expo.modules.font-13.3.1.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0.aar.md5 → 13.3.1/expo.modules.font-13.3.1.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0.aar.sha1 → 13.3.1/expo.modules.font-13.3.1.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0.aar.sha256 → 13.3.1/expo.modules.font-13.3.1.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.font/{13.3.0/expo.modules.font-13.3.0.aar.sha512 → 13.3.1/expo.modules.font-13.3.1.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 13.3.1 — 2025-05-02
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Bail out early when `getLoadedFonts` returns an empty array. ([#36586](https://github.com/expo/expo/pull/36586) by [@brentvatne](https://github.com/brentvatne))
|
|
18
|
+
|
|
13
19
|
## 13.3.0 — 2025-04-30
|
|
14
20
|
|
|
15
21
|
### 🎉 New features
|
package/android/build.gradle
CHANGED
package/build/memory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAO,CAAC;AAKlE,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,QAE5C;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAO,CAAC;AAKlE,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,QAE5C;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAkB1D;AAED,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAEjE;AAED,wBAAgB,UAAU,IAAI,IAAI,CAEjC"}
|
package/build/memory.js
CHANGED
|
@@ -14,6 +14,12 @@ export function isLoadedNative(fontFamily) {
|
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
16
|
const loadedNativeFonts = ExpoFontLoader.getLoadedFonts();
|
|
17
|
+
// NOTE(brentvatne): Bail out here if there are no loaded fonts. This
|
|
18
|
+
// is functionally equivalent to the behavior below if the returned array
|
|
19
|
+
// is empty, but this handles improper mocking of `getLoadedFonts`.
|
|
20
|
+
if (!loadedNativeFonts?.length) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
17
23
|
loadedNativeFonts.forEach((font) => {
|
|
18
24
|
cache[font] = true;
|
|
19
25
|
});
|
package/build/memory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,MAAM,CAAC,MAAM,YAAY,GAAsC,EAAE,CAAC;AAElE,8EAA8E;AAC9E,IAAI,KAAK,GAAgC,EAAE,CAAC;AAE5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,IAAI,KAAK,CAAC;IAC7B,CAAC;AACH,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,UAAkB;IACzD,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,KAAK,GAAG,EAAE,CAAC;AACb,CAAC","sourcesContent":["import ExpoFontLoader from './ExpoFontLoader';\n\nexport const loadPromises: { [name: string]: Promise<void> } = {};\n\n// cache the value on the js side for fast access to the fonts that are loaded\nlet cache: { [name: string]: boolean } = {};\n\nexport function markLoaded(fontFamily: string) {\n cache[fontFamily] = true;\n}\n\nexport function isLoadedInCache(fontFamily: string): boolean {\n return fontFamily in cache;\n}\n\nexport function isLoadedNative(fontFamily: string): boolean {\n if (isLoadedInCache(fontFamily)) {\n return true;\n } else {\n const loadedNativeFonts: string[] = ExpoFontLoader.getLoadedFonts();\n\n // NOTE(brentvatne): Bail out here if there are no loaded fonts. This\n // is functionally equivalent to the behavior below if the returned array\n // is empty, but this handles improper mocking of `getLoadedFonts`.\n if (!loadedNativeFonts?.length) {\n return false;\n }\n\n loadedNativeFonts.forEach((font) => {\n cache[font] = true;\n });\n return fontFamily in cache;\n }\n}\n\nexport function purgeFontFamilyFromCache(fontFamily: string): void {\n delete cache[fontFamily];\n}\n\nexport function purgeCache(): void {\n cache = {};\n}\n"]}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.font",
|
|
6
|
-
"version": "13.3.
|
|
6
|
+
"version": "13.3.1",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.font-13.3.
|
|
28
|
-
"url": "expo.modules.font-13.3.
|
|
27
|
+
"name": "expo.modules.font-13.3.1.aar",
|
|
28
|
+
"url": "expo.modules.font-13.3.1.aar",
|
|
29
29
|
"size": 24048,
|
|
30
30
|
"sha512": "68cf441a11928d7286379f1985698bdf3925a0dfd852a168968a955f21e32b1d95f1a65a330be805cee8b464cab97ff03a15ad7df77fef45aa25de193ca5b259",
|
|
31
31
|
"sha256": "5274e21b1ff612d9defa01130a701dee5a7c2459b06d7a54b49d0b843d601120",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
],
|
|
58
58
|
"files": [
|
|
59
59
|
{
|
|
60
|
-
"name": "expo.modules.font-13.3.
|
|
61
|
-
"url": "expo.modules.font-13.3.
|
|
60
|
+
"name": "expo.modules.font-13.3.1.aar",
|
|
61
|
+
"url": "expo.modules.font-13.3.1.aar",
|
|
62
62
|
"size": 24048,
|
|
63
63
|
"sha512": "68cf441a11928d7286379f1985698bdf3925a0dfd852a168968a955f21e32b1d95f1a65a330be805cee8b464cab97ff03a15ad7df77fef45aa25de193ca5b259",
|
|
64
64
|
"sha256": "5274e21b1ff612d9defa01130a701dee5a7c2459b06d7a54b49d0b843d601120",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
79
|
{
|
|
80
|
-
"name": "expo.modules.font-13.3.
|
|
81
|
-
"url": "expo.modules.font-13.3.
|
|
80
|
+
"name": "expo.modules.font-13.3.1-sources.jar",
|
|
81
|
+
"url": "expo.modules.font-13.3.1-sources.jar",
|
|
82
82
|
"size": 3643,
|
|
83
83
|
"sha512": "04d8003327d266d74c7c2123206ff0c008db185c4fe9ce8518e6c47af1ed8d3118db35e094ceb19451c622318ac15e9fa9eaea609d7fae69cedec95e1656c20a",
|
|
84
84
|
"sha256": "c029366141433ab312f41026590eb119ef648137f3b6cebeb416531fc0b4cccc",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f3e81f184e30c3231a33561acb00d7b1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2deed22f48a94a8beabfb6aa00cc973ffb81e963
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
34f1703f7773b41917d37a7870b185613099323365667167142aa6322d4c505e
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a00ab256f2f2d67f266a6db1a50aea9eadf4f0a588930796571cd94d5140263bd564054ed16e0ca56fc9239acb747f132662ca8f0dd9cc55b728348428167c5e
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.font</artifactId>
|
|
12
|
-
<version>13.3.
|
|
12
|
+
<version>13.3.1</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.font</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.1/expo.modules.font-13.3.1.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eb5eccb96a2315de3539fbdafc7a1cf8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9fc18b0c4078ed24d9d35a80744550b9c58cb48a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a2eef95152116c5fe91674a3827f084261df83ff6a18a25707bdbba7d7e95e53
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bad17eaeabe9b7024e683c6ecc1c55e885bad0601ab304de4d5ecc5a631cfca27f3374531848efe506abc1698f719a838ba1d75c26c4fa9d3e1d2b99851e491c
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.font</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>13.3.
|
|
7
|
-
<release>13.3.
|
|
6
|
+
<latest>13.3.1</latest>
|
|
7
|
+
<release>13.3.1</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>13.3.
|
|
9
|
+
<version>13.3.1</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20250502214648</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9ba2af880d4790bcccdae3bb676e35c6
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e83cfc06cb24b29b09be58f9caa0e26876ba824d
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
92854b3cb2d9c85e219e73a361349e2f14412159aa34d1dc281ec996cde9e2a4
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7dfea10723592da7cf13ae86a670e87cbe6ca1611c65c2039caaa83e135beaf100efd6d626a656229f4e5e50632f962945f959a1e2fad7e5278686c2d2e6ef77
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-font",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.1",
|
|
4
4
|
"description": "Load fonts at runtime and use them in React Native components.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"expo": "*",
|
|
59
59
|
"react": "*"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "5c98e5ee7c577209319bf91f515e65e256641d9c"
|
|
62
62
|
}
|
package/src/memory.ts
CHANGED
|
@@ -18,6 +18,14 @@ export function isLoadedNative(fontFamily: string): boolean {
|
|
|
18
18
|
return true;
|
|
19
19
|
} else {
|
|
20
20
|
const loadedNativeFonts: string[] = ExpoFontLoader.getLoadedFonts();
|
|
21
|
+
|
|
22
|
+
// NOTE(brentvatne): Bail out here if there are no loaded fonts. This
|
|
23
|
+
// is functionally equivalent to the behavior below if the returned array
|
|
24
|
+
// is empty, but this handles improper mocking of `getLoadedFonts`.
|
|
25
|
+
if (!loadedNativeFonts?.length) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
|
|
21
29
|
loadedNativeFonts.forEach((font) => {
|
|
22
30
|
cache[font] = true;
|
|
23
31
|
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
39892a89e869963c9c3c22db1e9ac015
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0e565e048cfaf33c73a402d9213aaea96861f038
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
cc4d40a8195d427839a47a13e22301e42b762f9fb08c7e2cd832a4c8e678af0d
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6306658311812a6a75c4f3151bb8af83e40c13e8600ac1680b6966f491c4d7a34d9850731bac24174ca1b3637aed6b08907d560ac324797c79b4ba9ce44d64fa
|
package/local-maven-repo/host/exp/exponent/expo.modules.font/13.3.0/expo.modules.font-13.3.0.pom.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
62c0479898237a499ab045cce88b083f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f270178adc59537695ef0a229319fc5259306318
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
05fedee066cf10e3e67d493f121429e5bf8fa14cbdf0ac657155292fe1fc544a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f9b0c840091a30da5b1ede1661128fb1160defbcb7cb6d1ee51e1cdd4eaf647e5152d441ef5ce425f126875da53a8907e30177c117290bb2ccb388434d5308dc
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|