Skip to content

Commit

Permalink
feat(2683): nodejs upgrade (#45)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Node 18 upgrade && eslint upgrade
  • Loading branch information
klu909 authored Nov 18, 2022
1 parent fb8b84d commit 0f1d8ed
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
8 changes: 2 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ const STATUSES_MAP = {
FROZEN: ':snowman:'
};
const DEFAULT_STATUSES = ['FAILURE'];
const SCHEMA_STATUSES = Joi.array()
.items(schema.plugins.notifications.schemaStatus)
.min(0);
const SCHEMA_STATUSES = Joi.array().items(schema.plugins.notifications.schemaStatus).min(0);
const SCHEMA_SLACK_CHANNEL = Joi.string().required();
const SCHEMA_SLACK_CHANNELS = Joi.array()
.items(SCHEMA_SLACK_CHANNEL)
.min(1);
const SCHEMA_SLACK_CHANNELS = Joi.array().items(SCHEMA_SLACK_CHANNEL).min(1);
const SCHEMA_SLACK_SETTINGS = Joi.object()
.keys({
slack: Joi.alternatives()
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "screwdriver-notifications-slack",
"version": "3.0.0",
"version": "4.0.0",
"description": "Sends slack notifications on certain build events",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -30,25 +30,25 @@
"Tiffany Kyi <[email protected]>"
],
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^7.5.0",
"eslint-config-screwdriver": "^5.0.1",
"mocha": "^8.4.0",
"chai": "^4.3.7",
"eslint": "^8.27.0",
"eslint-config-screwdriver": "^7.0.0",
"mocha": "^10.1.0",
"mocha-multi-reporters": "^1.5.1",
"mocha-sonarqube-reporter": "^1.0.2",
"mockery": "^2.1.0",
"nyc": "^15.0.0",
"sinon": "^9.0.0"
"nyc": "^15.1.0",
"sinon": "^14.0.2"
},
"dependencies": {
"@hapi/hapi": "^20.1.5",
"@hapi/hoek": "^9.2.0",
"@slack/web-api": "^6.4.0",
"joi": "^17.4.0",
"@hapi/hapi": "^21.0.0",
"@hapi/hoek": "^10.0.1",
"@slack/web-api": "^6.8.0",
"joi": "^17.7.0",
"samsam": "^1.3.0",
"screwdriver-data-schema": "^21.28.1",
"screwdriver-logger": "^1.0.2",
"screwdriver-notifications-base": "^3.2.0"
"screwdriver-data-schema": "^22.0.1",
"screwdriver-logger": "^2.0.0",
"screwdriver-notifications-base": "^4.0.0"
},
"release": {
"debug": false
Expand Down
2 changes: 1 addition & 1 deletion screwdriver.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
shared:
image: node:12
image: node:18

jobs:
main:
Expand Down

0 comments on commit 0f1d8ed

Please sign in to comment.