Skip to content

Commit 465b45a

Browse files
committed
chore(deps): loosen library ranges and scope pin rule to example
Library package.json may use ranges so consumers aren't blocked on exact-version updates. Only the example app needs deterministic pins. - Loosen @craftzdog/react-native-buffer to ^6.1.2 - Loosen react-native-quick-base64 peerDep to >=3.0.0 - Scope exact-pin rule to example app's package.json
1 parent 298fe81 commit 465b45a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.agents/rules/code-typescript.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Applies to `*.ts` and `*.tsx`.
1717
- Write explicit return types.
1818
- Keep functions minimal and modular.
1919
- Use Bun for package management; do not use npm/yarn/pnpm.
20-
- Pin dependency versions exactly in `package.json`. No caret (`^`) or tilde (`~`) ranges. Applies to `dependencies`, `devDependencies`, and `peerDependencies`. Use the version `bun.lock` resolved.
20+
- In the example app's `package.json`, pin dependency versions exactly. No caret (`^`) or tilde (`~`) ranges. Applies to `dependencies` and `devDependencies`. Use the version `bun.lock` resolved.
21+
- Library `package.json` (under `packages/*`) may use ranges (`^`, `>=`) for `dependencies` and `peerDependencies` to allow consumer flexibility.
2122
- For React, minimize `useEffect`; use named effect functions if unavoidable.
2223

2324
## Formatting

packages/react-native-quick-crypto/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"registry": "https://registry.npmjs.org/"
107107
},
108108
"dependencies": {
109-
"@craftzdog/react-native-buffer": "6.1.2",
109+
"@craftzdog/react-native-buffer": "^6.1.2",
110110
"events": "3.3.0",
111111
"readable-stream": "4.7.0",
112112
"safe-buffer": "^5.2.1",
@@ -131,7 +131,7 @@
131131
"react": "*",
132132
"react-native": "*",
133133
"react-native-nitro-modules": ">=0.31.2",
134-
"react-native-quick-base64": "3.0.0",
134+
"react-native-quick-base64": ">=3.0.0",
135135
"expo": ">=48.0.0",
136136
"expo-build-properties": "*"
137137
},

0 commit comments

Comments
 (0)