Skip to content

Commit

Permalink
Move metro-inspector-proxy into dev-middleware
Browse files Browse the repository at this point in the history
Summary:
X-link: facebook/react-native#39045

## Context

RFC: Decoupling Flipper from React Native core: react-native-community/discussions-and-proposals#641

## Changes

- Relocates `metro-inspector-proxy` source from the Metro repo into the React Native repo as part of the `react-native/dev-middleware` package.
    - Drops the `runInspectorProxy` entry point.
- Attaches the Inspector Proxy to the `createDevMiddleware()` API as the new integration point for this functionality.
- Documents migrated endpoints + usage of `createDevMiddleware()` in README.

Changelog: [Internal]
Metro changelog: None (`metro-inspector-proxy` is now an internal component of `react-native`, covered in the [release notes for 0.78.1](https://github.com/facebook/metro/releases/tag/v0.78.1))

Reviewed By: motiz88, blakef

Differential Revision: D48066213

fbshipit-source-id: 3fbef5d881f6f451cb5955dcbbc362c53347437e
  • Loading branch information
huntie authored and facebook-github-bot committed Aug 18, 2023
1 parent 51c0e87 commit 15c993f
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 1,192 deletions.
41 changes: 0 additions & 41 deletions flow-typed/debug.js.flow

This file was deleted.

16 changes: 16 additions & 0 deletions flow-typed/npm/debug_v2.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/

// https://github.com/visionmedia/debug
// https://www.npmjs.com/package/debug

declare module 'debug' {
declare module.exports: (namespace: string) => (...Array<mixed>) => void;
}
7 changes: 0 additions & 7 deletions packages/metro-inspector-proxy/.npmignore

This file was deleted.

29 changes: 0 additions & 29 deletions packages/metro-inspector-proxy/package.json

This file was deleted.

Loading

0 comments on commit 15c993f

Please sign in to comment.