Releases: tsdk-monorepo/tsdk
Releases · tsdk-monorepo/tsdk
v0.1.2
v0.1.1
Breaking Change:
genRoute
callback first two arguments swap for better experience
Before:
import {
GetHelloConfig, GetHelloReq, GetHelloRes
} from './Hello.apiconf';
import { genRoute, type RequestInfo } from './gen-route';
export function setupHelloAPI() {
genRoute<GetHelloReq, GetHelloRes>(
GetHelloConfig,
/** here */
async (reqInfo: Readonly<RequestInfo>, data) => {
return { result: `Hello ${data.world}` };
}
);
}
Now:
...
export function setupHelloAPI() {
genRoute<GetHelloReq, GetHelloRes>(
GetHelloConfig,
/** here */
async (data, reqInfo) => {
return { result: `Hello ${data.world}` };
}
);
}
v0.0.35
v0.0.34
v0.0.33
v0.0.32
Check the CHANGELOG file:
https://github.com/tsdk-monorepo/tsdk/blob/main/CHANGELOG.mdx