Skip to content

v4.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 03 Feb 07:13
v4.0.0 — Maintenance mode

Release notes:

- `clipboard-polyfill` is entering maintenance mode. I do not expect to add new features, and most modern projects will no longer need this library. Thanks for filing issues documenting remaining use cases: https:/lgarron/clipboard-polyfill#%EF%B8%8F-you-dont-need-clipboard-polyfill-to-copy-text-%EF%B8%8F
- The build system has been overhauled to use `esbuild`. I've tested compatibility all the way back to IE10, and this will hopefully make the project more maintainable in the future. Please let me know if if you encounter any compatibility issues.
- `writeText(…)` now tries more fallbacks even if the `navigator.clipboard.writeText(…)` API is available. This should succeed in some environments where permissions are not consistently enforced.
- We no longer publish minified and/or CommonJS builds. If you need these, see: https:/lgarron/clipboard-polyfill#bundling--tree-shaking--minification--commonjs
- The main build uses ESM with module splitting, so there is no longer a text-only build. Please import `writeText(…)` from `clipboard-polyfill` directly. For a tree-shaken text-only build, also see: https:/lgarron/clipboard-polyfill#bundling--tree-shaking--minification--commonjs