Skip to content

Commit 46711a5

Browse files
realm-cikneth
andauthoredMar 16, 2023
Prepare for 11.5.2 (#5560)
* [11.5.2] Bump version * Update compatibility matrix * fix test --------- Co-authored-by: kneth <kneth@users.noreply.github.com> Co-authored-by: Kenneth Geisshirt <k@zigzak.net>

File tree

7 files changed

+12
-23
lines changed

7 files changed

+12
-23
lines changed
 

‎CHANGELOG.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
## vNext (TBD)
2-
3-
### Deprecations
4-
* None
5-
6-
### Enhancements
7-
* None
1+
## 11.5.2 (2023-03-14)
82

93
### Fixed
104
* Suppress omitting `objcMsgsend` stubs to ensure backward compatibility with Xcode 13. It can be observed as `Undefined symbols for architecture arm64: "_objc_msgSend$allBundles", referenced from: realm::copy_bundled_realm_files() in librealm-js-ios.a(platform.o)` when using a React Native app for iOS. ([#5511](https://github.com/realm/realm-js/issues/5511), since v11.5.1)

‎COMPATIBILITY.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
| Realm JavaScript | React Native | Expo | Hermes | npm | node |
55
|------------------------|--------------------|----------|--------|--------|--------|
6+
| 11.5.2 | >= 0.71.4 | N/A || >= 7 | >= 13 |
67
| 11.5.1 | = 0.71.0 | N/A || >= 7 | >= 13 |
78
| 11.5.0 | = 0.71.0 | N/A || >= 7 | >= 13 |
89
| 11.4.0 | = 0.71.0 | N/A || >= 7 | >= 13 |

‎dependencies.list

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PACKAGE_NAME=realm-js
2-
VERSION=11.5.1-alpha.0
2+
VERSION=11.5.2
33
REALM_CORE_VERSION=13.6.0
44
NAPI_VERSION=5
55
MDBREALM_TEST_SERVER_TAG=2023-02-23

‎integration-tests/tests/src/tests/sync/app.ts

+4-10
Original file line numberDiff line numberDiff line change
@@ -258,31 +258,25 @@ describe("App", () => {
258258
});
259259
});
260260

261-
it("MongoDB Realm sync works", async function (this: Mocha.Context & AppContext & RealmContext) {
261+
it.only("MongoDB Realm sync works", async function (this: Mocha.Context & AppContext & RealmContext) {
262262
const dogNames = ["King", "Rex"]; // must be sorted
263-
let nCalls = 0;
264263

265264
const partitionValue = generatePartition();
266265
const realmConfig: Realm.Configuration = {
267266
schema: [PersonForSyncSchema, DogForSyncSchema],
268-
shouldCompact: () => {
269-
nCalls++;
270-
return true;
271-
},
272267
sync: {
273268
user: this.user,
274269
partitionValue,
275270
//@ts-expect-error TYPEBUG: cannot access const enum at runtime
276271
_sessionStopPolicy: "immediately", // Make it safe to delete files after realm.close()
277272
},
278273
};
274+
279275
Realm.deleteFile(realmConfig);
280276
const realm = await Realm.open(realmConfig);
281-
expect(nCalls).equals(1);
282277
realm.write(() => {
283278
const tmpDogs: IDogForSyncSchema[] = [];
284279
dogNames.forEach((n) => {
285-
console.log("FISK 4", n);
286280
const dog = realm.create<IDogForSyncSchema>(DogForSyncSchema.name, { _id: new BSON.ObjectId(), name: n });
287281
tmpDogs.push(dog);
288282
return tmpDogs;
@@ -296,14 +290,14 @@ describe("App", () => {
296290
});
297291
});
298292

293+
const realmPath = realm.path;
299294
await realm.syncSession?.uploadAllLocalChanges();
300295
expect(realm.objects("Dog").length).equals(2);
301296
realm.close();
302297

303-
Realm.deleteFile(realmConfig);
298+
Realm.deleteFile({ path: realmPath });
304299

305300
const realm2 = await Realm.open(realmConfig);
306-
expect(nCalls).equals(2);
307301
await realm2.syncSession?.downloadAllServerChanges();
308302

309303
const dogs = realm2.objects<IDogForSyncSchema>(DogForSyncSchema.name).sorted("name");

‎package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "realm",
33
"description": "Realm is a mobile database: an alternative to SQLite and key-value stores",
4-
"version": "11.5.1",
4+
"version": "11.5.2",
55
"license": "apache-2.0",
66
"homepage": "https://realm.io",
77
"keywords": [

‎react-native/ios/RealmReact.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
192192
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
193193
COPY_PHASE_STRIP = NO;
194-
CURRENT_PROJECT_VERSION = 11.5.1;
194+
CURRENT_PROJECT_VERSION = 11.5.2;
195195
CXX = "$(SRCROOT)/../../scripts/ccache-clang++.sh";
196196
DEBUG_INFORMATION_FORMAT = dwarf;
197197
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -255,7 +255,7 @@
255255
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
256256
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
257257
COPY_PHASE_STRIP = NO;
258-
CURRENT_PROJECT_VERSION = 11.5.1;
258+
CURRENT_PROJECT_VERSION = 11.5.2;
259259
CXX = "$(SRCROOT)/../../scripts/ccache-clang++.sh";
260260
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
261261
ENABLE_STRICT_OBJC_MSGSEND = YES;

0 commit comments

Comments
 (0)
Please sign in to comment.