Skip to content

Commit 27e408d

Browse files
authored
Update reps, fix example, remove and deprecate a bunch of stuff (#1076)
* node 22, pnpm 10.8.1 * remove some overrides * use node 22 in all packages * convert Uint8Array to Buffer * update github actions * add packageManager to json * update dependencies * remove ant-design * add authToken to .npmrc * lint * update turbo config * add es2022/es2022.error to tsconfig * skipLibCheck on Torus adapter * remove/deprecate material ui starter * fix example using parcel * remove material-ui, next, and cra starters * undo change to .npmrc * regen lockfile * add changeset * fix some test warnings * "fix" test
1 parent 09b6e48 commit 27e408d

File tree

192 files changed

+11836
-28735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+11836
-28735
lines changed

Diff for: .changeset/busy-forks-beam.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
'@solana/wallet-adapter-react-ui-starter': patch
3+
'@solana/wallet-adapter-unsafe-burner': patch
4+
'@solana/wallet-adapter-walletconnect': patch
5+
'@solana/wallet-adapter-tokenpocket': patch
6+
'@solana/wallet-adapter-mathwallet': patch
7+
'@solana/wallet-adapter-coinbase': patch
8+
'@solana/wallet-adapter-hyperpay': patch
9+
'@solana/wallet-adapter-keystone': patch
10+
'@solana/wallet-adapter-particle': patch
11+
'@solana/wallet-adapter-solflare': patch
12+
'@solana/wallet-adapter-tokenary': patch
13+
'@solana/wallet-adapter-example': patch
14+
'@solana/wallet-adapter-bitkeep': patch
15+
'@solana/wallet-adapter-coinhub': patch
16+
'@solana/wallet-adapter-fractal': patch
17+
'@solana/wallet-adapter-krystal': patch
18+
'@solana/wallet-adapter-nightly': patch
19+
'@solana/wallet-adapter-phantom': patch
20+
'@solana/wallet-adapter-safepal': patch
21+
'@solana/wallet-adapter-wallets': patch
22+
'@solana/wallet-adapter-bitpie': patch
23+
'@solana/wallet-adapter-clover': patch
24+
'@solana/wallet-adapter-coin98': patch
25+
'@solana/wallet-adapter-ledger': patch
26+
'@solana/wallet-adapter-salmon': patch
27+
'@solana/wallet-adapter-solong': patch
28+
'@solana/wallet-adapter-trezor': patch
29+
'@solana/wallet-adapter-alpha': patch
30+
'@solana/wallet-adapter-avana': patch
31+
'@solana/wallet-adapter-huobi': patch
32+
'@solana/wallet-adapter-saifu': patch
33+
'@solana/wallet-adapter-torus': patch
34+
'@solana/wallet-adapter-trust': patch
35+
'@solana/wallet-adapter-xdefi': patch
36+
'@solana/wallet-adapter-neko': patch
37+
'@solana/wallet-adapter-nufi': patch
38+
'@solana/wallet-adapter-onto': patch
39+
'@solana/wallet-adapter-spot': patch
40+
'@solana/wallet-adapter-react-ui': patch
41+
'@solana/wallet-adapter-sky': patch
42+
'@solana/wallet-adapter-react': patch
43+
'@solana/wallet-adapter-base-ui': patch
44+
'@solana/wallet-adapter-base': patch
45+
---
46+
47+
Update dependencies

Diff for: .github/workflows/build-and-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323
id: install-pnpm
2424
uses: pnpm/action-setup@v2
2525
with:
26-
version: 9
26+
version: 10.8.1
2727
run_install: false
2828

2929
- name: Install Node.js
3030
id: install-node
3131
uses: actions/setup-node@v3
3232
with:
33-
node-version: 18
33+
node-version: 22
3434
cache: 'pnpm'
3535

3636
- name: Get pnpm store directory

Diff for: .github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121

2222
- name: Install pnpm
2323
id: install-pnpm
24-
uses: pnpm/action-setup@v2
24+
uses: pnpm/action-setup@v4
2525
with:
26-
version: 9
26+
version: 10.8.1
2727
run_install: false
2828

2929
- name: Install Node.js
3030
id: install-node
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
33-
node-version: 18
33+
node-version: 22
3434
cache: 'pnpm'
3535

3636
- name: Get pnpm store directory

Diff for: APP.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ This is a quick setup guide with examples of how to add Wallet Adapter to a Reac
44

55
See the [packages](https://github.com/anza-xyz/wallet-adapter/blob/master/PACKAGES.md) and [FAQ](https://github.com/anza-xyz/wallet-adapter/blob/master/FAQ.md) for other supported frontend frameworks.
66

7-
## Quick Setup (using React UI)
8-
9-
There are also [material-ui](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/material-ui) and [ant-design](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/ant-design) packages if you use those UI component frameworks.
7+
## Quick Setup (using React)
108

119
### Install
1210

Diff for: FAQ.md

-69
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Please search https://solana.stackexchange.com and the issues in the repo. Issue
55
- [I am building an app, how do I use this?](#i-am-building-an-app-how-do-i-use-this)
66
- [I am building a wallet, how do I use this?](#i-am-building-a-wallet-how-do-i-use-this)
77
- [How can I get support?](#how-can-i-get-support)
8-
- [Can I use this with ___?](#can-i-use-this-with-___)
98
- [What does this error mean?](#what-does-this-error-mean)
109
- [How can I sign and verify messages?](#how-can-i-sign-and-verify-messages)
1110

@@ -23,74 +22,6 @@ Please ask questions on the [Solana Stack Exchange](https://solana.stackexchange
2322

2423
After reading this FAQ, if you've found a bug or if you'd like to request a feature, please [open an issue](https://github.com/anza-xyz/wallet-adapter/issues/new).
2524

26-
## Can I use this with ___?
27-
28-
### React
29-
Yes, see the [react-ui-starter](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/react-ui-starter) package.
30-
31-
### Anchor
32-
Yes, use the [`useAnchorWallet()`](https://github.com/anza-xyz/wallet-adapter/blob/master/packages/core/react/src/useAnchorWallet.ts) hook in the React package to easily get an [Anchor-compatible Wallet interface](https://github.com/project-serum/anchor/blob/0faed886002a9b01ad0513c860e19d7570cb0221/ts/src/provider.ts#L220-L224).
33-
34-
### Next.js (with React)
35-
Yes, see the [nextjs-starter](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/nextjs-starter) package for very basic configuration, or the [example](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/example) package for more complete configuration.
36-
37-
If you're using one of the [react-ui](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/react-ui), [material-ui](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/material-ui), or [ant-design](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/ui/ant-design) packages too, make sure to configure the `WalletModalProvider` or `WalletDialogProvider` context [as shown here](https://github.com/anza-xyz/wallet-adapter#setup).
38-
39-
### Material UI (with React)
40-
Yes, see the [material-ui-starter](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/material-ui-starter) package.
41-
42-
### Ant Design (with React)
43-
Yes, see the [ant-design](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/core/ant-design) package.
44-
45-
### Vue
46-
Yes, see the community-maintained [Vue](https://github.com/lorisleiva/solana-wallets-vue) package.
47-
48-
### Angular / RxJS
49-
Yes, see the community-maintained [Angular](https://github.com/heavy-duty/platform/tree/master/libs/wallet-adapter) package.
50-
51-
### Svelte
52-
Yes, see the community-maintained [Svelte](https://github.com/svelte-on-solana/wallet-adapter) package.
53-
54-
### Unity
55-
Yes, see the community-maintained [Unity](https://github.com/magicblock-labs/Solana.Unity-SDK) package.
56-
57-
### Webpack / Gatsby
58-
Yes, but you may need to set up polyfills for certain imported modules.
59-
60-
For example, you may need to install `buffer`:
61-
```shell
62-
npm install --save buffer
63-
```
64-
65-
And configure `webpack.config.js`:
66-
```js
67-
const webpack = require('webpack');
68-
69-
module.exports = {
70-
plugins: [
71-
new webpack.ProvidePlugin({
72-
Buffer: ['buffer', 'Buffer']
73-
})
74-
],
75-
resolve: {
76-
fallback: {
77-
crypto: false
78-
}
79-
}
80-
};
81-
```
82-
83-
### Babel / Rollup / Vite / Snowpack / esbuild
84-
Yes, but you may need to provide custom build configuration.
85-
Most of the packages are built using the TypeScript compiler, which outputs modular ES6 with `import`/`export` statements.
86-
87-
If you're using Create React App, craco, or one of the React-based starter projects using them, this should be handled automatically.
88-
89-
If you're using Next.js, this requires configuration, which is provided in the [nextjs-starter](https://github.com/anza-xyz/wallet-adapter/tree/master/packages/starter/nextjs-starter) package.
90-
91-
If you're using something else, you may have to configure your build tool to transpile the packages similarly to how it's done in the Next.js config.
92-
Please open an issue or pull request to document your solution!
93-
9425
## What does this error mean?
9526

9627
### `Failed to compile. [...] Module not found: Can't resolve [...]`

Diff for: PACKAGES.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ These packages provide components for common UI frameworks.
2727
| package | description | npm |
2828
|-----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|
2929
| [react-ui](https://github.com/solana-labs/wallet-adapter/tree/master/packages/ui/react-ui) | Components for React (no UI framework, just CSS) | [`@solana/wallet-adapter-react-ui`](https://npmjs.com/package/@solana/wallet-adapter-react-ui) |
30-
| [material-ui](https://github.com/solana-labs/wallet-adapter/tree/master/packages/ui/material-ui) | Components for [Material UI](https://material-ui.com) with React | [`@solana/wallet-adapter-material-ui`](https://npmjs.com/package/@solana/wallet-adapter-material-ui) |
31-
| [ant-design](https://github.com/solana-labs/wallet-adapter/tree/master/packages/ui/ant-design) | Components for [Ant Design](https://ant.design) with React | [`@solana/wallet-adapter-ant-design`](https://npmjs.com/package/@solana/wallet-adapter-ant-design) |
32-
| [angular-material-ui](https://github.com/heavy-duty/platform/tree/master/libs/wallet-adapter/ui/material) | Components for [Angular Material UI](https://material.angular.io/) | [`@heavy-duty/wallet-adapter-material`](https://www.npmjs.com/package/@heavy-duty/wallet-adapter-material) |
3330

3431
### Wallets
3532
These packages provide adapters for each wallet.
@@ -42,7 +39,7 @@ You can use the [wallets](https://github.com/solana-labs/wallet-adapter/tree/mas
4239
| [avana](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/avana) | Adapter for [Avana](https://www.avanawallet.com) | [`@solana/wallet-adapter-avana`](https://npmjs.com/package/@solana/wallet-adapter-avana) |
4340
| [bitkeep](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/bitkeep) | Adapter for [BitKeep](https://bitkeep.com) | [`@solana/wallet-adapter-bitkeep`](https://npmjs.com/package/@solana/wallet-adapter-bitkeep) |
4441
| [bitpie](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/bitpie) | Adapter for [Bitpie](https://bitpie.com) | [`@solana/wallet-adapter-bitpie`](https://npmjs.com/package/@solana/wallet-adapter-bitpie) |
45-
| [clv](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/clover) | Adapter for [CLV](https://clv.org) | [`@solana/wallet-adapter-clover`](https://npmjs.com/package/@solana/wallet-adapter-clover) |
42+
| [clover](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/clover) | Adapter for [CLV](https://clv.org) | [`@solana/wallet-adapter-clover`](https://npmjs.com/package/@solana/wallet-adapter-clover) |
4643
| [coin98](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/coin98) | Adapter for [Coin98](https://coin98.com) | [`@solana/wallet-adapter-coin98`](https://npmjs.com/package/@solana/wallet-adapter-coin98) |
4744
| [coinbase](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/coinbase) | Adapter for [Coinbase](https://www.coinbase.com) | [`@solana/wallet-adapter-coinbase`](https://npmjs.com/package/@solana/wallet-adapter-coinbase) |
4845
| [coinhub](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/coinhub) | Adapter for [Coinhub](https://coinhub.org) | [`@solana/wallet-adapter-coinhub`](https://npmjs.com/package/@solana/wallet-adapter-coinhub) |
@@ -76,12 +73,8 @@ You can use the [wallets](https://github.com/solana-labs/wallet-adapter/tree/mas
7673

7774
### Starter Projects
7875
These packages provide projects that you can use to start building a app with built-in wallet support.
79-
Alternatively, check out [solana-dapp-next](https://github.com/lisenmayben/solana-dapp-next) for a more complete framework.
8076

8177
| package | description | npm |
8278
|---------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
8379
| [example](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/example) | Demo of UI components and wallets | [`@solana/wallet-adapter-example`](https://npmjs.com/package/@solana/wallet-adapter-example) |
84-
| [create-react-app-starter](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/create-react-app-starter) | [Create React App](https://create-react-app.dev) project using React UI | [`@solana/wallet-adapter-create-react-app-starter`](https://npmjs.com/package/@solana/wallet-adapter-create-react-app-starter) |
85-
| [material-ui-starter](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/material-ui-starter) | [Parcel](https://parceljs.org) project using Material UI | [`@solana/wallet-adapter-material-ui-starter`](https://npmjs.com/package/@solana/wallet-adapter-material-ui-starter) |
8680
| [react-ui-starter](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/react-ui-starter) | [Parcel](https://parceljs.org) project using React UI | [`@solana/wallet-adapter-react-ui-starter`](https://npmjs.com/package/@solana/wallet-adapter-react-ui-starter) |
87-
| [nextjs-starter](https://github.com/solana-labs/wallet-adapter/tree/master/packages/starter/nextjs-starter) | [Next.js](https://nextjs.org) project using React UI | [`@solana/wallet-adapter-nextjs-starter`](https://npmjs.com/package/@solana/wallet-adapter-nextjs-starter) |

Diff for: package.json

+23-28
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"repository": "https://github.com/anza-xyz/wallet-adapter",
66
"license": "Apache-2.0",
77
"engines": {
8-
"node": ">=20",
9-
"pnpm": ">=9"
8+
"node": "22",
9+
"pnpm": "10.8.1"
1010
},
11+
"packageManager": "[email protected]",
1112
"type": "module",
1213
"sideEffects": false,
1314
"scripts": {
15+
"corepack": "corepack enable && corepack prepare [email protected] --activate && corepack use [email protected]",
1416
"nuke": "shx rm -rf packages/*/*/node_modules node_modules pnpm-lock.yaml || true",
1517
"reinstall": "pnpm run nuke && pnpm install",
1618
"clean": "pnpm --recursive --workspace-concurrency=0 run clean && shx rm -rf **/*.tsbuildinfo",
@@ -25,48 +27,41 @@
2527
"deploy": "pnpm run deploy:docs && pnpm run deploy:example",
2628
"docs": "shx rm -rf docs && NODE_OPTIONS=--max_old_space_size=16000 typedoc && shx cp ./{.nojekyll,wallets.png} docs/",
2729
"deploy:docs": "pnpm run docs && gh-pages --dist docs --dotfiles",
28-
"example": "pnpm run --filter {packages/starter/example} export",
29-
"deploy:example": "pnpm run example && gh-pages --dist packages/starter/example/out --dest example --dotfiles"
30+
"example": "pnpm run --filter {packages/starter/example} deploy",
31+
"deploy:example": "pnpm run example && gh-pages --dist packages/starter/example/dist --dest example --dotfiles"
3032
},
3133
"devDependencies": {
3234
"@changesets/cli": "^2.26.1",
3335
"@parcel/resolver-default": "2.14.4",
34-
"@types/node": "^20",
36+
"@types/node": "^22.14.1",
3537
"@typescript-eslint/eslint-plugin": "^5.60.0",
3638
"@typescript-eslint/parser": "^5.60.0",
3739
"eslint": "8.22.0",
38-
"eslint-config-prettier": "^8.8.0",
39-
"eslint-plugin-prettier": "^4.2.1",
40-
"eslint-plugin-react": "^7.32.2",
41-
"eslint-plugin-react-hooks": "^4.6.0",
40+
"eslint-config-prettier": "^10.1.2",
41+
"eslint-plugin-prettier": "^5.2.6",
42+
"eslint-plugin-react": "^7.37.5",
43+
"eslint-plugin-react-hooks": "^5.2.0",
4244
"eslint-plugin-require-extensions": "^0.1.3",
43-
"gh-pages": "^4.0.0",
44-
"pnpm": "^9",
45-
"prettier": "^2.8.8",
46-
"shx": "^0.3.4",
47-
"turbo": "^1.13.3",
48-
"typedoc": "^0.23.28",
49-
"typescript": "~5"
45+
"gh-pages": "^6.3.0",
46+
"pnpm": "10.8.1",
47+
"prettier": "^3.5.3",
48+
"shx": "^0.4.0",
49+
"turbo": "^2.5.0",
50+
"typedoc": "^0.28.2",
51+
"typescript": "^5.8.3",
52+
"vm-browserify": "^1.1.2"
5053
},
5154
"overrides": {
52-
"@ledgerhq/devices": "6.27.1",
53-
"@ledgerhq/errors": "6.16.3",
54-
"@ledgerhq/hw-transport": "6.27.1",
55-
"@ledgerhq/hw-transport-webhid": "6.27.1",
5655
"@solana/wallet-adapter-base": "workspace:^",
57-
"@types/web": "npm:typescript@~4.7.4",
5856
"eslint": "8.22.0",
59-
"@ngraveio/bc-ur": "1.1.12"
57+
"@ngraveio/bc-ur": "1.1.12",
58+
"@types/web": "npm:typescript@^5.8.3"
6059
},
6160
"resolutions": {
62-
"@ledgerhq/devices": "6.27.1",
63-
"@ledgerhq/errors": "6.16.3",
64-
"@ledgerhq/hw-transport": "6.27.1",
65-
"@ledgerhq/hw-transport-webhid": "6.27.1",
6661
"@solana/wallet-adapter-base": "workspace:^",
67-
"@types/web": "npm:typescript@~4.7.4",
6862
"eslint": "8.22.0",
69-
"@ngraveio/bc-ur": "1.1.12"
63+
"@ngraveio/bc-ur": "1.1.12",
64+
"@types/web": "npm:typescript@^5.8.3"
7065
},
7166
"@parcel/resolver-default": {
7267
"packageExports": true

Diff for: packages/core/base/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"LICENSE"
1414
],
1515
"engines": {
16-
"node": ">=20"
16+
"node": "22"
1717
},
1818
"type": "module",
1919
"sideEffects": false,
@@ -32,17 +32,17 @@
3232
"package": "shx mkdir -p lib/cjs && shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json"
3333
},
3434
"peerDependencies": {
35-
"@solana/web3.js": "^1.77.3"
35+
"@solana/web3.js": "^1.98.0"
3636
},
3737
"dependencies": {
38-
"@solana/wallet-standard-features": "^1.1.0",
39-
"@wallet-standard/base": "^1.0.1",
40-
"@wallet-standard/features": "^1.0.3",
41-
"eventemitter3": "^4.0.7"
38+
"@solana/wallet-standard-features": "^1.3.0",
39+
"@wallet-standard/base": "^1.1.0",
40+
"@wallet-standard/features": "^1.1.0",
41+
"eventemitter3": "^5.0.1"
4242
},
4343
"devDependencies": {
44-
"@solana/web3.js": "^1.77.3",
45-
"@types/node-fetch": "^2.6.4",
46-
"shx": "^0.3.4"
44+
"@solana/web3.js": "^1.98.0",
45+
"@types/node-fetch": "^2.6.12",
46+
"shx": "^0.4.0"
4747
}
4848
}

0 commit comments

Comments
 (0)