Skip to content

Blueprint 4.0

Adi Dahiya edited this page Sep 29, 2021 · 38 revisions

Breaking changes overview

Major changes

  • React 16.8+ required
  • CSS namespace changed from bp3- to bp4-
  • Icons build pipeline has been revamped, so icon font support is restored

Removal/migration of deprecated APIs

core

  • IKeyWhitelist and IKeyBlacklist are removed (deprecated since 3.30.0)
    • Use KeyAllowlist / KeyDenylist instead.
  • Utils.safeInvoke and Utils.safeInvokeOrValue are removed (deprecated since 3.32.0)
  • Utils.createReactRef and IElementRefProps are removed (deprecated since 3.43.0)
    • Use ref prop name and React.createRef, React.useRef, React.forwardRef() instead
  • IDrawerProps.vertical is removed (deprecated since 3.15.0)
    • Use the position prop on <Drawer> instead.
  • <HTMLTable> component small prop is removed (deprecated since 3.6.0)
    • Use the condensed prop instead.
  • Menu.Item and Menu.Divider are removed (deprecated since 3.38.0, see #3829)
    • Use MenuItem and MenuDivider instead.
  • IConstructor is removed (deprecated since 3.43.0)
  • LifecycleCompatPolyfill type is removed (deprecated since 3.43.0)
  • Icon.SIZE_*, Drawer.SIZE_*, Spinner.SIZE_* constants removed (deprecated since 3.44.1)
    • Use IconSize, DrawerSize, and SpinnerSize, respectively, instead
  • IconProps.iconSize is removed (deprecated since 3.47.0)
    • Use the size prop on <Icon> instead.
Clone this wiki locally