Skip to content

Commit 53d00e4

Browse files
committed
Merge branch 'master' into beta
2 parents 8a989a3 + a9d8986 commit 53d00e4

File tree

22 files changed

+1041
-492
lines changed

22 files changed

+1041
-492
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,29 @@ on:
1414

1515
jobs:
1616
tests:
17-
runs-on: ubuntu-latest
17+
runs-on: ${{ matrix.distro }}
1818
strategy:
1919
matrix:
20+
# this is a hack as there is currently no (public) way to access "runs-on" with version
21+
distro: [ubuntu-24.04]
2022
node-version: [16.x, 18.x, 20.x, 22.x]
2123
steps:
24+
# Install libssl1.1 for libcrypto.so.1.1, which is required for binaries before 22.04 is available (4.0, 4.2, 4.4, 5.0)
25+
# currently 5.0 is still in LTS
26+
- name: Load libssl chache
27+
# cache the package so that we dont need to hit the debian server so often
28+
id: cache-libssl
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/ssl
32+
key: libssl1.1
33+
- name: install libssl1.1
34+
# ubuntu seemingly does not have that package anymore, but the one from debian still works
35+
run: |
36+
mkdir -p ~/ssl && cd ~/ssl
37+
wget -nc https://ftp.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb
38+
sudo dpkg -i libssl1.1_1.1.1w-0+deb11u1_amd64.deb
39+
# end libssl1.1 install
2240
- uses: actions/checkout@v4
2341
if: github.event.inputs.git-ref == ''
2442
with:
@@ -37,10 +55,10 @@ jobs:
3755
uses: actions/cache@v4
3856
with:
3957
path: ~/.cache/mongodb-binaries
40-
key: ${{ matrix.node-version }}-${{ hashFiles('**/globalSetup.ts') }}
58+
key: ${{ matrix.distro }}-${{ hashFiles('**/globalSetup.ts') }}
4159
restore-keys: |
42-
${{ matrix.node-version }}-
43-
${{ matrix.node-version }}
60+
${{ matrix.distro }}-
61+
${{ matrix.distro }}
4462
- name: Install node_modules
4563
run: yarn
4664
- name: TSCheck
@@ -53,7 +71,7 @@ jobs:
5371
CI: true
5472
- name: Send codecov.io stats
5573
if: matrix.node-version == '16.x'
56-
uses: codecov/codecov-action@v4
74+
uses: codecov/codecov-action@v5
5775
with:
5876
token: ${{ secrets.CODECOV_TOKEN }}
5977

@@ -75,15 +93,16 @@ jobs:
7593
uses: cycjimmy/semantic-release-action@cb425203a562475bca039ba4dbf90c7f9ac790f4 # v4.1.0
7694
with:
7795
# dry_run: true
96+
# using semantic-release 23.x because of https://github.com/semantic-release/release-notes-generator/issues/675
7897
extra_plugins: |
79-
@semantic-release/git
80-
@semantic-release/changelog
81-
@semantic-release/commit-analyzer
82-
@semantic-release/release-notes-generator
83-
@semantic-release/github
84-
@semantic-release/npm
85-
@commitlint/config-conventional
86-
semantic-release-replace-plugin
98+
@semantic-release/git@10.x
99+
@semantic-release/changelog@6.x
100+
@semantic-release/commit-analyzer@13.x
101+
@semantic-release/release-notes-generator@14.x
102+
@semantic-release/github@10.x
103+
@semantic-release/npm@12.x
104+
@commitlint/config-conventional@19.x
105+
semantic-release-replace-plugin@1.2.7
87106
env:
88107
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89108
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
## [10.1.2](https://github.com/typegoose/mongodb-memory-server/compare/v10.1.1...v10.1.2) (2024-10-11)
2+
3+
4+
### Fixes
5+
6+
* **MongoBinaryDownloadUrl:** refactor fedora handling to pass through to rhel ([31b4696](https://github.com/typegoose/mongodb-memory-server/commit/31b469642a8decf7d818da78ab89e5c0745a0b48)), closes [#893](https://github.com/typegoose/mongodb-memory-server/issues/893)
7+
8+
9+
### Refactor
10+
11+
* **MongoBinaryDownloadUrl::getFedoraVersionString:** change to use "else if" chain ([194df6f](https://github.com/typegoose/mongodb-memory-server/commit/194df6f7ed5a3f3d9f031a7d0526f71c460a533c))
12+
13+
## [10.1.1](https://github.com/typegoose/mongodb-memory-server/compare/v10.1.0...v10.1.1) (2024-10-10)
14+
15+
16+
### Fixes
17+
18+
* **MongoBinaryDownloadUrl:** fix rhel8 handling for newer versions ([8c20624](https://github.com/typegoose/mongodb-memory-server/commit/8c20624e08244a98213b75198785b33041f2df57)), closes [#893](https://github.com/typegoose/mongodb-memory-server/issues/893)
19+
20+
## [10.1.0](https://github.com/typegoose/mongodb-memory-server/compare/v10.0.1...v10.1.0) (2024-10-09)
21+
22+
23+
### Features
24+
25+
* **MongoBinaryDownloadUrl:** support ubuntu 2404 & 8.0.0 ([1a88c37](https://github.com/typegoose/mongodb-memory-server/commit/1a88c37e7b0a019e152dc493d25256d0b2f3e536))
26+
* **resolveConfig:** update default binary version to 7.0.14 ([946e78e](https://github.com/typegoose/mongodb-memory-server/commit/946e78e761c5b10952a5c35c87fa477fdf83a825))
27+
28+
29+
### Dependencies
30+
31+
* **debug:** upgrade to version 4.3.7 ([d537118](https://github.com/typegoose/mongodb-memory-server/commit/d5371181390518e2ad87a3312556ffc183c542cc))
32+
* **follow-redirects:** upgrade to version 1.15.9 ([a762dd4](https://github.com/typegoose/mongodb-memory-server/commit/a762dd4dbbf9ea922f2726151ff2d77e02582c6d))
33+
* **mongodb:** upgrade to version 6.9.0 ([3d4f898](https://github.com/typegoose/mongodb-memory-server/commit/3d4f89876cc43eab6c7ed96c97f3b224f2e78e10))
34+
* **tslib:** upgrade to version 2.7.0 ([2b702d1](https://github.com/typegoose/mongodb-memory-server/commit/2b702d120ef626a53f730f7cfe26f03d925c2657))
35+
36+
37+
### Dev-Dependencies
38+
39+
* **@types/jest:** upgrade to version 29.5.13 ([4395d50](https://github.com/typegoose/mongodb-memory-server/commit/4395d50f3e15845546240c1b9ce433a9493f948b))
40+
* **rimraf:** upgrade to version 5.0.10 ([52420ba](https://github.com/typegoose/mongodb-memory-server/commit/52420ba2f629eb62bf0bfa336867a88584d287fe))
41+
* **test-jest:** upgrade to version 29.2.5 ([8fa6918](https://github.com/typegoose/mongodb-memory-server/commit/8fa69188579bb4de24b4ffdec00451e9016385a1))
42+
43+
## [10.0.1](https://github.com/typegoose/mongodb-memory-server/compare/v10.0.0...v10.0.1) (2024-09-21)
44+
45+
46+
### Fixes
47+
48+
* **getport:** check new port against cache ([b70d868](https://github.com/typegoose/mongodb-memory-server/commit/b70d868cf5b6766e751ef6fec53e8e4ccccd1de6)), closes [#883](https://github.com/typegoose/mongodb-memory-server/issues/883)
49+
* **getport:** update cache time when last used ([a332b49](https://github.com/typegoose/mongodb-memory-server/commit/a332b491b173d9d3b03578c9f6bcd46fecbaa6d7)), closes [#883](https://github.com/typegoose/mongodb-memory-server/issues/883)
50+
151
## [10.0.1-beta.1](https://github.com/typegoose/mongodb-memory-server/compare/v10.0.0...v10.0.1-beta.1) (2024-08-03)
252

353

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ On Linux, you will also need `libcurl4` (or `libcurl3` on some older distro vers
8686

8787
### Configuring which mongod binary to use
8888

89-
The default behavior is that version `7.0.11` for your OS will be downloaded. By setting [Environment variables](https://typegoose.github.io/mongodb-memory-server/docs/api/config-options) you are able to specify which version and binary will be downloaded:
89+
The default behavior is that version `7.0.14` for your OS will be downloaded. By setting [Environment variables](https://typegoose.github.io/mongodb-memory-server/docs/api/config-options) you are able to specify which version and binary will be downloaded:
9090

9191
```sh
9292
export MONGOMS_DOWNLOAD_URL=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.2.8.tgz
@@ -128,7 +128,7 @@ const mongod = new MongoMemoryServer({
128128
auth?: boolean, // add "--auth" argument, dont use this directly use top-level "auth"
129129
},
130130
binary?: {
131-
version?: string, // by default '7.0.11'
131+
version?: string, // by default '7.0.14'
132132
downloadDir?: string, // see the documentation on what is chosen by default https://typegoose.github.io/mongodb-memory-server/docs/api/config-options#download_dir
133133
platform?: string, // by default os.platform()
134134
arch?: string, // by default os.arch()

docs/api/config-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Example: `ubuntu-18.04`
9393

9494
Option `VERSION` is used to set what mongodb version should be downloaded
9595

96-
Default: `7.0.11` (see [Mongodb Server Versions](../guides/mongodb-server-versions.md) for a complete list and policy)
96+
Default: `7.0.14` (see [Mongodb Server Versions](../guides/mongodb-server-versions.md) for a complete list and policy)
9797

9898
This Option does not have a effect when [`ARCHIVE_NAME`](#archive_name) or [`DOWNLOAD_URL`](#download_url) is defined.
9999

docs/guides/mongodb-server-versions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Starting with MongoDB version 5.0, the default versions for `mongodb-memory-serv
3131

3232
| `mongodb-memory-server-core` Version | Default MongoDB Version |
3333
| :----------------------------------: | :---------------------: |
34-
| 10.0.x - 10.0.x | 7.0.11 |
34+
| 10.1.x - 10.1.x | 7.0.14 |
35+
| 10.0.x - 10.0.x | 7.0.11 |
3536
| 9.2.x - 9.2.x | 6.0.14 |
3637
| 9.0.x - 9.1.x | 6.0.9 |
3738
| 8.14.x - 8.16.x | 5.0.19 |

docs/guides/supported-systems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Depends on the distribution, many common ones should just work right out of the
5353

5454
(uses mongodb's `ubuntu` release)<br/>
5555
Lowest supported Distribution version is `1404`<br/>
56-
Highest version is `2204` (higher versions will be clamped to this value)<br/>
56+
Highest version is `2404` (higher versions will be clamped to this value)<br/>
5757
Default version is `2204`<br/>
5858
Architectures Supported: `x86_64`, `arm64`(`aarch64`)
5959

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {
1111
"@commitlint/cli": "17.8.1",
1212
"@commitlint/config-conventional": "17.8.1",
13-
"@types/jest": "^29.5.12",
13+
"@types/jest": "^29.5.13",
1414
"@types/node": "~16.11.7",
1515
"@typescript-eslint/eslint-plugin": "6.21.0",
1616
"@typescript-eslint/parser": "6.21.0",
@@ -24,7 +24,7 @@
2424
"jest": "29.7.0",
2525
"lint-staged": "14.0.1",
2626
"prettier": "3.3.3",
27-
"ts-jest": "29.2.2",
27+
"ts-jest": "29.2.5",
2828
"typedoc": "^0.25.13",
2929
"typescript": "~5.3.3"
3030
},

packages/mongodb-memory-server-core/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mongodb-memory-server-core",
3-
"version": "10.0.1-beta.1",
3+
"version": "10.1.2",
44
"description": "MongoDB Server for testing (core package, without autodownload). The server will allow you to connect your favourite ODM or client library to the MongoDB Server and run parallel integration tests isolated from each other.",
55
"main": "lib/index",
66
"types": "lib/index.d.ts",
@@ -39,21 +39,21 @@
3939
"@types/tar-stream": "^3.1.3",
4040
"@types/yauzl": "^2.10.3",
4141
"@types/yazl": "^2.4.5",
42-
"rimraf": "^5.0.9",
42+
"rimraf": "^5.0.10",
4343
"yazl": "^2.5.1"
4444
},
4545
"dependencies": {
4646
"async-mutex": "^0.5.0",
4747
"camelcase": "^6.3.0",
48-
"debug": "^4.3.5",
48+
"debug": "^4.3.7",
4949
"find-cache-dir": "^3.3.2",
50-
"follow-redirects": "^1.15.6",
50+
"follow-redirects": "^1.15.9",
5151
"https-proxy-agent": "^7.0.5",
52-
"mongodb": "^6.7.0",
52+
"mongodb": "^6.9.0",
5353
"new-find-package-json": "^2.0.0",
5454
"semver": "^7.6.3",
5555
"tar-stream": "^3.1.7",
56-
"tslib": "^2.6.3",
56+
"tslib": "^2.7.0",
5757
"yauzl": "^3.1.3"
5858
},
5959
"scripts": {

packages/mongodb-memory-server-core/src/__tests__/MongoMemoryReplSet.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ describe('MongoMemoryReplSet', () => {
724724
describe('server version specific', () => {
725725
// should use default options that are supported for 7.0 (like not using "ephemeralForTest" by default)
726726
it('should allow mongodb by default 7.0', async () => {
727-
const server = await MongoMemoryReplSet.create({ binary: { version: '7.0.11' } });
727+
const server = await MongoMemoryReplSet.create({ binary: { version: '7.0.14' } });
728728

729729
await server.stop();
730730
});
@@ -746,7 +746,7 @@ describe('MongoMemoryReplSet', () => {
746746
it('should not warn if no explicit storage engine is set in 7.0', async () => {
747747
jest.spyOn(console, 'warn');
748748
const server = await MongoMemoryReplSet.create({
749-
binary: { version: '7.0.11' },
749+
binary: { version: '7.0.14' },
750750
// replSet: { storageEngine: 'ephemeralForTest' },
751751
});
752752

@@ -760,7 +760,7 @@ describe('MongoMemoryReplSet', () => {
760760
it('should warn if "ephemeralForTest" is used explicitly in mongodb 7.0', async () => {
761761
const spy = jest.spyOn(console, 'warn').mockImplementationOnce(() => {});
762762
const server = await MongoMemoryReplSet.create({
763-
binary: { version: '7.0.11' },
763+
binary: { version: '7.0.14' },
764764
replSet: { storageEngine: 'ephemeralForTest' },
765765
});
766766

packages/mongodb-memory-server-core/src/__tests__/MongoMemoryServer.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ describe('MongoMemoryServer', () => {
12441244
describe('server version specific', () => {
12451245
// should use default options that are supported for 7.0 (like not using "ephemeralForTest" by default)
12461246
it('should allow mongodb by default 7.0', async () => {
1247-
const server = await MongoMemoryServer.create({ binary: { version: '7.0.11' } });
1247+
const server = await MongoMemoryServer.create({ binary: { version: '7.0.14' } });
12481248

12491249
await server.stop();
12501250
});
@@ -1266,7 +1266,7 @@ describe('MongoMemoryServer', () => {
12661266
it('should not warn if no explicit storage engine is set in 7.0', async () => {
12671267
jest.spyOn(console, 'warn');
12681268
const server = await MongoMemoryServer.create({
1269-
binary: { version: '7.0.11' },
1269+
binary: { version: '7.0.14' },
12701270
// instance: { storageEngine: 'ephemeralForTest' },
12711271
});
12721272

@@ -1280,7 +1280,7 @@ describe('MongoMemoryServer', () => {
12801280
it('should warn if "ephemeralForTest" is used explicitly in mongodb 7.0', async () => {
12811281
const spy = jest.spyOn(console, 'warn').mockImplementationOnce(() => {});
12821282
const server = await MongoMemoryServer.create({
1283-
binary: { version: '7.0.11' },
1283+
binary: { version: '7.0.14' },
12841284
instance: { storageEngine: 'ephemeralForTest' },
12851285
});
12861286

0 commit comments

Comments
 (0)