dataflux 1.0.2 → 1.0.4
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/README.md +1 -1
- package/dist/PersistentStore.js +1 -1
- package/package.json +13 -4
package/README.md
CHANGED
|
@@ -400,4 +400,4 @@ Other ways to declare relations:
|
|
|
400
400
|
|
|
401
401
|
* `author.addRelation("book", filterFunction)`
|
|
402
402
|
|
|
403
|
-
When the second parameter is a function, the function will be used by the store to filter the objects of the connected model. The `filterFunction` receives two parameters `(parentObject, possibleChildObject)` and returns a boolean. In this way you can create complex relations
|
|
403
|
+
When the second parameter is a function, the function will be used by the store to filter the objects of the connected model. The `filterFunction` receives two parameters `(parentObject, possibleChildObject)` and returns a boolean. In this way you can create complex relations; e.g., a `filterFunction` equal to `(author, book) => author.name == book.authorName && author.surname == book.authorSurname` creates a relation based on two attributes.
|
package/dist/PersistentStore.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dataflux",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "DataFlux, automatically interfaces with your REST APIs to create a 2-way-synced local data store. Transparently manages data propagation in the React state.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": "dist/index.js",
|
|
@@ -14,19 +14,28 @@
|
|
|
14
14
|
"name": "Massimo Candela",
|
|
15
15
|
"url": "https://massimocandela.com"
|
|
16
16
|
},
|
|
17
|
-
"license": "
|
|
17
|
+
"license": "MIT",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/massimocandela/dataflux.git"
|
|
21
21
|
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"data",
|
|
24
|
+
"React",
|
|
25
|
+
"REST",
|
|
26
|
+
"ORM",
|
|
27
|
+
"browser",
|
|
28
|
+
"api",
|
|
29
|
+
"observable",
|
|
30
|
+
"layer"
|
|
31
|
+
],
|
|
22
32
|
"release-it": {
|
|
23
33
|
"hooks": {
|
|
24
34
|
"before:init": [
|
|
25
35
|
"npm ci"
|
|
26
36
|
],
|
|
27
37
|
"after:bump": [
|
|
28
|
-
"npm run compile"
|
|
29
|
-
"git add dist/"
|
|
38
|
+
"npm run compile"
|
|
30
39
|
],
|
|
31
40
|
"after:release": [
|
|
32
41
|
"echo Successfully released ${name} v${version} to ${repo.repository}.",
|