Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
node-version: [14.x]
node-version: [24.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# bedrock-test ChangeLog

## 8.3.0 - 2026-03-xx

### Changed
- Update dependencies.
- Use updated minor versions.
- Use `mocha@11`.
- Update `engines.node` to `>=18`.

## 8.2.0 - 2024-02-29

### Changed
Expand Down
19 changes: 6 additions & 13 deletions .eslintrc.cjs → eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright 2024 Digital Bazaar, Inc.
* Copyright 2024 - 2026 Digital Bazaar, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,15 +16,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

module.exports = {
root: true,
parserOptions: {
// this is required for dynamic import()
ecmaVersion: 2020
},
env: {
node: true
},
extends: ['digitalbazaar', 'digitalbazaar/jsdoc'],
ignorePatterns: ['node_modules/']
};
import config from '@digitalbazaar/eslint-config/node-recommended';

export default [
...config
];
2 changes: 1 addition & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async function runMocha(state) {
let pretty = null;
try {
pretty = JSON.stringify(obj, null, 2);
} catch(e) {
} catch {
// we need to remove circular references from the json
// in order to pretty print with JSON.stringify
pretty = JSON.stringify(cycle.decycle(obj), null, 2);
Expand Down
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"main": "./lib/index.js",
"engines": {
"node": ">=14"
"node": ">=18"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

18 is EOL.

Suggested change
"node": ">=18"
"node": ">=20"

},
"files": [
"lib/**/*.js"
Expand All @@ -31,21 +31,19 @@
},
"homepage": "https://github.com/digitalbazaar/bedrock-test",
"dependencies": {
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"cycle": "^1.0.3",
"mocha": "^10.0.0"
"mocha": "^11.7.5"
},
"peerDependencies": {
"@bedrock/core": "^6.0.0"
"@bedrock/core": "^6.3.0"
},
"directories": {
"lib": "./lib"
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-digitalbazaar": "^2.8.0",
"eslint-plugin-jsdoc": "^37.9.7",
"jsdoc-to-markdown": "^7.1.1"
"@digitalbazaar/eslint-config": "^8.0.1",
"eslint": "^9.39.3"
}
}