Skip to content

Commit 0805cfb

Browse files
authored
Merge pull request #133 from vim-denops/fix-buffer-replace-on-vim
📦 Update versions and follow the latest type changes
2 parents f2f7186 + 3283d6f commit 0805cfb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+87
-118
lines changed

denops_std/anonymous/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22

33
// https://github.com/microsoft/TypeScript/issues/26223#issuecomment-674500430
44
export type TupleOf<T, N extends number> = N extends N

denops_std/anonymous/mod_test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.133.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.0.1/test/mod.ts";
4+
} from "https://deno.land/std@0.149.0/testing/asserts.ts";
5+
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
66
import * as anonymous from "./mod.ts";
77

88
test({
@@ -43,21 +43,18 @@ test({
4343
async () => {
4444
await denops.dispatch(denops.name, ids[0]);
4545
},
46-
undefined,
4746
`No method '${ids[0]}' exists`,
4847
);
4948
await assertRejects(
5049
async () => {
5150
await denops.dispatch(denops.name, ids[1]);
5251
},
53-
undefined,
5452
`No method '${ids[1]}' exists`,
5553
);
5654
await assertRejects(
5755
async () => {
5856
await denops.dispatch(denops.name, ids[2]);
5957
},
60-
undefined,
6158
`No method '${ids[2]}' exists`,
6259
);
6360
},
@@ -81,21 +78,18 @@ test({
8178
async () => {
8279
await denops.dispatch(denops.name, ids[0]);
8380
},
84-
undefined,
8581
`No method '${ids[0]}' exists`,
8682
);
8783
await assertRejects(
8884
async () => {
8985
await denops.dispatch(denops.name, ids[1]);
9086
},
91-
undefined,
9287
`No method '${ids[1]}' exists`,
9388
);
9489
await assertRejects(
9590
async () => {
9691
await denops.dispatch(denops.name, ids[2]);
9792
},
98-
undefined,
9993
`No method '${ids[2]}' exists`,
10094
);
10195
},

denops_std/argument/flags_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
22
import { parseFlags } from "./flags.ts";
33

44
Deno.test("parseFlags", () => {

denops_std/argument/mod_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
22
import { parse } from "./mod.ts";
33

44
Deno.test("parse", () => {

denops_std/argument/opts_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
22
import { parseOpts } from "./opts.ts";
33

44
Deno.test("parseOpts", () => {

denops_std/autocmd/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22
import { AutocmdEvent } from "./types.ts";
33

44
type CommonOptions = {

denops_std/autocmd/common_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.0.1/test/mod.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
2+
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
33
import { globals } from "../variable/mod.ts";
44
import { define, emit, emitAll, list, remove } from "./common.ts";
55

denops_std/autocmd/group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22
import { execute } from "../helper/execute.ts";
33
import { AutocmdEvent } from "./types.ts";
44
import {

denops_std/autocmd/group_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.0.1/test/mod.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
2+
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
33
import { globals } from "../variable/mod.ts";
44
import { group } from "./group.ts";
55

denops_std/batch/batch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
Denops,
44
Dispatcher,
55
Meta,
6-
} from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
6+
} from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
77

88
class BatchHelper implements Denops {
99
#denops: Denops;

denops_std/batch/batch_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.0.1/test/mod.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
2+
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
33
import { batch, BatchHelper } from "./batch.ts";
44

55
test({

denops_std/batch/gather.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
Denops,
44
Dispatcher,
55
Meta,
6-
} from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
6+
} from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
77

88
class GatherHelper implements Denops {
99
#denops: Denops;

denops_std/batch/gather_test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.133.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.0.1/test/mod.ts";
4+
} from "https://deno.land/std@0.149.0/testing/asserts.ts";
5+
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
66
import { gather, GatherHelper } from "./gather.ts";
77

88
test({
@@ -55,7 +55,6 @@ test({
5555
await denops.batch();
5656
});
5757
},
58-
undefined,
5958
"method is not available",
6059
);
6160
},
@@ -78,21 +77,18 @@ test({
7877
async () => {
7978
await helper!.call("execute", "DenopsGatherTest");
8079
},
81-
undefined,
8280
"not available outside",
8381
);
8482
await assertRejects(
8583
async () => {
8684
await helper.cmd("DenopsGatherTest");
8785
},
88-
undefined,
8986
"not available outside",
9087
);
9188
await assertRejects(
9289
async () => {
9390
const _ = await helper.eval("v:version");
9491
},
95-
undefined,
9692
"not available outside",
9793
);
9894
},

denops_std/buffer/buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22
import * as autocmd from "../autocmd/mod.ts";
33
import * as batch from "../batch/mod.ts";
44
import * as fn from "../function/mod.ts";

denops_std/buffer/buffer_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
22
import { test } from "../test/mod.ts";
33
import { default as Encoding } from "https://cdn.skypack.dev/encoding-japanese@2.0.0/";
44
import * as fn from "../function/mod.ts";

denops_std/buffer/decoration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22
import * as batch from "../batch/mod.ts";
33
import * as vimFn from "../function/vim/mod.ts";
44
import * as nvimFn from "../function/nvim/mod.ts";

denops_std/buffer/fileencoding_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
22
import { default as Encoding } from "https://cdn.skypack.dev/encoding-japanese@2.0.0/";
33
import { tryDecode } from "./fileencoding.ts";
44

denops_std/buffer/fileformat_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
22
import { FileFormat, findFileFormat, splitText } from "./fileformat.ts";
33

44
Deno.test("splitText", async (t) => {

denops_std/bufname/bufname_test.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
22
assertEquals,
33
assertThrows,
4-
} from "https://deno.land/std@0.133.0/testing/asserts.ts";
5-
import * as path from "https://deno.land/std@0.133.0/path/mod.ts";
4+
} from "https://deno.land/std@0.149.0/testing/asserts.ts";
5+
import * as path from "https://deno.land/std@0.149.0/path/mod.ts";
66
import { format, parse } from "./bufname.ts";
77

88
Deno.test("format throws exception when 'scheme' contains unusable characters", () => {
@@ -12,7 +12,6 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
1212
scheme: "denops0number",
1313
expr: "/absolute/path/to/worktree",
1414
}),
15-
undefined,
1615
"contains unusable characters",
1716
);
1817
assertThrows(
@@ -21,7 +20,6 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
2120
scheme: "denops+plus",
2221
expr: "/absolute/path/to/worktree",
2322
}),
24-
undefined,
2523
"contains unusable characters",
2624
);
2725
assertThrows(
@@ -30,7 +28,6 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
3028
scheme: "denops-minus",
3129
expr: "/absolute/path/to/worktree",
3230
}),
33-
undefined,
3431
"contains unusable characters",
3532
);
3633
assertThrows(
@@ -39,7 +36,6 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
3936
scheme: "denops.dot",
4037
expr: "/absolute/path/to/worktree",
4138
}),
42-
undefined,
4339
"contains unusable characters",
4440
);
4541
assertThrows(
@@ -48,7 +44,6 @@ Deno.test("format throws exception when 'scheme' contains unusable characters",
4844
scheme: "denops_underscore",
4945
expr: "/absolute/path/to/worktree",
5046
}),
51-
undefined,
5247
"contains unusable characters",
5348
);
5449
});
@@ -211,34 +206,28 @@ Deno.test("parse throws exception when 'expr' contains unusable characters", ()
211206
() => {
212207
parse(src);
213208
},
214-
undefined,
215209
"contains unusable characters",
216210
);
217211
});
218212
Deno.test("parse throws exception when scheme part of 'expr' contains unusable characters", () => {
219213
assertThrows(
220214
() => parse("denops0number://absolute/path/to/worktree"),
221-
undefined,
222215
"contains unusable characters",
223216
);
224217
assertThrows(
225218
() => parse("denops+plus://absolute/path/to/worktree"),
226-
undefined,
227219
"contains unusable characters",
228220
);
229221
assertThrows(
230222
() => parse("denops+minus://absolute/path/to/worktree"),
231-
undefined,
232223
"contains unusable characters",
233224
);
234225
assertThrows(
235226
() => parse("denops.dot://absolute/path/to/worktree"),
236-
undefined,
237227
"contains unusable characters",
238228
);
239229
assertThrows(
240230
() => parse("denops_underscore://absolute/path/to/worktree"),
241-
undefined,
242231
"contains unusable characters",
243232
);
244233
});

denops_std/bufname/utils_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
22
import { decode, encode } from "./utils.ts";
33

44
Deno.test("encode does nothing on alphabet characters", () => {

denops_std/function/_generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// NOTE: This file is generated. Do NOT modify it manually.
22
// deno-lint-ignore-file camelcase
3-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
3+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
44

55
/**
66
* Return the absolute value of {expr}. When {expr} evaluates to

denops_std/function/buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22

33
/**
44
* Add a buffer to the buffer list with {name}.

denops_std/function/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22

33
/**
44
* The result is a Number, which is |TRUE| if {expr} is

denops_std/function/cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22
import type { Position, ScreenPos } from "./types.ts";
33

44
/**

denops_std/function/cursor_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
22
import { assertNumber } from "https://deno.land/x/unknownutil@v2.0.0/mod.ts";
3-
import { test } from "https://deno.land/x/denops_core@v3.0.1/test/mod.ts";
3+
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
44
import * as cursor from "./cursor.ts";
55
import { assertPosition, assertScreenPos, isScreenPos } from "./types.ts";
66

denops_std/function/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22
import { BuiltinCompletion, isValidBuiltinCompletion } from "./types.ts";
33

44
/**

denops_std/function/input_test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
22
assertEquals,
33
assertRejects,
4-
} from "https://deno.land/std@0.133.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.0.1/test/mod.ts";
4+
} from "https://deno.land/std@0.149.0/testing/asserts.ts";
5+
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
66
import { input, inputlist, inputsecret } from "./input.ts";
77
import * as autocmd from "../autocmd/mod.ts";
88
import { execute } from "../helper/execute.ts";
@@ -80,7 +80,6 @@ test({
8080
async () => {
8181
await input(denops, "Test: ", "", "custom:Invalid");
8282
},
83-
undefined,
8483
"Invalid completion",
8584
);
8685
},

denops_std/function/nvim/_generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// NOTE: This file is generated. Do NOT modify it manually.
22
// deno-lint-ignore-file camelcase
3-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
3+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
44

55
/**
66
* Returns Dictionary of |api-metadata|.

denops_std/function/various.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22

33
/**
44
* Return a string that indicates the current mode.

denops_std/function/various_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.0.1/test/mod.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
2+
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
33
import * as various from "./various.ts";
44

55
test({

denops_std/function/vim/_generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// NOTE: This file is generated. Do NOT modify it manually.
22
// deno-lint-ignore-file camelcase
3-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
3+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
44

55
/**
66
* Return the current text in the balloon. Only for the string,

denops_std/helper/batch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.1/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
22
import type { GatherHelper } from "../batch/mod.ts";
33
import { gather } from "../batch/mod.ts";
44

denops_std/helper/batch_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assertEquals } from "https://deno.land/std@0.133.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.0.1/test/mod.ts";
1+
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
2+
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
33
import * as fn from "../function/mod.ts";
44
import { batch } from "./batch.ts";
55

0 commit comments

Comments
 (0)