Releases: ayame113/ts-serve
Releases · ayame113/ts-serve
v1.4.6
v1.4.5
v1.4.4
v1.4.3
v1.4.2
v1.4.1
v1.4.0
What's Changed
After this PR, code like the following will be executable:
await transpile( "function name(params:type) {}", new URL("file:///src"), MediaType.TypeScript, )Until now, if the second argument did not have an extension, the file type could not be guessed and failed. Now you can pass MediaType as the third argument to indicate the file type.
Calling this function has no effect whether it is called or not.
Calling this function will force the loading of the wasm file used internally.
For performance sensitive servers, etc., call this function first to tell it to load wasm.
There is no need to call this function where performance is not important. In that case, the wasm file will be automatically loaded in about 3 seconds when you transpile for the first time.import { serve } from "https://deno.land/[email protected]/http/mod.ts"; import { serveDirWithTs, fourceInstantiateWasm } from "https://deno.land/x/ts_serve@$VERSION/mod.ts"; fourceInstantiateWasm(); serve((request) => serveDirWithTs(request));
- Update Deno Dependencies by @github-actions in #15
Full Changelog: v1.3.0...v1.4.0