8.0.0
Release notes
This release embodies a major re-working of elm-mdl internals:
Upgrade to Elm 0.18.
Many thanks to @MichaelCombs28 for providing a temporary elm-mdl upgrade fork
when we were too slow to upgrade the main repo.
Elm-mdl no longer relies on Parts
We removed all dependencies on the Parts library. This change essentially does
not affect the elm-mdl API. You still use the render
function to construct
elm-mdl widgets; you still do not have to represent them explicitly in your
model.
This change puts elm-mdl in conformance with component guidelines from Elm
language creators; in particular, elm-mdl no longer dispatches function values
in messages.
You can observe this change by adding Debug.log msg
someplace; you will then
be able to see readable, serialisable elm-mdl messages in your browser's
Javascript Console.
Support for arbitrary attributes and event handlers
You can now add any attribute of Html.Attributes.*
to any elm-mdl widget. If
you are adding event handlers, please do not use attributes from Html.Events
,
but use instead the ones from Material.Options
. Using the latter ensures that
if you are registering a handler for an event that elm-mdl also processes
internally, both handlers will trigger.
This change is due to very sophisticated work by @vipentti, and relies on his
Dispatch to manage multiple subscriptions to the same event.
Migration
If you are upgrading from 7.x.x, this release requires some migration. See
MIGRATION.md for details.
Changes
Features:
- Arbitrary attributes and event-handler support #208 #213 #179 (vipentti)
- Support for
href
on buttons #201 #235 (vipentti) - Initial implementation of Link buttons (vipentti)
- Support for expandable textfields #198 #199 (vipentti)
- Support for Elm 0.18 #253 (debois, special thanks to MichaelCombs28)
- Support input with type ‘email’ #246 (rmies)
Bugfixes:
Documentation fixes:
- Layout's code demo mentions tabs = [] while it should be tabs = ([], []) #242
- Cards demo with wrong "Demo Source" link #238 (tiago-pereira)
- #256 broken source code link fixed #257 (swojtasiak)
- Fix source URL typo on Cards page #252 (MoonlightOwl)
- Update broken Demo link references #245 (torresmi)
- Fix error in example usage of spinner #234 (DavidDTA)
- Add a separate listing of templates #230 (hakonrossebo)
- Change links from fixed to relative #228 (hakonrossebo)
- Correct project description in USERS.md #225 (IwalkAlone)
- type alias, not type #223 (willnwhite)
- Add reference implementation and repository for Offtie.com #222 (hakonrossebo)
- Add knewter/time-tracker to USERS.md #219 (knewter)
Internals & building:
- Add a commit hook to warn on incorrect commit message #233 (hakonrossebo)
- Elm-test framework and Travis CI speed improvements #210 (hakonrossebo)