[Snyk] Upgrade @uswds/uswds from 3.1.0 to 3.9.0 #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @uswds/uswds from 3.1.0 to 3.9.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 13 versions ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: @uswds/uswds
What's new in USWDS 3.9.0
Features
usa-character-count
maxlength
is exceeded in the character count component. Now, the component uses standard USWDS error styles to visually enhance the error state. (#5908)usa-date-picker
,usa-date-range-picker
aria-disabled
to the list of expected attributes in the date picker and date range picker components. Now, the component will disable toggle when thearia-disabled
attribute is present. (#6013)uswds-core
,usa-layout-grid
$theme-utility-breakpoints-custom
setting. This setting generates responsive variants of USWDS utilities at custom breakpoints. Values must be set withpx
values inside a Sass map. Thanks @ jamigibbs! (#6048)Bug fixes
usa-alert
,usa-site-alert
$theme-site-margins-width
to unexpectedly adjust the alignment inside the alert and site alert components. Alignment on the alert and site alert components will likely shift from this change. Confirm that your implementation of the component aligns as expected. (#5636)usa-button
auto
to better match USWDS link styles. Users should confirm that the variant visually displays as expected in their projects. Thanks @ aduth! (#5631)@ include button-unstyled
in your custom styles. These items may be affected by this change.usa-card
$theme-card-font-family
setting. Confirm that your implementation of the card component displays with the expected font family. (#5974)$theme-card-font-family
.usa-combo-box
usa-date-picker
,usa-date-range-picker
mouseover
events to prevent keyboard navigation. Now when you hover your mouse over the date picker buttons, only the hover state will be triggered. (#5774)usa-header
usa-footer
,templates
autocomplete="email"
attribute to the big footer variant and the "Create an account" template. This attribute allows the components to meet the standards outlined in WCAG 1.3.5. (#6002)✏️ Teams should update their markup if they use an email field in their big footer.
usa-identifier
✏️ Teams should update this text if they use the Spanish-language identifier.
usa-memorable-date
✏️ Teams should update their memorable date component to remove the leading numbers.
usa-pagination
Dependencies and security
Thanks @ aduth for contributing to our dependency updates and @ skyf0l for fixing a typo in our package.json!
0
vulnerabilities in regular dependencies (dependencies for USWDS projects installed withnpm install @ uswds/uswds
)29
moderate,26
high vulnerabilities in devDependencies (development dependencies).Release TGZ SHA-256 hash:
140cb2162e6c60a6a6ecbc71d8d047819d4ec26f9dd6c7056bd4bd8a266af2ab
What's new in USWDS 3.8.2
Dependencies and security
Removed the
classlist-polyfill
dependency. This update resolves a Denial of Service (DoS) vulnerability related to theclasslist-polyfill
dependency that we do not consider exploitable on the front end of applications. (#6012)Important
This release may affect some functionality in Internet Explorer 11 (IE11). This update removes the polyfill that added full
classList
support to IE11. USWDS no longer supports IE11, but if your project does, test if this update negatively affects your users and add additional support forclassList
if it does.Thanks @ aduth for the initial work on removing this dependency.
0
vulnerabilities in regular dependencies (dependencies for USWDS projects installed withnpm install @ uswds/uswds
)5
low,11
moderate,44
high vulnerabilities in devDependencies (development dependencies).Release TGZ SHA-256 hash:
94049e150c2a67dfdb75f140fc664d2e936ef652480a2f88dfdd96922e0a940c
What's new in USWDS 3.8.1
Bug fixes
usa-button-group
usa-footer
usa-layout-grid
dependency in the footer package and removed layout grid styles from the footer stylesheet. This update prevents visual regressions in footer and other components with layout grid utility classes in their markup. (#5930)usa-identifier
usa-in-page-navigation
data-header-selector
attribute in an in-page navigation JavaScript error message. The error message now correctly references thedata-heading-elements
attribute. (#5856)usa-input-mask
usa-tooltip
usa-tooltip
usa-validation
uswds-utilities
Dependencies and security
Thanks @ anselmbradford for the dependency updates!
0
vulnerabilities in regular dependencies (dependencies for USWDS projects installed withnpm install @ uswds/uswds
)13
moderate,28
high vulnerabilities in devDependencies (development dependencies).Release TGZ SHA-256 hash:
a86fa133b842ce28d1eed2226216c478debf31bf6c16ffcd96fecf061fdf4583
Features
usa-checkbox
,uswds-core
input.indeterminate = true
via JavaScript or add thedata-indeterminate
attribute. This is only a style addition and does not affect checkbox functionality. Thanks @ lpsinger! (#5713)usa-in-page-nav
data-heading-selector
attribute to designate the heading levels that should be included in the component. By default, the component will pull allH2
andH3
headers. (#5444)usa-table
,uswds-core
.usa-table--sticky-header
class to enable sticky positioning on table headers. Use the new$theme-table-sticky-top-offset
setting to set the value of the top offset for sticky table headers. (#5420) Thanks @ etanb!usa-table
,uswds-core
$theme-table-background-color
setting to set your desired table background color. (#5420)usa-validation
textarea
support to the validation component. (#5233) Thanks @ danbrady!usa-layout-docs
,uswds-core
$theme-sidenav-reorder
for documentation page sidenav. Use$theme-sidenav-reorder
to support old CSS order functionality. This setting can introduce usability issues, so we suggest that teams update their sidenav markup instead. (#5807)Bug fixes
usa-button
,uswds-core
usa-icon
elements inside ofusa-button
. Use the new$theme-button-icon-gap
setting to set the width of the horizontal gap between the button's text and icon. (#5398)usa-button
,usa-checkbox
,usa-combo-box
,usa-file-input
,usa-radio
,uswds-core
usa-button-group
usa-date-picker
highlight
high contrast token on focus. (#5701)usa-footer
usa-footer
. (#5675)usa-layout-docs
,uswds-core
usa-table
Breaking changes
Documentation page template
We're updating the documentation template to better match the HTML order of the side navigation to the visual order at mobile widths. Before USWDS 3.8.0 we used CSS to re-order the sidenav at mobile widths, placing it below the page's main text content. Starting with USWDS 3.8.0, our default styles no longer use CSS to re-order the side navigation. Now, we suggest including a duplicate sidenav after the main text content, using utility classes to hide/show the sidenavs at the proper widths. The example below shows a before/after.
Teams that wish to maintain the old CSS order functionality can temporarily add
$theme-sidenav-reorder: true
to their project settings. This setting reinstates the CSS re-ordering. As we mentioned, this setting can introduce usability issues, so the best long-term solution is to update the sidenav markup instead.Dependencies and security
0
vulnerabilities in regular dependencies (dependencies for USWDS projects installed withnpm install @ uswds/uswds
)15
moderate,25
high vulnerabilities in devDependencies (development dependencies).Release TGZ SHA-256 hash:
072f0f8333b1aa000183e00676616d9ff5a174e27ca8d35c130ca70ea5d4f66d
What's new in USWDS 3.7.1
Features
usa-footer
usa-layout-grid
dependency from theusa-footer
package. This update reduces the footer package size. Thanks @ danbrady! (#5289)If you notice changes in your layout after making this update, your Sass might be missing the
usa-layout-grid
package. You can include it by adding@ forward usa-layout-grid
to your Sass entry point.Bug fixes
usa-banner
usa-dark-background
,usa-section
:visited
link styling inusa-section--dark
elements. Thanks @ aduth! (#5567)usa-footer
usa-header
,usa-nav
usa-nav__submenu
elements should align with other header elements. Thanks @ lpsinger! (#5649)usa-nav
usa-nav
usa-nav
$theme-max-header-width
from accepting a value of"none"
. (#5624)uswds-core
.left-full
,.right-full
, and.top-full
utility classes. (#5633)Dependencies and security
Thanks @ deckar01 for contributing this dependency update!
0
vulnerabilities in regular dependencies (dependencies for USWDS projects installed withnpm install @ uswds/uswds
)24
moderate,27
high vulnerabilities in devDependencies (development dependencies).Release TGZ SHA-256 hash:
6e1d3032e1a7ac614d05fe76c87cc398725d84e5ba0656a7a17c6ca4c7579526
What's new in USWDS 3.7.0
Items we've identified with a
Markup change
have a non-breaking change in their component markup. Teams should update their implementations and templates to reflect this change.Features
usa-banner
usa-accordion
package. (#5551)usa-banner
us_flag_small.png
icon and added a vectorus_flag.svg
icon. Update this asset in your project for improved image quality. Thanks @ aduth! (#5542)usa-data-picker
usa-icon
usa-modal
Bug fixes
usa-card
$theme-card-padding-y
from accepting expected token values. (#5571)usa-footer
usa-identifier
aria-hidden
. To improve the screen reader experience, update your component markup. (#5491)usa-range
usa-range
data-text-unit
anddata-text-preposition
attributes to range slider. When used alongside themax
attribute, the optionaldata-text-unit
attribute adds language for the unit type. For example, adding a value of "stars" enables a readout like "3.5 stars of 5". The optionaldata-text-preposition
creates the ability to customize the language of the preposition "of" in that string. (#5472)usa-site-alert
uswds-core
$theme-site-margins-width
from accepting expected token values. (#5582)Dependencies and security
Updated the default node version from 16 to 20. (#5560)