Nayeem Rahman
b3e189ee4f
fix(cli/js/process): Strengthen socket types based on pipes ( #4836 )
2020-06-09 13:18:18 +02:00
Ryan Dahl
1a2f88609b
fix(std/io): StringReader implementation ( #6148 )
2020-06-06 10:37:52 -04:00
Casper Beyer
ed5aedc6b4
Rename abbreviated assertions in std/testing ( #6118 )
2020-06-05 23:43:00 -04:00
Stephan Seidt
db9c2c156a
Fix shebangs ( #5898 )
2020-05-27 15:24:57 -04:00
ddaza
15466c9007
improve chat example ( #5474 )
2020-05-15 17:00:31 -04:00
Nayeem Rahman
f184332c09
BREAKING(std): reorganization ( #5087 )
...
* Prepend underscores to private modules
* Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result.
* Move std/_util/async.ts to std/async
* Move std/util/sha*.ts to std/hash
2020-05-09 08:34:47 -04:00
zjopy
761b7efb3b
fix(docs): add missing "deno run" ( #5126 )
2020-05-07 13:48:48 +02:00
Andrey Trebler
796fc9bc3e
BREAKING: make WebSocket directly implement AsyncIterable ( #5044 ) ( #5045 )
2020-05-04 12:27:06 -04:00
Bartek Iwańczuk
a913b7a1ba
BREAKING: remove CLI 'deno script.ts' hack ( #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.
2020-05-04 13:03:30 +02:00
Ryan Dahl
03d0ee60b4
Add hint on how to install gist program ( #5041 )
2020-05-02 18:35:25 -04:00
Nayeem Rahman
96fd0f4692
BREAKING: feat(cli/installer): Support guessing the executable name ( #5036 )
2020-05-01 15:33:11 -04:00
Luca Casonato
80e2211141
Unstable methods should not appear in runtime or d.ts ( #4957 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-04-30 11:23:40 -04:00
Ali Hasani
c569d958aa
fix(std): use fromFileUrl ( #5005 )
2020-04-30 12:47:53 +02:00
Valentin Anger
721a4ad59d
BREAKING: Map-like interface for Deno.env ( #4942 )
2020-04-29 14:48:19 -04:00
Nayeem Rahman
678313b176
BREAKING: Remove Deno.EOF, use null instead ( #4953 )
2020-04-28 12:40:43 -04:00
Ryan Dahl
e0ca60e770
BREAKING: Use LLVM target triple for Deno.build ( #4948 )
...
Deno.build.os values have changed to correspond to standard LLVM target triples
"win" -> "windows"
"mac" -> "darwin"
2020-04-28 12:35:23 -04:00
Bartek Iwańczuk
8feb30e325
BREAKING: remove overload of Deno.test() ( #4951 )
...
This commit removes overload of Deno.test() that accepted named
function.
2020-04-28 12:33:09 +02:00
Bartek Iwańczuk
0cb1bb98cc
BREAKING CHANGE: change order of args in Deno.copy() ( #4885 )
2020-04-25 00:09:14 +02:00
Ryan Dahl
02bc58d832
BREAKING: Make fetch API more web compatible ( #4687 )
...
- Removes the __fetch namespace from `deno types`
- Response.redirect should be a static.
- Response.body should not be AsyncIterable.
- Disables the deno_proxy benchmark
- Makes std/examples/curl.ts buffer the body before printing to stdout
2020-04-10 09:51:17 -04:00
Ryan Dahl
12c6b2395b
Move encode, decode helpers to /std/encoding/utf8.ts, delete /std/strings/ ( #4565 )
...
also removes std/encoding/mod.ts and std/archive/mod.ts which are useless.
2020-04-01 15:23:39 -04:00
Kitson Kelly
bced52505f
Update to Prettier 2 and use ES Private Fields ( #4498 )
2020-03-28 13:03:49 -04:00
Bartek Iwańczuk
30bcf6a2ea
Revert "avoid using same port number for test ( #4147 )"
...
Ref #4467
This reverts commit 60cee4f045
.
2020-03-24 12:24:58 -04:00
uki00a
07ea145ec4
re-enable a test ( #4461 )
2020-03-22 14:41:42 -04:00
Akshat Agarwal
b8a5c29bf8
BREAKING CHANGE Rename Deno.run's args to cmd ( #4444 )
...
This is to avoid confusion with Deno.args which does not include the
executable to be run.
2020-03-21 17:44:18 -04:00
Yusuke Sakurai
60cee4f045
avoid using same port number for test ( #4147 )
2020-03-21 09:53:47 -04:00
Samrith Shankar
798904b0f2
Add require-await lint rule ( #4401 )
2020-03-20 09:38:34 -04:00
Bartek Iwańczuk
b0b27c4310
refactor: rename Deno.TestDefinition.skip to ignore ( #4400 )
2020-03-19 10:58:12 +01:00
Bartek Iwańczuk
6e2df8c64f
feat: Deno.test() sanitizes ops and resources ( #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 #4208
2020-03-18 19:25:55 -04:00
Nayeem Rahman
6471d4cfab
refactor(std): Uncomment disabled tests, use skip option ( #4378 )
2020-03-15 13:03:25 +01:00
Bartek Iwańczuk
1b6f831875
reorg: move JS ops implementations to cli/js/ops/, part 1 ( #4264 )
...
Following JS ops were moved to separate files in cli/js/ops directory:
- compiler
- dispatch_json
- dispatch_minimal
- errors
- fetch
- fs_events
- os
- random
- repl
- resources
- runtime_compiler
- runtime
- tty
2020-03-08 13:09:22 +01:00
Yusuke Sakurai
c65d0c63e7
reduce unnecessary output on tests ( #4148 )
2020-02-27 15:12:04 -05:00
Bartek Iwańczuk
5da7c7df1d
disable std/examples/chat tests for windows ( #4109 )
2020-02-24 12:58:13 -05:00
uki00a
fe9ac35a65
fix(std/examples): add tests for examples ( #4094 )
2020-02-24 08:31:40 -05:00
Yusuke Sakurai
162d66d23f
fix: chat example's content-security-policy ( #4091 )
2020-02-24 08:10:00 -05:00
Yusuke Sakurai
8b646e8657
Added browser chat example ( #4022 )
2020-02-22 18:51:04 -05:00
jigsaw
c34d96d865
Fix example ( #4076 )
2020-02-22 18:45:35 -05:00
Maximilien Mellen
90125566bb
Enable TS strict mode by default ( #3899 )
...
Fixes #3324
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-02-19 15:36:18 -05:00
Nayeem Rahman
5a3292047c
feat(std/io): Export readDelim(), readStringDelim() and readLines() from bufio.ts ( #4019 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-02-17 19:51:13 -05:00
Bartek Iwańczuk
61273085e4
refactor: rewrite tests in std/ to use Deno.test ( #3930 )
2020-02-11 17:24:27 +01:00
Yusuke Sakurai
c2986891f6
remove non-null assertion operator from std (part1) ( #3900 )
2020-02-07 02:23:38 -05:00
Kevin (Kun) "Kassimo" Qian
97b2a0bb95
bring back std/examples/xeval.ts ( #3822 )
2020-01-30 21:02:14 -05:00
Bartek Iwańczuk
de5c099b47
feat: deno install in Rust ( #3806 )
...
//std/installer couldn't be removed due to bug, but it's now deprecated.
2020-01-30 18:42:39 -05:00
Ry Dahl
a4dde552de
Revert "feat(flags): script arguments come after '--'" ( #3681 )
...
Due to complaints about ergonomics and because it breaks shebang on
linux.
This reverts commit 2d5457df15
.
BREAKING CHANGE
2020-01-15 19:21:35 -05:00
Tomofumi Chiba
8a352f7260
fix curl.ts ( #3677 )
2020-01-15 08:05:22 -06:00
Ry Dahl
d492c5abe3
feat: Deno.args now does not include script ( #3628 )
...
Previously Deno.args was ["script.js", "arg1", "arg2"]
Now it is just ["arg1", "arg2"]
BREAKING CHANGE
2020-01-09 11:37:01 -07:00
Ry Dahl
2d5457df15
feat(flags): script arguments come after '--' ( #3621 )
2020-01-08 14:59:53 -05:00
Ry Dahl
bfab4ed0df
Happy new year! ( #3578 )
2020-01-02 15:13:47 -05:00
Andy Hayden
f484776384
Use top-level for-await in various places ( #3217 )
2019-10-28 15:58:35 -04:00
Andy Hayden
aec5a646c9
feat: top-level-for-await ( #3212 )
2019-10-27 09:04:42 -04:00
Ry Dahl
073b64bd43
Add std/examples/welcome.ts ( #3181 )
2019-10-23 09:57:08 -07:00