You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
### Features
4
4
5
5
###### Merge Conflict Resolution #4
6
-
Users can now set a global and per record merge strategy. This allows the application to respond to VERSION_EXISTS and using a REMOTE_WINS, LOCAL_WINS or custom merge strategy.
6
+
Users can now set a global and per record merge strategy. This allows the application to respond to `VERSION_EXISTS` and use a `REMOTE_WINS`, `LOCAL_WINS` or a custom merge strategy
deepstream protocol now has a connection establishment handshake that allows the client to be redirected to another deepstream before requesting/publishing data
27
28
28
29
###### Record deletes #111
29
30
Users can now delete content within records by setting it to undefined
@@ -33,26 +34,26 @@ record.set( path, undefined )
33
34
```
34
35
35
36
###### Reduced client size #75
36
-
Client size bundle has been reduced by not including mocks for the tcp connection.
37
+
Client size bundle has been reduced by not including mocks for the tcp connection
37
38
38
39
###### Discard/Delete only on ready #94
39
40
Record discards and deletes now get called after when ready, which makes the API cleaner
40
41
41
42
Before:
42
43
```javascript
43
-
record =client.record.getRecord( 'user1' );
44
-
record.set( 'name', 'bob' );
44
+
record =client.record.getRecord( 'user1' )
45
+
record.set( 'name', 'bob' )
45
46
record.onReady( () => {
46
-
record.discard();
47
+
record.discard()
47
48
})
48
49
```
49
50
50
51
Now:
51
52
```javascript
52
-
record =client.record.getRecord( 'user1' );
53
+
record =client.record.getRecord( 'user1' )
53
54
record
54
55
.set( 'name', 'bob' )
55
-
.discard();
56
+
.discard()
56
57
```
57
58
58
59
###### Exposed Constants
@@ -62,15 +63,15 @@ You can now access constants on deepstream
62
63
// on the constructor
63
64
constC=deepstream.CONSTANTS;
64
65
// and instance
65
-
constclient=deepstream.login()
66
+
constclient=deepstream( 'localhost:6020')
66
67
CONSTC=client.CONSTANTS;
67
68
```
68
69
69
70
### Breaking Changes
70
71
71
72
###### Login callback
72
73
73
-
The login callback now only takes two arguments instead of three. This is to make it easier for the user to send their own custom data from an authentication hander or when using the http authentication handler.
74
+
The login callback now only takes two arguments instead of three. This is to make it easier for the user to send their own custom data from an authentication hander or when using the http authentication handler
0 commit comments