Skip to content

Releases: hirasso/restore-scroll

v1.0.0

02 Jan 19:41
9b97bab

Choose a tag to compare

Major Changes

Patch Changes

  • 08c0f64: Return a boolean from restoreScroll() indicating success / failure
  • 08c0f64: Update dev dependencies and tooling
  • 08c0f64: Updated dependencies

v0.1.6

09 Aug 20:43
e9a4d54

Choose a tag to compare

Patch Changes

  • 3589fd2: Check types during unit tests
  • 3589fd2: Resolve <body> to the root scrolling element

v0.1.5

09 Aug 20:20
afaf6e1

Choose a tag to compare

Patch Changes

  • 358d813: Remove the ?module query parameter from the unpkg installation example, as from now on, restore-scroll will only be compiled to an ESM module, anyways.

v0.1.4

09 Aug 20:07
740279a

Choose a tag to compare

Patch Changes

  • 6ddf805: Compile only to esm
  • 6ddf805: Switch from microbundle to tsdown for building the library

v0.1.3

09 Aug 15:32
d715501

Choose a tag to compare

Patch Changes

  • a0f5f45: Allow repeated calls to restoreScroll against the same target element to make it easier to restore the window scroll position in single page apps.

v0.1.2

06 Aug 16:01
590efd3

Choose a tag to compare

Patch Changes

  • 8ef0fa0: Bump version to update README on npmjs.org

v0.1.1

01 Aug 12:44
184d6d6

Choose a tag to compare

Patch Changes

  • b9ec453: Allow elements to be restored if only one axis has a length > 0
  • ccd6d25: Cleanup and more tests

v0.1.0

01 Aug 09:44
9509fab

Choose a tag to compare

Minor Changes

  • 91e555c: ## Breaking Change

    Only allow Element or Window when calling restoreScroll. This simplifies the internals significantly.

Patch Changes

  • 9f418d1: Dispatch cancellable events: "scroll:store" and "scroll:restore"
  • c8e8945: Add a cancelable event interface
  • 91e555c: Update Documentation

v0.0.1

29 Jul 08:27
d06d526

Choose a tag to compare

Patch Changes