Skip to content

Comments

update deprecated API patterns in sync with serialport 4.x#43

Open
noopkat wants to merge 2 commits intogarrows:masterfrom
noopkat:api-updates
Open

update deprecated API patterns in sync with serialport 4.x#43
noopkat wants to merge 2 commits intogarrows:masterfrom
noopkat:api-updates

Conversation

@noopkat
Copy link

@noopkat noopkat commented Jul 17, 2016

👋 Hello!

I'm opening this pull request to sync up some API differences that have occured between browser-serialport and node-serialport.

For some background on why it'd be great to keep them in sync:

@monteslu opened this rad pull request on one of my libraries: noopkat/avrgirl-arduino#78

I would love to merge it, however my library uses the latest version of node-serialport, so this would call the wrong things in browser-serialport when it's packaged up for web use.

Thanks for this awesome library - this is really helpful to a lot of folks in the nodebots community 💓

@monteslu
Copy link
Contributor

👍

Also, these changes likely mean I'll be able to use avr109/leonardo on avrgirl from a browser :)

@reconbot
Copy link

This is the major change. 👍 to that. The other major one is in the constructer. We now always throw errors during construction. The callback is now called openCallback and given to .open if autoOpen is the boolean true.

Added isOpen() method to improve compatibility with node-serialport.
@monteslu
Copy link
Contributor

@reconbot let's get @noopkat 's fork into the nodebots org. I can help maintain it from there

@monteslu
Copy link
Contributor

@reconbot or the serialport org. can't remember where we ended up on orgs after the j5 summit :)

@reconbot
Copy link

reconbot commented Sep 30, 2018 via email

@monteslu
Copy link
Contributor

@garrows will initiate the transfer of this one to serialport, and we can merge this when it gets there

@reconbot
Copy link

reconbot commented Oct 1, 2018

@garrows this makes you serialport maintainer, you should have permission to transfer the repo

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.

4 participants