Skip to content

Commit

Permalink
Updated package versins and README
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Apr 12, 2021
1 parent 1adee6f commit 237f3c9
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/react-devtools-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-devtools-core",
"version": "4.11.0",
"version": "4.12.0",
"description": "Use react-devtools outside of the browser",
"license": "MIT",
"main": "./dist/backend.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-devtools-extensions/chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"manifest_version": 2,
"name": "React Developer Tools",
"description": "Adds React debugging tools to the Chrome Developer Tools.",
"version": "4.11.0",
"version_name": "4.11.0",
"version": "4.12.0",
"version_name": "4.12.0",

"minimum_chrome_version": "60",

Expand Down
4 changes: 2 additions & 2 deletions packages/react-devtools-extensions/edge/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"manifest_version": 2,
"name": "React Developer Tools",
"description": "Adds React debugging tools to the Microsoft Edge Developer Tools.",
"version": "4.11.0",
"version_name": "4.11.0",
"version": "4.12.0",
"version_name": "4.12.0",

"minimum_chrome_version": "60",

Expand Down
2 changes: 1 addition & 1 deletion packages/react-devtools-extensions/firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "React Developer Tools",
"description": "Adds React debugging tools to the Firefox Developer Tools.",
"version": "4.11.0",
"version": "4.12.0",

"applications": {
"gecko": {
Expand Down
34 changes: 34 additions & 0 deletions packages/react-devtools-inline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,40 @@ iframe.onload = () => {
};
```

### Advanced integration with custom "wall"

Below is an example of an advanced integration with a website like [Replay.io](https://replay.io/).

```js
import {
createBridge,
createStore,
initialize as createDevTools,
} from "react-devtools-inline/frontend";

// Custom Wall implementation enables serializing data
// using an API other than window.postMessage()
// For example...
const wall = {
emit() {},
listen(listener) {
wall._listener = listener;
},
async send(event, payload) {
const response = await fetch(...).json();
wall._listener(response);
},
};

// Create a Bridge and Store that use the custom Wall.
const bridge = createBridge(target, wall);
const store = createStore(bridge);
const DevTools = createDevTools(target, { bridge, store });

// Render DevTools with it.
<DevTools {...otherProps} />;
```

## Local development
You can also build and test this package from source.

Expand Down
2 changes: 1 addition & 1 deletion packages/react-devtools-inline/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-devtools-inline",
"version": "4.11.1",
"version": "4.12.0",
"description": "Embed react-devtools within a website",
"license": "MIT",
"main": "./dist/backend.js",
Expand Down
7 changes: 6 additions & 1 deletion packages/react-devtools/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@
<!-- Upcoming changes go here -->
</details>

## 4.12.0 (April 12, 2021)
Although this release is being made for all NPM packages, only the `react-devtools-inline` package contains changes.
#### Feature
* Added `createBridge` and `createStore` exports to the `react-devtools-inline/frontend` entrypoint to support advanced use cases ([bvaughn](https://github.com/bvaughn) in [#21032](https://github.com/facebook/react/pull/21032))

## 4.11.1 (April 11, 2021)
#### Bugfix
* Fixed broken import in `react-devtools-inline` for feature flags file ([bvaughn](https://github.com/bvaughn) in [#21235](https://github.com/facebook/react/issues/21235))
* Fixed broken import in `react-devtools-inline` for feature flags file ([bvaughn](https://github.com/bvaughn) in [#21237](https://github.com/facebook/react/pull/21237))

## 4.11.0 (April 9, 2021)
#### Bugfix
Expand Down
4 changes: 2 additions & 2 deletions packages/react-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-devtools",
"version": "4.11.0",
"version": "4.12.0",
"description": "Use react-devtools outside of the browser",
"license": "MIT",
"repository": {
Expand All @@ -27,7 +27,7 @@
"electron": "^11.1.0",
"ip": "^1.1.4",
"minimist": "^1.2.3",
"react-devtools-core": "4.11.0",
"react-devtools-core": "4.12.0",
"update-notifier": "^2.1.0"
}
}

0 comments on commit 237f3c9

Please sign in to comment.