Skip to content

Commit 1de6fee

Browse files
committed
Upgrade dependent packages to the latest version
1 parent d3ec975 commit 1de6fee

File tree

9 files changed

+3012
-2469
lines changed

9 files changed

+3012
-2469
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { createJsWithBabelPreset } = require('ts-jest')
33
const jsWithBabel = createJsWithBabelPreset()
44

55
const esModules = [
6+
'@formatjs/intl-segmenter',
67
'@sindresorhus/merge-streams',
78
'ansi-regex',
89
'array-union',

package-lock.json

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

package.json

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -68,104 +68,107 @@
6868
"watch": "rollup -w -c"
6969
},
7070
"devDependencies": {
71-
"@babel/preset-env": "^7.28.0",
72-
"@formatjs/intl-segmenter": "^11.7.10",
71+
"@babel/preset-env": "^7.29.0",
72+
"@formatjs/intl-segmenter": "^12.1.1",
7373
"@rollup/plugin-alias": "^5.1.1",
74-
"@rollup/plugin-commonjs": "^28.0.6",
74+
"@rollup/plugin-commonjs": "^29.0.0",
7575
"@rollup/plugin-json": "^6.1.0",
76-
"@rollup/plugin-node-resolve": "^16.0.1",
77-
"@rollup/plugin-replace": "^6.0.2",
76+
"@rollup/plugin-node-resolve": "^16.0.3",
77+
"@rollup/plugin-replace": "^6.0.3",
7878
"@rollup/plugin-terser": "^0.4.4",
79-
"@rollup/plugin-typescript": "^12.1.4",
79+
"@rollup/plugin-typescript": "^12.3.0",
8080
"@rollup/plugin-url": "^8.0.2",
81-
"@tsconfig/node22": "^22.0.2",
82-
"@tsconfig/recommended": "^1.0.10",
81+
"@tsconfig/node22": "^22.0.5",
82+
"@tsconfig/recommended": "^1.0.13",
8383
"@types/debug": "^4.1.12",
8484
"@types/dom-view-transitions": "^1.0.6",
85-
"@types/express": "^5.0.3",
85+
"@types/express": "^5.0.6",
8686
"@types/jest": "^30.0.0",
8787
"@types/markdown-it": "^14.1.2",
8888
"@types/node": "~18.19.111",
8989
"@types/pug": "^2.0.10",
9090
"@types/supertest": "^6.0.3",
9191
"@types/which": "^3.0.4",
9292
"@types/ws": "^8.18.1",
93-
"@types/yargs": "^17.0.33",
94-
"@yao-pkg/pkg": "^6.6.0",
95-
"autoprefixer": "^10.4.21",
93+
"@types/yargs": "^17.0.35",
94+
"@yao-pkg/pkg": "^6.14.1",
95+
"autoprefixer": "^10.4.24",
9696
"bespoke": "bespokejs/bespoke",
97-
"chalk": "^5.4.1",
98-
"cheerio": "^1.1.0",
99-
"chrome-launcher": "^1.2.0",
97+
"chalk": "^5.6.2",
98+
"cheerio": "^1.2.0",
99+
"chrome-launcher": "^1.2.1",
100100
"css.escape": "^1.5.1",
101-
"cssnano": "^7.1.0",
102-
"debug": "^4.4.1",
103-
"eslint": "^9.31.0",
101+
"cssnano": "^7.1.2",
102+
"debug": "^4.4.3",
103+
"eslint": "^9.39.3",
104104
"eslint-config-prettier": "^10.1.8",
105105
"eslint-import-resolver-typescript": "^4.4.4",
106106
"eslint-plugin-import-x": "^4.16.1",
107-
"eslint-plugin-jest": "^29.0.1",
108-
"eslint-plugin-n": "^17.21.0",
109-
"express": "^5.1.0",
107+
"eslint-plugin-jest": "^29.15.0",
108+
"eslint-plugin-n": "^17.24.0",
109+
"express": "^5.2.1",
110110
"fast-plist": "^0.1.3",
111-
"globals": "^16.3.0",
111+
"globals": "^17.3.0",
112112
"globby": "~14.0.2",
113113
"image-size": "^2.0.2",
114114
"import-from": "^4.0.0",
115-
"import-meta-resolve": "^4.1.0",
115+
"import-meta-resolve": "^4.2.0",
116116
"is-inside-container": "^1.0.0",
117-
"is-wsl": "^3.1.0",
118-
"jest": "^30.0.4",
119-
"jest-environment-jsdom": "^30.0.4",
117+
"is-wsl": "^3.1.1",
118+
"jest": "^30.2.0",
119+
"jest-environment-jsdom": "^30.2.0",
120120
"jest-junit": "^16.0.0",
121-
"nanoid": "^5.1.5",
122-
"npm-check-updates": "^18.0.1",
121+
"nanoid": "^5.1.6",
122+
"npm-check-updates": "^18.3.1",
123123
"npm-run-all2": "^8.0.4",
124124
"os-locale": "^6.0.2",
125125
"package-up": "^5.0.0",
126-
"patch-package": "^8.0.0",
126+
"patch-package": "^8.0.1",
127127
"pdf-lib": "^1.17.1",
128-
"portfinder": "^1.0.37",
128+
"portfinder": "^1.0.38",
129129
"postcss": "^8.5.6",
130130
"postcss-url": "^10.1.3",
131131
"pptxgenjs": "^4.0.1",
132-
"prettier": "^3.6.2",
132+
"prettier": "^3.8.1",
133133
"pug": "^3.0.3",
134-
"rollup": "^4.45.1",
135-
"rollup-plugin-license": "^3.6.0",
134+
"rollup": "^4.58.0",
135+
"rollup-plugin-license": "^3.7.0",
136136
"rollup-plugin-postcss": "^4.0.2",
137-
"sass": "^1.89.2",
138-
"strip-ansi": "^7.1.0",
139-
"stylelint": "^16.22.0",
137+
"sass": "^1.97.3",
138+
"strip-ansi": "^7.1.2",
139+
"stylelint": "^16.26.1",
140140
"stylelint-config-standard-scss": "^15.0.1",
141-
"supertest": "^7.1.3",
141+
"supertest": "^7.2.2",
142142
"tar-stream": "^3.1.7",
143-
"ts-jest": "^29.4.0",
143+
"ts-jest": "^29.4.6",
144144
"ts-key-enum": "^3.0.13",
145145
"tslib": "^2.8.1",
146146
"typed-emitter": "^2.1.0",
147-
"typescript": "^5.8.3",
148-
"typescript-eslint": "^8.37.0",
147+
"typescript": "^5.9.3",
148+
"typescript-eslint": "^8.56.0",
149149
"vhtml": "^2.2.0",
150150
"which": "^4.0.0",
151-
"wrap-ansi": "^9.0.0",
151+
"wrap-ansi": "^9.0.2",
152152
"yauzl": "^3.2.0",
153153
"zip-stream": "^7.0.2"
154154
},
155155
"dependencies": {
156-
"@marp-team/marp-core": "^4.1.0",
157-
"@marp-team/marpit": "^3.1.3",
156+
"@marp-team/marp-core": "^4.2.0",
157+
"@marp-team/marpit": "^3.2.0",
158158
"chokidar": "^4.0.3",
159159
"cosmiconfig": "^9.0.0",
160-
"puppeteer-core": "^24.16.0",
161-
"serve-index": "^1.9.1",
160+
"puppeteer-core": "^24.37.5",
161+
"serve-index": "^1.9.2",
162162
"tmp": "^0.2.5",
163-
"ws": "^8.18.3",
163+
"ws": "^8.19.0",
164164
"yargs": "^17.7.2"
165165
},
166166
"overrides": {
167-
"patch-package": {
168-
"tmp": "^0.2.5"
167+
"@rollup/plugin-terser": {
168+
"serialize-javascript": "^7.0.3"
169+
},
170+
"postcss-url": {
171+
"minimatch": "^3.1.5"
169172
}
170173
},
171174
"publishConfig": {

patches/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ Patches in this directory will be applied when `npm install` run, through `prepa
1010
1111
## Reasons for patches
1212

13-
### [collect-v8-coverage](https://github.com/SimenB/collect-v8-coverage)
14-
15-
This patch is required to fix reporting flaky coverage when running Jest (`npm run test:coverage`).
16-
17-
- https://github.com/jestjs/jest/issues/14766#issuecomment-1908191939
18-
- https://github.com/SimenB/collect-v8-coverage/pull/235
19-
2013
### [jsdom](https://github.com/jsdom/jsdom)
2114

2215
This patch makes the latest JSDOM allow to mock `window.location` in tests.

patches/collect-v8-coverage+1.0.2.dev.patch

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

src/index.ts

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,24 @@ export default apiInterface
1616
// ---
1717

1818
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
19-
export interface Config<Engine extends typeof Marpit = typeof Marp>
20-
extends Overwrite<
21-
Omit<
22-
IMarpCLIConfig,
23-
/**
24-
* This option is internal setting for collaboration with Marp team tools such as Marp for VS Code.
25-
* It is not designed for users because the result of conversion may break if set wrong base URL.
26-
*/
27-
'baseUrl'
28-
>,
29-
{
30-
engine?: ResolvableEngine<Engine>
31-
image?: 'png' | 'jpeg'
32-
images?: 'png' | 'jpeg'
33-
options?: ConstructorParameters<Engine>[0]
34-
}
35-
> {}
19+
export interface Config<
20+
Engine extends typeof Marpit = typeof Marp,
21+
> extends Overwrite<
22+
Omit<
23+
IMarpCLIConfig,
24+
/**
25+
* This option is internal setting for collaboration with Marp team tools such as Marp for VS Code.
26+
* It is not designed for users because the result of conversion may break if set wrong base URL.
27+
*/
28+
'baseUrl'
29+
>,
30+
{
31+
engine?: ResolvableEngine<Engine>
32+
image?: 'png' | 'jpeg'
33+
images?: 'png' | 'jpeg'
34+
options?: ConstructorParameters<Engine>[0]
35+
}
36+
> {}
3637

3738
export const defineConfig = <Engine extends typeof Marpit = typeof Marp>(
3839
config: Config<Engine>

src/patch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export const patchSegmenter = () => {
2121
// https://github.com/nodejs/node/issues/51752
2222
if (isStandaloneBinary() && process.config.variables['icu_small']) {
2323
debug('Using a polyfilled implementation for Intl.Segmenter.')
24-
require('@formatjs/intl-segmenter/polyfill-force') // eslint-disable-line @typescript-eslint/no-require-imports
24+
require('@formatjs/intl-segmenter/polyfill-force.js') // eslint-disable-line @typescript-eslint/no-require-imports
2525
}
2626
}

test/browser/finder.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ describe('Browser finder', () => {
9393
(m) => m.ChromeBrowser
9494
)
9595

96-
$ChromeCdpBrowser = await import(
97-
'../../src/browser/browsers/chrome-cdp'
98-
).then((m) => m.ChromeCdpBrowser)
96+
$ChromeCdpBrowser =
97+
await import('../../src/browser/browsers/chrome-cdp').then(
98+
(m) => m.ChromeCdpBrowser
99+
)
99100
})
100101

101102
const browser = await $findBrowser(['firefox', 'chrome'], {

test/patch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as binary from '../src/utils/binary'
33

44
const intlSegmenterPolyfilled = jest.fn()
55

6-
jest.mock('@formatjs/intl-segmenter/polyfill-force', () =>
6+
jest.mock('@formatjs/intl-segmenter/polyfill-force.js', () =>
77
intlSegmenterPolyfilled()
88
)
99

0 commit comments

Comments
 (0)