Skip to content

Commit 2614d18

Browse files
committed
fix(MongoBinaryDownloadUrl::translateArch): add deprecation notice for "ia32"
re #638
1 parent 9bad913 commit 2614d18

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/guides/error-warning-details.md

+9
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,12 @@ Example: `ReplSet Count needs to be 1 or higher! (specified count: "${count}")`
167167

168168
Details:
169169
ReplSet count (like `new MongoMemoryReplSet({ replSet: { count: 0 } })`) needs to be `1` or higher
170+
171+
## Deprecation Codes
172+
173+
### MMS001
174+
175+
Code: `MMS001`
176+
Message: `mongodb-memory-server will fully drop support for ia32 in 9.0`
177+
178+
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).

packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
UnknownArchitectureError,
1010
UnknownPlatformError,
1111
} from './errors';
12+
import { deprecate } from 'util';
1213

1314
const log = debug('MongoMS:MongoBinaryDownloadUrl');
1415

@@ -514,6 +515,12 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
514515
static translateArch(arch: string, mongoPlatform: string): string {
515516
switch (arch) {
516517
case 'ia32':
518+
deprecate(
519+
() => {},
520+
'mongodb-memory-server will fully drop support for ia32 in 9.0',
521+
'MMS001'
522+
)();
523+
517524
if (mongoPlatform === 'linux') {
518525
return 'i686';
519526
} else if (mongoPlatform === 'win32') {

0 commit comments

Comments
 (0)