fix(deps): update dependency copy-to-clipboard to v4#2077
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for cert-manager ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
4ac04e4 to
9b297d8
Compare
9b297d8 to
43c4e77
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the copy-to-clipboard dependency from v3 to v4, including the package lockfile resolution.
Changes:
- Bumps
copy-to-clipboardinpackage.jsonto^4.0.0. - Updates
package-lock.jsonto resolvecopy-to-clipboardto4.0.2. - Removes the no-longer-used transitive
toggle-selectionpackage from the lockfile.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
package.json |
Updates the direct dependency version for copy-to-clipboard. |
package-lock.json |
Updates the locked package metadata and removes the previous transitive dependency. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "classnames": "2.5.1", | ||
| "compare-versions": "6.1.1", | ||
| "copy-to-clipboard": "^3.3.3", | ||
| "copy-to-clipboard": "^4.0.0", |
43c4e77 to
bb195e5
Compare
2627c49 to
b7cb360
Compare
Signed-off-by: Renovate Bot <renovate-bot@users.noreply.github.com>
b7cb360 to
26700ce
Compare
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |

This PR contains the following updates:
^3.3.3→^4.0.0Release Notes
sudodoki/copy-to-clipboard (copy-to-clipboard)
v4.0.2Compare Source
compare changes
🩹 Fixes
🏡 Chore
❤️ Contributors
v4.0.1Compare Source
compare changes
🏡 Chore
✅ Tests
❤️ Contributors
v4.0.0Compare Source
compare changes
copy()is now async — returnsPromise<boolean>instead ofboolean. All call sites must be updated toawait copy(...)or.then(...).window.clipboardDataand all IE-specific code paths removed.window.prompt()fallback is now opt-in — passoptions.fallbackToPrompt: trueto restore. Off by default.dist/— directrequire('copy-to-clipboard/index.js')imports will break; use the package name only.🚀 Enhancements
navigator.clipboard.writeText()is now the default copy path in secure contexts (HTTPS /localhost).navigator.clipboard.write()withClipboardItemfor rich text / HTML copying whenoptions.formatoroptions.onCopyis set.options.format— set a custom MIME type (e.g.'text/html') to copy formatted content;text/plainis always included alongside it.options.onCopy— callback receives aClipboardItemon the async path (return a replacement to override) or aDataTransferon the execCommand fallback path.options.fallbackToPrompt— opt-inwindow.prompt()fallback for non-secure contexts.tsup:dist/index.mjs,dist/index.cjs,dist/index.global.js(IIFE), with a properexportsfield andsideEffects: false.index.d.mts) and CJS (index.d.ts) consumers.navigator.userAgentData?.platformwith a userAgent regex fallback (fixes #123).console.warnemitted in debug mode when falling back from a non-secure context.❤️ Contributors
Configuration
📅 Schedule: (in timezone Europe/London)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.