Update dependency copy-to-clipboard to v4 - autoclosed#1750
Closed
renovate[bot] wants to merge 1 commit intomainfrom
Closed
Update dependency copy-to-clipboard to v4 - autoclosed#1750renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
360caed to
909cf2f
Compare
909cf2f to
6ca14d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.3.3→4.0.2Release 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: (UTC)
🚦 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.