diff --git a/CHANGELOG.md b/CHANGELOG.md index 456e92c..4f8571c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ===== diff --git a/lib/akismet.js b/lib/akismet.js index b040a19..68a4b19 100644 --- a/lib/akismet.js +++ b/lib/akismet.js @@ -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 diff --git a/package.json b/package.json index ededed9..b431256 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/test/akismet.spec.js b/test/akismet.spec.js index a43defa..dd62141 100644 --- a/test/akismet.spec.js +++ b/test/akismet.spec.js @@ -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'); });