-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #541 from lumeland/feat/upgrade-date-fns-3
Upgrade date-fns to version 3
- Loading branch information
Showing
2 changed files
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:date-fns/locale/gl"; | ||
import { pt } from "npm:date-fns/locale/pt"; | ||
|
||
const date0 = new Date(0); | ||
|
||
|