Skip to content

Commit 23f598b

Browse files
committed
v1.0.0
1 parent e8c874d commit 23f598b

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

CHANGELOG.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Features
44

55
###### 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
77

88
Global:
99
```javascript
@@ -24,6 +24,7 @@ record.setMergeStrategy( ( record, remoteValue, remoteVersion, callback ) => {
2424
#### Enhancements
2525

2626
###### Connection Redirects
27+
deepstream protocol now has a connection establishment handshake that allows the client to be redirected to another deepstream before requesting/publishing data
2728

2829
###### Record deletes #111
2930
Users can now delete content within records by setting it to undefined
@@ -33,26 +34,26 @@ record.set( path, undefined )
3334
```
3435

3536
###### 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
3738

3839
###### Discard/Delete only on ready #94
3940
Record discards and deletes now get called after when ready, which makes the API cleaner
4041

4142
Before:
4243
```javascript
43-
record = client.record.getRecord( 'user1' );
44-
record.set( 'name', 'bob' );
44+
record = client.record.getRecord( 'user1' )
45+
record.set( 'name', 'bob' )
4546
record.onReady( () => {
46-
record.discard();
47+
record.discard()
4748
})
4849
```
4950

5051
Now:
5152
```javascript
52-
record = client.record.getRecord( 'user1' );
53+
record = client.record.getRecord( 'user1' )
5354
record
5455
.set( 'name', 'bob' )
55-
.discard();
56+
.discard()
5657
```
5758

5859
###### Exposed Constants
@@ -62,15 +63,15 @@ You can now access constants on deepstream
6263
// on the constructor
6364
const C = deepstream.CONSTANTS;
6465
// and instance
65-
const client = deepstream.login()
66+
const client = deepstream( 'localhost:6020' )
6667
CONST C = client.CONSTANTS;
6768
```
6869

6970
### Breaking Changes
7071

7172
###### Login callback
7273

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
7475

7576
```javascript
7677
client.login( {}, ( success, data ) => {
@@ -84,8 +85,11 @@ client.login( {}, ( success, data ) => {
8485
} )
8586
```
8687

88+
###### EngineIO Default Path
89+
We now use `deepstream` instead of `engine.io` as the default engineio path
90+
8791
### Bug Fixes
8892

8993
- Login after logout doesn't overide auth parameters #88
9094

91-
- Deepstream not updating object properties #96 ( @drsirmrpresidentfathercharles )
95+
- Deepstream not updating object properties #96 ( @drsirmrpresidentfathercharles )

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deepstream.io-client-js",
3-
"version": "1.0.0-beta.1",
3+
"version": "1.0.0",
44
"description": "the javascript client for deepstream.io",
55
"main": "src/client.js",
66
"directories": {
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"component-emitter": "1.1.2",
26-
"engine.io-client": "^1.6.8"
26+
"engine.io-client": "^1.6.11"
2727
},
2828
"browser": {
2929
"net": false
@@ -48,7 +48,7 @@
4848
"watch": "^0.19.1"
4949
},
5050
"author": "deepstreamHub GmbH",
51-
"license": "MIT",
51+
"license": "Apache-2.0",
5252
"bugs": {
5353
"url": "https://github.com/deepstreamIO/deepstream.io-client-js/issues"
5454
},

0 commit comments

Comments
 (0)