-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from vim-denops/update
Update dependencies
- Loading branch information
Showing
9 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { parse } from "https://deno.land/std@0.127.0/flags/mod.ts"; | ||
import { parse } from "https://deno.land/std@0.140.0/flags/mod.ts"; | ||
import { using } from "https://deno.land/x/[email protected]/mod.ts#^"; | ||
import { Service } from "./service.ts"; | ||
import { Vim } from "./host/vim.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ import { | |
assertArray, | ||
assertString, | ||
} from "https://deno.land/x/[email protected]/mod.ts#^"; | ||
import { Session } from "https://deno.land/x/[email protected].4/mod.ts#^"; | ||
import { Session } from "https://deno.land/x/[email protected].6/mod.ts#^"; | ||
import { responseTimeout } from "../defs.ts"; | ||
import { Invoker, isInvokerMethod } from "./invoker.ts"; | ||
import { Host } from "./base.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import { compareVersions } from "https://deno.land/x/[email protected]/mod.ts#^"; | ||
import { | ||
assertArray, | ||
assertString, | ||
|
@@ -8,18 +9,25 @@ import { | |
Dispatcher as SessionDispatcher, | ||
Session, | ||
SessionOptions, | ||
} from "https://deno.land/x/[email protected].4/mod.ts#^"; | ||
} from "https://deno.land/x/[email protected].6/mod.ts#^"; | ||
import { | ||
WorkerReader, | ||
WorkerWriter, | ||
} from "https://deno.land/x/[email protected].3/mod.ts#^"; | ||
} from "https://deno.land/x/[email protected].4/mod.ts#^"; | ||
import { responseTimeout } from "./defs.ts"; | ||
import { Host } from "./host/base.ts"; | ||
import { Invoker, RegisterOptions } from "./host/invoker.ts"; | ||
import type { Meta } from "../@denops/mod.ts"; | ||
|
||
const workerScript = "./worker/script.ts"; | ||
|
||
// Prior to Deno v1.22.0, `Deno` namespace is not available on Worker | ||
// https://deno.com/blog/v1.22#deno-namespace-is-available-in-workers-by-default | ||
// deno-lint-ignore no-explicit-any | ||
const workerOptions: any = compareVersions(Deno.version.deno, "1.22.0") === -1 | ||
? { deno: { namespace: true } } | ||
: {}; | ||
|
||
/** | ||
* Service manage plugins and is visible from the host (Vim/Neovim) through `invoke()` function. | ||
*/ | ||
|
@@ -62,9 +70,7 @@ export class Service implements ServiceApi { | |
{ | ||
name, | ||
type: "module", | ||
deno: { | ||
namespace: true, | ||
}, | ||
...workerOptions, | ||
}, | ||
); | ||
worker.postMessage({ name, script, meta }); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { toFileUrl } from "https://deno.land/std@0.127.0/path/mod.ts"; | ||
import { toFileUrl } from "https://deno.land/std@0.140.0/path/mod.ts"; | ||
import { | ||
assertObject, | ||
assertString, | ||
isObject, | ||
isString, | ||
} from "https://deno.land/x/[email protected]/mod.ts#^"; | ||
import { Session } from "https://deno.land/x/[email protected].4/mod.ts#^"; | ||
import { Session } from "https://deno.land/x/[email protected].6/mod.ts#^"; | ||
import { using } from "https://deno.land/x/[email protected]/mod.ts#^"; | ||
import { | ||
WorkerReader, | ||
WorkerWriter, | ||
} from "https://deno.land/x/[email protected].3/mod.ts#^"; | ||
} from "https://deno.land/x/[email protected].4/mod.ts#^"; | ||
import { responseTimeout } from "../defs.ts"; | ||
import type { Denops, Meta } from "../../@denops/mod.ts"; | ||
import { DenopsImpl } from "../../@denops/impl.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { Session } from "https://deno.land/x/[email protected].4/mod.ts#^"; | ||
import type { Session } from "https://deno.land/x/[email protected].6/mod.ts#^"; | ||
import { BatchError, Context, Denops, Dispatcher, Meta } from "./mod.ts"; | ||
|
||
export class DenopsImpl implements Denops { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { copy } from "https://deno.land/std@0.127.0/streams/conversion.ts"; | ||
import { copy } from "https://deno.land/std@0.140.0/streams/conversion.ts"; | ||
import { | ||
WorkerReader, | ||
WorkerWriter, | ||
} from "https://deno.land/x/[email protected].3/mod.ts#^"; | ||
} from "https://deno.land/x/[email protected].4/mod.ts#^"; | ||
|
||
const worker = self as unknown as Worker; | ||
const reader = new WorkerReader(worker); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import * as path from "https://deno.land/std@0.127.0/path/mod.ts"; | ||
import { Session } from "https://deno.land/x/[email protected].4/mod.ts#^"; | ||
import * as path from "https://deno.land/std@0.140.0/path/mod.ts"; | ||
import { Session } from "https://deno.land/x/[email protected].6/mod.ts#^"; | ||
import { using } from "https://deno.land/x/[email protected]/mod.ts#^"; | ||
import { deadline } from "https://deno.land/std@0.127.0/async/mod.ts"; | ||
import { deadline } from "https://deno.land/std@0.140.0/async/mod.ts"; | ||
import type { Denops, Meta } from "../mod.ts"; | ||
import { DenopsImpl } from "../impl.ts"; | ||
import { DENOPS_TEST_NVIM, DENOPS_TEST_VIM, run } from "./runner.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters