From 233e986d3f6deb60ef33a22602f39f2f05d3c7bf Mon Sep 17 00:00:00 2001 From: Joey Guerra Date: Mon, 13 Nov 2023 15:35:06 -0600 Subject: [PATCH] feat: Update to Hubot v11 BREAKING CHANGE: Update to Hubot v11 --- IrcAdapter.mjs | 4 +--- package-lock.json | 47 +++++++---------------------------------------- package.json | 16 +++++++--------- 3 files changed, 15 insertions(+), 52 deletions(-) diff --git a/IrcAdapter.mjs b/IrcAdapter.mjs index fb8aaaa..ae43b62 100644 --- a/IrcAdapter.mjs +++ b/IrcAdapter.mjs @@ -1,6 +1,4 @@ -import Adapter from 'hubot/src/adapter.js' -import Response from 'hubot/src/response.js' -import { TextMessage, EnterMessage, LeaveMessage } from 'hubot/src/message.js' +import { TextMessage, EnterMessage, LeaveMessage, Response, Adapter } from 'hubot' class IrcResponse extends Response { async sendPrivate(...strings) { diff --git a/package-lock.json b/package-lock.json index fb14548..f83da85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,23 +1,21 @@ { "name": "@hubot-friends/hubot-irc", - "version": "1.0.0", + "version": "0.0.0-development", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hubot-friends/hubot-irc", - "version": "1.0.0", + "version": "0.0.0-development", "license": "MIT", "dependencies": { "irc": "^0.5.2" }, - "devDependencies": {}, "engines": { - "node": ">= 18.17.0", - "npm": ">= 9.5.1" + "node": ">= 18" }, "peerDependencies": { - "hubot": "^9.0.0" + "hubot": ">= 11" } }, "node_modules/abort-controller": { @@ -220,28 +218,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/cline": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/cline/-/cline-0.8.2.tgz", - "integrity": "sha512-xcRdiR3vm9XdLmsMkK3XkKOHzOmKxl8eVTO739O6KinC0kRdCGV4jYnItccNMReymKYhQ9obOlMscic5spP3mQ==", - "peer": true, - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/coffeescript": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/coffeescript/-/coffeescript-2.7.0.tgz", - "integrity": "sha512-hzWp6TUE2d/jCcN67LrW1eh5b/rSDKQK6oD6VMLlggYVUUFexgTH9z3dNYihzX4RMhze5FTUsUmOXViJKFQR/A==", - "peer": true, - "bin": { - "cake": "bin/cake", - "coffee": "bin/coffee" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/connect-multiparty": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/connect-multiparty/-/connect-multiparty-2.2.0.tgz", @@ -628,17 +604,14 @@ } }, "node_modules/hubot": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/hubot/-/hubot-9.0.1.tgz", - "integrity": "sha512-GAjmn//oPF+5LTofsWJ6GIDfV8vh52vMCfq6z982Ae9o51+hUPYnwuRSqO+IMsWFt+0joIAMUx4O/bsXBEsZ7Q==", + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/hubot/-/hubot-11.0.1.tgz", + "integrity": "sha512-LlOQn3zXLO3BiWqVv4sDa/JMS7EHG8dxJTrNi9BooNwoGisNuHMAFNcXmcP4fECWSpXsVLnBf/EXDTQs+g82sw==", "peer": true, "dependencies": { - "cline": "^0.8.2", - "coffeescript": "^2.7.0", "connect-multiparty": "^2.2.0", "express": "^4.18.2", "express-basic-auth": "^1.2.1", - "optparse": "^1.0.5", "pino": "^8.11.0" }, "bin": { @@ -907,12 +880,6 @@ "node": ">= 0.8" } }, - "node_modules/optparse": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/optparse/-/optparse-1.0.5.tgz", - "integrity": "sha512-WfnNWLS3vr8omCm8nKYKaRbapuy6pEbx1O0B+eP5sUf/a++sT9/h8PflqBoHsY9N+YdzUT12T8snXigq13QpJg==", - "peer": true - }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", diff --git a/package.json b/package.json index 36ba37d..2e42567 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@hubot-friends/hubot-irc", - "version": "1.0.0", - "description": "IRC Adapter for Hubot > version `9`.", + "version": "0.0.0-development", + "description": "IRC Adapter for Hubot > version `11`.", "main": "index.mjs", "scripts": { "test": "node --test", @@ -23,14 +23,10 @@ }, "homepage": "https://github.com/hubot-friends/hubot-irc#readme", "peerDependencies": { - "hubot": "^9.0.0" + "hubot": ">= 11" }, "engines": { - "node": ">= 18.17.0", - "npm": ">= 9.5.1" - }, - "dependencies": { - "irc": "^0.5.2" + "node": ">= 18" }, "release": { "branches": [ @@ -41,5 +37,7 @@ "publishConfig": { "access": "public" }, - "devDependencies": {} + "dependencies": { + "irc": "^0.5.2" + } }