Skip to content

Commit

Permalink
Fix build and bump date-fns-jalali to latest v2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed May 8, 2024
1 parent ffd19f4 commit c7ecaa1
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 1,830 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"core-js": "^2.6.12",
"cross-env": "^7.0.3",
"date-fns": "^2.30.0",
"date-fns-jalali": "^2.21.3-1",
"date-fns-jalali": "^2.30.0-0",
"dayjs": "^1.11.11",
"doctrine": "^3.0.0",
"exceljs": "^4.4.0",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@
"packageManager": "[email protected]",
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
}
Expand Down
1 change: 1 addition & 0 deletions packages/x-date-pickers-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"@types/luxon": "^3.4.2",
"@types/prop-types": "^15.7.12",
"date-fns": "^2.30.0",
"date-fns-jalali": "^2.30.0-0",
"dayjs": "^1.11.11",
"luxon": "^3.4.4",
"moment": "^2.30.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-date-pickers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@types/moment-jalaali": "^0.7.9",
"@types/prop-types": "^15.7.12",
"date-fns": "^2.30.0",
"date-fns-jalali": "^2.13.0-0",
"date-fns-jalali": "^2.30.0-0",
"dayjs": "^1.11.11",
"luxon": "^3.4.4",
"moment": "^2.30.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable class-methods-use-this */
// TODO remove when date-fns-v3 is the default
// TODO remove when date-fns-jalali-v3 is the default
// @ts-nocheck
import { addSeconds } from 'date-fns-jalali/addSeconds';
import { addMinutes } from 'date-fns-jalali/addMinutes';
Expand Down Expand Up @@ -44,8 +44,8 @@ import { startOfWeek } from 'date-fns-jalali/startOfWeek';
import { startOfYear } from 'date-fns-jalali/startOfYear';
import { isWithinInterval } from 'date-fns-jalali/isWithinInterval';
import { faIR as defaultLocale } from 'date-fns-jalali/locale/fa-IR';
// date-fns v2 does not export types
// @ts-ignore TODO remove when date-fns-v3 is the default
// date-fns-jalali v2 does not export types
// @ts-ignore TODO remove when date-fns-jalali-v3 is the default
import { Locale as DateFnsLocale } from 'date-fns-jalali/locale/types';
import {
AdapterFormats,
Expand Down
Loading

0 comments on commit c7ecaa1

Please sign in to comment.