The second alpha of Popper 2 is here! From now on we'll try to keep track of the changes using the GitHub releases.
In this version:
- feat: point to popper-lite for default ESM import;
- fix: address Firefox quirk (#837);
- feat: preventOverflow#tetherOffset and flip#checkVariation;
Breaking changes:
The default library export for ESM consumers is now popper-lite.js
, this version includes the most basic modifiers needed to have a working popper. If you want to take advantage of the super-thin Popper core, you can still import from @popperjs/core/lib/popper-base.js
to reproduce the previous behavior (no modifiers).
The preventOverflow
and flip
modifiers API slightly changed, preventOverflow#tether
is now a boolean, and you are able to further configure it by defining the thetherOffset
option.
The flip
modifier has now a new option, checkVariation
, that will attempt to flip the placement's variation (-start
, -end
) in order to keep the popper within its boundaries.