Releases: lgarron/clipboard-polyfill
Releases · lgarron/clipboard-polyfill
v4.1.0
v4.0.2
Release notes:
- Convert array iterator
for
loops to index iteration.- This avoids conflicts with additional methods defined on the
Array
prototype. It is generally not good practice to modify global prototypes with new methods (and if you do, you should make sure they are not enumerable: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty#enumerable), but this should reduce the chance of conflict when you are usingclipboard-polyfill
.
- This avoids conflicts with additional methods defined on the
v4.0.1
Release notes:
- Add checks when accessing expected global objects, in order to throw better error messages.
v4.0.0
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://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
v4.0.0-rc8
Release notes: - Include source maps in the published package.
v4.0.0-rc7
Release notes: - Remove the `clipboard-polyfill/text` build. Please import from `clipboard-polyfill` instead. If you want a tree shaken build, please see: https://github.com/lgarron/clipboard-polyfill#bundling--tree-shaking--minification--commonjs
v4.0.0-rc6
Release notes: - Fix compatibility with bundlers by setting the `"main"` field in `package.json`.
v4.0.0-rc5
Release notes: - Fix a bug with `read()` fallback to `readText()`. - Allow `window` to be missing when getting a reference the `Promise` constructor.
v4.0.0-rc4
Release notes: - Ensure that all callable functions resolve or reject. - Fix Internet Explorer compatibility bugs.
v4.0.0-rc3
Release notes: - `writeText()`: Try the fallback if `navigator.clipboard.writeText()` fails.