Scroll-stash - A JavaScript plugin to help preserve an element's scroll position.

Overview

scroll-stash

A JavaScript plugin to help preserve an element's scroll position.

NPM Version Build Status Coverage Status

CodePen Example

Installation

npm install scroll-stash

JavaScript

Import and instantiate ScrollStash in your scripts:

import ScrollStash from 'scroll-stash';
const scrollStash = new ScrollStash({ autoInit: true });

It's also possible to include ScrollStash using a script tag:

<!-- Via NPM -->
<script src="./node_modules/scroll-stash/dist/scripts.umd.js"></script>

<!-- Via CDN -->
<script src="https://unpkg.com/scroll-stash"></script>

<!-- Instantiate ScrollStash in your scripts -->
<script>
const scrollStash = new ScrollStash();
scrollStash.init();
</script>

Styles

There are no styles to include for scroll-stash, but if you plan on using the anchor feature it's important to make sure:

  • The scrollable element has position: relative applied.
  • The anchor's nearest parent with position: relative should be the scrollable container.
  • If a parent wrapper of an anchor exists that needs to be positioned relatively, pass it's selector as the selectorAnchorParent option.

Markup

The most basic implementation of scroll-stash is the application of the data attribute data-scroll-stash with a unique ID as the value. The unique ID is used in saving each scroll-stash element's scroll position.

<div data-scroll-stash="[unique-id]">
  ...
</div>

data-scroll-stash-anchor

This optional data attribute—when set on a scroll-stash element with a valid selector—defines an anchor that will take precedence over set options on instantiation. Setting it's value to ignore or false will disable the anchor feature. This is useful to prevent a parent scrollable wrapper from inheriting the anchor of child elements.

<div data-scroll-stash="[unique-id]" data-scroll-stash-anchor="[selector | ignore | false]">
  ...
</div>

Anchors are elements within a scrollable container that you want to always be visible. In the case where a preserved scroll position is applied and the anchor is not visible, the scroll will be adjusted to the nearest position to make the entire element visible with the appropriate padding or clearance elements as defined in options.

Options

Key Default Description
autoInit false Automatically instantiates the instance.
dataScroll 'scroll-stash' Data attribute for a scroll-stash element. Stores the unique ID for saving and restoring scroll positions.
dataAnchor 'scroll-stash-anchor' Data attribute for setting an element specific anchor or disabling the anchor feature on a specific scroll-stash element.
selectorAnchor '' Selector for the anchor to look for in each scroll-stash element.
selectorAnchorParent '' Parent selector for anchors who are wrapped in elements with position: relative styles.
selectorTopElem '' Selector for sticky or fixed top element within a scroll-stash that anchors need to take into account.
selectorBotElem '' Selector for sticky or fixed bottom element within a scroll-stash that anchors need to take into account.
alignment 'nearest' Defines the vertical alignment of scroll anchor. Can be set to start, end or nearest.
behavior 'auto' Defines the transition animation. Can either be set to auto or smooth.
anchorPadding 16 The extra padding to provide when scrolling anchors into view.
saveKey 'ScrollStash' The key that is used to save the scroll stash state object in local storage.
throttleDelay 250 The delay to apply between scroll stash saves. Since scrolling events fire extremely fast, this creates a throttle to help improve performance.
customEventPrefix 'scroll-stash:' Prefix to be used on custom events.

Events

  • scroll-stash:saved Emits when scroll positions are saved.
  • scroll-stash:applied Emits when scroll positions are applied.
  • scroll-stash:anchor Emits when the anchor is scrolled into view.

API

scrollStash.init(options)

Initializes the scroll-stash instance.

Parameters

  • options (optional) An options object. This will be merged with the options passed during instantiation.
const scrollStash = new ScrollStash();
scrollStash.init();

// Or, pass in some options:
scrollStash.init({
  selectorAnchor: '.asdf',
  anchorPadding: 20
});

scrollStash.destroy()

Destroys the previously initialized scroll-stash instance.

const scrollStash = new ScrollStash();
scrollStash.init();
// ...
scrollStash.destroy();

scrollStash.anchorShow(element, behavior)

Scrolls the anchor in view of the passed scroll-stash HTML element.

Parameters

  • element HTML element that scroll stash has been instantiated on.
  • behavior (optional) The transition animation. Can either be set to auto or smooth. Defaults to behavior option.
const el = document.querySelector('[data-scroll-stash]');
const result = scrollStash.anchorShow(el);
// Returns: Object with result details
// If scrolled:
//   { scrolled: { value: [position], behavior: [behavior] }, msg: 'Anchor was scrolled into view' }
// If failed because anchor is already in view:
//   { scrolled: false, msg: 'Anchor is already in view' }
// If failed because anchor was not found:
//   { scrolled: false, msg: 'Anchor was not found' }

scrollStash.anchorGet(element)

Returns the anchor element of the passed scroll-stash HTML element.

Parameters

  • element HTML element that scroll stash has been instantiated on.
const el = document.querySelector('[data-scroll-stash]');
const anchor = scrollStash.anchorGet(el);
// Returns: HTMLElement Object

Copyright and License

Scroll-stash copyright (c) 2020 Sebastian Nitu. Scroll-stash is released under the MIT license.

Comments
  • chore(deps-dev): bump eslint-plugin-jest from 24.4.0 to 24.4.2

    chore(deps-dev): bump eslint-plugin-jest from 24.4.0 to 24.4.2

    Bumps eslint-plugin-jest from 24.4.0 to 24.4.2.

    Release notes

    Sourced from eslint-plugin-jest's releases.

    v24.4.2

    24.4.2 (2021-09-17)

    Bug Fixes

    • use correct property hasSuggestions rather than hasSuggestion (#899) (dfd2368)

    v24.4.1

    24.4.1 (2021-09-17)

    Bug Fixes

    • mark rules that suggest fixes with hasSuggestion for ESLint v8 (#898) (ec0a21b)
    Changelog

    Sourced from eslint-plugin-jest's changelog.

    24.4.2 (2021-09-17)

    Bug Fixes

    • use correct property hasSuggestions rather than hasSuggestion (#899) (dfd2368)

    24.4.1 (2021-09-17)

    Bug Fixes

    • mark rules that suggest fixes with hasSuggestion for ESLint v8 (#898) (ec0a21b)
    Commits
    • 514e841 chore(release): 24.4.2 [skip ci]
    • dfd2368 fix: use correct property hasSuggestions rather than hasSuggestion (#899)
    • 46ac6fc Fix regex in mustMatch and mustNotMatch examples (#872)
    • 1080ff3 chore(release): 24.4.1 [skip ci]
    • ec0a21b fix: mark rules that suggest fixes with hasSuggestion for ESLint v8 (#898)
    • 34b23e6 chore(deps): update codecov/codecov-action action to v2.1.0 (#895)
    • 637249b chore: get node version used in transforms from package.json
    • 9aeaf24 chore: make pre-releases from next branch (#892)
    • 889a03a chore(deps): lock file maintenance
    • 9422e72 chore: update TypeScript
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 3
  • chore(deps-dev): bump jest from 27.5.1 to 29.0.1

    chore(deps-dev): bump jest from 27.5.1 to 29.0.1

    Bumps jest from 27.5.1 to 29.0.1.

    Release notes

    Sourced from jest's releases.

    v29.0.1

    Fixes

    • [jest-snapshot] Pass snapshotFormat through when diffing snapshots (#13181)

    Full Changelog: https://github.com/facebook/jest/compare/v29.0.0...v29.0.1

    v29.0.0

    Blog post: https://jestjs.io/blog/2022/08/25/jest-29

    Features

    • [expect] [BREAKING] Differentiate between MatcherContext MatcherUtils and MatcherState types (#13141)
    • [jest-circus] Add support for test.failing.each (#13142)
    • [jest-config] [BREAKING] Make snapshotFormat default to escapeString: false and printBasicPrototype: false (#13036)
    • [jest-config] [BREAKING] Remove undocumented collectCoverageOnlyFrom option (#13156)
    • [jest-environment-jsdom] [BREAKING] Upgrade to jsdom@20 (#13037, #13058)
    • [@jest/globals] Add jest.Mocked, jest.MockedClass, jest.MockedFunction and jest.MockedObject utility types (#12727)
    • [jest-mock] [BREAKING] Refactor Mocked* utility types. MaybeMockedDeep and MaybeMocked became Mocked and MockedShallow respectively; only deep mocked variants of MockedClass, MockedFunction and MockedObject are exported (#13123, #13124)
    • [jest-mock] [BREAKING] Change the default jest.mocked helper’s behavior to deep mocked (#13125)
    • [jest-snapshot] [BREAKING] Let babel find config when updating inline snapshots (#13150)
    • [@jest/test-result, @jest/types] [BREAKING] Replace Bytes and Milliseconds types with number (#13155)
    • [jest-worker] Adds workerIdleMemoryLimit option which is used as a check for worker memory leaks >= Node 16.11.0 and recycles child workers as required (#13056, #13105, #13106, #13107)
    • [pretty-format] [BREAKING] Remove ConvertAnsi plugin in favour of jest-serializer-ansi-escapes (#13040)
    • [pretty-format] Allow to opt out from sorting object keys with compareKeys: null (#12443)

    Fixes

    • [jest-config] Fix testing multiple projects with TypeScript config files (#13099)
    • [@jest/expect-utils] Fix deep equality of ImmutableJS Record (#13055)
    • [jest-haste-map] Increase the maximum possible file size that jest-haste-map can handle (#13094)
    • [jest-runtime] Properly support CJS re-exports from dual packages (#13170)
    • [jest-snapshot] Make prettierPath optional in SnapshotState (#13149)
    • [jest-snapshot] Fix parsing error from inline snapshot files with JSX (#12760)
    • [jest-worker] When a process runs out of memory worker exits correctly and doesn't spin indefinitely (#13054)

    Chore & Maintenance

    • [*] [BREAKING] Drop support for Node v12 and v17 (#13033)
    • [docs] Fix webpack name (#13049)
    • [docs] Explicit how to set n for --bail (#13128)
    • [docs] Update Enzyme URL (#13166)
    • [jest-leak-detector] Remove support for weak-napi (#13035)
    • [jest-snapshot] [BREAKING] Require rootDir as argument to SnapshotState (#13150)

    New Contributors

    ... (truncated)

    Changelog

    Sourced from jest's changelog.

    29.0.1

    Fixes

    • [jest-snapshot] Pass snapshotFormat through when diffing snapshots (#13181)

    29.0.0

    Features

    • [expect] [BREAKING] Differentiate between MatcherContext MatcherUtils and MatcherState types (#13141)
    • [jest-circus] Add support for test.failing.each (#13142)
    • [jest-config] [BREAKING] Make snapshotFormat default to escapeString: false and printBasicPrototype: false (#13036)
    • [jest-config] [BREAKING] Remove undocumented collectCoverageOnlyFrom option (#13156)
    • [jest-environment-jsdom] [BREAKING] Upgrade to jsdom@20 (#13037, #13058)
    • [@jest/globals] Add jest.Mocked, jest.MockedClass, jest.MockedFunction and jest.MockedObject utility types (#12727)
    • [jest-mock] [BREAKING] Refactor Mocked* utility types. MaybeMockedDeep and MaybeMocked became Mocked and MockedShallow respectively; only deep mocked variants of MockedClass, MockedFunction and MockedObject are exported (#13123, #13124)
    • [jest-mock] [BREAKING] Change the default jest.mocked helper’s behavior to deep mocked (#13125)
    • [jest-snapshot] [BREAKING] Let babel find config when updating inline snapshots (#13150)
    • [@jest/test-result, @jest/types] [BREAKING] Replace Bytes and Milliseconds types with number (#13155)
    • [jest-worker] Adds workerIdleMemoryLimit option which is used as a check for worker memory leaks >= Node 16.11.0 and recycles child workers as required (#13056, #13105, #13106, #13107)
    • [pretty-format] [BREAKING] Remove ConvertAnsi plugin in favour of jest-serializer-ansi-escapes (#13040)
    • [pretty-format] Allow to opt out from sorting object keys with compareKeys: null (#12443)

    Fixes

    • [jest-config] Fix testing multiple projects with TypeScript config files (#13099)
    • [@jest/expect-utils] Fix deep equality of ImmutableJS Record (#13055)
    • [jest-haste-map] Increase the maximum possible file size that jest-haste-map can handle (#13094)
    • [jest-runtime] Properly support CJS re-exports from dual packages (#13170)
    • [jest-snapshot] Make prettierPath optional in SnapshotState (#13149)
    • [jest-snapshot] Fix parsing error from inline snapshot files with JSX (#12760)
    • [jest-worker] When a process runs out of memory worker exits correctly and doesn't spin indefinitely (#13054)

    Chore & Maintenance

    • [*] [BREAKING] Drop support for Node v12 and v17 (#13033)
    • [docs] Fix webpack name (#13049)
    • [docs] Explicit how to set n for --bail (#13128)
    • [docs] Update Enzyme URL (#13166)
    • [jest-leak-detector] Remove support for weak-napi (#13035)
    • [jest-snapshot] [BREAKING] Require rootDir as argument to SnapshotState (#13150)

    28.1.3

    Features

    • [jest-leak-detector] Use native FinalizationRegistry when it exists to get rid of external C dependency (#12973)

    Fixes

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump puppeteer from 11.0.0 to 17.0.0

    chore(deps-dev): bump puppeteer from 11.0.0 to 17.0.0

    Bumps puppeteer from 11.0.0 to 17.0.0.

    Release notes

    Sourced from puppeteer's releases.

    v17.0.0

    17.0.0 (2022-08-26)

    ⚠ BREAKING CHANGES

    • remove root from WaitForSelectorOptions (#8848)
    • internalize execution context (#8844)

    Bug Fixes

    v16.2.0

    16.2.0 (2022-08-18)

    Features

    Bug Fixes

    v16.1.1

    16.1.1 (2022-08-16)

    Bug Fixes

    v16.1.0

    16.1.0 (2022-08-06)

    Features

    ... (truncated)

    Changelog

    Sourced from puppeteer's changelog.

    17.0.0 (2022-08-26)

    ⚠ BREAKING CHANGES

    • remove root from WaitForSelectorOptions (#8848)
    • internalize execution context (#8844)

    Bug Fixes

    16.2.0 (2022-08-18)

    Features

    Bug Fixes

    16.1.1 (2022-08-16)

    Bug Fixes

    16.1.0 (2022-08-06)

    Features

    Bug Fixes

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by google-wombot, a new releaser for puppeteer since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump puppeteer from 11.0.0 to 16.2.0

    chore(deps-dev): bump puppeteer from 11.0.0 to 16.2.0

    Bumps puppeteer from 11.0.0 to 16.2.0.

    Release notes

    Sourced from puppeteer's releases.

    v16.2.0

    16.2.0 (2022-08-18)

    Features

    Bug Fixes

    v16.1.1

    16.1.1 (2022-08-16)

    Bug Fixes

    v16.1.0

    16.1.0 (2022-08-06)

    Features

    Bug Fixes

    • resolve target manager init if no existing targets detected (#8748) (8cb5043), closes #8747
    • specify the target filter in setDiscoverTargets (#8742) (49193cb)

    v16.0.0

    16.0.0 (2022-08-02)

    ⚠ BREAKING CHANGES

    • With Chromium, Puppeteer will now attach to page/iframe targets immediately to allow reliable configuration of targets.

    ... (truncated)

    Changelog

    Sourced from puppeteer's changelog.

    16.2.0 (2022-08-18)

    Features

    Bug Fixes

    16.1.1 (2022-08-16)

    Bug Fixes

    16.1.0 (2022-08-06)

    Features

    Bug Fixes

    • resolve target manager init if no existing targets detected (#8748) (8cb5043), closes #8747
    • specify the target filter in setDiscoverTargets (#8742) (49193cb)

    16.0.0 (2022-08-02)

    ⚠ BREAKING CHANGES

    • With Chromium, Puppeteer will now attach to page/iframe targets immediately to allow reliable configuration of targets.

    Features

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by google-wombot, a new releaser for puppeteer since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump puppeteer from 11.0.0 to 16.1.0

    chore(deps-dev): bump puppeteer from 11.0.0 to 16.1.0

    Bumps puppeteer from 11.0.0 to 16.1.0.

    Release notes

    Sourced from puppeteer's releases.

    v16.1.0

    16.1.0 (2022-08-06)

    Features

    Bug Fixes

    • resolve target manager init if no existing targets detected (#8748) (8cb5043), closes #8747
    • specify the target filter in setDiscoverTargets (#8742) (49193cb)

    v16.0.0

    16.0.0 (2022-08-02)

    ⚠ BREAKING CHANGES

    • With Chromium, Puppeteer will now attach to page/iframe targets immediately to allow reliable configuration of targets.

    Features

    Bug Fixes

    v15.5.0

    15.5.0 (2022-07-21)

    Features

    • chromium: roll to Chromium 105.0.5173.0 (r1022525) (#8682) (f1b8ad3)

    v15.4.2

    15.4.2 (2022-07-21)

    Bug Fixes

    • taking a screenshot with null viewport should be possible (#8680) (2abb9f0), closes #8673

    ... (truncated)

    Changelog

    Sourced from puppeteer's changelog.

    16.1.0 (2022-08-06)

    Features

    Bug Fixes

    • resolve target manager init if no existing targets detected (#8748) (8cb5043), closes #8747
    • specify the target filter in setDiscoverTargets (#8742) (49193cb)

    16.0.0 (2022-08-02)

    ⚠ BREAKING CHANGES

    • With Chromium, Puppeteer will now attach to page/iframe targets immediately to allow reliable configuration of targets.

    Features

    Bug Fixes

    15.5.0 (2022-07-21)

    Features

    • chromium: roll to Chromium 105.0.5173.0 (r1022525) (#8682) (f1b8ad3)

    15.4.2 (2022-07-21)

    Bug Fixes

    • taking a screenshot with null viewport should be possible (#8680) (2abb9f0), closes #8673

    15.4.1 (2022-07-21)

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by google-wombot, a new releaser for puppeteer since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump puppeteer from 11.0.0 to 15.5.0

    chore(deps-dev): bump puppeteer from 11.0.0 to 15.5.0

    Bumps puppeteer from 11.0.0 to 15.5.0.

    Release notes

    Sourced from puppeteer's releases.

    v15.5.0

    15.5.0 (2022-07-21)

    Features

    • chromium: roll to Chromium 105.0.5173.0 (r1022525) (#8682) (f1b8ad3)

    v15.4.2

    15.4.2 (2022-07-21)

    Bug Fixes

    • taking a screenshot with null viewport should be possible (#8680) (2abb9f0), closes #8673

    v15.4.1

    15.4.1 (2022-07-21)

    Bug Fixes

    v15.4.0

    15.4.0 (2022-07-13)

    Features

    Bug Fixes

    v15.3.2

    15.3.2 (2022-07-08)

    Bug Fixes

    v15.3.1

    15.3.1 (2022-07-06)

    ... (truncated)

    Changelog

    Sourced from puppeteer's changelog.

    15.5.0 (2022-07-21)

    Features

    • chromium: roll to Chromium 105.0.5173.0 (r1022525) (#8682) (f1b8ad3)

    15.4.2 (2022-07-21)

    Bug Fixes

    • taking a screenshot with null viewport should be possible (#8680) (2abb9f0), closes #8673

    15.4.1 (2022-07-21)

    Bug Fixes

    15.4.0 (2022-07-13)

    Features

    Bug Fixes

    15.3.2 (2022-07-08)

    Bug Fixes

    15.3.1 (2022-07-06)

    Bug Fixes

    15.3.0 (2022-07-01)

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by google-wombot, a new releaser for puppeteer since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump puppeteer from 11.0.0 to 15.4.0

    chore(deps-dev): bump puppeteer from 11.0.0 to 15.4.0

    Bumps puppeteer from 11.0.0 to 15.4.0.

    Release notes

    Sourced from puppeteer's releases.

    v15.4.0

    15.4.0 (2022-07-13)

    Features

    Bug Fixes

    v15.3.2

    15.3.2 (2022-07-08)

    Bug Fixes

    v15.3.1

    15.3.1 (2022-07-06)

    Bug Fixes

    v15.3.0

    15.3.0 (2022-07-01)

    Features

    Bug Fixes

    v15.2.0

    15.2.0 (2022-06-29)

    Features

    ... (truncated)

    Changelog

    Sourced from puppeteer's changelog.

    15.4.0 (2022-07-13)

    Features

    Bug Fixes

    15.3.2 (2022-07-08)

    Bug Fixes

    15.3.1 (2022-07-06)

    Bug Fixes

    15.3.0 (2022-07-01)

    Features

    Bug Fixes

    15.2.0 (2022-06-29)

    Features

    Bug Fixes

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by google-wombot, a new releaser for puppeteer since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump jest from 27.5.1 to 28.1.3

    chore(deps-dev): bump jest from 27.5.1 to 28.1.3

    Bumps jest from 27.5.1 to 28.1.3.

    Release notes

    Sourced from jest's releases.

    v28.1.3

    Features

    • [jest-leak-detector] Use native FinalizationRegistry when it exists to get rid of external C dependency (#12973)

    Fixes

    • [jest-changed-files] Fix a lock-up after repeated invocations (#12757)
    • [@jest/expect-utils] Fix deep equality of ImmutableJS OrderedSets (#12977)
    • [jest-mock] Add index signature support for spyOn types (#13013, #13020)
    • [jest-snapshot] Fix indentation of awaited inline snapshots (#12986)

    Chore & Maintenance

    • [*] Replace internal usage of pretty-format/ConvertAnsi with jest-serializer-ansi-escapes (#12935, #13004)
    • [docs] Update spyOn docs (#13000)

    New Contributors

    Full Changelog: https://github.com/facebook/jest/compare/v28.1.2...v28.1.3

    v28.1.2

    Fixes

    • [jest-runtime] Avoid star type import from @jest/globals (#12949)

    Chore & Maintenance

    • [docs] Mention that jest-codemods now supports Sinon (#12898)

    New Contributors

    Full Changelog: https://github.com/facebook/jest/compare/v28.1.1...v28.1.2

    v28.1.1

    Features

    • [jest] Expose Config type (#12848)
    • [@jest/reporters] Improve GitHubActionsReporters annotation format (#12826)
    • [@jest/types] Infer argument types passed to test and describe callback functions from each tables (#12885, #12905)

    ... (truncated)

    Changelog

    Sourced from jest's changelog.

    28.1.3

    Features

    • [jest-leak-detector] Use native FinalizationRegistry when it exists to get rid of external C dependency (#12973)

    Fixes

    • [jest-changed-files] Fix a lock-up after repeated invocations (#12757)
    • [@jest/expect-utils] Fix deep equality of ImmutableJS OrderedSets (#12977)
    • [jest-mock] Add index signature support for spyOn types (#13013, #13020)
    • [jest-snapshot] Fix indentation of awaited inline snapshots (#12986)

    Chore & Maintenance

    • [*] Replace internal usage of pretty-format/ConvertAnsi with jest-serializer-ansi-escapes (#12935, #13004)
    • [docs] Update spyOn docs (#13000)

    28.1.2

    Fixes

    • [jest-runtime] Avoid star type import from @jest/globals (#12949)

    Chore & Maintenance

    • [docs] Mention that jest-codemods now supports Sinon (#12898)

    28.1.1

    Features

    • [jest] Expose Config type (#12848)
    • [@jest/reporters] Improve GitHubActionsReporters annotation format (#12826)
    • [@jest/types] Infer argument types passed to test and describe callback functions from each tables (#12885, #12905)

    Fixes

    • [@jest/expect-utils] Fix deep equality of ImmutableJS OrderedMaps (#12763)
    • [jest-docblock] Handle multiline comments in parseWithComments (#12845)
    • [jest-mock] Improve spyOn error messages (#12901)
    • [jest-runtime] Correctly report V8 coverage with resetModules: true (#12912)
    • [jest-worker] Make JestWorkerFarm helper type to include methods of worker module that take more than one argument (#12839)

    Chore & Maintenance

    • [docs] Updated docs to indicate that jest-environment-jsdom is a separate package #12828
    • [docs] Document the comments used by coverage providers #12835
    • [docs] Use docusaurus-remark-plugin-tab-blocks to format tabs with code examples (#12859)
    • [jest-haste-map] Bump walker version (#12324)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump puppeteer from 11.0.0 to 15.3.2

    chore(deps-dev): bump puppeteer from 11.0.0 to 15.3.2

    Bumps puppeteer from 11.0.0 to 15.3.2.

    Release notes

    Sourced from puppeteer's releases.

    v15.3.2

    15.3.2 (2022-07-08)

    Bug Fixes

    v15.3.1

    15.3.1 (2022-07-06)

    Bug Fixes

    v15.3.0

    15.3.0 (2022-07-01)

    Features

    Bug Fixes

    v15.2.0

    15.2.0 (2022-06-29)

    Features

    Bug Fixes

    • clean up tmp profile dirs when browser is closed (#8580) (9787a1d)

    v15.1.1

    15.1.1 (2022-06-25)

    Bug Fixes

    ... (truncated)

    Changelog

    Sourced from puppeteer's changelog.

    15.3.2 (2022-07-08)

    Bug Fixes

    15.3.1 (2022-07-06)

    Bug Fixes

    15.3.0 (2022-07-01)

    Features

    Bug Fixes

    15.2.0 (2022-06-29)

    Features

    Bug Fixes

    • clean up tmp profile dirs when browser is closed (#8580) (9787a1d)

    15.1.1 (2022-06-25)

    Bug Fixes

    15.1.0 (2022-06-24)

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by google-wombot, a new releaser for puppeteer since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump puppeteer from 11.0.0 to 15.3.0

    chore(deps-dev): bump puppeteer from 11.0.0 to 15.3.0

    Bumps puppeteer from 11.0.0 to 15.3.0.

    Release notes

    Sourced from puppeteer's releases.

    v15.3.0

    15.3.0 (2022-07-01)

    Features

    Bug Fixes

    v15.2.0

    15.2.0 (2022-06-29)

    Features

    Bug Fixes

    • clean up tmp profile dirs when browser is closed (#8580) (9787a1d)

    v15.1.1

    15.1.1 (2022-06-25)

    Bug Fixes

    v15.1.0

    15.1.0 (2022-06-24)

    Features

    • chromium: roll to Chromium 104.0.5109.0 (r1011831) (#8569) (fb7d31e)

    v15.0.2

    15.0.2 (2022-06-24)

    Bug Fixes

    ... (truncated)

    Changelog

    Sourced from puppeteer's changelog.

    15.3.0 (2022-07-01)

    Features

    Bug Fixes

    15.2.0 (2022-06-29)

    Features

    Bug Fixes

    • clean up tmp profile dirs when browser is closed (#8580) (9787a1d)

    15.1.1 (2022-06-25)

    Bug Fixes

    15.1.0 (2022-06-24)

    Features

    • chromium: roll to Chromium 104.0.5109.0 (r1011831) (#8569) (fb7d31e)

    15.0.2 (2022-06-24)

    Bug Fixes

    15.0.1 (2022-06-24)

    Bug Fixes

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by google-wombot, a new releaser for puppeteer since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump jest from 27.5.1 to 28.1.2

    chore(deps-dev): bump jest from 27.5.1 to 28.1.2

    Bumps jest from 27.5.1 to 28.1.2.

    Release notes

    Sourced from jest's releases.

    v28.1.2

    Fixes

    • [jest-runtime] Avoid star type import from @jest/globals (#12949)

    Chore & Maintenance

    • [docs] Mention that jest-codemods now supports Sinon (#12898)

    New Contributors

    Full Changelog: https://github.com/facebook/jest/compare/v28.1.1...v28.1.2

    v28.1.1

    Features

    • [jest] Expose Config type (#12848)
    • [@jest/reporters] Improve GitHubActionsReporters annotation format (#12826)
    • [@jest/types] Infer argument types passed to test and describe callback functions from each tables (#12885, #12905)

    Fixes

    • [@jest/expect-utils] Fix deep equality of ImmutableJS OrderedMaps (#12763)
    • [jest-docblock] Handle multiline comments in parseWithComments (#12845)
    • [jest-mock] Improve spyOn error messages (#12901)
    • [jest-runtime] Correctly report V8 coverage with resetModules: true (#12912)
    • [jest-worker] Make JestWorkerFarm helper type to include methods of worker module that take more than one argument (#12839)

    Chore & Maintenance

    • [docs] Updated docs to indicate that jest-environment-jsdom is a separate package #12828

    • [docs] Document the comments used by coverage providers #12835

    • [docs] Use docusaurus-remark-plugin-tab-blocks to format tabs with code examples (#12859)

    • [jest-haste-map] Bump walker version (#12324)

    • [expect] Adjust typings of lastCalledWith, nthCalledWith, toBeCalledWith matchers to allow a case there a mock was called with no arguments (#12807)

    • [@jest/expect-utils] Fix deep equality of ImmutableJS Lists (#12763)

    • [jest-core] Do not collect SIGNREQUEST as open handles (#12789)

    New Contributors

    ... (truncated)

    Changelog

    Sourced from jest's changelog.

    28.1.2

    Fixes

    -[jest-runtime] Avoid star type import from @jest/globals (#12949)

    Chore & Maintenance

    • [docs] Mention that jest-codemods now supports Sinon (#12898)

    28.1.1

    Features

    • [jest] Expose Config type (#12848)
    • [@jest/reporters] Improve GitHubActionsReporters annotation format (#12826)
    • [@jest/types] Infer argument types passed to test and describe callback functions from each tables (#12885, #12905)

    Fixes

    • [@jest/expect-utils] Fix deep equality of ImmutableJS OrderedMaps (#12763)
    • [jest-docblock] Handle multiline comments in parseWithComments (#12845)
    • [jest-mock] Improve spyOn error messages (#12901)
    • [jest-runtime] Correctly report V8 coverage with resetModules: true (#12912)
    • [jest-worker] Make JestWorkerFarm helper type to include methods of worker module that take more than one argument (#12839)

    Chore & Maintenance

    • [docs] Updated docs to indicate that jest-environment-jsdom is a separate package #12828
    • [docs] Document the comments used by coverage providers #12835
    • [docs] Use docusaurus-remark-plugin-tab-blocks to format tabs with code examples (#12859)
    • [jest-haste-map] Bump walker version (#12324)

    28.1.0

    Features

    • [jest-circus] Add failing test modifier that inverts the behavior of tests (#12610)
    • [jest-environment-node, jest-environment-jsdom] Allow specifying customExportConditions (#12774)

    Fixes

    • [expect] Adjust typings of lastCalledWith, nthCalledWith, toBeCalledWith matchers to allow a case there a mock was called with no arguments (#12807)
    • [@jest/expect-utils] Fix deep equality of ImmutableJS Lists (#12763)
    • [jest-core] Do not collect SIGNREQUEST as open handles (#12789)

    Chore & Maintenance

    • [docs] Specified documentation about --filter CLI docs (#12799)
    • [@jest-reporters] Move helper functions from utils.ts into separate files (#12782)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump puppeteer from 11.0.0 to 17.1.1

    chore(deps-dev): bump puppeteer from 11.0.0 to 17.1.1

    Bumps puppeteer from 11.0.0 to 17.1.1.

    Release notes

    Sourced from puppeteer's releases.

    v17.1.1

    17.1.1 (2022-09-05)

    Bug Fixes

    v17.1.0

    17.1.0 (2022-09-02)

    Features

    • chromium: roll to Chromium 106.0.5249.0 (r1036745) (#8869) (6e9a47a)

    Bug Fixes

    v17.0.0

    17.0.0 (2022-08-26)

    ⚠ BREAKING CHANGES

    • remove root from WaitForSelectorOptions (#8848)
    • internalize execution context (#8844)

    Bug Fixes

    v16.2.0

    16.2.0 (2022-08-18)

    Features

    Bug Fixes

    ... (truncated)

    Changelog

    Sourced from puppeteer's changelog.

    17.1.1 (2022-09-05)

    Bug Fixes

    17.1.0 (2022-09-02)

    Features

    • chromium: roll to Chromium 106.0.5249.0 (r1036745) (#8869) (6e9a47a)

    Bug Fixes

    17.0.0 (2022-08-26)

    ⚠ BREAKING CHANGES

    • remove root from WaitForSelectorOptions (#8848)
    • internalize execution context (#8844)

    Bug Fixes

    16.2.0 (2022-08-18)

    Features

    Bug Fixes

    16.1.1 (2022-08-16)

    ... (truncated)

    Commits
    Maintainer changes

    This version was pushed to npm by google-wombot, a new releaser for puppeteer since your current version.


    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • chore(deps-dev): bump jest from 27.5.1 to 29.0.2

    chore(deps-dev): bump jest from 27.5.1 to 29.0.2

    Bumps jest from 27.5.1 to 29.0.2.

    Release notes

    Sourced from jest's releases.

    v29.0.2

    Features

    • [jest-transform] Expose TransformFactory type (#13184)

    Fixes

    • [babel-plugin-jest-hoist] Support imported jest in mock factory (#13188)
    • [jest-mock] Align the behavior and return type of generateFromMetadata method (#13207)
    • [jest-runtime] Support jest.resetModules() with ESM (#13211)

    New Contributors

    Full Changelog: https://github.com/facebook/jest/compare/v29.0.1...v29.0.2

    v29.0.1

    Fixes

    • [jest-snapshot] Pass snapshotFormat through when diffing snapshots (#13181)

    Full Changelog: https://github.com/facebook/jest/compare/v29.0.0...v29.0.1

    v29.0.0

    Blog post: https://jestjs.io/blog/2022/08/25/jest-29

    Features

    • [expect] [BREAKING] Differentiate between MatcherContext MatcherUtils and MatcherState types (#13141)
    • [jest-circus] Add support for test.failing.each (#13142)
    • [jest-config] [BREAKING] Make snapshotFormat default to escapeString: false and printBasicPrototype: false (#13036)
    • [jest-config] [BREAKING] Remove undocumented collectCoverageOnlyFrom option (#13156)
    • [jest-environment-jsdom] [BREAKING] Upgrade to jsdom@20 (#13037, #13058)
    • [@jest/globals] Add jest.Mocked, jest.MockedClass, jest.MockedFunction and jest.MockedObject utility types (#12727)
    • [jest-mock] [BREAKING] Refactor Mocked* utility types. MaybeMockedDeep and MaybeMocked became Mocked and MockedShallow respectively; only deep mocked variants of MockedClass, MockedFunction and MockedObject are exported (#13123, #13124)
    • [jest-mock] [BREAKING] Change the default jest.mocked helper’s behavior to deep mocked (#13125)
    • [jest-snapshot] [BREAKING] Let babel find config when updating inline snapshots (#13150)
    • [@jest/test-result, @jest/types] [BREAKING] Replace Bytes and Milliseconds types with number (#13155)
    • [jest-worker] Adds workerIdleMemoryLimit option which is used as a check for worker memory leaks >= Node 16.11.0 and recycles child workers as required (#13056, #13105, #13106, #13107)
    • [pretty-format] [BREAKING] Remove ConvertAnsi plugin in favour of jest-serializer-ansi-escapes (#13040)
    • [pretty-format] Allow to opt out from sorting object keys with compareKeys: null (#12443)

    Fixes

    • [jest-config] Fix testing multiple projects with TypeScript config files (#13099)
    • [@jest/expect-utils] Fix deep equality of ImmutableJS Record (#13055)
    • [jest-haste-map] Increase the maximum possible file size that jest-haste-map can handle (#13094)
    • [jest-runtime] Properly support CJS re-exports from dual packages (#13170)
    • [jest-snapshot] Make prettierPath optional in SnapshotState (#13149)
    • [jest-snapshot] Fix parsing error from inline snapshot files with JSX (#12760)

    ... (truncated)

    Changelog

    Sourced from jest's changelog.

    29.0.2

    Features

    • [jest-transform] Expose TransformFactory type (#13184)

    Fixes

    • [babel-plugin-jest-hoist] Support imported jest in mock factory (#13188)
    • [jest-mock] Align the behavior and return type of generateFromMetadata method (#13207)
    • [jest-runtime] Support jest.resetModules() with ESM (#13211)

    29.0.1

    Fixes

    • [jest-snapshot] Pass snapshotFormat through when diffing snapshots (#13181)

    29.0.0

    Features

    • [expect] [BREAKING] Differentiate between MatcherContext MatcherUtils and MatcherState types (#13141)
    • [jest-circus] Add support for test.failing.each (#13142)
    • [jest-config] [BREAKING] Make snapshotFormat default to escapeString: false and printBasicPrototype: false (#13036)
    • [jest-config] [BREAKING] Remove undocumented collectCoverageOnlyFrom option (#13156)
    • [jest-environment-jsdom] [BREAKING] Upgrade to jsdom@20 (#13037, #13058)
    • [@jest/globals] Add jest.Mocked, jest.MockedClass, jest.MockedFunction and jest.MockedObject utility types (#12727)
    • [jest-mock] [BREAKING] Refactor Mocked* utility types. MaybeMockedDeep and MaybeMocked became Mocked and MockedShallow respectively; only deep mocked variants of MockedClass, MockedFunction and MockedObject are exported (#13123, #13124)
    • [jest-mock] [BREAKING] Change the default jest.mocked helper’s behavior to deep mocked (#13125)
    • [jest-snapshot] [BREAKING] Let babel find config when updating inline snapshots (#13150)
    • [@jest/test-result, @jest/types] [BREAKING] Replace Bytes and Milliseconds types with number (#13155)
    • [jest-worker] Adds workerIdleMemoryLimit option which is used as a check for worker memory leaks >= Node 16.11.0 and recycles child workers as required (#13056, #13105, #13106, #13107)
    • [pretty-format] [BREAKING] Remove ConvertAnsi plugin in favour of jest-serializer-ansi-escapes (#13040)
    • [pretty-format] Allow to opt out from sorting object keys with compareKeys: null (#12443)

    Fixes

    • [jest-config] Fix testing multiple projects with TypeScript config files (#13099)
    • [@jest/expect-utils] Fix deep equality of ImmutableJS Record (#13055)
    • [jest-haste-map] Increase the maximum possible file size that jest-haste-map can handle (#13094)
    • [jest-runtime] Properly support CJS re-exports from dual packages (#13170)
    • [jest-snapshot] Make prettierPath optional in SnapshotState (#13149)
    • [jest-snapshot] Fix parsing error from inline snapshot files with JSX (#12760)
    • [jest-worker] When a process runs out of memory worker exits correctly and doesn't spin indefinitely (#13054)

    Chore & Maintenance

    • [*] [BREAKING] Drop support for Node v12 and v17 (#13033)
    • [docs] Fix webpack name (#13049)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • chore(deps-dev): bump babel-jest from 29.0.1 to 29.0.2

    chore(deps-dev): bump babel-jest from 29.0.1 to 29.0.2

    Bumps babel-jest from 29.0.1 to 29.0.2.

    Release notes

    Sourced from babel-jest's releases.

    v29.0.2

    Features

    • [jest-transform] Expose TransformFactory type (#13184)

    Fixes

    • [babel-plugin-jest-hoist] Support imported jest in mock factory (#13188)
    • [jest-mock] Align the behavior and return type of generateFromMetadata method (#13207)
    • [jest-runtime] Support jest.resetModules() with ESM (#13211)

    New Contributors

    Full Changelog: https://github.com/facebook/jest/compare/v29.0.1...v29.0.2

    Changelog

    Sourced from babel-jest's changelog.

    29.0.2

    Features

    • [jest-transform] Expose TransformFactory type (#13184)

    Fixes

    • [babel-plugin-jest-hoist] Support imported jest in mock factory (#13188)
    • [jest-mock] Align the behavior and return type of generateFromMetadata method (#13207)
    • [jest-runtime] Support jest.resetModules() with ESM (#13211)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • Bug when using getFocusable on scrollable element and scroll-stash

    Bug when using getFocusable on scrollable element and scroll-stash

    Problem

    I'm running into some weird scrolling behavior when using @vrembem/drawer and it's focusTrap feature along with scroll-stash and trying to keep an anchor in view after the drawer has opened. The drawer usually starts at the bottom of the scroll and won't always scroll to the anchor when set.

    opened by sebnitu 0
  • Add a custom conventional-changelog config/preset

    Add a custom conventional-changelog config/preset

    Problem

    The current changelog implementation is a bit tedious with having to copy over commits from the script generated UNRELEASED.md file.

    Possible Solution

    Maybe find a way to set a custom preset so that the labels I'd like to be present in the changelog gets output without having to create them manually from the UNRELEASED.md dump.

    opened by sebnitu 0
  • Add more ways to set anchor scroll alignment

    Add more ways to set anchor scroll alignment

    Problem

    There's currently only one way to set the anchor scroll alignment and that's through the options object.

    Possible Solution

    Maybe add a data-attribute that passes the desired anchor scroll alignment for a specific element. This update could also include an optional parameter to the anchorShow method for setting the alignment (or just updated in the passed settings object).

    opened by sebnitu 0
Owner
Sebastian Nitu
UI Designer and Front-end Developer.
Sebastian Nitu
Animate elements as they scroll into view.

Animate elements as they scroll into view. Introduction ScrollReveal is a JavaScript library for easily animating elements as they enter/leave the vie

Julian Lloyd 21.2k Jan 4, 2023
Create an Apple-like one page scroller website (iPhone 5S website) with One Page Scroll plugin

#One Page Scroll 1.3.1 by Pete R. Create an Apple-like one page scroll website (iPhone 5S website) with One Page Scroll plugin Created by Pete R., Fou

Pete R. 9.6k Dec 31, 2022
Largetable - jQuery plugin to scroll in/maximize large tables

largetable jQuery plugin to scroll in/maximize large tables Usage Install with npm: $ npm install largetable Then include largetable files in the HTM

Edinum 1 Feb 3, 2021
Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.

lax.js Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll. >> DEMO << What's new w

Alex Fox 9.4k Dec 29, 2022
🚀 Scroll Follow Tab is a lightweight javascript library without jQuery, no dependencies.

Scroll Follow Tab is a lightweight javascript library without jQuery, no dependencies. It is used to make scrollspy effect for your menu, table of contents, etc. Only 21.7Kb.

Hieu Truong 11 Jun 20, 2022
🛤 Detection of elements in viewport & smooth scrolling with parallax.

Locomotive Scroll Detection of elements in viewport & smooth scrolling with parallax effects. Installation ⚠️ Scroll-hijacking is a controversial prac

Locomotive 5.9k Dec 31, 2022
Smooth WebGL Shader Transformations on Scroll

Rock the Stage with a Smooth WebGL Shader Transformation on Scroll A handy setup to create a smooth scroll based GLSL animation using Three.js and GSA

Faboolea 97 Dec 25, 2022
🚀 Performance focused, lightweight scroll animation library 🚀

Sal Performance focused, lightweight (less than 2.8 kb) scroll animation library, written in vanilla JavaScript. No dependencies! Sal (Scroll Animatio

Mirek Ciastek 3.4k Dec 28, 2022
▲ NEXT.JS - Example project using Next.js with Locomotive Scroll. (experimental)

nextjs-with-locomotive-scroll-example ?? NEXT.JS - Example project using Next.js with Locomotive Scroll. (experimental) ?? Demo ?? Getting started The

Bruno Silva 27 Dec 21, 2022
Better scroll event management using requestAnimationFrame.

Scroll Frame Better scroll event management using requestAnimationFrame. Install npm install @jamestomasino/scroll-frame Use const { addScrollListener

James Tomasino 2 Feb 12, 2022
Scroll made easy!

Demo - Installation - Methods - Callbacks - Styling ◼️ Features: ?? Native Scroll Behavior ?? Standardized events / shortcuts / API ?? Fast & Lightwei

Bruno Vieira 307 Nov 20, 2022
jQuery plugin for creating interactive parallax effect

jquery.parallax What does jquery.parallax do? jquery.parallax turns nodes into absolutely positioned layers that move in response to the mouse. Depend

stephband 1.1k Nov 25, 2022
fullPage plugin by Alvaro Trigo. Create full screen pages fast and simple

fullPage.js English | Español | Français | Pусский | 中文 | 한국어 Available for Vue, React and Angular. | 7Kb gziped | Created by @imac2 Demo online | Cod

Álvaro 34.3k Jan 4, 2023
BetterScroll is a plugin which is aimed at solving scrolling circumstances on the mobile side (PC supported already).

BetterScroll is a plugin which is aimed at solving scrolling circumstances on the mobile side (PC supported already).

HuangYi 15.9k Dec 30, 2022
Stand-alone parallax scrolling library for mobile (Android + iOS) and desktop. No jQuery. Just plain JavaScript (and some love).

Please note: skrollr hasn't been under active development since about September 2014 (check out the contributions graphs on https://github.com/Prinzho

Alexander Prinzhorn 18.6k Jan 3, 2023
Simple and tiny JavaScript library that adds parallax animations on any images

simpleParallax.js simpleParallax.js is a very simple and tiny Vanilla JS library that adds parallax animations on any images. Where it may be laboriou

Geoffrey 1.5k Jan 3, 2023
Lightweight, vanilla javascript parallax library

RELLAX Rellax is a buttery smooth, super lightweight, vanilla javascript parallax library. Update: Rellax now works on mobile (v1.0.0). Demo Website G

Dixon & Moe 6.7k Dec 30, 2022
Customizable, Pluginable, and High-Performance JavaScript-Based Scrollbar Solution.

Smooth Scrollbar Customizable, Flexible, and High Performance Scrollbars! Installation ⚠️ DO NOT use custom scrollbars unless you know what you are do

Daofeng Wu 3k Jan 1, 2023
Cubic-bezier implementation for your JavaScript animation easings – MIT License

BezierEasing provides Cubic Bezier Curve easing which generalizes easing functions (ease-in, ease-out, ease-in-out, ...any other custom curve) exactly like in CSS Transitions.

@greweb 1.6k Dec 27, 2022