Skip to content

Commit 3203a20

Browse files
committed
Update to v5.3.4
1 parent 1e6b6b2 commit 3203a20

Some content is hidden

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

53 files changed

+230
-206
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The changelog only includes changes specific to the RubyGem.
66
The Bootstrap framework changes can be found in [the Releases section of twbs/bootstrap](https://github.com/twbs/bootstrap/releases).
77
Release announcement posts on [the official Bootstrap blog](http://blog.getbootstrap.com) contain summaries of the most noteworthy changes made in each release of Bootstrap.
88

9+
# 5.3.4
10+
11+
* Autoprefixer is now optional.
12+
[#283](https://github.com/twbs/bootstrap-rubygem/pull/283)
13+
914
# 5.3.3
1015

1116
* Adds support for other Sass engines: dartsass-sprockets, dartsass-rails, and cssbundling-rails.

assets/javascripts/bootstrap-sprockets.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
//= require ./bootstrap/util/component-functions
1111
//= require ./bootstrap/util/focustrap
1212
//= require ./bootstrap/util/scrollbar
13-
//= require ./bootstrap/offcanvas
14-
//= require ./bootstrap/dropdown
13+
//= require ./bootstrap/modal
14+
//= require ./bootstrap/scrollspy
15+
//= require ./bootstrap/button
16+
//= require ./bootstrap/alert
1517
//= require ./bootstrap/util/sanitizer
1618
//= require ./bootstrap/util/template-factory
1719
//= require ./bootstrap/tooltip
18-
//= require ./bootstrap/toast
1920
//= require ./bootstrap/popover
21+
//= require ./bootstrap/collapse
22+
//= require ./bootstrap/offcanvas
23+
//= require ./bootstrap/dropdown
2024
//= require ./bootstrap/util/swipe
21-
//= require ./bootstrap/alert
22-
//= require ./bootstrap/button
2325
//= require ./bootstrap/carousel
24-
//= require ./bootstrap/modal
25-
//= require ./bootstrap/collapse
26-
//= require ./bootstrap/scrollspy
26+
//= require ./bootstrap/toast
2727
//= require ./bootstrap/tab
2828
//= require ./bootstrap-global-this-undefine

assets/javascripts/bootstrap.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Bootstrap v5.3.3 (https://getbootstrap.com/)
3-
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2+
* Bootstrap v5.3.4 (https://getbootstrap.com/)
3+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
55
*/
66
(function (global, factory) {
@@ -224,7 +224,7 @@
224224
* @param {HTMLElement} element
225225
* @return void
226226
*
227-
* @see https://www.charistheo.io/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation
227+
* @see https://www.harrytheo.com/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation
228228
*/
229229
const reflow = element => {
230230
element.offsetHeight; // eslint-disable-line no-unused-expressions
@@ -269,7 +269,7 @@
269269
});
270270
};
271271
const execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {
272-
return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue;
272+
return typeof possibleCallback === 'function' ? possibleCallback.call(...args) : defaultValue;
273273
};
274274
const executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {
275275
if (!waitForTransition) {
@@ -591,7 +591,7 @@
591591
const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'));
592592
for (const key of bsKeys) {
593593
let pureKey = key.replace(/^bs/, '');
594-
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);
594+
pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1);
595595
attributes[pureKey] = normalizeData(element.dataset[key]);
596596
}
597597
return attributes;
@@ -666,7 +666,7 @@
666666
* Constants
667667
*/
668668

669-
const VERSION = '5.3.3';
669+
const VERSION = '5.3.4';
670670

671671
/**
672672
* Class definition
@@ -1881,7 +1881,7 @@
18811881
}
18821882
_createPopper() {
18831883
if (typeof Popper__namespace === 'undefined') {
1884-
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
1884+
throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org/docs/v2/)');
18851885
}
18861886
let referenceElement = this._element;
18871887
if (this._config.reference === 'parent') {
@@ -1960,7 +1960,7 @@
19601960
}
19611961
return {
19621962
...defaultBsPopperConfig,
1963-
...execute(this._config.popperConfig, [defaultBsPopperConfig])
1963+
...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
19641964
};
19651965
}
19661966
_selectMenuItem({
@@ -3147,7 +3147,7 @@
31473147
return this._config.sanitize ? sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn) : arg;
31483148
}
31493149
_resolvePossibleFunction(arg) {
3150-
return execute(arg, [this]);
3150+
return execute(arg, [undefined, this]);
31513151
}
31523152
_putElementInTemplate(element, templateElement) {
31533153
if (this._config.html) {
@@ -3246,7 +3246,7 @@
32463246
class Tooltip extends BaseComponent {
32473247
constructor(element, config) {
32483248
if (typeof Popper__namespace === 'undefined') {
3249-
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
3249+
throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org/docs/v2/)');
32503250
}
32513251
super(element, config);
32523252

@@ -3292,7 +3292,6 @@
32923292
if (!this._isEnabled) {
32933293
return;
32943294
}
3295-
this._activeTrigger.click = !this._activeTrigger.click;
32963295
if (this._isShown()) {
32973296
this._leave();
32983297
return;
@@ -3480,7 +3479,7 @@
34803479
return offset;
34813480
}
34823481
_resolvePossibleFunction(arg) {
3483-
return execute(arg, [this._element]);
3482+
return execute(arg, [this._element, this._element]);
34843483
}
34853484
_getPopperConfig(attachment) {
34863485
const defaultBsPopperConfig = {
@@ -3518,7 +3517,7 @@
35183517
};
35193518
return {
35203519
...defaultBsPopperConfig,
3521-
...execute(this._config.popperConfig, [defaultBsPopperConfig])
3520+
...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
35223521
};
35233522
}
35243523
_setListeners() {

assets/javascripts/bootstrap.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/bootstrap/alert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Bootstrap alert.js v5.3.3 (https://getbootstrap.com/)
3-
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2+
* Bootstrap alert.js v5.3.4 (https://getbootstrap.com/)
3+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
55
*/
66
(function (global, factory) {

assets/javascripts/bootstrap/base-component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Bootstrap base-component.js v5.3.3 (https://getbootstrap.com/)
3-
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2+
* Bootstrap base-component.js v5.3.4 (https://getbootstrap.com/)
3+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
55
*/
66
(function (global, factory) {
@@ -21,7 +21,7 @@
2121
* Constants
2222
*/
2323

24-
const VERSION = '5.3.3';
24+
const VERSION = '5.3.4';
2525

2626
/**
2727
* Class definition

assets/javascripts/bootstrap/button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Bootstrap button.js v5.3.3 (https://getbootstrap.com/)
3-
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2+
* Bootstrap button.js v5.3.4 (https://getbootstrap.com/)
3+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
55
*/
66
(function (global, factory) {

assets/javascripts/bootstrap/carousel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Bootstrap carousel.js v5.3.3 (https://getbootstrap.com/)
3-
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2+
* Bootstrap carousel.js v5.3.4 (https://getbootstrap.com/)
3+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
55
*/
66
(function (global, factory) {

assets/javascripts/bootstrap/collapse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Bootstrap collapse.js v5.3.3 (https://getbootstrap.com/)
3-
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2+
* Bootstrap collapse.js v5.3.4 (https://getbootstrap.com/)
3+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
55
*/
66
(function (global, factory) {

assets/javascripts/bootstrap/dom/data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Bootstrap data.js v5.3.3 (https://getbootstrap.com/)
3-
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2+
* Bootstrap data.js v5.3.4 (https://getbootstrap.com/)
3+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
55
*/
66
(function (global, factory) {

0 commit comments

Comments
 (0)