8000 chore: release v2.2.0 · ssmbct-netops/bootstrap-vue@c1cf970 · GitHub
[go: up one dir, main page]

Skip to content

Commit c1cf970

Browse files
authored
chore: release v2.2.0
2 parents 2ed2fde + 4853938 commit c1cf970

File tree

224 files changed

+25666
-3739
lines changed

Some content is hidden

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

224 files changed

+25666
-3739
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ A clear and concise description of what the pull request does.
2525
- [ ] It's submitted to the `dev` branch, **not** the `master` branch
2626
- [ ] When resolving a specific issue, it's referenced in the PR's title (i.e. `[...] (fixes #xxx[,#xxx])`, where "xxx" is the issue number)
2727
- [ ] It should address only one issue or feature. If adding multiple features or fixing a bug and adding a new feature, break them into separate PRs if at all possible.
28-
- [ ] The title should follow the [**Conventional Commits**](https://www.conventionalcommits.org/) naming convention (i.e. `fix(alert): not alerting during SSR render`, `docs(badge): update pill examples, fix typos`, `chore: fix typo in README`, etc). **This is very important, as the `CHANGELOG` is generated from these messages.**
28+
- [ ] The title should follow the [**Conventional Commits**](https://www.conventionalcommits.org/) naming convention (i.e. `fix(alert): not alerting during SSR render`, `docs(badge): update pill examples`, `chore(docs): fix typo in README`, etc). **This is very important, as the `CHANGELOG` is generated from these messages.**
2929

3030
**If new features/enhancement/fixes are added or changed:**
3131

3232
- [ ] Includes documentation updates (including updating the component's `package.json` for slot and event changes)
3333
- [ ] Includes any needed TypeScript declaration file updates
3434
- [ ] New/updated tests are included and passing (if required)
3535
- [ ] Existing test suites are passing
36+
- [ ] CodeCov for patch has met target
3637
- [ ] The changes have not impacted the functionality of other components or directives
3738
- [ ] ARIA Accessibility has been taken into consideration (Does it affect screen reader users or keyboard only users? Clickable items should be in the tab index, etc.)
3839

.github/renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
{
1414
"packageNames": ["prettier"],
1515
"allowedVersions": "<=1.14.3"
16+
},
17+
{
18+
"packageNames": ["@vue/test-utils"],
19+
"allowedVersions": "<=1.0.0-beta.29"
1620
}
1721
]
1822
}

CHANGELOG.md

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,86 @@
44
> [standard-version](https://github.com/conventional-changelog/standard-version) for commit
55
> guidelines.
66
7+
<a name="2.2.0"></a>
8+
9+
## [v2.2.0](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.1.0...v2.2.0)
10+
11+
Released: 2020-01-08
12+
13+
### Overview v2.2.0
14+
15+
- New optional icon components based on `BootstrapIcons v1.0.0-alpha2`
16+
- New tagged input component `<b-form-tags>`
17+
- Support for `Bootstrap v4.4.1` CSS/SCSS
18+
19+
### Features v2.2.0
20+
21+
- **icons:** new optional icon components
22+
([#4489](https://github.com/bootstrap-vue/bootstrap-vue/issues/4489))
23+
([d2bef17](https://github.com/bootstrap-vue/bootstrap-vue/commit/d2bef1715636fcb83de6d51808683e6feda671d0))
24+
- **b-collapse:** add new prop `appear` to animate an initially visible collapse
25+
([#4317](https://github.com/bootstrap-vue/bootstrap-vue/issues/4317))
26+
([136a72b](https://github.com/bootstrap-vue/bootstrap-vue/commit/136a72b0352d4bb1339ab31f791087cbcda42fa5))
27+
- **b-collapse:** add optional scoping to default slot
28+
([#4405](https://github.com/bootstrap-vue/bootstrap-vue/issues/4405))
29+
([8e95bac](https://github.com/bootstrap-vue/bootstrap-vue/commit/8e95bacf9d00562f2676689d067ae0db009cbbb6))
30+
- **b-container:** add support for bootstrap v4.4.x new responsive containers
31+
([0e318f4](https://github.com/bootstrap-vue/bootstrap-vue/commit/0e318f4755e65eb569dcc579938d0d72c02abd62))
32+
- **b-dropdown:** add splitClass property to dropdown component
33+
([#4394](https://github.com/bootstrap-vue/bootstrap-vue/issues/4394))
34+
([a5f342e](https://github.com/bootstrap-vue/bootstrap-vue/commit/a5f342e0e4de2186259e36e42cecda8c20e1c8ab))
35+
- **b-dropdown-form:** new `form-class` prop for adding classes to the form element (closes
36+
[#4474](https://github.com/bootstrap-vue/bootstrap-vue/issues/4474))
37+
([#4475](https://github.com/bootstrap-vue/bootstrap-vue/issues/4475))
38+
([eef4200](https://github.com/bootstrap-vue/bootstrap-vue/commit/eef4200976f7921b1bb03f50c0ece8ee7c41ed0e))
39+
- **b-form-select:** add group/tree support and dedicated option and option-group components (closes
40+
[#3222](https://github.com/bootstrap-vue/bootstrap-vue/issues/3222))
41+
([#4267](https://github.com/bootstrap-vue/bootstrap-vue/issues/4267))
42+
([f1ed017](https://github.com/bootstrap-vue/bootstrap-vue/commit/f1ed0177c20f9d7e7e340a8815d1b6bc66f7cb76))
43+
- **b-form-select:** support paths for `valueField`, `textField`, `htmlField` and `disabledField`
44+
props ([#4386](https://github.com/bootstrap-vue/bootstrap-vue/issues/4386))
45+
([ed3b736](https://github.com/bootstrap-vue/bootstrap-vue/commit/ed3b7360af415dc3cc56f0b6662c9d48cc165781))
46+
- **b-form-tags:** new tagged input component
47+
([#4409](https://github.com/bootstrap-vue/bootstrap-vue/issues/4409))
48+
([00eb9d9](https://github.com/bootstrap-vue/bootstrap-vue/commit/00eb9d9fd460adca8227b3b344284b5cc49a734f))
49+
- **b-row:** add Bootstrap v4.4 row columns support
50+
([#4439](https://github.com/bootstrap-vue/bootstrap-vue/issues/4439))
51+
([833b028](https://github.com/bootstrap-vue/bootstrap-vue/commit/833b028a2d6101d01b7012a7378359db1c801695))
52+
- **b-table:** better sort labeling for screen readers (closes
53+
[#4487](https://github.com/bootstrap-vue/bootstrap-vue/issues/4487))
54+
([#4488](https://github.com/bootstrap-vue/bootstrap-vue/issues/4488))
55+
([d4e66fa](https://github.com/bootstrap-vue/bootstrap-vue/commit/d4e66fa48fdd1cd7fd4b93907fe999de3fc577f8))
56+
- **b-table, b-table-lite:** new `tbody-tr-attr` prop for arbitrary row attributes (closes
57+
[#1864](https://github.com/bootstrap-vue/bootstrap-vue/issues/1864))
58+
([#4481](https://github.com/bootstrap-vue/bootstrap-vue/issues/4481))
59+
([4acf6ed](https://github.com/bootstrap-vue/bootstrap-vue/commit/4acf6ed863dd5edd85897a01b099c42322097d1b))
60+
- **b-tooltip:** add `noninteractive` prop (closes
61+
[#4556](https://github.com/bootstrap-vue/bootstrap-vue/issues/4556))
62+
([#4563](https://github.com/bootstrap-vue/bootstrap-vue/issues/4563))
63+
([b3ad726](https://github.com/bootstrap-vue/bootstrap-vue/commit/b3ad7264d9b10fb1b8dfba70c62eed11a56519d6))
64+
- **build:** configure pre-commit hook (closes
65+
[#4532](https://github.com/bootstrap-vue/bootstrap-vue/issues/4532))
66+
([#4552](https://github.com/bootstrap-vue/bootstrap-vue/issues/4552))
67+
([1bf9e59](https://github.com/bootstrap-vue/bootstrap-vue/commit/1bf9e59e8888a7a2cd6f135665103419f603a32d))
68+
69+
### Bug Fixes v2.2.0
70+
71+
- **b-table, b-table-lite:** handle edge case with row events when table is removed from dom.
72+
instantiate row event handlers only when listeners are registered (fixes
73+
[#4384](https://github.com/bootstrap-vue/bootstrap-vue/issues/4384))
74+
([#4388](https://github.com/bootstrap-vue/bootstrap-vue/issues/4388))
75+
([9a81cd4](https://github.com/bootstrap-vue/bootstrap-vue/commit/9a81cd414a2c534b96de0d82c3d00d94651e5a7b))
76+
- **b-toast:** fix interal `ensureToaster` method call when toaster name changes
77+
([#4468](https://github.com/bootstrap-vue/bootstrap-vue/issues/4468))
78+
([744bb7a](https://github.com/bootstrap-vue/bootstrap-vue/commit/744bb7a77092a04184af31bf285e432110e1ab44))
79+
- **tooltips, popovers:** fix memory leak (closes
80+
[#4400](https://github.com/bootstrap-vue/bootstrap-vue/issues/4400))
81+
([#4401](https://github.com/bootstrap-vue/bootstrap-vue/issues/4401))
82+
([c71352d](https://github.com/bootstrap-vue/bootstrap-vue/commit/c71352d674347e5e2d72fe8b82334fc87a4ffd8c))
83+
- **docs:** handle undocumented breaking changes in babel-standalone for IE11
84+
([#4484](https://github.com/bootstrap-vue/bootstrap-vue/issues/4484))
85+
([56f8bb5](https://github.com/bootstrap-vue/bootstrap-vue/commit/56f8bb5af7fb7188da035210e8be28d7ae1c7bc1))
86+
787
<a name="2.1.0"></a>
888

989
## [v2.1.0](https://github.com/bootstrap-vue/bootstrap-vue/compare/v2.0.4...v2.1.0)
@@ -77,8 +157,8 @@ Released: 2019-11-12
77157
([#4325](https://github.com/bootstrap-vue/bootstrap-vue/issues/4325))
78158
([c686088](https://github.com/bootstrap-vue/bootstrap-vue/commit/c686088))
79159
- **b-table, b-table-lite, b-table-simple:** fix issue with sticky columns when table is not
80-
responsive but has sticky headers
81-
(fixes [#4354](https://github.com/bootstrap-vue/bootstrap-vue/issues/4354))
160+
responsive but has sticky headers (fixes
161+
[#4354](https://github.com/bootstrap-vue/bootstrap-vue/issues/4354))
82162
([#4356](https://github.com/bootstrap-vue/bootstrap-vue/issues/4356))
83163
([56b3958](https://github.com/bootstrap-vue/bootstrap-vue/commit/56b3958))
84164
- **b-table, b-table-lite, b-tbody:** fix delegated event handlers when transition + minor

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016-2019 - BootstrapVue
3+
Copyright (c) 2016-2020 - BootstrapVue
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/components/anchored-heading.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default {
2626
return h(
2727
`h${props.level}`,
2828
mergeData(data, {
29+
staticClass: 'bv-no-focus-ring',
2930
attrs: {
3031
id: props.id,
3132
tabindex: '-1'

docs/components/componentdoc.vue

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<section v-if="component" class="bd-content">
33
<b-row tag="header" align-v="center">
44
<b-col sm="9">
5-
<anchored-heading :id="`comp-ref-${componentName}`" level="3">
5+
<anchored-heading :id="`comp-ref-${componentNameClean}`" level="3">
66
<code class="notranslate bigger" translate="no">{{ tag }}</code>
77
</anchored-heading>
8+
<b-badge v-if="version" variant="success">v{{ version }}+</b-badge>
89
<b-badge
910
v-if="componentFunctional"
1011
variant="secondary"
@@ -15,7 +16,13 @@
1516
</b-badge>
1617
</b-col>
1718
<b-col sm="3" class="text-sm-right">
18-
<b-btn variant="outline-secondary" size="sm" :href="githubURL" target="_blank">
19+
<b-btn
20+
v-if="githubURL"
21+
variant="outline-secondary"
22+
size="sm"
23+
:href="githubURL"
24+
target="_blank"
25+
>
1926
View source
2027
</b-btn>
2128
</b-col>
@@ -120,7 +127,7 @@
120127
<div v-if="hasHtmlProps" class="alert alert-warning">
121128
<p class="mb-0 small">
122129
<strong>Caution:</strong> Props that support HTML strings
123-
(<code class="notranslate" translate="no">*-html</code>) can be vulerable to
130+
(<code class="notranslate" translate="no">*-html</code>) can be vulnerable to
124131
<b-link href="https://en.wikipedia.org/wiki/Cross-site_scripting" class="alert-link" target="_blank">
125132
Cross Site Scripting (XSS) attacks
126133
</b-link>
@@ -310,18 +317,23 @@ ul.component-ref-mini-toc:empty {
310317

311318
<script>
312319
import Vue from 'vue'
313-
import kebabCase from 'lodash/kebabCase'
314-
import AnchoredHeading from './anchored-heading'
315320
// Fallback descriptions for common props (mainly router-link props)
316321
import commonProps from '../common-props.json'
322+
import { kebabCase } from '../utils'
323+
import AnchoredHeading from './anchored-heading'
317324
318325
export default {
319326
name: 'BDVComponentdoc',
320327
components: { AnchoredHeading },
321328
props: {
322329
component: {},
330+
srcComponent: {
331+
// This prop is used only when the above `component` is a
332+
// "fake" component. This prop specifies a "real" component
333+
// to use when grabbing the component definition options
334+
},
323335
propsMeta: {
324-
// For getting pro descriptions
336+
// For getting prop descriptions
325337
type: Array,
326338
default: () => []
327339
},
@@ -340,11 +352,15 @@ export default {
340352
aliases: {
341353
type: Array,
342354
default: () => []
355+
},
356+
version: {
357+
type: String,
358+
default: null
343359
}
344360
},
345361
computed: {
346362
componentOptions() {
347-
const component = Vue.options.components[this.component]
363+
const component = Vue.options.components[this.srcComponent || this.component]
348364
if (!component) {
349365
return {}
350366
}
@@ -487,15 +503,22 @@ export default {
487503
return this.slots ? this.slots.map(s => ({ ...s })) : []
488504
},
489505
componentName() {
490-
return kebabCase(this.component)
506+
return kebabCase(this.component).replace('{', '-{')
507+
},
508+
componentNameClean() {
509+
return this.componentName.replace('{', '').replace('}', '')
491510
},
492511
tag() {
493512
return `<${this.componentName}>`
494513
},
495514
githubURL() {
515+
const name = this.componentName.replace(/^b-/, '')
516+
if (name.indexOf('{') !== -1) {
517+
// Example component (most likely an auto generated component)
518+
return ''
519+
}
496520
const base = 'https://github.com/bootstrap-vue/bootstrap-vue/tree/dev/src/components'
497521
const slug = this.$route.params.slug
498-
const name = kebabCase(this.component).replace(/^b-/, '')
499522
// Always point to the .js file (which may import a .vue file)
500523
return `${base}/${slug}/${name}.js`
501524
}

docs/components/feedback.js

Lines changed: 11 additions & 9 deletions
10000
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
show() {
1010
const name = this.$route.name
1111
const slug = this.$route.params.slug
12-
return slug || name === 'docs'
12+
return slug || name === 'docs' || name === 'docs-icons'
1313
},
1414
reportIssueUrl() {
1515
// Add appreciate query params for proper issue title
@@ -18,22 +18,24 @@ export default {
1818
editPageUrl() {
1919
const name = this.$route.name
2020
const slug = this.$route.params.slug
21-
let path = '/'
21+
let path = ''
2222
if (name === 'docs') {
23-
path = `/docs/markdown/intro/README.md`
23+
path = `docs/markdown/intro/README.md`
2424
} else if (name === 'docs-components-slug') {
25-
path = `/src/components/${slug}/README.md`
25+
path = `src/components/${slug}/README.md`
26+
} else if (name === 'docs-icons') {
27+
path = `src/icons/README.md`
2628
} else if (name === 'docs-directives-slug') {
27-
path = `/src/directives/${slug}/README.md`
29+
path = `src/directives/${slug}/README.md`
2830
} else if (name === 'docs-reference-slug') {
29-
path = `/docs/markdown/reference/${slug}/README.md`
31+
path = `docs/markdown/reference/${slug}/README.md`
3032
} else if (name === 'docs-misc-slug') {
3133
if (slug === 'changelog') {
32-
path = '/CHANGELOG.md'
34+
path = 'CHANGELOG.md'
3335
} else if (slug === 'contributing') {
34-
path = '/CONTRIBUTING.md'
36+
path = 'CONTRIBUTING.md'
3537
} else if (slug === 'settings') {
36-
path = '/docs/markdown/misc/settings/README.md'
38+
path = 'docs/markdown/misc/settings/README.md'
3739
}
3840
}
3941
return `${this.baseUrl}/tree/dev/${path}`

docs/components/footer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<li><b-link to="/docs" exact>Getting started</b-link></li>
2020
<li><b-link to="/docs/components" exact>Components</b-link></li>
2121
<li><b-link to="/docs/directives" exact>Directives</b-link></li>
22+
<li><b-link to="/docs/icons" exact>Icons</b-link></li>
2223
<li><b-link to="/docs/reference" exact>Reference</b-link></li>
2324
<li><b-link to="/docs/misc" exact>Miscellaneous</b-link></li>
2425
<li><b-link to="/play" exact>Playground</b-link></li>

docs/components/header.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<b-nav-item to="/docs" active-class="active" exact>Docs</b-nav-item>
3434
<b-nav-item to="/docs/components" active-class="active">Components</b-nav-item>
3535
<b-nav-item to="/docs/directives" active-class="active">Directives</b-nav-item>
36+
<b-nav-item to="/docs/icons" active-class="active">Icons</b-nav-item>
3637
<b-nav-item to="/docs/reference" active-class="active">Reference</b-nav-item>
3738
<b-nav-item to="/docs/misc" active-class="active">Misc</b-nav-item>
3839
<b-nav-item to="/play" active-class="active">Play</b-nav-item>

0 commit comments

Comments
 (0)
0