npm run format still alerts [warn] jsxBracketSameLine is deprecated. I don't know why, thought there was an update implemented for this some time ago.
I decided to bump both the peerDependency as well as requires for swup to ^4.2.0. That way, visit.to.hash should actually be available in doScrollingBetweenPages.
Drive-By
Bug-fix: maybeResetScrollPositions was always resetting the scroll position. Should now correctly respect options.shouldResetScrollPosition (tested manually in playground).
Checks
[x] The PR is submitted to the master branch
[x] The code was linted before pushing (npm run lint)
[x] All tests are passing (npm run test) Tested this by running the swup plugin tests with a compiled umd-version of this branch
Description
Port to TypeScript
Notes
any
for it.npm run format
still alerts[warn] jsxBracketSameLine is deprecated
. I don't know why, thought there was an update implemented for this some time ago.peerDependency
as well asrequires
for swup to^4.2.0
. That way,visit.to.hash
should actually be available indoScrollingBetweenPages
.Drive-By
maybeResetScrollPositions
was always resetting the scroll position. Should now correctly respectoptions.shouldResetScrollPosition
(tested manually in playground).Checks
master
branchnpm run lint
)npm run test
) Tested this by running the swup plugin tests with a compiled umd-version of this branch