Skip to content

Commit

Permalink
upgrade to date-fns 3
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Dec 24, 2023
1 parent 387b9d7 commit 58647f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deps/date.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { format } from "npm:date-fns@2.30.0";
export type { Locale } from "npm:date-fns@2.30.0";
export { format } from "npm:date-fns@3.0.6/format";
export type { Locale } from "npm:date-fns@3.0.6/locale";
8 changes: 2 additions & 6 deletions tests/date.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { assert, assertStrictEquals as equals } from "../deps/assert.ts";
import lume from "../mod.ts";
import date from "../plugins/date.ts";
import _gl from "npm:[email protected]/locale/gl/index.js";
import _pt from "npm:[email protected]/locale/pt/index.js";

// date-fns provides wrong types under node16 module resolution
const gl = _gl as Locale;
const pt = _pt as Locale;
import { gl } from "npm:[email protected]/locale/gl";
import { pt } from "npm:[email protected]/locale/pt";

const date0 = new Date(0);

Expand Down

0 comments on commit 58647f3

Please sign in to comment.