Commit Graph

144 Commits

Author SHA1 Message Date
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