Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
24b927a
build: allow clang 10+ in configure.py
krytarowski Sep 13, 2019
145dcc2
build: move doc versions JSON file out of out/doc
richardlau Apr 8, 2020
5436569
test: flaky test-stdout-close-catch on freebsd
sam-github Apr 14, 2020
9915774
build: log detected compilers in --verbose mode
richardlau Apr 8, 2020
89a306b
deps: fix V8 compiler error with clang++-11
sam-github Apr 27, 2020
3acc89f
deps: V8: backport cd21f71f9cb5
targos Jun 13, 2020
aaf2f82
inspector: more conservative minimum stack size
bnoordhuis May 24, 2019
ef9413b
deps: upgrade openssl sources to 1.1.1f
hassaanp Mar 31, 2020
94702c1
deps: upgrade openssl sources to 1.1.1g
hassaanp Apr 21, 2020
745b329
deps: update archs files for OpenSSL-1.1.1g
hassaanp Apr 21, 2020
74b00cc
tls: allow empty subject even with altNames defined
jasonmacgowan Sep 17, 2018
193d1d0
doc: document fs.watchFile() bigint option
cjihrig Mar 6, 2020
3dbd8cd
Revert "test: mark empty udp tests flaky on OS X"
lpinca Mar 25, 2020
961598b
n-api: add `napi_detach_arraybuffer`
legendecas Apr 25, 2020
b744ffd
n-api: implement napi_is_detached_arraybuffer
lundibundi Nov 23, 2019
5dab101
doc,n-api: mark napi_detach_arraybuffer as experimental
legendecas Nov 28, 2019
069b6e1
http: disable headersTimeout check when set to zero
ShogunPanda Apr 29, 2020
84fca3c
deps: upgrade npm to 6.14.5
ruyadorno May 4, 2020
97b5952
deps: upgrade npm to 6.14.6
claudiahdz Jul 7, 2020
7a109fe
test: remove timers-blocking-callback
Fishrock123 Apr 15, 2020
00f04e3
doc: fix quotes in tls.md
sparsh-99 May 29, 2020
c5215d0
2020-07-21, Version 10.22.0 'Dubnium' (LTS)
richardlau Jul 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: document fs.watchFile() bigint option
This commit documents the bigint option to fs.watchFile(), which
has been supported since v10.5.0.

PR-URL: #32128
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
cjihrig authored and richardlau committed Jul 1, 2020
commit 193d1d0e84132a84f509996607c94ef6bfe85a63
7 changes: 6 additions & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3369,6 +3369,9 @@ fs.watch('somedir', (eventType, filename) => {
<!-- YAML
added: v0.1.31
changes:
- version: v10.5.0
pr-url: https://github.com/nodejs/node/pull/20220
description: The `bigint` option is now supported.
- version: v7.6.0
pr-url: https://github.com/nodejs/node/pull/10739
description: The `filename` parameter can be a WHATWG `URL` object using
Expand All @@ -3377,6 +3380,7 @@ changes:

* `filename` {string|Buffer|URL}
* `options` {Object}
* `bigint` {boolean} **Default:** `false`
* `persistent` {boolean} **Default:** `true`
* `interval` {integer} **Default:** `5007`
* `listener` {Function}
Expand All @@ -3402,7 +3406,8 @@ fs.watchFile('message.text', (curr, prev) => {
});
```

These stat objects are instances of `fs.Stat`.
These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`,
the numeric values in these objects are specified as `BigInt`s.

To be notified when the file was modified, not just accessed, it is necessary
to compare `curr.mtime` and `prev.mtime`.
Expand Down