Skip to content

Commit 3d4d08b

Browse files
Merge upstream develop
2 parents 2f790df + 34448c6 commit 3d4d08b

7 files changed

Lines changed: 52 additions & 692 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.16.0
1+
24.17.0

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ The following commands will get you up and running:
3030
nvm install
3131

3232
# Check you have the correct dependencies
33-
34-
```
35-
3633
apt-get install \
3734
protobuf-compiler \
3835
cmake \
@@ -41,8 +38,6 @@ apt-get install \
4138
libssl-dev \
4239
libsasl2-dev
4340

44-
```
45-
4641
# Add the WASM target to the rust toolchain
4742
rustup target add wasm32-unknown-unknown
4843

@@ -67,6 +62,24 @@ If you're using Podman, ensure `docker compose` resolves to Compose v2.
6762

6863
To run the server from source instead, see [`services/server/README.md`](services/server/README.md).
6964

65+
### Clearing stale build caches
66+
67+
Builds are cached by [Turbo](https://turborepo.com). The cache key does not
68+
track changes to installed dependencies, so after switching branches or updating
69+
deps (e.g. a `uniffi-bindgen-react-native` / `@ubjs/core` bump) `pnpm build` can
70+
restore a stale cached output and fail with mismatched generated bindings — for
71+
example a TypeScript error that two `Query` / `UniffiEnum` types "are unrelated".
72+
73+
If that happens, clear the build cache and rebuild:
74+
75+
```sh
76+
pnpm clean:cache
77+
pnpm build
78+
```
79+
80+
If the generated uniffi bindings themselves are stale (not just their cache),
81+
also regenerate them with `pnpm ubrn:clean` followed by `pnpm build`.
82+
7083
## Project Structure
7184

7285
### Packages

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"dev": "turbo run dev",
77
"build": "turbo run build",
8+
"clean:cache": "rm -rf .turbo node_modules/.cache/turbo",
89
"format": "biome check",
910
"format:fix": "biome check --write",
1011
"generate": "turbo run generate",

packages/js-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@protobuf-ts/plugin": "^2.11.1",
3636
"ts-loader": "^9.5.4",
3737
"typescript": "catalog:",
38-
"vitest": "^3.2.6",
38+
"vitest": "^4.0.0",
3939
"webpack": "^5.100.1",
4040
"webpack-cli": "^7.0.0"
4141
}

packages/react-native/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.16.0
1+
24.17.0

packages/react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"prettier": "^3.4.2",
7777
"react": "19.2.7",
7878
"react-native": "0.83.0",
79-
"react-native-builder-bob": "^0.42.0",
79+
"react-native-builder-bob": "^0.43.0",
8080
"typescript": "catalog:"
8181
},
8282
"peerDependencies": {

0 commit comments

Comments
 (0)