Skip to content

Build(deps): bump ianmackenzie/elm-units from 2.5.0 to 2.8.0#174

Closed
dependabot-preview[bot] wants to merge 1 commit into
masterfrom
dependabot/elm/ianmackenzie/elm-units-2.8.0
Closed

Build(deps): bump ianmackenzie/elm-units from 2.5.0 to 2.8.0#174
dependabot-preview[bot] wants to merge 1 commit into
masterfrom
dependabot/elm/ianmackenzie/elm-units-2.8.0

Conversation

@dependabot-preview
Copy link
Copy Markdown
Contributor

Bumps ianmackenzie/elm-units from 2.5.0 to 2.8.0.

Release notes

Sourced from ianmackenzie/elm-units's releases.

2.8.0

This release brings a couple of small improvements - first of all, the Volume module now has cubicCentimeters as an alias for milliliters thanks to @g-belmonte in #54:

Volume.cubicCentimeter : Volume
Volume.cubicCentimeters : Float -> Volume
Volume.inCubicCentimeters : Volume -> Float

Second, the Quantity module now has timesUnitless and overUnitless functions to smooth out some slightly annoying type-related wrinkles when multiplying and dividing by unitless quantities:

Quantity.timesUnitless : Quantity number Unitless -> Quantity number units -> Quantity number units
Quantity.overUnitless : Quantity Float Unitless -> Quantity Float units -> Quantity Float units

(For example, using timesUnitless lets you get a result with units type units instead of the Product Unitless units that you would get if you used the existing times.)

2.7.0

This release brings a few small new functions:

Angle.normalize : Angle -> Angle 
Quantity.unsafe : number -> Quantity number units
Quantity.unwrap : Quantity number units -> number

Angle.normalize is used to convert an arbitrary angle into the equivalent angle in the range -180 to +180 degrees; for example 330 degrees normalizes to -30 degrees. Note that you may need to be careful with roundoff error for angles near 180 degrees or -180 degrees; for example 180.0001 degrees will normalize to -179.9999 degrees which may not be what you expect.

Quantity.unsafe and Quantity.unwrap are equivalent to directly constructing/destructuring Quantity values and should generally be avoided if possible, but are useful in some low-level situations that may come up in packages that use elm-units.

2.6.0

This release brings a few new functions to the Pixels module:

Pixels.int : Int -> Quantity Int Pixels
Pixels.float : Float -> Quantity Float Pixels
Pixels.toInt : Quantity Int Pixels -> Int
Pixels.toFloat : Quantity Float Pixels -> Float

I find these a bit more readable/less awkward than the existing Pixels.pixels and Pixels.inPixels, but those two functions have the advantage of working with the generic number type instead of being specific to Int or Float - for example it is occasionally useful that a value like

screenWidth =
    Pixels.pixels 1920

can be passed to both functions that expect Quantity Int Pixels as well as ones that expect Quantity Float Pixels, without having to do any conversions such as Quantity.toFloatQuantity.

... (truncated)

Commits
  • 1c8c36d Bump to 2.8.0
  • df8310d Add timesUnitless and overUnitless
  • edefd9c Merge pull request #55 from carlosfrodrigues/master
  • 8a54170 Reformat Power.elm with elm-format
  • 2281159 Simplify Constants.watt definition slightly
  • 00bb9d3 Reformat Constants.elm with elm-format
  • 597f5f1 Add Carlos Felix to AUTHORS file
  • e4b7e5f Add Carlos Felix to AUTHORS file
  • f312d5b small requests for moving constants
  • 2c02d58 Move constants
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [ianmackenzie/elm-units](https://github.com/ianmackenzie/elm-units) from 2.5.0 to 2.8.0.
- [Release notes](https://github.com/ianmackenzie/elm-units/releases)
- [Commits](ianmackenzie/elm-units@2.5.0...2.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview Bot added the dependencies Pull requests that update a dependency file label Apr 12, 2021
@dependabot-preview
Copy link
Copy Markdown
Contributor Author

Superseded by #176.

@dependabot-preview dependabot-preview Bot deleted the dependabot/elm/ianmackenzie/elm-units-2.8.0 branch April 20, 2021 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants