Skip to content

Commit

Permalink
v0.25.0 (#2031)
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante committed Jul 5, 2022
1 parent c47fb28 commit 6baed77
Show file tree
Hide file tree
Showing 61 changed files with 139 additions and 96 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The minor version will be incremented upon a breaking change and the patch versi

## [Unreleased]

## [0.25.0] - 2022-07-05

### Features

* lang: Add `realloc`, `realloc::payer`, and `realloc::zero` as a new constraint group for program accounts ([#1986](https://github.com/coral-xyz/anchor/pull/1986)).
Expand Down
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.24.2
0.25.0
2 changes: 1 addition & 1 deletion avm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion avm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "avm"
version = "0.24.2"
version = "0.25.0"
rust-version = "1.56"
edition = "2021"

Expand Down
8 changes: 4 additions & 4 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-cli"
version = "0.24.2"
version = "0.25.0"
authors = ["armaniferrante <armaniferrante@gmail.com>"]
rust-version = "1.56"
edition = "2021"
Expand All @@ -20,9 +20,9 @@ default = []
clap = { version = "3.0.13", features = ["derive"] }
anyhow = "1.0.32"
syn = { version = "1.0.60", features = ["full", "extra-traits"] }
anchor-lang = { path = "../lang", version = "0.24.2" }
anchor-client = { path = "../client", version = "0.24.2" }
anchor-syn = { path = "../lang/syn", features = ["idl", "init-if-needed"], version = "0.24.2" }
anchor-lang = { path = "../lang", version = "0.25.0" }
anchor-client = { path = "../client", version = "0.25.0" }
anchor-syn = { path = "../lang/syn", features = ["idl", "init-if-needed"], version = "0.25.0" }
serde_json = "1.0"
shellexpand = "2.1.0"
toml = "0.5.8"
Expand Down
2 changes: 1 addition & 1 deletion cli/npm-package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project-serum/anchor-cli",
"version": "0.24.2",
"version": "0.25.0",
"description": "Anchor CLI tool",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {
Expand Down
4 changes: 2 additions & 2 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-client"
version = "0.24.2"
version = "0.25.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
rust-version = "1.56"
edition = "2021"
Expand All @@ -11,7 +11,7 @@ description = "Rust client for Anchor programs"
debug = []

[dependencies]
anchor-lang = { path = "../lang", version = "0.24.2" }
anchor-lang = { path = "../lang", version = "0.25.0" }
anyhow = "1.0.32"
regex = "1.4.5"
serde = { version = "1.0.122", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ANCHOR_CLI=v$(shell awk -F ' = ' '$$1 ~ /version/ { gsub(/[\"]/, "", $$2); print
#
# Solana toolchain.
#
SOLANA_CLI=v1.9.13
SOLANA_CLI=v1.10.29
#
# Build version should match the Anchor cli version.
#
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/docs/publishing-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ have an `Anchor.toml` to define the build.
An example `Anchor.toml` config looks as follows,

```toml
anchor_version = "0.24.2"
anchor_version = "0.25.0"

[workspace]
members = ["programs/multisig"]
Expand Down
35 changes: 35 additions & 0 deletions docs/src/pages/docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,41 @@ The minor version will be incremented upon a breaking change and the patch versi

---

## [0.25.0] - 2022-07-05

### Features

* lang: Add `realloc`, `realloc::payer`, and `realloc::zero` as a new constraint group for program accounts ([#1986](https://github.com/coral-xyz/anchor/pull/1986)).
* lang: Add `PartialEq` and `Eq` for `anchor_lang::Error` ([#1544](https://github.com/coral-xyz/anchor/pull/1544)).
* cli: Add `--skip-build` to `anchor publish` ([#1786](https://github.com/coral-xyz/anchor/pull/1841)).
* cli: Add `--program-keypair` to `anchor deploy` ([#1786](https://github.com/coral-xyz/anchor/pull/1786)).
* cli: Add compilation optimizations to cli template ([#1807](https://github.com/coral-xyz/anchor/pull/1807)).
* cli: `build` now adds docs to idl. This can be turned off with `--no-docs` ([#1561](https://github.com/coral-xyz/anchor/pull/1561)).
* cli: Add `b` and `t` aliases for `build` and `test` respectively ([#1823](https://github.com/coral-xyz/anchor/pull/1823)).
* spl: Add more derived traits to `TokenAccount` to `Mint` ([#1818](https://github.com/coral-xyz/anchor/pull/1818)).
* spl: Add `sync_native` token program CPI wrapper function ([#1833](https://github.com/coral-xyz/anchor/pull/1833)).
* cli: Allow passing arguments to an underlying script with `anchor run` ([#1914](https://github.com/coral-xyz/anchor/pull/1914)).
* ts: Implement a coder for system program ([#1920](https://github.com/coral-xyz/anchor/pull/1920)).
* ts: Add `program.coder.types` for encoding/decoding user-defined types ([#1931](https://github.com/coral-xyz/anchor/pull/1931)).
* client: Add send_with_spinner_and_config function to RequestBuilder ([#1926](https://github.com/coral-xyz/anchor/pull/1926)).
* ts: Implement a coder for SPL associated token program ([#1939](https://github.com/coral-xyz/anchor/pull/1939)).
* ts: verbose error for missing `ANCHOR_WALLET` variable when using `NodeWallet.local()` ([#1958](https://github.com/coral-xyz/anchor/pull/1958)).
* ts: Add `MethodsBuilder#accountsStrict` for strict typing on ix account input ([#2019](https://github.com/coral-xyz/anchor/pull/2019)).
* Update solana dependencies to 1.10.29 ([#2027](https://github.com/coral-xyz/anchor/pull/2027)).

### Fixes

* cli: Move `overflow-checks` into workspace `Cargo.toml` so that it will not be ignored by compiler ([#1806](https://github.com/coral-xyz/anchor/pull/1806)).
* lang: Fix missing account name information when deserialization fails when using `init` or `zero` ([#1800](https://github.com/coral-xyz/anchor/pull/1800)).
* ts: Expose the wallet's publickey on the Provider ([#1845](https://github.com/coral-xyz/anchor/pull/1845)).

### Breaking

* ts: Change `BROWSER` env variable to `ANCHOR_BROWSER` ([#1233](https://github.com/coral-xyz/anchor/pull/1233)).
* ts: Add transaction signature to `EventCallback` parameters ([#1851](https://github.com/coral-xyz/anchor/pull/1851)).
* ts: Change `EventParser#parseLogs` implementation to be a generator instead of callback function ([#2018](https://github.com/coral-xyz/anchor/pull/2018)).
* lang: Adds a new `&mut reallocs: BTreeSet<Pubkey>` argument to `Accounts::try_accounts` ([#1986](https://github.com/coral-xyz/anchor/pull/1986)).

## [0.24.2] - 2022-04-13

### Fixes
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/docs/verifiable-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ If the program has an IDL, it will also check the IDL deployed on chain matches.

## Images

A docker image for each version of Anchor is published on [Docker Hub](https://hub.docker.com/r/projectserum/build). They are tagged in the form `projectserum/build:<version>`. For example, to get the image for Anchor `v0.24.2` one can run
A docker image for each version of Anchor is published on [Docker Hub](https://hub.docker.com/r/projectserum/build). They are tagged in the form `projectserum/build:<version>`. For example, to get the image for Anchor `v0.25.0` one can run

```shell
docker pull projectserum/build:v0.24.2
docker pull projectserum/build:v0.25.0
```

## Removing an Image
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/basic-0/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "basic-0",
"version": "0.24.2",
"version": "0.25.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/basic-1/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "basic-1",
"version": "0.24.2",
"version": "0.25.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/basic-2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "basic-2",
"version": "0.24.2",
"version": "0.25.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/basic-3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "basic-3",
"version": "0.24.2",
"version": "0.25.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/basic-4/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "basic-4",
"version": "0.24.2",
"version": "0.25.0",
"license": "(MIT OR Apache-2.0)",
"homepage": "https://github.com/coral-xyz/anchor#readme",
"bugs": {
Expand Down
8 changes: 7 additions & 1 deletion examples/tutorial/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
hash.js "1.1.7"

"@project-serum/anchor@file:../../ts":
version "0.24.0"
version "0.25.0"
dependencies:
"@project-serum/borsh" "^0.2.5"
"@solana/web3.js" "^1.36.0"
Expand All @@ -46,6 +46,7 @@
js-sha256 "^0.9.0"
pako "^2.0.3"
snake-case "^3.0.4"
superstruct "^0.15.4"
toml "^3.0.0"

"@project-serum/borsh@^0.2.5":
Expand Down Expand Up @@ -915,6 +916,11 @@ superstruct@^0.14.2:
resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-0.14.2.tgz#0dbcdf3d83676588828f1cf5ed35cda02f59025b"
integrity sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==

superstruct@^0.15.4:
version "0.15.5"
resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-0.15.5.tgz#0f0a8d3ce31313f0d84c6096cd4fa1bfdedc9dab"
integrity sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==

supports-color@8.1.1:
version "8.1.1"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c"
Expand Down
20 changes: 10 additions & 10 deletions lang/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-lang"
version = "0.24.2"
version = "0.25.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
rust-version = "1.56"
Expand All @@ -26,15 +26,15 @@ anchor-debug = [
]

[dependencies]
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.24.2" }
anchor-attribute-account = { path = "./attribute/account", version = "0.24.2" }
anchor-attribute-constant = { path = "./attribute/constant", version = "0.24.2" }
anchor-attribute-error = { path = "./attribute/error", version = "0.24.2" }
anchor-attribute-program = { path = "./attribute/program", version = "0.24.2" }
anchor-attribute-state = { path = "./attribute/state", version = "0.24.2" }
anchor-attribute-interface = { path = "./attribute/interface", version = "0.24.2" }
anchor-attribute-event = { path = "./attribute/event", version = "0.24.2" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.24.2" }
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.25.0" }
anchor-attribute-account = { path = "./attribute/account", version = "0.25.0" }
anchor-attribute-constant = { path = "./attribute/constant", version = "0.25.0" }
anchor-attribute-error = { path = "./attribute/error", version = "0.25.0" }
anchor-attribute-program = { path = "./attribute/program", version = "0.25.0" }
anchor-attribute-state = { path = "./attribute/state", version = "0.25.0" }
anchor-attribute-interface = { path = "./attribute/interface", version = "0.25.0" }
anchor-attribute-event = { path = "./attribute/event", version = "0.25.0" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.25.0" }
arrayref = "0.3.6"
base64 = "0.13.0"
borsh = "0.9"
Expand Down
4 changes: 2 additions & 2 deletions lang/attribute/access-control/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-access-control"
version = "0.24.2"
version = "0.25.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
Expand All @@ -19,5 +19,5 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.24.2" }
anchor-syn = { path = "../../syn", version = "0.25.0" }
regex = "1.0"

1 comment on commit 6baed77

@vercel
Copy link

@vercel vercel bot commented on 6baed77 Jul 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

anchor-docs – ./

anchor-docs-git-master-200ms.vercel.app
anchor-docs-200ms.vercel.app
www.anchor-lang.com
anchor-lang.com

Please sign in to comment.