Skip to content

Releases: sudodoki/copy-to-clipboard

v3.0.4

10 Jul 09:39
Compare
Choose a tag to compare

Fixes:

  • #40 by @nkbt fixing server-side rendering

Enhancement:

  • #41 b @mariusandra providing return value true/false depending on whether modern method succeeded or not

Docs:

  • Added note on Safari 8 and prompt. (Maybe, should add workaround with selection & 'press cmd+c' tooltip or similar instead of prompt/)
  • Updated API regarding return value.

v3.0.3

05 Jul 09:39
Compare
Choose a tag to compare

Testing

Added e2e testing running on saucelabs, which worked for, like, 2 weeks (not long enough to see this release).
There're issues with chrome-driver not supporting keyboard events on mac
There's issue with pasting multiline text with tags in different browsers having extra newline in some browsers.
Would appreciate help fixing this up. There's need to include geckodriver now to run test in default FF browser + figure out whether we can use applescript similar to following snippet

const applescript = require('applescript');
const script = 'tell application "Chrome"\n' +
  'activate\n' +
  'tell application "System Events"\n' +
    'keystroke "v" using {command down}\n' +
'end tell\n' +
'end tell';

on Saucelabs

Other fixes

  • Fix for the case when body has user-select: none styles - it doesn't inherit it. Thanks to @shvaikalesh
  • Feature – message option passed to copy would have #{key} interpolated corresponding platform key (⌘+C for macOS/iOS, Ctrl+C otherwise). Thanks to @shvaikalesh yet again for this one.

v3.0.2

02 Jun 09:29
Compare
Choose a tag to compare

Hotfixing issue with Chrome not working via 7e10898 supposedly

v3.0.1

31 May 13:41
Compare
Choose a tag to compare

3.0.0

09 May 07:42
Compare
Choose a tag to compare

Removing options.cb option.

2.1.0

07 May 19:18
Compare
Choose a tag to compare
  • Added options.cb: callback to be executed after copy #22.
  • Added Mac OS detection to set prompt to 'Press ⌘+C…' #24

2.0.0

10 Feb 23:15
Compare
Choose a tag to compare
  • Added options: debug (console.error is surpassed by default) and promprt (to specify string in prompt - default is 'Copy to clipboard: Ctrl+C, Enter'). Contribution by @evenchange4
  • Switched back to using textContent to work around issues with trying to copy content that needed escaping, but preserving newline to be able to copy multiline text. Idea by @shvaikalesh