Skip to content

fix(title): fix copying on WSL 2 by bumping clipboardy version - #64

Closed
bryan-hoang wants to merge 2 commits into
vercel:mainfrom
bryan-hoang:main
Closed

bryan-hoang wants to merge 2 commits into
vercel:mainfrom
bryan-hoang:main

Conversation

@bryan-hoang

Copy link
Copy Markdown
Contributor

Commit message

In this PR, support for WSL was added in clipboardy v2.3.0. Since WSL
support for title would be nice, clipboardy's version was increased
from 1.2.2 to 3.0.0.

Because clipboardy is now an ES module, the method of importing it had
to change to use the import function rather than require.

Additional information

After testing locally in WSl 2, I've confirmed that the changes does enable auto-copying on WSL to function as described. When I ran the tests, they all passed. Albeit, it was on Node v17.0.1.

There is no engines field in the package.json file specifying the node version, so I'm unsure if this PR would count as a breaking change to using import.

Please let me know of any changes I should make!

In [this PR](sindresorhus/clipboardy#59),
support for WSL was added in `clipboardy` v2.3.0. Since WSL
support for `title` would be nice, `clipboardy`'s version was increased
from 1.2.2 to 3.0.0.

Because `clipboardy` is now an ES module, the method of importing it had
to change to use the `import` function rather than `require`.
@leerob

leerob commented Feb 12, 2022 •

Copy link
Copy Markdown
Contributor

Are you interested in tackling #69?

@bryan-hoang

bryan-hoang commented Feb 14, 2022 •

Copy link
Copy Markdown
Contributor Author

Are you interested in tackling #69?

After reading through the ticket and the linked gist, I would say I'm interested in trying to address it!

@leerob

leerob commented Feb 16, 2022

Copy link
Copy Markdown
Contributor

Awesome, yeah I figured I'd mention that since it's related to this PR.

@vaudy

vaudy commented Feb 7, 2023

Copy link
Copy Markdown

it would be nice to have this fix since it also fix vulnerabilities issue for using exec 0.8.0

@bryan-hoang

Copy link
Copy Markdown
Contributor Author

It looks like project now uses pnpm to manage the dependencies, making this PR obsolete. I do want to take a stab at #69 like I promised to, so I'll close this PR and reopen another one that aims to address #69 as well as the dependency issue for clipboardy.

@bryan-hoang

Copy link
Copy Markdown
Contributor Author

#83 includes updating clipboardy to v3.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants