From 6b9872c50a19c6de6bce5fa23a30573a9fbaa1b4 Mon Sep 17 00:00:00 2001 From: Lino Le Van <11367844+lino-levan@users.noreply.github.com> Date: Tue, 19 Dec 2023 22:22:11 +0100 Subject: [PATCH] chore: update dependencies and modernize code (#13) --- deno.lock | 9 --------- emoji.ts | 2 +- emoji_test.ts | 2 +- 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 deno.lock diff --git a/deno.lock b/deno.lock deleted file mode 100644 index b7e58e2..0000000 --- a/deno.lock +++ /dev/null @@ -1,9 +0,0 @@ -{ - "version": "2", - "remote": { - "https://deno.land/std@0.184.0/fmt/colors.ts": "d67e3cd9f472535241a8e410d33423980bec45047e343577554d3356e1f0ef4e", - "https://deno.land/std@0.184.0/testing/_diff.ts": "1a3c044aedf77647d6cac86b798c6417603361b66b54c53331b312caeb447aea", - "https://deno.land/std@0.184.0/testing/_format.ts": "a69126e8a469009adf4cf2a50af889aca364c349797e63174884a52ff75cf4c7", - "https://deno.land/std@0.184.0/testing/asserts.ts": "e16d98b4d73ffc4ed498d717307a12500ae4f2cbe668f1a215632d19fcffc22f" - } -} diff --git a/emoji.ts b/emoji.ts index 3778115..87648c5 100644 --- a/emoji.ts +++ b/emoji.ts @@ -1,5 +1,5 @@ import type { Emoji } from "./types.ts"; -import emojis from "./all.json" assert { type: "json" }; +import emojis from "./all.json" with { type: "json" }; import { reUnicode } from "./unicode.ts"; export { Emoji }; diff --git a/emoji_test.ts b/emoji_test.ts index e4db045..8c45eec 100644 --- a/emoji_test.ts +++ b/emoji_test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "https://deno.land/std@0.184.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.209.0/assert/assert_equals.ts"; import * as emj from "./emoji.ts"; Deno.test({