Skip to content

Releases: lgarron/clipboard-polyfill

v4.1.0

24 Apr 09:42
Compare
Choose a tag to compare

Release notes:

  • Fix an issue where the contents of a NotAllowedError could be copied when
    • navigator.clipboard.writeText(…) fails, but
    • a further fallback succeeds.

See #167 for more information.

v4.0.2

07 Jan 07:39
Compare
Choose a tag to compare

Release notes:

v4.0.1

06 Sep 22:27
Compare
Choose a tag to compare

Release notes:

  • Add checks when accessing expected global objects, in order to throw better error messages.

v4.0.0

03 Feb 07:13
Compare
Choose a tag to compare
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

07 Jan 05:33
Compare
Choose a tag to compare
Release notes:

- Include source maps in the published package.

v4.0.0-rc7

07 Jan 02:11
Compare
Choose a tag to compare
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

06 Jan 22:55
Compare
Choose a tag to compare
Release notes:

- Fix compatibility with bundlers by setting the `"main"` field in `package.json`.

v4.0.0-rc5

06 Jan 13:51
Compare
Choose a tag to compare
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

06 Jan 12:02
Compare
Choose a tag to compare
Release notes:

- Ensure that all callable functions resolve or reject.
- Fix Internet Explorer compatibility bugs.

v4.0.0-rc3

05 Jan 09:08
Compare
Choose a tag to compare
Release notes:

- `writeText()`: Try the fallback if `navigator.clipboard.writeText()` fails.