Skip to content

Commit 2460b37

Browse files
authored
fix: identifier query & update deps (#15)
* fix: identifier query & update deps * chore: package json update packageManager * chore: update gh actions * ci: corepack enable * fix: build * chore: try to fix vitepress netlify build
1 parent e0c3fd5 commit 2460b37

18 files changed

+1479
-2253
lines changed

.eslintignore

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

.eslintrc

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

.github/workflows/node.js.yml

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,35 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [18.x, 20.x, 22.x]
13+
node-version: [20.x, 22.x]
1414
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: pnpm/action-setup@v3
18-
with:
19-
version: 8
16+
- uses: actions/checkout@v4
17+
18+
- run: npm install -g corepack@latest
19+
- run: corepack enable
2020
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2222
with:
2323
node-version: ${{ matrix.node-version }}
24+
cache: "pnpm"
2425
- run: pnpm i
2526
- run: pnpm run test
2627

2728
coverage:
2829
name: coverage
2930
runs-on: ubuntu-latest
3031
steps:
31-
- uses: actions/checkout@v3
32-
- uses: pnpm/action-setup@v3
33-
with:
34-
version: 8
35-
- uses: actions/setup-node@v3
32+
- uses: actions/checkout@v4
33+
34+
- run: npm install -g corepack@latest
35+
- run: corepack enable
36+
- uses: actions/setup-node@v4
3637
with:
37-
node-version: "20"
38+
node-version: "22"
39+
cache: "pnpm"
3840
- run: pnpm i
39-
- uses: paambaati/codeclimate-action@v3.2.0
41+
- uses: paambaati/codeclimate-action@v9
4042
env:
4143
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
4244
with:
@@ -46,12 +48,13 @@ jobs:
4648
name: build
4749
runs-on: ubuntu-latest
4850
steps:
49-
- uses: actions/checkout@v3
50-
- uses: pnpm/action-setup@v3
51-
with:
52-
version: 8
53-
- uses: actions/setup-node@v3
51+
- uses: actions/checkout@v4
52+
53+
- run: npm install -g corepack@latest
54+
- run: corepack enable
55+
- uses: actions/setup-node@v4
5456
with:
55-
node-version: "20"
57+
node-version: "22"
58+
cache: "pnpm"
5659
- run: pnpm i
5760
- run: pnpm run build

docs/.vitepress/config.ts

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import { defineConfig } from "vitepress";
22

33
export default {
4-
title: 'feathers-trigger',
5-
description: 'Add triggers and actions to your feathers app.',
6-
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
4+
title: "feathers-trigger",
5+
description: "Add triggers and actions to your feathers app.",
6+
head: [["link", { rel: "icon", href: "/favicon.ico" }]],
77
themeConfig: {
8-
logo: '/img/logo.svg',
9-
editLink: { pattern: 'https://github.com/fratzinger/feathers-trigger/edit/main/docs/:path', text: 'Edit this page on GitHub' },
10-
lastUpdatedText: 'Last Updated',
8+
logo: "/img/logo.svg",
9+
editLink: {
10+
pattern:
11+
"https://github.com/fratzinger/feathers-trigger/edit/main/docs/:path",
12+
text: "Edit this page on GitHub",
13+
},
14+
lastUpdatedText: "Last Updated",
1115
socialLinks: [
1216
{
1317
icon: "twitter",
@@ -17,43 +21,47 @@ export default {
1721
icon: "discord",
1822
link: "https://discord.gg/qa8kez8QBx",
1923
},
20-
{ icon: 'github', link: 'https://github.com/fratzinger/feathers-trigger' }
24+
{
25+
icon: "github",
26+
link: "https://github.com/fratzinger/feathers-trigger",
27+
},
2128
],
2229
sidebar: [
2330
{
2431
text: "Getting Started",
25-
link: "/getting-started"
32+
link: "/getting-started",
2633
// items: [
2734
// { text: "Getting Started", link: "/getting-started" },
2835
// { text: "Hooks", link: "/hooks" },
2936
// ]
3037
},
3138
{
3239
text: "Hooks",
33-
link: "/hooks"
34-
}
40+
link: "/hooks",
41+
},
3542
],
3643
nav: [
37-
3844
{
39-
text: 'Ecosystem',
45+
text: "Ecosystem",
4046
items: [
41-
{
42-
text: 'www.feathersjs.com',
43-
link: 'https://feathersjs.com/'
44-
}, {
47+
{
48+
text: "www.feathersjs.com",
49+
link: "https://feathersjs.com/",
50+
},
51+
{
4552
text: "Feathers Github Repo",
46-
link: "https://github.com/feathersjs/feathers"
47-
}, {
48-
text: 'Awesome Feathersjs',
49-
link: 'https://github.com/feathersjs/awesome-feathersjs'
50-
}
51-
]
52-
}
53+
link: "https://github.com/feathersjs/feathers",
54+
},
55+
{
56+
text: "Awesome Feathersjs",
57+
link: "https://github.com/feathersjs/awesome-feathersjs",
58+
},
59+
],
60+
},
5361
],
5462
footer: {
55-
message: 'Released under the MIT License.',
56-
copyright: 'Copyright © 2021-present Frederik Schmatz'
63+
message: "Released under the MIT License.",
64+
copyright: "Copyright © 2021-present Frederik Schmatz",
5765
},
58-
}
59-
}
66+
},
67+
};

docs/.vitepress/theme/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import DefaultTheme from 'vitepress/theme'
2-
import './index.css'
1+
import DefaultTheme from "vitepress/theme";
2+
import "./index.css";
33

44
export default {
5-
...DefaultTheme
6-
}
5+
...DefaultTheme,
6+
};

eslint.config.mjs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
4+
import eslintPluginImportX from "eslint-plugin-import-x";
5+
import tsParser from "@typescript-eslint/parser";
6+
7+
export default tseslint.config(
8+
{
9+
ignores: [
10+
"**/node_modules",
11+
"**/dist",
12+
"**/coverage",
13+
"docs/.vitepress/cache",
14+
"docs/.vitepress/dist",
15+
],
16+
},
17+
eslint.configs.recommended,
18+
// eslint-disable-next-line import-x/no-named-as-default-member
19+
tseslint.configs.recommended,
20+
{
21+
rules: {
22+
// unset js rules
23+
"no-unused-vars": "off",
24+
"@typescript-eslint/no-explicit-any": "off",
25+
},
26+
},
27+
eslintPluginImportX.flatConfigs.recommended,
28+
eslintPluginImportX.flatConfigs.typescript,
29+
{
30+
files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
31+
ignores: ["eslint.config.js"],
32+
languageOptions: {
33+
parser: tsParser,
34+
ecmaVersion: "latest",
35+
sourceType: "module",
36+
},
37+
rules: {
38+
"import-x/no-dynamic-require": "warn",
39+
"import-x/no-nodejs-modules": "off",
40+
},
41+
},
42+
{
43+
files: ["**/*.test.ts", "**/test/**/*.ts"],
44+
rules: {
45+
"@typescript-eslint/no-unused-vars": "off",
46+
"@typescript-eslint/ban-ts-comment": "off",
47+
},
48+
},
49+
eslintPluginPrettierRecommended,
50+
);

package.json

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"url": "https://github.com/fratzinger/feathers-trigger"
1010
},
1111
"engines": {
12-
"node": ">= 16"
12+
"node": ">= 20"
1313
},
1414
"keywords": [
1515
"feathers",
@@ -38,15 +38,15 @@
3838
"src/**",
3939
"dist/**"
4040
],
41-
"packageManager": "pnpm@8.8.0",
41+
"packageManager": "pnpm@9.15.0",
4242
"scripts": {
4343
"build": "unbuild",
4444
"version": "npm run build",
4545
"release": "np",
4646
"test": "vitest run",
4747
"vitest": "vitest",
4848
"coverage": "vitest run --coverage",
49-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
49+
"lint": "eslint .",
5050
"docs": "vitepress dev docs",
5151
"docs:build": "vitepress build docs"
5252
},
@@ -59,27 +59,28 @@
5959
"sift": "^17.1.3"
6060
},
6161
"devDependencies": {
62-
"@feathersjs/feathers": "^5.0.31",
63-
"@feathersjs/memory": "^5.0.31",
64-
"@types/lodash": "^4.17.13",
65-
"@types/node": "^22.10.1",
66-
"@typescript-eslint/eslint-plugin": "^7.2.0",
67-
"@typescript-eslint/parser": "^7.2.0",
68-
"@vitest/coverage-v8": "^2.1.8",
62+
"@eslint/js": "^9.19.0",
63+
"@feathersjs/feathers": "^5.0.32",
64+
"@feathersjs/memory": "^5.0.32",
65+
"@types/lodash": "^4.17.15",
66+
"@types/node": "^22.13.0",
67+
"@typescript-eslint/eslint-plugin": "^8.23.0",
68+
"@typescript-eslint/parser": "^8.23.0",
69+
"@vitest/coverage-v8": "^3.0.5",
6970
"date-fns": "^4.1.0",
70-
"eslint": "^8.57.0",
71-
"eslint-config-prettier": "^9.1.0",
72-
"eslint-import-resolver-typescript": "^3.6.1",
73-
"eslint-plugin-import": "^2.29.1",
74-
"eslint-plugin-prettier": "^5.1.3",
71+
"eslint": "^9.19.0",
72+
"eslint-import-resolver-typescript": "^3.7.0",
73+
"eslint-plugin-import-x": "^4.6.1",
74+
"eslint-plugin-prettier": "^5.2.3",
7575
"feathers-fletching": "^2.0.3",
7676
"feathers-graph-populate": "^4.2.0",
77-
"np": "^10.1.0",
78-
"typescript": "^5.7.2",
79-
"unbuild": "^2.0.0",
80-
"vite": "^6.0.3",
81-
"vitepress": "^1.5.0",
82-
"vitest": "^2.1.8"
77+
"np": "^10.2.0",
78+
"typescript": "^5.7.3",
79+
"typescript-eslint": "^8.23.0",
80+
"unbuild": "^3.3.1",
81+
"vite": "^6.0.11",
82+
"vitepress": "^1.6.3",
83+
"vitest": "^3.0.5"
8384
},
8485
"peerDependencies": {
8586
"@feathersjs/feathers": "^5.0.0"

0 commit comments

Comments
 (0)