Skip to content

Conversation

@dependabot-preview
Copy link

Bumps value from 2.6.3 to 2.8.1.

Release notes

Sourced from value's releases.

2.8.1 Criteria & Repositories API, Update

Immutables team is happy to announce Immutables 2.8.1 release.

This release 2.8.1 comes one month after 2.8.0 and contains several improvements, bugfixes and new functionalities.

Notable changes

Criteria

  • Generate criteria DSL from existing JavaBeans(spec) classes. Useful for projects which use JavaBeans for legacy reasons or not yet fully migrated to immutables. See #1103
  • Pluggable ID resolution. Introduce IdResolver interface to allow users to provide their own annotations (or logic) for ID attribute selection. It complements default @Criteria.Id annotation.
  • Initial support for partial updates. Allow partial changes to be applied directly by the backend (if supported).
repository.update(person.id.is(123))
  .set(person.name, "Changed Name")
  .set(person.age, 33)
  .execute()
  • Support top-level count() operation similar to COUNT(*) in SQL
repository.findAll().count();
repository.find(person.age.greaterThan(33)).count();
  • Add upsert / update operations on entity in Writable interface

Mongo jackson adapter

  • Support BSON undefined type which is converted to java null (9a64881)
  • Support BSON binary data (76fb7b44)
  • Lazily read values from bson stream (1c07466). Potentially a performance improvement since values don't have to be deserialized unless required by deserializer. Allows faster skipChildren() calls.
  • Make BsonGenerator null safe on strings and numbers (ba78d7)

Mongo repositories

Changes related to mongo repositories (predecessor to criteria).

  • Enable _id initialization in MongoDB (#1074). PR from André Rouél
  • bson4gson adapter. Support BSON undefined type translated to java null
  • bson4gson adapter. Friendlier type conversion between BSON temporal types and java numbers (int / long etc.)
  • bson4gson adapter. Fix peek() method in JsonReader (6f1247)
  • Require Java 8

Codegen

  • Support lazy hashing via lazyhash attribute. Contrary to existing prehash, lazyhash would compute hashcode on first access to hashCode() method.
  • Changed how META-INF/annotations/org.immutables.value.immutable is read - disabled URLConnection caching. PR-1060 from Canay ÖZEL
  • Set optBits for Modifiable, Default maps. PR-1086 from Dylan Wragge

Third party library upgrades and other dependencies

  • Jackson databind 2.8.11.3 -> 2.8.11.4 (9ea18)
  • Mongo java (sync) driver 3.10.1 -> 3.11.0 (33f98d4)
  • Mongo reactive streams 1.11 -> 1.12 (fed2e07)
  • rxjava2 2.2.10 -> 2.2.12 (c6e06ce)
... (truncated)
Changelog

Sourced from value's changelog.

2.8.1 (2019-10-19)

  • Support for JavaBeans in Criteria API
  • Partial updates applied in the backend
  • Top level count()
  • lazyhash
  • 2.8.1 release notes

2.8.0 (2019-09-19)

  • Criteria & Repositories API
  • Not a bugfix release yet, expect more bugfixes in future 2.8.x versions
  • 2.8.0 release notes

2.7.4 (2018-12-26)

  • Bugfix and refinements release! Thank you issue reports and PRs!
  • Notable stuff
    • Propagate checked exceptions in throws for lazy attributes (only for @Value.Lazy)
  • Issues 2.7.4

2.7.3 (2018-11-10)

2.7.2 (2018-11-05)

  • Many fixes and corrections! Thank you issue reports and PRs!
  • Issues 2.7.2
  • Notable stuff
    • Experimental support for Codecs and Jackson (along with Gson) for mapping to MongoDB repositories (#850, #817 by @​asereda-gs)
    • Style.optionalAcceptNullable=true now also generates alternative constructor accepting nullable input for java.util.Optional attributes (#843 by @​ThLeu)
    • org.immutables.value.Generated now covers generated nested classes (#854 by @​before)

2.7.1 (2018-08-25)

  • Thank you issue reports and PRs! Not many features here, but minor version increment was needed
  • Notable stuff
    • Added org.immutables:value-annotations annotation only jar. Previously we had equivalent artifact org.immutables:value:annotations (classifier annotations). Apparently some tools have trouble with properly addressing jars with classifiers and attached sources. Both artifacts are released.
    • org.immutables.value.Generated annotation (which auto added to generated classes / builders) is class-retention annotation now. Some tools (like osgi related) will not automatically add such annotation as runtime dependency.
    • Automatic-Module-Name now have no dashes for org.immutables.value.annotations (annotation only) and org.immutables.value.processor (unshaded processor). Most used artifact/module org.immutables.value is obviously unchanged.
    • Can suppress a bit finer categories of warnings @Suppression("immutables:subtype"), each warning message now contain such token in parentheses.
    • Subtyping value type with another value type directly is now a warning, not an error. It's still better avoid it.
  • Issues 2.7.1
Commits
  • 546ee17 2.8.1
  • ca8105e Upgrade Hibernate Validator 6.0.7 -> 6.0.17
  • ef5f1a2 Enable errorprone static code analysis for Criteria
  • 4222251 Remove varargs from Writable.insert() method. For bulk operation insertAll() ...
  • bf04627 Make JavaBean attributes nullable by default (except for primitives / optiona...
  • 18bef01 Add totalCount() method to WriteResult
  • 3d748cd Allow WriteResult to be generated by Immutables. Remove specific UnknownWrite...
  • c823959 Use PathNaming strategy in Geode backend (not publically exposed yet)
  • 2a0643b Refactor Path class to be more intuitive (logical) with respect to entity (cl...
  • d8c840c Add util class InMemory. Currently single method to extract predicate from a ...
  • 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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Oct 21, 2019
@codecov
Copy link

codecov bot commented Oct 21, 2019

Codecov Report

Merging #100 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #100   +/-   ##
=========================================
  Coverage     86.64%   86.64%           
  Complexity      476      476           
=========================================
  Files            89       89           
  Lines          1400     1400           
  Branches         30       30           
=========================================
  Hits           1213     1213           
  Misses          168      168           
  Partials         19       19

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af254d6...72c9181. Read the comment docs.

@dependabot-preview
Copy link
Author

Superseded by #102.

@dependabot-preview dependabot-preview bot deleted the dependabot/maven/org.immutables-value-2.8.1 branch November 18, 2019 22:15
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.

1 participant