CHANGELOG.md in alba-2.0.0 vs CHANGELOG.md in alba-2.0.1
- old
+ new
@@ -4,26 +4,37 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
+## [2.0.1] 2022-11-02
+
+### Fix
+
+- the bug including key not in `within` [#262](https://github.com/okuramasafumi/alba/pull/262)
+- key transformation now cascades multiple levels [#263](https://github.com/okuramasafumi/alba/pull/263)
+
## [2.0.0] 2022-10-21
### Breaking changes
- All Hash-related methods now return String key instead of Symbol key
This affects all users, but you can use `deep_symbolize_keys` in Rails environment if you prefer Symbol keys
Some DSLs that take key argument such as `on_nil` and `on_error`, are also affected
+- Remove deprecated methods: `Resource#to_hash`, `Resource.ignoring`, `Alba.on_nil`, `Alba.on_error`, `Alba.enable_root_key_transformation!` and `Alba.disable_root_key_transformation!`
+- If using `transform_keys`, the default inflector is no longer set by default [d02245c8](https://github.com/okuramasafumi/alba/commit/d02245c87e9df303cb20e354a81e5457ea460bdd#diff-ecd8c835d2390b8cb89e7ff75e599f0c15cdbe18c30981d6090f4a515566686f)
+ To retain this functionality in Rails, add an initializer with the following:
+ `Alba.enable_inference!(with: :active_support)`
### New features
-- Passing an initial object to proc function in associations
-- Allow association resource to be Proc
-- `collection_key` to serialize collection into a Hash
-- params is now overridable
-- Key transformation now cascades
-- nested attribute
-- Implement `as_json`
+- Passing an initial object to proc function in associations [#209](https://github.com/okuramasafumi/alba/pull/209)
+- Allow association resource to be Proc [#213](https://github.com/okuramasafumi/alba/pull/213)
+- `collection_key` to serialize collection into a Hash [#119](https://github.com/okuramasafumi/alba/pull/119)
+- params is now overridable [#227](https://github.com/okuramasafumi/alba/pull/227)
+- Key transformation now cascades [#232](https://github.com/okuramasafumi/alba/pull/232)
+- nested attribute [#237](https://github.com/okuramasafumi/alba/pull/237)
+- Implement `as_json` [#249](https://github.com/okuramasafumi/alba/pull/249)
### Bugfix
- fix the bug where nesting is empty string and invalid
- `handle_error` now raises the same error