From 4dbc2a110d05d2b2a33740dc593e60889a52d16b Mon Sep 17 00:00:00 2001 From: Chris Foster Date: Fri, 6 May 2016 12:06:30 -0700 Subject: [PATCH 1/2] Version 2.1.0 --- CHANGELOG.md | 9 +++++++++ lib/akismet.js | 2 +- package.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) 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": { From 4d3647f99e8e85b5a14e876c293dc04667fc7187 Mon Sep 17 00:00:00 2001 From: Chris Foster Date: Fri, 6 May 2016 12:10:16 -0700 Subject: [PATCH 2/2] Bump the test version --- test/akismet.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); });