The Navigation API has landed in the newest versions of all the modern browsers, and supersedes the older History API with some much-needed improvements for developing single-page applications. I've been chomping at the bit to use it in prod, and I created this polyfill so I could do so.
As it stands, I feel really good about its support for currentEntry, entries(), canGoBack/canGoForward, and the currententrychange event.
Where the Navigation API gets really interesting is in its navigation transition lifecycle management with the navigate event, navigation interceptors, and so on--which I plan on tackling next.
It has zero runtime dependencies, and bundlejs.com reports it weighing in at 2.95 kB after bundling and gzip.
I'm hoping to get any feedback and gauge interest as I think about how to approach polyfilling the rest of the API. Thank you for taking a look!