File tree Expand file tree Collapse file tree 8 files changed +56
-13
lines changed
mongodb-memory-server-core
mongodb-memory-server-global-3.6
mongodb-memory-server-global-4.2
mongodb-memory-server-global-4.4
mongodb-memory-server-global Expand file tree Collapse file tree 8 files changed +56
-13
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,22 @@ change "MongoMemoryServer.instanceInfoSync" to be "undefined" instead of "null"
280280* ** MongoInstance:** removing the "dynamic" part can break some code with custom debug-logging
281281* ** MongoInstance:** because of the rename it can break some use-cases
282282
283+
284+ ## [ 6.9.2] ( https://github.com/nodkz/mongodb-memory-server/compare/v6.9.1...v6.9.2 ) (2020-10-09)
285+
286+
287+ ### Bug Fixes
288+
289+ * ** MongoBinaryDownloadUrl:** add case for Linux Mint 20 ([ 01a6bc6] ( https://github.com/nodkz/mongodb-memory-server/commit/01a6bc63f0e13a4528ee39ccae64390a8de48582 ) )
290+ * ** MongoBinaryDownloadUrl:** detect "linuxmint" and "linux mint" as linux mint ([ fda4f72] ( https://github.com/nodkz/mongodb-memory-server/commit/fda4f7224d156680ac68c743c5a5a963070171dd ) ), closes [ #403 ] ( https://github.com/nodkz/mongodb-memory-server/issues/403 )
291+
292+ ## [ 6.9.1] ( https://github.com/nodkz/mongodb-memory-server/compare/v6.9.0...v6.9.1 ) (2020-10-07)
293+
294+
295+ ### Bug Fixes
296+
297+ * ** MongoBinaryDownloadUrl:** fix win32 download generation ([ d62b489] ( https://github.com/nodkz/mongodb-memory-server/commit/d62b4891a01fe40b5f00c21ee02f08b24a55d80c ) ), closes [ #399 ] ( https://github.com/nodkz/mongodb-memory-server/issues/399 )
298+
283299# [ 6.9.0] ( https://github.com/nodkz/mongodb-memory-server/compare/v6.8.1...v6.9.0 ) (2020-09-30)
284300
285301
Original file line number Diff line number Diff line change 11# mongodb-memory-server-core
22
3- [ ![ Travis ] ( https://img.shields.io/travis/ nodkz/mongodb-memory-server-core. svg )] ( https://travis-ci.org /nodkz/mongodb-memory-server-core )
3+ [ ![ Node.js CI ] ( https://github.com/ nodkz/mongodb-memory-server/workflows/Node.js%20CI/badge. svg )] ( https://github.com /nodkz/mongodb-memory-server/actions?query=workflow%3A"Node.js+CI" )
44[ ![ NPM version] ( https://img.shields.io/npm/v/mongodb-memory-server-core.svg )] ( https://www.npmjs.com/package/mongodb-memory-server-core )
55[ ![ Downloads stat] ( https://img.shields.io/npm/dt/mongodb-memory-server-core.svg )] ( http://www.npmtrends.com/mongodb-memory-server-core )
66[ ![ Commitizen friendly] ( https://img.shields.io/badge/commitizen-friendly-brightgreen.svg )] ( http://commitizen.github.io/cz-cli/ )
7- ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )
7+ [ ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )] ( https://www.typescriptlang.org )
8+ [ ![ codecov.io] ( https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master )] ( https://codecov.io/github/nodkz/mongodb-memory-server?branch=master )
89
910Core package which contains main code. Used in all other packages.
1011
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export class MongoBinaryDownloadUrl {
8282 if ( ! isNullOrUndefined ( semver . coerce ( this . version ) ) ) {
8383 if ( semver . satisfies ( this . version , '4.2.x' ) ) {
8484 name += '-2012plus' ;
85- } else if ( semver . lt ( this . version , '4.0 .0' ) ) {
85+ } else if ( semver . lt ( this . version , '4.1 .0' ) ) {
8686 name += '-2008plus-ssl' ;
8787 }
8888 }
@@ -149,7 +149,7 @@ export class MongoBinaryDownloadUrl {
149149 return this . getFedoraVersionString ( os ) ;
150150 } else if ( / d e b i a n / i. test ( os . dist ) ) {
151151 return this . getDebianVersionString ( os ) ;
152- } else if ( / \s + m i n t \s * $ / i. test ( os . dist ) ) {
152+ } else if ( / ^ l i n u x \s ? m i n t \s * $ / i. test ( os . dist ) ) {
153153 return this . getMintVersionString ( os ) ;
154154 } else if ( / a r c h / i. test ( os . dist ) ) {
155155 console . warn ( 'There is no offical build of MongoDB for ArchLinux!' ) ;
@@ -264,6 +264,7 @@ export class MongoBinaryDownloadUrl {
264264 case 18 :
265265 name += '1604' ;
266266 break ;
267+ case 20 : // because "1804" binaries also work on "2004" (and because earlier versions than 4.4 are not available in "2004")
267268 case 19 :
268269 default :
269270 // a default to support versions > 19
Original file line number Diff line number Diff line change @@ -97,6 +97,17 @@ describe('MongoBinaryDownloadUrl', () => {
9797 ) ;
9898 } ) ;
9999
100+ it ( '4.0.14 (win32)' , async ( ) => {
101+ const du = new MongoBinaryDownloadUrl ( {
102+ platform : 'win32' ,
103+ arch : 'x64' ,
104+ version : '4.0.14' ,
105+ } ) ;
106+ expect ( await du . getDownloadUrl ( ) ) . toBe (
107+ 'https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.14.zip'
108+ ) ;
109+ } ) ;
110+
100111 it ( '4.2 (win32)' , async ( ) => {
101112 const du = new MongoBinaryDownloadUrl ( {
102113 platform : 'win32' ,
@@ -371,11 +382,21 @@ describe('MongoBinaryDownloadUrl', () => {
371382 expect (
372383 downloadUrl . getMintVersionString ( {
373384 os : 'linux' ,
374- dist : 'Linux Mint ' ,
385+ dist : 'LinuxMint ' ,
375386 release : '19' ,
376387 } )
377388 ) . toBe ( 'ubuntu1804' ) ;
378389 } ) ;
390+
391+ it ( 'should return a archive name for Linux Mint 20' , ( ) => {
392+ expect (
393+ downloadUrl . getMintVersionString ( {
394+ os : 'linux' ,
395+ dist : 'Linux Mint' ,
396+ release : '20' ,
397+ } )
398+ ) . toBe ( 'ubuntu1804' ) ;
399+ } ) ;
379400 } ) ;
380401
381402 it ( 'shouldnt detect linux mint when using peppermint' , ( ) => {
Original file line number Diff line number Diff line change 11# mongodb-memory-server-global-3.6
22
3- [ ![ Travis ] ( https://img.shields.io/travis/ nodkz/mongodb-memory-server-global-3.6 .svg )] ( https://travis-ci.org /nodkz/mongodb-memory-server-global-3.6 )
3+ [ ![ Node.js CI ] ( https://github.com/ nodkz/mongodb-memory-server/workflows/Node.js%20CI/badge .svg )] ( https://github.com /nodkz/mongodb-memory-server/actions?query=workflow%3A"Node.js+CI" )
44[ ![ NPM version] ( https://img.shields.io/npm/v/mongodb-memory-server-global-3.6.svg )] ( https://www.npmjs.com/package/mongodb-memory-server-global-3.6 )
55[ ![ Downloads stat] ( https://img.shields.io/npm/dt/mongodb-memory-server-global-3.6.svg )] ( http://www.npmtrends.com/mongodb-memory-server-global-3.6 )
66[ ![ Commitizen friendly] ( https://img.shields.io/badge/commitizen-friendly-brightgreen.svg )] ( http://commitizen.github.io/cz-cli/ )
7- ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )
7+ [ ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )] ( https://www.typescriptlang.org )
8+ [ ![ codecov.io] ( https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master )] ( https://codecov.io/github/nodkz/mongodb-memory-server?branch=master )
89
910Main default package which downloads ` v3.6 ` mongod binary to ` %HOME/.cache/mongodb-binaries ` directory on package install.
1011
Original file line number Diff line number Diff line change 11# mongodb-memory-server-global-4.2
22
3- [ ![ Travis ] ( https://img.shields.io/travis/ nodkz/mongodb-memory-server-global-4.2 .svg )] ( https://travis-ci.org /nodkz/mongodb-memory-server-global-4.2 )
3+ [ ![ Node.js CI ] ( https://github.com/ nodkz/mongodb-memory-server/workflows/Node.js%20CI/badge .svg )] ( https://github.com /nodkz/mongodb-memory-server/actions?query=workflow%3A"Node.js+CI" )
44[ ![ NPM version] ( https://img.shields.io/npm/v/mongodb-memory-server-global-4.2.svg )] ( https://www.npmjs.com/package/mongodb-memory-server-global-4.2 )
55[ ![ Downloads stat] ( https://img.shields.io/npm/dt/mongodb-memory-server-global-4.2.svg )] ( http://www.npmtrends.com/mongodb-memory-server-global-4.2 )
66[ ![ Commitizen friendly] ( https://img.shields.io/badge/commitizen-friendly-brightgreen.svg )] ( http://commitizen.github.io/cz-cli/ )
7- ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )
7+ [ ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )] ( https://www.typescriptlang.org )
8+ [ ![ codecov.io] ( https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master )] ( https://codecov.io/github/nodkz/mongodb-memory-server?branch=master )
89
910Main default package which downloads ` v4.2 ` mongod binary to ` %HOME/.cache/mongodb-binaries ` directory on package install.
1011
Original file line number Diff line number Diff line change 11# mongodb-memory-server-global-4.4
22
3- [ ![ Travis ] ( https://img.shields.io/travis/ nodkz/mongodb-memory-server-global-4.4 .svg )] ( https://travis-ci.org /nodkz/mongodb-memory-server-global-4.4 )
3+ [ ![ Node.js CI ] ( https://github.com/ nodkz/mongodb-memory-server/workflows/Node.js%20CI/badge .svg )] ( https://github.com /nodkz/mongodb-memory-server/actions?query=workflow%3A"Node.js+CI" )
44[ ![ NPM version] ( https://img.shields.io/npm/v/mongodb-memory-server-global-4.4.svg )] ( https://www.npmjs.com/package/mongodb-memory-server-global-4.4 )
55[ ![ Downloads stat] ( https://img.shields.io/npm/dt/mongodb-memory-server-global-4.4.svg )] ( http://www.npmtrends.com/mongodb-memory-server-global-4.4 )
66[ ![ Commitizen friendly] ( https://img.shields.io/badge/commitizen-friendly-brightgreen.svg )] ( http://commitizen.github.io/cz-cli/ )
7- ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )
7+ [ ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )] ( https://www.typescriptlang.org )
8+ [ ![ codecov.io] ( https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master )] ( https://codecov.io/github/nodkz/mongodb-memory-server?branch=master )
89
910Main default package which downloads ` v4.4 ` mongod binary to ` %HOME/.cache/mongodb-binaries ` directory on package install.
1011
Original file line number Diff line number Diff line change 11# mongodb-memory-server-global
22
3- [ ![ Travis ] ( https://img.shields.io/travis/ nodkz/mongodb-memory-server-global. svg )] ( https://travis-ci.org /nodkz/mongodb-memory-server-global )
3+ [ ![ Node.js CI ] ( https://github.com/ nodkz/mongodb-memory-server/workflows/Node.js%20CI/badge. svg )] ( https://github.com /nodkz/mongodb-memory-server/actions?query=workflow%3A"Node.js+CI" )
44[ ![ NPM version] ( https://img.shields.io/npm/v/mongodb-memory-server-global.svg )] ( https://www.npmjs.com/package/mongodb-memory-server-global )
55[ ![ Downloads stat] ( https://img.shields.io/npm/dt/mongodb-memory-server-global.svg )] ( http://www.npmtrends.com/mongodb-memory-server-global )
66[ ![ Commitizen friendly] ( https://img.shields.io/badge/commitizen-friendly-brightgreen.svg )] ( http://commitizen.github.io/cz-cli/ )
7- ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )
7+ [ ![ TypeScript compatible] ( https://img.shields.io/badge/typescript-compatible-brightgreen.svg )] ( https://www.typescriptlang.org )
8+ [ ![ codecov.io] ( https://codecov.io/github/nodkz/mongodb-memory-server/coverage.svg?branch=master )] ( https://codecov.io/github/nodkz/mongodb-memory-server?branch=master )
89
910Main default package which downloads latest mongod binary to ` %HOME%/.cache/mongodb-binaries ` / ` ~/.cache/mongodb-binaries ` directory on package install.
1011
You can’t perform that action at this time.
0 commit comments