Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/bumpy-shoes-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@macalinao/codama-instruction-accounts-dedupe-visitor": patch
"@macalinao/codama-nodes-from-anchor-x": patch
"@macalinao/codama-renderers-markdown": patch
"@macalinao/codama-renderers-js-esm": patch
"@macalinao/codama-rename-visitor": patch
"@macalinao/coda-visitors": patch
---

Fix references to bun types
12 changes: 12 additions & 0 deletions .changeset/plain-bats-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@macalinao/codama-instruction-accounts-dedupe-visitor": patch
"@macalinao/codama-nodes-from-anchor-x": patch
"@macalinao/codama-renderers-markdown": patch
"@macalinao/codama-renderers-js-esm": patch
"@macalinao/codama-rename-visitor": patch
"@macalinao/clients-voter-stake-registry": patch
"@macalinao/coda-visitors": patch
"@macalinao/create-coda": patch
---

Make sure everything has @types/bun dev dependency
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

40 changes: 11 additions & 29 deletions bun.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions clients/voter-stake-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ The `coda.config.mjs` file defines custom PDAs for the Voter Stake Registry prog
## Usage

```typescript
import {
findRegistrarPda,
findVoterPda,
findVoterWeightRecordPda
import {
findRegistrarPda,
findVoterPda,
findVoterWeightRecordPda,
} from "@macalinao/clients-voter-stake-registry";

// Get the registrar PDA
const registrarPda = await findRegistrarPda({
const registrarPda = await findRegistrarPda({
realm: realmPublicKey,
realmGoverningTokenMint: mintPublicKey,
});
Expand All @@ -62,4 +62,4 @@ const voterWeightRecordPda = await findVoterWeightRecordPda({

Copyright © 2025 Ian Macalinao

Licensed under the Apache License, Version 2.0
Licensed under the Apache License, Version 2.0
12 changes: 6 additions & 6 deletions devenv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1759437797,
"lastModified": 1760162706,
"owner": "cachix",
"repo": "devenv",
"rev": "89ce1b7ac66ca381a335a60ad6acc723ef6f42f3",
"rev": "0d5ad578728fe4bce66eb4398b8b1e66deceb4e4",
"type": "github"
},
"original": {
Expand Down Expand Up @@ -40,10 +40,10 @@
]
},
"locked": {
"lastModified": 1758108966,
"lastModified": 1759523803,
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "54df955a695a84cd47d4a43e08e1feaf90b1fd9b",
"rev": "cfc9f7bb163ad8542029d303e599c0f7eee09835",
"type": "github"
},
"original": {
Expand Down Expand Up @@ -74,10 +74,10 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1759417375,
"lastModified": 1760256791,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "dc704e6102e76aad573f63b74c742cd96f8f1e6c",
"rev": "832e3b6db48508ae436c2c7bfc0cf914eac6938e",
"type": "github"
},
"original": {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"catalog": {
"eslint": "^9.37.0",
"typescript": "^5.9.3",
"@macalinao/eslint-config": "^6.0.3",
"@macalinao/eslint-config": "^7",
"@macalinao/tsconfig": "^3.2.3",
"@solana/kit": "^3.0.3",
"@types/bun": "^1.2.23",
"@types/bun": "^1.3",
"codama": "^1.3.7",
"@codama/nodes": "^1.3.7",
"@codama/nodes-from-anchor": "^1.2.9",
Expand Down Expand Up @@ -54,7 +54,7 @@
"turbo": "^2.5.8",
"typedoc": "^0.28.13"
},
"packageManager": "bun@1.2.23",
"packageManager": "bun@1.3.0",
"lint-staged": {
"*.{json,jsonc,html}": "biome format --write --no-errors-on-unmatched"
},
Expand Down
1 change: 1 addition & 0 deletions packages/coda-visitors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@macalinao/eslint-config": "catalog:",
"@macalinao/tsconfig": "catalog:",
"eslint": "catalog:",
"@types/bun": "catalog:",
"typescript": "catalog:"
}
}
2 changes: 1 addition & 1 deletion packages/coda-visitors/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "@macalinao/tsconfig/tsconfig.base.json",
"compilerOptions": {
"isolatedDeclarations": false,
"types": ["bun-types"]
"types": ["bun"]
},
"exclude": ["src/**/*.test.ts", "dist/**"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"devDependencies": {
"@macalinao/eslint-config": "catalog:",
"@macalinao/tsconfig": "catalog:",
"@types/bun": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { IdlV01InstructionAccountItem } from "@codama/nodes-from-anchor";
import type { AccountNode, InstructionArgumentNode } from "codama";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { AnchorIdl } from "@codama/nodes-from-anchor";
import type { RootNode } from "codama";
Expand Down
2 changes: 1 addition & 1 deletion packages/codama-nodes-from-anchor-x/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"devDependencies": {
"@macalinao/eslint-config": "catalog:",
"@macalinao/tsconfig": "catalog:",
"@types/bun": "latest",
"@types/bun": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/codama-nodes-from-anchor-x/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@macalinao/tsconfig/tsconfig.base.json",
"compilerOptions": {
"types": ["bun-types"]
"types": ["bun"]
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts", "dist"]
Expand Down
1 change: 1 addition & 0 deletions packages/codama-rename-visitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"codama": "catalog:"
},
"devDependencies": {
"@types/bun": "catalog:",
"@macalinao/eslint-config": "catalog:",
"@macalinao/tsconfig": "catalog:",
"eslint": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { ProgramNode, RootNode } from "codama";
import { describe, expect, it } from "bun:test";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { ProgramNode, RootNode } from "codama";
import { describe, expect, it } from "bun:test";
Expand Down
2 changes: 1 addition & 1 deletion packages/codama-rename-visitor/src/rename-visitor.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { ProgramNode, RootNode } from "codama";
import { describe, expect, it } from "bun:test";
Expand Down
2 changes: 1 addition & 1 deletion packages/codama-rename-visitor/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@macalinao/tsconfig/tsconfig.base.json",
"compilerOptions": {
"types": ["bun-types"]
"types": ["bun"]
},
"exclude": ["src/**/*.test.ts", "dist/**"]
}
3 changes: 2 additions & 1 deletion packages/codama-renderers-js-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@macalinao/eslint-config": "catalog:",
"@macalinao/tsconfig": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:"
"typescript": "catalog:",
"@types/bun": "catalog:"
}
}
2 changes: 1 addition & 1 deletion packages/codama-renderers-js-esm/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "@macalinao/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"types": ["bun-types"]
"types": ["bun"]
}
}
2 changes: 1 addition & 1 deletion packages/codama-renderers-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"url": "https://github.com/macalinao/coda.git"
},
"author": "Ian Macalinao <[email protected]>",
"license": "MIT",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />
import { describe, expect, test } from "bun:test";
import { existsSync, readFileSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { RenderContext } from "../types.js";
import { describe, expect, test } from "bun:test";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />
import { describe, expect, test } from "bun:test";
import { errorNode } from "@codama/nodes";
import { renderError } from "./renderError.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { RenderContext } from "../types.js";
import { describe, expect, test } from "bun:test";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { RenderContext } from "../types.js";
import { describe, expect, test } from "bun:test";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { RenderContext } from "../types.js";
import { describe, expect, test } from "bun:test";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="bun-types" />
/// <reference types="bun" />

import type { RenderContext } from "../types.js";
import { describe, expect, test } from "bun:test";
Expand Down
2 changes: 1 addition & 1 deletion packages/create-coda/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@macalinao/eslint-config": "^6.0.2",
"@macalinao/tsconfig": "^3.2.3",
"@solana/kit": "*",
"@types/bun": "latest",
"@types/bun": "catalog:",
"eslint": "^9.37.0",
"typescript": "^5.9.3"
}
Expand Down
1 change: 0 additions & 1 deletion vendor/fumadocs
Submodule fumadocs deleted from 418a4b