chore(deps): update elm (major) #890
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.0.0→7.0.03.11.0→4.0.01.0.0→2.4.011.0.0→12.0.0Release Notes
elm-community/graph (elm-community/graph)
v7.0.0Compare Source
ianmackenzie/elm-geometry (ianmackenzie/elm-geometry)
v4.0.0Compare Source
Despite the major version bump, this is really just a clean-up release with three main changes.
Changing 3D vector/direction rotation functions to take a
Direction3dinstead of anAxis3dPreviously,
Vector3d.rotateAroundandDirection3d.rotateAroundtook anAxis3das an argument even though the origin point of the axis wasn't used, only the axis direction. This was to be consistent with all other 3DrotateAroundfunctions, but can be confusing and in some cases could force you to create an axis with a dummy origin point, which seems messy. These two functions now accept aDirection3dinstead, so you may need to change some code from (e.g.)to
Thanks @MartinSStewart for bringing this up!
Renaming
ArcLengthParameterizationtoArcLengthI originally used the longer name for this module since it's the only module in
elm-geometrythat doesn't have a2dor3dsuffix, and I wanted to add something to make the name less likely to conflict with modules in other packages. However, several years later the Elm package repository still doesn't have any other packages that mention arc length, so it looks like the simpler name is probably OK.No functionality has been changed, but all the names have:
ArcLengthParameterization.ArcLengthParameterizationArcLength.ParameterizationArcLengthParameterization.buildArcLength.parameterizationArcLengthParameterization.totalArcLengthArcLength.totalArcLengthParameterization.arcLengthToParameterValueArcLength.toParameterValueArcLengthParameterization.parameterValueToArcLengthArcLength.fromParameterValueI personally now like using the
Parameterizationtype qualified; instead ofI now tend to write
Relaxing vector construction/transformation type signatures
This one is subtle and shouldn't actually be a breaking change for any code, since the only change is making some type signatures more permissive (all existing code should still type-check just fine, and the behaviour is unchanged). The short version is that a few vector-related functions were requiring units types to match when they didn't actually need to, and those type signatures have now been relaxed to be more permissive (and more correct!).
For example, in
elm-geometry3.x, theVector3d.mirrorAcrossfunction had the following signature:The
unitstype parameter here will most commonly beMeters, meaning that:Length(a.k.a.Quantity Float Meters) values; that is, the coordinates are measured in meters, centimeters, feet, inches etc.Lengthvalues; that is, the vector is a displacement (a vector between two points).However, it's not actually necessary for those two units types to match! Since mirroring a vector across a plane doesn't involve the plane's origin point (just the plane's normal direction, which is unitless) it's not actually necessary that the units of the vector match the units of the plane's origin point. For example, it's totally valid (and sometimes useful) to mirror a velocity vector (with units of
MetersPerSecond) across a plane with units ofMeters. As a result,Vector3d.mirrorAcrossnow has the signatureThat is, the plane and vector are still enforced to be defined in the same coordinate system, and the units of the mirrored vector are enforced to be the same as the original vector, but the units of the plane and vector are allowed be different.
Of course, the units don't have to be different, so any existing code that (for example) mirrors a
Vector3d Meters WorldCoordinatesacross aPlane3d Meters WorldCoordinateswill still compile and run exactly the same as before. The Elm compiler considers this change a breaking one, but all it actually does is allow certain kinds of code that weren't allowed previously.It's not just transformation functions like
mirrorAcrossthat have been updated - several vector construction functions have had similar changes. For example, it is now possible to do things like construct a velocity vector with units ofMetersPerSecondby providing its components within a sketch plane with units ofMeters:(Note how the vector units are now allowed to be different from the sketch plane units.)
Full list of functions with updated signatures:
Vector2dxyInrThetaInrelativeToplaceInprojectOnto(Note that
Vector2d.mirrorAcrosswas the one function that actually had the correct type signature already, so didn't need to be updated.)Vector3dxyzInonxyOnrThetaOnrelativeToplaceInrotateAroundmirrorAcrossprojectOntoprojectIntoryan-haskell/date-format (ryan-haskell/date-format)
v2.4.0Compare Source
v2.3.0Compare Source
This is a MINOR change.
DateFormat.Language - MINOR
v2.2.0Compare Source
This is a MINOR change.
DateFormat.Language - MINOR
v2.1.0Compare Source
This is a MINOR change.
DateFormat.Language - MINOR
v2.0.1Compare Source
Spooky Update!
🎃 Add in the month of October, during October.
v2.0.0Compare Source
This is a MAJOR change.
ADDED MODULES - MINOR
DateFormat - MAJOR
DateFormat.Relative - MINOR
vito/elm-ansi (vito/elm-ansi)
v12.0.0Compare Source
v11.0.1Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.