Skip to content
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

Upgrade dependent packages to the latest version #245

Merged
merged 4 commits into from
Jun 7, 2021
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Changed

- Upgrade dependent packages to the latest version ([#245](https://github.com/marp-team/marp-vscode/pull/245))

## v1.0.1 - 2021-05-18

### Fixed
Expand Down
21,549 changes: 10,620 additions & 10,929 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,52 +227,52 @@
"watch": "rollup -w -c ./rollup.config.js"
},
"devDependencies": {
"@babel/preset-env": "^7.14.2",
"@babel/preset-env": "^7.14.4",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-typescript": "^8.2.1",
"@types/express": "^4.17.11",
"@types/express": "^4.17.12",
"@types/jest": "^26.0.23",
"@types/lodash.debounce": "^4.0.6",
"@types/markdown-it": "^12.0.1",
"@types/vscode": "~1.56.0",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"bufferutil": "^4.0.3",
"builtin-modules": "^3.2.0",
"codecov": "^3.8.2",
"dedent": "^0.7.0",
"eslint": "^7.26.0",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.23.2",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.3.6",
"express": "^4.17.1",
"jest": "^26.6.3",
"jest-junit": "^12.0.0",
"jest": "^27.0.4",
"jest-junit": "^12.1.0",
"lodash.debounce": "^4.0.8",
"markdown-it": "^12.0.6",
"nanoid": "^3.1.23",
"npm-run-all": "^4.1.5",
"portfinder": "^1.0.28",
"prettier": "^2.3.0",
"prettier": "^2.3.1",
"rehype-parse": "^7.0.1",
"remark-parse": "^9.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.48.0",
"rollup": "^2.51.0",
"rollup-plugin-terser": "^7.0.2",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^22.0.0",
"ts-jest": "^26.5.6",
"ts-jest": "^27.0.3",
"tslib": "^2.2.0",
"typed-emitter": "^1.3.1",
"typescript": "^4.2.4",
"typescript": "^4.3.2",
"unified": "^9.2.1",
"unist-util-visit": "^3.1.0",
"utf-8-validate": "^5.0.5",
"vsce": "^1.88.0",
"vsce": "^1.92.0",
"yaml": "^2.0.0-5"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/diagnostics/overloading-global-directive.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Diagnostic, DiagnosticSeverity, Range, TextDocument } from 'vscode'
import { DirectiveParser, DirectiveType } from '../directives/parser'
import type { Pair } from 'yaml'
import { DirectiveParser, DirectiveType } from '../directives/parser'

interface ParsedGlobalDirective {
item: Pair
Expand Down
10 changes: 9 additions & 1 deletion src/language/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,15 @@ describe('Language parser', () => {
beforeEach(() => jest.useFakeTimers())
afterEach(() => jest.useRealTimers())

const wait = () => new Promise<void>((res) => nextTick(res))
const wait = () =>
new Promise<void>((res) => {
// Modern fake timers will mock nextTick function. We have to use
// original function through _nextTick in Clock instance.
//
// https://github.com/facebook/jest/issues/10221
// https://github.com/sinonjs/fake-timers/blob/master/src/fake-timers-src.js
;(nextTick as any).clock._nextTick(res)
})

it('tries to wait for a time to call debounce function if the data ws not yet ready', async () => {
expect.assertions(3)
Expand Down
2 changes: 1 addition & 1 deletion src/language/parser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { EventEmitter } from 'events'
import lodashDebounce from 'lodash.debounce'
import type TypedEmitter from 'typed-emitter'
import {
Disposable,
TextDocument,
Expand All @@ -10,7 +11,6 @@ import {
} from 'vscode'
import { DirectiveInfo, DirectiveParser } from '../directives/parser'
import { detectMarpDocument } from '../utils'
import type TypedEmitter from 'typed-emitter'

export interface LanguageParsedDirective {
info: DirectiveInfo
Expand Down
2 changes: 1 addition & 1 deletion src/marp-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { unlink, writeFile } from 'fs'
import { tmpdir } from 'os'
import path from 'path'
import { promisify } from 'util'
import type { marpCli } from '@marp-team/marp-cli'
import { nanoid } from 'nanoid'
import { TextDocument, workspace } from 'vscode'
import { WorkFile, marpCoreOptionForCLI } from './option'
import { marpConfiguration } from './utils'
import type { marpCli } from '@marp-team/marp-cli'

const promiseWriteFile = promisify(writeFile)
const promiseUnlink = promisify(unlink)
Expand Down
2 changes: 1 addition & 1 deletion src/workspace-proxy-server.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Server } from 'http'
import path from 'path'
import { URL } from 'url'
import express from 'express'
import { getPortPromise } from 'portfinder'
import { FileType, workspace, WorkspaceFolder } from 'vscode'
import type { Server } from 'http'

export interface WorkspaceProxyServer {
dispose: () => void
Expand Down