Skip to content

fix(deps): update dependency copy-to-clipboard to v4#484

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

fix(deps): update dependency copy-to-clipboard to v4#484
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 27, 2026

This PR contains the following updates:

Package Change Age Confidence
copy-to-clipboard ^3.3.3^4.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.

@xrgzs
Copy link
Copy Markdown
Member

xrgzs commented Apr 27, 2026

跨度有点大,需要代码审计

@renovate renovate Bot force-pushed the renovate/copy-to-clipboard-4.x branch from 64e8701 to 965595b Compare April 29, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant