Asher Gomez
43102325b7
test: use Deno.errors.NotCapable
where appropriate ( #5935 )
...
* test: use `Deno.errors.NotCapable` where appropriate
* copyright headers
* fixes
* fixes
* fixes
2024-09-11 19:17:27 +09:00
Yoshiya Hinosawa
26d6d2b510
chore: use new format for workspaces and re-enable using Deno canary and v1.x ( #5375 )
...
* chore: use new format for workspaces
* fixes
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-07-11 10:24:30 +10:00
Yoshiya Hinosawa
bd55f3b5c3
refactor(fs): improve expandGlob()
implementation and testing ( #5089 )
2024-06-20 16:39:45 +09:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase ( #4650 )
2024-04-29 11:57:30 +09:00
Asher Gomez
800b7bb729
fix(fs): expandGlob()
test after workspace conversion ( #4428 )
2024-03-04 18:18:37 +11: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
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
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
Asher Gomez
3bb97f9624
test(fs): fix expandGlob()
test assertion ( #3906 )
2023-12-07 15:04:16 +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
56e2bc10e0
chore: use Array.fromAsync()
where possible ( #3788 )
2023-11-11 06:00:28 +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
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
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts
to std/assert
( #3445 )
2023-07-13 16:04:30 +09:00
Lino Le Van
df73bfc067
feat(fs): add followSymlink to expandGlob ( #3093 )
2023-03-06 16:35:44 +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
Asher Gomez
b72d3eb42a
refactor: replace Deno.spawn
with Deno.Command
( #2886 )
2022-11-15 15:00:59 +09:00
Nash Kabbara
2c7274741c
fix(fs/expandGlob): globstar false does not take effect ( #2571 ) ( #2779 )
2022-10-18 10:40:00 -04:00
Bartek Iwańczuk
c2a8951c04
chore: update to changes in spawn API ( #2448 )
2022-07-19 02:35:19 +02:00
Leo Kettmeir
852968f631
refactor: switch the Deno.spawn ( #2161 )
2022-05-25 11:08:27 +02:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header ( #1871 )
2022-02-02 23:21:39 +09:00
Nayeem Rahman
8fca3a5f66
fix(fs/expand_glob): don't parse root as glob ( #1417 )
2021-10-18 03:04:24 +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
Zhangyuan Nie
5bc18f5d86
BREAKING(encoding): remove module utf8.ts ( #728 )
2021-02-16 13:22:07 +01:00
Yusuke Tanaka
d8a589ac80
chore: update copyright to 2021 ( denoland/deno#9092 )
2021-02-01 10:46:59 +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
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
David Sherret
99e0dca320
feat(fmt): Sort named import and export specifiers ( denoland/deno#7711 )
2021-02-01 10:46:58 +00:00
tokiedokie
d3fa1bbf5d
chore: add copyright ( denoland/deno#7593 )
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
Nayeem Rahman
ccb92613f0
refactor: Don't destructure the Deno namespace ( denoland/deno#6268 )
2021-02-01 10:46:58 +00:00
Casper Beyer
eb9127bf38
Rename abbreviated assertions in testing ( denoland/deno#6118 )
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
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
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
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
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
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
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
Bartek Iwańczuk
82a523639a
refactor: rewrite tests in to use Deno.test ( denoland/deno#3930 )
2021-02-01 10:46:57 +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
5b2aec7a62
std: Move fs/path to the top-level ( denoland/deno#3100 )
2021-02-01 10:46:56 +00:00