Skip to content

Commit 2c9b336

Browse files
authored
revert #2078 (#2173)
* Revert "Added support for the `n` node version manager (#2078)" This reverts commit e198905.
1 parent 65fa6b6 commit 2c9b336

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ x.x.x Release notes (yyyy-MM-dd)
88
* ReactNative for Android no longer uses deprecated methods and can build using Gradle 5.0 and above. ([#1995](https://github.com/realm/realm-js/issues/1995))
99
* A bug caused loading the binary component of the SDK to hang on Windows. ([#2169](https://github.com/realm/realm-js/issues/2169), since v2.21.0)
1010
* Fix occasional `FATAL ERROR: v8::String::Cast Could not convert to string` crashes when reading a property from a Realm object. ([#2172](https://github.com/realm/realm-js/pull/2172), since v2.19.0)
11+
* Reverted support for `n` as it prevent users to include Realm in iOS apps. We restore the old behaviour as a temporary solution, and we will reenable support of `n` in the near future. ([#2099](https://github.com/realm/realm-js/issues/2099), since v2.19.0-rc.5)
1112

1213
### Compatibility
1314
* Realm Object Server: 3.11.0 or later.
1415
* APIs are backwards compatible with all previous release of realm in the 2.x.y series.
1516
* File format: Generates Realms with format v9 (Reads and upgrades all previous formats)
1617

17-
### Internal
18+
### Internal
1819
* Upgraded to Realm Core v5.12.5 (hanging on Windows).
1920
* Upgraded to Realm Sync v3.14.3.
2021

src/RealmJS.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@
860860
);
861861
runOnlyForDeploymentPostprocessing = 0;
862862
shellPath = /bin/sh;
863-
shellScript = "if [[ -d \"$HOME/.asdf/shims\" ]]; then\n export PATH=$HOME/.asdf/shims:$PATH\nfi\n\nif [[ -d \"$HOME/.n\" ]]; then\n export N_PREFIX=\"$HOME/.n\"; [[ :$PATH: == *\":$N_PREFIX/bin:\"* ]] || PATH+=\":$N_PREFIX/bin\"\nfi\n\nif [[ \"$(command -v n)\" ]]; then\n n 7.10.0\nelse\n [ -z \"$NVM_DIR\" ] && export NVM_DIR=\"$HOME/.nvm\"\n\n if [[ -s \"$HOME/.nvm/nvm.sh\" ]]; then\n . \"$HOME/.nvm/nvm.sh\"\n elif [[ -x \"$(command -v brew)\" && -s \"$(brew --prefix nvm)/nvm.sh\" ]]; then\n . \"$(brew --prefix nvm)/nvm.sh\"\n fi\n \n if [[ \"$(command -v nvm)\" ]]; then\n nvm install 7.10.0\n else\n echo \"RealmJS requires a node package manager (n or nvm).\"\n exit 1\n fi\nfi\n \nnode ../scripts/download-realm.js ios --sync\n";
863+
shellScript = "if [[ -d \"$HOME/.asdf/shims\" ]]; then\n export PATH=$HOME/.asdf/shims:$PATH\nfi\n\n[ -z \"$NVM_DIR\" ] && export NVM_DIR=\"$HOME/.nvm\"\n\nif [[ -s \"$HOME/.nvm/nvm.sh\" ]]; then\n . \"$HOME/.nvm/nvm.sh\"\nelif [[ -x \"$(command -v brew)\" && -s \"$(brew --prefix nvm)/nvm.sh\" ]]; then\n . \"$(brew --prefix nvm)/nvm.sh\"\nfi\n \nif [[ \"$(command -v nvm)\" ]]; then\n nvm install 7.10.0\nfi\n \n node ../scripts/download-realm.js ios --sync";
864864
};
865865
/* End PBXShellScriptBuildPhase section */
866866

0 commit comments

Comments
 (0)