After two months of development, 3.0 has finally been released!
TIP
If you want to move from 2.0 to 3.0, please refer to the Migration Guide.
You can easily download the template by entering the command below.
npx zely-cli init --dir=app --template=typescript
INFO
npm:zely
is a re-exported package of the @zely-js/zely
and zely-cli
packages.
You can get the same result whether you import zely
or @zely-js/zely
(excluding CLI).
The changes are as follows:
You can add middleware that only works on that page.
export default [
middleware((ctx) => {
/**/
}),
];
3.0.0
is almost complete.
middleware
handlerimport { ALL, middleware } from '@zely-js/core';
export default [
ALL((ctx) => {
return ctx.params.number + 5;
}),
middleware((ctx) => {
ctx.params.number = 10;
}),
];
In v0, the name was changed from prext to zely, and some code modifications were made accordingly, and in v1, features began to be added in earnest. This v2 also brought some changes.