Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade deps #401

Merged
merged 12 commits into from
Feb 19, 2025
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: Build and push image to registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build image
run: docker build . --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ on:
- main
pull_request:

env:
NODE_VERSION: 20.x

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: package.json
- name: Install dependencies
run: npm ci
- name: Run ESLint
Expand All @@ -40,11 +37,11 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup test database
Expand All @@ -53,5 +50,7 @@ jobs:
run: npm ci
- name: Run tests
run: npm run test-coverage
- name: Upload coverage
uses: codecov/codecov-action@v3
- name: Send coverage report to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.BOT_TOKEN }}
release-type: node
package-name: 'rest-on-couch'
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# These if statements ensure that a publication only occurs when a new release is created
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
node-version-file: package.json
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
Expand Down
1 change: 0 additions & 1 deletion .ncurc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
reject:
# ESM only packages
- delay
- got

# v3 of ldapjs is a large refactoring followed closely by maintainer abandoning the project
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20
FROM node:22

WORKDIR /rest-on-couch-source
COPY ./ ./
Expand Down
8 changes: 4 additions & 4 deletions bin/rest-on-couch-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const path = require('path');

const program = require('commander');
const { program } = require('commander');
const fs = require('fs-extra');
const klaw = require('klaw');

Expand Down Expand Up @@ -210,12 +210,12 @@ async function findFiles(homeDir, limit) {
return files;
}
}
} catch (e) {
} catch {
// ignore
}
}
}
} catch (e) {
} catch {
// ignore
}

Expand All @@ -235,7 +235,7 @@ async function findFiles(homeDir, limit) {
return files;
}
}
} catch (e) {
} catch {
// ignore
}
}
Expand Down
2 changes: 1 addition & 1 deletion bin/rest-on-couch-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

'use strict';

const program = require('commander');
const { program } = require('commander');

const constants = require('../src/constants');
const log = require('../src/couch/log');
Expand Down
2 changes: 1 addition & 1 deletion bin/rest-on-couch-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

'use strict';

const program = require('commander');
const { program } = require('commander');

const server = require('../src/server/server');
const debug = require('../src/util/debug')('bin:server');
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default config(
'no-await-in-loop': 'off',
'no-var': 'off',
'prefer-named-capture-group': 'off',
'import/no-dynamic-require': 'off',
},
},
{
Expand Down
Loading
Loading