expo-updates 1.0.0-canary-20250219-4a5dade → 1.0.0-canary-20250221-ef26fed

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
@@ -30,6 +30,7 @@
30
30
  - Fixed incorrect error log on Android. ([#34785](https://github.com/expo/expo/pull/34785) by [@kudo](https://github.com/kudo))
31
31
  - [Android] Started using expo modules gradle plugin. ([#34806](https://github.com/expo/expo/pull/34806) by [@lukmccall](https://github.com/lukmccall))
32
32
  - Add update id headers to asset requests ([#34453](https://github.com/expo/expo/pull/34453) by [@gabrieldonadel](https://github.com/gabrieldonadel))
33
+ - Drop `fs-extra` in favor of `fs`. ([#35036](https://github.com/expo/expo/pull/35036) by [@kitten](https://github.com/kitten))
33
34
 
34
35
  ## 0.26.10 - 2024-12-05
35
36
 
@@ -7,7 +7,7 @@ exports.syncConfigurationToNativeAsync = void 0;
7
7
  const config_1 = require("@expo/config");
8
8
  const config_plugins_1 = require("@expo/config-plugins");
9
9
  const plist_1 = __importDefault(require("@expo/plist"));
10
- const fs_extra_1 = __importDefault(require("fs-extra"));
10
+ const fs_1 = __importDefault(require("fs"));
11
11
  const path_1 = __importDefault(require("path"));
12
12
  /**
13
13
  * Synchronize updates configuration to native files. This needs to do essentially the same thing as `withUpdates`
@@ -66,8 +66,8 @@ async function writeExpoPlistAsync(projectDir, expoPlist) {
66
66
  await writePlistAsync(expoPlistPath, expoPlist);
67
67
  }
68
68
  async function readPlistAsync(plistPath) {
69
- if (await fs_extra_1.default.pathExists(plistPath)) {
70
- const expoPlistContent = await fs_extra_1.default.readFile(plistPath, 'utf8');
69
+ if (fs_1.default.existsSync(plistPath)) {
70
+ const expoPlistContent = await fs_1.default.promises.readFile(plistPath, 'utf8');
71
71
  try {
72
72
  return plist_1.default.parse(expoPlistContent);
73
73
  }
@@ -82,6 +82,6 @@ async function readPlistAsync(plistPath) {
82
82
  }
83
83
  async function writePlistAsync(plistPath, plistObject) {
84
84
  const contents = plist_1.default.build(plistObject);
85
- await fs_extra_1.default.mkdirp(path_1.default.dirname(plistPath));
86
- await fs_extra_1.default.writeFile(plistPath, contents);
85
+ await fs_1.default.promises.mkdir(path_1.default.dirname(plistPath), { recursive: true });
86
+ await fs_1.default.promises.writeFile(plistPath, contents, 'utf8');
87
87
  }
@@ -1,7 +1,7 @@
1
1
  import { getConfig } from '@expo/config';
2
2
  import { XML, AndroidConfig, IOSConfig } from '@expo/config-plugins';
3
3
  import plist from '@expo/plist';
4
- import fs from 'fs-extra';
4
+ import fs from 'fs';
5
5
  import path from 'path';
6
6
 
7
7
  import { Workflow } from '../../utils/build/workflow';
@@ -111,8 +111,8 @@ async function writeExpoPlistAsync(
111
111
  }
112
112
 
113
113
  async function readPlistAsync(plistPath: string): Promise<object | null> {
114
- if (await fs.pathExists(plistPath)) {
115
- const expoPlistContent = await fs.readFile(plistPath, 'utf8');
114
+ if (fs.existsSync(plistPath)) {
115
+ const expoPlistContent = await fs.promises.readFile(plistPath, 'utf8');
116
116
  try {
117
117
  return plist.parse(expoPlistContent);
118
118
  } catch (err: any) {
@@ -129,6 +129,6 @@ async function writePlistAsync(
129
129
  plistObject: IOSConfig.ExpoPlist | IOSConfig.InfoPlist
130
130
  ): Promise<void> {
131
131
  const contents = plist.build(plistObject);
132
- await fs.mkdirp(path.dirname(plistPath));
133
- await fs.writeFile(plistPath, contents);
132
+ await fs.promises.mkdir(path.dirname(plistPath), { recursive: true });
133
+ await fs.promises.writeFile(plistPath, contents, 'utf8');
134
134
  }
@@ -203,7 +203,7 @@ public final class UpdatesConfig: NSObject {
203
203
  return try UpdatesConfig.config(fromDictionary: config, configOverride: UpdatesConfigOverride.load())
204
204
  }
205
205
 
206
- private static func config(
206
+ internal static func config(
207
207
  fromDictionary config: [String: Any],
208
208
  configOverride: UpdatesConfigOverride?
209
209
  ) throws -> UpdatesConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-updates",
3
- "version": "1.0.0-canary-20250219-4a5dade",
3
+ "version": "1.0.0-canary-20250221-ef26fed",
4
4
  "description": "Fetches and manages remotely-hosted assets and updates to your app's JS bundle.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -39,15 +39,15 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@expo/code-signing-certificates": "0.0.5",
42
- "@expo/config": "11.0.0-canary-20250219-4a5dade",
43
- "@expo/config-plugins": "9.0.16-canary-20250219-4a5dade",
42
+ "@expo/config": "11.0.0-canary-20250221-ef26fed",
43
+ "@expo/config-plugins": "9.0.16-canary-20250221-ef26fed",
44
44
  "@expo/spawn-async": "^1.7.2",
45
45
  "arg": "4.1.0",
46
46
  "chalk": "^4.1.2",
47
- "expo-eas-client": "0.13.3-canary-20250219-4a5dade",
48
- "expo-manifests": "0.15.7-canary-20250219-4a5dade",
49
- "expo-structured-headers": "4.0.1-canary-20250219-4a5dade",
50
- "expo-updates-interface": "1.0.1-canary-20250219-4a5dade",
47
+ "expo-eas-client": "0.13.3-canary-20250221-ef26fed",
48
+ "expo-manifests": "0.15.7-canary-20250221-ef26fed",
49
+ "expo-structured-headers": "4.0.1-canary-20250221-ef26fed",
50
+ "expo-updates-interface": "1.0.1-canary-20250221-ef26fed",
51
51
  "fast-glob": "^3.3.2",
52
52
  "fbemitter": "^3.0.0",
53
53
  "ignore": "^5.3.1",
@@ -57,16 +57,14 @@
57
57
  "@types/jest": "^29.2.1",
58
58
  "@types/node": "^18.19.34",
59
59
  "@types/node-forge": "^1.0.0",
60
- "expo-module-scripts": "4.0.5-canary-20250219-4a5dade",
60
+ "expo-module-scripts": "4.0.5-canary-20250221-ef26fed",
61
61
  "express": "^4.21.1",
62
62
  "form-data": "^4.0.0",
63
- "fs-extra": "~8.1.0",
64
63
  "memfs": "^3.2.0",
65
64
  "xstate": "^4.37.2"
66
65
  },
67
66
  "peerDependencies": {
68
- "expo": "53.0.0-canary-20250219-4a5dade",
67
+ "expo": "53.0.0-canary-20250221-ef26fed",
69
68
  "react": "*"
70
- },
71
- "gitHead": "4a5daded61d3d8b9d501059039ac74c09c25675b"
69
+ }
72
70
  }
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.validateWorkflow = exports.resolveWorkflowAsync = void 0;
7
7
  const config_plugins_1 = require("@expo/config-plugins");
8
- const fs_extra_1 = __importDefault(require("fs-extra"));
8
+ const fs_1 = __importDefault(require("fs"));
9
9
  const path_1 = __importDefault(require("path"));
10
10
  const vcs_1 = __importDefault(require("./vcs"));
11
11
  async function resolveWorkflowAsync(projectDir, platform) {
@@ -25,7 +25,7 @@ async function resolveWorkflowAsync(projectDir, platform) {
25
25
  }
26
26
  const vcsRootPath = path_1.default.normalize(await vcsClient.getRootPathAsync());
27
27
  for (const marker of platformWorkflowMarkers) {
28
- if ((await fs_extra_1.default.pathExists(marker)) &&
28
+ if (fs_1.default.existsSync(marker) &&
29
29
  !(await vcsClient.isFileIgnoredAsync(path_1.default.relative(vcsRootPath, marker)))) {
30
30
  return 'generic';
31
31
  }
@@ -1,5 +1,5 @@
1
1
  import { AndroidConfig, IOSConfig } from '@expo/config-plugins';
2
- import fs from 'fs-extra';
2
+ import fs from 'fs';
3
3
  import path from 'path';
4
4
 
5
5
  import getVCSClientAsync from './vcs';
@@ -28,7 +28,7 @@ export async function resolveWorkflowAsync(
28
28
  const vcsRootPath = path.normalize(await vcsClient.getRootPathAsync());
29
29
  for (const marker of platformWorkflowMarkers) {
30
30
  if (
31
- (await fs.pathExists(marker)) &&
31
+ fs.existsSync(marker) &&
32
32
  !(await vcsClient.isFileIgnoredAsync(path.relative(vcsRootPath, marker)))
33
33
  ) {
34
34
  return 'generic';