question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If anyone wants to contribute to the Popper.js v2 rewrite please do so sending PRs against the next branch.

It’s a completely new codebase, I think the current codebase is too messy to continue to work on it, it started as a little proof of concept and ended up being a full fledged library, I think it deserves a complete rewrite.

The idea is to copy the good code from the old version and write new one to make the new code more stable.

I’d like to make the library even more performant by better leveraging to an internal cache the modifiers can use to get most of the values they need that have been already read from the DOM.

The only decisions I made so far are:

  • prettier to format the code
  • Flow to type check it
  • New system to order modifiers [WIP] (discussion)

To do:

  • CI
    • add a built step (Rollup + Babel)
    • add a CI setup
    • add unit tests (Jest)
    • add functional/integration cross-browser tests (Karma?)
  • Core
    • rewrite the positioning engine to work on all the supported cases (and more?)
    • rewrite the modifiers API
  • Modifiers
    • computeStyles
    • applyStyles
    • arrow
    • preventOverflow
    • flip
    • offset/shift (merge them together)
    • other modifiers will be added later, if anyone wants them please send a PR to implement them
  • Miscellaneous

If you’d like to contribute please write here so others know who’s working on what.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:38
  • Comments:111 (48 by maintainers)

github_iconTop GitHub Comments

6reactions
FezVrastacommented, Jun 13, 2019

It will be treeshakeable 👌

5reactions
FezVrastacommented, Dec 16, 2019

Just a heads up, @popperjs/core@2.0.0-alpha.1 is now available on npm, it should be quite stable.

Report any feedback here if you have a chance to try it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Popper (v2.×)
Positioning tooltips and popovers is difficult. Popper is here to help! Popper is the de facto standard to position tooltips and popovers in...
Read more >
React Popper (v2.×)
The second major version of react-popper brings compatibility with Popper 2.x and introduces a new React Hook to use the library with modern...
Read more >
Tutorial | Popper
In this tutorial you'll learn how to use Popper by building a basic tooltip.
Read more >
Constructors | Popper
Popper comes with two constructor functions to use. Don't mind tech-related ads?
Read more >
Migration Guide | Popper
Migrating to Popper 2 · 1. Install the new package · 2. Change the import · 3.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found