Upgrade notes for Shiny 1.7.4
Full changelog
Breaking changes
Closed #3719: Output container sizes, which are available via
session$clientDataandgetCurrentOutputInfo(), no longer round to the nearest pixel (i.e., they are now more exact, possibly fractional values). (#3720)Closed #3704, #3735, and #3740:
renderPlot()no longer generates an error (or segfault) when it executes before the output is visible. Instead, it’ll now use the graphics device’s default size for it’s initial size. Relatedly,plotPNG()now ignoresNULLvalues forwidth/height(and uses the device’s defaultwidth/heightinstead). (#3739)
New features and improvements
plotOutput(),imageOutput(), anduiOutput()gain afillargument. IfTRUE(the default forplotOutput()), the output container is allowed to grow/shrink to fit a fill container (created viahtmltools::bindFillRole()) with an opinionated height. This meansplotOutput()will grow/shrink by default inside ofbslib::card_body_fill(), butimageOutput()anduiOutput()will have to opt-in to similar behavior withfill = TRUE. (#3715)Internal: Added clearer and strict TypeScript type definitions (#3644)