Skip to content

Commit 00510b6

Browse files
committed
chore: update dependencies
1 parent 74553ef commit 00510b6

File tree

8 files changed

+2286
-3125
lines changed

8 files changed

+2286
-3125
lines changed

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"license": "MIT",
1010
"type": "module",
11-
"packageManager": "pnpm@10.16.1",
11+
"packageManager": "pnpm@10.25.0",
1212
"exports": {
1313
".": {
1414
"types": "./dist/types.d.mts",
@@ -40,13 +40,13 @@
4040
},
4141
"dependencies": {
4242
"@adonisjs/hash": "^9.1.1",
43-
"@nuxt/kit": "^4.1.2",
43+
"@nuxt/kit": "^4.2.1",
4444
"defu": "^6.1.4",
4545
"h3": "^1.15.4",
4646
"hookable": "^5.5.3",
47-
"jose": "^6.1.0",
48-
"ofetch": "^1.4.1",
49-
"openid-client": "^6.8.0",
47+
"jose": "^6.1.3",
48+
"ofetch": "^1.5.1",
49+
"openid-client": "^6.8.1",
5050
"pathe": "^2.0.3",
5151
"scule": "^1.3.0",
5252
"uncrypto": "^0.1.3"
@@ -72,20 +72,20 @@
7272
}
7373
},
7474
"devDependencies": {
75-
"@iconify-json/simple-icons": "^1.2.52",
76-
"@nuxt/devtools": "2.6.3",
77-
"@nuxt/eslint-config": "^1.9.0",
75+
"@iconify-json/simple-icons": "^1.2.62",
76+
"@nuxt/devtools": "3.1.1",
77+
"@nuxt/eslint-config": "^1.11.0",
7878
"@nuxt/module-builder": "^1.0.2",
79-
"@nuxt/schema": "^4.1.2",
80-
"@nuxt/test-utils": "^3.19.2",
79+
"@nuxt/schema": "^4.2.1",
80+
"@nuxt/test-utils": "^3.21.0",
8181
"@types/node": "latest",
82-
"@nuxt/ui": "^4.0.0-alpha.1",
82+
"@nuxt/ui": "^4.2.1",
8383
"@simplewebauthn/types": "^12.0.0",
8484
"changelogen": "^0.6.2",
85-
"eslint": "^9.35.0",
86-
"nuxt": "^4.1.2",
87-
"typescript": "5.9.2",
88-
"vitest": "^3.2.4",
89-
"vue-tsc": "^3.0.7"
85+
"eslint": "^9.39.1",
86+
"nuxt": "^4.2.1",
87+
"typescript": "5.9.3",
88+
"vitest": "^4.0.15",
89+
"vue-tsc": "^3.1.8"
9090
}
9191
}

playground/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
},
1010
"dependencies": {
1111
"@iconify-json/gravity-ui": "^1.2.10",
12-
"@iconify-json/iconoir": "^1.2.9",
13-
"@iconify-json/logos": "^1.2.9",
12+
"@iconify-json/iconoir": "^1.2.10",
13+
"@iconify-json/logos": "^1.2.10",
1414
"@tsndr/cloudflare-worker-jwt": "^3.2.0",
15-
"@vueuse/core": "^13.9.0",
16-
"@vueuse/nuxt": "^13.9.0",
17-
"nuxt": "^4.1.0",
15+
"@vueuse/core": "^14.1.0",
16+
"@vueuse/nuxt": "^14.1.0",
17+
"nuxt": "^4.2.1",
1818
"nuxt-auth-utils": "latest",
19-
"zod": "^4.1.5"
19+
"zod": "^4.1.13"
2020
}
2121
}

pnpm-lock.yaml

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

src/runtime/app/composables/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function useUserSession(): UserSessionComposable {
1414
const clear = async () => {
1515
await useRequestFetch()('/api/_auth/session', {
1616
method: 'DELETE',
17-
onResponse({ response: { headers } }) {
17+
onResponse({ response: { headers } }: { response: { headers: Headers } }) {
1818
// Forward the Set-Cookie header to the main server event
1919
if (import.meta.server && serverEvent) {
2020
for (const setCookie of headers.getSetCookie()) {

src/runtime/app/plugins/session.client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// TODO: https://github.com/nuxt/module-builder/issues/141
2-
import {} from 'nuxt/app'
2+
import type { NuxtApp } from 'nuxt/app'
33
import { defineNuxtPlugin, useUserSession, useError } from '#imports'
44

5-
export default defineNuxtPlugin(async (nuxtApp) => {
5+
export default defineNuxtPlugin(async (nuxtApp: NuxtApp) => {
66
if (!nuxtApp.payload.serverRendered) {
77
await useUserSession().fetch()
88
}

src/runtime/app/plugins/session.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// TODO: https://github.com/nuxt/module-builder/issues/141
2-
import {} from 'nuxt/app'
2+
import type { NuxtApp } from 'nuxt/app'
33
import { defineNuxtPlugin, useRequestEvent, useUserSession } from '#imports'
44

55
export default defineNuxtPlugin({
66
name: 'session-fetch-plugin',
77
enforce: 'pre',
8-
async setup(nuxtApp) {
8+
async setup(nuxtApp: NuxtApp) {
99
// Flag if request is cached
1010
nuxtApp.payload.isCached = Boolean(useRequestEvent()?.context.cache)
1111
if (nuxtApp.payload.serverRendered && !nuxtApp.payload.prerenderedAt && !nuxtApp.payload.isCached

src/runtime/server/plugins/oauth.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
import { defineNitroPlugin } from 'nitropack/runtime'
2+
import type { NitroApp } from 'nitropack/types'
3+
import type { NuxtRenderHTMLContext } from 'nuxt/app'
24

3-
export default defineNitroPlugin((nitroApp) => {
5+
export default defineNitroPlugin((nitroApp: NitroApp) => {
46
if (
57
(process.env.NUXT_OAUTH_FACEBOOK_CLIENT_ID && process.env.NUXT_OAUTH_FACEBOOK_CLIENT_SECRET)
68
|| (process.env.NUXT_OAUTH_INSTAGRAM_CLIENT_ID && process.env.NUXT_OAUTH_INSTAGRAM_CLIENT_SECRET)
79
) {
8-
// In facebook and instagram login, the url is redirected to /#_=_ which is not a valid route
9-
// so we remove it from the url, we are loading this long before the app is loaded
10-
// by using render:html hook
11-
// this is a hack, but it works
12-
// https://stackoverflow.com/questions/7131909/facebook-callback-appends-to-return-url
13-
nitroApp.hooks.hook('render:html', (html) => {
10+
// In facebook and instagram login, the url is redirected to /#_=_ which is not a valid route
11+
// so we remove it from the url, we are loading this long before the app is loaded
12+
// by using render:html hook
13+
// this is a hack, but it works
14+
// https://stackoverflow.com/questions/7131909/facebook-callback-appends-to-return-url
15+
// @ts-expect-error - have to ignore for the test:types script
16+
nitroApp.hooks.hook('render:html', (html: NuxtRenderHTMLContext) => {
1417
html.head.unshift(`
1518
<script>
1619
if (window.location.hash === "#_=_"){

src/runtime/types/oauth-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface OAuthConfig<TConfig, TResult = { user: any, tokens: any }> {
1111
config?: TConfig
1212
onSuccess: (
1313
event: H3Event,
14-
result: TResult
14+
result: TResult,
1515
) => Promise<void> | void
1616
onError?: OnError
1717
}

0 commit comments

Comments
 (0)