From 5ba9835f2b55141f5de426fe24e0459570c28ebd Mon Sep 17 00:00:00 2001 From: hasezoey Date: Tue, 14 Jun 2022 12:33:19 +0200 Subject: [PATCH] style(MongoBinaryDownloadUrl): deprecate "sunos" --- docs/api/config-options.md | 2 +- docs/guides/error-warning-details.md | 7 +++++++ .../src/util/MongoBinaryDownloadUrl.ts | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/api/config-options.md b/docs/api/config-options.md index 22216da0b..8d88df8d4 100644 --- a/docs/api/config-options.md +++ b/docs/api/config-options.md @@ -27,7 +27,7 @@ Format: Option `PLATFORM` is used to overwrite which platform should be downloaded -Valid Options are `win32`, `darwin`, `linux`, `sunos` +Valid Options are `win32`, `darwin`, `linux`, ~~`sunos`~~(never actually supported, [will be removed in 9.0](../guides/error-warning-details.md#mms002)) ### ARCH diff --git a/docs/guides/error-warning-details.md b/docs/guides/error-warning-details.md index 406e9cf91..25a3d853c 100644 --- a/docs/guides/error-warning-details.md +++ b/docs/guides/error-warning-details.md @@ -176,3 +176,10 @@ Code: `MMS001` Message: `mongodb-memory-server will fully drop support for ia32 in 9.0` In the major version `9.0` MMS will fully drop support for the architecture `ia32` (`i386` / `i686`), because MongoDB stopped supporting the architecture past 3.x, and MMS never full supported 3.6 or lower anyway, see [this issue #638 for tracking](https://github.com/nodkz/mongodb-memory-server/issues/638). + +### MMS002 + +Code: `MMS002` +Message: `mongodb-memory-server will fully drop support for sunos in 9.0` + +In the major version `9.0` MMS will fully drop support for the platfrom `sunos`, because MMS never actually supported `sunos` in the first place and Mongodb has stopped providing builds after ~3.4, see [#661 for tracking](https://github.com/nodkz/mongodb-memory-server/issues/661). diff --git a/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts b/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts index 3fea4067a..7edde8e95 100644 --- a/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts +++ b/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts @@ -500,6 +500,12 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts { case 'elementary OS': return 'linux'; case 'sunos': + deprecate( + () => {}, + 'mongodb-memory-server will fully drop support for sunos in 9.0', + 'MMS002' + )(); + return 'sunos5'; default: throw new UnknownPlatformError(platform);