-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: develop
Are you sure you want to change the base?
Conversation
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]>
Reviewer's Guide by SourceryThis 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 metasequenceDiagram
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
Class diagram showing Alba serializer improvementsclassDiagram
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"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this 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!
Bumps alba from 3.2.0 to 3.5.0.
Release notes
Sourced from alba's releases.
Changelog
Sourced from alba's changelog.
Commits
22eb21f
[Release] Bump a version to 3.5.043377de
[Release] Keep a changelog for version 3.5.0674bf15
Merge pull request #402 from skryukov/cache-transformed-keysdc05334
[Chore]transform_key
method is a bit long but it's fine82b54db
Add transform_keys caching5424603
Update benchmark to support Ruby 3.4 and include transform_keysdfbd1b6
[Doc] Mention why inline definition is not recommended8f8235e
Merge pull request #401 from s4na/patch-188a8a4a
Exclude Ruby 3.4 on windows-2022 due to unsupported versiona4b696b
[CI] Add Ruby 3.4 to CIDependabot 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: