Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

[Snyk] Upgrade @testing-library/user-event from 13.5.0 to 14.0.0 #573

Merged
merged 2 commits into from
Apr 22, 2022

Conversation

lwojcik
Copy link
Owner

@lwojcik lwojcik commented Apr 19, 2022

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade @testing-library/user-event from 13.5.0 to 14.0.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 33 versions ahead of your current version.
  • The recommended version was released 21 days ago, on 2022-03-29.
Release notes
Package name: @testing-library/user-event
  • 14.0.0 - 2022-03-29

    14.0.0 (2022-03-29)

    ⚠ BREAKING CHANGES

    • APIs always return a Promise.
    • pointer: skipPointerEvents has been removed.
      Use pointerEventsCheck: PointerEventsCheckLevel.Never instead.
    • upload: init parameter has been removed from userEvent.upload.
    • upload: applyAccept defaults to true.
    • The userEvent.paste API has new parameters.
    • {ctrl}, {del}, {esc} no longer describe a key. Use {Control}, {Delete}, {Escape} instead.
    • {alt}, {ctrl}, {meta}, {shift} no longer imply not releasing the key. Use {Alt>}, {Control>}, {Meta>}, {Shift>} instead.
    • init parameter has been removed from these APIs:
      • userEvent.click
      • userEvent.dblClick
      • userEvent.tripleClick
      • userEvent.hover
      • userEvent.unhover
      • userEvent.selectOptions
      • userEvent.deselectOptions
    • userEvent.upload no longer supports clickInit
      as part of its init parameter.
    • Behavior for special key descriptor {selectall} has been removed.
    • Support for keyCode property on keyboard events has been removed.
    • An error is thrown when calling userEvent.clear on an element which is not editable.
    • An error is thrown when event handlers prevent userEvent.clear from focussing/selecting content.
    • tab: The focusTrap option has been removed from userEvent.tab().
    • type: userEvent.type does no longer move the cursor
      if used with skipClick=false and without initialSelectionStart.
    • The implementation of pointer related APIs was replaced.
      This might break tests relying on unintended side-effects of the previous implementation.
    • Support for node 10 was removed as it reached its end-of-life.

    Features

    Bug Fixes

    • check for inherited :disabled (#872) (1a00fdf)
    • clipboard: prevent default behavior on copy/cut (#866) (5423094)
    • clipboard: prevent default behavior on paste (#862) (d3d71ac)
    • create MouseEvents per createEvent (#781) (da5b5b7)
    • export bundled ESM (#816) (1a5e2a7)
    • export types and commonjs bundle (#821) (4f56856)
    • keyboard: parse escaped bracket followed by descriptor (#814) (684451f)
    • keyboard: parse keyboard input without nesting (#793) (fafa677)
    • keyboard: set KeyboardEvent.charCode on keypress (#771) (55e194a)
    • keyboard: submit form with <button/> on [Enter] (#808) (eca157a)
    • log correct docs link for invalid key descriptors (#881) (28d6604)
    • maintain cursor position on controlled component (#765) (8f203cc)
    • pointer: blur activeElement on click outside of focusable (#834) (d64167c)
    • pointer: consider click context (#850) (ca4482a)
    • pointer: fire pointer events on disabled elements (#818) (ef2f4e5)
    • pointer: honor click handler on <label/> (#810) (2c5d9f1)
    • pointer: trigger contextmenu on mousedown (#811) (e1c4cad)
    • prepare document in setup (#753) (65be675)
    • remove deprecated keyboard features (#780) (45dc39a)
    • remove legacy modifier implementations (#783) (caea162)
    • replace pointer implementations (#754) (c04f79b)
    • reset UI selection on setter (#770) (2733d10)
    • tab: order tabIndex>0 before tabIndex=0 (#809) (1bc5945)
    • tab: remove focusTrap option (#772) (a0412c0)
    • tab: skip elements with visibility:hidden (#799) (a747b0a)
    • upload: fix order of events (#847) (214fd03)

    Miscellaneous Chores

  • 14.0.0-beta.14 - 2022-03-24

    14.0.0-beta.14 (2022-03-24)

    Bug Fixes

    • log correct docs link for invalid key descriptors (#881) (28d6604)
  • 14.0.0-beta.13 - 2022-03-04

    14.0.0-beta.13 (2022-03-04)

    Bug Fixes

  • 14.0.0-beta.12 - 2022-03-01

    14.0.0-beta.12 (2022-03-01)

    Bug Fixes

    • clipboard: prevent default behavior on copy/cut (#866) (5423094)
    • clipboard: prevent default behavior on paste (#862) (d3d71ac)
  • 14.0.0-beta.11 - 2022-02-10

    14.0.0-beta.11 (2022-02-10)

    Features

  • 14.0.0-beta.10 - 2022-02-08

    14.0.0-beta.10 (2022-02-08)

    Bug Fixes

  • 14.0.0-beta.9 - 2022-02-07

    14.0.0-beta.9 (2022-02-07)

    Bug Fixes

  • 14.0.0-beta.8 - 2022-01-16

    14.0.0-beta.8 (2022-01-16)

    Bug Fixes

    • pointer: blur activeElement on click outside of focusable (#834) (d64167c)
  • 14.0.0-beta.7 - 2022-01-05

    14.0.0-beta.7 (2022-01-05)

    ⚠ BREAKING CHANGES

    • pointer: skipPointerEvents has been removed.
      Use pointerEventsCheck: PointerEventsCheckLevel.Never instead.

    Features

    • pointer: introduce pointerEventsCheck option (#823) (e2a5f43)
  • 14.0.0-beta.6 - 2022-01-01
  • 14.0.0-beta.5 - 2021-12-31
  • 14.0.0-beta.4 - 2021-12-30
  • 14.0.0-beta.3 - 2021-12-13
  • 14.0.0-beta.2 - 2021-12-07
  • 14.0.0-beta.1 - 2021-11-28
  • 14.0.0-alpha.18 - 2021-11-28
  • 14.0.0-alpha.17 - 2021-11-25
  • 14.0.0-alpha.16 - 2021-11-25
  • 14.0.0-alpha.15 - 2021-11-25
  • 14.0.0-alpha.14 - 2021-11-17
  • 14.0.0-alpha.13 - 2021-11-17
  • 14.0.0-alpha.12 - 2021-11-16
  • 14.0.0-alpha.11 - 2021-11-15
  • 14.0.0-alpha.10 - 2021-11-15
  • 14.0.0-alpha.9 - 2021-11-15
  • 14.0.0-alpha.8 - 2021-11-11
  • 14.0.0-alpha.7 - 2021-11-09
  • 14.0.0-alpha.6 - 2021-11-03
  • 14.0.0-alpha.5 - 2021-10-30
  • 14.0.0-alpha.4 - 2021-10-29
  • 14.0.0-alpha.3 - 2021-10-25
  • 14.0.0-alpha.2 - 2021-10-22
  • 14.0.0-alpha.1 - 2021-10-21
  • 13.5.0 - 2021-10-18
from @testing-library/user-event GitHub release notes
Commit messages
Package name: @testing-library/user-event
  • f209a6f chore: update link to CONTRIBUTORS
  • fc15e25 chore: add codesandbox template without framework (#884)
  • 47de44c docs: add joshunger as a contributor for bug (#883)
  • 28d6604 fix: log correct docs link for invalid key descriptors (#881)
  • e971a34 chore: update dependencies (#882)
  • 7a36ca8 chore: fix typo in comment (#875)
  • 26dbc45 chore: fix CODE_OF_CONDUCT.md location (#879)
  • 0da81d2 docs: add markwoon as a contributor for bug (#873)
  • 1a00fdf fix: check for inherited `:disabled` (#872)
  • 75fdd44 docs: add lifeiscontent as a contributor for ideas (#870)
  • 22f4095 chore: modernize issue templates (#869)
  • 4666c35 docs: add Gudahtt as a contributor for bug, code (#868)
  • 5423094 fix(clipboard): prevent default behavior on `copy`/`cut` (#866)
  • d3d71ac fix(clipboard): prevent default behavior on `paste` (#862)
  • 7171c9d refactor: reorganize tests for key event behavior (#863)
  • 5ea38e8 refactor: streamline tests for maxlength support (#860)
  • 376e6b3 refactor: simplify test setup with focus and selection (#859)
  • 892e6d5 refactor: refactor test setup (#856)
  • bb5ca79 refactor: refactor test helpers (#852)
  • 8890bd6 feat(event): support `beforeinput` (#851)
  • ca4482a fix(pointer): consider click context (#850)
  • 214fd03 fix(upload): fix order of events (#847)
  • 4720ac2 refactor: dispatch all UI events per one internal API (#838)
  • a5ca2e4 docs: add piecyk as a contributor for bug (#837)

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@codecov
Copy link

codecov bot commented Apr 22, 2022

Codecov Report

Merging #573 (87927f0) into master (2f5db2f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #573   +/-   ##
=======================================
  Coverage   61.59%   61.59%           
=======================================
  Files         127      127           
  Lines         578      578           
  Branches      133      133           
=======================================
  Hits          356      356           
  Misses        222      222           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f5db2f...87927f0. Read the comment docs.

@mergify mergify bot merged commit 33758a4 into master Apr 22, 2022
@mergify mergify bot deleted the snyk-upgrade-782b88e4ecd7eaf4bd677cc4994f0ed1 branch April 22, 2022 09:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants