Skip to content

Commit

Permalink
v4.0.0 — Maintenance mode
Browse files Browse the repository at this point in the history
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://github.com/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://github.com/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://github.com/lgarron/clipboard-polyfill#bundling--tree-shaking--minification--commonjs
  • Loading branch information
lgarron committed Feb 3, 2023
1 parent 2fb9c56 commit c24845e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clipboard-polyfill",
"version": "4.0.0-rc8",
"version": "4.0.0",
"description": "A polyfill for the asynchronous clipboard API",
"type": "module",
"devDependencies": {
Expand Down

0 comments on commit c24845e

Please sign in to comment.