Skip to content

Commit ca2deba

Browse files
authored
Merge pull request #22 from wobsoriano/bump-nuxt-kit
chore: Bump @nuxt/kit to 3.14.159 and other related dependencies
2 parents ed375b8 + 3dce6ac commit ca2deba

File tree

16 files changed

+6928
-7625
lines changed

16 files changed

+6928
-7625
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/preview.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Preview
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Repo
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- uses: pnpm/action-setup@v4
15+
with:
16+
version: 9
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20.x
22+
cache: pnpm
23+
24+
- name: Install dependencies
25+
run: pnpm install --frozen-lockfile
26+
27+
- name: Prepare tsconfig
28+
run: pnpm dev:prepare
29+
30+
- name: Build
31+
run: pnpm prepack
32+
33+
- name: Create a snapshot version
34+
id: snapshot
35+
run: pnpm dlx pkg-pr-new publish

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ dist
1919
# Nuxt
2020
.nuxt
2121
.output
22+
.data
2223
.vercel_build_output
2324
.build-*
24-
.env
2525
.netlify
2626

2727
# Env

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
shamefully-hoist=true
2+
strict-peer-dependencies=false

eslint.config.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// @ts-check
2+
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
3+
4+
// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
5+
export default createConfigForNuxt({
6+
features: {
7+
// Rules for module authors
8+
tooling: true,
9+
// Rules for formatting
10+
stylistic: true,
11+
},
12+
dirs: {
13+
src: [
14+
'./playground',
15+
],
16+
},
17+
})
18+
.append(
19+
// your custom flat config here...
20+
)

package.json

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"version": "0.3.1",
44
"license": "MIT",
55
"type": "module",
6+
"homepage": "https://github.com/wobsoriano/nuxt3-socket.io#readme",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/wobsoriano/nuxt3-socket.io.git"
10+
},
11+
"bugs": "https://github.com/wobsoriano/nuxt3-socket.io/issues",
612
"exports": {
713
".": {
814
"types": "./dist/types.d.ts",
@@ -11,7 +17,7 @@
1117
},
1218
"./helpers": {
1319
"types": "./dist/runtime/helpers.d.ts",
14-
"import": "./dist/runtime/helpers.mjs"
20+
"import": "./dist/runtime/helpers.js"
1521
}
1622
},
1723
"main": "./dist/module.cjs",
@@ -30,20 +36,19 @@
3036
"release": "bumpp && npm publish"
3137
},
3238
"dependencies": {
33-
"@nuxt/kit": "^3.11.2",
39+
"@nuxt/kit": "^3.14.159",
3440
"fast-glob": "^3.3.2",
3541
"pathe": "^1.1.2",
36-
"requrl": "^3.0.2",
37-
"socket.io": "^4.7.5",
38-
"socket.io-client": "^4.7.5"
42+
"socket.io": "^4.8.1",
43+
"socket.io-client": "^4.8.1"
3944
},
4045
"devDependencies": {
41-
"@nuxt/devtools": "latest",
42-
"@nuxt/eslint-config": "^0.3.1",
43-
"@nuxt/module-builder": "^0.5.5",
44-
"@nuxt/schema": "^3.11.2",
46+
"@nuxt/devtools": "^1.6.0",
47+
"@nuxt/eslint-config": "^0.6.1",
48+
"@nuxt/module-builder": "^0.8.4",
49+
"@nuxt/schema": "^3.14.159",
4550
"bumpp": "^9.4.0",
46-
"eslint": "^9.0.0",
47-
"nuxt": "^3.11.2"
51+
"eslint": "^9.14.0",
52+
"nuxt": "^3.14.159"
4853
}
4954
}

playground/nuxt.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export default defineNuxtConfig({
22
modules: ['../src/module'],
3-
myModule: {
4-
addPlugin: true
5-
},
6-
devtools: { enabled: false }
3+
devtools: { enabled: false },
4+
5+
compatibilityDate: '2024-11-11',
76
})

playground/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
{
22
"private": true,
3-
"name": "my-module-playground"
3+
"name": "playground",
4+
"type": "module",
5+
"scripts": {
6+
"dev": "nuxi dev",
7+
"build": "nuxi build",
8+
"generate": "nuxi generate"
9+
},
10+
"dependencies": {
11+
"nuxt": "^3.14.159"
12+
}
413
}

playground/server/api/hello.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
export default eventHandler((event) => {
1+
export default eventHandler(() => {
2+
// @ts-expect-error: todo fix types
23
console.log(globalThis.__io)
34

45
return {
5-
hello: 'world'
6+
hello: 'world',
67
}
78
})

playground/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./.nuxt/tsconfig.json"
3+
}

0 commit comments

Comments
 (0)