2.0.0-rc.22 (2019-05-31)
Please see the changelog for a complete list of commits, and the online documentation for usage.
Notable changes
- Improved/sortened method for importing of plugins, components, and directives, as top-level named exports.
The ESM and CJS builds now both include these top level named exports. - Reverted the
es/
build directory (changed in v2.0.0-rc.21) back to mini-commonjs modules (from true ES modules) due to issues with Nuxt.js dev mode and some webpack builds expecting CJS format when cherry-picking individual components, directives and plugins from sub-directories. - DEPRECATION: The
es/
build has been deprecated in favour of the neweresm
andcjs
builds, which allows for importing individual components, directives and plugins from top-level named exports. Users are encouraged to update their imports to the new syntax.
Fixes
b-modal
: usesafeId()
when comparingid
received by hide/show handlerb-tabs
: fix regression with dynamically added tabs not showingform controls
: handle autofocus when inside a modal (or when inside a transition)nuxt
module: use bundle new esm build of bootstrap-vuetypes
: fix typing of BvComponent and BvPlugines/
directory build, revert to mini-cjs modules (notees/
dir is now deprecated)
Features
b-button
: new propsquared
for generating buttons with squared cornersb-tooltip
,b-popover
: allow global delay customization via config- All plugins, components, and directives are now available as top-level named exports:
- Default export is still the BootstrapVue plugin
- Simplified import format for importing components, directives, plugins:
import { ModalPlugin, CardPlugin, BAlert, BRow, BCol, VBScollspyPlugin } from 'bootstrap-vue'
- New
esm/
modular build with top-level named exports (tree shakeable) - New
dist/bootstrap-vue.esm.js
esm bundle with top-level named exports - New
dist/bootstrap-vue.common.js
bundle with top-level named exports - No need to cherry-pick from sub directories for plugins/components/directives
- Most package bundlers will pick the appropriate build automatically
- Nuxt module:
- Improved tree shaking using the new import methods
- Automatically adds
transformAssetUrls
settings for BootstrapVue component props.