Skip to content

Commit 1d36ac6

Browse files
committed
Update dev deps and platform requirements.
1 parent c9b21db commit 1d36ac6

5 files changed

Lines changed: 29 additions & 32 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
- Update dependencies:
77
- `less-loader@13`
88
- `sass-loader@17`.
9+
- Update all dev dependencies.
10+
- `@digitalbazaar/eslint-config@8`.
11+
- `eslint@9`.
12+
- **NOTE**: Update supported platforms.
13+
- Test on Node.js >=22.
14+
- Update `engines.node` to `>=22`.
15+
- Update README requirements section.
916

1017
## 11.4.0 - 2025-09-21
1118

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ for development and to the [bedrock-views][] optimize command.
1212

1313
## Requirements
1414

15-
- npm v6+
15+
- node v22+
16+
- npm v11+
1617

1718
## Quick Examples
1819

@@ -55,7 +56,7 @@ if(typeof MY_JSON !== 'undefined') {
5556

5657
## License
5758

58-
[Apache License, Version 2.0](LICENSE) Copyright 2017-2024 Digital Bazaar, Inc.
59+
[Apache License, Version 2.0](LICENSE) Copyright 2017-2026 Digital Bazaar, Inc.
5960

6061
Other Bedrock libraries are available under a non-commercial license for uses
6162
such as self-study, research, personal projects, or for evaluation purposes.
Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright 2024 Digital Bazaar, Inc.
2+
* Copyright 2022 - 2026 Digital Bazaar, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,17 +16,8 @@
1616
* SPDX-License-Identifier: Apache-2.0
1717
*/
1818

19-
module.exports = {
20-
root: true,
21-
env: {
22-
node: true
23-
},
24-
extends: [
25-
'digitalbazaar',
26-
'digitalbazaar/jsdoc',
27-
'digitalbazaar/module'
28-
],
29-
rules: {
30-
'unicorn/prefer-node-protocol': 'error'
31-
}
32-
};
19+
import config from '@digitalbazaar/eslint-config/node-recommended';
20+
21+
export default [
22+
...config
23+
];

lib/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright 2017 - 2025 Digital Bazaar, Inc.
2+
* Copyright 2017 - 2026 Digital Bazaar, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -150,7 +150,7 @@ bedrock.events.on('bedrock-views.bundle.run', async options => {
150150
modules: [
151151
// FIXME: this should be a param
152152
// FIXME: improve this
153-
path.dirname(bedrock.config.views.bundle.paths.input.root),
153+
path.dirname(bedrock.config.views.bundle.paths.input.root)
154154
]
155155
}
156156
};
@@ -163,7 +163,7 @@ bedrock.events.on('bedrock-views.bundle.run', async options => {
163163
paths,
164164
configs: [
165165
rootConfig,
166-
...overrideConfigs,
166+
...overrideConfigs
167167
],
168168
optimize: options.optimize,
169169
watch: options.watch
@@ -337,7 +337,7 @@ export async function bundle(options = {}) {
337337
corejs: '3.45',
338338
bugfixes: true,
339339
debug: command.webpackBabelDebug === 'true',
340-
targets: ['defaults', 'not IE 11'],
340+
targets: ['defaults', 'not IE 11']
341341
}
342342
]
343343
]
@@ -389,7 +389,7 @@ export async function bundle(options = {}) {
389389
hotReload: hmr,
390390
prettify: !isProduction
391391
}
392-
},
392+
}
393393
/*
394394
// FIXME: fix or remove due to webpack v5 path issues
395395
{
@@ -445,7 +445,7 @@ export async function bundle(options = {}) {
445445
// check if path exists
446446
try {
447447
await fs.promises.access(root, fs.constants.R_OK);
448-
} catch(e) {
448+
} catch {
449449
return;
450450
}
451451
// check current level
@@ -526,12 +526,12 @@ export async function bundle(options = {}) {
526526
terserOptions.terserOptions.output =
527527
terserOptions.terserOptions.output || {};
528528
terserOptions.terserOptions.output.comments = {
529-
/* eslint-disable quote-props */
529+
/* eslint-disable @stylistic/quote-props */
530530
'true': true,
531531
'all': 'all',
532532
'some': 'some',
533533
'false': false
534-
/* eslint-enable quote-props */
534+
/* eslint-enable @stylistic/quote-props */
535535
}[command.webpackJsComments];
536536
}
537537
const cfg = {
@@ -667,7 +667,7 @@ export async function bundle(options = {}) {
667667
// eslint-disable-next-line no-unused-vars
668668
compiler.hooks.invalid.tap('bedrock-webpack', (filename, changeTime) => {
669669
logger.info('watch bundle invalidated', {
670-
filename,
670+
filename
671671
//changeTime
672672
});
673673
});

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "Apache-2.0",
77
"main": "./lib/index.js",
88
"scripts": {
9-
"lint": "eslint --ext .cjs,.js ."
9+
"lint": "eslint"
1010
},
1111
"repository": {
1212
"type": "git",
@@ -57,12 +57,10 @@
5757
"lib": "./lib"
5858
},
5959
"engines": {
60-
"node": ">=18"
60+
"node": ">=22"
6161
},
6262
"devDependencies": {
63-
"eslint": "^8.57.1",
64-
"eslint-config-digitalbazaar": "^5.0.1",
65-
"eslint-plugin-jsdoc": "^50.4.1",
66-
"eslint-plugin-unicorn": "^56.0.0"
63+
"@digitalbazaar/eslint-config": "^8.0.1",
64+
"eslint": "^9.39.4"
6765
}
6866
}

0 commit comments

Comments
 (0)