Patch 2.0.2
This release adds more granular control to line-height settings, reworks Hydrogen's internal testing framework, and fixes a handful of bugs. You'll also notice significant improvements to the documentation website, including code highlighting, a release RSS feed, and more.
✨ New features (1)
- Updates the
typographyconfiguration to acceptline-heightconfigurations for each level in the type scale.
🛠️ Optimizations (7)
- Migrates internal development testing away from custom JavaScript in favor of Jest.
- Overhauls the
libdirectory structure for clearer build step identification and consistent structure. - Further updates and minimizes console output by replacing the "system" label with Hydrogen's version and appending timers to their relevant behaviours.
- Restructures the
releasesdirectory for better organization and glob references. - Updates repo-specific documentation to better reflect the build process and addition of Jest testing.
- Deprecates the term "copy" in favor of "body" when referring to paragraph-sized text.
- Adds error codes for better toolchain integration.
🪲 Bugfixes (6)
- Fixes a bug where configured color values used inside of CSS gradient definitions were improperly replaced when two configured colors were used and one contained a color modifier.
- For example: data-h2-background="base(linear-gradient(90deg, primary, primary.darkest))"
- Fixes a bug where font sizes weren't always respected on iOS.
- Fixes a bug where PostCSS would increase in run time during the watch command due to cached data not being purged.
- Fixes a bug where the :hover selector wasn't properly wrapped in the (hover:hover) media query when used in the :children query modifier, resulting in an uneven experience on touch devices.
- Fixes a bug where Hydrogen incorrectly identified the data-h2 wrapper attribute if it was referenced in CSS files.
- Fixes a bug where Hydrogen reported a successful compile despite there being errors logged to the console.