v5.0.0
Major Changes
-
#245
65ad2dfThanks @colebemis! - All deprecated color variables have been removed. See removed variables for the complete list of removed variables. -
#245
65ad2dfThanks @colebemis! - Thedeprecationsdirectory in thedistdirectory has been renamed todeprecated:dist/ - deprecations/ + deprecated/
You'll need to update your imports accordingly:
- import deprecatedColors from '@primer/primitives/dist/deprecations/colors.json' + import deprecatedColors from '@primer/primitives/dist/deprecated/colors.json'
Minor Changes
-
#245
65ad2dfThanks @colebemis! - Thedistdirectory now contains aremoveddirectory with data about removed variables organized by category:dist/ js/ ts/ json/ scss/ deprecated/ + removed/ + colors.jsonEach JSON file in the
removeddirectory contains a mapping of removed variables to replacement variables. Example:// dist/removed/colors.json { "text.primary": "fg.default", // this means: `text.primary` is deprecated. Use `fg.default` instead "auto.blue.4": ["accent.fg, accent.emphasis"], // this means: `auto.blue.4` is deprecated. Use `accent.fg` or `accent.emphasis` instead "text.white": null // this means: `text.white` is deprecated. We don't have a replacement for it }
This data will allow you to write linters to prevent usage of removed variables.
Patch Changes
- #250
9948e13Thanks @Juliusschaeper! - Fix duplicate hex value (red 9)