Skip to content

Commit 9de42b5

Browse files
committed
feat: upgrade starknet peerDependency
1 parent 73040f8 commit 9de42b5

File tree

16 files changed

+90
-84
lines changed

16 files changed

+90
-84
lines changed

Diff for: .github/pull_request_template.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Closes #
1212

1313
<!-- Make sure all of these are complete -->
1414

15-
- [ ] Linked relevant issue
16-
- [ ] Updated relevant documentation
17-
- [ ] Added relevant tests
18-
- [ ] Add a dedicated CI job for new examples
19-
- [ ] Performed self-review of the code
15+
- [ ] Linked relevant issue
16+
- [ ] Updated relevant documentation
17+
- [ ] Added relevant tests
18+
- [ ] Add a dedicated CI job for new examples
19+
- [ ] Performed self-review of the code

Diff for: examples/example-nodejs-bot/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ A Discord bot for interacting with your Dojo world via Torii.
44

55
Features:
66

7-
- Poll a Torii for information.
8-
- Expose a slash command for reading Torii state.
9-
- Easy to extend with new commands.
10-
- GraphQL codegen for Torii models.
7+
- Poll a Torii for information.
8+
- Expose a slash command for reading Torii state.
9+
- Easy to extend with new commands.
10+
- GraphQL codegen for Torii models.
1111

1212
---
1313

Diff for: examples/example-vite-kitchen-sink/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ sozo migrate apply
4545

4646
### Notes
4747

48-
- you main want to update `actions` contract address in `src/components/caller-counter.tsx` & `src/components/global-counter.tsx` which is hardcoded in those files.
49-
- if you want to have braavos & argent wallet working, you need to deploy classes and deploy your wallet manually.
48+
- you main want to update `actions` contract address in `src/components/caller-counter.tsx` & `src/components/global-counter.tsx` which is hardcoded in those files.
49+
- if you want to have braavos & argent wallet working, you need to deploy classes and deploy your wallet manually.

Diff for: examples/example-vite-kitchen-sink/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"@radix-ui/react-slot": "^1.1.0",
2323
"@radix-ui/react-switch": "^1.1.0",
2424
"@radix-ui/react-tooltip": "^1.1.2",
25-
"@starknet-react/chains": "^3.0.0",
26-
"@starknet-react/core": "2.9.0",
25+
"@starknet-react/chains": "catalog:*",
26+
"@starknet-react/core": "catalog:*",
2727
"@t3-oss/env-core": "^0.11.1",
2828
"@t3-oss/env-nextjs": "^0.11.1",
2929
"class-variance-authority": "^0.7.0",

Diff for: examples/example-vite-react-sdk/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ This template provides a minimal setup to get React working in Vite with HMR and
44

55
Currently, two official plugins are available:
66

7-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
7+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
99

1010
## Expanding the ESLint configuration
1111

1212
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
1313

14-
- Configure the top-level `parserOptions` property like this:
14+
- Configure the top-level `parserOptions` property like this:
1515

1616
```js
1717
export default tseslint.config({
@@ -25,9 +25,9 @@ export default tseslint.config({
2525
});
2626
```
2727

28-
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29-
- Optionally add `...tseslint.configs.stylisticTypeChecked`
30-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
28+
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29+
- Optionally add `...tseslint.configs.stylisticTypeChecked`
30+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
3131

3232
```js
3333
// eslint.config.js

Diff for: examples/example-vite-svelte-recs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also pow
1414

1515
**Why use this over SvelteKit?**
1616

17-
- It brings its own routing solution which might not be preferable for some users.
18-
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
17+
- It brings its own routing solution which might not be preferable for some users.
18+
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
1919

2020
This template contains as little as possible to get started with Vite + TypeScript + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
2121

Diff for: packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
},
1919
"peerDependencies": {
20-
"starknet": "6.11.0"
20+
"starknet": "catalog:*"
2121
},
2222
"devDependencies": {
2323
"@dojoengine/torii-client": "workspace:*",

Diff for: packages/create-burner/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
"test": "vitest run --coverage"
1313
},
1414
"peerDependencies": {
15+
"@starknet-react/core": "catalog:*",
16+
"get-starknet-core": "catalog:*",
1517
"react": "^18.2.0",
1618
"react-dom": "^18.2.0",
17-
"starknet": "6.11.0"
19+
"starknet": "catalog:*"
1820
},
1921
"exports": {
2022
".": {
@@ -42,9 +44,7 @@
4244
"dependencies": {
4345
"@dojoengine/core": "workspace:*",
4446
"@scure/bip32": "^1.5.0",
45-
"@starknet-react/core": "2.3.0",
4647
"encoding": "^0.1.13",
47-
"get-starknet-core": "^3.3.3",
4848
"js-cookie": "^3.0.5"
4949
}
5050
}

Diff for: packages/create-burner/readme.md

+31-31
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ Easily manage, create, and interact with burner accounts on Starknets using this
3333

3434
## Features:
3535

36-
- Initialize and manage burner accounts.
37-
- Abstracts away intricacies related to creating, fetching, and setting active burner accounts.
38-
- Easily integrate with React apps using the provided hook.
39-
- Vanilla JS support.
36+
- Initialize and manage burner accounts.
37+
- Abstracts away intricacies related to creating, fetching, and setting active burner accounts.
38+
- Easily integrate with React apps using the provided hook.
39+
- Vanilla JS support.
4040

4141
## Table of Contents
4242

43-
- [Installation](#installation)
44-
- [Usage](#usage)
45-
- [With React](#with-react)
46-
- [Vanilla JavaScript](#vanilla-javascript)
47-
- [API](#api)
48-
- [Contribute](#contribute)
49-
- [License](#license)
43+
- [Installation](#installation)
44+
- [Usage](#usage)
45+
- [With React](#with-react)
46+
- [Vanilla JavaScript](#vanilla-javascript)
47+
- [API](#api)
48+
- [Contribute](#contribute)
49+
- [License](#license)
5050

5151
## Installation
5252

@@ -58,7 +58,7 @@ yarn add @dojoengine/create-burner starknet
5858

5959
### In the wild:
6060

61-
- [dojo-starter-react-app](https://github.com/dojoengine/dojo-starter-react-app)
61+
- [dojo-starter-react-app](https://github.com/dojoengine/dojo-starter-react-app)
6262

6363
## Usage
6464

@@ -90,25 +90,25 @@ const activeAccount = manager.getActiveAccount();
9090

9191
## API
9292

93-
- **useBurner**: A React hook that provides functionalities like creating burners, selecting them, and more.
94-
95-
- `get(address: string)`: Get a burner account based on its address.
96-
- `list()`: List all burners.
97-
- `select(address: string)`: Set a burner as the active account.
98-
- `create()`: Create a new burner.
99-
- `account`: The active burner account.
100-
- `isDeploying`: A boolean that indicates whether a burner is being deployed.
101-
- `listConnectors()`: List all available connectors that can be used with Starknet React.
102-
103-
- **BurnerManager**: A class for vanilla JS that offers methods to manage burner accounts.
104-
- `init()`: Initializes the manager.
105-
- `getActiveAccount()`: Retrieves the active burner account.
106-
- `get(address: string)`: Get a burner account based on its address.
107-
- `list()`: List all burners.
108-
- `select(address: string)`: Set a burner as the active account.
109-
- `create()`: Create a new burner.
110-
- `account`: The active burner account.
111-
- `isDeploying`: A boolean that indicates whether a burner is being deployed.
93+
- **useBurner**: A React hook that provides functionalities like creating burners, selecting them, and more.
94+
95+
- `get(address: string)`: Get a burner account based on its address.
96+
- `list()`: List all burners.
97+
- `select(address: string)`: Set a burner as the active account.
98+
- `create()`: Create a new burner.
99+
- `account`: The active burner account.
100+
- `isDeploying`: A boolean that indicates whether a burner is being deployed.
101+
- `listConnectors()`: List all available connectors that can be used with Starknet React.
102+
103+
- **BurnerManager**: A class for vanilla JS that offers methods to manage burner accounts.
104+
- `init()`: Initializes the manager.
105+
- `getActiveAccount()`: Retrieves the active burner account.
106+
- `get(address: string)`: Get a burner account based on its address.
107+
- `list()`: List all burners.
108+
- `select(address: string)`: Set a burner as the active account.
109+
- `create()`: Create a new burner.
110+
- `account`: The active burner account.
111+
- `isDeploying`: A boolean that indicates whether a burner is being deployed.
112112

113113
## Contribute
114114

Diff for: packages/react/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
},
1313
"license": "MIT",
1414
"peerDependencies": {
15+
"get-starknet-core": "catalog:*",
1516
"react": "^18.2.0",
16-
"starknet": "6.11.0",
17+
"starknet": "catalog:*",
1718
"type-fest": "^2.14.0"
1819
},
1920
"exports": {
@@ -41,7 +42,6 @@
4142
"@latticexyz/utils": "^2.2.8",
4243
"encoding": "^0.1.13",
4344
"fast-deep-equal": "^3.1.3",
44-
"get-starknet-core": "^3.3.3",
4545
"js-cookie": "^3.0.5",
4646
"rxjs": "7.5.5",
4747
"zustand": "^4.5.5"

Diff for: packages/sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"vitest": "^1.6.0"
3636
},
3737
"peerDependencies": {
38-
"starknet": "6.11.0"
38+
"starknet": "catalog:*"
3939
},
4040
"dependencies": {
4141
"@dojoengine/torii-client": "workspace:*",

Diff for: packages/state/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"typescript": "^5.6.2"
2222
},
2323
"peerDependencies": {
24-
"starknet": "6.11.0"
24+
"starknet": "catalog:*"
2525
},
2626
"dependencies": {
2727
"@dojoengine/recs": "2.0.13",

Diff for: packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"vitest": "^1.6.0"
2626
},
2727
"peerDependencies": {
28-
"starknet": "6.11.0"
28+
"starknet": "catalog:*"
2929
},
3030
"dependencies": {
3131
"@dojoengine/recs": "2.0.13",

Diff for: pnpm-workspace.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
packages:
22
- "packages/*"
33
- "examples/**"
4+
5+
catalog:
6+
starknet: ^6.11.0
7+
get-starknet-core: ^4.0.0
8+
"@starknet-react/core": ^3.0.0
9+
"@starknet-react/chains": ^2.9.0

Diff for: readme.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ If you are not familiar with Dojo, then you should read the [book](https://book.
1818

1919
## Table of Contents
2020

21-
- [Quick start in 5 minutes](#quick-start-in-5-minutes)
22-
- [Dojo SDK](#dojo-sdk)
23-
- [Examples](#all-examples)
24-
- [All Packages](#all-packages)
21+
- [Quick start in 5 minutes](#quick-start-in-5-minutes)
22+
- [Dojo SDK](#dojo-sdk)
23+
- [Examples](#all-examples)
24+
- [All Packages](#all-packages)
2525

2626
## Quick start in 5 minutes
2727

@@ -130,20 +130,20 @@ Dojo.js is modularized into small packages to keep it light.
130130

131131
Getting started, we recommend using the SDK package, which will provide you with a simple interface to work with:
132132

133-
- [SDK](./packages/create-burner/): Clean abstraction incorporating other packages and providing the best way to get started
133+
- [SDK](./packages/create-burner/): Clean abstraction incorporating other packages and providing the best way to get started
134134

135135
[Read the SDK full documentation](./packages/sdk/readme.md)
136136

137137
Other packages:
138138

139-
- [core](./packages/core/): Dojo provider for an interface into your world
140-
- [create Burner](./packages/create-burner/): Create burners for local development fast
141-
- [react](./packages/create-burner/): React package of hooks for working with Dojo
142-
- [state](./packages/create-burner/): State package for compatible state managers (Currently RECS)
143-
- [torii-client](./packages/create-burner/): Client package for working with Torii WASM. This package exports all the types needed to build with torii-client.
144-
- [torii-wasm](./packages/create-burner/): WASM build
145-
- [utils](./packages/create-burner/): Helpful utils for working with Dojo apps
146-
- [utils-wasm](./packages/create-burner/): WASM utils for working with Dojo apps
139+
- [core](./packages/core/): Dojo provider for an interface into your world
140+
- [create Burner](./packages/create-burner/): Create burners for local development fast
141+
- [react](./packages/create-burner/): React package of hooks for working with Dojo
142+
- [state](./packages/create-burner/): State package for compatible state managers (Currently RECS)
143+
- [torii-client](./packages/create-burner/): Client package for working with Torii WASM. This package exports all the types needed to build with torii-client.
144+
- [torii-wasm](./packages/create-burner/): WASM build
145+
- [utils](./packages/create-burner/): Helpful utils for working with Dojo apps
146+
- [utils-wasm](./packages/create-burner/): WASM utils for working with Dojo apps
147147

148148
## All Examples
149149

@@ -153,13 +153,13 @@ Spin any of these examples locally
153153
npx @dojoengine/create-dojo start
154154
```
155155

156-
- [example-vite-react-sdk](./examples/example-vite-react-sdk/)
157-
- [example-vite-react-phaser-recs](./examples/example-vite-react-phaser-recs/)
158-
- [example-vite-react-pwa-recs](./examples/example-vite-react-pwa-recs/)
159-
- [example-vite-react-threejs-recs](./examples/example-vite-react-threejs-recs/)
160-
- [example-vue-app-recs](./examples/example-vue-app-recs/)
161-
- [example-vite-kitchen-sink](./examples/example-vite-kitchen-sink/)
162-
- [example-nodejs-bot](./examples/example-nodejs-bot/)
156+
- [example-vite-react-sdk](./examples/example-vite-react-sdk/)
157+
- [example-vite-react-phaser-recs](./examples/example-vite-react-phaser-recs/)
158+
- [example-vite-react-pwa-recs](./examples/example-vite-react-pwa-recs/)
159+
- [example-vite-react-threejs-recs](./examples/example-vite-react-threejs-recs/)
160+
- [example-vue-app-recs](./examples/example-vue-app-recs/)
161+
- [example-vite-kitchen-sink](./examples/example-vite-kitchen-sink/)
162+
- [example-nodejs-bot](./examples/example-nodejs-bot/)
163163

164164
## Contributing to dojo.js
165165

@@ -184,13 +184,13 @@ Dojo.js is a work in progress. We welcome contributions! Here's how you can get
184184

185185
Before running examples, you need to build the packages:
186186

187-
- Build all packages:
187+
- Build all packages:
188188

189189
```bash
190190
pnpm run build
191191
```
192192

193-
- Watch for changes (development mode):
193+
- Watch for changes (development mode):
194194
```bash
195195
pnpm run build --watch
196196
```

0 commit comments

Comments
 (0)