Skip to content

Commit 3d28918

Browse files
fix(deps): update all dependencies (#404)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: JounQin <admin@1stg.me>
1 parent 34fe29f commit 3d28918

File tree

13 files changed

+2084
-2116
lines changed

13 files changed

+2084
-2116
lines changed

.changeset/fluffy-candles-bow.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@pkgr/browser": patch
3+
"@pkgr/core": patch
4+
"@pkgr/rollup": patch
5+
---
6+
7+
fix(deps): update all dependencies, fix cjs env detection

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
PARSER_NO_WATCH: true
4747

4848
- name: Codecov
49-
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
49+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
5050
with:
5151
token: ${{ secrets.CODECOV_TOKEN }}
5252

.markuplintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@1stg/markuplint-config"
3+
}

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default [
55
{
66
rules: {
77
'sonarjs/no-nested-conditional': 'off',
8+
'unicorn-x/no-nested-ternary': 'off',
89
},
910
},
1011
{

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -30,48 +30,48 @@
3030
"version": "changeset version && yarn --no-immutable"
3131
},
3232
"devDependencies": {
33-
"@1stg/common-config": "^13.0.1",
33+
"@1stg/common-config": "^14.0.0",
3434
"@changesets/changelog-github": "^0.5.1",
35-
"@changesets/cli": "^2.29.0",
36-
"@commitlint/cli": "^19.8.0",
35+
"@changesets/cli": "^2.29.4",
36+
"@commitlint/cli": "^19.8.1",
3737
"@mdx-js/rollup": "^3.1.0",
38-
"@shikijs/rehype": "^3.2.2",
39-
"@swc/core": "^1.11.21",
38+
"@shikijs/rehype": "^3.4.2",
39+
"@swc/core": "^1.11.29",
4040
"@types/cross-spawn": "^6.0.6",
4141
"@types/debug": "^4.1.12",
4242
"@types/imagemin": "^9.0.1",
4343
"@types/is-glob": "^4.0.4",
4444
"@types/lodash-es": "^4.17.12",
4545
"@types/micromatch": "^4.0.9",
46-
"@types/node": "^22.14.1",
47-
"@types/react": "^19.1.2",
48-
"@types/react-dom": "^19.1.2",
49-
"@types/web": "^0.0.228",
46+
"@types/node": "^22.15.29",
47+
"@types/react": "^19.1.6",
48+
"@types/react-dom": "^19.1.5",
49+
"@types/web": "^0.0.236",
5050
"@vercel/analytics": "^1.5.0",
51-
"@vitejs/plugin-react-swc": "^3.9.0",
52-
"@vitejs/plugin-vue": "^5.2.3",
53-
"@vitejs/plugin-vue-jsx": "^4.1.2",
54-
"@vitest/coverage-istanbul": "^3.1.1",
55-
"eslint": "^9.24.0",
51+
"@vitejs/plugin-react-swc": "^3.10.0",
52+
"@vitejs/plugin-vue": "^5.2.4",
53+
"@vitejs/plugin-vue-jsx": "^4.2.0",
54+
"@vitest/coverage-istanbul": "^3.1.4",
55+
"eslint": "^9.28.0",
5656
"github-markdown-css": "^5.8.1",
5757
"nano-staged": "^0.8.0",
58-
"npm-run-all2": "^7.0.2",
58+
"npm-run-all2": "^8.0.4",
5959
"prettier": "^3.5.3",
6060
"react": "^19.1.0",
6161
"react-dom": "^19.1.0",
62-
"react-router-dom": "^7.5.0",
62+
"react-router-dom": "^7.6.1",
6363
"rehype-slug": "^6.0.0",
6464
"rimraf": "^6.0.1",
65-
"simple-git-hooks": "^2.12.1",
66-
"tsx": "^4.19.3",
65+
"simple-git-hooks": "^2.13.0",
66+
"tsx": "^4.19.4",
6767
"type-coverage": "^2.29.7",
6868
"typescript": "^5.8.3",
69-
"unplugin-auto-import": "^19.1.2",
70-
"vite": "^6.2.6",
69+
"unplugin-auto-import": "^19.3.0",
70+
"vite": "^6.3.5",
7171
"vite-tsconfig-paths": "^5.1.4",
72-
"vitest": "^3.1.1",
73-
"vue": "^3.5.13",
74-
"yarn-berry-deduplicate": "^6.1.1"
72+
"vitest": "^3.1.4",
73+
"vue": "^3.5.16",
74+
"yarn-berry-deduplicate": "^6.1.3"
7575
},
7676
"resolutions": {
7777
"prettier": "^3.5.3"

packages/browser/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ async function startBrowserProcess(
8282
'Chromium',
8383
]
8484

85-
const _dirname =
86-
typeof __dirname === 'undefined'
87-
? path.dirname(fileURLToPath(import.meta.url))
88-
: __dirname
85+
const importMetaUrl = import.meta.url
86+
87+
const _dirname = importMetaUrl
88+
? path.dirname(fileURLToPath(importMetaUrl))
89+
: __dirname
8990

9091
for (const chromiumBrowser of supportedChromiumBrowsers) {
9192
try {
@@ -123,7 +124,7 @@ async function startBrowserProcess(
123124
// Fallback to open
124125
// (It will always open new tab)
125126
try {
126-
// eslint-disable-next-line unicorn/no-await-expression-member
127+
// eslint-disable-next-line unicorn-x/no-await-expression-member
127128
const open = (await import('open')).default
128129
open(url, {
129130
app: browser ? { name: browser, arguments: args } : undefined,

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
],
3232
"dependencies": {
3333
"cross-spawn": "^7.0.6",
34-
"open": "^8.4.2 || ^9.1.0 || ^10.1.0",
34+
"open": "^8.4.2 || ^9.1.0 || ^10.1.2",
3535
"picocolors": "^1.1.1",
3636
"tslib": "^2.8.1"
3737
},

packages/core/src/constants.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ export interface CjsRequire extends NodeJS.Require {
88
<T>(id: string): T
99
}
1010

11-
export const cjsRequire: CjsRequire =
12-
typeof require === 'undefined' ? createRequire(import.meta.url) : require
11+
const importMetaUrl = import.meta.url
12+
13+
export const cjsRequire: CjsRequire = importMetaUrl
14+
? createRequire(importMetaUrl)
15+
: require
1316

1417
export const EVAL_FILENAMES = new Set(['[eval]', '[worker eval]'])
1518

packages/imagemin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"imagemin-svgo": "^11.0.1",
4242
"imagemin-upng": "^4.0.0",
4343
"imagemin-webp": "^8.0.0",
44-
"tinyglobby": "^0.2.12",
44+
"tinyglobby": "^0.2.14",
4545
"tslib": "^2.8.1"
4646
},
4747
"publishConfig": {

packages/rollup/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
"@rollup/plugin-json": "^6.1.0",
4040
"@rollup/plugin-node-resolve": "^16.0.1",
4141
"@rollup/plugin-url": "^8.0.2",
42-
"commander": "^13.1.0",
43-
"core-js": "^3.41.0",
44-
"debug": "^4.4.0",
45-
"esbuild": "^0.25.2",
42+
"commander": "^13.1.0 || ^14.0.0",
43+
"core-js": "^3.42.0",
44+
"debug": "^4.4.1",
45+
"esbuild": "^0.25.5",
4646
"jsox": "^1.2.123",
4747
"micromatch": "^4.0.8",
48-
"rollup": "^4.40.0",
48+
"rollup": "^4.41.1",
4949
"rollup-plugin-copy": "^3.5.0",
5050
"rollup-plugin-esbuild": "^6.2.1",
5151
"rollup-plugin-unassert": "^0.6.0",
52-
"tinyglobby": "^0.2.12",
52+
"tinyglobby": "^0.2.14",
5353
"tslib": "^2.8.1",
5454
"unassert": "^2.0.2"
5555
},

0 commit comments

Comments
 (0)