Skip to content

Commit ae18d46

Browse files
authored
chore: release v2.15.0
2 parents a02bec2 + bd5a3d7 commit ae18d46

File tree

131 files changed

+12739
-4454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+12739
-4454
lines changed

.bundlewatch.config.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
"files": [
33
{
44
"path": "./dist/bootstrap-vue-icons.js",
5-
"maxSize": "60 kB"
5+
"maxSize": "75 kB"
66
},
77
{
88
"path": "./dist/bootstrap-vue-icons.min.js",
9-
"maxSize": "55 kB"
9+
"maxSize": "70 kB"
1010
},
1111
{
1212
"path": "./dist/bootstrap-vue-icons.common.js",
13-
"maxSize": "65 kB"
13+
"maxSize": "80 kB"
1414
},
1515
{
1616
"path": "./dist/bootstrap-vue-icons.common.min.js",
17-
"maxSize": "60 kB"
17+
"maxSize": "75 kB"
1818
},
1919
{
2020
"path": "./dist/bootstrap-vue-icons.esm.js",
21-
"maxSize": "65 kB"
21+
"maxSize": "80 kB"
2222
},
2323
{
2424
"path": "./dist/bootstrap-vue-icons.esm.min.js",
25-
"maxSize": "60 kB"
25+
"maxSize": "75 kB"
2626
},
2727
{
2828
"path": "./dist/bootstrap-vue-icons.css",
@@ -42,19 +42,19 @@
4242
},
4343
{
4444
"path": "./dist/bootstrap-vue.common.js",
45-
"maxSize": "260 kB"
45+
"maxSize": "275 kB"
4646
},
4747
{
4848
"path": "./dist/bootstrap-vue.common.min.js",
49-
"maxSize": "145 kB"
49+
"maxSize": "165 kB"
5050
},
5151
{
5252
"path": "./dist/bootstrap-vue.esm.js",
53-
"maxSize": "260 kB"
53+
"maxSize": "270 kB"
5454
},
5555
{
5656
"path": "./dist/bootstrap-vue.esm.min.js",
57-
"maxSize": "145 kB"
57+
"maxSize": "160 kB"
5858
},
5959
{
6060
"path": "./dist/bootstrap-vue.css",

.codesandbox/ci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"sandboxes": ["0d335"]
2+
"sandboxes": ["qeu9j"]
33
}

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,3 @@ jobs:
207207
run: yarn run bundlewatch
208208
env:
209209
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
210-
CI_BRANCH_BASE: "${{ github.base_ref }}"

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,62 @@
22

33
> All notable changes to this project will be documented in this file.
44
5+
<a name="2.15.0"></a>
6+
7+
## [v2.15.0](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.14.0...v2.15.0)
8+
9+
Released: 2020-05-22
10+
11+
### Features v2.15.0
12+
13+
- **css:** update Bootstrap to v4.5.0
14+
([#5395](https://github.com/bootstrap-vue/bootstrap-vue/issues/5395))
15+
([ba7a55e](https://github.com/bootstrap-vue/bootstrap-vue/commit/ba7a55ea094049fd1e3ae492a5a95196252b1da9))
16+
- **icons:** upgrade to Bootstrap Icons 1.0.0-alpha4
17+
([#5420](https://github.com/bootstrap-vue/bootstrap-vue/issues/5420))
18+
([3208309](https://github.com/bootstrap-vue/bootstrap-vue/commit/3208309c649b4cce73c68643d7c911237a713ebc))
19+
- **b-sidebar:** add prop `backdrop-variant`
20+
([#5411](https://github.com/bootstrap-vue/bootstrap-vue/issues/5411))
21+
([4b0c163](https://github.com/bootstrap-vue/bootstrap-vue/commit/4b0c163156b6ac5be6c1b0a2801d7c169c87cb49))
22+
- **b-link:** add support 3rd party router links such as Gridsome's `<g-link>` (closes
23+
[#2627](https://github.com/bootstrap-vue/bootstrap-vue/issues/2627))
24+
([#5358](https://github.com/bootstrap-vue/bootstrap-vue/issues/5358))
25+
([6d29e1c](https://github.com/bootstrap-vue/bootstrap-vue/commit/6d29e1cff6c4fd42b3f60f86bd017d8601de3956))
26+
- **b-navbar-toggle:** add `disabled` prop
27+
([#5397](https://github.com/bootstrap-vue/bootstrap-vue/issues/5397))
28+
([0b7082b](https://github.com/bootstrap-vue/bootstrap-vue/commit/0b7082b792ee49847ba7c99c61758c0d9fd6d222))
29+
- **v-b-toggle:** check for target ID via `href` if a link
30+
([#5398](https://github.com/bootstrap-vue/bootstrap-vue/issues/5398))
31+
([33e39b0](https://github.com/bootstrap-vue/bootstrap-vue/commit/33e39b007225ba86a0c84a66e3ee60b9d2f01fed))
32+
- **types:** create declarations for `<b-calendar>` and `<b-time>` context event objects (closes
33+
[#5366](https://github.com/bootstrap-vue/bootstrap-vue/issues/5366))
34+
([#5374](https://github.com/bootstrap-vue/bootstrap-vue/issues/5374))
35+
([8f3ca30](https://github.com/bootstrap-vue/bootstrap-vue/commit/8f3ca30e4d51b5e97f9c4f301c31254a8b060980))
36+
- support `<nuxt-link>`'s `prefetch` property (closes
37+
[#5125](https://github.com/bootstrap-vue/bootstrap-vue/issues/5125))
38+
([#5355](https://github.com/bootstrap-vue/bootstrap-vue/issues/5355))
39+
([b9416cb](https://github.com/bootstrap-vue/bootstrap-vue/commit/b9416cb3824d680e297347af61a934b1536224de))
40+
41+
### Bug Fixes v2.15.0
42+
43+
- **v-b-toggle:** don't check for evt.defaultPrevened (closes
44+
[#5391](https://github.com/bootstrap-vue/bootstrap-vue/issues/5391))
45+
([#5396](https://github.com/bootstrap-vue/bootstrap-vue/issues/5396))
46+
([a1543b2](https://github.com/bootstrap-vue/bootstrap-vue/commit/a1543b297040ea593306ec55d7de5f1e2e776bce))
47+
- **b-link:** default new `<nuxt-link>` prop `prefetch` to `null` for true tri-state prop
48+
([#5357](https://github.com/bootstrap-vue/bootstrap-vue/issues/5357))
49+
([3f41c91](https://github.com/bootstrap-vue/bootstrap-vue/commit/3f41c91961c29988ba13ca11f4dc8f81810e761f))
50+
- ensure all intervals/timeouts/observers are cleared when component is destroyed
51+
([#5362](https://github.com/bootstrap-vue/bootstrap-vue/issues/5362))
52+
([064cdf4](https://github.com/bootstrap-vue/bootstrap-vue/commit/064cdf4f7e7c6b779c1bd689a6d300efdf81bc0d))
53+
- properly handle HTML props render order (closes
54+
[#5363](https://github.com/bootstrap-vue/bootstrap-vue/issues/5363))
55+
([#5365](https://github.com/bootstrap-vue/bootstrap-vue/issues/5365))
56+
([844ecda](https://github.com/bootstrap-vue/bootstrap-vue/commit/844ecda654a2db50d9b84c193f1ab031e291d024))
57+
- fix docs CodeSandbox integration
58+
([#5381](https://github.com/bootstrap-vue/bootstrap-vue/issues/5381))
59+
([a948846](https://github.com/bootstrap-vue/bootstrap-vue/commit/a948846400c37fca0fa3ed673b1c4684fc6f69e1))
60+
561
<a name="2.14.0"></a>
662

763
## [v2.14.0](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.13.1...v2.14.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<br>
77

88
<p align="center">
9-
BootstrapVue, with over 40 available plugins, more than 80 custom components, and over 530 icons,
9+
BootstrapVue, with over 40 available plugins, more than 80 custom components, and over 670 icons,
1010
provides one of the most comprehensive implementations of the Bootstrap v4 component and grid
1111
system for Vue.js, complete with extensive and automated WAI-ARIA accessibility markup.
1212
</p>

docs/common-props.json

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -197,40 +197,49 @@
197197
"active": {
198198
"description": "When set to 'true', places the component in the active state with active styling"
199199
},
200+
"href": {
201+
"description": "<b-link> prop: Denotes the target URL of the link for standard a links"
202+
},
200203
"rel": {
201-
"description": "Sets the 'rel' attribute on the rendered link"
204+
"description": "<b-link> prop: Sets the 'rel' attribute on the rendered link"
202205
},
203206
"target": {
204-
"description": "Sets the 'target' attribute on the rendered link"
205-
},
206-
"href": {
207-
"description": "Denotes the target URL of the link for standard a links"
207+
"description": "<b-link> prop: Sets the 'target' attribute on the rendered link"
208208
},
209209
"to": {
210-
"description": "router-link prop: Denotes the target route of the link. When clicked, the value of the to prop will be passed to router.push() internally, so the value can be either a string or a Location descriptor object"
210+
"description": "<router-link> prop: Denotes the target route of the link. When clicked, the value of the to prop will be passed to router.push() internally, so the value can be either a string or a Location descriptor object"
211211
},
212212
"replace": {
213-
"description": "router-link prop: Setting the replace prop will call 'router.replace()' instead of 'router.push()' when clicked, so the navigation will not leave a history record"
213+
"description": "<router-link> prop: Setting the replace prop will call 'router.replace()' instead of 'router.push()' when clicked, so the navigation will not leave a history record"
214214
},
215215
"append": {
216-
"description": "router-link prop: Setting append prop always appends the relative path to the current path"
216+
"description": "<router-link> prop: Setting append prop always appends the relative path to the current path"
217217
},
218218
"exact": {
219-
"description": "router-link prop: The default active class matching behavior is inclusive match. Setting this prop forces the mode to exactly match the route"
219+
"description": "<router-link> prop: The default active class matching behavior is inclusive match. Setting this prop forces the mode to exactly match the route"
220220
},
221221
"activeClass": {
222-
"description": "router-link prop: Configure the active CSS class applied when the link is active. Typically you will want to set this to class name 'active'"
222+
"description": "<router-link> prop: Configure the active CSS class applied when the link is active. Typically you will want to set this to class name 'active'"
223223
},
224224
"exactActiveClass": {
225-
"description": "router-link prop: Configure the active CSS class applied when the link is active with exact match. Typically you will want to set this to class name 'active'"
225+
"description": "<router-link> prop: Configure the active CSS class applied when the link is active with exact match. Typically you will want to set this to class name 'active'"
226226
},
227227
"routerTag": {
228-
"description": "router-link prop: Specify which tag to render, and it will still listen to click events for navigation. 'router-tag' translates to the tag prop on the final rendered router-link. Typically you should use the default value"
228+
"description": "<router-link> prop: Specify which tag to render, and it will still listen to click events for navigation. 'router-tag' translates to the tag prop on the final rendered router-link. Typically you should use the default value"
229229
},
230230
"event": {
231-
"description": "router-link prop: Specify the event that triggers the link. In most cases you should leave this as the default"
231+
"description": "<router-link> prop: Specify the event that triggers the link. In most cases you should leave this as the default"
232+
},
233+
"prefetch": {
234+
"description": "<nuxt-link> prop: To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting 'prefetch' to 'true' or 'false' will overwrite the default value of 'router.prefetchLinks'",
235+
"version": "2.15.0"
232236
},
233237
"noPrefetch": {
234-
"description": "nuxt-link prop: To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting 'no-prefetch' will disabled this feature for the specific link"
238+
"description": "<nuxt-link> prop: To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting 'no-prefetch' will disabled this feature for the specific link"
239+
},
240+
"routerComponentName": {
241+
"description": "<b-link> prop: BootstrapVue auto detects between `<router-link>` and `<nuxt-link>`. In cases where you want to use a 3rd party link component based on `<router-link>`, set this prop to the component name. e.g. set it to 'g-link' if you are using Gridsome (note only `<router-link>` specific props are passed to the component)",
242+
"version": "2.15.0",
243+
"settings": true
235244
}
236245
}

docs/components/carbon-ad.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ export default {
3030
}
3131
},
3232
mounted() {
33+
// Remove any leftover Carbonads scripts from the `<head>`
34+
const $nodes = document.querySelectorAll('head > script[id="_carbonads_projs"]')
35+
for (const $node of $nodes) {
36+
try {
37+
$node.parentNode.removeChild($node)
38+
} catch {}
39+
}
40+
41+
// Show the new ad
3342
this.$nextTick(() => {
3443
requestAnimationFrame(() => {
3544
this.mounted = true

docs/markdown/reference/router-links/README.md

Lines changed: 55 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
In the following sections, we are using the `<b-link>` component to render router links. `<b-link>`
1111
is the building block of most of BootstrapVue's _actionable_ components. You could use any other
1212
component that supports link generation such as [`<b-link>`](/docs/components/link),
13-
[`<b-button>`](/docs/components/button), [`<b-breadcrumb-item>`](/docs/components/breadcrumb),
13+
[`<b-button>`](/docs/components/button), [`<b-avatar>`](/docs/components/avatar),
14+
[`<b-breadcrumb-item>`](/docs/components/breadcrumb),
1415
[`<b-list-group-item>`](/docs/components/list-group), [`<b-nav-item>`](/docs/components/nav),
1516
[`<b-dropdown-item>`](/docs/components/dropdown), and
1617
[`<b-pagination-nav>`](/docs/components/pagination-nav). Note that not all props are available on
@@ -155,19 +156,21 @@ render a [`<nuxt-link>`](https://nuxtjs.org/api/components-nuxt-link) sub compon
155156
`<router-link>`. `<nuxt-link>` supports all of the above router link props, plus the following
156157
additional Nuxt.js specific props.
157158

158-
### `no-prefetch`
159+
### `prefetch`
159160

160161
- type: `boolean`
161-
- default: `false`
162-
- availability: Nuxt.js 2.4.0+
162+
- default: `null`
163+
- availability: Nuxt.js 2.10.0+ and BootstrapVue 2.15.0+
163164

164165
To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within
165-
the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting `no-prefetch` will
166-
disabled this feature for the specific link.
166+
the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting `prefetch` to
167+
`true` or `false` will overwrite the default value of `router.prefetchLinks` configured in the
168+
`nuxt.config.js` configuration file.
167169

168-
**Note:** If you have prefetching disabled in your `nuxt.config.js` configuration
169-
(`router: { prefetchLinks: false}`), or are using a version of Nuxt.js `< 2.4.0`, then this prop
170-
will have no effect.
170+
**Notes:**
171+
172+
- If you have are using a version of Nuxt.js `< 2.10.0`, then this prop will have no effect.
173+
- Remember to `v-bind` the prop value (e.g. `:prefetch="true"` or `:prefetch="false"`).
171174

172175
Prefetching support requires
173176
[IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)
@@ -187,3 +190,46 @@ export default {
187190
}
188191
}
189192
```
193+
194+
### `no-prefetch`
195+
196+
- type: `boolean`
197+
- default: `false`
198+
- availability: Nuxt.js 2.4.0+
199+
200+
To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within
201+
the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting `no-prefetch` will
202+
disabled this feature for the specific link.
203+
204+
**Note:** If you have prefetching disabled in your `nuxt.config.js` configuration
205+
(`router: { prefetchLinks: false }`), or are using a version of Nuxt.js `< 2.4.0`, then this prop
206+
will have no effect.
207+
208+
## Third-party router link support
209+
210+
<span class="badge badge-info small">v2.15.0+</span>
211+
212+
BootstrapVue auto detects using `<router-link>` and `<nuxt-link>` link components. Some 3rd party
213+
frameworks also provide customized versions of `<router-link>`, such as
214+
[Gridsome's `<g-link>` component](https://gridsome.org/docs/linking/). BootstrapVue can support
215+
these third party `<router-link>` compatible components via the use of the `router-component-name`
216+
prop. All `vue-router` props (excluding `<nuxt-link>` specific props) will be passed to the
217+
specified router link component.
218+
219+
**Notes:**
220+
221+
- The 3rd party component will only be used when the `to` prop is set.
222+
- Not all 3rd party components support all props supported by `<router-link>`, nor do not support
223+
fully qualified domain name URLs, nor hash only URLs. Refer to the 3rd party component
224+
documentation for details.
225+
226+
### `router-component-name`
227+
228+
- type: `string`
229+
- default: `undefined`
230+
- availability: BootstrapVue 2.15.0+
231+
232+
Set this prop to the name of the `<router-link>` compatible component, e.g. `'g-link'` for
233+
[Gridsome](https://gridsome.org/).
234+
235+
If left at the default, BootstrapVue will automatically select `<router-link>` or `<nuxt-link>`.

docs/markdown/reference/validation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Vue.use(VeeValidate, {
6464
6565
## VeeValidate v3
6666

67-
[VeeValidate](http://vee-validate.logaretm.com/) is a plugin for Vue.js that allows you to validate
67+
[VeeValidate](https://logaretm.github.io/vee-validate/) is a plugin for Vue.js that allows you to validate
6868
input fields and display errors. It has full support for
6969
[Vue I18n](https://kazupon.github.io/vue-i18n/) and provides fairly good out of the box error
7070
messages.

docs/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<b-row class="mb-4">
8383
<b-col lg="10" offset-lg="1">
8484
<p class="text-lg-center">
85-
With more than 85 components, over 45 available plugins, several directives, and 500+ icons,
85+
With more than 85 components, over 45 available plugins, several directives, and 670+ icons,
8686
<span class="bd-text-purple-bright">BootstrapVue</span> provides one of the most
8787
comprehensive implementations of the
8888
<span class="bd-text-purple-bright">Bootstrap v{{ bootstrapVersionMinor }}</span> component and grid system

docs/pages/play.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,17 +491,24 @@ export default {
491491
'',
492492
"new Vue({ el: '#app', render: h => h(App) })"
493493
].join('\r\n')
494+
const scripts = {
495+
serve: 'vue-cli-service serve',
496+
build: 'vue-cli-service build'
497+
}
494498
const dependencies = {
495499
bootstrap: bootstrapVersion,
496500
'bootstrap-vue': bootstrapVueVersion,
497501
vue: vueVersion
498502
}
503+
const devDependencies = {
504+
'@vue/cli-service': '^4.3.0'
505+
}
499506
return getCodeSandboxParameters({
500507
files: {
501508
'App.vue': { content: vueContent },
502509
'index.html': { content: htmlContent },
503510
'index.js': { content: jsContent },
504-
'package.json': { content: { dependencies } }
511+
'package.json': { content: { scripts, dependencies, devDependencies } }
505512
}
506513
})
507514
},

0 commit comments

Comments
 (0)