Skip to content

Commit e6c7494

Browse files
authored
Merge pull request #25 from vim-denops/v7-pre
🎉 For Denops v7
2 parents c7d76f1 + b72ac57 commit e6c7494

File tree

13 files changed

+36
-25
lines changed

13 files changed

+36
-25
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ jobs:
5252
- macos-latest
5353
- ubuntu-latest
5454
deno_version:
55-
- "1.43.x"
55+
- "1.45.x"
5656
- "1.x"
5757
host_version:
58-
- vim: "v9.1.0399"
59-
nvim: "v0.9.5"
58+
- vim: "v9.1.0448"
59+
nvim: "v0.10.0"
6060

6161
runs-on: ${{ matrix.runner }}
6262

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ jobs:
9999
- macos-latest
100100
- ubuntu-latest
101101
deno_version:
102-
- "1.43.x"
102+
- "1.45.x"
103103
- "1.x"
104104
host_version:
105-
- vim: "v9.1.0399"
106-
nvim: "v0.9.5"
105+
- vim: "v9.1.0448"
106+
nvim: "v0.10.0"
107107

108108
runs-on: ${{ matrix.runner }}
109109

conf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { resolve } from "jsr:@std/path@0.225.0/resolve";
1+
import { resolve } from "jsr:@std/path@1.0.1/resolve";
22

33
let conf: Config | undefined;
44

conf_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import {
33
assertEquals,
44
assertObjectMatch,
55
assertThrows,
6-
} from "jsr:@std/assert@0.225.1";
7-
import { stub } from "jsr:@std/testing@0.224/mock";
8-
import { basename, isAbsolute } from "jsr:@std/path@0.224.0";
6+
} from "jsr:@std/assert@1.0.0";
7+
import { stub } from "jsr:@std/testing@0.225.3/mock";
8+
import { basename, isAbsolute } from "jsr:@std/path@1.0.1";
99
import { _internal, getConfig } from "./conf.ts";
1010

1111
const ENV_VARS: Readonly<Record<string, string | undefined>> = {

denops.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import type { Context, Denops, Dispatcher, Meta } from "jsr:@denops/core@6.0.6";
1+
import type { Context, Denops, Dispatcher, Meta } from "jsr:@denops/core@7.0.0";
22
import type { Client } from "jsr:@lambdalisue/messagepack-rpc@2.1.1";
33

44
export class DenopsImpl implements Denops {
55
readonly name: string;
66
readonly meta: Meta;
77
readonly context: Record<string | number | symbol, unknown> = {};
8+
readonly interrupted = AbortSignal.any([]);
89

910
dispatcher: Dispatcher = {};
1011

plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "jsr:@denops/core@6.0.6";
1+
import type { Denops } from "jsr:@denops/core@7.0.0";
22
import { assert, ensure, is } from "jsr:@core/unknownutil@3.18.0";
33
import { Client, Session } from "jsr:@lambdalisue/messagepack-rpc@2.1.1";
44
import { errorDeserializer, errorSerializer } from "./error.ts";

runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mergeReadableStreams } from "jsr:@std/streams@0.224.0/merge-readable-streams";
1+
import { mergeReadableStreams } from "jsr:@std/streams@0.224.5/merge-readable-streams";
22
import { is } from "jsr:@core/unknownutil@3.18.0";
33
import { unreachable } from "jsr:@lambdalisue/errorutil@1.0.0";
44
import { type Config, getConfig } from "./conf.ts";

stub.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Context, Denops, Dispatcher, Meta } from "jsr:@denops/core@6.0.6";
1+
import type { Context, Denops, Dispatcher, Meta } from "jsr:@denops/core@7.0.0";
22

33
/**
44
* Represents a stubber object for `Denops`.
@@ -22,6 +22,12 @@ export interface DenopsStubber {
2222
* ```
2323
*/
2424
meta?: Meta;
25+
26+
/**
27+
* AbortSignal instance that is triggered when the user invoke `denops#interrupt()`
28+
* If not specified, it returns a new instance of `AbortSignal`.
29+
*/
30+
interrupted?: AbortSignal;
2531
/**
2632
* A stub function for the `redraw` method of `Denops`.
2733
* If not specified, it returns a promise resolving to undefined.
@@ -96,6 +102,10 @@ export class DenopsStub implements Denops {
96102
};
97103
}
98104

105+
get interrupted(): AbortSignal {
106+
return this.#stubber.interrupted ?? AbortSignal.any([]);
107+
}
108+
99109
/**
100110
* A stub function for the `redraw` method of `Denops`.
101111
* If not specified, it returns a promise resolving to undefined.

stub_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { assertSpyCall, spy } from "jsr:@std/testing@0.224.0/mock";
2-
import { assertEquals } from "jsr:@std/assert@0.225.1";
3-
import type { Denops } from "jsr:@denops/core@6.0.6";
1+
import { assertSpyCall, spy } from "jsr:@std/testing@0.225.3/mock";
2+
import { assertEquals } from "jsr:@std/assert@1.0.0";
3+
import type { Denops } from "jsr:@denops/core@7.0.0";
44
import { DenopsStub } from "./stub.ts";
55

66
Deno.test("`DenopsStub`", async (t) => {

tester.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { sample } from "jsr:@std/collections@0.224.1/sample";
2-
import type { Denops } from "jsr:@denops/core@6.0.6";
1+
import { sample } from "jsr:@std/collections@1.0.5/sample";
2+
import type { Denops } from "jsr:@denops/core@7.0.0";
33
import type { RunMode } from "./runner.ts";
44
import { withDenops } from "./with.ts";
55

0 commit comments

Comments
 (0)