Skip to content

Commit

Permalink
Merge pull request #24 from chrisfosterelli/v2.1
Browse files Browse the repository at this point in the history
Version 2.1.0
  • Loading branch information
chrisfosterelli committed May 6, 2016
2 parents 839005b + 4d3647f commit 6e3ee07
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2.1.0
=====

* Feature: Added official support for Node 6.x
* Feature: Added official support for Node 5.x
* Patch: Updated superagent to 1.8.3
* Patch: Updated mocha to 2.4.5
* Patch: Updated chai to 3.5.0

2.0.0
=====

Expand Down
2 changes: 1 addition & 1 deletion lib/akismet.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var Akismet = function(options) {
this.host = options.host || 'rest.akismet.com';
this.version = options.version || '1.1';
this.endpoint = options.endpoint || this.key + '.' + this.host + '/' + this.version + '/';
this.userAgent = options.userAgent || 'Node.js/' + process.version + ' | Akismet-api/1.1.0';
this.userAgent = options.userAgent || 'Node.js/' + process.version + ' | Akismet-api/2.1.0';

/*
* Verify that the provided key is accepted by Akismet
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "akismet-api",
"version": "2.0.0",
"version": "2.1.0",
"description": "Nodejs bindings to the Akismet (http://akismet.com) spam detection service",
"main": "lib/akismet.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/akismet.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Akismet-api', function() {
expect(client.host).to.equal('rest.akismet.com');
expect(client.endpoint).to.equal('undefined.rest.akismet.com/1.1/');
expect(client.port).to.equal(80);
expect(client.userAgent).to.equal('Node.js/' + process.version + ' | Akismet-api/1.1.0');
expect(client.userAgent).to.equal('Node.js/' + process.version + ' | Akismet-api/2.1.0');
expect(client.version).to.equal('1.1');
});

Expand Down

0 comments on commit 6e3ee07

Please sign in to comment.