Skip to content

Commit

Permalink
Merge pull request #195 from aptos-labs/gabriele/peer-dependencies
Browse files Browse the repository at this point in the history
Moved `aptos`, `react` and `react-dom` to `peerDependencies`
  • Loading branch information
gregnazario authored Oct 31, 2023
2 parents 87d8da5 + dd6e1ed commit fca59e8
Show file tree
Hide file tree
Showing 7 changed files with 584 additions and 1,567 deletions.
8 changes: 8 additions & 0 deletions .changeset/three-moose-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@aptos-labs/wallet-adapter-ant-design": patch
"@aptos-labs/wallet-adapter-core": patch
"@aptos-labs/wallet-adapter-mui-design": patch
"@aptos-labs/wallet-adapter-react": patch
---

Moves dependencies to peer dependencies as needed
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
8 changes: 5 additions & 3 deletions packages/wallet-adapter-ant-design/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aptos-labs/wallet-adapter-ant-design",
"version": "1.2.5",
"version": "1.2.6",
"description": "Aptos Wallet Adapter ant-design",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -49,8 +49,10 @@
"typescript": "^4.5.3"
},
"dependencies": {
"@aptos-labs/wallet-adapter-react": "1.3.2",
"antd": "^5.1.2",
"@aptos-labs/wallet-adapter-react": "^1.3.3",
"antd": "^5.1.2"
},
"peerDependencies": {
"react": "^18",
"react-dom": "^18"
}
Expand Down
6 changes: 4 additions & 2 deletions packages/wallet-adapter-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aptos-labs/wallet-adapter-core",
"version": "2.5.1",
"version": "2.5.2",
"description": "Aptos Wallet Adapter Core",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -45,9 +45,11 @@
"typescript": "^4.5.3"
},
"dependencies": {
"aptos": "^1.19.0",
"buffer": "^6.0.3",
"eventemitter3": "^4.0.7",
"tweetnacl": "^1.0.3"
},
"peerDependencies": {
"aptos": "^1.19.0"
}
}
8 changes: 5 additions & 3 deletions packages/wallet-adapter-mui-design/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aptos-labs/wallet-adapter-mui-design",
"version": "1.0.5",
"version": "1.0.6",
"description": "Aptos Wallet Adapter mui design",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -43,12 +43,14 @@
"typescript": "^4.5.3"
},
"dependencies": {
"@aptos-labs/wallet-adapter-react": "1.3.2",
"@aptos-labs/wallet-adapter-react": "^1.3.3",
"@babel/core": "^7.0.0",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/icons-material": "^5.11.0",
"@mui/material": "^5.11.6",
"@mui/material": "^5.11.6"
},
"peerDependencies": {
"react": "^18",
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.0"
Expand Down
6 changes: 4 additions & 2 deletions packages/wallet-adapter-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aptos-labs/wallet-adapter-react",
"version": "1.3.2",
"version": "1.3.3",
"description": "Aptos Wallet Adapter React Provider",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -43,7 +43,9 @@
"tsup": "^5.10.1"
},
"dependencies": {
"@aptos-labs/wallet-adapter-core": "2.5.1",
"@aptos-labs/wallet-adapter-core": "^2.5.2"
},
"peerDependencies": {
"react": "^18"
}
}
Loading

0 comments on commit fca59e8

Please sign in to comment.