File tree Expand file tree Collapse file tree 7 files changed +30
-47
lines changed Expand file tree Collapse file tree 7 files changed +30
-47
lines changed Original file line number Diff line number Diff line change 1- /*!
2- * Copyright 2012 - 2024 Digital Bazaar, Inc.
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * http://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
15- *
16- * SPDX-License-Identifier: Apache-2.0
17- */
18-
191module . exports = {
202 root : true ,
21- parserOptions : {
22- // this is required for dynamic import()
23- ecmaVersion : 2020
24- } ,
253 env : {
264 node : true
275 } ,
28- extends : [ 'digitalbazaar' , 'digitalbazaar/jsdoc' ] ,
29- ignorePatterns : [ 'node_modules/' ]
6+ extends : [
7+ 'digitalbazaar' ,
8+ 'digitalbazaar/jsdoc' ,
9+ 'digitalbazaar/module'
10+ ] ,
11+ ignorePatterns : [ 'node_modules/' ] ,
12+ rules : {
13+ 'unicorn/prefer-node-protocol' : 'error'
14+ }
3015} ;
Original file line number Diff line number Diff line change 66- ** BREAKING** : Use mongodb driver 6.x.
77- ** BREAKING** : Update error names to match bedrock best practice.
88
9+ ### Removed
10+ - ** BREAKING** : Remove export of previously deprecated ` writeOptions ` .
11+
912## 10.2.0 - 2024-02-28
1013
1114### Changed
Original file line number Diff line number Diff line change 1717 */
1818import * as bedrock from '@bedrock/core' ;
1919import * as urls from './urls.js' ;
20+ import { klona } from 'klona' ;
2021import { logger } from './logger.js' ;
2122import { MDBE_AUTHZ_FAILED } from './exceptions.js' ;
2223import mongo from 'mongodb' ;
2324import semver from 'semver' ;
24- import { klona } from 'klona' ;
2525
2626const { MongoClient} = mongo ;
2727const { util : { BedrockError} } = bedrock ;
Original file line number Diff line number Diff line change 1515 *
1616 * SPDX-License-Identifier: Apache-2.0
1717 */
18- import * as bedrock from '@bedrock/core' ;
19- import crypto from 'node:crypto' ;
2018import {
2119 MDBE_AUTHN_FAILED ,
22- MDBE_ERROR_SET ,
2320 MDBE_DUPLICATE ,
24- MDBE_DUPLICATE_ON_UPDATE
21+ MDBE_DUPLICATE_ON_UPDATE ,
22+ MDBE_ERROR_SET
2523} from './exceptions.js' ;
24+ import crypto from 'node:crypto' ;
2625import { MongoError } from 'mongodb' ;
2726
2827// load config defaults
2928import './config.js' ;
3029
31- // Note: exporting `writeOptions` is deprecated
32- // and will be removed in release 9.0
33- // default database write options
34- export const writeOptions = bedrock . config . mongodb . writeOptions ;
35-
3630/**
3731 * Creates a hash of a key that can be indexed.
3832 *
Original file line number Diff line number Diff line change 2626 },
2727 "homepage" : " https://github.com/digitalbazaar/bedrock-mongodb" ,
2828 "dependencies" : {
29+ "eslint-plugin-unicorn" : " ^55.0.0" ,
2930 "klona" : " ^2.0.5" ,
3031 "mongodb" : " ^6.14.2" ,
3132 "semver" : " ^7.3.7"
3738 "lib" : " ./lib"
3839 },
3940 "devDependencies" : {
40- "eslint" : " ^7.13.0 " ,
41- "eslint-config-digitalbazaar" : " ^2.8 .0" ,
42- "eslint-plugin-jsdoc" : " ^37.9.7 " ,
43- "jsdoc-to-markdown" : " ^7 .1.1"
41+ "eslint" : " ^8.57.1 " ,
42+ "eslint-config-digitalbazaar" : " ^5.2 .0" ,
43+ "eslint-plugin-jsdoc" : " ^50.6.3 " ,
44+ "jsdoc-to-markdown" : " ^9 .1.1"
4445 },
4546 "engines" : {
4647 "node" : " >=18"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ env : {
3+ mocha : true
4+ } ,
5+ globals : {
6+ assertNoError : true ,
7+ should : true
8+ }
9+ } ;
You can’t perform that action at this time.
0 commit comments