[Pkg-javascript-commits] [node-moment] 04/08: New upstream version 2.17.1+ds

Julien Puydt julien.puydt at laposte.net
Wed Jan 11 09:32:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-moment.

commit e85d31ec85b71af67794cf25ad93330a5cb7b5e7
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Wed Jan 11 10:29:16 2017 +0100

    New upstream version 2.17.1+ds
---
 CHANGELOG.md                 |  7 +++++++
 CONTRIBUTING.md              |  2 +-
 Moment.js.nuspec             |  2 +-
 component.json               |  3 +--
 locale/bg-x.js               | 15 ---------------
 locale/yo.js                 |  2 +-
 meteor/package.js            |  2 +-
 min/locales.js               |  6 +-----
 min/moment-with-locales.js   | 10 +++-------
 moment.d.ts                  | 16 ++++++++--------
 moment.js                    |  4 ++--
 package.json                 |  4 ++--
 src/locale/bg-x.js           |  5 -----
 src/locale/yo.js             |  2 +-
 src/moment.js                |  4 ++--
 typing-tests/moment-tests.ts | 13 ++++++++-----
 typing-tests/tsconfig.json   |  3 +--
 17 files changed, 40 insertions(+), 60 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 88162c3..59ec40c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,13 @@
 Changelog
 =========
 
+### 2.17.1 [Also available here](https://gist.github.com/ichernev/f38280b2b29c4932914a6d3a4e50bfb2)
+* Release Dec 03, 2016
+
+* [#3638](https://github.com/moment/moment/pull/3638) [misc] TS: Make typescript definitions work with 1.x
+* [#3628](https://github.com/moment/moment/pull/3628) [misc] Adds "sign CLA" link to `CONTRIBUTING.md`
+* [#3640](https://github.com/moment/moment/pull/3640) [misc] Fix locale issues
+
 ### 2.17.0 [Also available here](https://gist.github.com/ichernev/ed58f76fb95205eeac653d719972b90c)
 * Release Nov 22, 2016
 
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 82385e3..86765ba 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -7,7 +7,7 @@ Read before submitting Pull Requests
 ====================================
 
  * **Pull requests to the `master` branch will be closed.** Please submit all pull requests to the `develop` branch.
- * **You will be required to sign a JS Foundation CLA before your pull request can be merged.**
+ * **You will be required to sign a JS Foundation CLA before your pull request can be merged.** [Sign it right now](https://cla.js.foundation/moment/moment).
  * **Locale translations will not be merged without unit tests.** See [the British English unit tests](https://github.com/moment/moment/blob/develop/src/test/locale/en-gb.js) for an example.
  * **Do not include the minified files in your pull request.** These are
    `moment.js`, `locale/*.js`, `min/*.js`. Don't worry, we'll build them when
diff --git a/Moment.js.nuspec b/Moment.js.nuspec
index 77b9793..08c763c 100644
--- a/Moment.js.nuspec
+++ b/Moment.js.nuspec
@@ -2,7 +2,7 @@
 <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
     <metadata>
         <id>Moment.js</id>
-        <version>2.17.0</version>
+        <version>2.17.1</version>
         <authors>Tim Wood, Iskren Chernev, Moment.js contributors</authors>
         <owners>Cory Deppen, Iskren Chernev</owners>
         <description>A lightweight JavaScript date library for parsing, manipulating, and formatting dates.</description>
diff --git a/component.json b/component.json
index 4ad07b1..8d59002 100644
--- a/component.json
+++ b/component.json
@@ -1,6 +1,6 @@
 {
   "name": "moment",
-  "version": "2.17.0",
+  "version": "2.17.1",
   "main": "moment.js",
   "description": "Parse, validate, manipulate, and display dates in JavaScript.",
   "files": [
@@ -14,7 +14,6 @@
     "locale/ar.js",
     "locale/az.js",
     "locale/be.js",
-    "locale/bg-x.js",
     "locale/bg.js",
     "locale/bn.js",
     "locale/bo.js",
diff --git a/locale/bg-x.js b/locale/bg-x.js
deleted file mode 100644
index e91a4f8..0000000
--- a/locale/bg-x.js
+++ /dev/null
@@ -1,15 +0,0 @@
-
-;(function (global, factory) {
-   typeof exports === 'object' && typeof module !== 'undefined'
-       && typeof require === 'function' ? factory(require('../moment')) :
-   typeof define === 'function' && define.amd ? define(['../moment'], factory) :
-   factory(global.moment)
-}(this, (function (moment) { 'use strict';
-
-var bgX = moment.defineLocale('bg-x', {
-    parentLocale: 'bg'
-});
-
-return bgX;
-
-})));
diff --git a/locale/yo.js b/locale/yo.js
index e68b1e1..760ac96 100644
--- a/locale/yo.js
+++ b/locale/yo.js
@@ -1,5 +1,5 @@
 //! moment.js locale configuration
-//! locale : Yoruba Nigeria (yo)
+//! locale : Yoruba Nigeria [yo]
 //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
 
 ;(function (global, factory) {
diff --git a/meteor/package.js b/meteor/package.js
index efe719d..e84608c 100644
--- a/meteor/package.js
+++ b/meteor/package.js
@@ -6,7 +6,7 @@ var packageName = 'momentjs:moment';  // https://atmospherejs.com/momentjs/momen
 Package.describe({
   name: packageName,
   summary: 'Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging',
-  version: '2.17.0',
+  version: '2.17.1',
   git: 'https://github.com/moment/moment.git'
 });
 
diff --git a/min/locales.js b/min/locales.js
index 1f2eac0..a77817a 100644
--- a/min/locales.js
+++ b/min/locales.js
@@ -769,10 +769,6 @@ moment.defineLocale('be', {
     }
 });
 
-moment.defineLocale('bg-x', {
-    parentLocale: 'bg'
-});
-
 //! moment.js locale configuration
 //! locale : Bulgarian [bg]
 //! author : Krasen Borisov : https://github.com/kraz
@@ -8270,7 +8266,7 @@ moment.defineLocale('x-pseudo', {
 });
 
 //! moment.js locale configuration
-//! locale : Yoruba Nigeria (yo)
+//! locale : Yoruba Nigeria [yo]
 //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
 
 moment.defineLocale('yo', {
diff --git a/min/moment-with-locales.js b/min/moment-with-locales.js
index fda4d1a..b5b0668 100644
--- a/min/moment-with-locales.js
+++ b/min/moment-with-locales.js
@@ -4258,12 +4258,12 @@ addParseToken('x', function (input, array, config) {
 // Side effect imports
 
 //! moment.js
-//! version : 2.17.0
+//! version : 2.17.1
 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
 //! license : MIT
 //! momentjs.com
 
-hooks.version = '2.17.0';
+hooks.version = '2.17.1';
 
 setHookCallback(createLocal);
 
@@ -5059,10 +5059,6 @@ hooks.defineLocale('be', {
     }
 });
 
-hooks.defineLocale('bg-x', {
-    parentLocale: 'bg'
-});
-
 //! moment.js locale configuration
 //! locale : Bulgarian [bg]
 //! author : Krasen Borisov : https://github.com/kraz
@@ -12556,7 +12552,7 @@ hooks.defineLocale('x-pseudo', {
 });
 
 //! moment.js locale configuration
-//! locale : Yoruba Nigeria (yo)
+//! locale : Yoruba Nigeria [yo]
 //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
 
 hooks.defineLocale('yo', {
diff --git a/moment.d.ts b/moment.d.ts
index 01aa732..2234ea7 100644
--- a/moment.d.ts
+++ b/moment.d.ts
@@ -68,7 +68,7 @@ declare namespace moment {
     sameElse?: CalendarSpecVal;
 
     // any additional properties might be used with moment.calendarFormat
-    [x: string]: CalendarSpecVal | undefined;
+    [x: string]: CalendarSpecVal | void; // undefined
   }
 
   type RelativeTimeSpecVal = (
@@ -248,12 +248,12 @@ declare namespace moment {
     overflow: number;
     charsLeftOver: number;
     nullInput: boolean;
-    invalidMonth: string | null;
+    invalidMonth: string | void; // null
     invalidFormat: boolean;
     userInvalidated: boolean;
     iso: boolean;
     parsedDateParts: any[];
-    meridiem: string | null;
+    meridiem: string | void; // null
   }
 
   interface MomentParsingFlagsOpt {
@@ -389,8 +389,8 @@ declare namespace moment {
     to: MomentInput;
   }
 
-  type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | null | undefined;
-  type DurationInputArg1 = Duration | number | string | FromTo | DurationInputObject | null | undefined;
+  type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
+  type DurationInputArg1 = Duration | number | string | FromTo | DurationInputObject | void; // null | undefined
   type DurationInputArg2 = unitOfTime.DurationConstructor;
   type LocaleSpecifier = string | Moment | Duration | string[];
 
@@ -632,7 +632,7 @@ declare namespace moment {
 
   export function locale(language?: string): string;
   export function locale(language?: string[]): string;
-  export function locale(language?: string, definition?: LocaleSpecification | null | undefined): string;
+  export function locale(language?: string, definition?: LocaleSpecification | void): string; // null | undefined
 
   export function localeData(key?: string | string[]): Locale;
 
@@ -684,8 +684,8 @@ declare namespace moment {
    */
   export function now(): number;
 
-  export function defineLocale(language: string, localeSpec: LocaleSpecification | null): Locale;
-  export function updateLocale(language: string, localeSpec: LocaleSpecification | null): Locale;
+  export function defineLocale(language: string, localeSpec: LocaleSpecification | void): Locale; // null
+  export function updateLocale(language: string, localeSpec: LocaleSpecification | void): Locale; // null
 
   export function locales(): string[];
 
diff --git a/moment.js b/moment.js
index d897b8f..f2269a1 100644
--- a/moment.js
+++ b/moment.js
@@ -1,5 +1,5 @@
 //! moment.js
-//! version : 2.17.0
+//! version : 2.17.1
 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
 //! license : MIT
 //! momentjs.com
@@ -4264,7 +4264,7 @@ addParseToken('x', function (input, array, config) {
 // Side effect imports
 
 
-hooks.version = '2.17.0';
+hooks.version = '2.17.1';
 
 setHookCallback(createLocal);
 
diff --git a/package.json b/package.json
index ef1c619..413cfab 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
     "name": "moment",
-    "version": "2.17.0",
+    "version": "2.17.1",
     "description": "Parse, validate, manipulate, and display dates",
     "homepage": "http://momentjs.com",
     "author": "Iskren Ivov Chernev <iskren.chernev at gmail.com> (https://github.com/ichernev)",
@@ -65,7 +65,7 @@
         "qunit-cli": "^0.1.4",
         "rollup": "latest",
         "spacejam": "latest",
-        "typescript": "^2.0.8",
+        "typescript": "^1.8.10",
         "coveralls": "^2.11.2",
         "nyc": "^2.1.4"
     },
diff --git a/src/locale/bg-x.js b/src/locale/bg-x.js
deleted file mode 100644
index 0fb9de0..0000000
--- a/src/locale/bg-x.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import moment from '../moment';
-
-export default moment.defineLocale('bg-x', {
-    parentLocale: 'bg'
-});
diff --git a/src/locale/yo.js b/src/locale/yo.js
index 4ccb67a..e7ee7a2 100644
--- a/src/locale/yo.js
+++ b/src/locale/yo.js
@@ -1,5 +1,5 @@
 //! moment.js locale configuration
-//! locale : Yoruba Nigeria (yo)
+//! locale : Yoruba Nigeria [yo]
 //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
 
 import moment from '../moment';
diff --git a/src/moment.js b/src/moment.js
index 671b4dc..859c2f9 100644
--- a/src/moment.js
+++ b/src/moment.js
@@ -1,12 +1,12 @@
 //! moment.js
-//! version : 2.17.0
+//! version : 2.17.1
 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
 //! license : MIT
 //! momentjs.com
 
 import { hooks as moment, setHookCallback } from './lib/utils/hooks';
 
-moment.version = '2.17.0';
+moment.version = '2.17.1';
 
 import {
     min,
diff --git a/typing-tests/moment-tests.ts b/typing-tests/moment-tests.ts
index 5a41aba..f65ba6b 100644
--- a/typing-tests/moment-tests.ts
+++ b/typing-tests/moment-tests.ts
@@ -22,7 +22,8 @@ var array = [2010, 1, 14, 15, 25, 50, 125];
 var day11 = moment(Date.UTC.apply({}, array));
 var day12 = moment.unix(1318781876);
 
-moment(null);
+// TODO: reenable in 2.0
+// moment(null);
 moment(undefined);
 moment({ years: 2010, months: 3, days: 5, hours: 15, minutes: 10, seconds: 3, milliseconds: 123 });
 moment("20140101", "YYYYMMDD", true);
@@ -225,7 +226,8 @@ localLang.localeData();
 localLang.format('LLLL');
 globalLang.format('LLLL');
 
-moment.duration(null);
+// TODO: reenable in 2.0
+// moment.duration(null);
 moment.duration(undefined);
 moment.duration(100);
 moment.duration(2, 'seconds');
@@ -259,9 +261,10 @@ moment.locale();
 moment.locale('en');
 moment.locale(['en', 'fr']);
 
-moment.defineLocale('en', null);
-moment.updateLocale('en', null);
-moment.locale('en', null);
+// TODO: Reenable in 2.0
+// moment.defineLocale('en', null);
+// moment.updateLocale('en', null);
+// moment.locale('en', null);
 
 // Defining a custom language:
 moment.locale('en', {
diff --git a/typing-tests/tsconfig.json b/typing-tests/tsconfig.json
index a7bc648..d000780 100644
--- a/typing-tests/tsconfig.json
+++ b/typing-tests/tsconfig.json
@@ -3,8 +3,7 @@
   "compilerOptions": {
     "module": "commonjs",
     "noEmit": true,
-    "noImplicitAny": true,
-    "strictNullChecks": true
+    "noImplicitAny": true
   },
   "files": [
     "../moment.d.ts",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-moment.git



More information about the Pkg-javascript-commits mailing list