Skip to content

Commit

Permalink
refactor(core): remove unused legacy middlewares
Browse files Browse the repository at this point in the history
remove legacy middlewares
  • Loading branch information
simeng-li committed Jan 9, 2023
1 parent a9b3cd1 commit 6e9d065
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 665 deletions.
155 changes: 0 additions & 155 deletions packages/core/src/middleware/koa-audit-log-legacy.test.ts

This file was deleted.

118 changes: 0 additions & 118 deletions packages/core/src/middleware/koa-audit-log-legacy.ts

This file was deleted.

77 changes: 0 additions & 77 deletions packages/core/src/middleware/koa-log-session-legacy.test.ts

This file was deleted.

25 changes: 0 additions & 25 deletions packages/core/src/middleware/koa-log-session-legacy.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/core/src/routes/types.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import type { ExtendableContext } from 'koa';
import type Router from 'koa-router';

import type { WithLogContextLegacy } from '#src/middleware/koa-audit-log-legacy.js';
import type { WithLogContext } from '#src/middleware/koa-audit-log.js';
import type { WithAuthContext } from '#src/middleware/koa-auth.js';
import type { WithI18nContext } from '#src/middleware/koa-i18next.js';
import type TenantContext from '#src/tenants/TenantContext.js';

export type AnonymousRouter = Router<unknown, WithLogContext & WithI18nContext>;

/** @deprecated This will be removed soon. Use `kua-log-session.js` instead. */
export type AnonymousRouterLegacy = Router<unknown, WithLogContextLegacy & WithI18nContext>;

export type AuthedRouter = Router<
unknown,
WithAuthContext & WithLogContext & WithI18nContext & ExtendableContext
Expand Down
Loading

0 comments on commit 6e9d065

Please sign in to comment.