Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from
Closed

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

wants to merge 2 commits into from

Conversation

bryan-hoang
Copy link
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
Copy link
Member

leerob commented Feb 12, 2022

Are you interested in tackling #69?

@bryan-hoang
Copy link
Contributor Author

bryan-hoang commented Feb 14, 2022

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
Copy link
Member

leerob commented Feb 16, 2022

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

@vaudy
Copy link

vaudy commented Feb 7, 2023

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

@bryan-hoang
Copy link
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
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