Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@bluefirex bluefirex released this 22 Oct 16:30
· 9 commits to master since this release

Kinda big release, everyone!
We're bumping up the major version due to a break with current installations using babel-preset-es2015. Please read this changelog carefully!

Features + Bugfixes

  • Support disabling mobile fullscreen (#39) by providing :enable-fullscreen-mobile="false"
  • Support manually setting the width (#37) by providing width, i.e. :width="200" or width="85%"
  • Support global installation
    import SweetModal from 'sweet-modal-vue/src/plugin.js'
    Vue.use(SweetModal);
  • Fix a name-clash with Laravel and SweetAlert (#19)
  • Fix a lot of import and build errors (#36, #34, #33, #29, #19)

Technical Changes

  • Upgrade to Webpack 3
    This shouldn't affect you other than having to run another npm i, though.

  • Switch to babel-preset-env
    This removes the need to install any babel presets yourself. This also got rid of our .babelrc file so it doesn't clash with yours.

  • Downgrade css-loader
    The current versions are pretty slow while not bringing any relevant new features.

  • Support module- and minified-based loading
    package.json now includes module and main.

Breaking Changes

  • SweetModal is no longer compatible with UglifyJS.
    To use SweetModal in your project you have to use any other ES6-compatible minifier, for example babel-minify.