getstream
Advanced tools
Comparing version 4.5.3 to 4.5.4
103
CHANGELOG.md
# Changelog | ||
## 4.5.4 - 2020-06-12 | ||
- Github Action | ||
- More tests for types | ||
- Format change in changelog | ||
- Enable node 11 | ||
## 4.5.3 - 2020-05-28 | ||
@@ -21,4 +28,2 @@ | ||
:by: Tommaso Barbugli | ||
- Update package.json engine to support Node 13 | ||
@@ -28,4 +33,2 @@ | ||
:by: Thierry Schellenbach | ||
- Make personalization token an option | ||
@@ -36,4 +39,2 @@ - Improve Typescript types manifest | ||
:by: Jelte Fennema | ||
- Add support for the `expireTokens` option of the client to `createUserToken` | ||
@@ -43,4 +44,2 @@ | ||
:by: Mircea Cosbuc | ||
- Add support for batch activity partial update | ||
@@ -50,4 +49,2 @@ | ||
:by: Jelte Fennema | ||
- Add support for enriched `getActivities` | ||
@@ -58,4 +55,2 @@ - Improve file error handling | ||
:by: Jelte Fennema | ||
### Fixed | ||
@@ -67,4 +62,2 @@ | ||
:by: Jelte Fennema | ||
Use forked cross-fetch for better react native support | ||
@@ -74,4 +67,2 @@ | ||
:by: Jelte Fennema | ||
Update some dependencies that had vulnerabilities. `npm audit` is now clean. | ||
@@ -81,4 +72,2 @@ | ||
:by: Tommaso Barbugli | ||
Fix a bad release with a big file in the publish on npm | ||
@@ -88,4 +77,2 @@ | ||
:by: Tommaso Barbugli | ||
Bugfix release: follow/unfollow stopped working server-side due to bad JWT generation code | ||
@@ -95,4 +82,2 @@ | ||
:by: Tommaso Barbugli | ||
Bugfix release: follow/unfollow stopped working server-side due to bad JWT generation code | ||
@@ -102,4 +87,2 @@ | ||
: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 | ||
@@ -138,4 +121,2 @@ | ||
:by: Jelte Fennema | ||
- Support Node 11.x | ||
@@ -145,4 +126,2 @@ | ||
:by: Jelte Fennema | ||
- Add support for filtering reactions | ||
@@ -152,4 +131,2 @@ | ||
:by: Jelte Fennema | ||
- Add support for reading reactions by ID | ||
@@ -160,4 +137,2 @@ - Make collections an alias for the storage API, to make naming consistent | ||
:by: Jelte Fennema | ||
- Support for a new set of frontend API's | ||
@@ -167,4 +142,2 @@ | ||
:by: Jelte Fennema | ||
A beta release was released by accident on the "latest" npm tag. This release | ||
@@ -178,4 +151,2 @@ is effectively undoes that by creating a newer version. | ||
:by: Tommaso Barbugli | ||
Added get activities endpoint support | ||
@@ -185,4 +156,2 @@ | ||
:by: Thierry Schellenbach | ||
Update dependencies | ||
@@ -193,4 +162,2 @@ Update build to Webpack 4 | ||
:by: Tommaso Barbugli | ||
- Node 10 support | ||
@@ -200,4 +167,2 @@ | ||
:by: Tommaso Barbugli | ||
- Make sure KeepAlive is used server-side | ||
@@ -207,4 +172,2 @@ | ||
:by: Tommaso Barbugli | ||
- Accept gzip encoded responses | ||
@@ -214,4 +177,2 @@ | ||
:by: Dwight Gunning (@dwightgunning) | ||
- Fixes break on babel transpilation introduced in 3.12.3 (#145) | ||
@@ -225,4 +186,2 @@ - Fixes regex checks on Feed Ids and User Ids and clarifies error messages | ||
:by: Ken Hoff (@kenhoff) | ||
- Fixed incorrect TypeScript type definition on Feed.subscribe() | ||
@@ -232,4 +191,2 @@ | ||
:by: Ken Hoff (@kenhoff) | ||
- Further improvements to custom Error messages | ||
@@ -239,4 +196,2 @@ | ||
:by: Ken Hoff (@kenhoff) | ||
- Improvements to custom Error messages | ||
@@ -246,12 +201,8 @@ | ||
:by: Ken Hoff (@kenhoff) | ||
- Fixes for Node 4 compatibility | ||
- Corrects error/validation message on user id regex check | ||
- Clarifications to documention | ||
- Clarifications to documentation | ||
## 3.10.0 - 2017-12-06 | ||
:by: Ken Hoff (@kenhoff) | ||
- Adds an updateActivityToTargets method - updates the `to` field on activities. | ||
@@ -261,10 +212,6 @@ | ||
:by: Thierry Schellenbach (@tschellenbach) | ||
- Conveniently expose the signing library for people using custom endpoints | ||
- Conveniently expose the sigining library for people using custom endpoints | ||
## 3.8.0 - 2017-10-30 | ||
:by: Ken Hoff (@kenhoff) | ||
- Add missing StreamApiError prototype (via PR #121 and Issue #119) | ||
@@ -275,4 +222,2 @@ - Updated dtslint to ^0.2.0 | ||
:by: Tommaso Barbugli | ||
- API endpoint domain switched from 'getstream.io' to 'stream-io-api.com' | ||
@@ -283,4 +228,2 @@ - API call functions now error with a StreamAPIError | ||
:by: Tommaso Barbugli | ||
- Add type definitions | ||
@@ -291,4 +234,2 @@ - Enforce withCredentials to false (Browser only) | ||
:by: Matthisk Heimensen | ||
- add getReadOnlyToken and getReadWriteToken method to feed instances | ||
@@ -299,4 +240,2 @@ - Update Faye to 1.2.0 | ||
:by: Tommaso Barbugli | ||
- Pin down all dependencies | ||
@@ -306,4 +245,2 @@ | ||
:by: Tommaso Barbugli | ||
- Added support for keep_history parameter on unfollow | ||
@@ -313,4 +250,2 @@ | ||
:by: Matthisk Heimensen | ||
- Stream-JS is now compatible with React-Native | ||
@@ -321,4 +256,2 @@ - dependency browser-request fork changed to xmlhttp-request hosted on npm | ||
:by: Matthisk Heimensen | ||
- Stream-JS is now compatible with React-Native | ||
@@ -329,4 +262,2 @@ - dependency browser-request updated to 0.3.4 | ||
:by: Matthisk Heimensen | ||
- Added support for update_activity API | ||
@@ -340,4 +271,2 @@ - Added support for activity_copy_limit to limit the amount of activities copied by client.followMany | ||
:by: Matthisk Heimensen | ||
- Breaking change: Functions performing an XHR Request no longer return the request object, instead they return a Promise | ||
@@ -356,4 +285,2 @@ - Added support for add_to_many api call (i.e. client.addToMany) to add one activity to many feeds | ||
:by: Thierry Schellenbach | ||
- Added location support to reduce latency | ||
@@ -364,4 +291,2 @@ - Heroku location support | ||
:by: Thierry Schellenbach | ||
- Allow "-" in feed id for compatibility with mongo ids | ||
@@ -371,4 +296,2 @@ | ||
:by: Thierry Schellenbach | ||
- Added validation on feed slug and user id | ||
@@ -378,4 +301,2 @@ | ||
:by: Thierry Schellenbach | ||
- Breaking change: New style feed syntax, client.feed('user', '1') instead of client.feed('user:3') | ||
@@ -388,4 +309,2 @@ - Breaking change: New style follow syntax, feed.follow('user', 3) | ||
:by: Thierry Schellenbach | ||
- Bugfix for filtering support | ||
@@ -395,4 +314,2 @@ | ||
:by: Thierry Schellenbach | ||
- Added user agent for getstream.io analytics | ||
@@ -403,5 +320,3 @@ - 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) |
@@ -14,3 +14,3 @@ { | ||
"license": "BSD-3-Clause", | ||
"version": "4.5.3", | ||
"version": "4.5.4", | ||
"scripts": { | ||
@@ -30,3 +30,3 @@ "build": "babel src --out-dir lib", | ||
"generate-docs": "jsdoc -c .jsdoc", | ||
"coverage": "nyc --reporter=lcov mocha --require @babel/register bin/run-node-unit-tests.js", | ||
"coverage": "nyc --reporter=text-lcov mocha --require @babel/register bin/run-node-unit-tests.js | codecov --pipe", | ||
"preversion": "npm run test-unit-node", | ||
@@ -77,3 +77,3 @@ "version": "./bin/version.sh && git add dist", | ||
"chai": "^4.1.2", | ||
"coveralls": "^3.0.1", | ||
"codecov": "^3.7.0", | ||
"crypto-browserify": "^3.12.0", | ||
@@ -130,4 +130,4 @@ "dtslint": "^0.8.0", | ||
"engines": { | ||
"node": "10.* || >=12" | ||
"node": ">=10" | ||
} | ||
} |
# Stream-JS | ||
[![Build Status](https://travis-ci.org/GetStream/stream-js.svg?branch=master)](https://travis-ci.org/GetStream/stream-js) | ||
[![build](https://github.com/GetStream/stream-js/workflows/build/badge.svg)](https://github.com/GetStream/stream-js/actions) [![codecov](https://codecov.io/gh/GetStream/stream-js/branch/master/graph/badge.svg)](https://codecov.io/gh/GetStream/stream-js) | ||
@@ -5,0 +5,0 @@ [![NPM](https://nodei.co/npm/getstream.png)](https://nodei.co/npm/getstream/) |
@@ -9,2 +9,11 @@ new stream.Client('key', undefined, 'apiSecret'); | ||
client.feed('feedSlug', 'user'); // $ExpectType Feed | ||
client.og('https://getstream.io'); // $ExpectType Promise<OGResponse> | ||
client.images.upload('http://foo.bar/img.jpg', 'img.jpg', 'image/jpeg'); // $ExpectType Promise<FileUploadAPIResponse> | ||
// prettier-ignore | ||
client.images.process('http://foo.bar/img.jpg', { crop: 'bottom', resize: 'clip', h: 50, w: 50 }); // $ExpectType Promise<FileUploadAPIResponse> | ||
// prettier-ignore | ||
client.images.thumbmail('http://foo.bar/img.jpg', 50, 50, { crop: 'bottom', resize: 'fill' }); // $ExpectType Promise<FileUploadAPIResponse> | ||
client.images.delete('http://foo.bar/img.jpg'); // $ExpectType Promise<void> | ||
client.files.upload('http://foo.bar/txt.txt', 'txt.txt', 'text/plain'); // $ExpectType Promise<FileUploadAPIResponse> | ||
client.files.delete('http://foo.bar/txt.txt'); // $ExpectType Promise<void> | ||
@@ -11,0 +20,0 @@ let callback = (err: object, httpResponse: object, body: object) => {}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11379
10
514913