Skip to content

Commit 75386e5

Browse files
committed
fix: update node.js versions in CI
Signed-off-by: dhmlau <[email protected]>
1 parent fe4a2f9 commit 75386e5

File tree

6 files changed

+23
-13
lines changed

6 files changed

+23
-13
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- master
7-
- 5.x
7+
- 6.x
88
pull_request:
99
branches:
1010
- master
11-
- 5.x
11+
- 6.x
1212
schedule:
1313
- cron: '0 2 * * 1' # At 02:00 on Monday
1414

@@ -21,7 +21,7 @@ jobs:
2121
timeout-minutes: 15
2222
strategy:
2323
matrix:
24-
node-version: [18, 19, 20, 21]
24+
node-version: [18, 20, 22]
2525
mongodb-version:
2626
- '4.4'
2727
- '5.0'

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
coverage
3+
.idea
4+
.nyc_output/
5+
test
6+
.travis.yml

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ This module adopts the [Module Long Term Support (LTS)](http://github.com/CloudN
2222

2323
| Version | Status | Published | EOL | LoopBack | Juggler |
2424
| ---------- | -------------------- | --------- | -------------------- | ---------|----------|
25-
| 6.x | Current | Mar 2021 | Apr 2025 _(minimum)_ | 4 | 4.x |
26-
| 5.x | Active LTS | Jun 2019 | Apr 2023 | 3, 4 | 3.x, 4.x |
27-
| 4.x | Maintenance LTS | Nov 2018 | Apr 2021 | 3, 4 | 3.x, 4.x |
25+
| 6.x | Current | Mar 2021 | Apr 2028 _(minimum)_ | 4 | 4.x |
26+
| 5.x | End-of-Life | Jun 2019 | Apr 2023 | 3, 4 | 3.x, 4.x |
27+
| 4.x | End-of-Life | Nov 2018 | Apr 2021 | 3, 4 | 3.x, 4.x |
2828

2929
## Creating a MongoDB data source
3030

lib/mongodb.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ function MongoDB(settings, dataSource) {
197197
this.settings.enableOptimizedfindOrCreate === true ||
198198
this.settings.enableOptimizedFindOrCreate === true
199199
) {
200-
debug('Optimized findOrCreate is enabled by default, and the enableOptimizedFindOrCreate setting is ignored since v7.0.0.')
200+
debug('Optimized findOrCreate is enabled by default, ' +
201+
'and the enableOptimizedFindOrCreate setting is ignored since v7.0.0.');
201202
}
202203

203204
if (this.settings.enableGeoIndexing === true) {
@@ -1596,7 +1597,7 @@ MongoDB.prototype.findOrCreate = function findOrCreate(modelName, filter, data,
15961597
}
15971598
},
15981599
);
1599-
}
1600+
};
16001601

16011602
/**
16021603
* Transform db data to model entity

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/mongodb.test.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,8 @@ describe('mongodb connector', function() {
13271327
err.name.should.equal('MongoServerError');
13281328
err.errmsg.should.equal(
13291329
'The dollar ($) prefixed ' +
1330-
"field '$rename' in '$rename' is not valid for storage.",
1330+
"field '$rename' in '$rename' is not allowed in the context of an update's replacement document. " +
1331+
'Consider using an aggregation pipeline with $replaceWith.',
13311332
);
13321333
done();
13331334
},
@@ -1352,7 +1353,8 @@ describe('mongodb connector', function() {
13521353
err.name.should.equal('MongoServerError');
13531354
err.errmsg.should.equal(
13541355
'The dollar ($) prefixed ' +
1355-
"field '$rename' in '$rename' is not valid for storage.",
1356+
"field '$rename' in '$rename' is not allowed in the context of an update's replacement document. " +
1357+
'Consider using an aggregation pipeline with $replaceWith.',
13561358
);
13571359
done();
13581360
},
@@ -1409,7 +1411,8 @@ describe('mongodb connector', function() {
14091411
err.name.should.equal('MongoServerError');
14101412
err.errmsg.should.equal(
14111413
'The dollar ($) prefixed ' +
1412-
"field '$rename' in '$rename' is not valid for storage.",
1414+
"field '$rename' in '$rename' is not allowed in the context of an update's replacement document. " +
1415+
'Consider using an aggregation pipeline with $replaceWith.',
14131416
);
14141417
done();
14151418
},

0 commit comments

Comments
 (0)