Skip to content

Commit 479dadb

Browse files
committed
refactor: remove extra globalThis
1 parent 093b92f commit 479dadb

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ Access request context and global state:
143143
- `$HEADERS`: Request headers
144144
- `$COOKIES`: Read-only object containing request cookies
145145
- `$RESPONSE`: Response configuration object
146-
- `globalThis`: Global JavaScript object
147146
148147
### Cookie Management
149148

src/render.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export async function renderToResponse(
4242
}
4343

4444
export type RenderContext = {
45-
globalThis: typeof globalThis;
4645
htmlspecialchars: (s: string) => string;
4746
setCookie: (
4847
name: string,
@@ -91,7 +90,6 @@ export function createRenderContext(options: RenderOptions): RenderContext {
9190

9291
return {
9392
...options.context,
94-
globalThis,
9593
htmlspecialchars,
9694
setCookie,
9795
redirect,

0 commit comments

Comments
 (0)