Skip to content

Releases

v0.4.2

Choose a tag to compare

@felipeg48 felipeg48 released this 25 Nov 19:57
638d3fe

Align consumer AGENTS.md to Greg's canonical (Spring PR #40).

  • Namespaced jar bake: META-INF/cockroachdb-java-library/AGENTS.md (shaded-jar collision fix).
  • Added 'Learn CockroachDB fundamentals' section linking the official CRDB docs (.md variants) + llms.txt.
  • AGENTS.md published to the site at /agents/AGENTS.md with an llms.txt; README documents jar + site.
  • Examples pinned to 0.4.2.

v0.4.1

Choose a tag to compare

@felipeg48 felipeg48 released this 25 Nov 18:55
a37d0fd

Consumer AGENTS.md bundled in the jar

A consumer-facing agent guide is now authored at docs/agents/AGENTS.md and bundled in the published core jar at META-INF/AGENTS.md, so coding agents working in an app that depends on this library can discover it from the classpath.

  • New docs/agents/AGENTS.md (consumer guide: Crdb.tx/@Transactional auto-retry on 40001, @FollowerRead, @RegionalByRow/@CrdbRegion column homing, CDC, Continuum/MCP, Testcontainers testing).
  • Baked into the core jar via a processResources step; AgentsMdPackagedTest verifies the artifact actually contains it.
  • README install pins and AI-agents note updated.

No API changes.

v0.4.0 — JSpecify null-safety

Choose a tag to compare

@felipeg48 felipeg48 released this 25 Nov 14:11
627d7d8

Adopts JSpecify null-safety across the library (mirrors the Spring starter 0.7.0). Every package is @NullMarked, with @Nullable applied where null can occur; NullAway fails the build on a violation (main sources, JSpecify mode).

Behavior note: the public API is now strict about nullness — passing null into a non-@Nullable parameter now throws NPE (intended JSpecify contract); e.g. new RetryExhausted(n, null) now NPEs. org.jspecify:jspecify is now a transitive api dependency.

Install: com.cockroachlabs:cockroachdb-java-library-core:0.4.0

v0.3.0 — multi-region annotation check

Choose a tag to compare

@felipeg48 felipeg48 released this 24 Nov 20:24
eec6871

Multi-region annotation check

New feature: an explicit startup-time multi-region locality check.

New public annotations (com.cockroachlabs.crdb.annotations)

  • @GlobalTable — mark an entity as a GLOBAL table
  • @RegionalByRow — mark an entity as REGIONAL BY ROW
  • @CrdbRegion — mark the region-homing column

New API

  • Crdb.verifyLocality(ds, mode, classes...) — compares your entity annotations against the live schema and reports fix-up SQL for any drift.

Modes: none | warn | validate (default warn). A contradiction between annotations and the live schema fails unless mode=none.

This is an explicit call (verifyLocality), not an auto-startup hook — this library is not Spring, so you invoke the check yourself.

Install

implementation 'com.cockroachlabs:cockroachdb-java-library-core:0.3.0'

v0.2.0

Choose a tag to compare

@felipeg48 felipeg48 released this 21 Nov 12:39
e77dc03

cockroachdb-java-library 0.2.0

Behavior change

Checked exceptions from methods annotated with @FollowerRead, @VirtualCluster, @Region, @Workload, @CrdbRetry, or @Transactional(retry=true) now reach the caller as the original instance (previously wrapped in a generic RuntimeException). A method declared throws IOException now throws IOException. RuntimeException/Error unchanged. (#9)

Mirrors cockroachdb-spring-boot-starter 0.5.0. Distribution: anonymous Maven feed (auto-published on merge) + GitHub Packages (this release).

v0.1.2

Choose a tag to compare

@felipeg48 felipeg48 released this 28 Oct 13:09
b92fc95

@FollowerRead gains additive hoursAgo/minutesAgo/secondsAgo (compose to AS OF SYSTEM TIME '-Ns'; default follower_read_timestamp()), with fail-fast on negative. Additive / non-breaking. See CHANGELOG.md.

v0.1.1

Choose a tag to compare

@felipeg48 felipeg48 released this 21 Oct 18:39
2a13316

First published release of the CockroachDB Java Library.

Maven (GitHub Packages): com.cockroachlabs:cockroachdb-java-library-<module>:0.1.1 (modules: core, continuum, agent, cdc, metrics, ai, testing)
Javadoc: https://cockroachlabs.github.io/cockroachdb-java-library/

Pure-Java, framework-free CockroachDB library: annotation-driven retry / circuit-breaking / transactions via dynamic proxies, plus Cockroach Continuum (Plenum storage insights, vCluster tagging, Aegis, Agent/MCP, Cloud control-plane).