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

Meta tweaks #11

Merged
merged 3 commits into from Mar 20, 2023
Merged

Conversation

tommy-mitchell
Copy link
Contributor

@tommy-mitchell tommy-mitchell commented Mar 20, 2023

Closes #6. Figured I'd go ahead and do this if I had to fork the repo anyway for #10.

@tommy-mitchell tommy-mitchell mentioned this pull request Mar 20, 2023
@tommy-mitchell
Copy link
Contributor Author

CI fails on this and #12 for Node 12 due to meow:

file:///home/runner/work/trim-newlines/trim-newlines/node_modules/xo/node_modules/meow/index.js:85
			flag.default = flag.default ?? [];
			                             ^

SyntaxError: Unexpected token '?'

@sindresorhus sindresorhus merged commit 40cd948 into sindresorhus:main Mar 20, 2023
3 checks passed
@sindresorhus
Copy link
Owner

sindresorhus commented Mar 20, 2023

Just a note for the future: The PR title is not very useful. This PR contains breaking changes and the title should have reflected that. 👍

```js
import trimNewlines from 'trim-newlines';

trimNewlines.end('\n🦄\r\n');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this too, but you forgot to update the docs (already done in main branch now).

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.

Use named exports instead
2 participants