Skip to content

Commit 1ab90fe

Browse files
authored
Merge pull request #38 from vim-denops/v8
📦 Upgrade @denops/core to v8
2 parents 84599aa + 23146b3 commit 1ab90fe

File tree

12 files changed

+37
-67
lines changed

12 files changed

+37
-67
lines changed

.github/workflows/jsr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: jsr
22

33
env:
4-
DENO_VERSION: 1.x
4+
DENO_VERSION: 2.x
55

66
on:
77
push:
@@ -19,9 +19,9 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
22-
- uses: denoland/setup-deno@v1
22+
- uses: denoland/setup-deno@v2
2323
with:
2424
deno-version: ${{ env.DENO_VERSION }}
2525
- name: Publish
2626
run: |
27-
deno run -A jsr:@david/publish-on-tag@0.1.3
27+
deno run -A jsr:@david/publish-on-tag@0.2.0

.github/workflows/test.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ jobs:
3737
runner:
3838
- ubuntu-latest
3939
deno_version:
40-
- "1.x"
40+
- "2.x"
4141
runs-on: ${{ matrix.runner }}
4242
steps:
4343
- run: git config --global core.autocrlf false
4444
if: runner.os == 'Windows'
4545

4646
- uses: actions/checkout@v4
4747

48-
- uses: denoland/setup-deno@v1
48+
- uses: denoland/setup-deno@v2
4949
with:
5050
deno-version: "${{ matrix.deno_version }}"
5151

@@ -77,21 +77,23 @@ jobs:
7777
- macos-latest
7878
- ubuntu-latest
7979
deno_version:
80-
- "1.45.0"
81-
- "1.x"
80+
- "~2.3"
81+
- "2.x"
8282
host_version:
83-
- vim: "v9.1.0448"
84-
nvim: "v0.10.0"
83+
- vim: "v9.1.1646"
84+
nvim: "v0.11.3"
8585

8686
runs-on: ${{ matrix.runner }}
8787

8888
steps:
89-
- run: git config --global core.autocrlf false
89+
- run: |
90+
git config --global core.autocrlf false
91+
git config --global core.eol lf
9092
if: runner.os == 'Windows'
9193
9294
- uses: actions/checkout@v4
9395

94-
- uses: denoland/setup-deno@v1
96+
- uses: denoland/setup-deno@v2
9597
with:
9698
deno-version: ${{ matrix.deno_version }}
9799

@@ -133,26 +135,14 @@ jobs:
133135
deno cache ./mod.ts
134136
135137
- name: Run tests
136-
run: deno task test:coverage
138+
run: deno task test --coverage=cov
137139
timeout-minutes: 15
138140

139141
- run: |
140-
deno task coverage --lcov > coverage.lcov
142+
deno coverage --lcov cov > coverage.lcov
141143
142144
- uses: codecov/codecov-action@v4
143145
with:
144146
os: ${{ runner.os }}
145147
files: ./coverage.lcov
146148
token: ${{ secrets.CODECOV_TOKEN }}
147-
148-
jsr-publish:
149-
needs: check
150-
runs-on: ubuntu-latest
151-
steps:
152-
- uses: actions/checkout@v4
153-
- uses: denoland/setup-deno@v1
154-
with:
155-
deno-version: "1.x"
156-
- name: Publish (dry-run)
157-
run: |
158-
deno publish --dry-run

.github/workflows/update.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
[![Test](https://github.com/vim-denops/deno-denops-test/actions/workflows/test.yml/badge.svg)](https://github.com/vim-denops/deno-denops-test/actions/workflows/test.yml)
55
[![codecov](https://codecov.io/github/vim-denops/deno-denops-test/branch/main/graph/badge.svg?token=X9O5XB4O1S)](https://codecov.io/github/vim-denops/deno-denops-test)
66

7-
[![Deno 1.45.0 or above](https://img.shields.io/badge/Deno-Support%201.45.0-yellowgreen.svg?logo=deno)](https://github.com/denoland/deno/tree/v1.45.0)
8-
[![Vim 9.1.0448 or above](https://img.shields.io/badge/Vim-Support%209.1.0448-yellowgreen.svg?logo=vim)](https://github.com/vim/vim/tree/v9.1.0448)
9-
[![Neovim 0.10.0 or above](https://img.shields.io/badge/Neovim-Support%200.10.0-yellowgreen.svg?logo=neovim&logoColor=white)](https://github.com/neovim/neovim/tree/v0.10.0)
7+
[![Deno 2.3.0 or above](https://img.shields.io/badge/Deno-Support%202.3.0-yellowgreen.svg?logo=deno)](https://github.com/denoland/deno/tree/v2.3.0)
8+
[![Vim 9.1.1646 or above](https://img.shields.io/badge/Vim-Support%209.1.1646-yellowgreen.svg?logo=vim)](https://github.com/vim/vim/tree/v9.1.1646)
9+
[![Neovim 0.11.3 or above](https://img.shields.io/badge/Neovim-Support%200.11.3-yellowgreen.svg?logo=neovim&logoColor=white)](https://github.com/neovim/neovim/tree/v0.11.3)
1010

1111
A [Deno] module designed for testing [denops.vim]. This module is intended to be
1212
used in the unit tests of denops plugins.
@@ -125,11 +125,11 @@ jobs:
125125
- macos-latest
126126
- ubuntu-latest
127127
deno_version:
128-
- "1.45.0"
129-
- "1.x"
128+
- "~2.3"
129+
- "2.x"
130130
host_version:
131-
- vim: "v9.1.0448"
132-
nvim: "v0.10.0"
131+
- vim: "v9.1.1646"
132+
nvim: "v0.11.3"
133133

134134
runs-on: ${{ matrix.runner }}
135135

@@ -139,7 +139,7 @@ jobs:
139139

140140
- uses: actions/checkout@v4
141141

142-
- uses: denoland/setup-deno@v1
142+
- uses: denoland/setup-deno@v2
143143
with:
144144
deno-version: ${{ matrix.deno_version }}
145145

deno.jsonc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
{
22
"name": "@denops/test",
3-
"version": "0.0.0",
43
"exports": {
54
".": "./mod.ts",
65
"./stub": "./stub.ts",
76
"./tester": "./tester.ts",
87
"./with": "./with.ts"
98
},
10-
"exclude": [
11-
".coverage"
12-
],
139
"publish": {
1410
"include": [
1511
"**/*.ts",
@@ -25,13 +21,16 @@
2521
"check": "deno check **/*.ts",
2622
"check:doc": "deno test --doc --no-run",
2723
"test": "deno test -A --parallel --shuffle",
28-
"test:coverage": "deno task test --coverage=.coverage",
29-
"coverage": "deno coverage .coverage",
30-
"update": "deno run --allow-env --allow-read --allow-write=. --allow-run=git,deno --allow-net=jsr.io,registry.npmjs.org jsr:@molt/cli ./*.ts",
31-
"update:commit": "deno task -q update --commit --prefix :package: --pre-commit=fmt,lint",
3224
"apply:supported-versions": "deno run --allow-env --allow-net --allow-read --allow-write .scripts/apply-supported-versions.ts"
3325
},
3426
"imports": {
3527
"jsr:@denops/test": "./mod.ts"
28+
},
29+
"lint": {
30+
"rules": {
31+
"exclude": [
32+
"no-import-prefix"
33+
]
34+
}
3635
}
3736
}

denops.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 "jsr:@denops/core@^7.0.0";
6+
} from "jsr:@denops/core@^8.0.0";
77
import type { Client } from "jsr:@lambdalisue/messagepack-rpc@^2.1.1";
88

99
export class DenopsImpl implements Denops {

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@^7.0.0";
1+
import type { Denops } from "jsr:@denops/core@^8.0.0";
22
import { as, assert, ensure, is } from "jsr:@core/unknownutil@^4.0.0";
33
import { Client, Session } from "jsr:@lambdalisue/messagepack-rpc@^2.1.1";
44
import { errorDeserializer, errorSerializer } from "./error.ts";

stub.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 "jsr:@denops/core@^7.0.0";
6+
} from "jsr:@denops/core@^8.0.0";
77

88
/**
99
* Represents a stubber object for `Denops`.

stub_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { assertSpyCall, spy } from "jsr:@std/testing@^1.0.0/mock";
22
import { assertEquals } from "jsr:@std/assert@^1.0.0";
3-
import type { Denops } from "jsr:@denops/core@^7.0.0";
3+
import type { Denops } from "jsr:@denops/core@^8.0.0";
44
import { DenopsStub } from "./stub.ts";
55

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

tester.ts

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

0 commit comments

Comments
 (0)