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
Behnam Mohammadi
327f459f89
refactor(fs): moved isCopyFolder to options ( denoland/deno#8319 )
2021-02-01 10:46:58 +00:00
Behnam Mohammadi
777b0c1513
refactor(fs): remove unnecessary if else block ( denoland/deno#8321 )
2021-02-01 10:46:58 +00:00
Behnam Mohammadi
db9e206d8c
refactor(fs): improve performance by using some instead filter method ( denoland/deno#8322 )
2021-02-01 10:46:58 +00:00
Behnam Mohammadi
77c3514128
refactor: remove redundant code in move.ts ( denoland/deno#8269 )
2021-02-01 10:46:58 +00:00
Khushraj Rathod
9cecf197fe
docs: fix typo in fs README.md ( denoland/deno#8104 )
2021-02-01 10:46:58 +00:00
Tim Reichen
55a7adb58e
rename(testing): rename assert*Contains to assert*Includes ( denoland/deno#7951 )
...
This commit renames two assertion functions to better align with JS API:
- assertStringContains -> assertStringIncludes
- assertArrayContains -> assertArrayIncludes
2021-02-01 10:46:58 +00:00
tokiedokie
8567b960f8
docs: version all imports in README ( denoland/deno#7442 )
...
Use $STD_VERSION in README files to automatically
display proper version.
2021-02-01 10:46:58 +00:00
Trivikram Kamat
eb1c38cfbf
docs: end sentences with a period in markdown ( denoland/deno#7813 )
2021-02-01 10:46:58 +00:00
Nayeem Rahman
d93563d6ea
feat(path): Align globToRegExp() with bash glob expansion ( denoland/deno#7209 )
...
- feat: Support escaping glob characters
- feat: Support more character classes
- feat: Match characters literally on segment parse failure
- fix: Match nothing for empty globs
- fix: Contain any glob syntax to its path segment
- perf: Remove extraneous separators from generated regex
- doc: Add detailed JSDoc
- chore: Remove old copyright headers
2021-02-01 10:46:58 +00:00
David Sherret
99e0dca320
feat(fmt): Sort named import and export specifiers ( denoland/deno#7711 )
2021-02-01 10:46:58 +00:00
Casper Beyer
d02995cd0f
fix(fs): mark createWalkEntry(Sync) as internal ( denoland/deno#7643 )
2021-02-01 10:46:58 +00:00
tokiedokie
d3fa1bbf5d
chore: add copyright ( denoland/deno#7593 )
2021-02-01 10:46:58 +00:00
Casper Beyer
ff1382572e
test(fs): make tests runnable from any directory ( denoland/deno#7388 )
2021-02-01 10:46:58 +00:00
Casper Beyer
7fca531676
BREAKING(fs): remove writeJson and writeJsonSync ( denoland/deno#7256 )
2021-02-01 10:46:58 +00:00
Casper Beyer
3cf37567ec
BREAKING(fs): remove readJson and readJsonSync ( denoland/deno#7255 )
2021-02-01 10:46:58 +00:00
Casper Beyer
c8e56805af
fix: use millisecond precision for Deno.futime and Deno.utime ( denoland/deno#7299 )
2021-02-01 10:46:58 +00:00
Casper Beyer
b8e8415ae3
docs(fs): remove stale references to readFileStr and writeFileStr ( denoland/deno#7254 )
2021-02-01 10:46:58 +00:00
Paul Jones
84f59788d8
docs(fs): provide more context on unstable perm ( denoland/deno#6748 )
2021-02-01 10:46:58 +00:00
木杉
eb4a970ba4
docs(fs/walk): fix code example ( denoland/deno#7166 )
2021-02-01 10:46:58 +00:00
Jesse Jackson
724a03e51a
test: fs/writeJson add test for append option ( denoland/deno#6889 )
...
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2021-02-01 10:46:58 +00:00
Nayeem Rahman
9ff09b26bb
refactor: Rewrite globToRegExp() ( denoland/deno#6963 )
2021-02-01 10:46:58 +00:00
Trivikram Kamat
6f30c8bd57
test: remove unstable from multiple tests ( denoland/deno#6882 )
2021-02-01 10:46:58 +00:00
Marcin Puc
7d4b49623d
fix(json): Add newline at the end of json files ( denoland/deno#6885 )
2021-02-01 10:46:58 +00:00
Gerald
b137171459
fix(fs): remove unexisted imports ( denoland/deno#6850 )
2021-02-01 10:46:58 +00:00
Casper Beyer
9c302c2ed0
BREAKING(fs): remove readFileStr and readFileStrSync ( denoland/deno#6848 )
...
This removes the readFileStr and readFileStrSync functions which are
effectively duplicates of Deno.readTextFile and Deno.readTextFileSync.
2021-02-01 10:46:58 +00:00
Casper Beyer
4e304e5519
BREAKING(fs): remove writeFileStr and writeFileStrSync ( denoland/deno#6847 )
...
This removes the writeFileStr and writeFileStrSync functions which are
effectivly duplicates of Deno.writeTextFile and Deno.writeTextFileSync.
2021-02-01 10:46:58 +00:00
David Sherret
1425960509
Use dprint for internal formatting ( denoland/deno#6682 )
2021-02-01 10:46:58 +00:00
uki00a
221393d449
fix(tesing/asserts): assertEquals/NotEquals should use milliseconds in Date ( denoland/deno#6644 )
2021-02-01 10:46:58 +00:00
Casper Beyer
d7afa15674
re-enable follow symlinks walk test on Windows ( denoland/deno#6626 )
2021-02-01 10:46:58 +00:00
Yoshiya Hinosawa
1c3d215f34
docs: document and add examples of expandGlob ( denoland/deno#6404 )
2021-02-01 10:46:58 +00:00
Nayeem Rahman
ccb92613f0
refactor: Don't destructure the Deno namespace ( denoland/deno#6268 )
2021-02-01 10:46:58 +00:00
Ryan Dahl
f8eb45e39d
make std deno-lint clean ( denoland/deno#6240 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-02-01 10:46:58 +00:00
Casper Beyer
292737fe08
Remove redundant call to ensureDirSync
( denoland/deno#6189 )
...
There's a seemingly redundant call to `ensureDirSync` right after a call
to `await ensureDir`.
This removes the offending call.
2021-02-01 10:46:57 +00:00
jersou
9c30b68b03
doc(fs): fix sync walk example ( denoland/deno#6174 )
...
The example doesn't compile : Property 'filename' does not exist on type 'WalkEntry'.
The property has been renamed : fileInfo.filename → fileInfo.name
2021-02-01 10:46:57 +00:00
Chris Knight
589fe4bd53
refactor: remove testing dependencies from non-test code ( denoland/deno#5838 )
2021-02-01 10:46:57 +00:00
Casper Beyer
eb9127bf38
Rename abbreviated assertions in testing ( denoland/deno#6118 )
2021-02-01 10:46:57 +00:00
Hendrik
2d0b857423
Provide required arguments to walk in example. ( denoland/deno#5668 )
2021-02-01 10:46:57 +00:00
Ali Hasani
0362de74ca
Implement Deno.symlink() for windows ( denoland/deno#5533 )
2021-02-01 10:46:57 +00:00
Bert Belder
d1dbf9be98
Miscellaneous documentation and spelling improvements ( denoland/deno#5527 )
...
* Extended/updated documentation on code editor setup and plugins.
* Moved documentation to the right file.
* Fixed spelling errors in documentation and code.
* Updated broken links.
Co-authored-by: 迷渡 <justjavac@gmail.com>
Co-authored-by: AlfieriChou <alfierichou@gmail.com>
Co-authored-by: Anil Seervi <anil13112000@gmail.com
Co-authored-by: Bert Belder <bertbelder@gmail.com>
Co-authored-by: Fernando Basso <fernandobasso.br@gmail.com>
Co-authored-by: József Sallai <jozsef@sallai.me>
Co-authored-by: S4ltyGo4t <mario.weidner@gmx.de>
Co-authored-by: Tommy May <tommymay37@gmail.com>
Co-authored-by: Turbinya <wownucleos@gmail.com>
Co-authored-by: ᴜɴвʏтᴇ <i@shangyes.net>
2021-02-01 10:46:57 +00:00
A.E Clarence
7e49a34842
Improve moveSync jsdoc
2021-02-01 10:46:57 +00:00
Akash Vishwakarma
f69ca57ed0
Fix spelling: "--alow-write" => "--allow-write" ( denoland/deno#5486 )
2021-02-01 10:46:57 +00:00
Anil Seervi
da10ca99c3
Fixed Typo ( denoland/deno#5495 )
2021-02-01 10:46:57 +00:00
domharrington
a4df588c0b
docs: Fix spelling mistake on permission ( denoland/deno#5476 )
2021-02-01 10:46:57 +00:00
Linus Unnebäck
5403de37d5
refactor(fs): use every instead of reduce ( denoland/deno#5323 )
...
The previous usage of `reduce` was basically implementing the `every`
A small difference is that the new implementation will stop checking
as soon as one element have returned false, which will reduce
the number of unnecessary checks.
2021-02-01 10:46:57 +00:00
Kitson Kelly
3d353390c5
Update to TypeScript 3.9 ( denoland/deno#4510 )
2021-02-01 10:46:57 +00:00
Nayeem Rahman
1eecc5c7d0
BREAKING: reorganization ( denoland/deno#5087 )
...
* Prepend underscores to private modules
* Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result.
* Move _util/async.ts to async
* Move util/sha*.ts to hash
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
968bd7377d
BREAKING: remove CLI 'deno script.ts' hack ( denoland/deno#5026 )
...
This PR removes the hack in CLI that allows to run scripts with shorthand: deno script.ts.
Removing this functionality because it hacks around short-comings of clap our CLI parser. We agree that this shorthand syntax is desirable, but it needs to be rethinked and reimplemented. For 1.0 we should go with conservative approach that is correct.
2021-02-01 10:46:57 +00:00
Bert Belder
90b0966034
fix fs/walk example ( denoland/deno#5030 )
2021-02-01 10:46:57 +00:00
张超杰
917423af20
doc(fs): README.md ( denoland/deno#4913 )
2021-02-01 10:46:57 +00:00
Luca Casonato
94e6c3d329
Unstable methods should not appear in runtime or d.ts ( denoland/deno#4957 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-02-01 10:46:57 +00:00
Ali Hasani
7f8abe0786
fix: use fromFileUrl ( denoland/deno#5005 )
2021-02-01 10:46:57 +00:00
Ryan Dahl
975115fb15
make camel case readDir, readLink, realPath ( denoland/deno#4995 )
2021-02-01 10:46:57 +00:00
Bert Belder
5cc4e45d69
BREAKING: Include limited metadata in 'DirEntry' objects ( denoland/deno#4941 )
...
This change is to prevent needed a separate stat syscall for each file
when using readdir.
For consistency, this PR also modifies std's `WalkEntry` interface to
extend `DirEntry` with an additional `path` field.
2021-02-01 10:46:57 +00:00
Ryan Dahl
bdac502f84
BREAKING: Use LLVM target triple for Deno.build ( denoland/deno#4948 )
...
Deno.build.os values have changed to correspond to standard LLVM target triples
"win" -> "windows"
"mac" -> "darwin"
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
4facff44f2
BREAKING: remove overload of Deno.test() ( denoland/deno#4951 )
...
This commit removes overload of Deno.test() that accepted named
function.
2021-02-01 10:46:57 +00:00
Bert Belder
14ff9a84b4
Rename FileInfo time fields and represent them as Date objects ( denoland/deno#4932 )
...
This patch also increases the resolution of reported file times to
sub-millisecond precision.
2021-02-01 10:46:57 +00:00
张超杰
2821c52196
fix: typo fs readme.md ( denoland/deno#4903 )
2021-02-01 10:46:57 +00:00
张超杰
72ed873ed4
fix(fs): move dest if not exists and overwrite ( denoland/deno#4910 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
5f53c9808c
BREAKING CHANGE: remove Deno.OpenMode ( denoland/deno#4884 )
...
This commit removes Deno.OpenMode along with overloaded variants
of Deno.open() and Deno.openSync() that used OpenMode.
2021-02-01 10:46:57 +00:00
Nayeem Rahman
b10a0edb43
refactor(cli/js/ops/fs): Improve readdir() and FileInfo interfaces ( denoland/deno#4763 )
2021-02-01 10:46:57 +00:00
dubiousjim
a6627d8926
fix erroneous assert ( denoland/deno#4608 )
2021-02-01 10:46:57 +00:00
Ryan Dahl
1f1818d379
Move encode, decode helpers to /encoding/utf8.ts, delete /strings/ ( denoland/deno#4565 )
...
also removes encoding/mod.ts and archive/mod.ts which are useless.
2021-02-01 10:46:57 +00:00
Nayeem Rahman
e7c907bc7b
refactor(cli/js/testing): Reduce testing interfaces ( denoland/deno#4451 )
...
* Reduce "testing" interfaces
* Use a callback instead of a generator for Deno.runTests()
* Default RunTestsOptions::reportToConsole to true
* Compose TestMessage into a single interface
2021-02-01 10:46:57 +00:00
Kitson Kelly
7914eae5f0
Update to Prettier 2 and use ES Private Fields ( denoland/deno#4498 )
2021-02-01 10:46:57 +00:00
Akshat Agarwal
fc96083668
BREAKING CHANGE Rename Deno.run's args to cmd ( denoland/deno#4444 )
...
This is to avoid confusion with Deno.args which does not include the
executable to be run.
2021-02-01 10:46:57 +00:00
dubiousjim
4d1a39493e
use prebuilt "not implemented" error ( denoland/deno#4442 )
2021-02-01 10:46:57 +00:00
Samrith Shankar
204ebc523d
Add require-await lint rule ( denoland/deno#4401 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
03d7177ca3
refactor: rename Deno.TestDefinition.skip to ignore ( denoland/deno#4400 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
a19e660a30
feat: Deno.test() sanitizes ops and resources ( denoland/deno#4399 )
...
This PR brings assertOps and assertResources sanitizers to Deno.test() API.
assertOps checks that test doesn't leak async ops, ie. there are no unresolved
promises originating from Deno APIs. Enabled by default, can be disabled using
Deno.TestDefinition.disableOpSanitizer.
assertResources checks that test doesn't leak resources, ie. all resources used
in test are closed. For example; if a file is opened during a test case it must be
explicitly closed before test case finishes. It's most useful for asynchronous
generators. Enabled by default, can be disabled using
Deno.TestDefinition.disableResourceSanitizer.
We've used those sanitizers in internal runtime tests and it proved very useful in
surfacing incorrect tests which resulted in interference between the tests.
All tests have been sanitized.
Closes denoland/deno#4208
2021-02-01 10:46:57 +00:00
Nayeem Rahman
19ca3f53c4
refactor: Uncomment disabled tests, use skip option ( denoland/deno#4378 )
2021-02-01 10:46:57 +00:00
Nayeem Rahman
c8d15ec7b2
refactor: Cleanup options object parameters ( denoland/deno#4296 )
2021-02-01 10:46:57 +00:00
dubiousjim
28eb11d848
Rename readDir -> readdir ( denoland/deno#4225 )
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
589ac5af6f
reduce unnecessary output on tests ( denoland/deno#4148 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
8bd4c5ed4d
rename Deno.Err -> Deno.errors ( denoland/deno#4093 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
f5cbcf287e
refactor: remove unneeded ErrorKinds ( denoland/deno#3936 )
2021-02-01 10:46:57 +00:00
Maximilien Mellen
623a601fd5
Enable TS strict mode by default ( denoland/deno#3899 )
...
Fixes denoland/deno#3324
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
82a523639a
refactor: rewrite tests in to use Deno.test ( denoland/deno#3930 )
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
7534d8390a
remove non-null assertion operator from std (part2) ( denoland/deno#3927 )
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
ee8ec4b053
remove non-null assertion operator from std (part1) ( denoland/deno#3900 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
6b46758ef7
dx: descriptive permission errors ( denoland/deno#3808 )
...
Before:
```
▶ target/debug/deno https://deno.land/examples/echo_server.ts
error: Uncaught PermissionDenied: run again with the --allow-net flag
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendSync ($deno$/dispatch_json.ts:67:10)
at listen ($deno$/net.ts:170:15)
at https://deno.land/examples/echo_server.ts:4:23
```
```
▶ target/debug/deno --allow-read=/usr https://deno.land/examples/cat.ts /etc/passwd
error: Uncaught PermissionDenied: run again with the --allow-read flag
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendAsync ($deno$/dispatch_json.ts:91:10)
```
After:
```
▶ target/debug/deno https://deno.land/examples/echo_server.ts
error: Uncaught PermissionDenied: network access to "0.0.0.0:8080", run again with the --allow-net flag
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendSync ($deno$/dispatch_json.ts:67:10)
at listen ($deno$/net.ts:170:15)
at https://deno.land/examples/echo_server.ts:4:23
```
```
▶ target/debug/deno --allow-read=/usr https://deno.land/examples/cat.ts /etc/passwd
error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with the --allow-read flag
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendAsync ($deno$/dispatch_json.ts:91:10)
```
2021-02-01 10:46:56 +00:00
Kevin (Kun) "Kassimo" Qian
bce291ef41
http: allow response body to be string ( denoland/deno#3705 )
2021-02-01 10:46:56 +00:00
Ry Dahl
06059e0f22
Revert "feat(flags): script arguments come after '--'" ( denoland/deno#3681 )
...
Due to complaints about ergonomics and because it breaks shebang on
linux.
This reverts commit 2d5457df15d8c4a81362bb2d185b5c6013faa1d8.
BREAKING CHANGE
2021-02-01 10:46:56 +00:00
Ry Dahl
51658155cf
feat: Deno.args now does not include script ( denoland/deno#3628 )
...
Previously Deno.args was ["script.js", "arg1", "arg2"]
Now it is just ["arg1", "arg2"]
BREAKING CHANGE
2021-02-01 10:46:56 +00:00
Ry Dahl
ccf4c766d0
feat(flags): script arguments come after '--' ( denoland/deno#3621 )
2021-02-01 10:46:56 +00:00
Ry Dahl
8c250d5668
fix: Deno.mkdir should conform to style guide ( denoland/deno#3617 )
2021-02-01 10:46:56 +00:00
Ry Dahl
3a9eb92372
Happy new year! ( denoland/deno#3578 )
2021-02-01 10:46:56 +00:00
Axetroy
e24c39a7f0
fix permission errors are swallowed by fs.copy() ( denoland/deno#3504 )
2021-02-01 10:46:56 +00:00
Axetroy
81c208e641
fix permission errors are swallowed by fs.emptyDir ( denoland/deno#3501 )
2021-02-01 10:46:56 +00:00
Axetroy
3bd58c2d3d
fix permission errors are swallowed by fs.exists ( denoland/deno#3493 )
2021-02-01 10:46:56 +00:00
Nayeem Rahman
d568a6814e
fix: Only swallow NotFound errors in fs/expandGlob() ( denoland/deno#3479 )
2021-02-01 10:46:56 +00:00
Nayeem Rahman
0a92976bb0
fix: error handling in fs/walk() ( denoland/deno#3318 )
...
- Make assertThrows() return the Error
- Remove WalkOptions::onError()
2021-02-01 10:46:56 +00:00
Kitson Kelly
1c5db631f7
Update to TypeScript 3.7 ( denoland/deno#3275 )
...
and update to prettier 1.19
Also, update `assert()` and remove not null assertions where possibly
in `cli`.
Closes denoland/deno#3273
2021-02-01 10:46:56 +00:00
Nayeem Rahman
5b2aec7a62
std: Move fs/path to the top-level ( denoland/deno#3100 )
2021-02-01 10:46:56 +00:00
Ryan Dahl
d491d2e747
Run deno_std tests in github actions
2021-02-01 10:46:56 +00:00
Yoshiya Hinosawa
c3fe858f98
Update eslint and @typescript-eslint ( #621 )
2019-10-05 12:02:34 -04:00
Nayeem Rahman
8c90bd9d0b
Implement expandGlob() and expandGlobSync() ( #617 )
...
fs/glob.ts:
- Improve prototypes for expandGlob() and expandGlobSync() from #604 .
- Rename glob() to globToRegExp().
- Add normalizeGlob() and joinGlobs().
- Extract GlobToRegExpOptions from GlobOptions, remove the strict
and filepath options.
fs/globrex.ts:
- Add GlobrexOptions.
fs/path/constants.ts:
- Add SEP_PATTERN.
fs/walk.ts:
- Add WalkOptions::includeFiles
- Default WalkOptions::includeDirs to true.
- Don't traverse directories matching a skip pattern.
- Remove walkSync()'s default root value.
prettier:
- Refactor to use expandGlob().
testing:
- Make findTestModules() an async generator.
2019-10-02 13:59:27 -04:00
Nayeem Rahman
17a214bbd5
Test runner v2 ( #604 )
2019-09-28 09:33:17 -04:00