Repository: OneKeyHQ/app-monorepo
Pull request #7327: chore: update yarn.lock and package.json to remove unused dependencies
Author: login: limichange
Created: 2025-05-14T04:13:02Z | Merged: 2025-05-14T09:32:43Z

- Removed @types/redux-logger and redux-logger from package.json and yarn.lock to clean up unused dependencies.
- Updated @babel/runtime versions in yarn.lock for consistency and to ensure compatibility.

<img width="757" alt="Screenshot 2025-05-14 at 12 10 20" src="https://github.com/user-attachments/assets/577afbea-02e7-4fc8-a9d0-39993191b823" />
<img width="714" alt="Screenshot 2025-05-14 at 12 08 51" src="https://github.com/user-attachments/assets/193b32a6-51e2-4854-a5e4-99d37ec2f1db" />


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Chores**
	- Removed unused dependencies to streamline the application.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->


Diff:
diff --git a/packages/kit/package.json b/packages/kit/package.json
index c0892bfc383a..a6f3038d1f6f 100644
--- a/packages/kit/package.json
+++ b/packages/kit/package.json
@@ -5,7 +5,6 @@
   "main": "src/index.tsx",
   "dependencies": {
     "@onekeyhq/components": "*",
-    "@types/redux-logger": "^3.0.9",
     "@types/url-parse": "^1.4.8",
     "date-fns": "^2.29.3",
     "dequal": "^2.0.3",
@@ -17,8 +16,6 @@
     "react-async-hook": "^4.0.0",
     "react-freeze": "^1.0.3",
     "react-intl": "^6.6.8",
-    "react-redux": "^8.0.5",
-    "redux-logger": "^3.0.6",
     "redux-persist": "^6.0.0",
     "swr": "^2.1.5",
     "url-parse": "^1.5.10",
@@ -39,4 +36,4 @@
     "@types/socket.io-client": "^3.0.0",
     "folderslint": "^1.2.0"
   }
-}
+}
\ No newline at end of file
diff --git a/yarn.lock b/yarn.lock
index 0c6760694fcf..89b3904e1f2f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1973,7 +1973,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.18.6, @babel/runtime@npm:^7.20.0, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.4.5, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2":
+"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.18.6, @babel/runtime@npm:^7.20.0, @babel/runtime@npm:^7.21.0, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.4.5, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2":
   version: 7.23.6
   resolution: "@babel/runtime@npm:7.23.6"
   dependencies:
@@ -7228,7 +7228,6 @@ __metadata:
     "@types/d3-scale": "npm:^4.0.3"
     "@types/d3-shape": "npm:^3.1.1"
     "@types/mime": "npm:^3"
-    "@types/redux-logger": "npm:^3.0.9"
     "@types/socket.io-client": "npm:^3.0.0"
     "@types/url-parse": "npm:^1.4.8"
     date-fns: "npm:^2.29.3"
@@ -7242,8 +7241,6 @@ __metadata:
     react-async-hook: "npm:^4.0.0"
     react-freeze: "npm:^1.0.3"
     react-intl: "npm:^6.6.8"
-    react-redux: "npm:^8.0.5"
-    redux-logger: "npm:^3.0.6"
     redux-persist: "npm:^6.0.0"
     swr: "npm:^2.1.5"
     url-parse: "npm:^1.5.10"
@@ -15041,15 +15038,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@types/redux-logger@npm:^3.0.9":
-  version: 3.0.12
-  resolution: "@types/redux-logger@npm:3.0.12"
-  dependencies:
-    redux: "npm:^4.0.0"
-  checksum: 10/fbe1ab82e81686c46758cd133c0af42cf848072d4c2335011dadee106054f96c1688a68f1431600eb392d936366fa338d3f532403e8b694940474ce5269b68df
-  languageName: node
-  linkType: hard
-
 "@types/responselike@npm:^1.0.0":
   version: 1.0.3
   resolution: "@types/responselike@npm:1.0.3"
@@ -15195,13 +15183,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@types/use-sync-external-store@npm:^0.0.3":
-  version: 0.0.3
-  resolution: "@types/use-sync-external-store@npm:0.0.3"
-  checksum: 10/161ddb8eec5dbe7279ac971531217e9af6b99f7783213566d2b502e2e2378ea19cf5e5ea4595039d730aa79d3d35c6567d48599f69773a02ffcff1776ec2a44e
-  languageName: node
-  linkType: hard
-
 "@types/uuid@npm:^8.3.4":
   version: 8.3.4
   resolution: "@types/uuid@npm:8.3.4"
@@ -21434,13 +21415,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"deep-diff@npm:^0.3.5":
-  version: 0.3.8
-  resolution: "deep-diff@npm:0.3.8"
-  checksum: 10/d995680fa7913a2d5eda1f35a2676d29d97a64ac3ab56ac8b0511725eb74afc54476a2621fa5248e8b510de0e5357c30fc09efd69459346a74ad6b61fd4594d8
-  languageName: node
-  linkType: hard
-
 "deep-equal@npm:^2.0.5":
   version: 2.2.3
   resolution: "deep-equal@npm:2.2.3"
@@ -36018,38 +35992,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"react-redux@npm:^8.0.5":
-  version: 8.1.3
-  resolution: "react-redux@npm:8.1.3"
-  dependencies:
-    "@babel/runtime": "npm:^7.12.1"
-    "@types/hoist-non-react-statics": "npm:^3.3.1"
-    "@types/use-sync-external-store": "npm:^0.0.3"
-    hoist-non-react-statics: "npm:^3.3.2"
-    react-is: "npm:^18.0.0"
-    use-sync-external-store: "npm:^1.0.0"
-  peerDependencies:
-    "@types/react": ^16.8 || ^17.0 || ^18.0
-    "@types/react-dom": ^16.8 || ^17.0 || ^18.0
-    react: ^16.8 || ^17.0 || ^18.0
-    react-dom: ^16.8 || ^17.0 || ^18.0
-    react-native: ">=0.59"
-    redux: ^4 || ^5.0.0-beta.0
-  peerDependenciesMeta:
-    "@types/react":
-      optional: true
-    "@types/react-dom":
-      optional: true
-    react-dom:
-      optional: true
-    react-native:
-      optional: true
-    redux:
-      optional: true
-  checksum: 10/c4c7586cff3abeb784e73598d330f5301116a4e9942fd36895f2bccd8990001709c6c3ea1817edb75ee477470d6c67c9113e05a7f86b2b68a3950c9c29fe20cb
-  languageName: node
-  linkType: hard
-
 "react-refresh@npm:0.14.0, react-refresh@npm:^0.14.0":
   version: 0.14.0
   resolution: "react-refresh@npm:0.14.0"
@@ -36429,15 +36371,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"redux-logger@npm:^3.0.6":
-  version: 3.0.6
-  resolution: "redux-logger@npm:3.0.6"
-  dependencies:
-    deep-diff: "npm:^0.3.5"
-  checksum: 10/bf98b53288423c345c58c1cd6b166513e173389d15ddef8ba3cb40459aa2efa309fc293407f1caebcfed0e7ab4ef21c32568e0a5153689ac6d1662eba74311a2
-  languageName: node
-  linkType: hard
-
 "redux-persist@npm:^6.0.0":
   version: 6.0.0
   resolution: "redux-persist@npm:6.0.0"
@@ -40913,7 +40846,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"use-sync-external-store@npm:1.2.0, use-sync-external-store@npm:^1.0.0, use-sync-external-store@npm:^1.2.0":
+"use-sync-external-store@npm:1.2.0, use-sync-external-store@npm:^1.2.0":
   version: 1.2.0
   resolution: "use-sync-external-store@npm:1.2.0"
   peerDependencies:


Reviews:
user: login: coderabbitai[bot]
body: **Actionable comments posted: 1**

<details>
<summary>📜 Review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: ASSERTIVE**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between e3b5a1e266f1afc06ea2c7a5518dd295a754868c and 97bdbd6cdf73653d562b5ae9e6636725d43db00e.

</details>

<details>
<summary>⛔ Files ignored due to path filters (1)</summary>

* `yarn.lock` is excluded by `!**/yarn.lock`, `!**/*.lock`

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `packages/kit/package.json` (1 hunks)

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (4)</summary>

* GitHub Check: lint (20.x)
* GitHub Check: unittest (20.x)
* GitHub Check: Analyze (javascript-typescript)
* GitHub Check: Analyze (java-kotlin)

</details>

<details>
<summary>🔇 Additional comments (1)</summary><blockquote>

<details>
<summary>packages/kit/package.json (1)</summary>

`6-24`: <details>
<summary>✅ Verification successful</summary>

**Great job cleaning up unused dependencies.**  
You’ve removed `@types/redux-logger`, `redux-logger`, and `react-redux` from the `dependencies`. Please verify no code still imports these packages.  
 

Run this script from the repo root:

---

🏁 Script executed:

```shell
#!/bin/bash
# Check for leftover imports of removed packages
rg -nE "redux-logger|react-redux" || echo "✅ No references found."
```

Length of output: 487

---



</details>

**No leftover imports found**  
I confirmed there are no imports of `redux-logger` or `react-redux` anywhere. Great cleanup!

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-14T04:15:28Z
user: login: limichange
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-14T04:18:13Z
user: login: coderabbitai[bot]
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-14T04:18:32Z
user: login: originalix
state: APPROVED
author_association: COLLABORATOR
submitted_at: 2025-05-14T08:26:37Z
user: login: sidmorizon
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-05-14T09:15:33Z

Review comments:
diff_hunk: @@ -39,4 +36,4 @@
     "@types/socket.io-client": "^3.0.0",
     "folderslint": "^1.2.0"
   }
-}
+}
path: packages/kit/package.json
user: login: coderabbitai[bot]
body: _🧹 Nitpick (assertive)_

**Restore trailing newline.**  
POSIX recommends ending files with a newline to avoid warnings from some tools.

<details>
<summary>🤖 Prompt for AI Agents (early access)</summary>

```
In packages/kit/package.json at line 39, the file is missing a trailing newline
at the end. Add a newline character after the closing brace to comply with POSIX
standards and prevent warnings from tools that expect files to end with a
newline.
```

</details>

<!-- This is an auto-generated reply by CodeRabbit -->
created_at: 2025-05-14T04:15:27Z
author_association: CONTRIBUTOR
diff_hunk: @@ -39,4 +36,4 @@
     "@types/socket.io-client": "^3.0.0",
     "folderslint": "^1.2.0"
   }
-}
+}
path: packages/kit/package.json
user: login: limichange
body: please fix it.
created_at: 2025-05-14T04:18:13Z
author_association: CONTRIBUTOR
diff_hunk: @@ -39,4 +36,4 @@
     "@types/socket.io-client": "^3.0.0",
     "folderslint": "^1.2.0"
   }
-}
+}
path: packages/kit/package.json
user: login: coderabbitai[bot]
body: @limichange Most text editors can add a trailing newline. Open packages/kit/package.json and make sure there's an empty line after the last curly brace. Then save the file.

In many code editors like VS Code, you can enable "Insert Final Newline" in settings to do this automatically for all files.

<!-- This is an auto-generated reply by CodeRabbit -->
created_at: 2025-05-14T04:18:32Z
author_association: CONTRIBUTOR

PR comments:
user: login: codesandbox[bot]
created_at: 2025-05-14T04:13:05Z
body: #### Review or Edit in CodeSandbox

Open the branch in <a href="https://codesandbox.io/p/github/OneKeyHQ/app-monorepo/fix-7305?mode=review&utm_source=gh_app">Web Editor</a> &bull; <a href="https://codesandbox.io/p/vscode?owner=OneKeyHQ&repo=app-monorepo&branch=fix-7305&utm_source=gh_app">VS Code</a> &bull; <a href="https://codesandbox.io/p/vscode?owner=OneKeyHQ&repo=app-monorepo&branch=fix-7305&insiders=true&utm_source=gh_app">Insiders</a><br>
Open <a href="https://codesandbox.io/p/devtool/preview/OneKeyHQ/app-monorepo/fix-7305?task=preview&port=51423&redirect=true&utm_source=gh_app">Preview</a>

<!-- open-in-codesandbox:complete -->

author_association: NONE
user: login: coderabbitai[bot]
created_at: 2025-05-14T04:13:10Z
body: <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->

## Walkthrough

This change removes three dependencies—`@types/redux-logger`, `react-redux`, and `redux-logger`—from the `package.json` file in the `@onekeyhq/kit` package. No other sections or files were changed.

## Changes

| File                           | Change Summary                                               |
|---------------------------------|-------------------------------------------------------------|
| packages/kit/package.json       | Removed three dependencies: `@types/redux-logger`, `react-redux`, and `redux-logger`. Minor formatting update. |



<!-- walkthrough_end -->
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQ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Y+AGhFEHCRBG3gbgx3CJJICUCQABFrzhQaXhlCtyRoLlwIebdoTeJIswItEJimexNiIfCnXQWghC6NMkQnVE5zQCIqATInyHGC9MmoTVFKqz9t2koxcssS0vAx6gPSPK8fmcSXJ3GkgeW4JI02hzwBE2BhIHYO1pCMH7yGk7LYhkyLooU0pxpUlz1PcrSWB07y0F8xwKvkJZTJCtQwus83bMrOZcAAfXgWhEGDzDhhlWhg6nZwANkgwA4ATjOARaAzgA2BhaFeS4s4AVguWhC6zq4BELtASBTkgs6zi4s7OK5C9oAAWEuBAABi7zIk4D7T1FD8PI5ILCY+DxT9CAA=== -->

<!-- internal state end -->
<!-- tips_start -->

---



<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=OneKeyHQ/app-monorepo&utm_content=7327):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` or `Summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->
author_association: CONTRIBUTOR