expo-font 13.0.4 → 13.1.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 +21 -3
- package/android/build.gradle +6 -10
- package/build/ExpoFontLoader.d.ts +2 -2
- package/build/ExpoFontLoader.d.ts.map +1 -1
- package/build/ExpoFontLoader.js +10 -1
- package/build/ExpoFontLoader.js.map +1 -1
- package/build/index.server.d.ts +3 -0
- package/build/index.server.d.ts.map +1 -0
- package/build/index.server.js +5 -0
- package/build/index.server.js.map +1 -0
- package/ios/ExpoFont.podspec +1 -1
- package/jest-rsc.config.js +1 -0
- package/package.json +15 -4
- package/src/ExpoFontLoader.ts +12 -1
- package/src/index.server.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,17 +10,35 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
-
## 13.0
|
|
13
|
+
## 13.1.0 — 2025-04-04
|
|
14
|
+
|
|
15
|
+
### 🛠 Breaking changes
|
|
16
|
+
|
|
17
|
+
- Bump minimum macOS version to 11.0. ([#34980](https://github.com/expo/expo/pull/34980) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
18
|
+
|
|
19
|
+
### 🎉 New features
|
|
20
|
+
|
|
21
|
+
- Support loading expo-font in a `react-server` environment. ([#34736](https://github.com/expo/expo/pull/34736) by [@EvanBacon](https://github.com/EvanBacon))
|
|
22
|
+
|
|
23
|
+
### 🐛 Bug fixes
|
|
24
|
+
|
|
25
|
+
- Add missing export specifier. ([#34839](https://github.com/expo/expo/pull/34839) by [@EvanBacon](https://github.com/EvanBacon))
|
|
26
|
+
|
|
27
|
+
### 💡 Others
|
|
28
|
+
|
|
29
|
+
- [Android] Started using expo modules gradle plugin. ([#34176](https://github.com/expo/expo/pull/34176) by [@lukmccall](https://github.com/lukmccall))
|
|
30
|
+
|
|
31
|
+
## 13.0.4 - 2025-02-19
|
|
14
32
|
|
|
15
33
|
_This version does not introduce any user-facing changes._
|
|
16
34
|
|
|
17
|
-
## 13.0.3
|
|
35
|
+
## 13.0.3 - 2025-01-10
|
|
18
36
|
|
|
19
37
|
### 🐛 Bug fixes
|
|
20
38
|
|
|
21
39
|
- [ios] Fix crash when writing to fontFamilyAliases ([#34044](https://github.com/expo/expo/pull/34044) by [@techied](https://github.com/techied))
|
|
22
40
|
|
|
23
|
-
## 13.0.2
|
|
41
|
+
## 13.0.2 - 2024-12-19
|
|
24
42
|
|
|
25
43
|
### 🐛 Bug fixes
|
|
26
44
|
|
package/android/build.gradle
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
plugins {
|
|
2
|
+
id 'com.android.library'
|
|
3
|
+
id 'expo-module-gradle-plugin'
|
|
4
|
+
}
|
|
2
5
|
|
|
3
6
|
group = 'host.exp.exponent'
|
|
4
|
-
version = '13.0
|
|
5
|
-
|
|
6
|
-
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
|
-
apply from: expoModulesCorePlugin
|
|
8
|
-
applyKotlinExpoModulesCorePlugin()
|
|
9
|
-
useCoreDependencies()
|
|
10
|
-
useDefaultAndroidSdkVersions()
|
|
11
|
-
useExpoPublishing()
|
|
7
|
+
version = '13.1.0'
|
|
12
8
|
|
|
13
9
|
android {
|
|
14
10
|
namespace "expo.modules.font"
|
|
15
11
|
defaultConfig {
|
|
16
12
|
versionCode 29
|
|
17
|
-
versionName "13.0
|
|
13
|
+
versionName "13.1.0"
|
|
18
14
|
}
|
|
19
15
|
}
|
|
20
16
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const m: any;
|
|
2
|
+
export default m;
|
|
3
3
|
//# sourceMappingURL=ExpoFontLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoFontLoader.d.ts","sourceRoot":"","sources":["../src/ExpoFontLoader.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ExpoFontLoader.d.ts","sourceRoot":"","sources":["../src/ExpoFontLoader.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,CAAC,KASoC,CAAC;AAC5C,eAAe,CAAC,CAAC"}
|
package/build/ExpoFontLoader.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
import { requireNativeModule } from 'expo-modules-core';
|
|
2
|
-
|
|
2
|
+
const m = typeof window === 'undefined'
|
|
3
|
+
? // React server mock
|
|
4
|
+
{
|
|
5
|
+
getLoadedFonts() {
|
|
6
|
+
return [];
|
|
7
|
+
},
|
|
8
|
+
loadAsync() { },
|
|
9
|
+
}
|
|
10
|
+
: requireNativeModule('ExpoFontLoader');
|
|
11
|
+
export default m;
|
|
3
12
|
//# sourceMappingURL=ExpoFontLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoFontLoader.js","sourceRoot":"","sources":["../src/ExpoFontLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ExpoFontLoader.js","sourceRoot":"","sources":["../src/ExpoFontLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,GACL,OAAO,MAAM,KAAK,WAAW;IAC3B,CAAC,CAAC,oBAAoB;QACpB;YACE,cAAc;gBACZ,OAAO,EAAE,CAAC;YACZ,CAAC;YACD,SAAS,KAAI,CAAC;SACf;IACH,CAAC,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAC5C,eAAe,CAAC,CAAC","sourcesContent":["import { requireNativeModule } from 'expo-modules-core';\n\nconst m =\n typeof window === 'undefined'\n ? // React server mock\n {\n getLoadedFonts() {\n return [];\n },\n loadAsync() {},\n }\n : requireNativeModule('ExpoFontLoader');\nexport default m;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../src/index.server.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,wBAAgB,QAAQ,YAEvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.server.js","sourceRoot":"","sources":["../src/index.server.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AAEvB,MAAM,UAAU,QAAQ;IACtB,OAAO,EAAE,CAAC;AACZ,CAAC","sourcesContent":["export * from './Font';\n\nexport function useFonts() {\n return [];\n}\n"]}
|
package/ios/ExpoFont.podspec
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('jest-expo/rsc/jest-preset');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-font",
|
|
3
|
-
"version": "13.0
|
|
3
|
+
"version": "13.1.0",
|
|
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",
|
|
@@ -10,10 +10,21 @@
|
|
|
10
10
|
"clean": "expo-module clean",
|
|
11
11
|
"lint": "expo-module lint",
|
|
12
12
|
"test": "expo-module test",
|
|
13
|
+
"test:rsc": "jest --config jest-rsc.config.js",
|
|
13
14
|
"prepare": "expo-module prepare",
|
|
14
15
|
"prepublishOnly": "expo-module prepublishOnly",
|
|
15
16
|
"expo-module": "expo-module"
|
|
16
17
|
},
|
|
18
|
+
"exports": {
|
|
19
|
+
"./app.plugin": "./app.plugin.js",
|
|
20
|
+
"./app.plugin.js": "./app.plugin.js",
|
|
21
|
+
"./package.json": "./package.json",
|
|
22
|
+
".": {
|
|
23
|
+
"react-server": "./build/index.server.js",
|
|
24
|
+
"default": "./build/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./build/server": "./build/server.js"
|
|
27
|
+
},
|
|
17
28
|
"keywords": [
|
|
18
29
|
"react-native",
|
|
19
30
|
"expo",
|
|
@@ -37,12 +48,12 @@
|
|
|
37
48
|
"fontfaceobserver": "^2.1.0"
|
|
38
49
|
},
|
|
39
50
|
"devDependencies": {
|
|
40
|
-
"@testing-library/react-native": "^
|
|
41
|
-
"expo-module-scripts": "^4.0
|
|
51
|
+
"@testing-library/react-native": "^13.1.0",
|
|
52
|
+
"expo-module-scripts": "^4.1.0"
|
|
42
53
|
},
|
|
43
54
|
"peerDependencies": {
|
|
44
55
|
"expo": "*",
|
|
45
56
|
"react": "*"
|
|
46
57
|
},
|
|
47
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "68b8233002dc678934ba40cbade7fbc80e71aeff"
|
|
48
59
|
}
|
package/src/ExpoFontLoader.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
import { requireNativeModule } from 'expo-modules-core';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
const m =
|
|
4
|
+
typeof window === 'undefined'
|
|
5
|
+
? // React server mock
|
|
6
|
+
{
|
|
7
|
+
getLoadedFonts() {
|
|
8
|
+
return [];
|
|
9
|
+
},
|
|
10
|
+
loadAsync() {},
|
|
11
|
+
}
|
|
12
|
+
: requireNativeModule('ExpoFontLoader');
|
|
13
|
+
export default m;
|