materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Changes for v1.0.0

Open Dogfalo opened this issue 9 years ago • 218 comments

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.userView class (#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

Dogfalo avatar Jul 21 '17 23:07 Dogfalo

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 avatar Jul 22 '17 10:07 DanielRuf

@DanielRuf Yes, we'll provide something akin to that.

Dogfalo avatar Jul 22 '17 18:07 Dogfalo

That's good, thanks for clarification.

So it is Move automatic initialization for plugins to own plugin / method(s)?

DanielRuf avatar Jul 22 '17 18:07 DanielRuf

Remove Velocity.js (and use pure CSS animations and transitions or JavaScript animation API).

DanielRuf avatar Jul 22 '17 22:07 DanielRuf

We'll probably remove Velocity once animation API becomes widely supported

Dogfalo avatar Jul 22 '17 22:07 Dogfalo

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.

DanielRuf avatar Jul 22 '17 22:07 DanielRuf

So people who use Gecko and Chromium based browsers would already benefit of this and this would bring a great performance improvement.

DanielRuf avatar Jul 22 '17 22:07 DanielRuf

Its not a good practice to use polyfills in libraries as they will change the browser behavior.

Dogfalo avatar Jul 22 '17 22:07 Dogfalo

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.

DanielRuf avatar Jul 23 '17 10:07 DanielRuf

Web animations is only in draft phase and is still subject to change.

Dogfalo avatar Jul 23 '17 19:07 Dogfalo

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 .new class as it is annoying for people who do not use materialize in combination with the English language. Just a .badge class would be better.
    • Circular badges
  • 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)

tomscholz avatar Jul 23 '17 20:07 tomscholz

That's good, thanks for clarification.So it is Move automatic initialization for plugins to own plugin / method(s)?

References: #915, #1236, #4821

tomscholz avatar Jul 23 '17 20:07 tomscholz

Remove the collections component with a lists component (#4727)

Do you mean "replace"?

DanielRuf avatar Jul 23 '17 20:07 DanielRuf

;) Yup

tomscholz avatar Jul 23 '17 20:07 tomscholz

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

Dogfalo avatar Jul 24 '17 03:07 Dogfalo

That makes sense

tomscholz avatar Jul 24 '17 06:07 tomscholz

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.

tomscholz avatar Jul 26 '17 17:07 tomscholz

Added to the list

Dogfalo avatar Jul 26 '17 17:07 Dogfalo

I think we should also add the show/hide/breakpoints helpers fiasco to the list #5025

tomscholz avatar Jul 26 '17 17:07 tomscholz

@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?

fega avatar Jul 26 '17 19:07 fega