|
4 | 4 | > [standard-version](https://github.com/conventional-changelog/standard-version) for commit
|
5 | 5 | > guidelines.
|
6 | 6 |
|
| 7 | +<a name="2.0.0-rc.22"></a> |
| 8 | + |
| 9 | +## [v2.0.0-rc.22](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.0.0-rc.21...v2.0.0-rc.22) |
| 10 | + |
| 11 | +Released 2019-05-31 |
| 12 | + |
| 13 | +### Notable Changes v2.0.0-rc.22 |
| 14 | + |
| 15 | +- Improved/shortened method for importing of plugins, components, and directives, as top-level |
| 16 | + named exports. The ESM and CJS builds now both include these top level named exports: |
| 17 | + - Default export is still the BootstrapVue plugin |
| 18 | + - Simplified import format for importing components, directives, plugins:<br> |
| 19 | + `import { ModalPlugin, CardPlugin, BAlert, BRow, BCol, VBScollspyPlugin } from 'bootstrap-vue'` |
| 20 | + - New `esm/` modular build with top-level named exports (tree shakeable) |
| 21 | + - New `dist/bootstrap-vue.esm.js` esm bundle with top-level named exports |
| 22 | + - New `dist/bootstrap-vue.common.js` cjs bundle with top-level named exports |
| 23 | + - No need to cherry-pick from sub directories for plugins/components/directives |
| 24 | + - Most package bundlers will pick the appropriate build automatically |
| 25 | +- Nuxt module: |
| 26 | + - Improved tree shaking using the new import syntax |
| 27 | + - Automatically adds `transformAssetUrls` settings for BootstrapVue component props. |
| 28 | +- Reverted the `es/` build directory back to mini-commonjs modules (from true ES modules introduced |
| 29 | + in v2.0.0-rc.21) due to issues with Nuxt.js and some webpack builds expecting CJS format when |
| 30 | + cherry-picking individual components, directives and plugins from sub-directories. |
| 31 | +- **DEPRECATION: The `es/` build has been deprecated in favour of the newer `esm` build and `cjs` |
| 32 | + bundle, which allow for importing individual components, directives and plugins from top-level |
| 33 | + named exports.** Users are encouraged to convert their existing imports to the new syntax. |
| 34 | + |
| 35 | +### Bug Fixes v2.0.0-rc.22 |
| 36 | + |
| 37 | +- **b-modal:** use `safeId()` when comparing `id` received by hide/show handler (closes |
| 38 | + [#3389](https://github.com/bootstrap-vue/bootstrap-vue/issues/3389) |
| 39 | + ([#3394](https://github.com/bootstrap-vue/bootstrap-vue/issues/3394) |
| 40 | + [fae3d25](https://github.com/bootstrap-vue/bootstrap-vue/commit/fae3d25)) |
| 41 | +- **b-tabs:** fix regression with dynamically added tabs (fixes |
| 42 | + [#3395](https://github.com/bootstrap-vue/bootstrap-vue/issues/3395)) |
| 43 | + ([#3396](https://github.com/bootstrap-vue/bootstrap-vue/issues/3396) |
| 44 | + [f254f90](https://github.com/bootstrap-vue/bootstrap-vue/commit/f254f90)) |
| 45 | +- **form controls:** handle autofocus inside modal or when inside a transition |
| 46 | + ([#3386](https://github.com/bootstrap-vue/bootstrap-vue/issues/3386) |
| 47 | + [c4a8edb](https://github.com/bootstrap-vue/bootstrap-vue/commit/c4a8edb)) |
| 48 | +- **es:** revert to tranforming `es/` modules into CJS, and simplify main build with top-level |
| 49 | + named import/exports |
| 50 | + (closes [#3397](https://github.com/bootstrap-vue/bootstrap-vue/issues/3397), |
| 51 | + [#3393](https://github.com/bootstrap-vue/bootstrap-vue/issues/3393), |
| 52 | + [#3323](https://github.com/bootstrap-vue/bootstrap-vue/issues/3323)) |
| 53 | + ([#3404](https://github.com/bootstrap-vue/bootstrap-vue/issues/3404) |
| 54 | + [6c386d3](https://github.com/bootstrap-vue/bootstrap-vue/commit/6c386d3)) |
| 55 | +- **nuxt:** use new bundle for development mode (closes |
| 56 | + [#3397](https://github.com/bootstrap-vue/bootstrap-vue/issues/3397)) |
| 57 | + ([#3399](https://github.com/bootstrap-vue/bootstrap-vue/issues/3399) |
| 58 | + [f43097e](https://github.com/bootstrap-vue/bootstrap-vue/commit/f43097e), |
| 59 | + [#3404](https://github.com/bootstrap-vue/bootstrap-vue/issues/3404) |
| 60 | + [6c386d3](https://github.com/bootstrap-vue/bootstrap-vue/commit/6c386d3)) |
| 61 | +- **types:** fix typing error for `BvComponent` and `BvPlugin` (closes |
| 62 | + [#3390](https://github.com/bootstrap-vue/bootstrap-vue/issues/3390)) |
| 63 | + ([#3391](https://github.com/bootstrap-vue/bootstrap-vue/issues/3391) |
| 64 | + [6f0f3fd](https://github.com/bootstrap-vue/bootstrap-vue/commit/6f0f3fd)) |
| 65 | + |
| 66 | +### Features v2.0.0-rc.22 |
| 67 | + |
| 68 | +- **b-button:** add new `squared` prop for making buttons with square corners |
| 69 | + ([#3387](https://github.com/bootstrap-vue/bootstrap-vue/issues/3387) |
| 70 | + [004963d](https://github.com/bootstrap-vue/bootstrap-vue/commit/004963d)) |
| 71 | +- **b-tooltip, b-popover:** allow global `delay` customization via config |
| 72 | + ([#3426](https://github.com/bootstrap-vue/bootstrap-vue/issues/3426) |
| 73 | + [2aaec76](https://github.com/bootstrap-vue/bootstrap-vue/commit/2aaec76)) |
| 74 | +- **nuxt:** handle edge cases where component, directive and plugin names are passed as `camelCase` |
| 75 | + or `kebab-case` and convert to new `PascalCase` names |
| 76 | + ([#3418](https://github.com/bootstrap-vue/bootstrap-vue/issues/3418) |
| 77 | + [ce3ba73](https://github.com/bootstrap-vue/bootstrap-vue/commit/ce3ba73)) |
| 78 | +- **nuxt module:** alias `esm/` and `es/` to `src/` for Nuxt prod mode |
| 79 | + ([#3423](https://github.com/bootstrap-vue/bootstrap-vue/issues/3423) |
| 80 | + [ae2040b](https://github.com/bootstrap-vue/bootstrap-vue/commit/ae2040b)) |
| 81 | +- add `"source": "src/index.js"` entry in package.json for Parcel bundler |
| 82 | + ([#3422](https://github.com/bootstrap-vue/bootstrap-vue/issues/3422) |
| 83 | + [0878ca6](https://github.com/bootstrap-vue/bootstrap-vue/commit/0878ca6)) |
| 84 | + |
7 | 85 | <a name="2.0.0-rc.21"></a>
|
8 | 86 |
|
9 | 87 | ## [v2.0.0-rc.21](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.0.0-rc.20...v2.0.0-rc.21)
|
10 | 88 |
|
11 | 89 | Released 2019-05-26
|
12 | 90 |
|
| 91 | +Note: this version introduced a bug when using BootstrapVue with Nuxt.js module in dev mode. |
| 92 | +Please use version v2.0.0-rc.22 or newer. |
| 93 | + |
13 | 94 | ### Bug Fixes v2.0.0-rc.21
|
14 | 95 |
|
15 | 96 | - **b-alert:** handle case where dismiss countdown changes to a boolean value (closes
|
|
0 commit comments