Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release 2.0.0 stable #3862

Merged
merged 95 commits into from
Sep 7, 2019
Merged
Show file tree
Hide file tree
Changes from 77 commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
c3e1f5c
chore(deps): update devdependency eslint-plugin-jest to ^22.15.1 (#3861)
renovate[bot] Aug 12, 2019
1737072
chore(docs): minor updates to the table docs (#3860)
tmorehouse Aug 13, 2019
3828f59
feat(build): remove deprecated `es/` build (#3604)
tmorehouse Aug 13, 2019
bea49d4
feat(tooltip/popover): remove SCSS deprecations (#3869)
jacobmllr95 Aug 13, 2019
90c299c
feat(modal): remove BvModalEvent deprecations (#3864)
jacobmllr95 Aug 13, 2019
21fab35
feat(b-nav, b-nav-item-dropdown): remove deprecated slot and props (#…
jacobmllr95 Aug 13, 2019
29eb8b1
feat(b-dropdown): remove deprecated slot `text` (#3868)
jacobmllr95 Aug 13, 2019
249efd9
feat(table): remove deprecated slot names, introduce new slot names (…
jacobmllr95 Aug 13, 2019
0edac49
feat(tabs): remove deprecations (#3863)
jacobmllr95 Aug 13, 2019
8784f31
feat(tables): add support for custom header attributes (closes #2244)…
jonfunkhouser Aug 14, 2019
b301822
feat(b-form-group): remove deprecated prop `horizontal` and `breakpoi…
tmorehouse Aug 14, 2019
d46529c
feat(docs): remove new/enhances/changed badges (#3870)
jacobmllr95 Aug 14, 2019
6d382ed
feat(b-form-*) remove supplying a string to `state` prop (#3880)
tmorehouse Aug 14, 2019
dddfbed
chore: minor updates to form feedback components (#3881)
tmorehouse Aug 14, 2019
8f8b7aa
chore(docs): minor update to the table docs
tmorehouse Aug 14, 2019
4046a53
feat(b-nav): add card header support (#3883)
tmorehouse Aug 14, 2019
2302b31
fix(b-table, b-table-lite): render header when not always stacked mod…
tmorehouse Aug 14, 2019
cf3d4c6
chore(docs): add clarification to `order` and `order-{breakpoint}` se…
tmorehouse Aug 14, 2019
5d155ba
fix(v-b-toggle): don't override `role` if element has a `role` assign…
tmorehouse Aug 14, 2019
6b56a10
chore(table): minor code adjustments (#3890)
tmorehouse Aug 15, 2019
4488de7
chore(docs): fix type in progress example (#3895)
Coreusa Aug 15, 2019
4672cc2
chore(deps): update all non-major dependencies to ^24.9.0 (#3900)
renovate[bot] Aug 16, 2019
03536a5
feat(b-table): add `filter-debounce` prop for debouncing filter updat…
tmorehouse Aug 16, 2019
5492b38
feat(b-table): allow field definition properties `filterByFormatted` …
tmorehouse Aug 16, 2019
eddccc4
chore(docs): minor updates to the table docs (#3906)
tmorehouse Aug 17, 2019
2c8bd23
feat(b-carousel): add prop `no-wrap` for disabling wrapping to start/…
tmorehouse Aug 17, 2019
86c53dd
feat(b-table): add `selectAllRows()` and `clearSelected()` to thead/t…
tmorehouse Aug 17, 2019
611a507
fix(docs): broken Twitter link (#3912)
jacobmllr95 Aug 19, 2019
a392059
fix(b-table, b-table-lite): handle edge case where field slot returns…
tmorehouse Aug 20, 2019
8bf3a55
fix(b-modal): ensure non-prop attributes are transferred to the modal…
tmorehouse Aug 21, 2019
cf35177
chore(package.json): pin eslint to v6/
tmorehouse Aug 24, 2019
1fe3cc8
chore(renovate): ignore eslint dep
tmorehouse Aug 24, 2019
3de8dd1
chore(deps): update all non-major dependencies (#3922)
renovate[bot] Aug 24, 2019
3d60ca4
chore: fix linting for PR #3913 (#3939)
tmorehouse Aug 24, 2019
691f096
chore(deps): update devdependency eslint-config-standard to v14 (#3913)
renovate[bot] Aug 24, 2019
79f8c6b
chore(deps): update devdependency rollup to ^1.20.2 (#3940)
renovate[bot] Aug 25, 2019
dea8204
chore(docs): add more details about on-demand toast parenting (closes…
tmorehouse Aug 25, 2019
e5079dd
chore(docs): minor updates to dropdown docs (#3931)
tmorehouse Aug 25, 2019
7a3b350
chore(deps): update devdependency babel-eslint to ^10.0.3 (#3941)
renovate[bot] Aug 26, 2019
be3ac62
fix(b-form-textarea): handle initial auto-height when in modal, tabs,…
tmorehouse Aug 26, 2019
3adb393
chore(deps): update dependency @nuxt/opencollective to ^0.3.0 (#3946)
renovate[bot] Aug 27, 2019
4153e4e
chore(table): fix build warnings (#3947)
tmorehouse Aug 27, 2019
adf82a0
chore(deps): update devdependency rollup-plugin-commonjs to ^10.1.0 (…
renovate[bot] Aug 27, 2019
2efd38a
fix(changelog): correct typos (#3950)
jacobmllr95 Aug 27, 2019
5182821
chore(deps): update devdependency eslint-config-standard to ^14.1.0 (…
renovate[bot] Aug 27, 2019
5ca8087
chore(docs): minor updates (#3954)
tmorehouse Aug 28, 2019
5c4c89a
chore(docs): convert examples to use new `v-slot` syntax (#3955)
tmorehouse Aug 28, 2019
eebab43
feat(tooltip, popover): overall code refactor for better reactivity a…
tmorehouse Aug 28, 2019
de8b9b1
chore(deps): update devdependency nuxt to ^2.9.2 (#3957)
renovate[bot] Aug 28, 2019
0d1961c
chore(deps): update devdependency rollup to ^1.20.3 (#3959)
renovate[bot] Aug 28, 2019
77ad6b9
feat(b-modal): add scoped style support when portalled (non-static mo…
tmorehouse Aug 28, 2019
ca1b5de
feat(toast): add support for scoped styles (#3963)
tmorehouse Aug 28, 2019
e6acc3a
chore(docs): minor updates to the carousel docs (#3964)
tmorehouse Aug 28, 2019
78e5eb8
chore(docs): add links to the router-link reference section to all co…
tmorehouse Aug 28, 2019
7765e2f
chore: improve scoped styles `scopeId` handling (#3967)
jacobmllr95 Aug 29, 2019
9437c25
chore(deps): update devdependency eslint-plugin-node to ^9.2.0 (#3970)
renovate[bot] Aug 29, 2019
ee13491
chore(deps): update devdependency codesandbox to ^2.1.10 (#3972)
renovate[bot] Aug 29, 2019
c4442f4
feat(b-table): new sorting icons using SVG, plus option to place icon…
tmorehouse Aug 29, 2019
a97507a
chore(deps): update devdependency eslint-plugin-jest to ^22.16.0 (#3975)
renovate[bot] Aug 29, 2019
f3ec2a1
chore: remove default export from directives and components (#3974)
tmorehouse Aug 29, 2019
62fb0b6
fix(b-link): only add the `nativeOn` property to componentData when r…
tmorehouse Aug 29, 2019
249ccfa
feat(b-img-lazy): switch IntersectionObserver to use private `v-b-vis…
tmorehouse Aug 30, 2019
3290594
chore(docs): minor adjustments to table sort icon customization
tmorehouse Aug 30, 2019
7418f08
chore(deps): update devdependency sass-loader to v8 (#3971)
renovate[bot] Aug 30, 2019
6f2827e
feat(modal): add prop for auto focusing one of the built in-buttons o…
tmorehouse Aug 30, 2019
360db8d
chore(deps): update devdependency vue-router to ^3.1.3 (#3981)
renovate[bot] Aug 30, 2019
df91792
chore(docs): add an advanced usage section and example for modal mess…
tmorehouse Aug 30, 2019
8c667e0
chore(deps): update devdependency eslint to ^6.3.0 (#3985)
renovate[bot] Aug 30, 2019
487c592
chore(docs): add notes to table docs on slot name limitations when us…
tmorehouse Aug 30, 2019
fca7bd5
feat(b-table, b-table-lite): switch slot name syntax to use round bra…
tmorehouse Aug 30, 2019
253b4f6
feat(table): add `no-border-collapse` prop and SCSS (#3987)
tmorehouse Aug 31, 2019
ae8ce78
feat(b-pagination): if number of pages changes, try and keep current …
tmorehouse Aug 31, 2019
444d8b0
chore(docs): remove duplicate IDs from dropdown examples (#3991)
tmorehouse Aug 31, 2019
f6f73c7
feat(b-table, b-table-lite): use `aria-details` rather than `aria-des…
tmorehouse Aug 31, 2019
e05cc0d
chore(pagination): change `role="none presentation"` to `role="presen…
tmorehouse Aug 31, 2019
484f012
chore(deps): update devdependency cross-env to ^5.2.1 (#3995)
renovate[bot] Aug 31, 2019
464d257
feat(dropdown): add `role=presentation` to `<li>` elements for improv…
tmorehouse Sep 1, 2019
dfabe51
docs(b-nav): add example markup for using vue-router/nuxt-child (clos…
tmorehouse Sep 3, 2019
3aa78fd
chore(deps): update devdependency eslint-config-prettier to ^6.2.0 (#…
renovate[bot] Sep 3, 2019
332b79f
fix(modal): fix scroll to top issue when modal has `no-fade` set (#4004)
tmorehouse Sep 3, 2019
113b802
chore(docs): better ARIA compliant `b-nav` + `b-card` examples (#4006)
tmorehouse Sep 3, 2019
5855330
docs(router-links): add more details to `active-class` and `exact-act…
tmorehouse Sep 4, 2019
78c604c
perf(b-table): cache cell slot names each render cycle (addresses #40…
tmorehouse Sep 4, 2019
acb34e7
chore(docs): minor adjustments to the table docs (#4016)
tmorehouse Sep 4, 2019
10ff04a
chore(deps): update devdependency eslint-plugin-node to v10 (#4019)
renovate[bot] Sep 5, 2019
64735a3
chore: tooltip/popover directives execute title/content if function b…
tmorehouse Sep 5, 2019
6aa16b8
chore(deps): update devdependency eslint-plugin-jest to ^22.17.0 (#4023)
renovate[bot] Sep 5, 2019
2012d07
chore(deps): update devdependency @nuxtjs/pwa to ^3.0.0-beta.17 (#4026)
renovate[bot] Sep 5, 2019
c7cb16f
fix(b-table, b-table-lite): use `:key` for row details based on the p…
tmorehouse Sep 5, 2019
81efb89
fix(b-dropdown-*): ensure class bindings are placed on root element f…
tmorehouse Sep 5, 2019
cbeeef9
feat(b-table, b-table-lite): add new scoped slot `custom-foot` to all…
tmorehouse Sep 5, 2019
4b8a8c7
fix(docs): hading before margin (#4029)
jacobmllr95 Sep 6, 2019
efe84a1
Revert "chore(deps): update devdependency @nuxtjs/pwa to ^3.0.0-beta.…
tmorehouse Sep 6, 2019
72ceef8
chore: coverage fixes for babel dep upgrades (#4034)
tmorehouse Sep 6, 2019
5930f04
chore: bump version and update changelog (#4017)
tmorehouse Sep 7, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
80 changes: 41 additions & 39 deletions CHANGELOG-OLD.md

Large diffs are not rendered by default.

31 changes: 16 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ stable.**
- **tables:** add support for sticky columns
([#3847](https://github.com/bootstrap-vue/bootstrap-vue/issues/3847))
([5b5f2b8](https://github.com/bootstrap-vue/bootstrap-vue/commit/5b5f2b8))
- **b-toast:** add SCSS variable for default toast background opacity + standardize a few BootstrapVue
SCSS variable names ([#3775](https://github.com/bootstrap-vue/bootstrap-vue/issues/3775))
- **b-toast:** add SCSS variable for default toast background opacity + standardize a few
BootstrapVue SCSS variable names
([#3775](https://github.com/bootstrap-vue/bootstrap-vue/issues/3775))
([5799075](https://github.com/bootstrap-vue/bootstrap-vue/commit/5799075))
- **config:** defaults for all `size` properties (closes
[#3805](https://github.com/bootstrap-vue/bootstrap-vue/issues/3805))
Expand All @@ -97,12 +98,12 @@ stable.**
formatting) has been changed in this version to use a new square bracketed syntax. While the
previous naming syntax still works, it has been deprecated in favour of the newer naming
convention (which prevents potential slot-name conflicts with fields named `default` and other
table slots). **Users are encouraged to switch to the new table field slot name syntax, as the
old slot name syntax will be removed in 2.0.0 stable release!**
table slots). **Users are encouraged to switch to the new table field slot name syntax, as the old
slot name syntax will be removed in 2.0.0 stable release!**

- Users should switch to the simplified import syntax (introduced in v2.0.0-rc.22) when
importing individual plugins, components, and/or directives. **Importing from the `es/` build
directory has been deprecated and will be removed in 2.0.0 stable release!**
- Users should switch to the simplified import syntax (introduced in v2.0.0-rc.22) when importing
individual plugins, components, and/or directives. **Importing from the `es/` build directory has
been deprecated and will be removed in 2.0.0 stable release!**

<a name="2.0.0-rc.27"></a>

Expand Down Expand Up @@ -365,7 +366,7 @@ Released 2019-05-31
exports. The ESM and CJS builds now both include these top level named exports:
- Default export is still the BootstrapVue plugin
- Simplified import format for importing components, directives, plugins:<br>
`import { ModalPlugin, CardPlugin, BAlert, BRow, BCol, VBScollspyPlugin } from 'bootstrap-vue'`
`import { ModalPlugin, CardPlugin, BAlert, BRow, BCol, VBScrollspyPlugin } 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` cjs bundle with top-level named exports
Expand Down Expand Up @@ -736,7 +737,7 @@ Released 2019-04-07

### Bug Fixes v2.0.0-rc.17

- **breadcrumb-item:** remove atribute `role="presentation"` for better ARIA support
- **breadcrumb-item:** remove attribute `role="presentation"` for better ARIA support
([#2991](https://github.com/bootstrap-vue/bootstrap-vue/issues/2991))
([e84c4a7](https://github.com/bootstrap-vue/bootstrap-vue/commit/e84c4a7))
- **docs:** add back missing leading slash to search urls
Expand Down Expand Up @@ -870,7 +871,7 @@ Released 2019-03-28
- **forms:** new b-form-datalist helper component
([#2899](https://github.com/bootstrap-vue/bootstrap-vue/issues/2899))
([e9a8e85](https://github.com/bootstrap-vue/bootstrap-vue/commit/e9a8e85))
- **table:** add basic keyboard nav when table has row-clicked handler or is selctable (closes
- **table:** add basic keyboard nav when table has row-clicked handler or is selectable (closes
[#2869](https://github.com/bootstrap-vue/bootstrap-vue/issues/2869))
([#2870](https://github.com/bootstrap-vue/bootstrap-vue/issues/2870))
([ddcd66a](https://github.com/bootstrap-vue/bootstrap-vue/commit/ddcd66a))
Expand Down Expand Up @@ -906,7 +907,7 @@ Released: 2019-03-18
[#2807](https://github.com/bootstrap-vue/bootstrap-vue/issues/2807))
([#2808](https://github.com/bootstrap-vue/bootstrap-vue/issues/2808))
([c656fa3](https://github.com/bootstrap-vue/bootstrap-vue/commit/c656fa3))
- **utisl/observeDom:** make sure to check for browser enviroment
- **utils/observeDom:** make sure to check for browser environment
([#2838](https://github.com/bootstrap-vue/bootstrap-vue/issues/2838))
([8471f31](https://github.com/bootstrap-vue/bootstrap-vue/commit/8471f31))

Expand Down Expand Up @@ -1164,10 +1165,10 @@ Released: (2019-02-14)
([#2102](https://github.com/bootstrap-vue/bootstrap-vue/issues/2102))
([#1798](https://github.com/bootstrap-vue/bootstrap-vue/issues/1798))
([6d33cae](https://github.com/bootstrap-vue/bootstrap-vue/commit/6d33cae))
- **dependencies:** replace opencollective with opencollective-postintall
- **dependencies:** replace opencollective with opencollective-postinstall
([#2067](https://github.com/bootstrap-vue/bootstrap-vue/issues/2067))
([fa26882](https://github.com/bootstrap-vue/bootstrap-vue/commit/fa26882))
- **docs:** Updaate links to bootstrap v4.3 docs
- **docs:** Update links to bootstrap v4.3 docs
([b5d5499](https://github.com/bootstrap-vue/bootstrap-vue/commit/b5d5499))
- **docs:** Button - fix typo ([#1962](https://github.com/bootstrap-vue/bootstrap-vue/issues/1962))
([dcbfcf9](https://github.com/bootstrap-vue/bootstrap-vue/commit/dcbfcf9))
Expand Down Expand Up @@ -1393,7 +1394,7 @@ Released: (2019-02-14)
- **select:** Wait for the v-model value to update before emitting change event on form select
([#2207](https://github.com/bootstrap-vue/bootstrap-vue/issues/2207))
([7a860ee](https://github.com/bootstrap-vue/bootstrap-vue/commit/7a860ee))
- **tab:** fix typo aria-lablelledby
- **tab:** fix typo aria-labelledby
([#1959](https://github.com/bootstrap-vue/bootstrap-vue/issues/1959))
([#954](https://github.com/bootstrap-vue/bootstrap-vue/issues/954)
([5933955](https://github.com/bootstrap-vue/bootstrap-vue/commit/5933955))
Expand Down Expand Up @@ -1751,7 +1752,7 @@ Released: 2018-04-27
- **docs:** typo in docs plugin
([#1777](https://github.com/bootstrap-vue/bootstrap-vue/issues/1777))
([fb50c6f](https://github.com/bootstrap-vue/bootstrap-vue/commit/fb50c6f))
- **dropdown:** aria-labbeledby for dropdowns
- **dropdown:** aria-labelledby for dropdowns
([8efa7ee](https://github.com/bootstrap-vue/bootstrap-vue/commit/8efa7ee))
- **form-input:** revert step, min and max props
([#1767](https://github.com/bootstrap-vue/bootstrap-vue/issues/1767))
Expand Down
20 changes: 10 additions & 10 deletions docs/components/componentdoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@
bordered
striped
>
<template slot="[prop]" slot-scope="{ value, item }">
<template v-slot:cell(prop)="{ value, item }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
<b-badge v-if="item.required" variant="info">Required</b-badge>
<b-badge v-else-if="item.deprecated" variant="danger">Deprecated</b-badge>
<b-badge v-else-if="item.deprecation" variant="warning">Deprecation</b-badge>
</template>
<template slot="[defaultValue]" slot-scope="{ value }">
<template v-slot:cell(defaultValue)="{ value }">
<code v-if="value" class="notranslate" translate="no">{{ value }}</code>
</template>
<template slot="row-details" slot-scope="{ item }">
<template v-slot:row-details="{ item }">
<p v-if="typeof item.deprecated === 'string'" class="mb-1 small">
{{ item.deprecated }}
</p>
Expand All @@ -82,10 +82,10 @@
bordered
striped
>
<template slot="[prop]" slot-scope="{ value }">
<template v-slot:cell(prop)="{ value }">
<code class="notranslate" translate="no">{{ kebabCase(value) }}</code>
</template>
<template slot="[event]" slot-scope="{ value }">
<template v-slot:cell(event)="{ value }">
<code class="notranslate" translate="no">{{ value }}</code>
</template>
</b-table>
Expand All @@ -105,7 +105,7 @@
bordered
striped
>
<template slot="[name]" slot-scope="{ value }">
<template v-slot:cell(name)="{ value }">
<code class="text-nowrap nostranslate" translate="no">{{ value }}</code>
</template>
</b-table>
Expand All @@ -124,10 +124,10 @@
bordered
striped
>
<template slot="[event]" slot-scope="{ value }">
<template v-slot:cell(event)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
<template slot="[args]" slot-scope="{ value, item }">
<template v-slot:cell(args)="{ value, item }">
<p
v-for="arg in value"
:key="`event-${item.event}-${arg.arg ? arg.arg : 'none'}`"
Expand Down Expand Up @@ -159,10 +159,10 @@
bordered
striped
>
<template slot="[event]" slot-scope="{ value }">
<template v-slot:cell(event)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
<template slot="[args]" slot-scope="{ value, item }">
<template v-slot:cell(args)="{ value, item }">
<p
v-for="arg in value"
:key="`event-${item.event}-${arg.arg ? arg.arg : 'none'}`"
Expand Down
47 changes: 15 additions & 32 deletions docs/components/importdoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</anchored-heading>

<p>
<b-badge variant="info" class="small">CHANGED in 2.0.0-rc.22</b-badge> You can
import individual components into your project via the following named exports:
You can import individual components into your project via the following named
exports:
</p>

<b-table
Expand All @@ -22,13 +22,13 @@
bordered
striped
>
<template slot="[component]" slot-scope="{ value }">
<template v-slot:cell(component)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
<template slot="[namedExport]" slot-scope="{ value }">
<template v-slot:cell(namedExport)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
<template slot="[importPath]" slot-scope="{ value }">
<template v-slot:cell(importPath)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
</b-table>
Expand All @@ -45,8 +45,8 @@
</anchored-heading>

<p>
<b-badge variant="info" class="small">CHANGED in 2.0.0-rc.22 </b-badge> You can
import individual directives into your project via the following named exports:
You can import individual directives into your project via the following named
exports:
</p>

<b-table
Expand All @@ -57,13 +57,13 @@
bordered
striped
>
<template slot="[directive]" slot-scope="{ value }">
<template v-slot:cell(directive)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
<template slot="[namedExport]" slot-scope="{ value }">
<template v-slot:cell(namedExport)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
<template slot="[importPath]" slot-scope="{ value }">
<template v-slot:cell(importPath)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
</b-table>
Expand All @@ -78,11 +78,6 @@
Importing as a Vue.js plugin
</anchored-heading>

<p>
<b-badge variant="info" class="small">CHANGED in 2.0.0-rc.22</b-badge> Importing plugins
has been simplified.
</p>

<p v-if="isComponentRoute">
This plugin includes all of the above listed individual
components<span v-if="directives.length"> and directives</span>.
Expand All @@ -102,10 +97,10 @@
bordered
striped
>
<template slot="[namedExport]" slot-scope="{ value }">
<template v-slot:cell(namedExport)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
<template slot="[importPath]" slot-scope="{ value }">
<template v-slot:cell(importPath)="{ value }">
<code class="text-nowrap notranslate" translate="no">{{ value }}</code>
</template>
</b-table>
Expand All @@ -122,19 +117,6 @@
<p><strong>Example:</strong></p>
<pre class="hljs language-js text-monospace p-2 notranslate" translate="no">{{ pluginImportCode }}</pre>
</article>

<aside class="alert alert-warning my-4">
<p class="mb-0">
<b-badge variant="warning" tag="strong">Deprecation Warning as of v2.0.0-rc.22:</b-badge>
Importing components, directives and plugins from
<code class="notranslate" translate="no">bootstrap-vue/es/*</code>
has been deprecated. All components, directives and plugins are now available as top-level named
exports in the <code class="notranslate" translate="no">ESM</code> and
<code class="notranslate" translate="no">CommonJS</code> builds. The
<code class="notranslate" translate="no">es/</code> directory build will be removed in a future
release.
</p>
</aside>
</section>
</template>

Expand All @@ -144,6 +126,8 @@ import kebabCase from 'lodash/kebabCase'
import startCase from 'lodash/startCase'
import AnchoredHeading from './anchored-heading'

const importPath = 'bootstrap-vue'

export default {
name: 'BDVImportdoc',
components: { AnchoredHeading },
Expand Down Expand Up @@ -212,9 +196,8 @@ export default {
},
directiveImportCode() {
const firstDirective = this.directives[0]
const firstDirectiveImport = this.directiveImports[0]
return [
`import { ${firstDirective} } from '${firstDirectiveImport.importPath}'`,
`import { ${firstDirective} } from '${importPath}'`,
"// Note: Vue automatically prefixes the directive name with 'v-'",
`Vue.directive('${this.directiveName(firstDirective)}', ${firstDirective})`
].join('\n')
Expand Down