Skip to content

Commit

Permalink
v4.0.2
Browse files Browse the repository at this point in the history
Release notes:

- Convert array iterator `for` loops to index iteration.
  - This avoids conflicts with additional methods defined on the `Array` prototype. It is generally not good practice to modify global prototypes with new methods (and if you do, you should make sure they are not enumerable: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty#enumerable), but this should reduce the chance of conflict when you are using `clipboard-polyfill`.
  • Loading branch information
lgarron committed Jan 7, 2024
1 parent beb5988 commit 6a01546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clipboard-polyfill",
"version": "4.0.1",
"version": "4.0.2",
"description": "A polyfill for the asynchronous clipboard API",
"type": "module",
"devDependencies": {
Expand Down

0 comments on commit 6a01546

Please sign in to comment.