Skip to content

Commit ec32505

Browse files
committed
chore(deps): bump packages
1 parent 3d76c4a commit ec32505

File tree

8 files changed

+995
-1178
lines changed

8 files changed

+995
-1178
lines changed

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"url": "https://github.com/manchenkoff"
88
},
99
"description": "Nuxt module for Laravel Echo integration",
10+
"homepage": "https://echo.manchenkoff.me",
1011
"repository": {
1112
"type": "git",
1213
"url": "git+https://github.com/manchenkoff/nuxt-laravel-echo.git"
@@ -29,34 +30,35 @@
2930
"dev": "nuxi dev playground",
3031
"dev:build": "nuxi build playground",
3132
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
32-
"release": "pnpm lint && pnpm test && pnpm prepack && changelogen --release && npm publish && git push --follow-tags",
3333
"lint": "eslint .",
3434
"lint:fix": "eslint . --fix",
3535
"test": "vitest run",
3636
"test:watch": "vitest watch",
3737
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
38-
"validate": "pnpm lint && pnpm test:types && pnpm test"
38+
"validate": "pnpm lint && pnpm test:types && pnpm test",
39+
"release": "pnpm lint && pnpm test && pnpm prepack && changelogen --release && npm publish && git push --follow-tags"
3940
},
4041
"dependencies": {
42+
"@nuxt/kit": "^4.2.1",
4143
"defu": "^6.1.4",
42-
"laravel-echo": "^2.2.4",
44+
"laravel-echo": "^2.2.6",
4345
"ofetch": "^1.5.1",
4446
"pusher-js": "^8.4.0"
4547
},
4648
"devDependencies": {
47-
"@nuxt/devtools": "^3.0.1",
49+
"@nuxt/devtools": "^3.1.0",
4850
"@nuxt/eslint-config": "^1.10.0",
49-
"@nuxt/kit": "^4.2.0",
5051
"@nuxt/module-builder": "^1.0.2",
51-
"@nuxt/schema": "^4.2.0",
52+
"@nuxt/schema": "^4.2.1",
5253
"@nuxt/test-utils": "^3.20.1",
53-
"@types/node": "^24.10.0",
54+
"@types/node": "^24.10.1",
5455
"changelogen": "^0.6.2",
5556
"eslint": "^9.39.1",
56-
"nuxt": "^4.2.0",
57+
"nuxt": "^4.2.1",
5758
"typescript": "^5.9.3",
58-
"vitest": "^3.2.4",
59-
"vue-tsc": "^3.1.3"
59+
"vitest": "^4.0.13",
60+
"vue": "^3.5.24",
61+
"vue-tsc": "^3.1.5"
6062
},
6163
"packageManager": "pnpm@10.20.0+sha512.cf9998222162dd85864d0a8102e7892e7ba4ceadebbf5a31f9c2fce48dfce317a9c53b9f6464d1ef9042cba2e02ae02a9f7c143a2b438cd93c91840f0192b9dd",
6264
"pnpm": {

pnpm-lock.yaml

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

src/module.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ export default defineNuxtModule<ModuleOptions>({
3434
meta: {
3535
name: MODULE_NAME,
3636
configKey: 'echo',
37-
compatibility: {
38-
nuxt: '>=3.13.0'
39-
}
4037
},
4138
defaults: defaultModuleOptions,
4239
setup(_options, _nuxt) {

src/runtime/composables/useEcho.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type Echo from 'laravel-echo'
2-
import type { Broadcaster } from 'laravel-echo'
2+
import type { BroadcastDriver } from 'laravel-echo'
33
import { useNuxtApp } from '#app'
44

5-
export const useEcho = (): Echo<keyof Broadcaster> => {
5+
export const useEcho = (): Echo<BroadcastDriver> => {
66
const { $echo } = useNuxtApp()
77

8-
return $echo as Echo<keyof Broadcaster>
8+
return $echo as Echo<BroadcastDriver>
99
}

src/runtime/factories/echo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ConsolaInstance } from 'consola'
22
import Echo from 'laravel-echo'
3-
import type { Broadcaster, EchoOptions } from 'laravel-echo'
3+
import type { BroadcastDriver, EchoOptions } from 'laravel-echo'
44
import type { Channel, ChannelAuthorizationCallback, Options } from 'pusher-js'
55
import type { ChannelAuthorizationData } from 'pusher-js/types/src/core/auth/options'
66
import type { Authentication, ModuleOptions } from '../types/options'
@@ -49,7 +49,7 @@ function createAuthorizer(
4949
* @param config The module options
5050
* @param logger The logger instance
5151
*/
52-
function prepareEchoOptions<T extends keyof Broadcaster>(app: NuxtApp, config: ModuleOptions, logger: ConsolaInstance): EchoOptions<T> {
52+
function prepareEchoOptions(app: NuxtApp, config: ModuleOptions, logger: ConsolaInstance): EchoOptions<BroadcastDriver> {
5353
const forceTLS = config.scheme === 'https'
5454
const additionalOptions = config.properties || {}
5555

src/runtime/plugin.client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type Echo from 'laravel-echo'
2-
import type { Broadcaster } from 'laravel-echo'
2+
import type { BroadcastDriver } from 'laravel-echo'
33
import PusherPkg from 'pusher-js'
44
import { createConsola } from 'consola'
55
import type { ConsolaInstance } from 'consola'
@@ -14,7 +14,7 @@ const Pusher = (PusherPkg as any).default || PusherPkg
1414

1515
declare global {
1616
interface Window {
17-
Echo: Echo<keyof Broadcaster>
17+
Echo: Echo<BroadcastDriver>
1818
Pusher: typeof Pusher
1919
}
2020
}

src/runtime/types/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Broadcaster } from 'laravel-echo'
1+
import type { BroadcastDriver } from 'laravel-echo'
22

33
export interface Authentication {
44
/**
@@ -43,7 +43,7 @@ export interface ModuleOptions {
4343
* The Laravel broadcaster type to use.
4444
* @default 'reverb'
4545
*/
46-
broadcaster: keyof Broadcaster
46+
broadcaster: BroadcastDriver
4747
/**
4848
* The host to connect to WebSocket.
4949
* @default 'localhost'

src/templates.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ export const registerTypeTemplates = (resolver: Resolver) => {
1111
getContents: () => `// Generated by nuxt-laravel-echo module
1212
import type { EchoAppConfig } from '${resolver.resolve('./runtime/types/config.ts')}';
1313
14+
declare module 'nuxt/schema' {
15+
interface AppConfig {
16+
echo?: EchoAppConfig;
17+
}
18+
}
19+
1420
declare module '@nuxt/schema' {
1521
interface AppConfigInput {
1622
echo?: EchoAppConfig;

0 commit comments

Comments
 (0)