From 5839bbe4b6687f59465853d1d393733b3e194f2b Mon Sep 17 00:00:00 2001 From: Alisue Date: Sat, 3 Aug 2024 15:24:30 +0900 Subject: [PATCH] :package: Add `^` prefix to dependency versions --- conf.ts | 2 +- conf_test.ts | 6 +++--- denops.ts | 9 +++++++-- error.ts | 2 +- plugin.ts | 4 ++-- runner.ts | 4 ++-- stub.ts | 7 ++++++- stub_test.ts | 6 +++--- tester.ts | 4 ++-- tester_test.ts | 2 +- with.ts | 6 +++--- with_test.ts | 6 +++--- 12 files changed, 34 insertions(+), 24 deletions(-) diff --git a/conf.ts b/conf.ts index 0dade75..8df7ec9 100644 --- a/conf.ts +++ b/conf.ts @@ -1,4 +1,4 @@ -import { resolve } from "jsr:@std/path@1.0.1/resolve"; +import { resolve } from "jsr:@std/path@^1.0.1/resolve"; let conf: Config | undefined; diff --git a/conf_test.ts b/conf_test.ts index ea853ca..1d172c4 100644 --- a/conf_test.ts +++ b/conf_test.ts @@ -3,9 +3,9 @@ import { assertEquals, assertObjectMatch, assertThrows, -} 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"; +} 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> = { diff --git a/denops.ts b/denops.ts index 89bf805..396ecdc 100644 --- a/denops.ts +++ b/denops.ts @@ -1,5 +1,10 @@ -import type { Context, Denops, Dispatcher, Meta } from "jsr:@denops/core@7.0.0"; -import type { Client } from "jsr:@lambdalisue/messagepack-rpc@2.1.1"; +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; diff --git a/error.ts b/error.ts index ee44998..9006e83 100644 --- a/error.ts +++ b/error.ts @@ -4,7 +4,7 @@ import { isErrorObject, toErrorObject, tryOr, -} from "jsr:@lambdalisue/errorutil@1.0.0"; +} from "jsr:@lambdalisue/errorutil@^1.0.0"; export function errorSerializer(err: unknown): unknown { if (err instanceof Error) { diff --git a/plugin.ts b/plugin.ts index 1984b10..baaa25f 100644 --- a/plugin.ts +++ b/plugin.ts @@ -1,6 +1,6 @@ -import type { Denops } from "jsr:@denops/core@7.0.0"; +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/messagepack-rpc@2.1.1"; +import { Client, Session } from "jsr:@lambdalisue/messagepack-rpc@^2.1.1"; import { errorDeserializer, errorSerializer } from "./error.ts"; export async function main(denops: Denops): Promise { diff --git a/runner.ts b/runner.ts index 35ede94..cf0401e 100644 --- a/runner.ts +++ b/runner.ts @@ -1,6 +1,6 @@ -import { mergeReadableStreams } from "jsr:@std/streams@0.224.5/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/errorutil@1.0.0"; +import { unreachable } from "jsr:@lambdalisue/errorutil@^1.0.0"; import { type Config, getConfig } from "./conf.ts"; /** diff --git a/stub.ts b/stub.ts index d5aeff4..0f7bd66 100644 --- a/stub.ts +++ b/stub.ts @@ -1,4 +1,9 @@ -import type { Context, Denops, Dispatcher, Meta } from "jsr:@denops/core@7.0.0"; +import type { + Context, + Denops, + Dispatcher, + Meta, +} from "jsr:@denops/core@^7.0.0"; /** * Represents a stubber object for `Denops`. diff --git a/stub_test.ts b/stub_test.ts index cbfbcb3..57048e6 100644 --- a/stub_test.ts +++ b/stub_test.ts @@ -1,6 +1,6 @@ -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 { 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) => { diff --git a/tester.ts b/tester.ts index ba7e9ea..aff8f9f 100644 --- a/tester.ts +++ b/tester.ts @@ -1,5 +1,5 @@ -import { sample } from "jsr:@std/collections@1.0.5/sample"; -import type { Denops } from "jsr:@denops/core@7.0.0"; +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"; diff --git a/tester_test.ts b/tester_test.ts index 88cdbc8..945c006 100644 --- a/tester_test.ts +++ b/tester_test.ts @@ -3,7 +3,7 @@ import { assertEquals, assertFalse, assertThrows, -} from "jsr:@std/assert@1.0.0"; +} from "jsr:@std/assert@^1.0.0"; import { test } from "./tester.ts"; test({ diff --git a/with.ts b/with.ts index dfa29b5..0cc8672 100644 --- a/with.ts +++ b/with.ts @@ -1,7 +1,7 @@ -import { deadline } from "jsr:@std/async@1.0.0/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/messagepack-rpc@2.1.1"; -import type { Denops, Meta } from "jsr:@denops/core@7.0.0"; +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"; diff --git a/with_test.ts b/with_test.ts index 78c1bc8..9d7ed4a 100644 --- a/with_test.ts +++ b/with_test.ts @@ -4,9 +4,9 @@ import { assertEquals, assertFalse, assertRejects, -} 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"; +} 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 () => {