Releases: okuramasafumi/alba
v3.10.0
What's Changed
- [Feat] Enable type definition for
attributeby @okuramasafumi in #470 - Bump github/codeql-action from 3 to 4 by @dependabot[bot] in #471
- Bump rubygems/release-gem from 1.1.1 to 1.1.2 by @dependabot[bot] in #474
- Fix hash object resource methods by @jkmcrg in #475
- Bump step-security/harden-runner from 2.13.1 to 2.13.2 by @dependabot[bot] in #476
New Contributors
Full Changelog: v3.9.1...v3.10.0
v3.9.1
What's Changed
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #460
- Update rubocop requirement from ~> 1.79.0 to ~> 1.80.0 by @dependabot[bot] in #462
- Bump actions/upload-pages-artifact from 3 to 4 by @dependabot[bot] in #463
- Update rubocop-performance requirement from ~> 1.25.0 to ~> 1.26.0 by @dependabot[bot] in #464
- Bump step-security/harden-runner from 2.13.0 to 2.13.1 by @dependabot[bot] in #465
- Update rubocop requirement from ~> 1.80.0 to ~> 1.81.0 by @dependabot[bot] in #467
Full Changelog: v3.9.0...v3.9.1
April Wise's Day edition
Today is April Fool's Day, but Alba is not getting fool! This release contains various improvements as usual.
As described in CHANGELOG, Alba's performance is even better than previous versions thank to the contributions from @byroot
Also note that some methods are now deprecated and will be removed in the next major version, So if you see warnings please prepare for v4!
Happy new year 2025!
v3.2.0: Rails controller integration
Hi, here's a new version of Alba, v3.2.0. There are two additions in this release.
Now we have a Rails "controller" integration! serialize and render_serialized_json methods are available in Rails controllers, making it easier to use Alba with Rails. It's inspired by Layered Design for Ruby on Rails Applications book mentioning Alba and its usage. Thank you!
Another feature is transform_keys! that enables to change key transformation type after defining a resource/serializer class. It helps when there are so many classes that are almost equivalent. Note that this feature is experimental.
The documentation for the new Rails controller integration is here and the documentation for transform_keys! can be found here.Enjoy!
Merry Christmas! 2023
Happy holidays! We celebrate this Christmas with this bugfix release.
Most of the bug reports are responded and fixed within a week. We still maintain Alba so it's getting even better. Hope you all have a good new year!
Version 3, with a little bugfix!
IMPORTANT NOTICE
This version contains an important bug fix. It's highly recommended to upgrade to this version if you can. If not, use version 2.4.2 instead.
Changes
So, a new major version of Alba! Since this is a major version upgrade, there are some backward incompatible changes.
- Alba now prefers methods on a resource class over on a target object. This was possible with a option in version 2, but now it's a default behavior.
- You might notice that this release is version
3.0.1, not3.0.0. Yes, there was a bug about this behavior but I believe it's fixed now.
- You might notice that this release is version
- Alba now requires Ruby 3. Do you know that Ruby 2 is already EOL? But don't worry, you can still use version 2 of Alba!
And of course we have some shiny new features. Custom types is especially interesting. This feature lets us validate and convert certain attributes, making serialization more readable, maintainable and DRY.
To know more about types, see this section in README and related test files (this and this)
Important bug fix
This is a special release including important bug fix that can cause data corruption. This is a safe upgrade for all v2 users, so if you cannot upgrade to version 3.0.1, make sure to use this version at least.
For Ruby 3 users, version 3.0.1 is recommended. However, it has some backward incompatible changes including dropping support of Ruby 2. So this release is for those who don't want to upgrade to version 3 or who use Ruby 2.
This is the final release of the version 2 of Alba that support Ruby 2. Ruby 2 reached EOL so I highly recommend to upgrade both Ruby and Alba to version 3!
People Driven Edition
Welcome to the new release of Alba! There are two new features and one bugfix.
helperto share behaviors with inline associationsprefer_resource_method!to configure Alba to use resource method first withattributes- Fixing resource name inference bug
This released is named as "People Driven Edition" because all these changes are something that I haven't noticed we need. Thank you @george-ayris, @danielmalaton, @datbth and @kapso to help making it better!
One important note, this might be the last release to support Ruby 2! It's already EOL so I'd like to encourage people to use Ruby 3.
Full of Goodies edition
This release adds a few tiny but nice features so that Alba is even better.
As usual, give us any feedback you have with this release!