Skip to content

Commit

Permalink
Merge pull request #29 from vim-denops/fix-deps
Browse files Browse the repository at this point in the history
📦 Add `^` prefix to dependency versions
  • Loading branch information
lambdalisue authored Aug 3, 2024
2 parents 0519fb1 + 5839bbe commit 739607e
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 24 deletions.
2 changes: 1 addition & 1 deletion conf.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { resolve } from "jsr:@std/[email protected]/resolve";
import { resolve } from "jsr:@std/path@^1.0.1/resolve";

let conf: Config | undefined;

Expand Down
6 changes: 3 additions & 3 deletions conf_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {
assertEquals,
assertObjectMatch,
assertThrows,
} from "jsr:@std/[email protected]";
import { stub } from "jsr:@std/[email protected]/mock";
import { basename, isAbsolute } from "jsr:@std/[email protected]";
} from "jsr:@std/assert@^1.0.0";
import { stub } from "jsr:@std/testing@^0.225.3/mock";
import { basename, isAbsolute } from "jsr:@std/path@^1.0.1";
import { _internal, getConfig } from "./conf.ts";

const ENV_VARS: Readonly<Record<string, string | undefined>> = {
Expand Down
9 changes: 7 additions & 2 deletions denops.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import type { Context, Denops, Dispatcher, Meta } from "jsr:@denops/[email protected]";
import type { Client } from "jsr:@lambdalisue/[email protected]";
import type {
Context,
Denops,
Dispatcher,
Meta,
} from "jsr:@denops/core@^7.0.0";
import type { Client } from "jsr:@lambdalisue/messagepack-rpc@^2.1.1";

export class DenopsImpl implements Denops {
readonly name: string;
Expand Down
2 changes: 1 addition & 1 deletion error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
isErrorObject,
toErrorObject,
tryOr,
} from "jsr:@lambdalisue/[email protected]";
} from "jsr:@lambdalisue/errorutil@^1.0.0";

export function errorSerializer(err: unknown): unknown {
if (err instanceof Error) {
Expand Down
4 changes: 2 additions & 2 deletions plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Denops } from "jsr:@denops/[email protected]";
import type { Denops } from "jsr:@denops/core@^7.0.0";
import { as, assert, ensure, is } from "jsr:@core/unknownutil@^4.0.0";
import { Client, Session } from "jsr:@lambdalisue/[email protected]";
import { Client, Session } from "jsr:@lambdalisue/messagepack-rpc@^2.1.1";
import { errorDeserializer, errorSerializer } from "./error.ts";

export async function main(denops: Denops): Promise<void> {
Expand Down
4 changes: 2 additions & 2 deletions runner.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mergeReadableStreams } from "jsr:@std/[email protected]/merge-readable-streams";
import { mergeReadableStreams } from "jsr:@std/streams@^0.224.5/merge-readable-streams";
import { is } from "jsr:@core/unknownutil@^4.0.0";
import { unreachable } from "jsr:@lambdalisue/[email protected]";
import { unreachable } from "jsr:@lambdalisue/errorutil@^1.0.0";
import { type Config, getConfig } from "./conf.ts";

/**
Expand Down
7 changes: 6 additions & 1 deletion stub.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import type { Context, Denops, Dispatcher, Meta } from "jsr:@denops/[email protected]";
import type {
Context,
Denops,
Dispatcher,
Meta,
} from "jsr:@denops/core@^7.0.0";

/**
* Represents a stubber object for `Denops`.
Expand Down
6 changes: 3 additions & 3 deletions stub_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertSpyCall, spy } from "jsr:@std/[email protected]/mock";
import { assertEquals } from "jsr:@std/[email protected]";
import type { Denops } from "jsr:@denops/[email protected]";
import { assertSpyCall, spy } from "jsr:@std/testing@^0.225.3/mock";
import { assertEquals } from "jsr:@std/assert@^1.0.0";
import type { Denops } from "jsr:@denops/core@^7.0.0";
import { DenopsStub } from "./stub.ts";

Deno.test("`DenopsStub`", async (t) => {
Expand Down
4 changes: 2 additions & 2 deletions tester.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { sample } from "jsr:@std/[email protected]/sample";
import type { Denops } from "jsr:@denops/[email protected]";
import { sample } from "jsr:@std/collections@^1.0.5/sample";
import type { Denops } from "jsr:@denops/core@^7.0.0";
import type { RunMode } from "./runner.ts";
import { withDenops } from "./with.ts";

Expand Down
2 changes: 1 addition & 1 deletion tester_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
assertEquals,
assertFalse,
assertThrows,
} from "jsr:@std/[email protected]";
} from "jsr:@std/assert@^1.0.0";
import { test } from "./tester.ts";

test({
Expand Down
6 changes: 3 additions & 3 deletions with.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { deadline } from "jsr:@std/[email protected]/deadline";
import { deadline } from "jsr:@std/async@^1.0.0/deadline";
import { assert, is } from "jsr:@core/unknownutil@^4.0.0";
import { Client, Session } from "jsr:@lambdalisue/[email protected]";
import type { Denops, Meta } from "jsr:@denops/[email protected]";
import { Client, Session } from "jsr:@lambdalisue/messagepack-rpc@^2.1.1";
import type { Denops, Meta } from "jsr:@denops/core@^7.0.0";
import { getConfig } from "./conf.ts";
import { run, type RunMode } from "./runner.ts";
import { DenopsImpl } from "./denops.ts";
Expand Down
6 changes: 3 additions & 3 deletions with_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
assertEquals,
assertFalse,
assertRejects,
} from "jsr:@std/[email protected]";
import { assertSpyCalls, spy, stub } from "jsr:@std/[email protected]/mock";
import type { Denops } from "jsr:@denops/[email protected]";
} from "jsr:@std/assert@^1.0.0";
import { assertSpyCalls, spy, stub } from "jsr:@std/testing@^0.225.3/mock";
import type { Denops } from "jsr:@denops/core@^7.0.0";
import { withDenops } from "./with.ts";

Deno.test("test(mode:vim) start vim to test denops features", async () => {
Expand Down

0 comments on commit 739607e

Please sign in to comment.