Skip to content

Commit

Permalink
Merge e916807 into 0b91397
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbugli committed Dec 3, 2018
2 parents 0b91397 + e916807 commit a8e6a97
Show file tree
Hide file tree
Showing 38 changed files with 6,730 additions and 6,092 deletions.
35 changes: 35 additions & 0 deletions CHANGELOG
Expand Up @@ -2,6 +2,41 @@
Change history
================

4.0.0
=====
:release-date: 2018-12-03
:by: Jelte Fennema

This release merges frontend and backend usage of the client for a much better experience. To do this it has same breaking changes

### BREAKING CHANGES

* Remove `createUserSession`. This is replaced by using the user token as the
second argument to `stream.connect`, i.e. `stream.connect(apiKey, userToken,
appId)`. All calls you did on the user session can now be done the same way on the client (except for the things mentioned below).
* Change `userSession.collection(collectionName).add(id, data)` to
`client.collections.add(collectionName, id, data)`. The same is done for `update`, `delete`, `get`
* Rename `client.collections.delete` to `client.collections.delete_many`
* `session.react` was removed in favor of `client.reactions.add`
* the arguments for `session.reactions.add` have slightly changed
```
// old
session.reactions.add(kind, activity, {data, targetFeeds})
// new
client.reactions.add(kind, activity, data, {targetFeeds})
```
* `session.user` is replaced with `client.currentUser`
* `session.getUser(id)` is replaced with `client.user(id)`
* Remove `client.collections.createReference(collection, entryId)` with `client.collections.entry(collection, itemId)`
* Remove `client.collections.createUserReference(userId)` with `client.user(userId)`

### New features

* `client.reactions.addChild()` was added to create reactions to reactions
* responses from user(id).get/add/update and collections.get/add/update apis
can now be used directly in an activity and will be replaced by a reference automatically


3.23.1
======
:release-date: 2018-11-20
Expand Down
4 changes: 2 additions & 2 deletions bin/postversion.sh
Expand Up @@ -5,5 +5,5 @@ set -e
#node ./bin/bower-up.js
#git add bower.json
#git commit -m 'publish new version on Bower'
git push origin master
git push origin --tags
git push
git push --tags

0 comments on commit a8e6a97

Please sign in to comment.