Skip to content

Commit aff83e7

Browse files
committed
Update to ObjectBox 5.0
1 parent 825bcb9 commit aff83e7

File tree

4 files changed

+39
-10
lines changed

4 files changed

+39
-10
lines changed

docs/README.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,35 @@ Otherwise, feel free to open an issue on [GitHub ](https://github.com/objectbox/
6868

6969
<div align="left"><img src="https://img.shields.io/github/v/release/objectbox/objectbox-c?style=for-the-badge" alt=""/></div>
7070

71+
### 5.0.0 (2025-11-27)
72+
73+
#### User-Specific Data Sync
74+
75+
* Sync filters: define server-side filter expression to sync individual data for each sync user. This is also known as "user-specific data sync" and requires Sync clients version 5.0.
76+
* Client variables: clients may define key/value pairs that can be used in sync filters
77+
78+
#### New supported platform: Windows ARM64
79+
80+
* Besides x86 and x64, ObjectBox for Windows now also supports ARM64
81+
82+
#### Sync
83+
84+
* Sync clients may now provide certificate locations for SSL (TLS) connections
85+
86+
#### Fixes
87+
88+
* Fixed clearing 1:N backlinks for IDs larger than 32-bit (setting backlink ID to 0 on the "1" side)
89+
* In-memory with WAL file: improved error handling
90+
* Safeguard against undefined behavior by panicking in rare illegal usage patterns that are not recoverable. I.e. deleting a (write) transaction in a non-owner thread cannot be safely handled in any other way.
91+
* Various small improvements and updates under the hood.
92+
93+
#### Examples
94+
95+
* Make each example self-contained, you can e.g. copy an example's directory as a starting point for your own app
96+
* Add a convenient `build.sh` script to each example that works the same way across examples, e.g. `./build.sh run` to build and run the example in one step
97+
* Make sources more readable (refactorings, added additional comments)
98+
* The Task sync example moved to [ObjectBox Sync Examples](https://github.com/objectbox/objectbox-sync-examples)
99+
71100
### 4.3.0 (2025-05-12)
72101

73102
* Windows: msvc runtime is now embedded to avoid incompatible msvcp140.dll (e.g. those shipped with some JDKs)

docs/generator.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Once you have the ObjectBox runtime library set up via `FetchContent` (see [inst
5454

5555
```cmake
5656
# Note: downloads automatically if not found locally
57-
find_package(ObjectBoxGenerator 4.0.0 REQUIRED)
57+
find_package(ObjectBoxGenerator 5.0.0 REQUIRED)
5858
```
5959

6060
With that, the CMake function add\_obx\_schema is now available (see next section).
@@ -124,7 +124,7 @@ This find module automatically locates a local installation of the executable `o
124124
Currently supported platforms are Linux/x86-64, macOS and Windows/x86-64.
125125

126126
```cmake
127-
find_package(ObjectBoxGenerator 4.0.0 REQUIRED)Variables
127+
find_package(ObjectBoxGenerator 5.0.0 REQUIRED)Variables
128128
```
129129

130130
The following variables are defined by this module:
@@ -137,7 +137,7 @@ The following variables are defined by this module:
137137
If found, this variable comprises the full path to executable.
138138
* `ObjectBoxGenerator_VERSION`
139139

140-
The full version string of the used ObjectBox Generator executable, e.g. “4.0.0” or “4.0.0-alpha2”.
140+
The full version string of the used ObjectBox Generator executable, e.g. “5.0.0” or “5.0.0-alpha2”.
141141
* `ObjectBoxGenerator_VERSION_MAJOR`\
142142
`ObjectBoxGenerator_VERSION_MINOR`\
143143
`ObjectBoxGenerator_VERSION_PATCH`

docs/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Use CMake or launch the following command to generate the binding code from the
5757
<TabItem value="cmakecpp" label="CMake (C++)">
5858

5959
```cmake
60-
find_package(ObjectBoxGenerator 4.0.0 REQUIRED)
60+
find_package(ObjectBoxGenerator 5.0.0 REQUIRED)
6161
add_obx_schema(TARGET myapp SCHEMA_FILES tasklist.fbs INSOURCE)
6262
```
6363

docs/installation.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ include(FetchContent)
5050
FetchContent_Declare(
5151
objectbox
5252
GIT_REPOSITORY https://github.com/objectbox/objectbox-c.git
53-
GIT_TAG v4.1.0
53+
GIT_TAG v5.0.0
5454
)
5555
5656
FetchContent_MakeAvailable(objectbox)
@@ -81,7 +81,7 @@ include(FetchContent)
8181
FetchContent_Declare(
8282
objectbox
8383
GIT_REPOSITORY https://github.com/objectbox/objectbox-c.git
84-
GIT_TAG v4.1.0
84+
GIT_TAG v5.0.0
8585
)
8686
8787
FetchContent_GetProperties(objectbox)
@@ -96,7 +96,7 @@ If you want to integrate the ObjectBox-Generator via CMake (as an alternative to
9696

9797
```cmake
9898
# find objectbox-generator (auto-download if not found on system per default)
99-
find_package(ObjectBoxGenerator 4.0.0 REQUIRED)
99+
find_package(ObjectBoxGenerator 5.0.0 REQUIRED)
100100
101101
# generate C++ files from tasklist.fbs and compile/link with target
102102
add_obx_schema(
@@ -123,7 +123,7 @@ Using the download.sh script (on Windows, use something like Git Bash to run it)
123123

124124
Details on the download.sh script:
125125

126-
* Creates a "download" directory and a version dependent sub directory named like "libobjectbox-4.1.0-some-hex-hash".
126+
* Creates a "download" directory and a version dependent sub directory named like "libobjectbox-5.0.0-some-hex-hash".
127127
* Inside the version dependent sub directory, you will find the directories "include" and "lib"/
128128
* The "lib" directory contains the binary library.
129129
* Gives you an option to install the library to `/usr/lib` (linux) or `/usr/local/lib` (macOS).
@@ -142,7 +142,7 @@ As a good starting point for C/C++ Development download "ObjectBox Core" named `
142142

143143
:::info
144144
Supported Platforms: \
145-
Linux (x86\_64, aarch64, armv7hf, armv6hf), macOS (x64,arm64), Windows (x64,x86) \
145+
Linux (x86\_64, aarch64, armv7hf, armv6hf), macOS (x64,arm64), Windows (x64,x86,arm64) \
146146
\
147147
On Windows you might have to install the latest [Microsoft Visual C++ Redistributable package (X64)](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022) to use the ObjectBox DLL.\
148148
\
@@ -196,7 +196,7 @@ Using the ObjectBox Generator with CMake is straightforward (after the installa
196196

197197
```cmake
198198
# Downloads automatically if not found on system per default)
199-
find_package(ObjectBoxGenerator 4.0.0 REQUIRED)
199+
find_package(ObjectBoxGenerator 5.0.0 REQUIRED)
200200
201201
# generate C++ files from tasklist.fbs and compile/link with target
202202
add_obx_schema(

0 commit comments

Comments
 (0)