Skip to content

Commit a4614a5

Browse files
julien-deramondmdo
authored andcommitted
Bump copyright and example dates from 2025 to 2026
1 parent 3551b0f commit a4614a5

25 files changed

Lines changed: 57 additions & 57 deletions

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) 2011-2025 The Bootstrap Authors
3+
Copyright (c) 2011-2026 The Bootstrap Authors
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,4 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com
227227

228228
## Copyright and license
229229

230-
Code and documentation copyright 2011-2025 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors). Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
230+
Code and documentation copyright 2011-2026 the [Bootstrap Authors](https://github.com/twbs/bootstrap/graphs/contributors). Code released under the [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).

build/build-plugins.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*!
44
* Script to build our plugins to use them separately.
5-
* Copyright 2020-2025 The Bootstrap Authors
5+
* Copyright 2020-2026 The Bootstrap Authors
66
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
77
*/
88

build/change-version.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*!
44
* Script to update version number references in the project.
5-
* Copyright 2017-2025 The Bootstrap Authors
5+
* Copyright 2017-2026 The Bootstrap Authors
66
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
77
*/
88

build/generate-sri.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Remember to use the same vendor files as the CDN ones,
66
* otherwise the hashes won't match!
77
*
8-
* Copyright 2017-2025 The Bootstrap Authors
8+
* Copyright 2017-2026 The Bootstrap Authors
99
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1010
*/
1111

build/html-validate.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* - Easy to configure with rule-based system
1111
* - Better integration with Node.js build tools
1212
*
13-
* Copyright 2017-2025 The Bootstrap Authors
13+
* Copyright 2017-2026 The Bootstrap Authors
1414
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1515
*/
1616

build/zip-examples.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*!
44
* Script to create the built examples zip archive;
55
* requires the `zip` command to be present!
6-
* Copyright 2020-2025 The Bootstrap Authors
6+
* Copyright 2020-2026 The Bootstrap Authors
77
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
88
*/
99

js/tests/unit/datepicker.spec.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ describe('Datepicker', () => {
408408

409409
const inputEl = fixtureEl.querySelector('input')
410410
const datepicker = new Datepicker(inputEl)
411-
const dates = ['2025-01-15']
411+
const dates = ['2026-01-15']
412412

413413
datepicker.setSelectedDates(dates)
414414

@@ -420,12 +420,12 @@ describe('Datepicker', () => {
420420

421421
const inputEl = fixtureEl.querySelector('input')
422422
const datepicker = new Datepicker(inputEl)
423-
const dates = ['2025-01-15']
423+
const dates = ['2026-01-15']
424424

425425
datepicker.setSelectedDates(dates)
426426

427427
const result = datepicker.getSelectedDates()
428-
result.push('2025-01-20')
428+
result.push('2026-01-20')
429429

430430
expect(datepicker.getSelectedDates()).toEqual(dates)
431431
})
@@ -462,21 +462,21 @@ describe('Datepicker', () => {
462462

463463
describe('options', () => {
464464
it('should respect dateMin option', () => {
465-
fixtureEl.innerHTML = '<input type="text" data-bs-toggle="datepicker" data-bs-date-min="2025-01-01">'
465+
fixtureEl.innerHTML = '<input type="text" data-bs-toggle="datepicker" data-bs-date-min="2026-01-01">'
466466

467467
const inputEl = fixtureEl.querySelector('input')
468468
const datepicker = new Datepicker(inputEl)
469469

470-
expect(datepicker._config.dateMin).toEqual('2025-01-01')
470+
expect(datepicker._config.dateMin).toEqual('2026-01-01')
471471
})
472472

473473
it('should respect dateMax option', () => {
474-
fixtureEl.innerHTML = '<input type="text" data-bs-toggle="datepicker" data-bs-date-max="2025-12-31">'
474+
fixtureEl.innerHTML = '<input type="text" data-bs-toggle="datepicker" data-bs-date-max="2026-12-31">'
475475

476476
const inputEl = fixtureEl.querySelector('input')
477477
const datepicker = new Datepicker(inputEl)
478478

479-
expect(datepicker._config.dateMax).toEqual('2025-12-31')
479+
expect(datepicker._config.dateMax).toEqual('2026-12-31')
480480
})
481481

482482
it('should respect selectionMode option', () => {
@@ -684,7 +684,7 @@ describe('Datepicker', () => {
684684
const inputEl = fixtureEl.querySelector('input')
685685
const datepicker = new Datepicker(inputEl)
686686

687-
const result = datepicker._formatDate('2025-01-15')
687+
const result = datepicker._formatDate('2026-01-15')
688688

689689
// Should be a string (format varies by system locale)
690690
expect(typeof result).toEqual('string')
@@ -700,9 +700,9 @@ describe('Datepicker', () => {
700700
locale: 'en-US'
701701
})
702702

703-
const result = datepicker._formatDate('2025-01-15')
703+
const result = datepicker._formatDate('2026-01-15')
704704

705-
expect(result).toEqual('Jan 15, 2025')
705+
expect(result).toEqual('Jan 15, 2026')
706706
})
707707

708708
it('should format date with custom function', () => {
@@ -713,9 +713,9 @@ describe('Datepicker', () => {
713713
dateFormat: date => `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`
714714
})
715715

716-
const result = datepicker._formatDate('2025-01-15')
716+
const result = datepicker._formatDate('2026-01-15')
717717

718-
expect(result).toEqual('2025-1-15')
718+
expect(result).toEqual('2026-1-15')
719719
})
720720

721721
it('should use en-dash for date ranges', () => {
@@ -726,7 +726,7 @@ describe('Datepicker', () => {
726726
locale: 'en-US'
727727
})
728728

729-
const result = datepicker._formatDateForInput(['2025-01-15', '2025-01-20'])
729+
const result = datepicker._formatDateForInput(['2026-01-15', '2026-01-20'])
730730

731731
expect(result).toContain(' – ')
732732
})
@@ -739,7 +739,7 @@ describe('Datepicker', () => {
739739
locale: 'en-US'
740740
})
741741

742-
const result = datepicker._formatDateForInput(['2025-01-15', '2025-01-20'])
742+
const result = datepicker._formatDateForInput(['2026-01-15', '2026-01-20'])
743743

744744
expect(result).toContain(', ')
745745
})
@@ -920,7 +920,7 @@ describe('Datepicker', () => {
920920

921921
describe('input value parsing', () => {
922922
it('should parse initial input value', () => {
923-
fixtureEl.innerHTML = '<input type="text" data-bs-toggle="datepicker" value="2025-01-15">'
923+
fixtureEl.innerHTML = '<input type="text" data-bs-toggle="datepicker" value="2026-01-15">'
924924

925925
const inputEl = fixtureEl.querySelector('input')
926926
const datepicker = new Datepicker(inputEl)
@@ -981,7 +981,7 @@ describe('Datepicker', () => {
981981

982982
// Simulate VCP date click callback
983983
datepicker._handleDateClick({
984-
context: { selectedDates: ['2025-01-15'] }
984+
context: { selectedDates: ['2026-01-15'] }
985985
}, new Event('click'))
986986
})
987987
})
@@ -993,7 +993,7 @@ describe('Datepicker', () => {
993993
const datepicker = new Datepicker(inputEl)
994994

995995
datepicker._handleDateClick({
996-
context: { selectedDates: ['2025-01-15'] }
996+
context: { selectedDates: ['2026-01-15'] }
997997
}, new Event('click'))
998998

999999
expect(inputEl.value).not.toEqual('')
@@ -1011,7 +1011,7 @@ describe('Datepicker', () => {
10111011
const datepicker = new Datepicker(buttonEl)
10121012

10131013
datepicker._handleDateClick({
1014-
context: { selectedDates: ['2025-01-15'] }
1014+
context: { selectedDates: ['2026-01-15'] }
10151015
}, new Event('click'))
10161016

10171017
expect(displayEl.textContent).not.toEqual('Select date')
@@ -1029,10 +1029,10 @@ describe('Datepicker', () => {
10291029
const datepicker = new Datepicker(divEl)
10301030

10311031
datepicker._handleDateClick({
1032-
context: { selectedDates: ['2025-01-15'] }
1032+
context: { selectedDates: ['2026-01-15'] }
10331033
}, new Event('click'))
10341034

1035-
expect(hiddenInput.value).toEqual('2025-01-15')
1035+
expect(hiddenInput.value).toEqual('2026-01-15')
10361036
})
10371037

10381038
it('should auto-hide after single date selection', () => {
@@ -1045,7 +1045,7 @@ describe('Datepicker', () => {
10451045
const hideSpy = spyOn(datepicker, 'hide')
10461046

10471047
datepicker._handleDateClick({
1048-
context: { selectedDates: ['2025-01-15'] }
1048+
context: { selectedDates: ['2026-01-15'] }
10491049
}, new Event('click'))
10501050

10511051
setTimeout(() => {
@@ -1065,7 +1065,7 @@ describe('Datepicker', () => {
10651065
const hideSpy = spyOn(datepicker, 'hide')
10661066

10671067
datepicker._handleDateClick({
1068-
context: { selectedDates: ['2025-01-15', '2025-01-20'] }
1068+
context: { selectedDates: ['2026-01-15', '2026-01-20'] }
10691069
}, new Event('click'))
10701070

10711071
setTimeout(() => {
@@ -1085,7 +1085,7 @@ describe('Datepicker', () => {
10851085
const hideSpy = spyOn(datepicker, 'hide')
10861086

10871087
datepicker._handleDateClick({
1088-
context: { selectedDates: ['2025-01-15'] }
1088+
context: { selectedDates: ['2026-01-15'] }
10891089
}, new Event('click'))
10901090

10911091
setTimeout(() => {
@@ -1105,7 +1105,7 @@ describe('Datepicker', () => {
11051105
const hideSpy = spyOn(datepicker, 'hide')
11061106

11071107
datepicker._handleDateClick({
1108-
context: { selectedDates: ['2025-01-15'] }
1108+
context: { selectedDates: ['2026-01-15'] }
11091109
}, new Event('click'))
11101110

11111111
setTimeout(() => {
@@ -1144,7 +1144,7 @@ describe('Datepicker', () => {
11441144

11451145
const hideSpy = spyOn(datepicker, 'hide')
11461146

1147-
datepicker._maybeHideAfterSelection(['2025-01-15'])
1147+
datepicker._maybeHideAfterSelection(['2026-01-15'])
11481148

11491149
setTimeout(() => {
11501150
expect(hideSpy).not.toHaveBeenCalled()

js/tests/visual/datepicker.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ <h2>Basic Input Datepicker</h2>
2525
<h2>With Min/Max Dates</h2>
2626
<div class="row mb-4">
2727
<div class="col-md-6">
28-
<label for="minMaxDatepicker" class="form-label">Only dates in 2025</label>
29-
<input type="text" class="form-control" id="minMaxDatepicker" data-bs-toggle="datepicker" data-bs-date-min="2025-01-01" data-bs-date-max="2025-12-31" placeholder="Select a date in 2025">
28+
<label for="minMaxDatepicker" class="form-label">Only dates in 2026</label>
29+
<input type="text" class="form-control" id="minMaxDatepicker" data-bs-toggle="datepicker" data-bs-date-min="2026-01-01" data-bs-date-max="2026-12-31" placeholder="Select a date in 2026">
3030
</div>
3131
</div>
3232

@@ -119,7 +119,7 @@ <h2>Events Test</h2>
119119
const jsDatepickerEl = document.getElementById('jsDatepicker')
120120
const jsDatepicker = new bootstrap.Datepicker(jsDatepickerEl, {
121121
firstWeekday: 1,
122-
selectedDates: ['2025-01-15']
122+
selectedDates: ['2026-01-15']
123123
})
124124

125125
document.getElementById('showBtn').addEventListener('click', () => {

nuget/bootstrap.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<repository type="git" url="https://github.com/twbs/bootstrap.git" branch="main" />
1616
<icon>bootstrap.png</icon>
1717
<license type="expression">MIT</license>
18-
<copyright>Copyright 2011-2025</copyright>
18+
<copyright>Copyright 2011-2026</copyright>
1919
<requireLicenseAcceptance>false</requireLicenseAcceptance>
2020
<tags>css mobile-first responsive front-end framework web</tags>
2121
<contentFiles>

0 commit comments

Comments
 (0)