Skip to content

chore(deps): update all dependencies #1296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions e2e/shim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ declare global {

namespace Cypress {
interface Chainable {
paste(payload: Record<string, unknown>): Chainable<void>
isMarkdown(markdown: string): Chainable<void>
markdownFixture(path: string): Chainable<void>
paste: (payload: Record<string, unknown>) => Chainable<void>
isMarkdown: (markdown: string) => Chainable<void>
markdownFixture: (path: string) => Chainable<void>
}
}

Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.3.4",
"@antfu/eslint-config": "^2.12.2",
"@changesets/cli": "^2.22.0",
"@commitlint/cli": "^19.0.0",
"@commitlint/config-conventional": "^19.0.0",
"@nrwl/tao": "18.2.2",
"@nx/cypress": "18.2.2",
"@nx/storybook": "18.2.2",
"@nx/web": "18.2.2",
"@nx/workspace": "18.2.2",
"@nrwl/tao": "18.2.3",
"@nx/cypress": "18.2.3",
"@nx/storybook": "18.2.3",
"@nx/web": "18.2.3",
"@nx/workspace": "18.2.3",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-typescript": "^11.0.0",
"@storybook/addon-essentials": "8.0.5",
"@storybook/addon-essentials": "8.0.6",
"@storybook/addon-interactions": "^8.0.0",
"@storybook/builder-vite": "^8.0.0",
"@storybook/core-server": "8.0.5",
"@storybook/core-server": "8.0.6",
"@storybook/html": "^8.0.0",
"@storybook/html-vite": "^8.0.0",
"@storybook/test": "^8.0.0",
Expand All @@ -76,7 +76,7 @@
"husky": "^9.0.10",
"jsdom": "^24.0.0",
"lint-staged": "^15.0.0",
"nx": "18.2.2",
"nx": "18.2.3",
"pathe": "^1.0.0",
"postcss": "^8.4.31",
"rimraf": "^5.0.0",
Expand All @@ -85,10 +85,10 @@
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-dts": "^6.0.0",
"rollup-plugin-esbuild": "^6.0.0",
"storybook": "8.0.5",
"storybook": "8.0.6",
"tailwindcss": "^3.2.4",
"tslib": "^2.5.0",
"typescript": "^5.3.3",
"typescript": "^5.4.4",
"vite": "^5.0.12",
"vitest": "^1.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"@milkdown/transformer": "^7.2.0"
},
"dependencies": {
"@atomico/hooks": "^4.0.0",
"@atomico/hooks": "^4.1.2",
"@floating-ui/dom": "^1.5.1",
"@milkdown/exception": "workspace:*",
"@milkdown/utils": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions packages/exception/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ export function createNodeInParserFail(...args: unknown[]) {
if (Array.isArray(x))
return (x as unknown[]).map(y => serialize(y)).join(', ')

if ((x as { toJSON(): Record<string, unknown> }).toJSON)
return stringify((x as { toJSON(): Record<string, unknown> }).toJSON())
if ((x as { toJSON: () => Record<string, unknown> }).toJSON)
return stringify((x as { toJSON: () => Record<string, unknown> }).toJSON())

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

return (x as { toString(): string }).toString()
return (x as { toString: () => string }).toString()
}
return `${msg}, ${serialize(arg)}`
}, 'Create prosemirror node from remark failed in parser') as string
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-emoji/src/__internal__/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface TwemojiOptions {
* @param variant variant the optional \uFE0F ("as image") variant, in case this info is anyhow meaningful. By default this is ignored.
*
*/
attributes?(icon: string, variant: string): object
attributes?: (icon: string, variant: string) => object
}

export function parse(emoji: string, twemojiOptions?: TwemojiOptions): string {
Expand Down
4 changes: 2 additions & 2 deletions packages/prose/src/toolkit/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const ie_version = ie_upto10
? +ie_edge[1]!
: 0
export const gecko = !ie && /gecko\/(\d+)/i.test(agent)
export const gecko_version = gecko && +(/Firefox\/(\d+)/.exec(agent) || [0, 0])![1]!
export const gecko_version = gecko && +(/Firefox\/(\d+)/.exec(agent) || [0, 0])[1]

const _chrome = !ie && /Chrome\/(\d+)/.exec(agent)
export const chrome = !!_chrome
Expand All @@ -33,4 +33,4 @@ export const ios = safari && (/Mobile\/\w+/.test(agent) || (!!nav && nav.maxTouc
export const mac = ios || (nav ? /Mac/.test(nav.platform) : false)
export const android = /Android \d/.test(agent)
export const webkit = !!doc && 'webkitFontSmoothing' in doc.documentElement.style
export const webkit_version = webkit ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])![1]! : 0
export const webkit_version = webkit ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0
19 changes: 6 additions & 13 deletions packages/utils/src/pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
export type Many<T> = T | ReadonlyArray<T>

interface Pipe {
pipe<A extends any[], R1, R2, R3, R4, R5, R6, R7>(
pipe: (<A extends any[], R1, R2, R3, R4, R5, R6, R7>(
f1: (...args: A) => R1,
f2: (a: R1) => R2,
f3: (a: R2) => R3,
f4: (a: R3) => R4,
f5: (a: R4) => R5,
f6: (a: R5) => R6,
f7: (a: R6) => R7,
): (...args: A) => R7
pipe<A extends any[], R1, R2, R3, R4, R5, R6, R7>(
) => (...args: A) => R7) & (<A extends any[], R1, R2, R3, R4, R5, R6, R7>(
f1: (...args: A) => R1,
f2: (a: R1) => R2,
f3: (a: R2) => R3,
Expand All @@ -22,31 +21,25 @@ interface Pipe {
f6: (a: R5) => R6,
f7: (a: R6) => R7,
...func: Array<Many<(a: any) => any>>
): (...args: A) => any
pipe<A extends any[], R1, R2, R3, R4, R5, R6>(
) => (...args: A) => any) & (<A extends any[], R1, R2, R3, R4, R5, R6>(
f1: (...args: A) => R1,
f2: (a: R1) => R2,
f3: (a: R2) => R3,
f4: (a: R3) => R4,
f5: (a: R4) => R5,
f6: (a: R5) => R6,
): (...args: A) => R6
pipe<A extends any[], R1, R2, R3, R4, R5>(
) => (...args: A) => R6) & (<A extends any[], R1, R2, R3, R4, R5>(
f1: (...args: A) => R1,
f2: (a: R1) => R2,
f3: (a: R2) => R3,
f4: (a: R3) => R4,
f5: (a: R4) => R5,
): (...args: A) => R5
pipe<A extends any[], R1, R2, R3, R4>(
) => (...args: A) => R5) & (<A extends any[], R1, R2, R3, R4>(
f1: (...args: A) => R1,
f2: (a: R1) => R2,
f3: (a: R2) => R3,
f4: (a: R3) => R4,
): (...args: A) => R4
pipe<A extends any[], R1, R2, R3>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3): (...args: A) => R3
pipe<A extends any[], R1, R2>(f1: (...args: A) => R1, f2: (a: R1) => R2): (...args: A) => R2
pipe(...func: Array<Many<(...args: any[]) => any>>): (...args: any[]) => any
) => (...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)
}

/// @internal
Expand Down
Loading