expo-asset 10.0.8 → 10.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
@@ -10,6 +10,18 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 10.0.10 — 2024-06-20
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fixed `PlatformUtils.ts` to have the correct export placeholders for react-native-web ([#29791](https://github.com/expo/expo/pull/29791) by [@Bram-dc](https://github.com/Bram-dc))
18
+
19
+ ## 10.0.9 — 2024-06-13
20
+
21
+ ### 💡 Others
22
+
23
+ - Removed @react-native/assets-registry dependency. ([#29541](https://github.com/expo/expo/pull/29541) by [@kudo](https://github.com/kudo))
24
+
13
25
  ## 10.0.8 — 2024-06-06
14
26
 
15
27
  _This version does not introduce any user-facing changes._
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'expo.modules.asset'
4
- version = '10.0.8'
4
+ version = '10.0.10'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,6 +14,6 @@ android {
14
14
  namespace "expo.modules.asset"
15
15
  defaultConfig {
16
16
  versionCode 1
17
- versionName "10.0.8"
17
+ versionName "10.0.10"
18
18
  }
19
19
  }
@@ -1,5 +1,5 @@
1
- export declare const IS_ENV_WITH_UPDATES_ENABLED = false;
2
- export declare const manifestBaseUrl: null;
3
- export declare function getManifest(): {};
1
+ export declare const IS_ENV_WITH_LOCAL_ASSETS = false;
2
+ export declare function getLocalAssets(): Record<string, string>;
4
3
  export declare function getManifest2(): {};
4
+ export declare const manifestBaseUrl: null;
5
5
  //# sourceMappingURL=PlatformUtils.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformUtils.web.d.ts","sourceRoot":"","sources":["../src/PlatformUtils.web.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,QAAQ,CAAC;AAGjD,eAAO,MAAM,eAAe,MAAO,CAAC;AAEpC,wBAAgB,WAAW,OAE1B;AAED,wBAAgB,YAAY,OAE3B"}
1
+ {"version":3,"file":"PlatformUtils.web.d.ts","sourceRoot":"","sources":["../src/PlatformUtils.web.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAE9C,wBAAgB,cAAc,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEvD;AAED,wBAAgB,YAAY,OAE3B;AAGD,eAAO,MAAM,eAAe,MAAO,CAAC"}
@@ -1,10 +1,10 @@
1
- export const IS_ENV_WITH_UPDATES_ENABLED = false;
2
- // Compute manifest base URL if available
3
- export const manifestBaseUrl = null;
4
- export function getManifest() {
1
+ export const IS_ENV_WITH_LOCAL_ASSETS = false;
2
+ export function getLocalAssets() {
5
3
  return {};
6
4
  }
7
5
  export function getManifest2() {
8
6
  return {};
9
7
  }
8
+ // Compute manifest base URL if available
9
+ export const manifestBaseUrl = null;
10
10
  //# sourceMappingURL=PlatformUtils.web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformUtils.web.js","sourceRoot":"","sources":["../src/PlatformUtils.web.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAEjD,yCAAyC;AACzC,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AAEpC,MAAM,UAAU,WAAW;IACzB,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,EAAE,CAAC;AACZ,CAAC","sourcesContent":["export const IS_ENV_WITH_UPDATES_ENABLED = false;\n\n// Compute manifest base URL if available\nexport const manifestBaseUrl = null;\n\nexport function getManifest() {\n return {};\n}\n\nexport function getManifest2() {\n return {};\n}\n"]}
1
+ {"version":3,"file":"PlatformUtils.web.js","sourceRoot":"","sources":["../src/PlatformUtils.web.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC;AAE9C,MAAM,UAAU,cAAc;IAC5B,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,yCAAyC;AACzC,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC","sourcesContent":["export const IS_ENV_WITH_LOCAL_ASSETS = false;\n\nexport function getLocalAssets(): Record<string, string> {\n return {};\n}\n\nexport function getManifest2() {\n return {};\n}\n\n// Compute manifest base URL if available\nexport const manifestBaseUrl = null;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-asset",
3
- "version": "10.0.8",
3
+ "version": "10.0.10",
4
4
  "description": "An Expo universal module to download assets and pass them into other APIs",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -37,18 +37,16 @@
37
37
  "preset": "expo-module-scripts"
38
38
  },
39
39
  "dependencies": {
40
- "@react-native/assets-registry": "0.74.84",
41
40
  "expo-constants": "~16.0.0",
42
41
  "invariant": "^2.2.4",
43
42
  "md5-file": "^3.2.3"
44
43
  },
45
44
  "devDependencies": {
46
45
  "@testing-library/react-hooks": "^7.0.1",
47
- "@types/react-native__assets": "~1.0.0",
48
46
  "expo-module-scripts": "^3.0.0"
49
47
  },
50
48
  "peerDependencies": {
51
49
  "expo": "*"
52
50
  },
53
- "gitHead": "f424c7ea50d8787fa8d3354a33fe402160b63032"
51
+ "gitHead": "0d1a3567cb0fce9c54e1185654be88bd0c7842d4"
54
52
  }
@@ -1,12 +1,12 @@
1
- export const IS_ENV_WITH_UPDATES_ENABLED = false;
1
+ export const IS_ENV_WITH_LOCAL_ASSETS = false;
2
2
 
3
- // Compute manifest base URL if available
4
- export const manifestBaseUrl = null;
5
-
6
- export function getManifest() {
3
+ export function getLocalAssets(): Record<string, string> {
7
4
  return {};
8
5
  }
9
6
 
10
7
  export function getManifest2() {
11
8
  return {};
12
9
  }
10
+
11
+ // Compute manifest base URL if available
12
+ export const manifestBaseUrl = null;