Bartek Iwańczuk
38a7128cdd
feat: Add "deno_net" extension ( #11150 )
...
This commits moves implementation of net related APIs available on "Deno"
namespace to "deno_net" extension.
Following APIs were moved:
- Deno.listen()
- Deno.connect()
- Deno.listenTls()
- Deno.serveHttp()
- Deno.shutdown()
- Deno.resolveDns()
- Deno.listenDatagram()
- Deno.startTls()
- Deno.Conn
- Deno.Listener
- Deno.DatagramConn
2021-06-29 01:43:03 +02:00
Yoshiya Hinosawa
d832d2bfd1
chore(ext/console): deprecate Deno.customInspect ( #10035 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-06-25 16:19:18 +09:00
Benjamin Gruenbaum
20b0a5125a
feat(core): support AbortSignal in readFile ( #10943 )
2021-06-22 11:45:26 -04:00
Luca Casonato
6261c89e04
feat: transfer MessagePort between workers ( #11076 )
...
Add support for transferring `MessagePort`s between workers.
2021-06-22 16:30:16 +02:00
Tomofumi Chiba
4f1b1903cf
feat(fetch): add programmatic proxy ( #10907 )
...
This commit adds new options to unstable "Deno.createHttpClient" API.
"proxy" and "basicAuth" options were added that allow to use custom proxy
when client instance is passed to "fetch" API.
2021-06-22 05:21:57 +02:00
Muthu Kumar
388274e02e
fix: move stable/unstable types/APIs to their correct places ( #10880 )
...
- Moved ppid and memoryUsage types from deno.unstable to deno.ns.
- Moved sleepSync to unstable object, shutdown to stable object.
2021-06-22 03:03:00 +02:00
Kitson Kelly
281c4cd8fc
feat(cli): support "types" when type checking ( #10999 )
...
Fixes #10677
2021-06-22 07:18:32 +10:00
Luca Casonato
f9ff981daf
feat: MessageChannel
and MessagePort
( #11051 )
...
This commit introduces support for MessageChannel and MessagePort.
MessagePorts can be transfered across other MessagePorts.
2021-06-21 19:53:52 +02:00
Kitson Kelly
3f5fbea17c
fix: add support for module es2020 to Deno.emit ( #11065 )
2021-06-21 21:47:09 +10:00
Bartek Iwańczuk
a8e4fc15e5
fix: Worker accepts specifier as URL ( #11038 )
...
This commit updates type declarations for Worker to accept specifiers
as either strings or URL, bringing it in line with TypeScript
declarations and browser behavior.
2021-06-18 21:34:51 +02:00
Kitson Kelly
1eac527adb
fix(cli): improve worker types ( #10965 )
2021-06-15 11:16:06 +10:00
Edward Bebbington
a6f1edd953
docs(unstable/emit): Note that for emit, Deno.formatDiagnostics can be used ( #10925 )
2021-06-11 19:42:43 -04:00
Bartek Iwańczuk
6091ea098a
refactor: merge deno_file crate into deno_web ( #10914 )
...
This refactor makes it so there's one less crate to publish on each release.
2021-06-10 15:26:10 +02:00
Casper Beyer
55e962b688
feat(cli): support URL overload for Deno.chdir
( #10793 )
2021-06-03 16:32:18 +02:00
Casper Beyer
ece56d9935
feat(runtime): support URL overloads for Deno.symlink
and Deno.symlinkSync
( #10664 )
2021-06-03 16:16:00 +02:00
Casper Beyer
dc69b03339
feat(runtime): support URL overloads for Deno.rename/Deno.renameSync ( #10512 )
2021-06-03 16:14:37 +02:00
Yoshiya Hinosawa
595700c993
feat: add FsWatcher interface ( #10798 )
2021-06-01 15:35:06 +09:00
Casper Beyer
330cd6b7ea
feat(cli): support URL overloads for Deno.utime
and Deno.utimeSync
( #10792 )
2021-05-31 20:05:57 +02:00
Kitson Kelly
59237d195f
feat(cli): upgrade to TypeScript 4.3 ( #9960 )
2021-05-28 09:33:11 +10:00
Casper Beyer
3a2e020c8f
docs(cli/dts): tag test permission example as typescript ( #10753 )
2021-05-25 15:01:15 +02:00
Ben Noordhuis
af1546391c
feat(extensions): BroadcastChannel WPT conformance
...
Replaces the file-backed provider by an in-memory one because proper
file locking is a hard problem that detracts from the proof of concept.
Teach the WPT runner how to extract tests from .html files because all
the relevant tests in test_util/wpt/webmessaging/broadcastchannel are
inside basics.html and interface.html.
2021-05-23 15:16:42 +02:00
迷渡
b88fcef26b
fix(docs): rename read to readSync ( #10732 )
...
Signed-off-by: 迷渡 <justjavac@gmail.com>
2021-05-21 10:00:16 -04:00
Carter Snook
bdee065d42
fix(cli/dts): fix missing error class (NotSupported) in types ( #10713 )
2021-05-20 14:57:15 +09:00
Casper Beyer
df7639c096
test(cli/dts): typecheck examples in declaration files ( #10707 )
...
This commits adds two integration tests that typecheck examples
in the docstrings in Deno declaration files.
2021-05-19 18:41:36 +02:00
Casper Beyer
8a9b83b3ea
docs(cli/dts): fix plugin example ( #10647 )
2021-05-19 15:07:10 +02:00
Casper Beyer
3af44a26eb
docs(cli/dts): make worker example pass ( #10703 )
2021-05-19 08:15:35 -04:00
Casper Beyer
7f94db1bfd
docs: fix unix socket examples ( #10705 )
2021-05-19 08:15:01 -04:00
Casper Beyer
ef5e5f5e46
docs(cli/dts): fix typo in TestDefinition.only
description ( #10697 )
2021-05-19 16:33:01 +09:00
Yusuke Tanaka
cda09c166f
chore: update deno_lint binary used in CI to v0.5.0 ( #10652 )
2021-05-18 17:24:01 +02:00
Casper Beyer
75d547809f
docs(cli/dts): fix Deno.startTls
example ( #10657 )
2021-05-17 18:44:07 +09:00
Casper Beyer
910935c071
feat(runtime): support urls for Deno.realPath
and Deno.realPathSync
( #10626 )
2021-05-17 06:31:21 +02:00
Casper Beyer
ac8ea823f5
docs(cli/dts): fix http server example ( #10651 )
2021-05-16 16:57:55 +02:00
Casper Beyer
808226f110
docs(cli/dts): remove stray new operators in examples ( #10648 )
2021-05-15 15:20:37 +02:00
Yusuke Tanaka
24a2e1ef82
docs(cli/dts): fix link from master to main ( #10633 )
2021-05-15 16:22:45 +09:00
Casper Beyer
62c752211c
docs(cli/dts): use Deno.stdin.rid
in Deno.setRaw
example ( #10623 )
2021-05-13 14:20:55 +02:00
Casper Beyer
b504eb94bb
docs(cli/dts): fix Deno.createHttpClient
example ( #10608 )
2021-05-13 16:45:55 +09:00
Casper Beyer
5e4764a00f
docs(cli/dts): fix missing std/testing/asserts.ts imports in examples ( #10579 )
2021-05-13 16:03:34 +09:00
Casper Beyer
473c93a90b
docs(cli/dts): fix worker net permissions example ( #10578 )
2021-05-12 15:15:34 +02:00
Casper Beyer
7211c7cf8f
docs(cli/dts): fix Deno.applySourceMap
example ( #10602 )
2021-05-12 15:14:48 +02:00
Casper Beyer
46f0ac59e0
docs: remove stale Deno.compile
example ( #10580 )
2021-05-11 06:44:23 -04:00
Casper Beyer
62562f3fd1
docs(cli/dts): fix Deno.permissions.query
example ( #10572 )
2021-05-11 14:44:15 +09:00
Casper Beyer
576f14baeb
docs(cli/dts): fix Deno.test permission examples ( #10571 )
2021-05-11 14:42:26 +09:00
Casper Beyer
2b8bac3c85
docs(cli/dts): fix Deno.watchFs example ( #10570 )
2021-05-11 11:18:29 +09:00
Casper Beyer
ba8d6ec771
docs(cli/dts): fix Deno.inspect examples ( #10569 )
2021-05-11 11:17:07 +09:00
Casper Beyer
2b8376db24
docs(cli/dts): fix Deno.seek and Deno.seekSync examples ( #10568 )
2021-05-11 11:13:33 +09:00
Casper Beyer
60c172cccb
docs(cli/dts): fix Deno.run example ( #10567 )
2021-05-11 11:11:17 +09:00
Elias Sjögreen
f12b82e183
fix(cli): typings for Deno.os.arch
( #10541 )
2021-05-10 16:12:42 -04:00
crowlKats
dfe528198d
feat: add WebStorage API ( #7819 )
...
This commit introduces localStorage and sessionStorage.
2021-05-10 12:02:47 +02:00
Casper Beyer
ce76f8c3a9
docs: tag permission examples as ts ( #10506 )
2021-05-06 13:54:13 +02:00
迷渡
7e22987876
docs: env.get will return undefined
if not exist ( #10514 )
2021-05-06 19:45:36 +10:00