Skip to content

Commit

Permalink
release: release version v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed May 13, 2023
1 parent dff7047 commit 413ae9a
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 6 deletions.
37 changes: 37 additions & 0 deletions docs/CHANGELOG.v2.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# Changelog

## [2.0.0](https://github.com/zthxxx/react-dev-inspector/compare/v1.9.0...v2.0.0) (2023-09-04)

### Features

Refactor project with monorepo packages.

- Supports most frameworks without requiring the setting of additional Babel plugins, includes `vite4` `nextjs` `rspack`

Inspector Component:

- Add controlled mode for `Inspector` component,
make it can controlled by props with `active` `onActiveChange`
and could disable hotkeys by set `null` to `keys` props

- Change default keyboard shortcuts on Windows/Linux to `Ctrl + Shift + Alt + C`. <br/>
(still keep `Ctrl + Shift + Command + C` as default on macOS)
- Add export of `defaultHotkeys` for your information.
- Add `onInspectElement` `disable` props, mark `disableLaunchEditor` as deprecated.
- Make automatically **disable** the `Inspector` component in **production** mode by default.
- The Umi3/Umi4 plugin no longer adds babel-plugin in **production** mode by default.

### Bug Fixes

- Fix missing cleanup during unmount phase in `useEffect` of `Inspector` component.


### Chore

- Remove import with `node-protocol` (`node:`) in packages, for more compatibility with lower Node.js versions.
- Add compatibility with some plugins path to `react-dev-inspector@v1`

### Breaking Changes

See breaking changes in [2.0.0-beta.1](#200-beta1-2023-07-06)


---


## [2.0.0-beta.3](https://github.com/zthxxx/react-dev-inspector/compare/v2.0.0-beta.2...v2.0.0-beta.3) (2023-09-03)
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-dev-inspector/babel-plugin",
"version": "2.0.0-beta.3",
"version": "2.0.0",
"sideEffects": false,
"description": "babel plugin for react-dev-inspector to generate source code position info into jsx properties",
"main": "lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/inspector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-dev-inspector",
"version": "2.0.0-beta.3",
"version": "2.0.0",
"sideEffects": false,
"description": "dev-tool for inspect react components and jump to local IDE for component code.",
"main": "lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-dev-inspector/middleware",
"version": "2.0.0-beta.3",
"version": "2.0.0",
"sideEffects": false,
"description": "express middleware for react-dev-inspector to launch local IDE",
"main": "lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/umi3-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-dev-inspector/umi3-plugin",
"version": "2.0.0-beta.3",
"version": "2.0.0",
"sideEffects": false,
"description": "umi3 plugin for react-dev-inspector to add babel plugin and server middleware",
"main": "lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/umi4-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-dev-inspector/umi4-plugin",
"version": "2.0.0-beta.3",
"version": "2.0.0",
"sideEffects": false,
"description": "umi4 plugin for react-dev-inspector to add babel plugin and server middleware",
"main": "lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-dev-inspector/vite-plugin",
"version": "2.0.0-beta.3",
"version": "2.0.0",
"sideEffects": false,
"description": "vite plugin for react-dev-inspector to add server middleware. support vite2/vite3/vite4",
"main": "lib",
Expand Down

1 comment on commit 413ae9a

@vercel
Copy link

@vercel vercel bot commented on 413ae9a Sep 3, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

react-dev-inspector – ./

react-dev-inspector-git-dev-zthxxx.vercel.app
react-dev-inspector-zthxxx.vercel.app
react-dev-inspector.vercel.app

Please sign in to comment.