@typesol/cli 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,12 +104,14 @@ To test against accounts that exist on mainnet (a mint, an oracle, another progr
104
104
  written to `tests/accounts/`, which `testProgram` loads into its LiteSVM before your first test; commit the directory so
105
105
  the tests run offline. `loadClonedAccounts(svm, dir)` does the same for a LiteSVM of your own.
106
106
 
107
- `t.svm`, `t.programId`, `t.idl` and `t.coder` are there for anything else. `programHarness(svm, programId, idl)` gives the same helpers for a
107
+ `t.svm`, `t.programId` and `t.idl` are there for anything else, and `t.coder` is Anchor's `BorshCoder` for the IDL
108
+ (loaded from `@anchor-lang/core` the first time it is read: `npm install -D @anchor-lang/core` to use it). `programHarness(svm, programId, idl)` gives the same helpers for a
108
109
  program you loaded yourself, and `svmConnection(svm)` the RPC pair alone (for any LiteSVM, e.g. one with an Anchor
109
110
  program loaded). Transactions sent through it run at once; `getProgramAccounts` (`fetchAll`) sees the accounts those
110
111
  transactions named, plus any you `track(...)`.
111
112
 
112
- The module needs `litesvm` and `@anchor-lang/core`, which `typesol init` adds to `devDependencies`.
113
+ The module needs `litesvm`, which `typesol init` adds to `devDependencies`. It encodes arguments and decodes accounts
114
+ and return data from the IDL with its own Borsh coder, so Anchor's TypeScript package is not needed.
113
115
 
114
116
  ## Epochs and staking
115
117
 
package/llms-full.txt CHANGED
@@ -57,9 +57,8 @@ and runs it in LiteSVM, an in-process Solana runtime. `build` writes `target/cou
57
57
  IDL), `counter.client.ts` and `counter.build.json`.
58
58
 
59
59
  `init` also writes rules and an MCP server config for AI coding agents (AGENTS.md, CLAUDE.md, `.cursor/`, `.mcp.json`)
60
- and lists them; `--no-agent-files` leaves them out. `npm install` reports advisories (moderate and high) and packages
61
- with install scripts: they come from `@anchor-lang/core` and the Solana web3.js it depends on, which `typesol/testing`
62
- uses to encode instructions and decode accounts, so the tests need it; none of it is in the program you deploy.
60
+ and lists them; `--no-agent-files` leaves them out. `typesol/testing` encodes instructions and decodes accounts from
61
+ the IDL itself, so a new project installs neither Anchor's TypeScript package nor Solana web3.js 1.x.
63
62
 
64
63
  Other versions work, but their binaries are not covered by the project's tests: `typesol build` warns once when the
65
64
  clang is another one (`--toolchain-strict` or `TYPESOL_TOOLCHAIN=strict` makes that an error), and every build records
@@ -4837,12 +4836,14 @@ To test against accounts that exist on mainnet (a mint, an oracle, another progr
4837
4836
  written to `tests/accounts/`, which `testProgram` loads into its LiteSVM before your first test; commit the directory so
4838
4837
  the tests run offline. `loadClonedAccounts(svm, dir)` does the same for a LiteSVM of your own.
4839
4838
 
4840
- `t.svm`, `t.programId`, `t.idl` and `t.coder` are there for anything else. `programHarness(svm, programId, idl)` gives the same helpers for a
4839
+ `t.svm`, `t.programId` and `t.idl` are there for anything else, and `t.coder` is Anchor's `BorshCoder` for the IDL
4840
+ (loaded from `@anchor-lang/core` the first time it is read: `npm install -D @anchor-lang/core` to use it). `programHarness(svm, programId, idl)` gives the same helpers for a
4841
4841
  program you loaded yourself, and `svmConnection(svm)` the RPC pair alone (for any LiteSVM, e.g. one with an Anchor
4842
4842
  program loaded). Transactions sent through it run at once; `getProgramAccounts` (`fetchAll`) sees the accounts those
4843
4843
  transactions named, plus any you `track(...)`.
4844
4844
 
4845
- The module needs `litesvm` and `@anchor-lang/core`, which `typesol init` adds to `devDependencies`.
4845
+ The module needs `litesvm`, which `typesol init` adds to `devDependencies`. It encodes arguments and decodes accounts
4846
+ and return data from the IDL with its own Borsh coder, so Anchor's TypeScript package is not needed.
4846
4847
 
4847
4848
  ## Epochs and staking
4848
4849
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typesol/cli",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "description": "Compile a TypeScript-syntax language directly to Solana SBF programs.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -88,13 +88,9 @@
88
88
  "typescript": "6.0.3"
89
89
  },
90
90
  "peerDependencies": {
91
- "@anchor-lang/core": "^1.2.1",
92
91
  "litesvm": "^1.6.1"
93
92
  },
94
93
  "peerDependenciesMeta": {
95
- "@anchor-lang/core": {
96
- "optional": true
97
- },
98
94
  "litesvm": {
99
95
  "optional": true
100
96
  }