Skip to content

Bump attr_json from 1.4.0 to 2.0.1#22

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/bundler/attr_json-2.0.1
Open

Bump attr_json from 1.4.0 to 2.0.1#22
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/bundler/attr_json-2.0.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 1, 2023

Bumps attr_json from 1.4.0 to 2.0.1.

Changelog

Sourced from attr_json's changelog.

2.0.1

Fixed

  • You can now do a specified ActiveRecord .select without your json containers, to fetch an object with other attributes that you can access. jrochkind/attr_json#193

Changed

2.0.0

While it has some backwards incompat changes, this is expected not to be a challenging upgrade, please let us know by filing an issue if it's giving you troubles, maybe we can make things easier for you. No changes to data stored in your DB should be needed when upgrading, the persisted data should be compatible between 1.x and 2.x.

Removed

Changed

  • We now create Rails Attribute cover for all attr_json attributes, and we do a better job of keeping the Rails attribute values sync'd with attr_json values. jrochkind/attr_json#117, jrochkind/attr_json#158, and jrochkind/attr_json#163

  • Drop support for Rails earlier than 6.0 and ruby earlier than 2.7. jrochkind/attr_json#155 jrochkind/attr_json#174

  • Array types now default to an empty array. If you'd like to turn that off, you can use the somewhat odd default: AttrJson::AttributeDefinition::NO_DEFAULT_PROVIDED on attribute definiton. Thanks @​g13ydson for suggestion. jrochkind/attr_json#161

  • time or datetime types used to truncate all fractional seconds to 0. Now they properly allow precision of ActiveSupport::JSON::Encoding.time_precision (normally three decimal places, ie milliseconds). And by default the Type::Value's are set to proper precision for cast too. jrochkind/attr_json#173

  • AttrJson::Models are serialized without nil values in the hash, for more compact representations. This is only done for attributes without defaults. This behavior can be disabled/altered when specifying the type. jrochkind/attr_json#175

  • config default_accepts_nested_attributes will only apply nested attributes to suitable attribute types (array or nested model), the default won't apply to inapplicable types. jrochkind/attr_json#178

Added

  • ActiveRecord-style "timezone-aware attribute" conversion now works properly, in both AttrJson::Record and (similarly) AttrJson::Model. jrochkind/attr_json#164

Fixed

  • the AttrJson::Type::Array type used for our array types was not properly tracking in-place mutation changes. Now it is jrochkind/attr_json#163

  • Default nested model validation should allow nils in arrays of models. jrochkind/attr_json#177

... (truncated)

Commits
  • 64fa83d Merge pull request #195 from jrochkind/prepare_2.0.1
  • cbac079 prepare for 2.0.1 release
  • f4c6ad4 Merge pull request #194 from jrochkind/safety_guard_sync
  • 41ae31f CHANGELOG for 194
  • 47386b6 Safety guard in sync_to_rails_attributes against unknown edge case where cont...
  • afa584c Merge pull request #193 from jrochkind/fix_fetch_with_limited_select
  • c71b468 CHANGELOG for 193
  • a7335c3 Can fetch with AR .select not including json column
  • c3a3871 Merge pull request #192 from jrochkind/refactor_sync_to_rails_attributes
  • bb376fd CHANGELOG for 192
  • 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 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)

Bumps [attr_json](https://github.com/jrochkind/attr_json) from 1.4.0 to 2.0.1.
- [Release notes](https://github.com/jrochkind/attr_json/releases)
- [Changelog](https://github.com/jrochkind/attr_json/blob/master/CHANGELOG.md)
- [Commits](jrochkind/attr_json@v1.4.0...v2.0.1)

---
updated-dependencies:
- dependency-name: attr_json
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants