Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.8.0 #81

Merged
merged 1 commit into from
Aug 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
return 1;
}

define( 'DATAVALUES_NUMBER_VERSION', '0.7.0' );
define( 'DATAVALUES_NUMBER_VERSION', '0.8.0' );

if ( defined( 'MEDIAWIKI' ) ) {
$GLOBALS['wgExtensionCredits']['datavalues'][] = array(
Expand Down
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ The recommended way to use this library is via [Composer](http://getcomposer.org
To add this package as a local, per-project dependency to your project, simply add a
dependency on `data-values/number` to your project's `composer.json` file.
Here is a minimal example of a `composer.json` file that just defines a dependency on
version 0.7 of this package:
version 0.8 of this package:

{
"require": {
"data-values/number": "0.7.*"
"data-values/number": "0.8.*"
}
}

Expand All @@ -50,6 +50,21 @@ DataValues Number has been written by Daniel Kinzler, as [Wikimedia Germany]

## Release notes

### 0.8.0 (2016-08-01)

* Added `DecimalValue::getTrimmed`.
* Added `UnboundedQuantityValue`.
* `QuantityValue` extends `UnboundedQuantityValue`.
* `QuantityParser` returns `UnboundedQuantityValue`s instead of always guessing an uncertainty
interval.
* `QuantityFormatter` also accepts `UnboundedQuantityValue`s.
* `QuantityParser` defaults to ±0.5 instead of ±1 when asked to guess an uncertainty interval, e.g.
`1~` becomes `1±0.5`.
* `QuantityFormatter` does not round any more when the value is rendered with a known uncertainty
interval.
* Fixed rounding algorithm in `DecimalMath` (rounded 1.45 to 2 instead of 1).
* `DecimalValue` constructor optionally accepts strings with no leading plus sign.

### 0.7.0 (2016-04-25)

#### Breaking changes
Expand Down