Skip to content

Commit

Permalink
forgot deprecated message (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayame113 authored Dec 11, 2024
1 parent c234bff commit a91264b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 11 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ayame113/ts-serve",
"version": "1.5.2",
"version": "1.5.3",
"license": "MIT",
"exports": "./mod.ts",
"tasks": {
Expand Down
5 changes: 3 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ 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 {
await transpile("", new URL("file:///src"), MediaType.TypeScript);
} catch (_) { /* ignore error*/ }
}

/**
* @deprecated Use `forceInstantiateWasm` instead. (typo)
*/
export const fourceInstantiateWasm = forceInstantiateWasm;
2 changes: 0 additions & 2 deletions src/file_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/oak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
1 change: 0 additions & 1 deletion utils/transpile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a91264b

Please sign in to comment.