diff --git a/CHANGELOG.md b/CHANGELOG.md index 66aa040..2701db4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,17 @@ +## [4.4.1](https://github.com/react-scheduler/react-big-schedule/compare/4.4.0...4.4.1) +`2024-10-06` + +- Fix `CHANGELOG.MD` file. +- Removed `default` keyword from Scheduler Class in `typing/index.d.ts` file of typescript by [@ansulagrawal](https://github.com/ansulagrawal) in [#154](https://github.com/react-scheduler/react-big-schedule/pull/154). +- Updated utcOffset method calls to pass `new Date()` instead of `new Date().utcOffset` by [@ansulagrawal](https://github.com/ansulagrawal) in [#155](https://github.com/react-scheduler/react-big-schedule/pull/155). +-Updated `node_modules` version by [@ansulagrawal](https://github.com/ansulagrawal). + ## [4.4.0](https://github.com/react-scheduler/react-big-schedule/compare/4.3.3...4.4.0) `2024-02-21` - Updated `node_modules` version by [@ansulagrawal](https://github.com/ansulagrawal) in [#132](https://github.com/react-scheduler/react-big-schedule/pull/132). -- Fix Issue of Displaying hour headers properly in ViewType.Da by [@ansulagrawal](https://github.com/ansulagrawal) in [#131](https://github.com/react-scheduler/react-big-schedule/pull/131). +- Fix Issue of Displaying hour headers properly in ViewType.Data by [@ansulagrawal](https://github.com/ansulagrawal) in [#131](https://github.com/react-scheduler/react-big-schedule/pull/131). - Bump webpack-dev-server from 4.15.1 to 5.0.2 by [@dependabot](https://github.com/dependabot) in [#130](https://github.com/react-scheduler/react-big-schedule/pull/130). ## [4.3.3](https://github.com/react-scheduler/react-big-schedule/compare/4.3.2...4.3.3) diff --git a/package.json b/package.json index 4ae2f04..55d1342 100644 --- a/package.json +++ b/package.json @@ -59,37 +59,37 @@ "fix": "eslint ./" }, "dependencies": { - "@ant-design/icons": "^5.3.0", - "antd": "^5.14.1", - "dayjs": "^1.11.10", + "@ant-design/icons": "^5.5.1", + "antd": "^5.21.2", + "dayjs": "^1.11.13", "prop-types": "^15.8.1", - "react": "^18.2.0", + "react": "^18.3.1", "react-dnd": "^14.0.5", "react-dnd-html5-backend": "^14.1.0", - "react-dom": "^18.2.0", + "react-dom": "^18.3.1", "rrule": "^2.8.1" }, "devDependencies": { - "@babel/cli": "^7.23.9", - "@babel/core": "^7.23.9", - "@babel/eslint-parser": "^7.23.10", - "@babel/preset-env": "^7.23.9", - "@babel/preset-react": "^7.23.3", - "babel-loader": "^9.1.3", + "@babel/cli": "^7.25.7", + "@babel/core": "^7.25.7", + "@babel/eslint-parser": "^7.25.7", + "@babel/preset-env": "^7.25.7", + "@babel/preset-react": "^7.25.7", + "babel-loader": "^9.2.1", "copy-webpack-plugin": "^12.0.2", - "css-loader": "^6.10.0", - "eslint": "^8.56.0", + "css-loader": "^7.1.2", + "eslint": "^8.2.0", "eslint-config-airbnb": "^19.0.4", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-react": "^7.33.2", - "eslint-plugin-react-hooks": "^4.6.0", - "eslint-webpack-plugin": "^4.0.1", + "eslint-plugin-import": "^2.31.0", + "eslint-plugin-jsx-a11y": "^6.10.0", + "eslint-plugin-react": "^7.37.1", + "eslint-plugin-react-hooks": "^4.6.2", + "eslint-webpack-plugin": "^4.2.0", "fs-extra": "^11.2.0", "html-webpack-plugin": "^5.6.0", - "style-loader": "^3.3.4", - "webpack": "^5.90.3", + "style-loader": "^4.0.0", + "webpack": "^5.95.0", "webpack-cli": "^5.1.4", - "webpack-dev-server": "^5.0.2" + "webpack-dev-server": "^5.1.0" } } diff --git a/src/components/SchedulerData.js b/src/components/SchedulerData.js index 44089a3..fdfed08 100644 --- a/src/components/SchedulerData.js +++ b/src/components/SchedulerData.js @@ -583,12 +583,12 @@ export default class SchedulerData { recurringEventEnd: item.end, id: `${item.id}-${index}`, start: rule.origOptions.tzid - ? this.localeDayjs.utc(time).utcOffset(this.localeDayjs(new Date().utcOffset)(), true).format(DATETIME_FORMAT) + ? this.localeDayjs.utc(time).utcOffset(this.localeDayjs(new Date()).utcOffset(), true).format(DATETIME_FORMAT) : this.localeDayjs(new Date(time)).format(DATETIME_FORMAT), end: rule.origOptions.tzid ? this.localeDayjs .utc(time) - .utcOffset(this.localeDayjs(new Date().utcOffset)(), true) + .utcOffset(this.localeDayjs(new Date()).utcOffset(), true) .add(oldEnd.diff(oldStart), 'ms') .add(this.localeDayjs(new Date(oldUntil)).utcOffset() - this.localeDayjs(new Date(item.start)).utcOffset(), 'm') .format(DATETIME_FORMAT) diff --git a/typing/index.d.ts b/typing/index.d.ts index 35d55c6..1e91181 100644 --- a/typing/index.d.ts +++ b/typing/index.d.ts @@ -1,7 +1,7 @@ import { ConfigType, Dayjs, OptionType } from 'dayjs'; import React, { CSSProperties } from 'react'; -export default class Scheduler extends React.Component, any> {} +export class Scheduler extends React.Component, any> {} export const AddMorePopover: (props: AddMorePopoverProps) => React.ReactElement;