<commit_before>---
id: migrate7
title: 'Migrate to version 7.0.0'
---

Here are the Important changes made for 7.0.0

:::caution Important, Read this first
This Guide is written for migration from version `6.9.6` to `7.0.0`, for versions `>7.0.0 <8.0.0`, please consult the [CHANGELOG](https://github.com/nodkz/mongodb-memory-server/blob/master/CHANGELOG.md)
:::

## Requirement Changes

If using NodeJS below 12.22, package `rimraf` needs to be installed (when using cleanup with `force`)

## Breaking Changes

### no function other than start, create, ensureInstance will be starting anything

For 7.0.0, the only functions that start / wait for an starting instance will be `create`, `start` and `ensureInstance`

Example:

```ts
// this no longer works
const mongo = new MongoMemoryServer();
const uri = await getUri(); // ERROR: instance not started
<commit_msg>docs(migrate7): change requirements to actual requirements<commit_after>---
id: migrate7
title: 'Migrate to version 7.0.0'
---

Here are the Important changes made for 7.0.0

:::caution Important, Read this first
This Guide is written for migration from version `6.9.6` to `7.0.0`, for versions `>7.0.0 <8.0.0`, please consult the [CHANGELOG](https://github.com/nodkz/mongodb-memory-server/blob/master/CHANGELOG.md)
:::

## Requirement Changes

- Nodejs `10` & `11` are now unsupported, lowest supported version is now `12.22`

## Breaking Changes

### no function other than start, create, ensureInstance will be starting anything

For 7.0.0, the only functions that start / wait for an starting instance will be `create`, `start` and `ensureInstance`

Example:

```ts
// this no longer works
const mongo = new MongoMemoryServer();
const uri = await getUri(); // ERROR: instance not started

{'fraction_non_alphanumeric': 0.11995451961341672, 'fraction_numerical': 0.03240477544059125, 'mean_word_length': 4.317220543806647, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4975338', 'n_tokens_mistral': 559, 'n_tokens_neox': 537, 'n_words': 215}