copy-text-to-clipboard

Copy text to the clipboard in modern browsers (0.2 kB)

MIT License

Downloads
1.6M
Stars
972
Committers
11

Bot releases are visible (Hide)

copy-text-to-clipboard - Latest Release

Published by sindresorhus over 1 year ago

  • Properly export TypeScript types in package.json (#51) dfd2874
    • They were already implicitly exported by being named index.d.ts, but this makes it proper.

https://github.com/sindresorhus/copy-text-to-clipboard/compare/v3.1.0...v3.2.0

copy-text-to-clipboard -

Published by sindresorhus over 1 year ago

copy-text-to-clipboard -

Published by sindresorhus over 3 years ago

  • Add missing options to type declaration (#42) e93424a

https://github.com/sindresorhus/copy-text-to-clipboard/compare/v3.0.0...v3.0.1

copy-text-to-clipboard -

Published by sindresorhus over 3 years ago

Breaking

  • This package is now pure ESM
    • This means you need to use import copy from 'copy-text-to-clipboard' instead of const copy = require('copy-text-to-clipboard').
    • I would recommend moving to ESM. ESM can still import CommonJS packages, but CommonJS cannot import ESM packages synchronously.
    • If you cannot move to ESM yet, don't upgrade to this version.

https://github.com/sindresorhus/copy-text-to-clipboard/compare/v2.2.0...v3.0.0

copy-text-to-clipboard -

Published by sindresorhus over 4 years ago

copy-text-to-clipboard -

Published by sindresorhus about 5 years ago

  • Return focus to previously focused element after copying (#30) bf384f6

https://github.com/sindresorhus/copy-text-to-clipboard/compare/v2.1.0...v2.1.1

copy-text-to-clipboard -

Published by sindresorhus over 5 years ago

  • Refactor TypeScript definition to CommonJS compatible export (#26) 27ce0b6

https://github.com/sindresorhus/copy-text-to-clipboard/compare/v2.0.0...v2.1.0