Skip to content

Commit

Permalink
chore(release): v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
loichyan committed Mar 20, 2023
1 parent 54cd289 commit 2eaea00
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .cz.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.3.0"
version = "0.4.0"
tag_format = "v$version"
bump_message = "chore(release): v$new_version"
version_files = ["Cargo.toml", "impl/Cargo.toml"]
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

## v0.4.0 (2023-03-20)

### BREAKING CHANGE

- The macro will generate types for transparent variants/structs and this can be disabled by `#[thisctx(skip)]` attribute.
- The `Context` suffix will not be appended to types generated from an enum by default. This can be enabled by add `#[thisctx(suffix)]` to the enum.
- Use the attribute `#[thisctx(skip)]` instead of `#[thisctx(context(false))]` to skip a varaint.

### Feat

- **derive**: add shortcuts for common attributes
- **derive**: use snake case of input as module name by default
- **derive**: add attribute `no_suffix` as a shortcut to `suffix(false)`
- **derive**: add `no_unit`, `no_generic` and `no_skip` attributes

### Fix

- **derive**: check duplicated options
- **derive**: ensure the order when inheriting options

### Refactor

- **derive**: remove unused code
- **packages**: move `packages/*` to project root
- **derive**: use a generic way to parse options
- **derive**: dont skip transparent variants by default
- **derive**: disable `#[thisctx(suffix)]` on an enum
- **derive**: rename `#[thisctx(context)]` to `#[thisctx(skip)]`

## v0.3.0 (2023-03-11)

### Feat
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exclude = ["compile_tests"]

[package]
name = "thisctx"
version = "0.3.0"
version = "0.4.0"
license = "MIT OR Apache-2.0"
authors = ["loichyan <[email protected]>"]
edition = "2018"
Expand All @@ -19,7 +19,7 @@ keywords = ["error", "derive"]
categories = ["rust-patterns"]

[dependencies.thisctx_impl]
version = "=0.3.0"
version = "=0.4.0"
path = "impl"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion impl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thisctx_impl"
version = "0.3.0"
version = "0.4.0"
license = "MIT OR Apache-2.0"
authors = ["loichyan <[email protected]>"]
edition = "2018"
Expand Down

0 comments on commit 2eaea00

Please sign in to comment.