Skip to content

Commit b0c4b40

Browse files
Prepare Java release 5.0.0
1 parent 08fe7c9 commit b0c4b40

File tree

4 files changed

+26
-17
lines changed

4 files changed

+26
-17
lines changed

CHANGELOG.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,36 @@
33
Notable changes to the ObjectBox Java library.
44

55
For more insights into what changed in the ObjectBox C++ core, [check the ObjectBox C changelog](https://github.com/objectbox/objectbox-c/blob/main/CHANGELOG.md).
6-
7-
## 4.3.2 - in development
86

7+
## 5.0.0 - 2025-09-17
8+
9+
- Includes runtime libraries for Android and JVM with database version `5.0.0-2025-09-16`.
10+
- Android: Prior to Android 8.0, don't crash when inserting objects with string lists whose size exceeds the local
11+
reference table size. [#1215](https://github.com/objectbox/objectbox-java/issues/1215)
12+
- ToOne relations: when deleting an object with an ID larger than the maximum 32-bit unsigned integer
13+
(`4_294_967_295 + 1`) that is used as the target object of a ToOne, correctly re-set the target ID of the ToOne to
14+
`0`. [objectbox-dart#740](https://github.com/objectbox/objectbox-dart/issues/740)
915
- When re-creating a `BoxStore` for the same directory and `close()` wasn't called on the previous instance, don't throw
1016
an "Another BoxStore is still open for this directory" exception. Note that calling `close()` *is recommended* before
1117
creating a new instance. [#1201](https://github.com/objectbox/objectbox-java/issues/1201)
12-
- When using `BoxStoreBuilder.buildDefault()`, don't leak Store when setting as default fails.
18+
- When using `BoxStoreBuilder.buildDefault()`, don't leak the Store when setting it as default fails.
1319
- To help diagnose, print stacks of all threads in the internal thread pool if shutting it down takes too long when
1420
closing `BoxStore`.
15-
- Remove deprecated `Query.setParameters` methods that set a single parameter, use the `setParameter` methods instead.
16-
- Remove deprecated `Box.removeByKeys`, use `Box.removeByIds` instead.
17-
- Remove deprecated `BoxStore.sizeOnDisk`, use `getDbSize` or `getDbSizeOnDisk` instead which properly handle in-memory databases.
18-
- Remove deprecated `BoxStoreBuilder.debugTransactions`, use `debugFlags(DebugFlags.LOG_TRANSACTIONS_READ | DebugFlags.LOG_TRANSACTIONS_WRITE)` instead.
19-
- Remove deprecated `SyncServerBuilder` `peer` configuration options, use the `clusterPeer` options instead.
20-
- Remove deprecated `io.objectbox.DebugFlags`, use `io.objectbox.config.DebugFlags` instead.
21-
- Remove deprecated `ValidateOnOpenMode` constants, use `ValidateOnOpenModePages` instead.
22-
- Remove deprecated DAOcompat compatibility query methods. Use the regular query API instead.
21+
- Remove deprecated APIs:
22+
- `Query.setParameters` methods that set a single parameter, use the `setParameter` methods instead.
23+
- `Box.removeByKeys`, use `Box.removeByIds` instead.
24+
- `BoxStore.sizeOnDisk`, use `getDbSize` or `getDbSizeOnDisk` instead which properly handle in-memory databases.
25+
- `BoxStoreBuilder.debugTransactions`, use `debugFlags(DebugFlags.LOG_TRANSACTIONS_READ | DebugFlags.LOG_TRANSACTIONS_WRITE)` instead.
26+
- `SyncServerBuilder` `peer` configuration options, use the `clusterPeer` options instead.
27+
- `io.objectbox.DebugFlags`, use `io.objectbox.config.DebugFlags` instead.
28+
- `ValidateOnOpenMode` constants, use `ValidateOnOpenModePages` instead.
29+
- DAOcompat compatibility query methods. Use the regular query API instead.
2330

2431
### Sync
2532

26-
- Support configuring [Sync filter](https://sync.objectbox.io/sync-server/sync-filters) variables on a `SyncClient`.
33+
- Support Sync server version 5.0.
34+
- **User-Specific Data Sync**: support configuring [Sync filter](https://sync.objectbox.io/sync-server/sync-filters)
35+
variables on `SyncClient`.
2736

2837
## 4.3.1 - 2025-08-12
2938

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ For Gradle projects, add the ObjectBox Gradle plugin to your root Gradle script:
114114
```kotlin
115115
// build.gradle.kts
116116
buildscript {
117-
val objectboxVersion by extra("4.3.1")
117+
val objectboxVersion by extra("5.0.0")
118118
repositories {
119119
mavenCentral()
120120
}
@@ -130,7 +130,7 @@ buildscript {
130130
// build.gradle.kts
131131
plugins {
132132
id("com.android.application") version "8.0.2" apply false // When used in an Android project
133-
id("io.objectbox") version "4.3.1" apply false
133+
id("io.objectbox") version "5.0.0" apply false
134134
}
135135
```
136136

@@ -154,7 +154,7 @@ pluginManagement {
154154
```groovy
155155
// build.gradle
156156
buildscript {
157-
ext.objectboxVersion = "4.3.1"
157+
ext.objectboxVersion = "5.0.0"
158158
repositories {
159159
mavenCentral()
160160
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plugins {
2020
buildscript {
2121
// Version of Maven artifacts
2222
// Should only be changed as part of the release process, see the release checklist in the objectbox repo
23-
val versionNumber = "4.3.2"
23+
val versionNumber = "5.0.0"
2424

2525
// Release mode should only be enabled when manually triggering a CI pipeline,
2626
// see the release checklist in the objectbox repo.

objectbox-java/src/main/java/io/objectbox/BoxStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class BoxStore implements Closeable {
7878
* ReLinker uses this as a suffix for the extracted shared library file. If different, it will update it. Should be
7979
* unique to avoid conflicts.
8080
*/
81-
public static final String JNI_VERSION = "4.3.1-2025-08-02";
81+
public static final String JNI_VERSION = "5.0.0-2025-09-16";
8282

8383
/** The ObjectBox database version this Java library is known to work with. */
8484
private static final String VERSION = "5.0.0-2025-09-16";

0 commit comments

Comments
 (0)