Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add legacy messaging for Miniflare 2 #741

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions packages/miniflare/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
# 🔥 Miniflare
> [!WARNING]
>
> This repository is for [Miniflare 2](https://legacy.miniflare.dev/), which is
> **only receiving critical security updates.** Miniflare 2 simulated the
> Workers runtime and the rest of the Cloudflare developer platform using
> Node.js. New versions of Miniflare can be found in the
> [`workers-sdk`](https://github.com/cloudflare/workers-sdk/tree/main/packages/miniflare)
> repository, and use the
> [open-sourced](https://blog.cloudflare.com/workerd-open-source-workers-runtime/)
> Workers runtime [`workerd`](https://github.com/cloudflare/workerd). This
> practically eliminates behaviour mismatches between development and production
> deployments. We recommend you
> [migrate to Miniflare 3](https://miniflare.dev/get-started/migrating) now if
> you can. Whilst Miniflare 3 supports most of Miniflare 2's features, one key
> omission is the unit testing environment. We're actively working on adding
> support for this to Miniflare 3. Once this is supported, we're planning to
> deprecate Miniflare 2 and archive this repository.

# 🔥 Miniflare 2

**Miniflare** is a simulator for developing and testing
[**Cloudflare Workers**](https://workers.cloudflare.com/).
Expand All @@ -13,7 +31,7 @@
It's an alternative to `wrangler dev`, written in TypeScript, that runs your
workers in a sandbox implementing Workers' runtime APIs.

**See <https://miniflare.dev> for more detailed documentation.**
**See <https://legacy.miniflare.dev> for more detailed documentation.**

## Features

Expand Down Expand Up @@ -43,8 +61,8 @@ workers in a sandbox implementing Workers' runtime APIs.
Miniflare is installed using npm:

```sh
$ npm install -g miniflare # either globally..
$ npm install -D miniflare # ...or as a dev dependency
$ npm install -g miniflare@2 # either globally..
$ npm install -D miniflare@2 # ...or as a dev dependency
```

## Using the CLI
Expand Down