Skip to content

Update dependency copy-to-clipboard to v4 - autoclosed#1750

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/copy-to-clipboard-4.x
Closed

Update dependency copy-to-clipboard to v4 - autoclosed#1750
renovate[bot] wants to merge 1 commit intomainfrom
renovate/copy-to-clipboard-4.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 24, 2026

This PR contains the following updates:

Package Change Age Confidence
copy-to-clipboard 3.3.34.0.2 age confidence

Release Notes

sudodoki/copy-to-clipboard (copy-to-clipboard)

v4.0.2

Compare Source

compare changes

🩹 Fixes
  • Make sure execCommand works in fullscreen (#​158)
🏡 Chore
  • Bump axios from 1.14.0 to 1.15.2 (#​155)
  • Bump follow-redirects from 1.15.11 to 1.16.0 (#​157)
  • Bump basic-ftp from 5.2.0 to 5.3.0 (#​156)
❤️ Contributors

v4.0.1

Compare Source

compare changes

🏡 Chore
  • Fix copy in modal for execCommand fallback (#​151)
  • Add changelog (#​153)
✅ Tests
  • Add e2e scenario for modal tests (#​152)
❤️ Contributors

v4.0.0

Compare Source

compare changes

⚠️ Breaking Changes
  • copy() is now async — returns Promise<boolean> instead of boolean. All call sites must be updated to await copy(...) or .then(...).
  • IE11 support dropped — window.clipboardData and all IE-specific code paths removed.
  • window.prompt() fallback is now opt-in — pass options.fallbackToPrompt: true to restore. Off by default.
  • Build output moved to dist/ — direct require('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() with ClipboardItem for rich text / HTML copying when options.format or options.onCopy is set.
  • options.format — set a custom MIME type (e.g. 'text/html') to copy formatted content; text/plain is always included alongside it.
  • options.onCopy — callback receives a ClipboardItem on the async path (return a replacement to override) or a DataTransfer on the execCommand fallback path.
  • options.fallbackToPrompt — opt-in window.prompt() fallback for non-secure contexts.
  • Dual ESM / CJS package via tsup: dist/index.mjs, dist/index.cjs, dist/index.global.js (IIFE), with a proper exports field and sideEffects: false.
  • TypeScript declarations for both ESM (index.d.mts) and CJS (index.d.ts) consumers.
  • Multi-browser local test suite with Nightwatch v3: Chrome, Firefox, Edge, and Safari — plus LambdaTest cloud CI for all four browsers.
  • Platform detection uses navigator.userAgentData?.platform with a userAgent regex fallback (fixes #​123).
  • console.warn emitted in debug mode when falling back from a non-secure context.
❤️ Contributors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the 🤖 Automatic Issues/pull requests marked with this label were generated automatically by our helper bots. label Apr 24, 2026
@renovate renovate Bot added the 🤖 Automatic Issues/pull requests marked with this label were generated automatically by our helper bots. label Apr 24, 2026
@renovate renovate Bot force-pushed the renovate/copy-to-clipboard-4.x branch from 360caed to 909cf2f Compare April 27, 2026 14:37
@renovate renovate Bot force-pushed the renovate/copy-to-clipboard-4.x branch from 909cf2f to 6ca14d4 Compare April 28, 2026 05:28
@MrBurrBurr MrBurrBurr closed this Apr 29, 2026
@renovate renovate Bot changed the title Update dependency copy-to-clipboard to v4 Update dependency copy-to-clipboard to v4 - autoclosed Apr 29, 2026
@renovate renovate Bot deleted the renovate/copy-to-clipboard-4.x branch April 29, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 Automatic Issues/pull requests marked with this label were generated automatically by our helper bots.

Development

Successfully merging this pull request may close these issues.

1 participant