@ankhorage/expo-runtime 3.0.8 → 3.0.10

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,5 +1,17 @@
1
1
  # @ankhorage/expo-runtime
2
2
 
3
+ ## 3.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - b94b350: Use the Web icon-font provider during Expo static server rendering so browser hydration starts from matching font registrations.
8
+
9
+ ## 3.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - 15df28a: Prefer the browser icon-font provider when Expo Web matches both browser and React Native package conditions.
14
+
3
15
  ## 3.0.8
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/expo-runtime",
3
3
  "type": "module",
4
- "version": "3.0.8",
4
+ "version": "3.0.10",
5
5
  "description": "Declarative runtime integration for Expo apps: maps app capabilities to permissions, packages, config plugins, providers, and adapters",
6
6
  "homepage": "https://github.com/ankhorage/expo-runtime#readme",
7
7
  "bugs": {
@@ -65,9 +65,10 @@
65
65
  "default": "./dist/platform.js"
66
66
  },
67
67
  "./icon-fonts": {
68
- "react-native": "./src/ExpoZoraIconFontProvider.tsx",
69
68
  "browser": "./src/ExpoZoraIconFontProvider.web.tsx",
69
+ "react-native": "./src/ExpoZoraIconFontProvider.tsx",
70
70
  "types": "./src/ExpoZoraIconFontProvider.tsx",
71
+ "node": "./src/ExpoZoraIconFontProvider.web.tsx",
71
72
  "import": "./dist/ExpoZoraIconFontProvider.js",
72
73
  "default": "./dist/ExpoZoraIconFontProvider.js"
73
74
  },
@@ -4,13 +4,24 @@ import { ExpoZoraIconFontProvider } from './ExpoZoraIconFontProvider';
4
4
 
5
5
  test('exports the icon font boundary through its focused subpath', async () => {
6
6
  const packageJson = (await Bun.file(new URL('../package.json', import.meta.url)).json()) as {
7
- readonly exports: Readonly<Record<string, unknown>>;
7
+ readonly exports: Readonly<Record<string, Readonly<Record<string, string>>>>;
8
8
  };
9
9
 
10
- expect(packageJson.exports['./icon-fonts']).toEqual({
11
- 'react-native': './src/ExpoZoraIconFontProvider.tsx',
10
+ const iconFontExport = packageJson.exports['./icon-fonts'];
11
+
12
+ expect(Object.keys(iconFontExport)).toEqual([
13
+ 'browser',
14
+ 'react-native',
15
+ 'types',
16
+ 'node',
17
+ 'import',
18
+ 'default',
19
+ ]);
20
+ expect(iconFontExport).toEqual({
12
21
  browser: './src/ExpoZoraIconFontProvider.web.tsx',
22
+ 'react-native': './src/ExpoZoraIconFontProvider.tsx',
13
23
  types: './src/ExpoZoraIconFontProvider.tsx',
24
+ node: './src/ExpoZoraIconFontProvider.web.tsx',
14
25
  import: './dist/ExpoZoraIconFontProvider.js',
15
26
  default: './dist/ExpoZoraIconFontProvider.js',
16
27
  });