Skip to content

Commit 3365e3d

Browse files
committed
docs: 0.31.1 release notes
1 parent c88fa95 commit 3365e3d

File tree

3 files changed

+84
-1
lines changed

3 files changed

+84
-1
lines changed

docs/content/docs/updates/changelog.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ patch version will be incremented for features.
99

1010
---
1111

12+
## [0.31.1] - 2025-04-19
13+
14+
### Features
15+
16+
- ts: Make `Provider` require publicKey instead of wallet in accounts resolver ([#3613](https://github.com/coral-xyz/anchor/pull/3613))
17+
18+
### Fixes
19+
20+
- idl: Update `proc-macro2` usage for latest nightly ([#3663](https://github.com/solana-foundation/anchor/pull/3663))
21+
- cli, docker: Replace `backpackapp/build` Docker image with `solanafoundation/anchor` ([#3619](https://github.com/coral-xyz/anchor/pull/3619)).
22+
23+
### Breaking
24+
1225
## [0.31.0] - 2025-03-08
1326

1427
### Features
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
title: 0.31.1
3+
description: Anchor - Release Notes 0.31.1
4+
---
5+
6+
This release uses a new docker image found at `solanafoundation/anchor` for the `anchor verify` command. New images will be pushed to this organization in the future.
7+
8+
Releases for anchor will also be published under the `solanafoundation` Github organization from now on.
9+
10+
As always, there are a great number of changes, but we'll only be covering the
11+
most important ones here. For a list of all notable changes, see the
12+
[CHANGELOG](https://github.com/coral-xyz/anchor/blob/v0.31.1/CHANGELOG.md#0311---2025-04-19).
13+
14+
### IDL Build Fixes
15+
16+
As of `nightly-2025-04-16`, `SourceFile` does not exist anymore.
17+
IDLs have been historically built with nightly, and in order to fix this we had
18+
to update our `proc_macro2` usage accordingly.
19+
20+
If you ran into the following error whild building:
21+
22+
```
23+
no method named `source_file` found for reference `&proc_macro::Span` in the current scope
24+
```
25+
26+
This should now be fixed in this release.
27+
28+
29+
---
30+
31+
## How to upgrade
32+
33+
1. Install the latest version of `avm`:
34+
35+
```sh
36+
cargo install --git https://github.com/coral-xyz/anchor avm --force
37+
```
38+
39+
This will allow installing Anchor CLI without having to compile from source,
40+
see [Install from binary](#install-from-binary).
41+
42+
2. Update `anchor-cli`:
43+
44+
```sh
45+
avm install 0.31.1
46+
```
47+
48+
3. Update Anchor crate(s) to `0.31.1`.
49+
50+
4. Update TS package(s) to `0.31.1`.
51+
52+
## Recommended Solana Version
53+
54+
The recommended Solana version is `2.1.0`. This is a special upgrade because
55+
some of the Solana binaries have been renamed to Agave, see
56+
[Agave transition](https://github.com/anza-xyz/agave/wiki/Agave-Transition).
57+
58+
You can install the newer tooling by running:
59+
60+
```
61+
sh -c "$(curl -sSfL https://release.anza.xyz/v2.1.0/install)"
62+
```
63+
64+
This change is handled automatically if you specify `toolchain.solana_version`,
65+
see [Automatic Agave transition](#automatic-agave-transition).
66+
67+
---
68+
69+
See the full list of notable changes in the
70+
[CHANGELOG](https://github.com/solana-foundation/anchor/blob/v0.31.1/CHANGELOG.md#0311---2025-04-19).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"title": "Release Notes",
3-
"pages": ["0-31-0", "0-30-1", "0-30-0", "0-29-0"]
3+
"pages": ["0-31-1", "0-31-0", "0-30-1", "0-30-0", "0-29-0"]
44
}

0 commit comments

Comments
 (0)