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

[dev-menu] Update JS inspector URL #25881

Merged
merged 6 commits into from Dec 12, 2023
Merged

Conversation

gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Dec 12, 2023

Why

Closes ENG-10881

How

Adds back createJsInspectorMiddleware from #25671 to the CLI and update JS inspector URL on Expo GO and expo-dev-menu to use /_expo/debugger

Test Plan

Run Expo Go unversioned and dev-client through bare expo and test opening the debugger through the dev menu on Android and iOS

Checklist

Copy link

linear bot commented Dec 12, 2023

@gabrieldonadel gabrieldonadel changed the title @gabrieldonadel/fix inspector [dev-menu] Update JS inspector URL Dec 12, 2023
@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Dec 12, 2023
# Why

Stacked on top of #25881
Correction of #25671

This was in place for the dev menu, and I deleted it a bit too early in
#25671.

We can only delete this once we fully swapped over to
`@react-native/dev-middleware`, which is currently only used for the
inspector proxy infrastructure.

# How

- Added back `createJsInspectorMiddleware` from #25671

# Test Plan

- `$ bun create expo ./test-devmenu-debugger --template blank@50`
- `$ cd ./test-devmenu-debugger`
- `$ bun expo install expo-dev-client`
- `$ bun expo start`
- Press `m` in terminal
- Press "Inspect JS" in the menu within the app

# 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).
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Dec 12, 2023
Copy link
Member

@brentvatne brentvatne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's merge rather than waiting for ci, since we don't want to block release for longer than necessary here and the changes look pretty scoped and well understood

@gabrieldonadel gabrieldonadel merged commit 5864b50 into main Dec 12, 2023
15 checks passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/fix-inspector branch December 12, 2023 20:14
@brentvatne brentvatne added the published Changes from the PR have been published to npm label Dec 12, 2023
onizam95 pushed a commit to onizam95/expo-av-drm that referenced this pull request Jan 15, 2024
# Why

Closes ENG-10881

# How

Adds back `createJsInspectorMiddleware` from expo#25671 to the CLI and
update JS inspector URL on Expo GO and expo-dev-menu to use
`/_expo/debugger`

# Test Plan

Run Expo Go unversioned and dev-client through bare expo and test
opening the debugger through the dev menu on Android and iOS

# 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).

---------

Co-authored-by: Cedric van Putten <me@bycedric.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants