Skip to content

Commit

Permalink
chore(deps): update all dependencies (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Sep 23, 2023
1 parent b78bc38 commit cc01c0b
Show file tree
Hide file tree
Showing 18 changed files with 1,099 additions and 878 deletions.
3 changes: 1 addition & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": ["config:base", ":preserveSemverRanges", "group:all"],
"ignoreDeps": ["unified", "remark", "remark-parse", "remark-stringify"]
"extends": ["config:base", ":preserveSemverRanges", "group:all"]
}
4 changes: 2 additions & 2 deletions e2e/cypress/e2e/preset-commonmark/input.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('input:', () => {
cy.get('.editor ul:first-child>li:last-child').should('have.text', 'list item 3')
cy.window().then((win) => {
cy.wrap(win.__getMarkdown__())
.should('equal', '* list item 1\n* list item 2\n\n * sub list item 1\n * sub list item 2\n* list item 3\n')
.should('equal', '* list item 1\n* list item 2\n\n * sub list item 1\n * sub list item 2\n* list item 3\n')
})
})

Expand All @@ -98,7 +98,7 @@ describe('input:', () => {
)
cy.window().then((win) => {
cy.wrap(win.__getMarkdown__())
.should('equal', '1. list item 1\n2. list item 2\n\n 1. sub list item 1\n 2. sub list item 2\n3. list item 3\n')
.should('equal', '1. list item 1\n2. list item 2\n\n 1. sub list item 1\n 2. sub list item 2\n3. list item 3\n')
})
})

Expand Down
2 changes: 1 addition & 1 deletion e2e/cypress/e2e/preset-commonmark/shortcut.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('input:', () => {
cy.get('.editor ul').should('have.length', 1)
cy.window().then((win) => {
cy.wrap(win.__getMarkdown__())
.should('equal', '1. The lunatic is on the grass\n2. The lunatic is in the hell\n\n * The lunatic is on the grass\n * The lunatic is in the hell\n')
.should('equal', '1. The lunatic is on the grass\n2. The lunatic is in the hell\n\n * The lunatic is on the grass\n * The lunatic is in the hell\n')
})
})

Expand Down
37 changes: 19 additions & 18 deletions e2e/shim.d.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
/* Copyright 2021, Milkdown by Mirone. */

/* eslint-disable vars-on-top */
/* eslint-disable no-var */

/// <reference types="cypress" />
/// <reference types="vite/client" />

import { Editor } from '@milkdown/core';
import type { Editor } from '@milkdown/core'
import type { EditorView } from '@milkdown/prose/view'
import type { Telemetry } from "@milkdown/ctx";
import type { Telemetry } from '@milkdown/ctx'

declare global {
var __milkdown__: Editor;
var __milkdown__: Editor

var __view__: EditorView;
var __setMarkdown__: (markdown: string) => void;
var __getMarkdown__: () => string;
var __view__: EditorView
var __setMarkdown__: (markdown: string) => void
var __getMarkdown__: () => string

var __inspect__: () => Telemetry[]
var __inspect__: () => Telemetry[]

namespace Cypress {
interface Chainable {
paste(payload: Record<string, unknown>): Chainable<void>
}
}

var commands: {
toggleStrong?: () => void;
toggleEmphasis?: () => void;
addTable?: (x?: number, y?: number) => void;
addTable2?: (x?: number, y?: number) => void;
namespace Cypress {
interface Chainable {
paste(payload: Record<string, unknown>): Chainable<void>
}
}

var commands: {
toggleStrong?: () => void
toggleEmphasis?: () => void
addTable?: (x?: number, y?: number) => void
addTable2?: (x?: number, y?: number) => void
}
}
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"commit": "git-cz"
},
"devDependencies": {
"@antfu/eslint-config": "^0.42.0",
"@antfu/eslint-config": "^0.43.0",
"@changesets/cli": "^2.22.0",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@nrwl/tao": "16.8.1",
"@nx/cypress": "16.8.1",
"@nx/workspace": "16.8.1",
"@nrwl/tao": "16.9.0",
"@nx/cypress": "16.9.0",
"@nx/workspace": "16.9.0",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
Expand All @@ -60,7 +60,7 @@
"husky": "^8.0.0",
"jsdom": "^22.0.0",
"lint-staged": "^14.0.0",
"nx": "16.8.1",
"nx": "16.9.0",
"nx-cloud": "16.4.0",
"pathe": "^1.0.0",
"postcss": "^8.2.12",
Expand All @@ -69,7 +69,7 @@
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-dts": "^6.0.0",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-esbuild": "^6.0.0",
"tailwindcss": "^3.2.4",
"tslib": "^2.5.0",
"typescript": "^5.1.3",
Expand All @@ -96,7 +96,6 @@
}
},
"overrides": {
"@types/unist": "2",
"array-includes": "npm:@nolyfill/array-includes@latest",
"array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest",
"array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
},
"dependencies": {
"@milkdown/exception": "workspace:*",
"remark-parse": "^10.0.1",
"remark-stringify": "^10.0.2",
"remark-parse": "^11.0.0",
"remark-stringify": "^11.0.0",
"tslib": "^2.5.0",
"unified": "^10.1.0"
"unified": "^11.0.3"
},
"devDependencies": {
"@milkdown/ctx": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/internal-plugin/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const schema: MilkdownPlugin = (ctx) => {
const remark = ctx.get(remarkCtx)
const remarkPlugins = ctx.get(remarkPluginsCtx)

const processor = remarkPlugins.reduce((acc: RemarkParser, plug) => acc.use(plug.plugin, plug.options), remark)
const processor = remarkPlugins.reduce((acc: RemarkParser, plug) => acc.use(plug.plugin, plug.options) as unknown as RemarkParser, remark)
ctx.set(remarkCtx, processor)

const nodes = Object.fromEntries(ctx.get(nodesCtx).map(([key, x]) => [key, extendPriority(x)]))
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-cursor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ const withMeta = <T extends MilkdownPlugin>(
export type DropCursorOptions = {
/**
The color of the cursor. Defaults to `black`.
*/
*/
color?: string
/**
The precise width of the cursor in pixels. Defaults to 1.
*/
*/
width?: number
/**
A CSS class name to add to the cursor element.
*/
*/
class?: string
}

Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-diagram/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"baseUrl": "."
"baseUrl": ".",
"outDir": "lib"
},
"include": ["src"]
}
2 changes: 1 addition & 1 deletion packages/plugin-math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@milkdown/utils": "workspace:*",
"@types/katex": "^0.16.0",
"katex": "^0.16.0",
"remark-math": "^5.1.0",
"remark-math": "^6.0.0",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-commonmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@milkdown/exception": "workspace:*",
"@milkdown/utils": "workspace:*",
"@sindresorhus/slugify": "^2.2.0",
"remark-inline-links": "^6.0.0",
"remark-inline-links": "^7.0.0",
"tslib": "^2.5.0",
"unist-util-visit": "^5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-commonmark/src/node/hardbreak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const hardbreakSchema = $nodeSchema('hardbreak', ctx => ({
parseMarkdown: {
match: ({ type }) => type === 'break',
runner: (state, node, type) => {
state.addNode(type, { isInline: Boolean(node.data?.isInline) })
state.addNode(type, { isInline: Boolean((node.data as (undefined | { isInline: boolean }))?.isInline) })
},
},
leafText: () => '\n',
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-gfm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dependencies": {
"@milkdown/exception": "workspace:*",
"@milkdown/utils": "workspace:*",
"remark-gfm": "^3.0.0",
"remark-gfm": "^4.0.0",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "react",
"rootDir": "src",
"outDir": "lib",
"jsx": "react"
"outDir": "lib"
},
"include": ["src"]
}
8 changes: 4 additions & 4 deletions packages/transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
},
"dependencies": {
"@milkdown/exception": "workspace:*",
"remark": "^14.0.1",
"remark-parse": "^10.0.2",
"remark-stringify": "^10.0.3",
"remark": "^15.0.1",
"remark-parse": "^11.0.0",
"remark-stringify": "^11.0.0",
"tslib": "^2.5.0",
"unified": "^10.1.0"
"unified": "^11.0.3"
},
"devDependencies": {
"@milkdown/prose": "workspace:*"
Expand Down
6 changes: 3 additions & 3 deletions packages/vue/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"lib": ["dom", "es2020"],
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"rootDir": "src",
"types": ["vue"],
"lib": ["dom", "es2020"]
"outDir": "lib"
},
"include": ["src"]
}
Loading

0 comments on commit cc01c0b

Please sign in to comment.