Commit 2ffb9d6
fs: drop duplicate API in promises mode
This drops exporting duplicate methods that accept FileHandle as the
first argument (to mirror callback-based methods accepting 'fd').
Those methods were not adding actual value to the API because all of
those are already present as FileHandle methods, and they would
probably be confusing to the new users and making docs harder to read.
Also, the API was a bit inconsistent and lacked .close(handle).
Fixes: #20548
PR-URL: #20559
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Backport-PR-URL: #211721 parent a5c5714 commit 2ffb9d6Copy full SHA for 2ffb9d6
File tree
Expand file treeCollapse file tree
4 files changed
+8
-214
lines changedOpen diff view settings
Filter options
- benchmark/fs
- doc/api
- lib/internal/fs
- test/parallel
Expand file treeCollapse file tree
4 files changed
+8
-214
lines changedOpen diff view settings
Collapse file
benchmark/fs/bench-stat-promise.js
Copy file name to clipboardExpand all lines: benchmark/fs/bench-stat-promise.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
13 | | - |
| 12 | + |
| 13 | + |
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
| 17 | + |
18 | 18 | |
19 | 19 | |
20 | 20 | |
|
Collapse file
-184Lines changed: 0 additions & 184 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3800 | 3800 | |
3801 | 3801 | |
3802 | 3802 | |
3803 | | - |
3804 | | - |
3805 | | - |
3806 | | - |
3807 | | - |
3808 | | - |
3809 | | - |
3810 | | - |
3811 | | - |
3812 | | - |
3813 | | - |
3814 | | - |
3815 | | - |
3816 | | - |
3817 | | - |
3818 | | - |
3819 | | - |
3820 | | - |
3821 | | - |
3822 | | - |
3823 | | - |
3824 | | - |
3825 | | - |
3826 | | - |
3827 | | - |
3828 | | - |
3829 | | - |
3830 | | - |
3831 | | - |
3832 | | - |
3833 | | - |
3834 | | - |
3835 | | - |
3836 | | - |
3837 | | - |
3838 | | - |
3839 | | - |
3840 | | - |
3841 | | - |
3842 | | - |
3843 | | - |
3844 | | - |
3845 | | - |
3846 | | - |
3847 | | - |
3848 | | - |
3849 | | - |
3850 | | - |
3851 | | - |
3852 | | - |
3853 | | - |
3854 | | - |
3855 | | - |
3856 | | - |
3857 | | - |
3858 | | - |
3859 | | - |
3860 | | - |
3861 | | - |
3862 | | - |
3863 | | - |
3864 | | - |
3865 | | - |
3866 | | - |
3867 | | - |
3868 | | - |
3869 | | - |
3870 | | - |
3871 | | - |
3872 | | - |
3873 | | - |
3874 | | - |
3875 | | - |
3876 | | - |
3877 | | - |
3878 | | - |
3879 | | - |
3880 | | - |
3881 | | - |
3882 | | - |
3883 | | - |
3884 | | - |
3885 | | - |
3886 | | - |
3887 | | - |
3888 | | - |
3889 | | - |
3890 | | - |
3891 | | - |
3892 | | - |
3893 | | - |
3894 | | - |
3895 | | - |
3896 | | - |
3897 | | - |
3898 | | - |
3899 | | - |
3900 | | - |
3901 | | - |
3902 | | - |
3903 | | - |
3904 | | - |
3905 | | - |
3906 | | - |
3907 | | - |
3908 | | - |
3909 | | - |
3910 | | - |
3911 | | - |
3912 | | - |
3913 | | - |
3914 | | - |
3915 | | - |
3916 | | - |
3917 | | - |
3918 | | - |
3919 | | - |
3920 | | - |
3921 | | - |
3922 | | - |
3923 | | - |
3924 | | - |
3925 | 3803 | |
3926 | 3804 | |
3927 | 3805 | |
| ||
4030 | 3908 | |
4031 | 3909 | |
4032 | 3910 | |
4033 | | - |
4034 | | - |
4035 | | - |
4036 | | - |
4037 | | - |
4038 | | - |
4039 | | - |
4040 | | - |
4041 | | - |
4042 | | - |
4043 | | - |
4044 | | - |
4045 | | - |
4046 | | - |
4047 | | - |
4048 | | - |
4049 | | - |
4050 | | - |
4051 | | - |
4052 | | - |
4053 | | - |
4054 | | - |
4055 | | - |
4056 | | - |
4057 | | - |
4058 | | - |
4059 | | - |
4060 | | - |
4061 | | - |
4062 | 3911 | |
4063 | 3912 | |
4064 | 3913 | |
| ||
4243 | 4092 | |
4244 | 4093 | |
4245 | 4094 | |
4246 | | - |
4247 | | - |
4248 | | - |
4249 | | - |
4250 | | - |
4251 | | - |
4252 | | - |
4253 | | - |
4254 | | - |
4255 | | - |
4256 | | - |
4257 | | - |
4258 | | - |
4259 | | - |
4260 | | - |
4261 | | - |
4262 | | - |
4263 | | - |
4264 | | - |
4265 | | - |
4266 | | - |
4267 | | - |
4268 | | - |
4269 | | - |
4270 | | - |
4271 | | - |
4272 | | - |
4273 | | - |
4274 | | - |
4275 | | - |
4276 | | - |
4277 | | - |
4278 | | - |
4279 | 4095 | |
4280 | 4096 | |
4281 | 4097 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js-9Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
466 | 466 | |
467 | 467 | |
468 | 468 | |
469 | | - |
470 | | - |
471 | 469 | |
472 | 470 | |
473 | | - |
474 | 471 | |
475 | | - |
476 | | - |
477 | 472 | |
478 | 473 | |
479 | 474 | |
480 | 475 | |
481 | | - |
482 | 476 | |
483 | 477 | |
484 | 478 | |
485 | 479 | |
486 | | - |
487 | 480 | |
488 | 481 | |
489 | 482 | |
490 | | - |
491 | 483 | |
492 | 484 | |
493 | | - |
494 | 485 | |
495 | 486 | |
496 | 487 | |
|
Collapse file
test/parallel/test-fs-promises.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-promises.js+5-18Lines changed: 5 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | 14 | |
21 | 15 | |
22 | 16 | |
23 | 17 | |
24 | 18 | |
25 | 19 | |
26 | | - |
27 | 20 | |
28 | 21 | |
29 | 22 | |
30 | 23 | |
31 | 24 | |
32 | 25 | |
33 | 26 | |
34 | | - |
35 | 27 | |
36 | 28 | |
37 | 29 | |
| ||
75 | 67 | |
76 | 68 | |
77 | 69 | |
78 | | - |
| 70 | + |
79 | 71 | |
80 | 72 | |
81 | 73 | |
82 | | - |
| 74 | + |
83 | 75 | |
84 | | - |
| 76 | + |
85 | 77 | |
86 | 78 | |
87 | 79 | |
| ||
91 | 83 | |
92 | 84 | |
93 | 85 | |
94 | | - |
95 | 86 | |
96 | | - |
97 | 87 | |
98 | 88 | |
99 | 89 | |
100 | 90 | |
101 | | - |
102 | | - |
| 91 | + |
| 92 | + |
103 | 93 | |
104 | 94 | |
105 | 95 | |
| ||
111 | 101 | |
112 | 102 | |
113 | 103 | |
114 | | - |
115 | 104 | |
116 | 105 | |
117 | 106 | |
118 | 107 | |
119 | | - |
120 | 108 | |
121 | 109 | |
122 | 110 | |
123 | 111 | |
124 | 112 | |
125 | | - |
126 | 113 | |
127 | 114 | |
128 | 115 | |
|
0 commit comments