Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Releases: boywithkeyboard-archive/cheetah1

v0.2.2

23 Apr 15:10
Compare
Choose a tag to compare
  • Bug Fixes

    • Fixed a bug that lead to type unknown when defining a schema for validation.
  • Revisions

    • cheetah and Collection classes no longer take the environment type as first argument. This type should now be defined globally.

v0.2.1

21 Apr 11:15
Compare
Choose a tag to compare
  • Bug Fixes

    • Fixed a small type issue regarding the environment variables type.

v0.2.0

20 Apr 21:27
Compare
Choose a tag to compare
  • 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 or cloudflare 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

20 Apr 10:59
Compare
Choose a tag to compare
  • 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

19 Apr 22:24
Compare
Choose a tag to compare

Published cheetah.