Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GEM] (deps): Bump alba from 3.2.0 to 3.5.0 #92

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 1, 2025

Bumps alba from 3.2.0 to 3.5.0.

Release notes

Sourced from alba's releases.

Happy new year 2025!

Hi all, this release is to celebrate a new 2025 year! As always, we bring some new features and improvements. This time, @​skryukov found a way to improve key transformation performance. Thank you @​skryukov!

That said, we won't stop improving Alba in 2025, so stay tuned!

Changelog

Sourced from alba's changelog.

[3.5.0] 2025-01-01

Added

  • render_serialized_json now works with root_key and meta #398

Improved

  • Add transform_keys caching #402

[3.4.0] 2024-12-01

Added

  • Alba.serialize now works with heterogeneous collection #396

[3.3.3] 2024-11-09

Fixed

  • TypedAttribute now respects prefer_resource_method! #391

[3.3.2] 2024-10-30

Fixed

  • Rails integration with ActionController::API

[3.3.1] 2024-10-17

Fixed

  • Add ostruct as gemspec dependency to be prepared for ruby 3.3.5. #386

[3.3.0] 2024-10-09

Added

  • Add ArrayOfString and ArrayOfInteger type #378
Commits
  • 22eb21f [Release] Bump a version to 3.5.0
  • 43377de [Release] Keep a changelog for version 3.5.0
  • 674bf15 Merge pull request #402 from skryukov/cache-transformed-keys
  • dc05334 [Chore] transform_key method is a bit long but it's fine
  • 82b54db Add transform_keys caching
  • 5424603 Update benchmark to support Ruby 3.4 and include transform_keys
  • dfbd1b6 [Doc] Mention why inline definition is not recommended
  • 8f8235e Merge pull request #401 from s4na/patch-1
  • 88a8a4a Exclude Ruby 3.4 on windows-2022 due to unsupported version
  • a4b696b [CI] Add Ruby 3.4 to CI
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Enhancements:

  • Improve key transformation performance by adding caching.

Bumps [alba](https://github.com/okuramasafumi/alba) from 3.2.0 to 3.5.0.
- [Release notes](https://github.com/okuramasafumi/alba/releases)
- [Changelog](https://github.com/okuramasafumi/alba/blob/main/CHANGELOG.md)
- [Commits](okuramasafumi/alba@v3.2.0...v3.5.0)

---
updated-dependencies:
- dependency-name: alba
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added bundler Ruby gems dependencies External dependencies labels Jan 1, 2025
Copy link

sourcery-ai bot commented Jan 1, 2025

Reviewer's Guide by Sourcery

This pull request bumps the alba gem from version 3.2.0 to 3.5.0. This update brings several improvements, including improved key transformation performance via caching, support for "render_serialized_json" with "root_key" and "meta", and the ability for "Alba.serialize" to work with heterogeneous collections.

Sequence diagram for improved JSON serialization with root_key and meta

sequenceDiagram
    participant C as Controller
    participant A as Alba Serializer
    participant J as JSON Response

    C->>A: render_serialized_json(data, root_key: 'users', meta: stats)
    Note over A: New feature: Process root_key and meta
    A->>A: Transform keys (with new caching)
    A->>A: Serialize data
    A->>A: Add root key wrapper
    A->>A: Add meta information
    A->>J: Return formatted JSON
    J->>C: Return response
Loading

Class diagram showing Alba serializer improvements

classDiagram
    class Alba {
        +serialize(data)
        +render_serialized_json(data, root_key, meta)
        -transform_keys(key)
        -cached_transform_keys(key)
    }

    class TypedAttribute {
        +prefer_resource_method
        +ArrayOfString
        +ArrayOfInteger
    }

    Alba -- TypedAttribute

    note for Alba "New: Improved key transformation
with caching mechanism"
    note for TypedAttribute "New: Added support for
array type attributes"
Loading

File-Level Changes

Change Details Files
Bumps the alba gem from 3.2.0 to 3.5.0
  • Updated the alba gem version in the Gemfile from ~> 3.2 to ~> 3.5.
  • Updated the Gemfile.lock to reflect the changes in the Gemfile and include the updated alba gem and its dependencies.
Gemfile
Gemfile.lock

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bundler Ruby gems dependencies External dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants