Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Move moment to peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jducro committed Nov 29, 2018
1 parent 3fd9d1d commit 286624d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v1.4.4 - 2018-11-29

* [FIX] - Fix style broken on Toggle
* [FIX] - Move moment to peerDependencies

## v1.4.3 - 2018-11-29

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deskpro/react-components",
"version": "1.4.4-beta.1",
"version": "1.4.4-beta.2",
"description": "Deskpro React Components",
"main": "dist/index.js",
"homepage": "https://github.com/deskpro/react-components",
Expand Down Expand Up @@ -86,6 +86,7 @@
"husky": "^0.14.3",
"jest": "^23.6.0",
"lint-staged": "^6.0.0",
"moment": "^2.20.0",
"node-sass": "^4.9.2",
"node-sass-tilde-importer": "^1.0.2",
"postcss-loader": "^2.0.6",
Expand Down Expand Up @@ -119,7 +120,6 @@
"@fortawesome/free-solid-svg-icons": "^5.4.1",
"@fortawesome/react-fontawesome": "0.1.3",
"classnames": "^2.2.6",
"moment": "^2.20.0",
"popper.js": "^1.14.3",
"react-autosuggest": "^9.3.4",
"react-color": "^2.14.1",
Expand All @@ -132,7 +132,8 @@
"util-deprecate": "^1.0.2"
},
"peerDependencies": {
"react": "^15.6.2 || ^16.0.0-alpha"
"react": "^15.6.2 || ^16.0.0-alpha",
"moment": "^2.20.0"
},
"jest": {
"collectCoverageFrom": [
Expand Down
5 changes: 4 additions & 1 deletion src/utils/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import { objectForEach } from './objects';
* Upper cases the first letter in a string
*
* @param {string} str The string to transform
* @returns {string}
* @returns {string|null}
*/
export function stringUpperFirst(str) {
if (!str) {
return null;
}
return str.charAt(0).toUpperCase() + str.slice(1);
}

Expand Down

0 comments on commit 286624d

Please sign in to comment.