- 08c0f64: Switch to
@medv/finderfor the automatic selector generation
- 08c0f64: Return a boolean from
restoreScroll()indicating success / failure - 08c0f64: Update dev dependencies and tooling
- 08c0f64: Updated dependencies
- 3589fd2: Check types during unit tests
- 3589fd2: Resolve
<body>to the root scrolling element
- 358d813: Remove the
?modulequery parameter from the unpkg installation example, as from now on, restore-scroll will only be compiled to an ESM module, anyways.
- 6ddf805: Compile only to esm
- 6ddf805: Switch from microbundle to tsdown for building the library
- a0f5f45: Allow repeated calls to
restoreScrollagainst the same target element to make it easier to restore thewindowscroll position in single page apps.
- 8ef0fa0: Bump version to update README on npmjs.org
- b9ec453: Allow elements to be restored if only one axis has a length
> 0 - ccd6d25: Cleanup and more tests
-
91e555c:
Breaking Change
Only allow
ElementorWindowwhen callingrestoreScroll. This simplifies the internals significantly.
- 9f418d1: Dispatch cancellable events: "scroll:store" and "scroll:restore"
- c8e8945: Add a cancelable event interface
- 91e555c: Update Documentation
- b8bcb73: Initial Release