fix: raise minimum deno version to 1.31.0 (#1333)
Fresh uses `Deno.Command` which is not available in older versions of Deno.
This commit is contained in:
@@ -25,7 +25,7 @@ The [documentation](https://fresh.deno.dev/docs/) is available on
|
||||
|
||||
## 🚀 Getting started
|
||||
|
||||
Install [Deno CLI](https://deno.land/) version 1.25.0 or higher.
|
||||
Install [Deno CLI](https://deno.land/) version 1.31.0 or higher.
|
||||
|
||||
You can scaffold a new project by running the Fresh init script. To scaffold a
|
||||
project run the following:
|
||||
|
||||
@@ -10,7 +10,7 @@ framework. You'll learn how to create a new project, run it locally, edit and
|
||||
create pages, fetch data, handle user interactions, and how to then deploy the
|
||||
project to [Deno Deploy][deno-deploy].
|
||||
|
||||
The documentation assumes you have Deno 1.25.0 or later installed.
|
||||
The documentation assumes you have Deno 1.31.0 or later installed.
|
||||
|
||||
To install Deno, follow the
|
||||
[installation instructions in the Deno manual][manual-installation].
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { dirname, fromFileUrl, gte, join, toFileUrl, walk } from "./deps.ts";
|
||||
import { error } from "./error.ts";
|
||||
|
||||
const MIN_DENO_VERSION = "1.25.0";
|
||||
const MIN_DENO_VERSION = "1.31.0";
|
||||
|
||||
export function ensureMinDenoVersion() {
|
||||
// Check that the minimum supported Deno version is being used.
|
||||
|
||||
@@ -198,7 +198,7 @@ function GettingStarted(props: { origin: string }) {
|
||||
<a href="https://deno.land" class="text-blue-600 hover:underline">
|
||||
Deno CLI
|
||||
</a>{" "}
|
||||
version 1.25.0 or higher is required.{" "}
|
||||
version 1.31.0 or higher is required.{" "}
|
||||
<a
|
||||
href="https://deno.land/manual/getting_started/installation"
|
||||
class="text-blue-600 hover:underline"
|
||||
|
||||
Reference in New Issue
Block a user