Skip to content

Commit

Permalink
style(MongoBinaryDownloadUrl): deprecate "sunos"
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jun 14, 2022
1 parent ad279b9 commit 5ba9835
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/config-options.md
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions docs/guides/error-warning-details.md
Expand Up @@ -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).
Expand Up @@ -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);
Expand Down

0 comments on commit 5ba9835

Please sign in to comment.