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
* chore: updated docs changelog and release notes for v1
* fix typo
* review fixes
* updated more doc files. changes after review
* added missing changes to docs and updated old reference links
* missing link changes, updated 0.32.1 references to 1.0.0
* additional relevant changes in the release notes
* fixed errors example. added line break for consistency
* updated changelog and release date
* fix order on changelog.mdx, adding missing entry, removing dup entry from changelog.md
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10-41Lines changed: 10 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,45 +20,6 @@ The minor version will be incremented upon a breaking change and the patch versi
20
20
21
21
### Features
22
22
23
-
### Fixes
24
-
25
-
- client: Fix deadlock when having multiple websocket listeners ([#4250](https://github.com/solana-foundation/anchor/pull/4250)).
26
-
27
-
### Breaking
28
-
29
-
- lang: Rename `errors` and `ProgramError` of `declare_program!` ([#4347](https://github.com/solana-foundation/anchor/pull/4347)).
30
-
- client: Remove the `solana-account-decoder` crate export ([#4373](https://github.com/solana-foundation/anchor/pull/4373)).
31
-
32
-
## [1.0.0-rc.5] - 2026-03-20
33
-
34
-
### Features
35
-
36
-
- lang, cli, client: Updated solana dependencies to the latest compatible versions. Bumping CI and docker builds to use Solana CLI version 3.1.10 ([#4317](https://github.com/solana-foundation/anchor/pull/4317/))
37
-
38
-
### Fixes
39
-
40
-
- lang: Fix incorrect deserialization for dynamically sized types when using `lazy-account` ([#4319](https://github.com/solana-foundation/anchor/pull/4319))
41
-
- avm: Using a temporary installation dir on cargo install calls to prevent cargo erroring out due to existing `anchor` symlink in `.avm/bin` ([4343](https://github.com/solana-foundation/anchor/pull/4343))
42
-
43
-
### Breaking
44
-
45
-
## [1.0.0-rc.4] - 2026-03-19
46
-
47
-
### Features
48
-
49
-
- avm: Added flags and version labels to explicitly handle pre-releases (`avm list --pre-release`, `avm update --pre-release` and `avm install latest-pre-release`). ([#4335](https://github.com/solana-foundation/anchor/pull/4335))
50
-
- avm: Added `avm self-update` command and passive version check warning for out of date avm ([#4338](https://github.com/solana-foundation/anchor/pull/4338))
51
-
52
-
### Fixes
53
-
54
-
- avm: Fixed handling of new Cargo.toml version location. Fixed handling of pre-release version parsing. ([#4335](https://github.com/solana-foundation/anchor/pull/4335))
55
-
56
-
### Breaking
57
-
58
-
## [1.0.0-rc.3] - 2026-03-18
59
-
60
-
### Features
61
-
62
23
- lang: Add `Migration<'info, From, To>` account type for schema migrations between account types ([#4060](https://github.com/solana-foundation/anchor/pull/4060)).
63
24
- cli: Added a `check_program_id_mismatch` in build time to check if the program ID in the source code matches the program ID in the keypair file ([#4018](https://github.com/solana-foundation/anchor/pull/4018)). This check will be skipped during `anchor test`.
64
25
- lang: Add instruction parser to `declare_program!` ([#4118](https://github.com/solana-foundation/anchor/pull/4118)).
@@ -81,6 +42,9 @@ The minor version will be incremented upon a breaking change and the patch versi
81
42
- 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)).
82
43
- cli: Added `litesvm` test template and made it the default option on `anchor init` ([#4316](https://github.com/solana-foundation/anchor/pull/4316))
83
44
- cli: Added `--install-agent-skills` to automatically install Solana agent skills during `anchor init` ([#4307](https://github.com/solana-foundation/anchor/pull/4307))
45
+
- avm: Added flags and version labels to explicitly handle pre-releases (`avm list --pre-release`, `avm update --pre-release` and `avm install latest-pre-release`). ([#4335](https://github.com/solana-foundation/anchor/pull/4335))
46
+
- avm: Added `avm self-update` command and passive version check warning for out of date avm ([#4338](https://github.com/solana-foundation/anchor/pull/4338))
47
+
- lang, cli, client: Updated solana dependencies to the latest compatible versions. Bumping CI and docker builds to use Solana CLI version 3.1.10 ([#4317](https://github.com/solana-foundation/anchor/pull/4317/))
84
48
85
49
### Fixes
86
50
@@ -105,6 +69,10 @@ The minor version will be incremented upon a breaking change and the patch versi
105
69
- ts: Fix incorrect Anchor dependency version requirements ([#4138](https://github.com/solana-foundation/anchor/pull/4138)).
106
70
- lang: Omit `parsers` module of `declare_program!` during on-chain (Solana) builds ([#4109](https://github.com/solana-foundation/anchor/pull/4109)).
107
71
- docs: Fixed broken links and replaced coral-xyz github references to solana-foundation ([#4320](https://github.com/solana-foundation/anchor/pull/4320))
72
+
- avm: Fixed handling of new Cargo.toml version location. Fixed handling of pre-release version parsing. ([#4335](https://github.com/solana-foundation/anchor/pull/4335))
73
+
- client: Fix deadlock when having multiple websocket listeners ([#4250](https://github.com/solana-foundation/anchor/pull/4250)).
74
+
- lang: Fix incorrect deserialization for dynamically sized types when using `lazy-account` ([#4319](https://github.com/solana-foundation/anchor/pull/4319))
75
+
- avm: Using a temporary installation dir on cargo install calls to prevent cargo erroring out due to existing `anchor` symlink in `.avm/bin` ([4343](https://github.com/solana-foundation/anchor/pull/4343))
108
76
109
77
### Breaking
110
78
@@ -118,13 +86,14 @@ The minor version will be incremented upon a breaking change and the patch versi
118
86
- idl: Remove the conflicting account names check ([#4294](https://github.com/solana-foundation/anchor/pull/4294)).
119
87
- deps: Update to Solana 3.0 ([#4031](https://github.com/solana-foundation/anchor/pull/4031)).
120
88
- idl: Remove legacy IDL instructions and integrate Program Metadata for IDL management ([#3798](https://github.com/solana-foundation/anchor/pull/3798)).
121
-
- ts: Rename TypeScript packages from `@coral-xyz/anchor` to `@anchor-lang/anchor` ([#4141](https://github.com/solana-foundation/anchor/pull/4141)).
89
+
- ts: Rename TypeScript packages from `@coral-xyz/anchor` to `@anchor-lang/core` ([#4141](https://github.com/solana-foundation/anchor/pull/4141)).
122
90
- lang: Remove program account info from CPI context ([#2762](https://github.com/solana-foundation/anchor/pull/2762)).
123
91
- 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)).
124
92
- idl: Disallow multiple `#[error_code]` definitions in a single program ([#4300](https://github.com/solana-foundation/anchor/pull/4300)).
125
93
- cli: Remove the `[registry]` section from `Anchor.toml` ([#4299](https://github.com/solana-foundation/anchor/pull/4299)).
126
94
- client: Make sending a tx not panic and instead return an Error when signing fails ([#3865](https://github.com/solana-foundation/anchor/pull/3865)).
for the [`gen_discriminator` method here](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/codegen/program/common.rs#L21-L24),
for the [`gen_discriminator` method here](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/syn/src/codegen/program/common.rs#L19-L22),
The key functionalities of the `#[account]` macro include:
364
364
365
-
-[Assign Program Owner](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/lib.rs#L130-L143):
365
+
-[Assign Program Owner](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/lib.rs#L132-L145):
366
366
When creating an account, the program owner of the account is automatically
A unique 8 byte discriminator, specific to the account type, is added as the
370
370
first 8 bytes of account data during its initialization. This helps in
371
371
differentiating account types and is used for account validation.
372
-
-[Data Serialization and Deserialization](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/lib.rs#L224-L270):
372
+
-[Data Serialization and Deserialization](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/lib.rs#L226-L272):
373
373
Account data is automatically serialized and deserialized as the account type.
374
374
375
375
```rust title="lib.rs"
@@ -411,7 +411,7 @@ pub struct NewAccount {
411
411
An account discriminator in an Anchor program refers to an 8 byte identifier
412
412
unique to each account type. You can find the implementation of the account
0 commit comments