chore(release): promote 26.9.0-beta.2 to main #100

Merged
chrnx merged 39 commits from develop into main 2026-09-23 01:53:22 +00:00
3 changed files with 19 additions and 10 deletions
Showing only changes of commit e0da6cee16 - Show all commits

No files matched your search

+5 -2
View File
@@ -31,8 +31,11 @@ class UserController {
@Module({ mountpoint: '/api', providers: [Database], steps: [Authenticate], controllers: [UserController] })
class ApiModule {}
const logger: Plugin = (api) => {
api.bus.on('request:step:enter', (p) => console.log(`-> ${p.name}`));
const logger: Plugin = {
name: 'step-logger',
mount(api) {
api.bus.on('request:step:enter', (p) => console.log(`-> ${p.name}`));
},
};
export const app = createApp({ modules: [ApiModule], plugins: [logger] });
+7 -4
View File
@@ -57,10 +57,13 @@ test('serveBun close() runs registered teardown', async () => {
const app = createApp({
modules: [M],
hooks: [{ onShutdown: () => void closed.push('hook') }],
plugins: [(api) => api.onShutdown(async () => {
await Bun.sleep(10);
closed.push('plugin');
})],
plugins: [{
name: 'teardown-probe',
mount: (api) => api.onShutdown(async () => {
await Bun.sleep(10);
closed.push('plugin');
}),
}],
});
const server = serveBun(app, { port: 0 });
+7 -4
View File
@@ -72,10 +72,13 @@ Deno.test('serveDeno close() runs registered teardown', async () => {
const app = createApp({
modules: [M],
hooks: [{ onShutdown: () => void closed.push('hook') }],
plugins: [(api) => api.onShutdown(async () => {
await new Promise((r) => setTimeout(r, 10));
closed.push('plugin');
})],
plugins: [{
name: 'teardown-probe',
mount: (api) => api.onShutdown(async () => {
await new Promise((r) => setTimeout(r, 10));
closed.push('plugin');
}),
}],
});
const server = serveDeno(app, { port: 0 });