From: Justin Wind Date: Mon, 23 Aug 2021 22:05:17 +0000 (-0700) Subject: bump package version to 1.1.5 X-Git-Tag: v1.1.5^2 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1b89d21549644bff5c0d145b2c91dfea61c0a7e8;p=websub-hub bump package version to 1.1.5 --- diff --git a/CHANGELOG.md b/CHANGELOG.md index e7fb95b..afd0ba8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ Releases and notable changes to this project are documented here. ## [Unreleased] +### Fixed + +- Reverted change introduced in v1.1.3 which consolidated db connections, as it was causing data-integrity issues. +- Issue with SQLite backend causing admin details about subscriptions to show errors. +- Verifications will not be attempted until their topics become active, reducing worker activity in certain situations. + ## [v1.1.4] - 2021-08-16 ### Fixed diff --git a/package-lock.json b/package-lock.json index 40533b6..c0aa159 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "websub-hub", - "version": "1.1.4", + "version": "1.1.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 1b3587f..f6971cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "websub-hub", - "version": "1.1.4", + "version": "1.1.5", "description": "A WebSub Hub server implementation.", "main": "server.js", "scripts": { diff --git a/test-e2e/fake-servers.js b/test-e2e/fake-servers.js index 0adff34..9d46d48 100644 --- a/test-e2e/fake-servers.js +++ b/test-e2e/fake-servers.js @@ -46,7 +46,7 @@ class TopicFake extends Dingus { res.setHeader('Link', behavior.selfLink + (behavior.hubLink ? `, ${behavior.hubLink}` : '')); res.statusCode = behavior.statusCode; res.end(behavior.content); - this.logger.info({ method: req.method, statusCode: res.statusCode }); + this.logger.info({ method: req.method, statusCode: res.statusCode, url: req.url }); } async putId(req, res, ctx) { @@ -99,7 +99,7 @@ class SubscriberFake extends Dingus { res.statusCode = behavior ? behavior.statusCode : 404; const response = (behavior && behavior.matchChallenge) ? ctx.queryParams['hub.challenge'] : (behavior && behavior.response); res.end(response); - this.logger.info({ method: req.method, statusCode: res.statusCode, matchChallenge: !!(behavior && behavior.matchChallenge) }); + this.logger.info({ method: req.method, statusCode: res.statusCode, matchChallenge: !!(behavior && behavior.matchChallenge), url: req.url }); } async postId(req, res, ctx) { @@ -112,7 +112,7 @@ class SubscriberFake extends Dingus { behavior.content = ctx.rawBody; } res.end(); - this.logger.info({ content: behavior && behavior.content, method: req.method, statusCode: res.statusCode, matchChallenge: !!(behavior && behavior.matchChallenge) }); + this.logger.info({ content: behavior && behavior.content, method: req.method, statusCode: res.statusCode, matchChallenge: !!(behavior && behavior.matchChallenge), url: req.url }); } async putVerify(req, res, ctx) { @@ -142,11 +142,11 @@ class SubscriberFake extends Dingus { } async deleteId(req, res, ctx) { - this.setResponseType(this.responseTypes, req, res, ctx); - this.contentBehaviors.delete(ctx.params.id); - this.verifyBehaviors.delete(ctx.params.id); - res.statusCode = 200; - res.end(); + this.setResponseType(this.responseTypes, req, res, ctx); + this.contentBehaviors.delete(ctx.params.id); + this.verifyBehaviors.delete(ctx.params.id); + res.statusCode = 200; + res.end(); } } // SubscriberFake