Skip to content

Commit

Permalink
* Bump version to 14.2.3
Browse files Browse the repository at this point in the history
* Change packaging to include full moment.js locale library to fix date processing issues for some users
  • Loading branch information
sulkaharo authored and 4gra committed May 25, 2022
1 parent b8b2534 commit fafabcc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/server/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"info": {
"title": "Nightscout API",
"description": "Own your DData with the Nightscout API",
"version": "14.2.2",
"version": "14.2.3",
"license": {
"name": "AGPL 3",
"url": "https://www.gnu.org/licenses/agpl.txt"
Expand Down
2 changes: 1 addition & 1 deletion lib/server/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ servers:
info:
title: Nightscout API
description: Own your DData with the Nightscout API
version: 14.2.2
version: 14.2.3
license:
name: AGPL 3
url: 'https://www.gnu.org/licenses/agpl.txt'
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nightscout",
"version": "14.2.2",
"version": "14.2.3",
"description": "Nightscout acts as a web-based CGM (Continuous Glucose Montinor) to allow multiple caregivers to remotely view a patients glucose data in realtime.",
"license": "AGPL-3.0",
"author": "Nightscout Team",
Expand Down
13 changes: 2 additions & 11 deletions webpack/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require('path');
const webpack = require('webpack');
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
const pluginArray = [];
const sourceMapType = 'source-map';
const MomentTimezoneDataPlugin = require('moment-timezone-data-webpack-plugin');
Expand Down Expand Up @@ -60,16 +59,8 @@ pluginArray.push(new webpack.ProvidePlugin({
// limit Timezone data from Moment

pluginArray.push(new MomentTimezoneDataPlugin({
startYear: 2010,
endYear: new Date().getFullYear() + 10,
}));

// Strip all locales except the ones defined in lib/language.js
// (“en” is built into Moment and can’t be removed, 'dk' is not defined in moment)
pluginArray.push(new MomentLocalesPlugin({
localesToKeep: ['bg', 'cs', 'de', 'el', 'es', 'fi', 'fr', 'he', 'hr', 'it', 'ko', 'nb', 'nl', 'pl', 'pt', 'ro', 'ru',
'sk', 'sv', 'zh_cn', 'zh_tw'
],
startYear: 2015,
endYear: 2035,
}));

if (process.env.NODE_ENV === 'development') {
Expand Down

0 comments on commit fafabcc

Please sign in to comment.