Skip to content

Commit

Permalink
chore: release v0.10.0 (#223)
Browse files Browse the repository at this point in the history
## 🤖 New release
* `cargo-near`: 0.9.0 -> 0.10.0 (⚠️ API breaking changes)
* `cargo-near-build`: 0.1.1 -> 0.2.0 (⚠️ API breaking changes)

### ⚠️ `cargo-near` breaking changes

```
--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.35.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field InteractiveClapContextScopeForBuildCommand.no_wasmopt in /tmp/.tmp9RlqrE/cargo-near/cargo-near/src/commands/build_command/mod.rs:5
  field InteractiveClapContextScopeForBuildCommand.env in /tmp/.tmp9RlqrE/cargo-near/cargo-near/src/commands/build_command/mod.rs:5
  field CliBuildCommand.no_wasmopt in /tmp/.tmp9RlqrE/cargo-near/cargo-near/src/commands/build_command/mod.rs:5
  field CliBuildCommand.env in /tmp/.tmp9RlqrE/cargo-near/cargo-near/src/commands/build_command/mod.rs:5
```

### ⚠️ `cargo-near-build` breaking changes

```
--- failure constructible_struct_adds_field: externally-constructible struct adds field ---

Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
        ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.35.0/src/lints/constructible_struct_adds_field.ron

Failed in:
  field Opts.no_wasmopt in /tmp/.tmp9RlqrE/cargo-near/cargo-near-build/src/types/near/build/input/mod.rs:34
  field Opts.env in /tmp/.tmp9RlqrE/cargo-near/cargo-near-build/src/types/near/build/input/mod.rs:51

--- failure method_parameter_count_changed: pub method parameter count changed ---

Description:
A publicly-visible method now takes a different number of parameters.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#fn-change-arity
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.35.0/src/lints/method_parameter_count_changed.ron

Failed in:
  cargo_near_build::BuildOpts::get_cli_build_command_in_docker now takes 3 parameters instead of 2, in /tmp/.tmp9RlqrE/cargo-near/cargo-near-build/src/types/near/build/input/docker_context.rs:19
```

<details><summary><i><b>Changelog</b></i></summary><p>

## `cargo-near`
<blockquote>

##
[0.10.0](cargo-near-v0.9.0...cargo-near-v0.10.0)
- 2024-10-16

### Added

- [**breaking**] use `wasm-opt -O` (via wasm-opt-rs) as post-step of
build ([#231](#231))
- `env` flag for external parameters of docker build and regular build
([#226](#226))

### Other

- Use Posthog instead of Mixpanel to collect stats on new projects
creation ([#227](#227))
- Fix tracking usage
([#225](#225))
</blockquote>

## `cargo-near-build`
<blockquote>

##
[0.2.0](cargo-near-build-v0.1.1...cargo-near-build-v0.2.0)
- 2024-10-16

### Added

- [**breaking**] use `wasm-opt -O` (via wasm-opt-rs) as post-step of
build ([#231](#231))
- `env` flag for external parameters of docker build and regular build
([#226](#226))

### Other

- disable github release for `cargo-near-build` via cargo-dist
([#222](#222))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).
  • Loading branch information
frol authored Oct 16, 2024
1 parent 740d1f6 commit 5af23c8
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 23 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.10.0](https://github.com/near/cargo-near/compare/cargo-near-v0.9.0...cargo-near-v0.10.0) - 2024-10-16

### Added

- [**breaking**] use `wasm-opt -O` (via wasm-opt-rs) as post-step of build ([#231](https://github.com/near/cargo-near/pull/231))
- `env` flag for external parameters of docker build and regular build ([#226](https://github.com/near/cargo-near/pull/226))

### Other

- Use Posthog instead of Mixpanel to collect stats on new projects creation ([#227](https://github.com/near/cargo-near/pull/227))
- Fix tracking usage ([#225](https://github.com/near/cargo-near/pull/225))

## [0.9.0](https://github.com/near/cargo-near/compare/cargo-near-v0.8.2...cargo-near-v0.9.0) - 2024-09-12

### Added
Expand Down
36 changes: 18 additions & 18 deletions Cargo.lock

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

11 changes: 11 additions & 0 deletions cargo-near-build/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0](https://github.com/near/cargo-near/compare/cargo-near-build-v0.1.1...cargo-near-build-v0.2.0) - 2024-10-16

### Added

- [**breaking**] use `wasm-opt -O` (via wasm-opt-rs) as post-step of build ([#231](https://github.com/near/cargo-near/pull/231))
- `env` flag for external parameters of docker build and regular build ([#226](https://github.com/near/cargo-near/pull/226))

### Other

- disable github release for `cargo-near-build` via cargo-dist ([#222](https://github.com/near/cargo-near/pull/222))

## [0.1.1](https://github.com/near/cargo-near/compare/cargo-near-build-v0.1.0...cargo-near-build-v0.1.1) - 2024-09-12

### Added
Expand Down
2 changes: 1 addition & 1 deletion cargo-near-build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "cargo-near-build"
edition = "2021"
version = "0.1.1"
version = "0.2.0"
description = "Library for building Rust smart contracts on NEAR, basis of `cargo-near` crate/CLI"
repository = "https://github.com/near/cargo-near"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions cargo-near/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-near"
version = "0.9.0"
version = "0.10.0"
authors = ["Near Inc <[email protected]>"]
edition = "2021"
rust-version = "1.78.0"
Expand All @@ -23,7 +23,7 @@ license = false
eula = false

[dependencies]
cargo-near-build = { version = "0.1.1", path = "../cargo-near-build", features = [
cargo-near-build = { version = "0.2.0", path = "../cargo-near-build", features = [
"abi_build",
"docker",
] }
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ publish = false

[dependencies]
const_format = "0.2"
cargo-near-build = { version = "0.1.1", path = "../cargo-near-build" }
cargo-near-build = { version = "0.2.0", path = "../cargo-near-build" }

[dev-dependencies]
borsh = { version = "1.0.0", features = ["derive", "unstable__schema"] }
camino = "1.1.1"
cargo-near = { path = "../cargo-near" }
cargo-near-build = { version = "0.1.1", path = "../cargo-near-build" }
cargo-near-build = { version = "0.2.0", path = "../cargo-near-build" }
color-eyre = "0.6"
function_name = "0.3"
git2 = "0.19"
Expand Down

0 comments on commit 5af23c8

Please sign in to comment.