Skip to content

Bump attr_json from 1.4.0 to 2.0.0#12

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/attr_json-2.0.0
Closed

Bump attr_json from 1.4.0 to 2.0.0#12
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/attr_json-2.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jan 31, 2023

Copy link
Copy Markdown
Contributor

Bumps attr_json from 1.4.0 to 2.0.0.

Changelog

Sourced from attr_json's changelog.

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

1.5.0

Added

1.4.1

... (truncated)

Commits
  • 78f481a Merge pull request #118 from jrochkind/dev_v2
  • 2c7b3a6 prepare for 2.0.0 final release
  • 2a0dc6d Merge pull request #186 from jrochkind/test_rack_2
  • 8ca084a rails-edge, test with rack 2 not rack 3
  • 66c4d24 Merge pull request #185 from jrochkind/fix_appraisal_gemfiles
  • 99a9c04 Fix appraisal gemfiles for all rails versions
  • 5304b21 Merge pull request #184 from jrochkind/restore_testing_rails_6.0
  • 212a0e4 restore testing under rails 6.0, accidentally removed earlier
  • 80c3053 fix sgrif's name
  • 8311ead mention store_attribute in alternatives section, slightly reword section now ...
  • 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.0.
- [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.0)

---
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 Jan 31, 2023
@dependabot @github

dependabot Bot commented on behalf of github Mar 1, 2023

Copy link
Copy Markdown
Contributor Author

Superseded by #21.

@dependabot dependabot Bot closed this Mar 1, 2023
@dependabot
dependabot Bot deleted the dependabot/bundler/attr_json-2.0.0 branch March 1, 2023 05:22
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