Skip to content

Commit bffbee9

Browse files
committed
Merge v3 into master
2 parents 941c78d + 167d842 commit bffbee9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+9818
-31090
lines changed

.babelrc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"presets": [
3-
"es2015",
4-
"react"
5-
],
6-
"plugins": ["transform-remove-strict-mode"]
7-
}
2+
"presets": [
3+
"@babel/preset-react",
4+
"@babel/preset-env"
5+
],
6+
"plugins": [
7+
"@babel/plugin-proposal-class-properties"
8+
]
9+
}

.eslintrc.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
"env": {
3+
"es6": true,
34
"browser": true
45
},
56
"globals": {
@@ -38,5 +39,9 @@ module.exports = {
3839
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
3940
// Enforce using tabs for indentation
4041
"indent": [2, "tab", { "SwitchCase": 1 }]
41-
}
42+
},
43+
"parserOptions": {
44+
"sourceType": "module"
45+
},
46+
"extends": "react-app"
4247
};

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
1010
2) Some of the most frequently asked questions have the answer for them in the documentation.
1111
Be sure to read through the API carefully before publishing an issue:
12-
https://github.com/YouCanBookMe/react-datetime#api
12+
https://github.com/arqex/react-datetime#api
1313
We also use the label *Documentation* for issues that have code examples in them which may be
1414
useful for other developers, please have a look there as well:
15-
https://github.com/YouCanBookMe/react-datetime/issues?utf8=%E2%9C%93&q=label%3Adocumentation%20
15+
https://github.com/arqex/react-datetime/issues?utf8=%E2%9C%93&q=label%3Adocumentation%20
1616
1717
3) Discussions for version 3 of react-datetime has been initiated, and we have come up with some
1818
feature and bug candidates. This means that if a feature or bug has been requested/reported many
1919
times, it's likely to be a candidate for version 3. Make sure your bug or feature is not included
2020
in this list before publishing it.
2121
2222
You can find all the candidates here in the *Candidates* column:
23-
https://github.com/YouCanBookMe/react-datetime/projects/1
23+
https://github.com/arqex/react-datetime/projects/1
2424
-->
2525

2626

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ node_modules
44
tmp
55
.DS_Store
66
npm-debug.log
7+
8+
# Don't force sha validation (it differs depending on the OS)
9+
package-lock.json

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ sudo: false
33
os:
44
- linux
55
node_js:
6-
- '7'
76
- '8'
87
- 'stable'
98
script:

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": true
4+
}
5+
}

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
Changelog
22
=========
3+
## 3.0.0
4+
* Big refactor, the state is not derived from the props after every update.
5+
* `disableCloseOnClickOutside` prop is now `closeOnClickOutside` (avoid double negations).
6+
* `onBlur` and `onFocus` are renamed to `onClose` and `onOpen` since they had nothing to do with the blur event and it was misleading some users. If we want to listen to the input's `onBlur` and `onFocus` use `inputProps`.
7+
* `defaultValue` prop is now called `initialValue`.
8+
* Updated typescript definitions.
9+
* Time is not updated anymore on right clicks.
10+
* Creates `renderView` prop to customize the whole calendar.
11+
* Creates `updateOnView` prop to decide when to update the date.
12+
* `onViewModeChange` prop renamed to `onNavigate`.
13+
* Creates `onBeforeNavigate` prop.
14+
* Creates `setViewData` and `navigate` methods.
15+
* Fixes error clicking on days from the previous or next month in the days view.
16+
* Fixes month, year and time views for locales that doesn't use gregorian numbers.
17+
* Adds a playground to make simpler to try out the library by `npm run playground`.
18+
* Not depending on gulp to create the build anymore
19+
* Updated most of the dependencies.
20+
321
## 2.16.2
422
* Turns moment timezone peer dependency in a runtime error when missing using `displayTimezone`.
523

@@ -48,7 +66,7 @@ Changelog
4866

4967
## 2.10.2
5068
* Move @types/react back to devDependencies
51-
* Add [demo](https://youcanbookme.github.io/react-datetime) app.
69+
* Add [demo](https://codesandbox.io/s/boring-dew-uzln3) app.
5270

5371
## 2.10.1
5472
* Fix build files.

0 commit comments

Comments
 (0)