Skip to content

chore(deps): update dependency copy-to-clipboard to v4#2944

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

chore(deps): update dependency copy-to-clipboard to v4#2944
renovate[bot] wants to merge 1 commit intodevelopfrom
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.0 age confidence

Release Notes

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

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: (in timezone 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 dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 24, 2026
@renovate renovate Bot requested a review from a team as a code owner April 24, 2026 16:31
@cypress
Copy link
Copy Markdown

cypress Bot commented Apr 24, 2026

seerr    Run #3422

Run Properties:  status check passed Passed #3422  •  git commit 22c343d0b6: chore(deps): update dependency copy-to-clipboard to v4
Project seerr
Branch Review renovate/copy-to-clipboard-4.x
Run status status check passed Passed #3422
Run duration 02m 20s
Commit git commit 22c343d0b6: chore(deps): update dependency copy-to-clipboard to v4
Committer renovate[bot]
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 32
View all changes introduced in this branch ↗︎

@renovate renovate Bot force-pushed the renovate/copy-to-clipboard-4.x branch from 806d2b7 to 15c2e4d Compare April 27, 2026 16:07
gauthier-th
gauthier-th previously approved these changes Apr 27, 2026
@seerr-automation-bot seerr-automation-bot added this to the v3.3.0 milestone Apr 27, 2026
@renovate renovate Bot force-pushed the renovate/copy-to-clipboard-4.x branch from 15c2e4d to ad12f92 Compare April 28, 2026 23:07
@renovate renovate Bot force-pushed the renovate/copy-to-clipboard-4.x branch from ad12f92 to 22c343d Compare April 29, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants