Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(metro-config): upgrade glob@7 to glob@10 #29929

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

byCedric
Copy link
Member

Why

Split off from #29808, specific to @expo/metro-config

How

  • Upgraded glob@7 to glob@10
  • Updated globSync import to import { globSync } from 'glob'

Test Plan

See if CI and tests passes

Checklist

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Jun 21, 2024
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jun 21, 2024
@byCedric byCedric force-pushed the @bycedric/metro-config/upgrade-to-glob-10 branch from d2dd19b to 06126c5 Compare June 24, 2024 09:14
@expo-bot expo-bot added bot: suggestions ExpoBot has some suggestions and removed bot: passed checks ExpoBot has nothing to complain about labels Jun 24, 2024
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jun 24, 2024
@byCedric byCedric merged commit eccd9b5 into main Jun 24, 2024
30 checks passed
@byCedric byCedric deleted the @bycedric/metro-config/upgrade-to-glob-10 branch June 24, 2024 22:52
byCedric added a commit that referenced this pull request Jul 11, 2024
~~Blocked by #29929

# Why

Split off from #29808, specific to `@expo/config-plugins`

# How

- Upgraded `glob@7` to `glob@10`
- Added alphabetical sorting of glob results in `ios/Paths.ts`
- Note, we implicitly depend on this alphabetical sorting, while glob
returns the order of the file system (might vary). Probably need to be
more explicit in this.
- Unified `import { globSync } from 'glob'` instead of `import { sync as
globsync } from 'glob'`

# Test Plan

See if CI and tests passes

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
byCedric added a commit that referenced this pull request Jul 11, 2024
~~Blocked by #29929
~~Blocked by #29894
~~Blocked by #29985

# Why

- Split off from #29808, specific to `@expo/cli`
- Stacked on #29894 -- there are changes in the included types in this
PR

# How

- Upgraded `glob@7` to `glob@10`
- Added tests for `glob` utilities
- Added tests for timeout glob in `TypeScriptProjectPrerequisite`
- Reimplemented glob utilities
- Reimplemented timeout glob in `TypeScriptProjectPrerequisite`
- Added missing `@types/glob` to all packages still using `glob@7`

# Test Plan

See if CI and tests passes

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
alanjhughes pushed a commit that referenced this pull request Jul 17, 2024
~~Blocked by #29929

# Why

Split off from #29808, specific to `@expo/config-plugins`

# How

- Upgraded `glob@7` to `glob@10`
- Added alphabetical sorting of glob results in `ios/Paths.ts`
- Note, we implicitly depend on this alphabetical sorting, while glob
returns the order of the file system (might vary). Probably need to be
more explicit in this.
- Unified `import { globSync } from 'glob'` instead of `import { sync as
globsync } from 'glob'`

# Test Plan

See if CI and tests passes

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
alanjhughes pushed a commit that referenced this pull request Jul 17, 2024
~~Blocked by #29929
~~Blocked by #29894
~~Blocked by #29985

# Why

- Split off from #29808, specific to `@expo/cli`
- Stacked on #29894 -- there are changes in the included types in this
PR

# How

- Upgraded `glob@7` to `glob@10`
- Added tests for `glob` utilities
- Added tests for timeout glob in `TypeScriptProjectPrerequisite`
- Reimplemented glob utilities
- Reimplemented timeout glob in `TypeScriptProjectPrerequisite`
- Added missing `@types/glob` to all packages still using `glob@7`

# Test Plan

See if CI and tests passes

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint compatible bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants