Skip to content

Commit 51b82c6

Browse files
authored
chore: updated unreleased changelog and fixed previous entries (solana-foundation#4306)
1 parent 95c26f5 commit 51b82c6

File tree

1 file changed

+51
-4
lines changed

1 file changed

+51
-4
lines changed

CHANGELOG.md

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ The minor version will be incremented upon a breaking change and the patch versi
1818
- 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)).
1919
- lang: Add `declare_program!` support with just `anchor_client` and not `anchor_lang` ([#4157](https://github.com/solana-foundation/anchor/pull/4157)).
2020
- 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)).
2135

2236
### Fixes
2337

@@ -30,6 +44,16 @@ The minor version will be incremented upon a breaking change and the patch versi
3044
- idl: Fix `local_file` method not found for `proc_macro2::Span` error ([#4187](https://github.com/solana-foundation/anchor/pull/4187)).
3145
- 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)).
3246
- 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)).
54+
- cli: Fix `i128`/`u128` deserialization ([#3938](https://github.com/solana-foundation/anchor/pull/3938)).
55+
- ts: Fix incorrect Anchor dependency version requirements ([#4138](https://github.com/solana-foundation/anchor/pull/4138)).
56+
- lang: Omit `parsers` module of `declare_program!` during on-chain (Solana) builds ([#4109](https://github.com/solana-foundation/anchor/pull/4109)).
3357

3458
### Breaking
3559

@@ -41,6 +65,14 @@ The minor version will be incremented upon a breaking change and the patch versi
4165
- cli: Remove the `login` command ([#4182](https://github.com/solana-foundation/anchor/pull/4182)).
4266
- idl: Exclude external accounts ([#4197](https://github.com/solana-foundation/anchor/pull/4197)).
4367
- 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)).
4476

4577
## [0.32.1] - 2025-10-09
4678

@@ -63,17 +95,15 @@ The minor version will be incremented upon a breaking change and the patch versi
6395
- 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)).
6496
- lang: Replace `solana-program` crate with smaller crates ([#3819](https://github.com/solana-foundation/anchor/pull/3819)).
6597
- 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)).
6798
- lang: Use `solana-invoke` instead of `solana_cpi::invoke` ([#3900](https://github.com/solana-foundation/anchor/pull/3900)).
6899
- client: remove `solana-client` from `anchor-client` and `cli` ([#3877](https://github.com/solana-foundation/anchor/pull/3877)).
69100
- idl: Build IDL on stable Rustc ([#3842](https://github.com/solana-foundation/anchor/pull/3842)).
70101
- 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)).
72102
- ts: Add support for Bun as a package manager ([#3586](https://github.com/solana-foundation/anchor/pull/3586)).
73103
- lang: Add support for tuple types in space calculation ([#3744](https://github.com/solana-foundation/anchor/pull/3744)).
74104
- lang: Add missing pubkey const generation ([#3677](https://github.com/solana-foundation/anchor/pull/3677)).
75105
- 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)).
77107

78108
### Fixes
79109

@@ -86,10 +116,10 @@ The minor version will be incremented upon a breaking change and the patch versi
86116
- lang: update bytemuck ([#3858](https://github.com/solana-foundation/anchor/pull/3858)).
87117
- idl: disable Locale in camelCase ([#3845](https://github.com/solana-foundation/anchor/pull/3845)).
88118
- ts: Remove event parsing panic ([#3657](https://github.com/solana-foundation/anchor/pull/3657)).
119+
- avm: Expose `anchor` on `PATH` via `$CARGO_HOME/bin` symlink ([#3835](https://github.com/solana-foundation/anchor/pull/3835)).
89120

90121
### Breaking
91122

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)).
93123
- spl: Update SPL dependencies to latest compatible versions ([#3860](https://github.com/solana-foundation/anchor/pull/3860)).
94124
- 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)).
95125
- 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
172202
- avm: Make installation download binaries by default ([#3445](https://github.com/coral-xyz/anchor/pull/3445)).
173203
- idl: Support PDA resolution of call expressions that don't have any arguments ([#3485](https://github.com/coral-xyz/anchor/pull/3485)).
174204
- spl: Add `anchor-debug` feature ([#3511](https://github.com/coral-xyz/anchor/pull/3511)).
205+
- avm: Always install commit hash inputs from source ([#3461](https://github.com/coral-xyz/anchor/pull/3461)).
175206

176207
### Fixes
177208

@@ -184,6 +215,7 @@ Releases for anchor will also be published under the `solanafoundation` Github o
184215
- lang: Fix using `owner` constraint with `Box`ed accounts ([#3087](https://github.com/coral-xyz/anchor/pull/3087)).
185216
- lang: Add a sanity check for unimplemented token extensions ([#3090](https://github.com/coral-xyz/anchor/pull/3090)).
186217
- cli: Skip IDL checks if `--no-idl` option is passed ([#3093](https://github.com/coral-xyz/anchor/pull/3093)).
218+
- lang: Fix compilation error when an `#[account]` struct has generics ([#3148](https://github.com/coral-xyz/anchor/pull/3148)).
187219
- lang: Remove unnecessary clone in account exit routine ([#3139](https://github.com/coral-xyz/anchor/pull/3139)).
188220
- cli: Fix installation with `--locked` argument using Rust v1.80 due to `time` crate issue ([#3143](https://github.com/coral-xyz/anchor/pull/3143)).
189221
- lang: Fix compilation warnings due to unused deprecated program id macros ([#3170](https://github.com/coral-xyz/anchor/pull/3170)).
@@ -226,6 +258,9 @@ Releases for anchor will also be published under the `solanafoundation` Github o
226258
- idl: Fix using account or arg values for `seeds::program` ([#3570](https://github.com/coral-xyz/anchor/pull/3570)).
227259
- lang: Fix using `data` as an instruction parameter name in `declare_program!` ([#3574](https://github.com/coral-xyz/anchor/pull/3574)).
228260
- cli: Use camelCase for program name in `anchor.workspace` templates ([#3581](https://github.com/coral-xyz/anchor/pull/3581)).
261+
- cli: Fix the default JS update command being incorrect ([#3337](https://github.com/coral-xyz/anchor/pull/3337)).
262+
- cli: Remove stripping workspace prefix from program id of the `upgrade` command ([#3345](https://github.com/coral-xyz/anchor/pull/3345)).
263+
- cli: Convert package managers to lowercase during serialization ([#3531](https://github.com/coral-xyz/anchor/pull/3531)).
229264

230265
### Breaking
231266

@@ -253,6 +288,8 @@ Releases for anchor will also be published under the `solanafoundation` Github o
253288
- spl: Upgrade SPL deps to latest ([#3346](https://github.com/coral-xyz/anchor/pull/3346)).
254289
- cli: Upgrade `typescript` version of templates to v5 ([#3480](https://github.com/coral-xyz/anchor/pull/3480)).
255290
- ts: Remove `snake-case` dependency ([#3507](https://github.com/coral-xyz/anchor/pull/3507)).
291+
- deps: Upgrade Solana to 2.1.0 ([#3339](https://github.com/solana-foundation/anchor/pull/3339)).
292+
- spl: Update `mpl-token-metadata` version requirement to `5` ([#3356](https://github.com/solana-foundation/anchor/pull/3356)).
256293

257294
## [0.30.1] - 2024-06-20
258295

@@ -276,6 +313,8 @@ Releases for anchor will also be published under the `solanafoundation` Github o
276313
- idl: Remove `anchor-syn` dependency ([#3030](https://github.com/coral-xyz/anchor/pull/3030)).
277314
- lang: Add `const` of program ID to `declare_id!` and `declare_program!` ([#3019](https://github.com/coral-xyz/anchor/pull/3019)).
278315
- 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)).
279318

280319
### Fixes
281320

@@ -300,9 +339,12 @@ Releases for anchor will also be published under the `solanafoundation` Github o
300339
- idl: Fix generation with unsupported expressions ([#3033](https://github.com/coral-xyz/anchor/pull/3033)).
301340
- idl: Fix using `address` constraint with field expressions ([#3034](https://github.com/coral-xyz/anchor/pull/3034)).
302341
- 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)).
303343

304344
### Breaking
305345

346+
- deps: Upgrade Solana to 1.18.17 ([#3039](https://github.com/coral-xyz/anchor/pull/3039)).
347+
306348
## [0.30.0] - 2024-04-15
307349

308350
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.
342384
- lang: Add `Event` utility type to get events from bytes ([#2897](https://github.com/coral-xyz/anchor/pull/2897)).
343385
- lang, spl: Add support for [token extensions](https://solana.com/solutions/token-extensions) ([#2789](https://github.com/coral-xyz/anchor/pull/2789)).
344386
- 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)).
345389

346390
### Fixes
347391

@@ -368,6 +412,7 @@ See the [Anchor 0.30 release notes](https://www.anchor-lang.com/release-notes/0.
368412
- 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)).
369413
- 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)).
370414
- spl: Fix not being able to deserialize newer token 2022 extensions ([#2876](https://github.com/coral-xyz/anchor/pull/2876)).
415+
- client: Fix erroneous Cluster websocket ports ([#2690](https://github.com/coral-xyz/anchor/pull/2690)).
371416
- spl: Remove `solana-program` dependency ([#2900](https://github.com/coral-xyz/anchor/pull/2900)).
372417
- spl: Make `TokenAccount` and ` Mint` `Copy` ([#2904](https://github.com/coral-xyz/anchor/pull/2904)).
373418
- ts: Add missing errors ([#2906](https://github.com/coral-xyz/anchor/pull/2906)).
@@ -394,6 +439,8 @@ See the [Anchor 0.30 release notes](https://www.anchor-lang.com/release-notes/0.
394439
- ts: Remove `programId` parameter of the `Program` constructor ([#2864](https://github.com/coral-xyz/anchor/pull/2864)).
395440
- idl, syn: Move IDL types from the `anchor-syn` crate to the new IDL crate ([#2882](https://github.com/coral-xyz/anchor/pull/2882)).
396441
- idl: Add `#[non_exhaustive]` to IDL enums ([#2890](https://github.com/coral-xyz/anchor/pull/2890)).
442+
- idl: Rename IDL crate from `anchor-idl` to `anchor-lang-idl` ([#2908](https://github.com/coral-xyz/anchor/pull/2908)).
443+
- deps: Upgrade Solana to 1.18.8 ([#2867](https://github.com/coral-xyz/anchor/pull/2867)).
397444

398445
## [0.29.0] - 2023-10-16
399446

0 commit comments

Comments
 (0)