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

Renamed restricted keyword parameter #338

Merged
merged 1 commit into from
Apr 10, 2019
Merged

Conversation

jacktuck
Copy link
Contributor

Using a restricted keyword is considered bad practice and also causes an issue In Terser:

ERROR in handlers/versions/activate-version.js from Terser
Unexpected token: operator (=) [./node_modules/kafkajs/src/producer/eosManager/transactionStateMachine.js:16,34][handlers/versions/activate-version.js:48083,54]

I created an issue on Terser project too but perhaps they handle it correctly already.
terser/terser#329

Using a restricted keyword is considered bad practice and also causes an issue In [Terser](https://github.com/terser-js/terser):

```
ERROR in handlers/versions/activate-version.js from Terser
Unexpected token: operator (=) [./node_modules/kafkajs/src/producer/eosManager/transactionStateMachine.js:16,34][handlers/versions/activate-version.js:48083,54]
```
@Nevon
Copy link
Collaborator

Nevon commented Apr 10, 2019

Thanks for the contribution! I'm quite confident that this is a bug in terser, as async is not a reserved keyword, but we can make this change regardless as a workaround.

@jacktuck
Copy link
Contributor Author

@Nevon Thanks for the quick reply! Having this workaround merged would be great as I'm currently using my Fork.

@Nevon Nevon merged commit 77a7e03 into tulios:master Apr 10, 2019
@jacktuck
Copy link
Contributor Author

Thanks so much for the merge. Would it be possible to get an npm release as well? :)

@Nevon
Copy link
Collaborator

Nevon commented Apr 11, 2019

Since we have some other unreleased changes in master I would like to first run master in production for a little while, but we should be able to cut a new version pretty soon. For now, you could pin your dependency to 77a7e03 if you want to help test it out.

@Nevon
Copy link
Collaborator

Nevon commented Apr 12, 2019

@jacktuck v1.7.0 is out, including your fix!

@jacktuck jacktuck deleted the patch-1 branch August 19, 2019 22:44
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