Skip to content

Releases: primer/react

v6.0.1-beta

08 Nov 20:01
c723850
Compare
Choose a tag to compare
v6.0.1-beta Pre-release
Pre-release

💅 Enhancements

  • @shawnbot added codemods for helping folks upgrade from major versions 1-4! 🎉

v6.0.0-beta

02 Nov 21:17
6c14c72
Compare
Choose a tag to compare
v6.0.0-beta Pre-release
Pre-release

✨ New Components

🚨 Breaking Changes

  • Accessibility tweaks #345, aria-label is now set via the aria-label prop instead of placeholder
  • Component Tweaks #344, lots of docs changes + renamed scheme to status in StateLabel
  • Avatar changes #342, removed isChild prop. See docs for updated instructions on how to create parent/child avatars 🙌

Other

  • Deleted main.workflow #346

v5.0.0-beta

26 Oct 18:08
d793061
Compare
Choose a tag to compare
v5.0.0-beta Pre-release
Pre-release

🚀 New features

  • Add fontWeights to theme #326
  • Link now respects is prop.

🚨 Breaking Changes

  • Removed the src and alt props from CircleBadge. Use an img as a child of CircleBadge, and add alt text there instead. #332
  • Button updates: #330
    • added width prop
    • Removed block prop
  • Removed ButtonLink component - users should use a <Link is='button'> for this use case. The model here should be Button is a UI element that is styled like a button. Link is a UI element that is styled like a link. You can change the tag as needed. #330
  • Removed border, borderRadius, BorderColor and BoxShadow props from Box, added them to BorderBox #329

v4.0.0-beta

12 Oct 23:44
52b7700
Compare
Choose a tag to compare
v4.0.0-beta Pre-release
Pre-release

💥 Breaking changes

The big, breaking change in this release is that we've changed some component names and moved some "child" components under the parent one:

  • FlexContainer is now named Flex
  • FlexItem is now Flex.Item, and can be accessed via the Flex import
  • UnderlineNavItem is now UnderlineNav.Item
  • FilterListItem is now FilterList.Item

When migrating from previous versions, you'll need to do a search and replace for all of the above component names, then remove any leftover instances of Flex.Item, UnderlineNav.Item, and FilterList.Item in your named imports of @primer/components.

Two of our label components have also undergone some API refactoring:

  • The Label component no longer has the scheme prop, and introduces size and dropshadow props.
  • The StateLabel component was refactored: state prop is now scheme, and supports different values for issue- and PR-specific color/octicon pairings.

🚀 New features

  • Typography components (Text, Heading, etc.) now have a textAlign prop that can be used to responsively adjust the text-align CSS property.
  • Layout components (Box, et al) now have a responsive overflow prop that sets the same CSS property.

🐛 Bug fixes

  • The Flex component (FKA FlexContainer) now has the missing justifyItems prop, which maps to the justify-items CSS property.

v3.0.3-beta

10 Oct 20:40
00cdc04
Compare
Choose a tag to compare
v3.0.3-beta Pre-release
Pre-release

🐛 Bug Fixes

  • Ships another fix for Link's hoverColor prop

v3.0.2-beta

05 Oct 19:14
cce3488
Compare
Choose a tag to compare
v3.0.2-beta Pre-release
Pre-release

Fixes bug with hoverColor in Link

v3.0.1-beta

03 Oct 20:15
bf17d88
Compare
Choose a tag to compare
v3.0.1-beta Pre-release
Pre-release

💅 Enhancements

  • hoverColor is now available as a prop on Link
  • The spacing scale in theme.js has been updated to include additional values 🎉

v3.0.0-beta

28 Sep 19:15
d7ecab7
Compare
Choose a tag to compare
v3.0.0-beta Pre-release
Pre-release

❌ Breaking Changes ❌

  • The MergeStatus component has been removed. This component can easily be created using a StateLabel component. #286
  • The Link component no longer takes scheme or muted props. Style the color of the link text using color instead. The Link also now has no underline by default. Add underline to override this. #282
  • DonutChart & DonutSlice have been renamed to Donut and Donut.Slice #269

🚀 New features

  • There is now a <BaseStyles> component for establishing typographic styles #276
  • Static CSS required by some components is now injected globally — no need for linking or bundling! #285

📝 Documentation

  • SideNav links now have active styles #281
  • Deployment is always scaled to one instance, fixing slow production loads #289
  • Inline SVGs via svgr/webpack #288
  • Docs site is now responsive! 🎉 #275
  • Standardize asset path prefix & fix index image #274
  • Updated component descriptions #287

🐛 Bug fixes

v2.0.3-beta

14 Sep 20:00
4cebb01
Compare
Choose a tag to compare
v2.0.3-beta Pre-release
Pre-release

💅 Housekeeping

  • Update some dependency versions #253

📝 Docs

  • Docs tweaks #244
  • Props Documentation #255
  • Format component docs into standard layout #239

✨ Enhancements

  • Refactor Link to use Emotion instead of Primer CSS #245

v2.0.1-beta

27 Aug 20:38
5518d7b
Compare
Choose a tag to compare
v2.0.1-beta Pre-release
Pre-release

🚀 Enhancements

  • Re-enable and refactor some component tests #219
  • Migrate from GitHub Pages to Now #220

📝 Documentation

  • Fix permalinked component and demo pages in docs
  • Build and inline CSS in docs for better performance