Changes for v1.0.0
v1 Updates
1.0.0-alpha.1 is here! Check out the announcement post on Medium
Big Changes
- [x] Rewrite Datepicker to no longer use pickadate.js which is no longer in development
- [x] Remove jQuery as a dependency
Enhancements
- [x] Refactor plugins into Classes
- [x] Dropdown
- [x] Select
- [x] Tooltip
- [x] Toast
- [x] Modal
- [x] Collapsible
- [x] Carousel
- [x] Parallax
- [x] Pushpin
- [x] Materialbox
- [x] Sidenav
- [x] Slider
- [x] Chips
- [x] Autocomplete
- [x] Feature Discovery
- [x] Timepicker
- [x] All Plugins have
- [x] this.el
- [x] this.destroy()
- [x] this.getInstance()
- [x] upgrade guide
- [x] update changelog
- [x] update documentation
- [x] In / Out transition options where applicable
- [x] getInstance takes in nodeList as well as single elem
- [ ] ~~Remove styling on base HTML elements (pushed to a later release)~~
- [x] Form reworks
- [x] Rework input field validation styling
- [x] Rework labels to wrap Checkboxes and Radio Buttons
Slimming Down
- [x] Remove jQuery Easing plugin as a dependency
- [x] Remove HammerJs as a dependency
- [x] Remove transitions.js
- [x] Remove scrollfire
- [x] Remove automatic initialization for plugins
- [x] Remove options as HTML attributes on plugins
- [x] Unbundle Roboto from Materialize(#4798)
Clean Up
- [x] Remove the deprecated
.userViewclass (#5037) - [ ] ~~Prefix plugin names (M_pluginname)?~~
Meta Items
- [x] Create 1.0.0 upgrade guide
- [x] Drop IE 10 Support
- [x] Drop Safari 7 + 8 Support
- [x] Archived Documentation
New Features
- [ ] Youtube-like PiP
Not sure about Remove automatic initialization for plugins. At least we should provide some autoinit file like Google uses for their Material components or Materialize method like Foundation has to initialize all current components in the DOM.
@DanielRuf Yes, we'll provide something akin to that.
That's good, thanks for clarification.
So it is Move automatic initialization for plugins to own plugin / method(s)?
Remove Velocity.js (and use pure CSS animations and transitions or JavaScript animation API).
We'll probably remove Velocity once animation API becomes widely supported
What about https://github.com/web-animations/web-animations-js
We can remove the polyfill in the future and do not have to change the code (again) but can already support and use the native Web Animations API of browsers.
So people who use Gecko and Chromium based browsers would already benefit of this and this would bring a great performance improvement.
Its not a good practice to use polyfills in libraries as they will change the browser behavior.
Well, this one uses the native API if it is available so it is probably just used in Edge, IE, Safari and other older browsers.
At least we should evaluate it.
Web animations is only in draft phase and is still subject to change.
There are some more issues I would consider to be included in v1.0.0.
-
I think we should consider to "refactor" the badge component.(#1907, #413) In particular I would have in mind:
- Remove
.newclass as it is annoying for people who do not use materialize in combination with the English language. Just a.badgeclass would be better. - Circular badges
- Remove
-
Materialize currently "requires" to import all colors. "That are 1.6k lines trash"(#3612, #936) for people that only use a primary and secondary color.
-
Remove Roboto from source and add instructions to obtain it via CDN (#4797)
-
Replace the collections component with a lists component (https://github.com/Dogfalo/materialize/pull/4727)
That's good, thanks for clarification.So it is Move automatic initialization for plugins to own plugin / method(s)?
References: #915, #1236, #4821
Remove the collections component with a lists component (#4727)
Do you mean "replace"?
;) Yup
Materialize currently "requires" to import all colors. That are 1.6k lines trash(#3612, #936) for people that only use a primary and secondary color.
The colors aren't just used for primary and secondary color purposes, they are used to color background and text as well. A solution to this is to have a distribution of materialize without the colors. But in this case, this seems to be orthogonal to v1
That makes sense
In v0.99.0 we renamed the.userView class to .user-view. I guess we should remove the temporary.userView class in v1.0 completely.
Added to the list
I think we should also add the show/hide/breakpoints helpers fiasco to the list #5025
@Dogfalo in the list, when you say "remove as a dependecy" you said that all the code should be removed or the mixed coded should be separated?