What's Changed
Full Changelog: v2.0.0...v2.1.0
Automated Tests
An additional 15 tests have been added to the codebase.
New USWDS Components
Other Updates
- #111 Created fully-fledged demo site which can be deployed to orgs and enable users to quickly get up to speed on the components and features of the theme.
- #177 Updated external dependencies to resolve vulnerabilities in third party libraries.
- #178 Shorted community theme definition which was preventing deployment of codebase.
- #180 Added information about accessibility testing and contribution protocols. Included alt text validation for Hero and Card components.
- #182 Adjusted height of theme body to ensure sites with limited content consume the full screen height.
- #183 Removed uswdsNavBar component from codebase.
- #184 Updated the scratch org definition to turn off Lightning Web Security for new scratch orgs. This was done to enable support for automated tests.
- #189 Ensured all components load uswds-init.js. This was not known to cause issues but update was made proactively.
- #192 Fixed bug which caused the Banner component when navigating between different theme layouts.
Upgrade Instructions
- Be sure to run the latest version of the SFDX CLI
npm update --global sfdx-cli
- Install latest updates from package.json
npm update
- Follow steps in Destructive Changes to deploy v2.1.0
Destructive Changes
The uswdsNavBar component has been removed per issue #183 . Broadly speaking, it should not be in use as the controller functionality was never built would not work. That being said, teams should take steps to replace it in the event it is used.
- Deploy
src/
to target org.
sfdx force:mdapi:deploy -d src/ -w 100 -u {username}
-
In each community check for use of the uswdsNavBar component and replace it with uswdsMegaMenu. Set the Main Nav Menu Name to that of the navigationMenu you hope to reference.
-
Save and publish the changes
-
Deploy the v2.1.0 destructive changes to the org. This will delete the uswdsNavBar component.
sfdx force:mdapi:deploy -d deprecationManifests/v2.1.0 -w 100 -u {username}
-
If errors are thrown, one of the communities may still be using the component. Update and redeploy.
Dependencies and security
0 vulnerabilities in regular dependencies
5 vulnerabilities in devDependencies (development dependencies)
Release ZIP SHA-256 hash: ff824060b498668e7b1b742d73591e7705bca1ddd8e26d031b782eb1a2826c37
Contributors
Many thanks to the folks who have contributed code, ideas, and reported bugs!
@mvogelgesang @carchiere @freemacj @choughSFDC @ToddBrown-Github