feat: support bigint option in fs.stat, fs.lstat, and fs.fstat - #325
Conversation
|
fillStatsArray needs to be updated to support bigint too. |
|
There is one more stat array in fs binding: |
|
Since nodejs v10.0.0, the internal return of binding.stat/lstat/fstat are now Float64Array or BigUint64Array. The old nodejs returns a Stats object with properties like I am trying to make it work for both old and new nodejs. The implementation might work (I have not tested enough), but there are tons of test code needs two copies (one for old, and one for new). Since nodejs v10.0.0 is already EOL, @tschaub should we consider for a major version upgrade to target only nodejs v12+? The benefits are:
|
Sounds like a good plan. |
closes #321 BREAKING CHANGE: drop support of Nodejs before v12.0.0
|
The added code are for test. |
|
I will get a win10 box to test the NaN uid/gid thing. |
|
GitHub actions still wants to see nodejs 6/8/10 results. I don't know how to remove them in the checks. Windows now uses 0 for uid and gid, not NaN anymore (this is probably a change in nodejs v10.0.0 when stats is a Float64Array internally). |
|
@tschaub I will do a small cleanup of uid/gid for Windows soon. It's unnecessary to use NaN internally in our code. |
|
|
|
@tschaub can you release v5.0.0? |
closes #321
BREAKING CHANGE: drop support of Nodejs before v12.0.0