:by: Jelte Fennema
- Add support for the
expireTokens
option of the client tocreateUserToken
:by: Mircea Cosbuc
- Add support for batch activity partial update
:by: Jelte Fennema
- Add support for enriched
getActivities
- Improve file error handling
:by: Jelte Fennema
- Allow using
getActivities
with user token authentication
:by: Jelte Fennema
Use forked cross-fetch for better react native support
:by: Jelte Fennema
Update some dependencies that had vulnerabilities. npm audit
is now clean.
:by: Tommaso Barbugli
Fix a bad release with a big file in the publish on npm
:by: Tommaso Barbugli
Bugfix release: follow/unfollow stopped working server-side due to bad JWT generation code
:by: Tommaso Barbugli
Bugfix release: follow/unfollow stopped working server-side due to bad JWT generation code
: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
- Remove
createUserSession
. This is replaced by using the user token as the second argument tostream.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)
toclient.collections.add(collectionName, id, data)
. The same is done forupdate
,delete
,get
- Rename
client.collections.delete
toclient.collections.delete_many
session.react
was removed in favor ofclient.reactions.add
session.followUser
was removed in favor of usingclient.follow
- 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 withclient.currentUser
session.getUser(id)
is replaced withclient.user(id)
- Remove
client.collections.createReference(collection, entryId)
withclient.collections.entry(collection, itemId)
- Remove
client.collections.createUserReference(userId)
withclient.user(userId)
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
:by: Jelte Fennema
- Support Node 11.x
:by: Jelte Fennema
- Add support for filtering reactions
:by: Jelte Fennema
- Add support for reading reactions by ID
- Make collections an alias for the storage API, to make naming consistent
:by: Jelte Fennema
- Support for a new set of frontend API's
:by: Jelte Fennema
A beta release was released by accident on the "latest" npm tag. This release is effectively undoes that by creating a newer version.
- Support for partial activity update
- Support creating a client without a secret on the nodejs again.
:by: Tommaso Barbugli
Added get activities endpoint support
:by: Thierry Schellenbach
Update dependencies Update build to Webpack 4
:by: Tommaso Barbugli
- Node 10 support
:by: Tommaso Barbugli
- Make sure KeepAlive is used server-side
:by: Tommaso Barbugli
- Accept gzip encoded responses
:by: Dwight Gunning (@dwightgunning)
- Fixes break on babel transpilation introduced in 3.12.3 (#145)
- Fixes regex checks on Feed Ids and User Ids and clarifies error messages
- Updates downstream dependencies
- Fixes and enhancements to TypeScript type definitions (#139)
- Advances package 'engines' advisory to cover Node.js v9.0
:by: Ken Hoff (@kenhoff)
- Fixed incorrect TypeScript type definition on Feed.subscribe()
:by: Ken Hoff (@kenhoff)
- Further improvements to custom Error messages
:by: Ken Hoff (@kenhoff)
- Improvements to custom Error messages
:by: Ken Hoff (@kenhoff)
- Fixes for Node 4 compatibility
- Corrects error/validation message on user id regex check
- Clarifications to documention
:by: Ken Hoff (@kenhoff)
- Adds an updateActivityToTargets method - updates the
to
field on activities.
:by: Thierry Schellenbach (@tschellenbach)
- Conveniently expose the sigining library for people using custom endpoints
:by: Ken Hoff (@kenhoff)
- Add missing StreamApiError prototype (via PR #121 and Issue #119)
- Updated dtslint to ^0.2.0
:by: Tommaso Barbugli
- API endpoint domain switched from 'getstream.io' to 'stream-io-api.com'
- API call functions now error with a StreamAPIError
:by: Tommaso Barbugli
- Add type definitions
- Enforce withCredentials to false (Browser only)
:by: Matthisk Heimensen
- add getReadOnlyToken and getReadWriteToken method to feed instances
- Update Faye to 1.2.0
:by: Tommaso Barbugli
- Pin down all dependencies
:by: Tommaso Barbugli
- Added support for keep_history parameter on unfollow
:by: Matthisk Heimensen
- Stream-JS is now compatible with React-Native
- dependency browser-request fork changed to xmlhttp-request hosted on npm
:by: Matthisk Heimensen
- Stream-JS is now compatible with React-Native
- dependency browser-request updated to 0.3.4
:by: Matthisk Heimensen
- Added support for update_activity API
- Added support for activity_copy_limit to limit the amount of activities copied by client.followMany
- dependency request updated to 2.67.0
- dependency qs updated to 6.0.1
- dependency faye updated to 1.1.2
:by: Matthisk Heimensen
- Breaking change: Functions performing an XHR Request no longer return the request object, instead they return a Promise
- Added support for add_to_many api call (i.e. client.addToMany) to add one activity to many feeds
- Added support for follow_many api call (i.e. client.followMany) to create multiple follow relations in one request
- Added support to create a redirect url (i.e. client.createRedirectUrl) to track events via stream's analytics platform
- Added support for follow_copy_limit API parameter on follow.
- Added option to enable JWT token expiration (default behavior is no expiration) through option: { expireTokens: true }
- Removed Buffer as a dependency of lib/signing.js to reduce distributable size for the browser. Instead use Base64 lib for base64 encoding.
- Generated API documentation in /docs
- Enforce code style through jscs and jshint during the build (i.e. gulp lint)
:by: Thierry Schellenbach
- Added location support to reduce latency
- Heroku location support
:by: Thierry Schellenbach
- Allow "-" in feed id for compatibility with mongo ids
:by: Thierry Schellenbach
- Added validation on feed slug and user id
:by: Thierry Schellenbach
- Breaking change: New style feed syntax, client.feed('user', '1') instead of client.feed('user:3')
- Breaking change: New style follow syntax, feed.follow('user', 3)
- API versioning support
- Cleanup of API client codebase and naming
:by: Thierry Schellenbach
- Bugfix for filtering support
:by: Thierry Schellenbach
- Added user agent for getstream.io analytics
- Added support for filtering followers and following by providing the feeds argument
:by: Thierry Schellenbach
- Added support for attaching global handlers via client.on('request', callback)
- Add support for mark read and mark seen (notifications feeds)