From a91264b3d107f96cf57a9e9920bfb44d68a22339 Mon Sep 17 00:00:00 2001 From: "ayame113 (val440)" <40050810+ayame113@users.noreply.github.com> Date: Thu, 12 Dec 2024 01:23:32 +0900 Subject: [PATCH] forgot deprecated message (#42) --- README.md | 4 ---- deno.json | 2 +- mod.ts | 5 +++-- src/file_server.ts | 2 -- src/oak.ts | 1 - utils/transpile.ts | 1 - 6 files changed, 4 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ce3b715..d560370 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,3 @@ -# This module was move to jsr. - -# Please see [jsr.io/@ayame113/ts-serve](https://jsr.io/@ayame113/ts-serve) - # ts-serve [![Test](https://github.com/ayame113/ts-serve/actions/workflows/test.yml/badge.svg)](https://github.com/ayame113/ts-serve/actions/workflows/test.yml) diff --git a/deno.json b/deno.json index d92b0ee..161e0d5 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@ayame113/ts-serve", - "version": "1.5.2", + "version": "1.5.3", "license": "MIT", "exports": "./mod.ts", "tasks": { diff --git a/mod.ts b/mod.ts index ab65e68..db5f20c 100644 --- a/mod.ts +++ b/mod.ts @@ -16,8 +16,6 @@ import { MediaType, transpile } from "./utils/transpile.ts"; * forceInstantiateWasm(); * Deno.serve((request) => serveDirWithTs(request)); * ``` - * - * @deprecated please use [jsr](https://jsr.io/@ayame113/ts-serve) version */ export async function forceInstantiateWasm() { try { @@ -25,4 +23,7 @@ export async function forceInstantiateWasm() { } catch (_) { /* ignore error*/ } } +/** + * @deprecated Use `forceInstantiateWasm` instead. (typo) + */ export const fourceInstantiateWasm = forceInstantiateWasm; diff --git a/src/file_server.ts b/src/file_server.ts index 0f093dc..f4c197c 100644 --- a/src/file_server.ts +++ b/src/file_server.ts @@ -17,7 +17,6 @@ import type { TranspileOptions } from "../utils/transpile.ts"; * forceInstantiateWasm(); * Deno.serve((request) => serveFileWithTs(request, "./mod.ts")); * ``` - * @deprecated please use [jsr](https://jsr.io/@ayame113/ts-serve) version */ export async function serveFileWithTs( request: Request, @@ -43,7 +42,6 @@ export async function serveFileWithTs( * forceInstantiateWasm(); * Deno.serve((request) => serveDirWithTs(request)); * ``` - * @deprecated please use [jsr](https://jsr.io/@ayame113/ts-serve) version */ export async function serveDirWithTs( request: Request, diff --git a/src/oak.ts b/src/oak.ts index a34b5aa..ae0aa0d 100644 --- a/src/oak.ts +++ b/src/oak.ts @@ -129,7 +129,6 @@ export function createTsMiddleware( * }); * await app.listen({ port: 8000 }); * ``` - * @deprecated please use [jsr](https://jsr.io/@ayame113/ts-serve) version */ export const tsMiddleware: Middleware = createTsMiddleware(); export type { TranspileOptions }; diff --git a/utils/transpile.ts b/utils/transpile.ts index 05ef759..bb9fcfc 100644 --- a/utils/transpile.ts +++ b/utils/transpile.ts @@ -38,7 +38,6 @@ export interface TranspileOptions { * MediaType.TypeScript, * )); * ``` - * @deprecated please use [jsr](https://jsr.io/@ayame113/ts-serve) version */ export async function transpile( content: string,