Ryan Dahl
f8d83361cd
chdir should require --allow-write ( #4889 )
2020-04-24 19:55:33 -04:00
Bartek Iwańczuk
912a57f6a2
change type of stdio handles in JS api ( #4891 )
2020-04-25 01:01:25 +02:00
Bartek Iwańczuk
4a8d25646a
BREAKING CHANGE: remove Deno.OpenMode ( #4884 )
...
This commit removes Deno.OpenMode along with overloaded variants
of Deno.open() and Deno.openSync() that used OpenMode.
2020-04-25 00:45:55 +02:00
Bartek Iwańczuk
0cb1bb98cc
BREAKING CHANGE: change order of args in Deno.copy() ( #4885 )
2020-04-25 00:09:14 +02:00
Bartek Iwańczuk
e9fa6b87ce
stabilize Deno.iter() and Deno.iterSync() ( #4890 )
2020-04-25 00:05:48 +02:00
Bartek Iwańczuk
824329f0da
BREAKING CHANGE: rename Deno.fsEvents() to Deno.watchFs() ( #4886 )
2020-04-24 23:40:29 +02:00
Bartek Iwańczuk
6a37e4426e
BREAKING CHANGE: rename TLS APIs to camel case ( #4888 )
...
This commit renames all APIs containing "TLS" to use camel case
(connectTLS -> connectTls, etc.)
2020-04-24 23:29:14 +02:00
Nayeem Rahman
65bba2b87e
refactor(cli/js/testing): Rename disableOpSanitizer to sanitizeOps ( #4854 )
...
* rename disableOpSanitizer to sanitizeOps
* rename disableResourceSanitizer to sanitizeResources
2020-04-23 14:40:16 +02:00
Bartek Iwańczuk
197a589a4a
fix Deno.iterSync() examples ( #4855 )
2020-04-22 18:36:04 -04:00
Ryan Dahl
e26c2cd7c8
Add comments in Reader/SyncReader about iter/iterSync ( #4852 )
2020-04-22 22:00:48 +02:00
Bartek Iwańczuk
68d287eed5
BREAKING CHANGE: rename Deno.toAsyncIterator() to Deno.iter() ( #4848 )
...
* rename Deno.toAsyncIterator() to Deno.iter()
* adds sync version Deno.iterSync()
* adds optional second argument for buffer size
2020-04-22 21:30:45 +02:00
Ryan Dahl
da6819a14c
Add comment distinguishing Deno.Buffer from Node's Buffer ( #4847 )
2020-04-22 14:26:16 -04:00
张超杰
08936c2efc
chore(docs): A space should be left after the single-line comment ( #4811 )
2020-04-22 10:21:05 -04:00
张超杰
b270d6c8d0
typo
2020-04-21 16:11:52 -04:00
Ryan Dahl
6e5f3453f8
Remove core/plugin.rs ( #4824 )
...
This simplifies the plugin interface in order to deliver op crates with a similar API
2020-04-20 10:27:15 -04:00
迷渡
ade05f3c00
fix(doc): Group ID ( #4803 )
2020-04-18 11:25:35 -04:00
EnokMan
47617e60d5
feat: startTLS ( #4773 )
2020-04-18 11:21:20 -04:00
迷渡
9d53a7a523
fix(doc): FileInfo.created
is creation time ( #4799 )
2020-04-18 00:05:33 -04:00
Nayeem Rahman
5ac728a5f1
refactor(cli/js/ops/fs): Improve readdir() and FileInfo interfaces ( #4763 )
2020-04-16 01:40:30 -04:00
Ryan Dahl
fab0204cbf
Make writeSync, readSync, seekSync, openSync, isatty proper synchronous syscalls ( #4762 )
2020-04-15 20:43:19 -04:00
Nayeem Rahman
95eb6d780c
fix(cli/js/net): Make generator return types iterable ( #4661 )
2020-04-15 12:44:09 +02:00
Nayeem Rahman
0ea6eb83a9
refactor(core/js_error): Align JSStackFrame with CallSite ( #4715 )
...
Renames and adds missing fields to JSStackFrame from CallSite. Fixes #4705 .
Cleans up base changes for line and column numbers.
2020-04-13 10:54:16 -04:00
Khải
ef76389e42
Convert ProcessStatus to a tagged union ( #4732 )
2020-04-13 10:46:34 -04:00
迷渡
3a5dae4303
docs: highlight NO_COLOR ( #4723 )
2020-04-11 23:12:42 -04:00
Chris Knight
2becae884e
BREAKING: Remove deprecated mkdir, mkdirSync APIs ( #4615 )
2020-04-09 11:15:56 -04:00
dubiousjim
c5c3abc517
adjust docs for Deno.seek ( #4610 )
2020-04-03 13:45:44 -04:00
dubiousjim
ce02167c75
Improve tests and docs for Deno.rename ( #4597 )
2020-04-03 11:00:16 -04:00
dubiousjim
7a9273d9cf
Refactor and expand mkdir tests ( #4579 )
2020-04-02 14:54:33 -04:00
Ryan Dahl
c738797944
feat: deno test --filter ( #4570 )
2020-04-02 09:26:40 -04:00
Chris Knight
1c30d755bf
better parameter names for a couple functions ( #4559 )
2020-04-01 12:57:33 -04:00
Nayeem Rahman
270e87d9db
refactor(cli/js/testing): Reduce testing interfaces ( #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
2020-04-01 10:47:23 +02:00
Chris Knight
857d96001d
doc: Improve API documentation and add examples ( #4548 )
2020-03-31 23:21:37 -04:00
Chris Knight
e88dcdc5e1
API doc improvments ( #4525 )
2020-03-29 21:39:10 -04:00
Kitson Kelly
bced52505f
Update to Prettier 2 and use ES Private Fields ( #4498 )
2020-03-28 13:03:49 -04:00
Chris Knight
8bcdb422e3
Improve isatty and kill API docs; Deno.kill() - throw on Windows ( #4497 )
2020-03-26 15:52:47 -04:00
Chris Knight
a053462566
refactor: rename ConsoleOptions to InspectOptions ( #4493 )
2020-03-25 20:48:47 -04:00
Chris Knight
eeedb416c0
doc: improve various API docs and include examples ( #4486 )
2020-03-24 23:54:41 -04:00
João Souto
70a5034431
feat: Support Unix Domain Sockets ( #4176 )
2020-03-23 18:02:51 -04:00
Chris Knight
a0ba476fee
doc: API improvements to chown, close, compile and connect ( #4463 )
2020-03-23 00:03:45 -04:00
Ryan Dahl
12ff78ed4c
Remove @url comments from d.ts files ( #4449 )
...
These have no function and are not tested, probably incorrect in many
situations.
2020-03-21 17:58:31 -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
dubiousjim
77a44163fb
chmod should throw on Windows ( #4446 )
2020-03-20 16:03:04 -04:00
dubiousjim
69303e2149
refactor: move code from fs.rs into ops/fs.rs ( #4428 )
...
This a complex boring PR that shifts around code (primarily) in cli/fs.rs and
cli/ops/fs.rs. The gain of this refactoring is to ease the way for #4188 and
#4017 , and also to avoid some future development pain.
Mostly there is no change in functionality. Except:
* squashed bugs where op_utime and op_chown weren't using `resolve_from_cwd`
* eliminated the use of the external `remove_dir_all` crate.
* op_chmod now only queries metadata to verify file/dir exists on Windows (it
will already fail on Unix if it doesn't)
* op_chown now verifies the file/dir's existence on Windows like chmod does.
2020-03-20 09:46:26 -04:00
Bartek Iwańczuk
b0b27c4310
refactor: rename Deno.TestDefinition.skip to ignore ( #4400 )
2020-03-19 10:58:12 +01:00
Chris Knight
54d1f299dc
Chmod API documentation improvements ( #4427 )
2020-03-18 21:25:01 -04:00
Chris Knight
2a34cbfaf9
Improve API docs for Deno.bundle and Deno.chdir ( #4426 )
2020-03-18 19:40:06 -04: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
dubiousjim
f9557a4ff6
Add mode option to open/create ( #4289 )
2020-03-16 15:02:41 -04:00
Bartek Iwańczuk
70434b5bfb
refactor: change test reporter output ( #4371 )
...
This commit changes output of default test reporter to resemble output from Rust test runner;
first the name of running test is printed with "...", then after test has run result is printed on the same line.
* Split "Deno.TestEvent.Result" into "TestStart" and "TestEnd";
* changes TestReporter interface to support both events;
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-03-15 17:58:59 +01:00
Nayeem Rahman
64a35acd64
feat(cli/js/testing): Add TestDefinition::skip ( #4351 )
2020-03-15 10:34:24 +01:00