Skip to content

Update flow-remove-types #10

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

unscriptable
Copy link

rollup-plugin-flow fails on some new flow syntax. Specifically, it fails on explicit inexact object type syntax (ellipsis in property definitions). Updating to a more recent version of flow-remove-types fixes the issue.

Note: flow-remove-types version 2.120.1 fails on basic class syntax. Seems like that version is not ready for production, yet. Version 2.119.1 works on the updated tests and on our source code.

- New explicit inext object syntax
- Test fails: Syntax error
- Most recent (2.120.1) seems to fail on basic class syntax, so opted 
for 2.119.1
@unscriptable unscriptable changed the title Update flow remove types Update flow-remove-types Mar 7, 2020
@unscriptable
Copy link
Author

unscriptable commented Mar 7, 2020

From the Travis log, it looks like flow-remove-types uses syntax that node 7.x doesn't understand.

Any thoughts on how to resolve this? We'd really love to keep using this awesome plugin. Perhaps:

  1. Update the major version in this plugin's package.json to 2.x
  2. Update the README to inform users that version 2.x no longer works with older versions of node (lower than node 8.x?)
  3. Update the Travis env to run node 8, 10, and 12.

@unscriptable
Copy link
Author

Hey @leebyron. Any guidance on this issue? Thanks!

@leebyron
Copy link
Owner

leebyron commented Apr 8, 2020

Sorry for missing your message above. I think the plan as you outlined it makes sense. Want to include those changes in this PR?

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.

2 participants