Skip to content

Commit a00f64f

Browse files
authored
Merge pull request #51 from macalinao/igm/bun-fix
Fix references to bun types
2 parents 1586186 + df32708 commit a00f64f

31 files changed

+72
-68
lines changed

.changeset/bumpy-shoes-enjoy.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@macalinao/codama-instruction-accounts-dedupe-visitor": patch
3+
"@macalinao/codama-nodes-from-anchor-x": patch
4+
"@macalinao/codama-renderers-markdown": patch
5+
"@macalinao/codama-renderers-js-esm": patch
6+
"@macalinao/codama-rename-visitor": patch
7+
"@macalinao/coda-visitors": patch
8+
---
9+
10+
Fix references to bun types

.changeset/plain-bats-dress.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@macalinao/codama-instruction-accounts-dedupe-visitor": patch
3+
"@macalinao/codama-nodes-from-anchor-x": patch
4+
"@macalinao/codama-renderers-markdown": patch
5+
"@macalinao/codama-renderers-js-esm": patch
6+
"@macalinao/codama-rename-visitor": patch
7+
"@macalinao/clients-voter-stake-registry": patch
8+
"@macalinao/coda-visitors": patch
9+
"@macalinao/create-coda": patch
10+
---
11+
12+
Make sure everything has @types/bun dev dependency

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

bun.lock

Lines changed: 11 additions & 29 deletions
Large diffs are not rendered by default.

clients/voter-stake-registry/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ The `coda.config.mjs` file defines custom PDAs for the Voter Stake Registry prog
3333
## Usage
3434

3535
```typescript
36-
import {
37-
findRegistrarPda,
38-
findVoterPda,
39-
findVoterWeightRecordPda
36+
import {
37+
findRegistrarPda,
38+
findVoterPda,
39+
findVoterWeightRecordPda,
4040
} from "@macalinao/clients-voter-stake-registry";
4141

4242
// Get the registrar PDA
43-
const registrarPda = await findRegistrarPda({
43+
const registrarPda = await findRegistrarPda({
4444
realm: realmPublicKey,
4545
realmGoverningTokenMint: mintPublicKey,
4646
});
@@ -62,4 +62,4 @@ const voterWeightRecordPda = await findVoterWeightRecordPda({
6262

6363
Copyright © 2025 Ian Macalinao
6464

65-
Licensed under the Apache License, Version 2.0
65+
Licensed under the Apache License, Version 2.0

devenv.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"devenv": {
44
"locked": {
55
"dir": "src/modules",
6-
"lastModified": 1759437797,
6+
"lastModified": 1760162706,
77
"owner": "cachix",
88
"repo": "devenv",
9-
"rev": "89ce1b7ac66ca381a335a60ad6acc723ef6f42f3",
9+
"rev": "0d5ad578728fe4bce66eb4398b8b1e66deceb4e4",
1010
"type": "github"
1111
},
1212
"original": {
@@ -40,10 +40,10 @@
4040
]
4141
},
4242
"locked": {
43-
"lastModified": 1758108966,
43+
"lastModified": 1759523803,
4444
"owner": "cachix",
4545
"repo": "git-hooks.nix",
46-
"rev": "54df955a695a84cd47d4a43e08e1feaf90b1fd9b",
46+
"rev": "cfc9f7bb163ad8542029d303e599c0f7eee09835",
4747
"type": "github"
4848
},
4949
"original": {
@@ -74,10 +74,10 @@
7474
},
7575
"nixpkgs": {
7676
"locked": {
77-
"lastModified": 1759417375,
77+
"lastModified": 1760256791,
7878
"owner": "NixOS",
7979
"repo": "nixpkgs",
80-
"rev": "dc704e6102e76aad573f63b74c742cd96f8f1e6c",
80+
"rev": "832e3b6db48508ae436c2c7bfc0cf914eac6938e",
8181
"type": "github"
8282
},
8383
"original": {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"catalog": {
1414
"eslint": "^9.37.0",
1515
"typescript": "^5.9.3",
16-
"@macalinao/eslint-config": "^6.0.3",
16+
"@macalinao/eslint-config": "^7",
1717
"@macalinao/tsconfig": "^3.2.3",
1818
"@solana/kit": "^3.0.3",
19-
"@types/bun": "^1.2.23",
19+
"@types/bun": "^1.3",
2020
"codama": "^1.3.7",
2121
"@codama/nodes": "^1.3.7",
2222
"@codama/nodes-from-anchor": "^1.2.9",
@@ -54,7 +54,7 @@
5454
"turbo": "^2.5.8",
5555
"typedoc": "^0.28.13"
5656
},
57-
"packageManager": "bun@1.2.23",
57+
"packageManager": "bun@1.3.0",
5858
"lint-staged": {
5959
"*.{json,jsonc,html}": "biome format --write --no-errors-on-unmatched"
6060
},

packages/coda-visitors/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"@macalinao/eslint-config": "catalog:",
5656
"@macalinao/tsconfig": "catalog:",
5757
"eslint": "catalog:",
58+
"@types/bun": "catalog:",
5859
"typescript": "catalog:"
5960
}
6061
}

packages/coda-visitors/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "@macalinao/tsconfig/tsconfig.base.json",
33
"compilerOptions": {
44
"isolatedDeclarations": false,
5-
"types": ["bun-types"]
5+
"types": ["bun"]
66
},
77
"exclude": ["src/**/*.test.ts", "dist/**"]
88
}

packages/codama-instruction-accounts-dedupe-visitor/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"devDependencies": {
5151
"@macalinao/eslint-config": "catalog:",
5252
"@macalinao/tsconfig": "catalog:",
53+
"@types/bun": "catalog:",
5354
"eslint": "catalog:",
5455
"typescript": "catalog:"
5556
}

0 commit comments

Comments
 (0)