Commit graph

5 commits

Author SHA1 Message Date
avsdev-cw
41e8275aaa
Fallback to ID_USB_* (#116) 2023-07-14 18:05:48 +01:00
Francis Gulotta
27c1685158
chore: update mock binding and readline (#30) 2022-02-03 18:30:00 -05:00
Francis Gulotta
7f3226291a
chore: update to @serialport/bindings-interface (#21) 2022-01-30 23:04:06 -05:00
Francis Gulotta
cf03d6ddd1
feat: new binding interface (#19)
- We now only return a port object if it's open and list and open methods are now exported on an interface
- hardware tests now work and only require a loopback (no ready event)
- Test pass on darwin (not on mock - it's not up to date yet and coverage is going to drop)
- cleanup up tests with modern javascript
- Breaking - change the names of the exported types
- No more constructors, now all binding specicific open options are specificd on open
- Arduino test file for loopback
2022-01-29 22:51:40 -05:00
Francis Gulotta
2a93f48ee6
feat: migrate to typescript (#3)
This change migrates to typescript. The tests have been modified to conform to typescript and to cleanup cases when they weren't actually working (only one or two cases).

I've defined the existing bindings interface for all platforms. There are changes I'd love to make but didn't here (update/set/get/getBaudRate etc are messy). This should in theory be a drop in for the existing bindings. If there are bugs I imagine they're type related not functionality.

I dropped abstract bindings as having it a separate package didn't make sense during the refactor. I'd like to iterate on the design a bit more before returning to that class. Mockbinding may also now be drifted slightly from this package. I'll clean those inconsistencies up when I upgrade the main repo.
2022-01-22 15:55:03 -05:00