From f2ad141562df3d561f94985af147649b5cf92a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thiemo=20M=C3=A4ttig?= Date: Fri, 1 Sep 2017 16:44:45 +0200 Subject: [PATCH 1/2] Release 0.9.0 --- README.md | 6 ++++-- .../globeCoordinate.GlobeCoordinate.tests.js | 8 ++++---- tests/src/valueParsers/ValueParserStore.tests.js | 8 ++++---- tests/src/values/TimeValue.tests.js | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 87816ea..b042177 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,13 @@ On [Packagist](https://packagist.org/packages/data-values/javascript): ## Release notes -### 0.9.0 (dev) +### 0.9.0 (2017-09-01) * Removed `valueFormatters.ValueFormatterStore`. +* Removed the `options` constructor parameter as well as the `getOptions` method from + `valueFormatters.ValueFormatter`. +* Removed `dataValues.DataValue.getSortKey` from the interface and all implementations. * Removed `dataValues.TimeValue.getYear`, `getMonth`, `getDay`, `getHour`, `getMinute`, and `getSecond`. -* Removed `dataValues.DataValue.getSortKey` from the interface and all implementations. * Removed `globeCoordinate.GlobeCoordinate.iso6709`. * Declared `globeCoordinate.GlobeCoordinate.getDecimal` private. diff --git a/tests/lib/globeCoordinate/globeCoordinate.GlobeCoordinate.tests.js b/tests/lib/globeCoordinate/globeCoordinate.GlobeCoordinate.tests.js index 35ac743..76ecca4 100644 --- a/tests/lib/globeCoordinate/globeCoordinate.GlobeCoordinate.tests.js +++ b/tests/lib/globeCoordinate/globeCoordinate.GlobeCoordinate.tests.js @@ -17,22 +17,22 @@ define( [ assert.expect( 9 ); var c; - assert['throws']( + assert.throws( function() { c = new globeCoordinate.GlobeCoordinate( '' ); }, 'Trying to instantiate with an empty value throws an error.' ); - assert['throws']( + assert.throws( function() { c = new globeCoordinate.GlobeCoordinate( 'some string' ); }, 'Trying to instantiate with an invalid value (some string) throws an error.' ); - assert['throws']( + assert.throws( function() { c = new globeCoordinate.GlobeCoordinate( '190° 30" 1.123\'' ); }, 'Trying to instantiate with an invalid value (190° 30" 1.123\') throws an error.' ); - assert['throws']( + assert.throws( function() { c = new globeCoordinate.GlobeCoordinate( { latitude: 20 } ); }, 'Trying to instantiate with an invalid value ({ latitude: 20 }) throws an error.' ); diff --git a/tests/src/valueParsers/ValueParserStore.tests.js b/tests/src/valueParsers/ValueParserStore.tests.js index be2673d..5c9b24a 100644 --- a/tests/src/valueParsers/ValueParserStore.tests.js +++ b/tests/src/valueParsers/ValueParserStore.tests.js @@ -65,7 +65,7 @@ define( [ QUnit.test( 'registerDataTypeParser(): Error handling', function( assert ) { var parserStore = new vp.ValueParserStore(); - assert['throws']( + assert.throws( function() { parserStore.registerDataTypeParser( 'invalid', stringType.getId() ); }, @@ -74,7 +74,7 @@ define( [ parserStore.registerDataTypeParser( StringParser, stringType.getId() ); - assert['throws']( + assert.throws( function() { parserStore.getParser( stringType ); }, @@ -85,7 +85,7 @@ define( [ QUnit.test( 'registerDataValueParser(): Error handling', function( assert ) { var parserStore = new vp.ValueParserStore(); - assert['throws']( + assert.throws( function() { parserStore.registerDataValueParser( 'invalid', StringValue.TYPE ); }, @@ -94,7 +94,7 @@ define( [ parserStore.registerDataValueParser( StringParser, StringValue.TYPE ); - assert['throws']( + assert.throws( function() { parserStore.getParser( StringValue ); }, diff --git a/tests/src/values/TimeValue.tests.js b/tests/src/values/TimeValue.tests.js index 9d68184..ae117b6 100644 --- a/tests/src/values/TimeValue.tests.js +++ b/tests/src/values/TimeValue.tests.js @@ -89,7 +89,7 @@ define( [ for ( i = 0; i < invalidTimestamps.length; i++ ) { invalidTimestamp = invalidTimestamps[i]; - assert['throws']( + assert.throws( function() { dv.TimeValue( invalidTimestamp ); }, From 8de1b4fe29dced80c5dd5d9e49446caf4a4da0a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thiemo=20M=C3=A4ttig?= Date: Wed, 6 Sep 2017 17:22:25 +0200 Subject: [PATCH 2/2] Current date for 0.9.0 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b042177..8c71bd2 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ On [Packagist](https://packagist.org/packages/data-values/javascript): ## Release notes -### 0.9.0 (2017-09-01) +### 0.9.0 (2017-09-06) * Removed `valueFormatters.ValueFormatterStore`. * Removed the `options` constructor parameter as well as the `getOptions` method from `valueFormatters.ValueFormatter`.