Fixed a breaking change introduced with color modes where it was required to manually import variables-dark.scss when building Bootstrap with Sass. Now, _variables.scss will automatically import _variables-dark.scss. If you were already importing _variables-dark.scss manually, you should keep doing it as it won't break anything and will be the way to go in v6.
Fixed a regression in the selector engine that wasn't able to handle multiple IDs anymore.
Color modes
Badges now use the .text-bg-* text utilities to be certain that the text is always readable (especially when the customized colors are different in light and dark modes).
Fixed our color-modes.js script to handle the case where the OS is set to light mode and the auto color mode is used on the website. If you copied the script from our docs, you should apply this change to your own script.
Fixed color schemes description in the color modes documentation to show that color-scheme() only accept light and dark values as parameters.
Miscellaneous
Allowed <dl>, <dt> and <dd> in the sanitizer.
Dropped evenly items distribution for modal and offcanvas headers.
Fixed the accordion CSS selectors to avoid inheritance issues when nesting accordions.
Fixed the focus box-shadow for the validation stated form controls.
Fixed the focus ring on focused checked buttons.
Fixed the product example mobile navbar toggler.
Changed the RTL processing of carousel control icons.
🎨 CSS
#37508: Use child combinators to avoid inheriting parent accordion's flush styles
#38719: Fix focus box-shadow for validation stated form-controls
Fixed internal constructFrom throwing an exception on null arguments. While null isn't allowed, the functions should rather return Invalid Date or NaN in such cases. See #3885.
Added
Added missing time zone support to format, formatISO, formatISO9075, formatRelative and formatRFC3339. See #3886.
v4.0.0
I have great news! First, ten years after its release, date-fns finally gets first-class time zone support.
Another great news is that there aren't many breaking changes in this release. All of them are type-related and will affect only those explicitly using internal date-fns types. Finally, it has been less than a year since the last major release, which is an improvement over the previous four years between v2 and v3. I plan on keeping the pace and minimizing breaking changes moving forward.
Added time zones support via @date-fns/tz's TZDate class and tz helper function. See its README for the details about the API.
All relevant functions now accept the context in option, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone:
import { addDays, startOfDay } from "date-fns";
import { tz } from "@date-fns/tz";
In the example, addDays will get the current date and time in Singapore and add 5 days to it. startOfDay will inherit the date type and return the start of the day in Singapore.
Changed
The function arguments, as well as Interval's start and end, now can be of different types, allowing you to mix UTCDate, TZDate, Date, and other extensions, as well as primitives (strings and numbers).
The functions will normalize these values, make calculations, and return the result in the same type, preventing any bugs caused by the discrepancy. If passed, the type will be inferred from the context in option or the first encountered argument object type. The Interval's start and end will be considered separately, starting from start.
In the given example, the result will be in the TZDate as the first argument is a number, and the start takes precedence over the end.
clamp(Date.now(), {
start: new TZDate(start, "Asia/Singapore"),
end: new UTCDate(),
Fixed internal constructFrom throwing an exception on null arguments. While null isn't allowed, the functions should rather return Invalid Date or NaN in such cases. See #3885.
Added
Added missing time zone support to format, formatISO, formatISO9075, formatRelative and formatRFC3339. See #3886.
v4.0.0 - 2024-09-16
I have great news! First, ten years after its release, date-fns finally gets first-class time zone support.
Another great news is that there aren't many breaking changes in this release. All of them are type-related and will affect only those explicitly using internal date-fns types. Finally, it has been less than a year since the last major release, which is an improvement over the previous four years between v2 and v3. I plan on keeping the pace and minimizing breaking changes moving forward.
Added time zones support via @date-fns/tz's TZDate class and tz helper function. See its README for the details about the API.
All relevant functions now accept the context in option, which allows to specify the time zone to make the calculations in. If the function also returns a date, it will be in the specified time zone:
import { addDays, startOfDay } from "date-fns";
import { tz } from "@date-fns/tz";
In the example, addDays will get the current date and time in Singapore and add 5 days to it. startOfDay will inherit the date type and return the start of the day in Singapore.
Changed
The function arguments, as well as Interval's start and end, now can be of different types, allowing you to mix UTCDate, TZDate, Date, and other extensions, as well as primitives (strings and numbers).
The functions will normalize these values, make calculations, and return the result in the same type, preventing any bugs caused by the discrepancy. If passed, the type will be inferred from the context in option or the first encountered argument object type. The Interval's start and end will be considered separately, starting from start.
In the given example, the result will be in the TZDate as the first argument is a number, and the start takes precedence over the end.
collect of used variables for changed selector (#1217) (9fbb592)
gulp-purgecss: move vinyl-sourcemaps-apply to deps #999 (7858b7a)
Only throw No files found from the passed PurgeCSS option 'content'. warning when files/globs are passed to content by @AdrianGonz97 in FullHuman/purgecss#1188
bugfix: Only throw No files found from the passed PurgeCSS option 'content'. warning when files/globs are passed to content by @AdrianGonz97 in FullHuman/purgecss#1188
collect of used variables for changed selector (#1217) (9fbb592)
gulp-purgecss: move vinyl-sourcemaps-apply to deps #999 (7858b7a)
Only throw No files found from the passed PurgeCSS option 'content'. warning when files/globs are passed to content by @AdrianGonz97 in FullHuman/purgecss#1188
bugfix: Only throw No files found from the passed PurgeCSS option 'content'. warning when files/globs are passed to content by @AdrianGonz97 in FullHuman/purgecss#1188
Bumps the npm-modules-updates group with 13 updates in the /hugo directory:
0.28.1
1.7.7
4.6.2
5.3.3
5.2.1
7.0.3
2.30.0
4.1.0
4.1.4
5.0.0
0.7.0
0.12.2
4.1.1
6.0.0
4.1.3
6.0.0
3.1.5
5.0.0
8.0.2
16.0.3
1.1.1
3.2.2
6.2.2
9.5.1
4.9.5
5.6.3
Updates
axios
from 0.28.1 to 1.7.7Release notes
Sourced from axios's releases.
... (truncated)
Changelog
Sourced from axios's changelog.
... (truncated)
Commits
5b8a826
chore(release): v1.7.7 (#6585)364993f
fix(http): fixed support for IPv6 literal strings in url (#5731)d198085
fix(fetch): fix stream handling in Safari by fallback to using a stream reade...d584fcf
chore(release): v1.7.6 (#6583)bc03c6c
chore(examples): fix module import (#6575)df9889b
fix(fetch): optimize signals composing logic; (#6582)ee208cf
chore(sponsor): update sponsor block (#6576)085f568
fix(fetch): fix content length calculation for FormData payload; (#6524)59cd6b0
chore(release): v1.7.5 (#6574)6700a8a
fix(core): add the missed implementation of AxiosError#status property; (#6573)Updates
bootstrap
from 4.6.2 to 5.3.3Release notes
Sourced from bootstrap's releases.
... (truncated)
Commits
6e1f75f
Release v5.3.3 (#39524)3caef2b
Build(deps-dev): Bump terser from 5.27.1 to 5.27.2 (#39690)4abac9b
Build(deps-dev): Bump ip from 2.0.0 to 2.0.1 (#39691)c396a2a
Build(deps-dev): Bump sass from 1.70.0 to 1.71.0 (#39684)c9a8a40
Build(deps-dev): Bump rollup from 4.9.6 to 4.12.0 (#39683)6aecb37
Build(deps-dev): Bump eslint-plugin-html from 7.1.0 to 8.0.0 (#39672)4081168
Build(deps-dev): Bump terser from 5.27.0 to 5.27.1 (#39682)4605d71
Build(deps-dev): Bump postcss from 8.4.34 to 8.4.35 (#39673)08eeee3
Build(deps-dev): Bump lockfile-lint from 4.12.1 to 4.13.1 (#39675)f92d635
Build(deps-dev): Bump eslint-plugin-unicorn from 51.0.0 to 51.0.1 (#39676)Updates
cross-env
from 5.2.1 to 7.0.3Release notes
Sourced from cross-env's releases.
... (truncated)
Commits
bb0287b
docs: add dsbert as a contributor (#260)6f571e1
docs: Update README.md (#259)fe80c84
fix: add maintenance mode notice07a91d6
chore: Update validate.yml (#255)b2a610b
chore(validate): Filter out all-contributors branches (#254)54eec15
chore: only run push jobs on releasable branches (#253)8edd827
chore: Switch to GitHub Actions (#251)ed844af
docs: add devuxer as a contributor (#241)bddb4d5
docs: add multi vars example to README (#240)9a5a9bd
chore: Only release on original repo (#237)Updates
date-fns
from 2.30.0 to 4.1.0Release notes
Sourced from date-fns's releases.
... (truncated)
Changelog
Sourced from date-fns's changelog.
... (truncated)
Commits
313b902
Fix v4.1.0 change log entry26cd336
Promote to v4.1.097b53b9
Cover time zone edge cases59b7563
Add missing time zone support to format, formatISO, formatISO9075, formatRela...0121164
Prevent constructFrom from throwing an error on nullbd87ef5
Update@date-fns/docs
99b4e67
Prepare v4.08df1706
Rewrite the time zones doce351977
Promote to v4.0.0-beta.18523656
Fix scripts/test/types.shUpdates
imagesloaded
from 4.1.4 to 5.0.0Commits
6d07d12
🎆 v5 - ES6, drop IEe6f9f91
📦 add package-lock.json; update .gitignorec4ff21a
👔 lint eqeqeq error smartb7181ac
📝 http:// -> https://26d823c
📝 Revise README for v54accfda
📝 #300 add LICENSE filec65dd83
🔔 #204 add crossOrigin attribute1915f05
🔔 #175 #294 add srcset <picture> supportb059c1f
🛠 ES6 upgrades; use for-of loops08f0603
👟 dist and version tasksUpdates
intersection-observer
from 0.7.0 to 0.12.2Commits
Updates
purgecss-from-html
from 4.1.1 to 6.0.0Release notes
Sourced from purgecss-from-html's releases.
... (truncated)
Changelog
Sourced from purgecss-from-html's changelog.
... (truncated)
Commits
dbada97
v6.0.02e944d2
chore: format using prettier3eb1d36
build(dev-deps): update lerna from 6.6.1 to 8.1.26e7401a
build(deps-dev): bump@types/node
from 20.11.16 to 20.11.30 (#1235)7c29ca2
build(deps-dev): bump the npm_and_yarn group with 1 update (#1236)f8f2a68
build(deps-dev): bump follow-redirects from 1.15.5 to 1.15.6 (#1231)a1cc67a
docs: fix typo (#1232)d12a77e
build(deps-dev): bump prettier from 3.0.3 to 3.2.5 (#1226)d357cad
build(deps): bump acorn from 8.11.2 to 8.11.3 (#1227)bd843a1
build(deps-dev): bump@typescript-eslint/eslint-plugin
(#1223)Updates
purgecss-webpack-plugin
from 4.1.3 to 6.0.0Release notes
Sourced from purgecss-webpack-plugin's releases.
... (truncated)
Changelog
Sourced from purgecss-webpack-plugin's changelog.
This pull request was built based on a group rule. Closing it will not ignore any of these versions in future pull requests.
To ignore these dependencies, configure ignore rules in dependabot.yml