v0.59.0
Initial Release of Server Plugin System
The server plugin system is how we will enable arri to know about how to run different kinds of servers and where to access app definitions to run the client generations.
Server plugins get registered in the arri config file which will override the behaviors of arri build
and arri dev
in the CLI. A guide on creating a server plugin has also been added to the server implementation guide.
The Typescript server has been migrated to this system to ensure and consistent workflow between languages, so this is a breaking change.
Migration Guide
Move TS server options into the tsServer
plugin. Basically any property that isn't generators
is a TS server specific option.
/////// before ///////
import { defineConfig } from 'arri';
export default defineConfig({
entry: "app.ts",
port: 3000,
generators: [....]
});
/////// after ///////
import { defineConfig, servers } from 'arri';
export default defineConfig({
server: servers.tsServer({
entry: "app.ts",
port: 3000,
}),
generators: [....]
});