Noteworthy changes
- added a more expressive message in exceptions, bubbling the errno value in message of thrown exception, many thanks to @splitice
- adding compile flag so the wrapper work again with older libgpiod versions. thanks @alejandroclaro and @splitice for the report, guidance and time.
- working on docs to make people aware of api breaking even inside 1.x series of libgpiod.
- working on script to simulate mockup somehow
- adding LineFlags definitions contributed by @d-beamon into index.d.ts
- merging a performance improvement contributed by @alessandromrc
- got a good direction on how to use the gpiod-sim #24
- Finally branched main into two distinct heads
- Prepared a new virtual machine to be able to work with 1.x series
- Still looking for a way to test the native part properly. Thre is gpiomock but i can't find it built on any distro i tried (opensuse/fedora). for 2.x there is gpio-sim, IF i figure out how to use it.
- This same log entry on main-2x will be different.
- added new
Pin(n)
as a syntax sugar to get a newLine(n)
fromChip(0)
. - put the workflow to run tests but mostly are ignored for the moment. i am looking for a proper way to simulate a chip.
- Merged PR #12 from @khill-fbmc fixing errors in index.d.ts
- Some dependency version bumps, it compiles again under node 18.
- Added GitHub Action to ease release process
I'll try to streamline more the changes we receive, let me know if anything needs immediate attention.
- Added Chip::getNumberOfLines which returns the number of available GPIO lines on the chip
- Added Chip::getChipName which returns chip's name as represented by the kernel
- Added Chip::getChipLabel which returns chip's label as represented by the kernel
- Added Line::getLineOffset which returns line's offset number
- Added Line::getLineName which returns line's name, if set, otherwise undefined
- Added Line::getLineConsumer which returns line's consumer, if set, otherwise undefined
- Extended the Typescript .d.ts file with the new methods and added jsdoc comments
- Added a condition in the binding.gyp to prevent builds on non-Linux environments (aka development machines)
Fix for double line instantiation on same process contributed by dmitrydvorkin
created the changelog file so we can properly track changes and contributions
Fixed argument index of consumer name on requestInputMode by noctarius
code fix and type definitions contributed by noctarius
first really usable version. present on node-libgpiod-examples
initial release on npm