Noteworthy changes
- closed the oldest issue, issue #4, covered it with a specific test case
- recomissioned chai. it must be v4 since it's a commonsjs project. more info here.
- CI/CD still broken, but if i self-host maybe i can get it working! time to homelab again!
- acquired an [raxda rock 3c][https://radxa.com/products/rock3/3c/] so i can test on real hardware again. my rasp collection is aging and isn't reliable anymore.
- did a fedora38 virtual machine and to my happy surprise this version has the gpio-sim kernel module built and offers libgpiod 1.6.4! best of two worlds.
- github CI remains unable to run testsuite sadly, tweaked the yaml script to use a fedora 38 container but it's just not the same thing.
- on the plus side, thanks to the working gpio-sim on my dev environment i could finally cover everything already implemented quite fast. time to look at the issues and missing functions, notably bulk and watch operations.
- 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. There is [gpiomock][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 correctly.
- 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 macs or Windows 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