This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
Releases: boywithkeyboard-archive/cheetah1
Releases · boywithkeyboard-archive/cheetah1
v0.2.2
-
Bug Fixes
- Fixed a bug that lead to type
unknown
when defining a schema for validation.
- Fixed a bug that lead to type
-
Revisions
cheetah
andCollection
classes no longer take the environment type as first argument. This type should now be defined globally.
v0.2.1
-
Bug Fixes
- Fixed a small type issue regarding the environment variables type.
v0.2.0
-
Breaking Changes
-
c.env
is now a function. This drastically decreases the overhead and improves the interoperability between Cloudflare Workers and Deno.app.get('/', c => { const value = c.env('name') })
-
-
New Features
-
You can now get the runtime on which your code is running with the new
c.runtime
variable.The value of this variable will either be
deno
orcloudflare
depending on where you deployed your app to.
-
-
Revisions
-
Removed the validator types.
// before import typebox, { TypeBoxValidator } from 'https://deno.land/x/cheetah@v0.1.1/validator/typebox.ts' const app = new cheetah<Environment, TypeBoxValidator>({ validator: typebox }) const collection = new Collection<Environment, TypeBoxValidator>({ validator: typebox }) // now import typebox from 'https://deno.land/x/cheetah@v0.2.0/validator/typebox.ts' const app = new cheetah<Environment, typeof typebox>({ validator: typebox }) const collection = new Collection<Environment, typeof typebox>({ validator: typebox })
-
v0.1.1
-
Bug Fixes
-
The
build.ts
script now uses deno bundle and esbuild under the hood.The original script used esbuild_deno_loader, which is probably a better solution for the future - especially since deno bundle is scheduled to be removed in the near future - but for now it isn't yet a full-fledged replacement for the command.
-
v0.1.0
Published cheetah.