All Versions
13
Latest Version
Avg Release Cycle
186 days
Latest Release
1352 days ago

Changelog History
Page 2

  • v0.6.2 Changes

    May 11, 2016

    May 10, 2016

    • βž• Addition of Information and DataRate dimensions
    • Integration with Scala.js
    • πŸ‘Œ Improvements to Vectors including
      • add map methods
      • add angle and polar methods for extracting the polar coordinates
      • rename to SVector with a factory methods for Double and Quantity based Vectors
      • better typing and dimensional conversions
    • βž• Addition of Quantity.map useful for mapping over underlying value without changing the type or units
    • βž• Addition of Time unit Nanoseconds
    • πŸ‘Œ Improve conversions to and from Time and scala.concurrent.Duration to preserve units
    • βž• Addition of Velocity unit KilometersPerSecond
    • πŸ›  Fixed an issue with the KilometersPerHour unit
    • βž• Added ability to initialize Quantities from strings in exponential format
    • βž• Addition of Area.squareRoot and Volume.cubeRoot, each returning a Length
    • βž• Addition of Length unit Angstroms
    • βž• Addition of Energy unit Ergs
    • βž• Addition of Power unit ErgsPerSecond
    • ⚑️ Update of INR currency symbol to β‚Ή
    • βœ… Working prototype of generic number support (in squants.experimental in the test code)
    • βž• Add GitHub source code links to scaladocs
    • βž• Addition of AreaDensity units GramsPerSquareCentimeter and KilogramsPerHectare
    • βœ‚ Removed bogus conversion Irradiance / Power -> Area
    • βž• Addition of SpectralIrradiance dimension
    • βž• Addition of Irradiance unit ErgsPerSecondPerSquareCentimeter
    • βž• Addition of support for OSGi

    Thanks to Derek Morr, Rmihael, Florian Nussberger, Ajay Chandran, Gia BαΊ£o, Josh Lemer, Dave DeCaprio and Carlos Quiroz for their contributions.

    Migration Notes

    With the integration of Scala.js, the library needed to be broken down into a few sub projects. This requires a slight change to how the console needs to be loaded. The correct command is now:

    sbt squantsJVM/console

    Vector has been renamed to SVector and now provides the factory methods for both Quantity and Double based vectors. User code that creates vectors should be modified to use this factory.
    🚚 The improvements to Vectors also removed the various experiments for dimensional conversion. These improvements are significant but still contain experimental API features which are subject to change.

    πŸš€ The support for generic numbers will exist only in test code for the project until we move on to 0.7.x development. Prior to that change, a 0.6.x release will be cut that will based on the old (Double) model. The goal will be to fully implement this feature during 0.7.x development.

    The new dimension Information was originally called Storage.

  • v0.5.3 Changes

    June 11, 2015

    June 11, 2015

    • ✨ Enhance Quantity model to preserve the unit used in creating the value
    • πŸ‘€ Rename UnitMultiplier trait to UnitConverter, the multiplier field to conversionFactor, and set access level of all fields to protected (see Migration notes)
    • πŸ“‡ Rename QuantityCompanion to Dimension
    • πŸ“‡ Rename Quantity.valueUnit to unit
    • πŸ“‡ Rename MassFlowRate to MassFlow
    • πŸ“‡ Rename VolumeFlowRate to VolumeFlow
    • βž• Add dimension value to Quantity
    • πŸ‘Œ Improvements to TimeIntegral and TimeDerivative traits
    • βž• Addition of TimeSquared, an intermediate non-quantity value, and SecondTimeDerivative, SecondTimeIntegral traits, all in support of second order time derivatives conversions.
    • βž• Addition of Acceleration.analyze() method - a candidate for a generic SecondTimeDerivative feature.
    • Addition of KineticEnergy method which takes Mass and Velocity and applies the conversion (Mass, Velocity) => 1/2(Mass * Velocity * Velocity) yielding an Energy value.
    • βž• Addition of KineticEnergy method which takes Mass and Momentum and applies the conversion (Mass, Momentum) => Momentum / (2 * Mass), yielding an Energy value.
    • βž• Addition of Mass units Kilopounds and Megapounds
    • βž• Addition of PowerRamp units WattsPerMinute and KilowattsPerMinutes
    • βž• Addition of MassFlow units PoundsPerSecond, PoundsPerHour, KilopoundsPerHour and MegapoundsPerHour
    • βž• Addition of VolumeFlow unit CubicFeetPerHour
    • βž• Addition of Dimensionless unit Percent
    • Normalize Temperature model
    • ✨ Enhance to UnitOfMeasure model to include primaryUnit and siUnit
    • βœ… Simplify Json Serializers in experimental.test
    • βœ‚ Removed redundant toString methods from a few classes
    • ⚑️ Update Length/Area/Volume operations to be unit-sensitive
    • πŸ“‡ Rename CubicMiles to CubicUsMiles
    • Modify constants to use Exp notation where appropriate
    • ⚑️ Update Scala versions to 2.11.6 and 2.10.5
    • βž• Add support for converting Quantity values to a Tuple2 and initializing a Quantity from a Tuple.
    • βž• Addition of PressureChange dimension
    • Correction of Bars / Pascals conversion factor

    Thanks to Steve Barham for his contributions.

    Migration Notes

    ⚑️ The change from UnitMultipler/multiplier -> UnitConverter/conversionFactor will only affect user code where new Quantity or UnitOfMeasure types have been created. That code should only need to be updated to reflect the new names. Code that only uses built-in quantities and units should not be affected.

    Modifications to the TimeIntegral and TimeDerivative hide the previously visible change and time fields, which are generally not useful in user code, but may affect Quantity implementations. In addition the TimeIntegral./() implementations have been replaced by a standard implementation within the trait.

    πŸ“¦ The ElementaryConstant value has been moved to the electro package.

    ⚑️ The renaming of Dimension, MassFlow, VolumeFlow, and CubicUsMiles may require user code to be updated.

    ⚑️ The update to the Quantity model - to preserve the unit used when creating, and rename valueUnit->unit - may affect some users that were accessing the valueUnit directly. Which should generally not be used directly access by user code. This will affect user code used to create new Dimensions, Quantities and Units.

  • v0.4.2 Changes

    July 06, 2014
    πŸ‘Œ Improvements to Market
    • βž• Add Price.in method for directly converting a price to a different currency
    • βž• Add Price.toString(unit) method to support formatting in a specific unit
    • βž• Add Money.toString overload to support formatting in a different currency
    • πŸ”¨ Refactor Currencies to be objects rather than vals (no change in usage)
    • βž• Add Currency./ method for creating exchange rates
    • βž• Add MoneyNumeric
    • βž• Add Comparisons for cross-currency Money values (==#, !=#, <#, <=#, >#, >=#)
    Other General Improvements
    • βž• Add Quantity.toString overload that supports standard number formatting (ie, "%3.2f")
    • βž• Add β‰ˆ as another approx operator
    • βž• Add SquantifiedBigDecimal, remove SquantifiedNumeric
    • Factor out common data and behavior to new QuantityCompanion trait - implemented for all data types except Money which currently requires special handling
    • πŸ‘€ Implement String => Quantity parsing conversions returning Try[Quantity] for all existing types (see Migration Notes below)
    • βž• Additional Units:
      • ElectricCharge: MilliampereHours, MilliampereSeconds
    • βž• Add unapply to UnitOfMeasure trait and deprecate existing extractors in its favor
    • βœ… Json Serialization - experimental, test code only
    • βœ… Generic Quantity Value - experimental, test code only
    • βž• Add support for Scala cross-version builds (2.10 and 2.11) with 2.11.1 as the default
    πŸ› Bug fixes
    • πŸ›  Fixed SquareInches.symbol

    Migration Note

    πŸ“œ Quantity String Parsing

    πŸ“œ String parsers no longer return Either[String, Q] but will return a Try[Q] instead (where Q is the specific quantity type). For example, Mass("10 kg") will return a Try[Mass].

    πŸ‘€ On failure the Try.failed will contain a QuantityStringParseException which includes the original string to be parsed. This could be used to recover using an alternative parser.

    Quantity Value Model Unification

    πŸ”¨ Quantity types implemented as case classes which stored the ratio components of their value (i.e. Velocity(length, time)) have been refactored to have a single underlying value.

    βœ… This reduction of all types to a single underlying value has resulted in some loss of precision - reflected in the use of more "approximately equal to" tests. However, this change is a precursor to future work that will support far better precision.

    Temperature and Money remain as exceptions to the prevailing model.