Skip to content

Commit d408214

Browse files
chore(deps): update all dependencies (#1296)
* chore(deps): update all dependencies * chore: downgrade eslint since plugins cannot support it * chore: bump typescript * chore: bump atomico --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mirone <[email protected]>
1 parent 8f96014 commit d408214

File tree

8 files changed

+806
-929
lines changed

8 files changed

+806
-929
lines changed

Diff for: e2e/shim.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ declare global {
2121

2222
namespace Cypress {
2323
interface Chainable {
24-
paste(payload: Record<string, unknown>): Chainable<void>
25-
isMarkdown(markdown: string): Chainable<void>
26-
markdownFixture(path: string): Chainable<void>
24+
paste: (payload: Record<string, unknown>) => Chainable<void>
25+
isMarkdown: (markdown: string) => Chainable<void>
26+
markdownFixture: (path: string) => Chainable<void>
2727
}
2828
}
2929

Diff for: package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@
3535
"react-dom": "^18.2.0"
3636
},
3737
"devDependencies": {
38-
"@antfu/eslint-config": "^2.3.4",
38+
"@antfu/eslint-config": "^2.12.2",
3939
"@changesets/cli": "^2.22.0",
4040
"@commitlint/cli": "^19.0.0",
4141
"@commitlint/config-conventional": "^19.0.0",
42-
"@nrwl/tao": "18.2.2",
43-
"@nx/cypress": "18.2.2",
44-
"@nx/storybook": "18.2.2",
45-
"@nx/web": "18.2.2",
46-
"@nx/workspace": "18.2.2",
42+
"@nrwl/tao": "18.2.3",
43+
"@nx/cypress": "18.2.3",
44+
"@nx/storybook": "18.2.3",
45+
"@nx/web": "18.2.3",
46+
"@nx/workspace": "18.2.3",
4747
"@rollup/plugin-commonjs": "^25.0.0",
4848
"@rollup/plugin-json": "^6.0.0",
4949
"@rollup/plugin-node-resolve": "^15.0.0",
5050
"@rollup/plugin-typescript": "^11.0.0",
51-
"@storybook/addon-essentials": "8.0.5",
51+
"@storybook/addon-essentials": "8.0.6",
5252
"@storybook/addon-interactions": "^8.0.0",
5353
"@storybook/builder-vite": "^8.0.0",
54-
"@storybook/core-server": "8.0.5",
54+
"@storybook/core-server": "8.0.6",
5555
"@storybook/html": "^8.0.0",
5656
"@storybook/html-vite": "^8.0.0",
5757
"@storybook/test": "^8.0.0",
@@ -76,7 +76,7 @@
7676
"husky": "^9.0.10",
7777
"jsdom": "^24.0.0",
7878
"lint-staged": "^15.0.0",
79-
"nx": "18.2.2",
79+
"nx": "18.2.3",
8080
"pathe": "^1.0.0",
8181
"postcss": "^8.4.31",
8282
"rimraf": "^5.0.0",
@@ -85,10 +85,10 @@
8585
"rollup-plugin-copy": "^3.4.0",
8686
"rollup-plugin-dts": "^6.0.0",
8787
"rollup-plugin-esbuild": "^6.0.0",
88-
"storybook": "8.0.5",
88+
"storybook": "8.0.6",
8989
"tailwindcss": "^3.2.4",
9090
"tslib": "^2.5.0",
91-
"typescript": "^5.3.3",
91+
"typescript": "^5.4.4",
9292
"vite": "^5.0.12",
9393
"vitest": "^1.0.0"
9494
},

Diff for: packages/components/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"@milkdown/transformer": "^7.2.0"
106106
},
107107
"dependencies": {
108-
"@atomico/hooks": "^4.0.0",
108+
"@atomico/hooks": "^4.1.2",
109109
"@floating-ui/dom": "^1.5.1",
110110
"@milkdown/exception": "workspace:*",
111111
"@milkdown/utils": "workspace:*",

Diff for: packages/exception/src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ export function createNodeInParserFail(...args: unknown[]) {
3131
if (Array.isArray(x))
3232
return (x as unknown[]).map(y => serialize(y)).join(', ')
3333

34-
if ((x as { toJSON(): Record<string, unknown> }).toJSON)
35-
return stringify((x as { toJSON(): Record<string, unknown> }).toJSON())
34+
if ((x as { toJSON: () => Record<string, unknown> }).toJSON)
35+
return stringify((x as { toJSON: () => Record<string, unknown> }).toJSON())
3636

3737
if ((x as { spec: string }).spec)
3838
return stringify((x as { spec: string }).spec)
3939

40-
return (x as { toString(): string }).toString()
40+
return (x as { toString: () => string }).toString()
4141
}
4242
return `${msg}, ${serialize(arg)}`
4343
}, 'Create prosemirror node from remark failed in parser') as string

Diff for: packages/plugin-emoji/src/__internal__/parse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface TwemojiOptions {
3838
* @param variant variant the optional \uFE0F ("as image") variant, in case this info is anyhow meaningful. By default this is ignored.
3939
*
4040
*/
41-
attributes?(icon: string, variant: string): object
41+
attributes?: (icon: string, variant: string) => object
4242
}
4343

4444
export function parse(emoji: string, twemojiOptions?: TwemojiOptions): string {

Diff for: packages/prose/src/toolkit/browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const ie_version = ie_upto10
2222
? +ie_edge[1]!
2323
: 0
2424
export const gecko = !ie && /gecko\/(\d+)/i.test(agent)
25-
export const gecko_version = gecko && +(/Firefox\/(\d+)/.exec(agent) || [0, 0])![1]!
25+
export const gecko_version = gecko && +(/Firefox\/(\d+)/.exec(agent) || [0, 0])[1]
2626

2727
const _chrome = !ie && /Chrome\/(\d+)/.exec(agent)
2828
export const chrome = !!_chrome
@@ -33,4 +33,4 @@ export const ios = safari && (/Mobile\/\w+/.test(agent) || (!!nav && nav.maxTouc
3333
export const mac = ios || (nav ? /Mac/.test(nav.platform) : false)
3434
export const android = /Android \d/.test(agent)
3535
export const webkit = !!doc && 'webkitFontSmoothing' in doc.documentElement.style
36-
export const webkit_version = webkit ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])![1]! : 0
36+
export const webkit_version = webkit ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0

Diff for: packages/utils/src/pipe.ts

+6-13
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
export type Many<T> = T | ReadonlyArray<T>
55

66
interface Pipe {
7-
pipe<A extends any[], R1, R2, R3, R4, R5, R6, R7>(
7+
pipe: (<A extends any[], R1, R2, R3, R4, R5, R6, R7>(
88
f1: (...args: A) => R1,
99
f2: (a: R1) => R2,
1010
f3: (a: R2) => R3,
1111
f4: (a: R3) => R4,
1212
f5: (a: R4) => R5,
1313
f6: (a: R5) => R6,
1414
f7: (a: R6) => R7,
15-
): (...args: A) => R7
16-
pipe<A extends any[], R1, R2, R3, R4, R5, R6, R7>(
15+
) => (...args: A) => R7) & (<A extends any[], R1, R2, R3, R4, R5, R6, R7>(
1716
f1: (...args: A) => R1,
1817
f2: (a: R1) => R2,
1918
f3: (a: R2) => R3,
@@ -22,31 +21,25 @@ interface Pipe {
2221
f6: (a: R5) => R6,
2322
f7: (a: R6) => R7,
2423
...func: Array<Many<(a: any) => any>>
25-
): (...args: A) => any
26-
pipe<A extends any[], R1, R2, R3, R4, R5, R6>(
24+
) => (...args: A) => any) & (<A extends any[], R1, R2, R3, R4, R5, R6>(
2725
f1: (...args: A) => R1,
2826
f2: (a: R1) => R2,
2927
f3: (a: R2) => R3,
3028
f4: (a: R3) => R4,
3129
f5: (a: R4) => R5,
3230
f6: (a: R5) => R6,
33-
): (...args: A) => R6
34-
pipe<A extends any[], R1, R2, R3, R4, R5>(
31+
) => (...args: A) => R6) & (<A extends any[], R1, R2, R3, R4, R5>(
3532
f1: (...args: A) => R1,
3633
f2: (a: R1) => R2,
3734
f3: (a: R2) => R3,
3835
f4: (a: R3) => R4,
3936
f5: (a: R4) => R5,
40-
): (...args: A) => R5
41-
pipe<A extends any[], R1, R2, R3, R4>(
37+
) => (...args: A) => R5) & (<A extends any[], R1, R2, R3, R4>(
4238
f1: (...args: A) => R1,
4339
f2: (a: R1) => R2,
4440
f3: (a: R2) => R3,
4541
f4: (a: R3) => R4,
46-
): (...args: A) => R4
47-
pipe<A extends any[], R1, R2, R3>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (...args: A) => R3
48-
pipe<A extends any[], R1, R2>(f1: (...args: A) => R1, f2: (a: R1) => R2): (...args: A) => R2
49-
pipe(...func: Array<Many<(...args: any[]) => any>>): (...args: any[]) => any
42+
) => (...args: A) => R4) & (<A extends any[], R1, R2, R3>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3) => (...args: A) => R3) & (<A extends any[], R1, R2>(f1: (...args: A) => R1, f2: (a: R1) => R2) => (...args: A) => R2) & ((...func: Array<Many<(...args: any[]) => any>>) => (...args: any[]) => any)
5043
}
5144

5245
/// @internal

0 commit comments

Comments
 (0)