Skip to content

Commit 65a96c6

Browse files
committed
update most deps
1 parent e21c4cc commit 65a96c6

File tree

138 files changed

+22602
-1663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+22602
-1663
lines changed

epicshop/epic-me/package-lock.json

Lines changed: 747 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

epicshop/epic-me/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"@cloudflare/workers-oauth-provider": "^0.0.11",
2424
"@epic-web/invariant": "^1.0.0",
2525
"isbot": "^5.1.31",
26-
"react": "^19.1.1",
27-
"react-dom": "^19.1.1",
26+
"react": "^19.2.0",
27+
"react-dom": "^19.2.0",
2828
"react-router": "^7.9.3",
2929
"zod": "^3.25.67"
3030
},
@@ -34,8 +34,8 @@
3434
"@react-router/dev": "^7.9.3",
3535
"@tailwindcss/vite": "^4.1.14",
3636
"@types/node": "^24",
37-
"@types/react": "^19.1.17",
38-
"@types/react-dom": "^19.1.11",
37+
"@types/react": "^19.2.0",
38+
"@types/react-dom": "^19.2.0",
3939
"eslint": "^9.36.0",
4040
"prettier": "^3.6.2",
4141
"prettier-plugin-tailwindcss": "^0.6.14",
@@ -44,7 +44,7 @@
4444
"vite": "^7.1.7",
4545
"vite-plugin-devtools-json": "^1.0.0",
4646
"vite-tsconfig-paths": "^5.1.4",
47-
"wrangler": "^4.40.3"
47+
"wrangler": "^4.41.0"
4848
},
4949
"prettier": "@epic-web/config/prettier"
5050
}

epicshop/epic-me/types/worker-configuration.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
// Generated by Wrangler by running `wrangler types ./types/worker-configuration.d.ts` (hash: 053bd7d071af349c29594e4c08b5d359)
3-
// Runtime types generated with workerd@1.20250927.0 2025-04-04
3+
// Runtime types generated with workerd@1.20251001.0 2025-04-04
44
declare namespace Cloudflare {
55
interface GlobalProps {
66
mainModule: typeof import("../workers/app");

epicshop/epic-me/workers/app.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import OAuthProvider from '@cloudflare/workers-oauth-provider'
22
import { createRequestHandler } from 'react-router'
3-
import { type Env } from '#types/helpers'
3+
import { type Env, type EpicExecutionContext } from '#types/helpers'
44
import { DB } from './db/index.ts'
55
import { withCors } from './utils.ts'
66

@@ -10,13 +10,13 @@ const requestHandler = createRequestHandler(
1010
)
1111

1212
const defaultHandler = {
13-
async fetch(request, env, ctx) {
13+
async fetch(request: Request, env: Env, ctx: EpicExecutionContext) {
1414
return requestHandler(request, {
1515
db: await DB.getInstance(env),
1616
cloudflare: { env, ctx },
1717
})
1818
},
19-
} satisfies ExportedHandler<Env>
19+
}
2020

2121
const oauthProvider = new OAuthProvider({
2222
apiRoute: ['/whoami', '/db-api'],
@@ -47,7 +47,7 @@ export default {
4747
}
4848
}
4949
},
50-
handler: (request, env, ctx) => {
50+
handler: (request: Request, env: Env, ctx: ExecutionContext) => {
5151
return oauthProvider.fetch(request, env, ctx)
5252
},
5353
}),

epicshop/epic-me/workers/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
export function withCors({
1+
export function withCors<Props>({
22
getCorsHeaders,
33
handler,
44
}: {
55
getCorsHeaders(
66
request: Request,
77
): Record<string, string> | Headers | null | undefined
8-
handler: ExportedHandlerFetchHandler<Env>
9-
}): ExportedHandlerFetchHandler<Env> {
8+
handler: EpicMeExportedHandler<Props>['fetch']
9+
}): EpicMeExportedHandler<Props>['fetch'] {
1010
return async (request, env, ctx) => {
1111
const corsHeaders = getCorsHeaders(request)
1212
if (!corsHeaders) {

epicshop/update-deps.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ cd ../..
55
rm -rf node_modules package-lock.json ./epicshop/package-lock.json ./epicshop/node_modules ./exercises/**/node_modules ./epicshop/epic-me/package-lock.json ./epicshop/epic-me/node_modules
66
npm install
77
npm run setup
8+
npm run -ws --if-present pretypecheck
89
npm run typecheck
910
npm run lint -- --fix

exercises/01.discovery/01.problem.cors/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@epic-web/epicme-db-client": "*",
1717
"@epic-web/invariant": "^1.0.0",
18-
"@modelcontextprotocol/sdk": "1.18.2",
18+
"@modelcontextprotocol/sdk": "1.19.1",
1919
"agents": "0.2.7",
2020
"zod": "^3.25.67"
2121
},
@@ -24,15 +24,15 @@
2424
"@epic-web/mcp-dev": "*",
2525
"@faker-js/faker": "^10.0.0",
2626
"@modelcontextprotocol/inspector": "^0.17.0",
27-
"@types/node": "^24.6.1",
27+
"@types/node": "^24.6.2",
2828
"cross-env": "^10.1.0",
2929
"eslint": "^9.36.0",
3030
"execa": "^9.6.0",
3131
"get-port": "^7.1.0",
3232
"prettier": "^3.6.2",
3333
"typescript": "^5.9.3",
3434
"vitest": "^3.2.4",
35-
"wrangler": "^4.40.3"
35+
"wrangler": "^4.41.0"
3636
},
3737
"prettier": "@epic-web/config/prettier",
3838
"license": "GPL-3.0-only"

exercises/01.discovery/01.problem.cors/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ export default {
6565

6666
return new Response('Not found', { status: 404 })
6767
},
68-
} satisfies ExportedHandler<Env>
68+
} satisfies EpicMeExportedHandler

exercises/01.discovery/01.problem.cors/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
export function withCors({
1+
export function withCors<Props>({
22
getCorsHeaders,
33
handler,
44
}: {
55
getCorsHeaders(
66
request: Request,
77
): Record<string, string> | Headers | null | undefined
8-
handler: ExportedHandlerFetchHandler<Env>
9-
}): ExportedHandlerFetchHandler<Env> {
8+
handler: EpicMeExportedHandler<Props>['fetch']
9+
}): EpicMeExportedHandler<Props>['fetch'] {
1010
return async (request, env, ctx) => {
1111
const corsHeaders = getCorsHeaders(request)
1212
if (!corsHeaders) {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
import '@epic-web/config/reset.d.ts'
2+
3+
declare global {
4+
interface EpicMeExportedHandler<Props = {}> {
5+
fetch: (
6+
request: Request,
7+
env: Env,
8+
ctx: ExecutionContext<Props>,
9+
) => Response | Promise<Response>
10+
}
11+
}

0 commit comments

Comments
 (0)