Docs
Migration
Migration from 3.x

Migration from 3.x

4.0 is 100% compatible with 3.0!

Just edit a few things for magic.

#Summary

  1. New loader has been introduced.
  2. HTML supported.
  3. 4.0 is much faster than 3.0. - benchmark
  4. Devtools has been deprecated.

#New loader

The new loader has been introduced in zely. (Read blog)

Enable experimental.useSerpack to use new loader.

Typescript
import { defineConfig } from 'zely';
 
export default defineConfig({
  experimental: {
    useSerpack: true,
  },
});

UNDER DEVELOPMENT

It's not ready to be used for production yet

#HTML

No more ctx.html like this:

Typescript
export default [ALL((ctx) => ctx.html('<h1>Hello World!</h1>'))];

Just enable experimental.useHTML,

Typescript
import { defineConfig } from 'zely';
 
export default defineConfig({
  experimental: {
    useHTML: true,
  },
});

and write .html file.

HTML
<h1>Hello World!</h1>