Gabriele Belluardo
4da7440c62
chore: enable no-sync-fn-in-async-fn
lint rule ( #4471 )
...
* chore: enable `no-sync-fn-in-async-fn` lint rule
* revert for serveTls test
2024-03-12 11:36:10 +11:00
Asher Gomez
f9dc5644a6
fix(fs): emptyDir()
test after workspace conversion ( #4427 )
2024-03-04 18:19:00 +11:00
Asher Gomez
800b7bb729
fix(fs): expandGlob()
test after workspace conversion ( #4428 )
2024-03-04 18:18:37 +11:00
ryota2357
1e0764dc23
fix(fs/ensure_symlink): check symlink is pointing the given target ( #4371 )
2024-02-28 11:50:33 +09:00
David Sherret
ef6b95f0c7
refactor: make the code work under verbatimModuleSyntax
( #4406 )
...
* Start
* Update
* Format
* Revert deno.json change
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-27 21:57:25 +00:00
cinchen
52138c6f99
refactor(fs): prepare for noUncheckedIndexedAccess
( #4277 )
...
* refactor: fs-noUncheckedIndexedAccess
* tweak
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-07 11:08:47 +11:00
Asher Gomez
f974a22def
BREAKING(path): remove glob.ts
files ( #4259 )
2024-02-02 14:48:32 +09:00
David Luis
ad4abccb66
docs: replace markdown hyperlink syntax with {@link}
tag where necessary. ( #4253 )
...
docs: replaces markdown hyperlink syntax with `{@link}` tag when necessary.
2024-02-01 09:19:46 +11:00
Asher Gomez
845a6f8d97
refactor: use granular --unstable-*
CLI flags ( #4232 )
...
* refactor: use granular `--unstable-*` CLI flags
* tweak
2024-01-25 07:48:48 +11:00
Lino Le Van
18d6a0ee30
deprecation(path): split off all constants into their own files and deprecate old names ( #4153 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-18 14:54:39 +09:00
Anwesh
3fcb0a8b24
refactor(using): use using
keyword for Explicit Resource Management ( #4143 )
...
* refactor(using): add using keyword for Explicit Resource Management
* refactor(using): fix fmt
* refactor(using): add more fixes
* refactor(using): fix fmt
* refactor: add more `using` cases
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-15 08:35:50 +11:00
Asher Gomez
805b926032
fix: add --no-lock
to spawned process args in tests ( #4168 )
2024-01-12 13:38:41 +09:00
Yoshiya Hinosawa
4ca2baefe3
fix(fs): reduce perm requirement of ensureDir()
( #4041 )
...
Co-authored-by: Florian Schwalm <Florian.Schwalm@seven.one>
2024-01-08 22:36:41 +09:00
Asher Gomez
8e25d47451
fix(fs): fix expandGlob()
test race condition ( #4081 )
2024-01-04 22:43:58 +11:00
Lino Le Van
c46143f0ac
chore: update copyright year ( #4046 )
...
* chore: update copyright year
* fix
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
Yoshiya Hinosawa
81b19b72d0
chore(fs): log more information about test failure ( #4022 )
2023-12-28 13:45:18 +11:00
Asher Gomez
6507a76435
refactor(fs): trim internal utilities ( #4007 )
2023-12-21 18:39:51 +11:00
Asher Gomez
bdc9c84c51
refactor(fs): trim internal dependencies ( #3916 )
2023-12-10 05:16:47 +11:00
Asher Gomez
3bb97f9624
test(fs): fix expandGlob()
test assertion ( #3906 )
2023-12-07 15:04:16 +11:00
Vasu Singh
9a55a6e6e4
fix(fs): improve exists()
test coverage ( #3898 )
...
* fix(test): improve exists test coverage
* fix(test): improve exists test coverage
2023-12-06 08:07:58 +11:00
Asher Gomez
0f44bdb592
chore(fs): complete documentation ( #3897 )
2023-12-05 19:52:56 +11:00
Asher Gomez
6648b53031
BREAKIING(fs): remove EOL
enum, add OS-dependent EOL
( #3850 )
2023-11-24 19:15:58 +11:00
Jacob Avery
bc540fbf07
refactor(fs): correct test names ( #3835 )
...
* chore(fs): Update fs test descriptions
* fixes "throws" to "rejects" when appropriate
* Update fs/eol_test.ts
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-11-23 17:59:59 +11:00
Asher Gomez
1a4be18be2
BREAKING(fs): deprecate EOL
enum ( #3809 )
2023-11-16 19:40:25 +09:00
Asher Gomez
56e2bc10e0
chore: use Array.fromAsync()
where possible ( #3788 )
2023-11-11 06:00:28 +11:00
Asher Gomez
0beb3dbeea
chore: use Deno.(read/write)TextFile()
2023-11-06 14:56:59 +11:00
Simon Lecoq
dea3b33c7a
fix(fs): expandGlob
/expandGlobSync
don't require full --allow-read
perms on granted read permissions ( #3692 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-10-24 16:51:33 +09:00
Heejoon Kang
a62c90853a
feat(fs): introduce canonicalize
option to WalkOptions
( #3679 )
2023-10-16 22:32:15 +09:00
Sanjaiyan Parthipan
5b73e8b6d7
perf: improvements using Promise.all()
( #3683 )
...
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-10-12 15:16:53 +09:00
Yoshiya Hinosawa
6facda630a
refactor(_util): remove _util/os
( #3564 )
2023-08-25 18:07:43 +09:00
Lino Le Van
2b5d71224f
refactor: cleanup usage of double equals ( #3566 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-08-25 18:04:43 +09:00
Yuki Tanaka
69272080cb
docs(fs/walk): add descriptions to WalkOptions
's properties ( #3535 )
2023-08-14 18:10:17 +09:00
ud2
159060b15c
perf: repoint internal imports to single-export files ( #3537 )
2023-08-14 16:08:42 +09:00
Yoshiya Hinosawa
7ebc674854
test(fs/walk): clean up socket file after testing ( #3505 )
2023-07-27 22:09:18 +09:00
MrKleeblatt
a9eda9b9e1
feat(fs/walk): include symlink option ( #3464 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-07-27 22:07:44 +09:00
Asher Gomez
e3289ed93b
chore: parallel tests ( #3446 )
2023-07-23 17:47:21 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts
to std/assert
( #3445 )
2023-07-13 16:04:30 +09:00
Martin Fischer
a5b1d80736
chore: fix typos ( #3458 )
...
The typos were found with the typos[1] spell checker. That spell
checker will be incorporated into the CI in a followup PR.
[1]: https://github.com/crate-ci/typos
2023-06-22 01:27:37 +09:00
David Luis
2d9dd290f0
BREAKING(csv,http,path): remove deprecated APIs ( #3418 )
2023-06-01 23:13:50 +09:00
tetraphobia
c05ce92bf2
fix(fs): fix NotFound error when moving src to itself with overwrite: true ( #3289 )
2023-04-05 20:19:24 +09:00
Martin Braun
a31339e18e
feat(fs): undo deprecation of exists
and add permission and type check to it ( #2785 )
2023-03-30 14:57:40 +09:00
Lino Le Van
2a60184084
feat(fs/walk): WalkError class ( #3054 )
2023-03-29 21:07:50 +09:00
ayame113
137b40bc43
fix(fs/ensureDir): fix racy ensureDir ( #3242 )
2023-03-08 21:53:57 +09:00
ayame113
523818447c
chore(fs): refactor the test of ensureFile and ensureDir ( #3240 )
2023-03-08 21:27:10 +09:00
Lino Le Van
df73bfc067
feat(fs): add followSymlink to expandGlob ( #3093 )
2023-03-06 16:35:44 +09:00
locriacyber
69fa1e956c
fix(fs/ensure_symlink): lstat relative symlink properly ( #3216 )
2023-03-01 06:24:46 +09:00
Kamil Ogórek
b55fb2e311
fix(fs): change globstar default to true for expandGlob and expandGlobSync ( #3115 )
2023-01-17 00:26:27 +09:00
ayame113
b4239898d6
chore: update copyright header ( #3082 )
2023-01-03 19:47:44 +09:00
Lino Le Van
3001bfc431
refactor: remove unnecessary returns ( #3046 )
2022-12-24 20:13:11 +09:00
Lino Le Van
321d6bcab8
chore(fs): enable timestamp tests with copy ( #2963 )
2022-11-30 14:52:18 -05:00
Leo Kettmeir
aba5017d43
docs: reorganize docs ( #2658 )
2022-11-25 12:40:23 +01:00
Asher Gomez
b72d3eb42a
refactor: replace Deno.spawn
with Deno.Command
( #2886 )
2022-11-15 15:00:59 +09:00
Asher Gomez
792f1334fe
refactor: use _util/asserts.ts
for non-test code ( #2857 )
2022-11-10 16:28:20 +09:00
Alex Kladov
a283766895
docs(fs): remove misleading docs from fs.walk ( #2836 )
2022-11-07 18:44:04 +09:00
Nash Kabbara
2c7274741c
fix(fs/expandGlob): globstar false does not take effect ( #2571 ) ( #2779 )
2022-10-18 10:40:00 -04:00
Basti Ortiz
deef340b55
docs: add/improve JSDoc comments for various modules ( #2764 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-10-11 11:29:29 -04:00
ayame113
e6189c08e9
docs: Using absolute paths in jsdoc import statements ( #2762 )
2022-10-10 10:05:56 -04:00
Asher Gomez
12912ddc36
docs(fs): document the deprecation of exists
and existsSync
( #2730 )
2022-10-03 17:52:55 +09:00
Clemens Tolboom
6f16229865
test(fs/walk): add test for fifo file ( #1793 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-09-26 15:58:53 +09:00
Tim Reichen
2f7713a164
chore(tools): add deprecation check ( #2613 )
2022-09-15 16:06:04 +09:00
Asher Gomez
8ea6f76d60
fix(fs): ensureSymlink
works when symlink already exists ( #2642 )
2022-09-14 19:44:51 +09:00
Asher Gomez
e0e851053a
chore: remove _deno_unstable.ts
( #2600 )
2022-09-05 13:55:53 +09:00
Michael Gibson
e4f76568a6
fix(fs): use Deno.errors.AlreadyExists where appropriate ( #2547 )
2022-08-31 16:04:53 +09:00
Asher Gomez
c6483bd3e6
feat(fs): support URL params ( #2573 )
2022-08-30 12:58:48 +09:00
Asher Gomez
e0bab0e13a
refactor(fs): remove exists
and existsSync
usage in std/fs
( #2546 )
2022-08-24 13:28:54 +09:00
Asher Gomez
3b9fb39ddd
chore: remove void
and Promise<void>
return types ( #2550 )
2022-08-24 10:21:57 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation ( #2511 )
2022-08-11 21:51:20 +10:00
Bartek Iwańczuk
c2a8951c04
chore: update to changes in spawn API ( #2448 )
2022-07-19 02:35:19 +02:00
Berrones Edwin
6e26b89f1b
docs: improve module JSDoc for collections, fs ( #2381 )
2022-06-26 18:13:48 +09:00
Tim Reichen
b1def27be7
refactor(fs/walk): move private exported functions ( #2352 )
2022-06-17 23:18:53 +09:00
Leo Kettmeir
852968f631
refactor: switch the Deno.spawn ( #2161 )
2022-05-25 11:08:27 +02:00
Satya Rohith
3932b7e6e7
test: add --no-prompt to deno run ( #1990 )
2022-03-03 18:54:09 +05:30
Jesse Jackson
58204e6f56
refactor: mark modules as browser compatible ( #1972 )
2022-03-01 13:25:50 +09:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header ( #1871 )
2022-02-02 23:21:39 +09:00
Nayeem Rahman
06b1791664
fix: bypass TS errors for missing --unstable ( #1819 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-02-01 19:16:37 +09:00
Ben Noordhuis
86defe5181
fix(fs/walk): handle special files ( #1792 )
...
Don't error on special files like /dev files or UNIX domain sockets.
Fixes #1789 .
2022-01-20 08:50:14 +01:00
Andrew Mitchell
f933c685cb
fix(path): change default of 'extended' options of glob methods ( #1719 )
2021-12-23 14:32:12 +09:00
Ryan Dahl
d6673e2d50
Remove copy.ts from fs/mod.ts ( #1583 )
...
Until it can be made to not depend on unstable APIs.
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-11-15 21:49:00 -05:00
Zheyu Zhang
8578b01f44
fix(fs/walk): don't throw when symlink to a file ( #1559 )
2021-11-12 12:52:46 +09:00
Reo
8ede51b9bf
perf(fs): parallelize expandGlob
( #1370 )
2021-11-03 11:48:03 +09:00
Nayeem Rahman
8fca3a5f66
fix(fs/expand_glob): don't parse root as glob ( #1417 )
2021-10-18 03:04:24 +09:00
Yoshiya Hinosawa
064dd9260d
BREAKING(fs): deprecate exists and existsSync ( #1364 )
2021-10-11 17:30:25 +09:00
Bartek Iwańczuk
44c326dc5b
fix: update to latest signal API changes ( #1211 )
2021-09-15 01:32:26 +02:00
Yuki Tanaka
76d8c0159b
chore: wrap examples in fenced code blocks ( #1222 )
2021-09-13 00:14:54 +09:00
Kitson Kelly
b7c61a27a7
chore: updates related to TypeScript 4.4 ( #1171 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-08-31 14:39:04 +10:00
Behnam Mohammadi
1a346417fd
refactor: use os util on entire of codebase ( #1123 )
2021-08-13 11:11:14 +09:00
Ryan Dahl
455077a905
fix: type check examples in README files ( #1121 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-11 11:28:10 +02:00
Yasser A.Idrissi
eb69dbd380
feat(testing): add assertRejects, deprecate assertThrowsSync ( #1101 )
2021-08-09 14:59:52 +09:00
Aurélien Bertron
a0984a6863
feat(fs/walk): show path in walk error ( #875 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-04-30 15:49:41 +09:00
Simon Lecoq
e3e642d867
feat(path/glob): add caseInsensitive option ( #854 )
...
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-04-22 12:34:10 +09:00
William Perron
69f3d67cb2
chore: remove Promise<void>
return type annotation ( #819 )
...
There's a couple of instances where `Promise<void>` is still there,
those are the exceptions, for example functions that explicitely return
a `Promise` object or functions that return the promise from another
function call without any `await` statement.
used this one-liner to automatically remove everything:
```bash
grep -rli 'promise<void>' | xargs sed -i 's/: Promise<void>//g
```
2021-04-05 07:49:05 -04:00
Ryan Dahl
5bc48298bb
Remove unused testdata files ( #744 )
...
And format JSON files.
This became necessary because JSON support for "deno fmt" landed in canary.
d9b1f96897
2021-02-19 08:11:53 -05:00
Zhangyuan Nie
5bc18f5d86
BREAKING(encoding): remove module utf8.ts ( #728 )
2021-02-16 13:22:07 +01:00
Casper Beyer
d5bad95a71
chore: Setup CI and tests
...
Create ci.yml
chore: add wasi-test-suite as a submodule
chore: remove legacy configuration files and scripts
chore: remove outdated redirection notice
chore: add git attributes to ensure text files use unix line endings
chore: format
test(http): copy tls testdata from denoland/deno
2021-02-01 12:20:35 +01:00
Bartek Iwańczuk
84ee144ba8
chore: Enforce ban-untagged-todo lint rule ( denoland/deno#9135 )
2021-02-01 10:46:59 +00:00
Yusuke Tanaka
d8a589ac80
chore: update copyright to 2021 ( denoland/deno#9092 )
2021-02-01 10:46:59 +00:00
Liam Murphy
07be7159ce
feat(fs): Re-enable followSymlinks
on walk()
( denoland/deno#8479 )
2021-02-01 10:46:58 +00:00
Bartek Iwańczuk
4379f0a9c1
test: make test output less noisy ( denoland/deno#8445 )
...
This commit makes output of tests less noisy
by passing "--quiet" flag to Deno subprocesses run
as part of test suite.
2021-02-01 10:46:58 +00:00
inokawa
7e03229caf
Add JSDocs to fs/walk.ts ( denoland/deno#8426 )
2021-02-01 10:46:58 +00:00
Behnam Mohammadi
519a862c40
refactor: add _util/os.ts module ( denoland/deno#8370 )
...
This commit adds "_util/os.ts" module which contains
common os detection logic and is browser compatible.
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2021-02-01 10:46:58 +00:00