slack-client
Advanced tools
Comparing version 2.0.0-beta.9 to 2.0.0
@@ -1,3 +0,14 @@ | ||
### v1.5.1 (2015-15-15) | ||
### v2.0.0 (2016-02-13) | ||
Refactors the library to javascript, adds a lot of tests and restructures it to improve maintainability and extend functionality. | ||
* Creates two separate clients: | ||
- RTM; manages connection to Slack's RTM API, including reconnects | ||
- Web; provideas a callback interface to all of Slack's Web API endpoints | ||
* Moves the memory data store implementation off the clients and into its own class | ||
* Uncouples the model objects from the clients; model functions to send messages to channels etc are now accessed via the web and RTM client | ||
* Moves the transport layer (websockets and HTTP) to a pluggable model, so that complex transports (through request proxies etc) can be handled | ||
* Adds test coverage on most core functionality in the library | ||
### v1.5.1 (2015-12-15) | ||
* Adds support for a request-proxy URL to use the client from behind a proxy | ||
@@ -4,0 +15,0 @@ |
@@ -13,4 +13,7 @@ /** | ||
web.team.info(function teamInfoCb(err, channels) { | ||
if (err) return console.log('Error:', err); | ||
console.log('Team Info:', channels); | ||
if (err) { | ||
console.log('Error:', err); | ||
} else { | ||
console.log('Team Info:', channels); | ||
} | ||
}); |
{ | ||
"name": "slack-client", | ||
"version": "2.0.0-beta.9", | ||
"description": "A library for creating a full Slack client", | ||
"version": "2.0.0", | ||
"description": "A library for creating a Slack client", | ||
"main": "./index", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -19,3 +19,3 @@ # Node Library for the Slack APIs | ||
```bashp | ||
npm install slack-client@2.0.0-beta.9 --save | ||
npm install slack-client --save | ||
``` | ||
@@ -72,3 +72,3 @@ | ||
var RTM_CLIENT_EVENTS = require('slack-client').EVENTS.CLIENT.RTM; | ||
var RTM_CLIENT_EVENTS = require('slack-client').CLIENT_EVENTS.RTM; | ||
@@ -75,0 +75,0 @@ // you need to wait for the client to fully connect before you can send messages |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
203649
5537
1
1