v1.2 release
There are no new features in v1.2. But there's been a very important change.
We changed sard.js, which was the core server of prext, to osik.
There are advantages below:
- lighter ⚡
- delete unused features (code cleared!) 🎠
- osik supports async by default. 👋
Migration from 1.1
Plugin routing is no longer supported.
Use @osik/router middleware to use the routing feature.
ts
import { Router } from '@osik/router';
const router = new Router();
router.get('/', (req, res) => {
res.body = 'Hello World';
});
export default defineConfig({
plugins: [
{
name: 'router',
server(app) {
app.use(router.routes());
},
},
],
});