Comparing version 0.10.0 to 0.11.0-rc
@@ -21,10 +21,19 @@ //////////////////////////////////////////////////////////////////////////// | ||
var arrayMethods = require('./array-methods'); | ||
var realmConstructor; | ||
if (typeof Realm != 'undefined') { | ||
// The global Realm constructor should be available on device (using JavaScriptCore). | ||
module.exports = Realm; // eslint-disable-line no-undef | ||
} else if (navigator.userAgent) { | ||
realmConstructor = Realm; // eslint-disable-line no-undef | ||
} else if (typeof navigator != 'undefined' && navigator.userAgent) { // eslint-disable-line no-undef | ||
// The userAgent will be defined when running in a browser (such as Chrome debugging mode). | ||
module.exports = require('./realm'); | ||
realmConstructor = require('./browser').default; // (exported as ES6 module) | ||
} else { | ||
throw new Error('Missing Realm constructor - please ensure RealmReact framework is included!'); | ||
} | ||
// Add the specified Array methods to the prototype of List and Results. | ||
Object.defineProperties(realmConstructor.List.prototype, arrayMethods); | ||
Object.defineProperties(realmConstructor.Results.prototype, arrayMethods); | ||
module.exports = realmConstructor; |
{ | ||
"name": "realm", | ||
"description": "Realm is a mobile database: an alternative to SQLite and key-value stores", | ||
"version": "0.10.0", | ||
"version": "0.11.0-rc", | ||
"license": "Apache-2.0", | ||
@@ -45,2 +45,3 @@ "homepage": "https://realm.io", | ||
"jsdoc": "rm -rf docs/output && jsdoc -c docs/conf.json", | ||
"lint": "eslint", | ||
"test": "scripts/test.sh", | ||
@@ -50,3 +51,7 @@ "prepublish": "scripts/prepublish.sh" | ||
"devDependencies": { | ||
"jsdoc": "^3.4.0" | ||
"babel-eslint": "^5.0.0", | ||
"eslint": "^2.2.0", | ||
"eslint-plugin-react": "^4.1.0", | ||
"jsdoc": "^3.4.0", | ||
"semver": "^5.1.0" | ||
}, | ||
@@ -53,0 +58,0 @@ "engines": { |
# Realm Object Store | ||
Cross-platform code used accross bindings. Binding developers can choose to use some or all the included functionality | ||
Cross-platform code used accross bindings. Binding developers can choose to use some or all the included functionality: | ||
- `object_store`/`schema`/`object_schema`/`property` - contains the structures and logic used to setup and modify realm files and their schema. | ||
@@ -11,6 +11,34 @@ - `shared_realm` - wraps the object_store apis to provide transactions, notifications, realm caching, migrations, and other higher level functionality. | ||
TBD | ||
The object store's build system currently only suports building for OS X. The object store itself can build for all Apple | ||
platforms when integrated into a binding. | ||
1. Install CMake. You can download an installer for OS X from the [CMake download page], or install via [Homebrew](http://brew.sh): | ||
``` | ||
brew install cmake | ||
``` | ||
2. Generate build files: | ||
``` | ||
cmake . | ||
``` | ||
3. Build: | ||
``` | ||
make | ||
``` | ||
If you wish to build against a local version of core you can invoke `cmake` like so: | ||
``` | ||
cmake -DREALM_CORE_VERSION=/path/to/realm-core | ||
``` | ||
The given core tree will be built as part of the object store build. | ||
## Testing | ||
TBD | ||
``` | ||
make run-tests | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 14 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48334231
293
5
1044
20