You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+51-4Lines changed: 51 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,20 @@ The minor version will be incremented upon a breaking change and the patch versi
18
18
- ts: Export all IDL types from the root. Users can now update `dist/cjs/idl` imports to import directly from `@anchor-lang/core` ([#3948](https://github.com/solana-foundation/anchor/pull/3948)).
19
19
- lang: Add `declare_program!` support with just `anchor_client` and not `anchor_lang` ([#4157](https://github.com/solana-foundation/anchor/pull/4157)).
20
20
- lang: Export `Owners` from `prelude` ([#4189](https://github.com/solana-foundation/anchor/pull/4189)).
21
+
- cli: Use surfpool by default for `anchor test` and `anchor localnet` commands ([#4106](https://github.com/solana-foundation/anchor/pull/4106)).
22
+
- lang: Optimize enums with all unit variants and empty arrays with `Lazy` ([#4237](https://github.com/solana-foundation/anchor/pull/4237)).
23
+
- lang: Include `init_if_needed` accounts in duplicate mutable account checks ([#4239](https://github.com/solana-foundation/anchor/pull/4239)).
24
+
- client: Accept `FnMut` for events closure ([#4024](https://github.com/solana-foundation/anchor/pull/4024)).
25
+
- client: Export all types used by the public API ([#4211](https://github.com/solana-foundation/anchor/pull/4211)).
26
+
- lang: Make `common::close` accept references ([#4178](https://github.com/solana-foundation/anchor/pull/4178)).
27
+
- cli/idl: Add `--allow-localnet` option for IDL commands; fix panic when run outside a workspace ([#4252](https://github.com/solana-foundation/anchor/pull/4252)).
28
+
- lang: Check owner on account reload ([#3837](https://github.com/solana-foundation/anchor/pull/3837)).
29
+
- lang/ts: Upgrade borsh to 1.5.7 ([#4012](https://github.com/solana-foundation/anchor/pull/4012)).
30
+
- syn: Relax seeds syntax to allow more flexible PDA seed expressions ([#3813](https://github.com/solana-foundation/anchor/pull/3813)).
31
+
- lang: Deprecate `AccountInfo` usage in `Accounts` macro with a compile-time warning ([#3854](https://github.com/solana-foundation/anchor/pull/3854)).
32
+
- cli: Update `anchor init` to use the `multiple` program template by default ([#3958](https://github.com/solana-foundation/anchor/pull/3958)).
33
+
- cli: Add `hooks` section to `Anchor.toml` for `{pre,post}-{build,test,deploy}` lifecycle hooks ([#3862](https://github.com/solana-foundation/anchor/pull/3862)).
34
+
- lang: Add generic program validation support to `Program` type allowing `Program<'info>` for executable-only validation ([#3878](https://github.com/solana-foundation/anchor/pull/3878)).
21
35
22
36
### Fixes
23
37
@@ -30,6 +44,16 @@ The minor version will be incremented upon a breaking change and the patch versi
30
44
- idl: Fix `local_file` method not found for `proc_macro2::Span` error ([#4187](https://github.com/solana-foundation/anchor/pull/4187)).
31
45
- lang: Relax duplicate mutable account constraint to only check types that serialize on exit (`Account`, `LazyAccount`, `InterfaceAccount`, `Migration`) ([#4202](https://github.com/solana-foundation/anchor/pull/4202)).
32
46
- idl: Make `serde_json` optional ([#4296](https://github.com/solana-foundation/anchor/pull/4296)).
47
+
- lang: Fix `declare_program!` instruction parser with optional accounts ([#4180](https://github.com/solana-foundation/anchor/pull/4180)).
48
+
- lang: Use original `borsh` derives ([#4205](https://github.com/solana-foundation/anchor/pull/4205)).
49
+
- lang: Fix unexpected account substitution in `InterfaceAccount` ([#4139](https://github.com/solana-foundation/anchor/pull/4139)).
50
+
- idl: Respect `offset = ...` in IDL generation for custom errors ([#4040](https://github.com/solana-foundation/anchor/pull/4040)).
51
+
- cli: Relax separate dependency check for `solana-program` ([#4166](https://github.com/solana-foundation/anchor/pull/4166)).
52
+
- lang: Enforce type and count matching between instruction handler and `#[instruction(..)]` args ([#4000](https://github.com/solana-foundation/anchor/pull/4000)).
53
+
- lang: Handle invalid camelCase identifiers more gracefully ([#4021](https://github.com/solana-foundation/anchor/pull/4021)).
- idl: Remove the conflicting account names check ([#4294](https://github.com/solana-foundation/anchor/pull/4294)).
68
+
- deps: Update to Solana 3.0 ([#4031](https://github.com/solana-foundation/anchor/pull/4031)).
69
+
- idl: Remove legacy IDL instructions and integrate Program Metadata for IDL management ([#3798](https://github.com/solana-foundation/anchor/pull/3798)).
70
+
- ts: Rename TypeScript packages from `@coral-xyz/anchor` to `@anchor-lang/anchor` ([#4141](https://github.com/solana-foundation/anchor/pull/4141)).
71
+
- lang: Remove program account info from CPI context ([#2762](https://github.com/solana-foundation/anchor/pull/2762)).
72
+
- cli: Remove dependency on the external `solana` CLI; native implementations provided for balance, airdrop, address, deploy, and other commands ([#4099](https://github.com/solana-foundation/anchor/pull/4099)).
73
+
- idl: Disallow multiple `#[error_code]` definitions in a single program ([#4300](https://github.com/solana-foundation/anchor/pull/4300)).
74
+
- cli: Remove the `[registry]` section from `Anchor.toml` ([#4299](https://github.com/solana-foundation/anchor/pull/4299)).
75
+
- client: Make sending a tx not panic and instead return an Error when signing fails ([#3865](https://github.com/solana-foundation/anchor/pull/3865)).
44
76
45
77
## [0.32.1] - 2025-10-09
46
78
@@ -63,17 +95,15 @@ The minor version will be incremented upon a breaking change and the patch versi
63
95
- cli: Replace `anchor verify` to use `solana-verify` under the hood, adding automatic installation via AVM, local path support, and future-proof argument passing ([#3768](https://github.com/solana-foundation/anchor/pull/3768)).
64
96
- lang: Replace `solana-program` crate with smaller crates ([#3819](https://github.com/solana-foundation/anchor/pull/3819)).
65
97
- cli: Make `anchor deploy` to upload the IDL to the cluster by default unless `--no-idl` is passed ([#3863](https://github.com/solana-foundation/anchor/pull/3863)).
66
-
- lang: Add generic program validation support to `Program` type allowing `Program<'info>` for executable-only validation ([#3878](https://github.com/solana-foundation/anchor/pull/3878)).
67
98
- lang: Use `solana-invoke` instead of `solana_cpi::invoke` ([#3900](https://github.com/solana-foundation/anchor/pull/3900)).
68
99
- client: remove `solana-client` from `anchor-client` and `cli` ([#3877](https://github.com/solana-foundation/anchor/pull/3877)).
69
100
- idl: Build IDL on stable Rustc ([#3842](https://github.com/solana-foundation/anchor/pull/3842)).
70
101
- lang: Add custom error when using init on SystemAccount ([#3828](https://github.com/solana-foundation/anchor/pull/3828)).
71
-
- lang: Add `errors` to `declare_program` ([#3757](https://github.com/solana-foundation/anchor/pull/3757)).
72
102
- ts: Add support for Bun as a package manager ([#3586](https://github.com/solana-foundation/anchor/pull/3586)).
73
103
- lang: Add support for tuple types in space calculation ([#3744](https://github.com/solana-foundation/anchor/pull/3744)).
- cli: Add the Minimum Supported Rust Version (MSRV) to the Rust template, since an arbitrary compiler version isn't supported ([#3873](https://github.com/solana-foundation/anchor/pull/3873)).
76
-
-cli: Add `hooks` section to `Anchor.toml`([#3862](https://github.com/solana-foundation/anchor/pull/3862)).
106
+
-lang: Update mollusk test template dependencies to `~0.4` and remove redundant `solana-program` dev-dependency from generated template ([#3790](https://github.com/solana-foundation/anchor/pull/3790)).
77
107
78
108
### Fixes
79
109
@@ -86,10 +116,10 @@ The minor version will be incremented upon a breaking change and the patch versi
- avm: Expose `anchor` on `PATH` via `$CARGO_HOME/bin` symlink ([#3835](https://github.com/solana-foundation/anchor/pull/3835)).
89
120
90
121
### Breaking
91
122
92
-
- client: Make sending a tx not panic and instead return an Error when signing fails ([#3865](https://github.com/solana-foundation/anchor/pull/3865)).
93
123
- spl: Update SPL dependencies to latest compatible versions ([#3860](https://github.com/solana-foundation/anchor/pull/3860)).
94
124
- cli: Replace `anchor verify` to use `solana-verify` under the hood, adding automatic installation via AVM, local path support, and future-proof argument passing ([#3768](https://github.com/solana-foundation/anchor/pull/3768)).
95
125
- cli: Upload IDL by default with an option to skip ((#3863)[https://github.com/solana-foundation/anchor/pull/3863]).
@@ -172,6 +202,7 @@ Releases for anchor will also be published under the `solanafoundation` Github o
172
202
- avm: Make installation download binaries by default ([#3445](https://github.com/coral-xyz/anchor/pull/3445)).
173
203
- idl: Support PDA resolution of call expressions that don't have any arguments ([#3485](https://github.com/coral-xyz/anchor/pull/3485)).
- lang: Add `const` of program ID to `declare_id!` and `declare_program!` ([#3019](https://github.com/coral-xyz/anchor/pull/3019)).
278
315
- idl: Add separate spec crate ([#3036](https://github.com/coral-xyz/anchor/pull/3036)).
316
+
- lang: Include `pubkey!` macro in `prelude` ([#3026](https://github.com/coral-xyz/anchor/pull/3026)).
317
+
- cli: Print total steps in IDL buffer writes ([#2944](https://github.com/coral-xyz/anchor/pull/2944)).
279
318
280
319
### Fixes
281
320
@@ -300,9 +339,12 @@ Releases for anchor will also be published under the `solanafoundation` Github o
300
339
- idl: Fix generation with unsupported expressions ([#3033](https://github.com/coral-xyz/anchor/pull/3033)).
301
340
- idl: Fix using `address` constraint with field expressions ([#3034](https://github.com/coral-xyz/anchor/pull/3034)).
302
341
- lang: Fix using `bytemuckunsafe` account serialization with `declare_program!` ([#3037](https://github.com/coral-xyz/anchor/pull/3037)).
342
+
- ts: Upgrade `@babel/traverse` to 7.24.1 ([#2919](https://github.com/coral-xyz/anchor/pull/2919)).
303
343
304
344
### Breaking
305
345
346
+
- deps: Upgrade Solana to 1.18.17 ([#3039](https://github.com/coral-xyz/anchor/pull/3039)).
347
+
306
348
## [0.30.0] - 2024-04-15
307
349
308
350
See the [Anchor 0.30 release notes](https://www.anchor-lang.com/release-notes/0.30.0) for a high-level overview of how to update.
@@ -342,6 +384,8 @@ See the [Anchor 0.30 release notes](https://www.anchor-lang.com/release-notes/0.
342
384
- lang: Add `Event` utility type to get events from bytes ([#2897](https://github.com/coral-xyz/anchor/pull/2897)).
343
385
- lang, spl: Add support for [token extensions](https://solana.com/solutions/token-extensions) ([#2789](https://github.com/coral-xyz/anchor/pull/2789)).
344
386
- lang: Return overflow error from `Lamports` trait operations ([#2907](https://github.com/coral-xyz/anchor/pull/2907)).
387
+
- lang: Add composite accounts support for `declare_program!` ([#2894](https://github.com/coral-xyz/anchor/pull/2894)).
388
+
- client: Expose more parts from logs parsing ([#2707](https://github.com/coral-xyz/anchor/pull/2707)).
345
389
346
390
### Fixes
347
391
@@ -368,6 +412,7 @@ See the [Anchor 0.30 release notes](https://www.anchor-lang.com/release-notes/0.
368
412
- client: Fix `parse_logs_response` to prevent panics when more than 1 outer instruction exists in logs ([#2856](https://github.com/coral-xyz/anchor/pull/2856)).
369
413
- avm, cli: Fix `stdsimd` feature compilation error from `ahash` when installing the CLI using newer Rust versions ([#2867](https://github.com/coral-xyz/anchor/pull/2867)).
370
414
- spl: Fix not being able to deserialize newer token 2022 extensions ([#2876](https://github.com/coral-xyz/anchor/pull/2876)).
0 commit comments