0.6.4 β€’ Published 4 months ago

@bogeychan/elysia-polyfills v0.6.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@bogeychan/elysia-polyfills

Collection of experimental Elysia.js polyfills:

PackageNode.js (v18.16.0)Deno (1.36.4#1,3)
elysia (0.6.19#2)πŸ”¬πŸ”¬
@elysiajs/cors (0.6.0)βœ…βœ…
@elysiajs/html (0.6.4)βœ…βœ…
@elysiajs/bearer (0.6.0)βœ…βœ…
@elysiajs/cookie (0.6.1)βœ…βœ…
@elysiajs/swagger (0.6.1)βœ…βœ…
@elysiajs/static (0.6.0)βœ…βœ…
.........

Legend

πŸ”¬ - Under testing

βœ… - Fully supported

⚠️ - Partial supported

❌ - Unsupported

🚩Notes

#1 With release 1.33.0, Deno introduced a new way to resolve node_modules dependencies. You need to update @bogeychan/elysia-polyfills to at least version 0.0.7 in order to be compatible.

#2 With version 0.5.15, Elysia.js supports CommonJS. Therefore, a build step is no longer required. The plugins listed above can be used out of the box for ESM and CommonJS projects.

#3 With release 1.35.0, Deno stabilized the Deno.serve() API. From now on Deno.serve() is used instead of the Deno Standard Modules.

Installation

yarn add @bogeychan/elysia-polyfills

Usage

Checkout the examples folder on Github and follow its setup guide.

OR use an Elysia.js scaffold.

Node.js

import '@bogeychan/elysia-polyfills/node/index.js';

import { Elysia } from 'elysia';

new Elysia().get('/', () => ({ hello: 'Node.jsπŸ‘‹' })).listen(8080);

Create a new Node.js project:

npm create elysia@latest my-elysia-app --template node-ts

Deno

import 'npm:@bogeychan/elysia-polyfills/deno/index.js';

import { Elysia } from 'npm:elysia';

new Elysia().get('/', () => ({ hello: 'DenoπŸ‘‹' })).listen(8080);

Create a new Deno project:

deno run -r=npm:create-elysia --allow-read --allow-write npm:create-elysia my-elysia-app --template deno

Author

bogeychan

License

MIT

0.6.4

4 months ago

0.6.3

4 months ago

0.6.2

4 months ago

0.6.1

8 months ago

0.6.0

8 months ago

0.5.3

11 months ago

0.5.2

11 months ago

0.5.0

11 months ago

0.0.7

1 year ago

0.5.1

11 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago