Skip to content

Commit

Permalink
Release 6.1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony0030 committed Oct 22, 2024
1 parent 0327a13 commit 8019098
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [6.1.24]
Bump elliptic from 6.5.4 to 6.5.7 (#322)
Bump express from 4.19.2 to 4.21.0 (#321)

## [6.1.23-beta]
Adds code to fix changing locale on the fly

## [6.1.22]
Fixes problem with react-syntax-highlighter

Expand Down
8 changes: 7 additions & 1 deletion build/react-live-clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -21263,7 +21263,9 @@ var _reactMoment = __webpack_require__(148);

var _reactMoment2 = _interopRequireDefault(_reactMoment);

__webpack_require__(142);
var _momentTimezone = __webpack_require__(142);

var _momentTimezone2 = _interopRequireDefault(_momentTimezone);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

Expand Down Expand Up @@ -21324,6 +21326,10 @@ function ReactLiveClock(props) {
return joinArray;
}

(0, _react.useEffect)(function () {
_momentTimezone2.default.locale('locale');
}, [locale]);

(0, _react.useEffect)(function () {
if (noSsr && document) {
setNoSsr(false);
Expand Down
2 changes: 1 addition & 1 deletion build/react-live-clock.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/react-live-clock.min.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion lib/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ var _reactMoment = require('react-moment');

var _reactMoment2 = _interopRequireDefault(_reactMoment);

require('moment-timezone');
var _momentTimezone = require('moment-timezone');

var _momentTimezone2 = _interopRequireDefault(_momentTimezone);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

Expand Down Expand Up @@ -82,6 +84,10 @@ function ReactLiveClock(props) {
return joinArray;
}

(0, _react.useEffect)(function () {
_momentTimezone2.default.locale('locale');
}, [locale]);

(0, _react.useEffect)(function () {
if (noSsr && document) {
setNoSsr(false);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-live-clock",
"version": "6.1.23-beta",
"version": "6.1.24",
"description": "React Live Clock",
"main": "lib/index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 8019098

Please sign in to comment.