Skip to content

Commit

Permalink
Bump date-io (#28612)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: eps1lon <[email protected]>
  • Loading branch information
3 people authored Oct 1, 2021
1 parent 4d68658 commit 1e7851b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 38 deletions.
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@babel/core": "^7.15.5",
"@babel/plugin-transform-object-assign": "^7.14.5",
"@babel/runtime-corejs2": "^7.15.4",
"@date-io/core": "^2.0.0",
"@date-io/date-fns-jalali": "^2.10.8",
"@date-io/core": "^2.11.0",
"@date-io/date-fns-jalali": "^2.11.0",
"@docsearch/react": "^3.0.0-alpha.40",
"@emotion/cache": "^11.4.0",
"@emotion/react": "^11.4.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/mui-lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@date-io/date-fns": "^2.10.6",
"@date-io/dayjs": "^2.10.6",
"@date-io/luxon": "^2.10.6",
"@date-io/moment": "^2.10.6",
"@date-io/date-fns": "^2.11.0",
"@date-io/dayjs": "^2.11.0",
"@date-io/luxon": "^2.11.1",
"@date-io/moment": "^2.11.0",
"@mui/core": "5.0.0-alpha.49",
"@mui/system": "^5.0.2",
"@mui/utils": "^5.0.1",
Expand Down
14 changes: 11 additions & 3 deletions packages/mui-lab/src/internal/pickers/test-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ import LocalizationProvider from '@mui/lab/LocalizationProvider';
* But we do use it in tests where usage of ISO dates without timezone is problematic
*/
export class AdapterClassToUse extends AdapterDateFns {
date(value?: any): Date {
// Inlined AdapterDateFns#date which is not an instance method but instance property
date = (value?: any): Date => {
if (typeof value === 'string') {
return parseISO(value);
}
return super.date(value);
}
if (typeof value === 'undefined') {
return new Date();
}
if (value === null) {
// @ts-expect-error AdapterDateFns#date says it returns NotNullable but that's not true
return null;
}
return new Date(value);
};
}
export const adapterToUse = new AdapterClassToUse();

Expand Down
58 changes: 29 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1248,45 +1248,45 @@
framesync "5.3.0"
lodash.mergewith "4.6.2"

"@date-io/core@^2.0.0", "@date-io/core@^2.10.6", "@date-io/core@^2.10.7":
version "2.10.11"
resolved "https://registry.yarnpkg.com/@date-io/core/-/core-2.10.11.tgz#b1a3d57730f3eaaab54d5658be4a71727297e357"
integrity sha512-keXQnwH0LM8wyvu+j5Z2KGK56D+eItjy7DnwuWl/oV+DM2UEYl0z5WhdPMpfswSyt/kjuPOzcVF/7u/skMLaoA==
"@date-io/core@^2.11.0":
version "2.11.0"
resolved "https://registry.yarnpkg.com/@date-io/core/-/core-2.11.0.tgz#28580cda1c8228ab2c7ed6aee673ef0495f913e6"
integrity sha512-DvPBnNoeuLaoSJZaxgpu54qzRhRKjSYVyQjhznTFrllKuDpm0sDFjHo6lvNLCM/cfMx2gb2PM2zY2kc9C8nmuw==

"@date-io/date-fns-jalali@^2.10.8":
version "2.10.8"
resolved "https://registry.yarnpkg.com/@date-io/date-fns-jalali/-/date-fns-jalali-2.10.8.tgz#0846c618f1a51f47c47b179495fe5d1af1f351c8"
integrity sha512-Rh0epyydKSfkknozeviViZSuZ8+FW10ta3hjz08KpzU4tnKRLKFi4lwIAd6EMezO/07BrN8tkizAEnx8eXYlIw==
"@date-io/date-fns-jalali@^2.11.0":
version "2.11.0"
resolved "https://registry.yarnpkg.com/@date-io/date-fns-jalali/-/date-fns-jalali-2.11.0.tgz#42b624d094d5bbfc052c59335e7049969be18ae2"
integrity sha512-YgWs9PzDp1p5iSvQ0N00+0h2YZlh5+Lt7hdHQI4TuwJPmKqdS0RAPdZUnbQmDlE8rqNu0WoeRQLkVjCorcNy5w==
dependencies:
"@date-io/core" "^2.10.7"
"@date-io/core" "^2.11.0"

"@date-io/date-fns@^2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@date-io/date-fns/-/date-fns-2.10.6.tgz#d0afee6452d80112017f42af4912ba22d95b11b6"
integrity sha512-jUiIbs4VCmACy2Ml2xu3tqf0AUSZu4qQ3cRz8SoG4YPzeg1fqII8y/gTa7GJkXiH0bUKUWaf/G2dfJa9tUnmJA==
"@date-io/date-fns@^2.11.0":
version "2.11.0"
resolved "https://registry.yarnpkg.com/@date-io/date-fns/-/date-fns-2.11.0.tgz#142fbf954eda7ad66514af7a2802d78c4ea40053"
integrity sha512-mPQ71plBeFrArvBSHtjWMHXA89IUbZ6kuo2dsjlRC/1uNOybo91spIb+wTu03NxKTl8ut07s0jJ9svF71afpRg==
dependencies:
"@date-io/core" "^2.10.6"
"@date-io/core" "^2.11.0"

"@date-io/dayjs@^2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@date-io/dayjs/-/dayjs-2.10.6.tgz#8ac598813f349090d5af677184c37a8804a1081f"
integrity sha512-hAJXEt+cLUYn+5l84Mo0P2BXtyQcQSSKrzGUYFAuQL9zYS2BlXH3s/fXOygv+saxaMR0wCVtVAT9h7yC1Usnew==
"@date-io/dayjs@^2.11.0":
version "2.11.0"
resolved "https://registry.yarnpkg.com/@date-io/dayjs/-/dayjs-2.11.0.tgz#41f4b4b9629612e6012accffd848875d1aeffb74"
integrity sha512-w67vRK56NZJIKhJM/CrNbfnIcuMvR3ApfxzNZiCZ5w29sxgBDeKuX4M+P7A9r5HXOMGcsOcpgaoTDINNGkdpGQ==
dependencies:
"@date-io/core" "^2.10.6"
"@date-io/core" "^2.11.0"

"@date-io/luxon@^2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@date-io/luxon/-/luxon-2.10.6.tgz#7bb1cb834e62c69ca0c223a9a7fe1609ff11a1d6"
integrity sha512-tSi8k0WoVzYGmQB5bvQ8G4MUS9xomvCh72XiQOm0gjII9Wm0PIclzI4sLlyhwmqTUYnuyaRdQAMK1UaY3iBBUA==
"@date-io/luxon@^2.11.1":
version "2.11.1"
resolved "https://registry.yarnpkg.com/@date-io/luxon/-/luxon-2.11.1.tgz#31a72f7b5e163c74e8a3b29d8f16c4c30de6ed43"
integrity sha512-JUXo01kdPQxLORxqdENrgdUhooKgDUggsNRSdi2BcUhASIY2KGwwWXu8ikVHHGkw+DUF4FOEKGfkQd0RHSvX6g==
dependencies:
"@date-io/core" "^2.10.6"
"@date-io/core" "^2.11.0"

"@date-io/moment@^2.10.6":
version "2.10.6"
resolved "https://registry.yarnpkg.com/@date-io/moment/-/moment-2.10.6.tgz#09fd03aed71d5df62bd9fa27446b6483093f767d"
integrity sha512-oIo24tW/l5kFxYV2B3Hc0joYKh59p7X7S36u0/inmf+Rk0Z8B4nU9jxuAgx5gbkFY2NVLwo1kr4l0CO2POtkYA==
"@date-io/moment@^2.11.0":
version "2.11.0"
resolved "https://registry.yarnpkg.com/@date-io/moment/-/moment-2.11.0.tgz#850f8dd090d401845b39276d034dbabe20224ef5"
integrity sha512-QSL+83qezQ9Ty0dtFgAkk6eC0GMl/lgYfDajeVUDB3zVA2A038hzczRLBg29ifnBGhQMPABxuOafgWwhDjlarg==
dependencies:
"@date-io/core" "^2.10.6"
"@date-io/core" "^2.11.0"

"@definitelytyped/header-parser@latest":
version "0.0.85"
Expand Down

0 comments on commit 1e7851b

Please sign in to comment.