@pomwik/afterdb-react 0.20.1 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES-FROM-UPSTREAM.md +8 -6
- package/README.md +2 -2
- package/package.json +2 -2
package/CHANGES-FROM-UPSTREAM.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Changes from upstream
|
|
2
2
|
|
|
3
3
|
`@pomwik/afterdb` and `@pomwik/afterdb-react` repackage the official npm tarballs `realm@20.2.0` and
|
|
4
|
-
`@realm/react@0.20.0` of the Realm® JavaScript SDK (Apache-2.0). The prebuilt realm-core
|
|
5
|
-
changed.
|
|
4
|
+
`@realm/react@0.20.0` of the Realm® JavaScript SDK (Apache-2.0). The compiled libraries of the prebuilt realm-core
|
|
5
|
+
engine are not recompiled or changed; one of its headers and its Android CMake files are (listed below).
|
|
6
6
|
|
|
7
7
|
Realm® is a trademark of MongoDB, Inc. This project is independent and not affiliated with or endorsed by MongoDB.
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Every file listed here was modified, removed or added. Modified text files carry
|
|
|
10
10
|
Hmedi), 2026 » note, except `package.json`: JSON has no comments, so it carries an `afterdb` field instead (upstream
|
|
11
11
|
name, version and npm integrity).
|
|
12
12
|
|
|
13
|
-
## @pomwik/afterdb 20.3.
|
|
13
|
+
## @pomwik/afterdb 20.3.1 (from realm@20.2.0)
|
|
14
14
|
|
|
15
15
|
| File | Change | Why |
|
|
16
16
|
|---|---|---|
|
|
@@ -21,12 +21,14 @@ name, version and npm integrity).
|
|
|
21
21
|
| `package.json` | `imports["#realm.node"]` removed | Its only user was `dist/platform/node/binding.js` (patched below); the build checks that nothing else in the package refers to it |
|
|
22
22
|
| `package.json` | `gypfile: false`; `files`: `binding.gyp` removed, `prebuilds/node`, `LICENSE`, `NOTICE`, `THIRD-PARTY-NOTICES.md`, `CHANGES-FROM-UPSTREAM.md` and `checksums.txt` added | See `binding.gyp` below; the added files ship in the package |
|
|
23
23
|
| `package.json` | `afterdb` field added | Marks the file as modified, and records where it comes from |
|
|
24
|
+
| `package.json` | From 20.3.1 (not in 20.3.0): `sqlite`, `rocksdb`, `leveldb`, `async storage` and `asyncstorage` removed from `keywords`; `config.anonymizedBundleId` removed | The package is none of those storage engines; only the removed analytics script read `anonymizedBundleId` |
|
|
24
25
|
| `dist/scripts/submit-analytics.*`, `scripts/submit-analytics.js` | Removed | Install-time analytics |
|
|
25
|
-
| `prebuilds/node/<platform>-<arch>/realm.node` | Added: the upstream N-API binaries for darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64 | Installs work offline and in CI |
|
|
26
|
+
| `prebuilds/node/<platform>-<arch>/realm.node` | Added: the upstream N-API binaries for darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64, unchanged. Upstream also serves binaries for linux-arm and win32-ia32 (static.realm.io, 20.2.0); they are not shipped, so on those platforms Node gets the error described in the next row. The Linux binaries contain OpenSSL built from the 3.3.1 sources, end-of-life since 2026-04-09: we cannot rebuild them yet | Installs work offline and in CI |
|
|
26
27
|
| `dist/platform/node/binding.js` | Loads the binary of the current platform; if none is shipped for it, throws an error that names the platform and the 5 shipped ones (instead of the upstream `#realm.node` lookup) | Same, and a clear message instead of a module-not-found error |
|
|
27
28
|
| `RealmJS.podspec` | `install_modules_dependencies(s)` instead of `s.dependency 'React'` | iOS linking on React Native >= 0.86 with frameworks (realm/realm-js#7157, fix by TPXP, reused with credit) |
|
|
28
29
|
| `RealmJS.podspec` | `HEADER_SEARCH_PATHS` is a string instead of an array | React Native's `install_modules_dependencies` appends to it as a string, so the array became `["..."] …` and broke header lookups (found by the independent review) |
|
|
29
30
|
| `RealmJS.podspec` | `REALM_ENABLE_SYNC=1` removed from the preprocessor flags, and the upstream comment above it (« compiled with Sync enabled ») replaced | v20 has no sync; no shipped header or binding source reads it |
|
|
31
|
+
| `RealmJS.podspec` | From 20.3.1 (not in 20.3.0): `s.source` names github.com/FirasHmedi/afterdb (tag `v<version>`) instead of a realm/realm-js page | React Native installs the pod from its folder and does not read `s.source`; the podspec names this project |
|
|
30
32
|
| `RealmJS.podspec` | `s.platform`: React Native's minimum iOS version (`min_ios_version_supported`) when React Native defines it, otherwise 15.1, instead of iOS 9.0 | 9.0 is far below what React Native >= 0.71 supports |
|
|
31
33
|
| `binding/android/build.gradle` | `ndkVersion rootProject.ext.ndkVersion` when the app defines it, as React Native libraries do; otherwise AGP's default, as before | `librealm.so` was built with AGP's default NDK (27.0 with AGP 8.12, 28.2 with AGP 9.2) instead of the app's |
|
|
32
34
|
| `binding/android/build.gradle`, new `binding/android/consumer-rules.pro` | `consumerProguardFiles 'consumer-rules.pro'` with `-keep class io.realm.react.** { *; }` | With R8 in the app's release build (on by default in Expo SDK 58), `io.realm.react.util.SSLHelper`, looked up only from native code (`FindClass` in `JNI_OnLoad`), was removed and the app crashed at start with `ClassNotFoundException`. Found with the Expo 58 example on 2026-11-06 |
|
|
@@ -37,9 +39,9 @@ name, version and npm integrity).
|
|
|
37
39
|
| `binding.gyp` | Removed | It only rebuilds the Node binary from source; npm would otherwise run node-gyp at install |
|
|
38
40
|
| `README.md` | Replaced, with a « Modified by Pomwik (Firas Hmedi), 2026 » note | Describes this package |
|
|
39
41
|
| `LICENSE`, `NOTICE`, `THIRD-PARTY-NOTICES.md`, `CHANGES-FROM-UPSTREAM.md`, `checksums.txt` | Added (the upstream tarball has no LICENSE file). `THIRD-PARTY-NOTICES.md` lists the third-party code inside the prebuilt realm-core engine and the Node binaries, with its licence texts | Licence and traceability |
|
|
40
|
-
| `RealmJS.podspec`, `binding/android` | Not renamed, on purpose: the iOS pod `RealmJS`, the Android namespace `io.realm.react` and the native library `librealm.so` keep their upstream names. The pod version follows the package version (20.3.
|
|
42
|
+
| `RealmJS.podspec`, `binding/android` | Not renamed, on purpose: the iOS pod `RealmJS`, the Android namespace `io.realm.react` and the native library `librealm.so` keep their upstream names. The pod version follows the package version (20.3.1, not an upstream release) | Drop-in compatibility: React Native autolinking, existing Podfiles and lockfiles, and the native code that looks up `io.realm.react` classes by name keep working unchanged |
|
|
41
43
|
|
|
42
|
-
## @pomwik/afterdb-react 0.20.
|
|
44
|
+
## @pomwik/afterdb-react 0.20.2 (from @realm/react@0.20.0)
|
|
43
45
|
|
|
44
46
|
| File | Change | Why |
|
|
45
47
|
|---|---|---|
|
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The `@realm/react` 0.20.0 hooks for Realm® (RealmProvider, useQuery, useObject, useRealm), repackaged for
|
|
4
4
|
@pomwik/afterdb, with `react-native` as an optional peer dependency instead of a nested copy (realm/realm-js#7066).
|
|
5
|
-
Use it through an npm alias: `"@realm/react": "npm:@pomwik/afterdb-react@0.20.
|
|
6
|
-
`"realm": "npm:@pomwik/afterdb@20.3.
|
|
5
|
+
Use it through an npm alias: `"@realm/react": "npm:@pomwik/afterdb-react@0.20.2"`, next to
|
|
6
|
+
`"realm": "npm:@pomwik/afterdb@20.3.1"`. Changes: see CHANGES-FROM-UPSTREAM.md.
|
|
7
7
|
|
|
8
8
|
Realm® is a trademark of MongoDB, Inc. This project is independent and not affiliated with or endorsed by MongoDB.
|
|
9
9
|
Licence: Apache-2.0 (see LICENSE and NOTICE).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pomwik/afterdb-react",
|
|
3
|
-
"version": "0.20.
|
|
4
|
-
"description": "React hooks for Realm® databases (RealmProvider, useQuery, useObject, useRealm), repackaged from @realm/react 0.20.0
|
|
3
|
+
"version": "0.20.2",
|
|
4
|
+
"description": "afterdb React hooks for Realm® databases (RealmProvider, useQuery, useObject, useRealm), repackaged from @realm/react 0.20.0. Not affiliated with or endorsed by MongoDB, Inc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|