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
75d547809f
docs(cli/dts): fix Deno.startTls
example ( #10657 )
2021-05-17 18:44:07 +09: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
576f14baeb
docs(cli/dts): fix Deno.test permission examples ( #10571 )
2021-05-11 14:42:26 +09:00
Casper Beyer
ce76f8c3a9
docs: tag permission examples as ts ( #10506 )
2021-05-06 13:54:13 +02:00
Casper Beyer
f3751e498f
feat(cli): add test permissions to Deno.test ( #10188 )
...
This commits adds adds "permissions" option to the test definitions
which allows tests to run with different permission sets than
the process's permission.
The change will only be in effect within the test function, once the
test has completed the original process permission set is restored.
Test permissions cannot exceed the process's permission.
You can only narrow or drop permissions, failure to acquire a
permission results in an error being thrown and the test case will fail.
2021-04-25 23:38:59 +02:00
Nayeem Rahman
fb1ccc3d88
refactor(cli): rename Deno.emit() bundle options to "module" and "classic" ( #10332 )
2021-04-26 06:54:57 +10:00
Aaron O'Mullan
201185f9fb
fix(cli/dts): sleepSync doesn't return a Promise ( #10358 )
...
Per its name its synchronous for the current thread
2021-04-25 00:48:43 +02:00
Kitson Kelly
b6203cb465
revert: Conn type changes in #10012 and #10061 ( #10255 )
...
Fixes #10200 (again)
This reverts commit 9c7c9a35c1
and a8057e3e06
.
2021-04-20 10:12:33 +10:00
Kitson Kelly
9c7c9a35c1
fix( #10200 ): weaken types so non-breaking ( #10205 )
...
Fixes #10200
2021-04-16 22:34:29 +10:00
Nayeem Rahman
df49a8462c
fix(cli/dts): Make respondWith() return a Promise ( #10128 )
2021-04-13 07:41:47 -04:00
crowlKats
a8057e3e06
feat(cli/dts): stricter typings for Listener & Conn ( #10012 )
2021-04-13 13:33:17 +02:00
Casper Beyer
875ac73f1e
feat(runtime): stabilize Deno.fstat and Deno.fstatSync ( #10108 )
...
This commit stabilizes Deno.fstat and Deno.fstatSync
which are well known system calls and have a stable interface.
2021-04-12 11:27:38 +02:00
Aaron O'Mullan
bf99039ea9
feat: Add Deno.memoryUsage() ( #9986 )
2021-04-12 10:47:44 +02:00
Casper Beyer
f5a9474952
feat: stabilize Deno.ftruncate and Deno.ftruncateSync ( #10126 )
...
This stabilizes Deno.ftruncate and Deno.ftruncateSync.
This is a well known system call and the interface is
not going to change. Implicitly requires write permissions
as the file has to be opened with write to be truncated.
2021-04-11 14:05:22 +02:00
Luca Casonato
8d55d8b6be
feat(unstable): ALPN config in listenTls ( #10065 )
...
This commit adds the ability for users to configure ALPN protocols when
calling `Deno.listenTls`.
2021-04-10 22:04:44 +02:00
Nayeem Rahman
dc4ab98ee7
fix(cli/diagnostics): Update UNSTABLE_DENO_PROPS ( #10095 )
2021-04-10 02:41:59 +02:00
Ryan Dahl
c6e7a243d5
API change: Deno.startHttp -> Deno.serveHttp ( #10087 )
2021-04-09 11:54:27 -04:00
Bartek Iwańczuk
70af812876
feat: native HTTP bindings ( #9935 )
...
Co-authered-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authered-by: Ben Noordhuis <info@bnoordhuis.nl>
Co-authered-by: Ryan Dahl <ry@tinyclouds.org>
2021-04-08 18:34:15 -04:00
Yoshiya Hinosawa
cbaa054154
docs: export EmitOptions and EmitResult ( #10037 )
2021-04-06 22:33:02 +09:00
defectivepixel
2d7fdb0a19
chore(cli): fix futime and futimeSync code examples ( #9953 )
2021-04-02 08:53:31 +11:00
Casper Beyer
2ac7798a20
feat(runtime): stabilize Deno.symlink and Deno.symlinkSync ( #9226 )
2021-02-26 01:13:48 +01:00
Casper Beyer
aa47f8186c
feat(runtime): stabilize Deno.link and Deno.linkSync ( #9417 )
...
This commit makes "Deno.link" and "Deno.linkSync" stable.
The permission required has been changed to read-write to
ensure one cannot escape the sandbox.
2021-02-25 18:35:10 +01:00
Kitson Kelly
097e9c44f4
feat(runtime): stabilise permissions and add event target capabilities ( #9573 )
2021-02-25 14:33:09 +11:00
Luca Casonato
9d70ea2e9f
feat(unstable): per op metrics ( #9240 )
2021-02-21 19:20:31 +01:00
Yusuke Tanaka
18b2dbf0d0
fix(dts): update doc of Deno.formatDiagnostics ( #9564 )
2021-02-21 16:17:27 +01:00
Kitson Kelly
7e9028b532
feat(cli): Deno.emit supports bundling as IIFE ( #9291 )
...
Closes #9204
2021-02-16 12:02:00 +11:00
Nayeem Rahman
daad575825
fix(cli): Move WorkerOptions::deno types to unstable ( #9163 )
2021-01-29 08:15:59 -05:00
Yusuke Tanaka
0ef8c915c0
feat(unstable): add Deno.resolveDns API ( #8790 )
2021-01-19 09:39:04 -05:00
Bartek Iwańczuk
8142496c57
feat: stabilize Deno.shutdown() and Conn#closeWrite()
...
Closes: #9099
2021-01-12 16:17:31 -08:00
Yusuke Tanaka
d8fd71afdf
chore: update copyright to 2021 ( #9092 )
2021-01-11 18:13:41 +01:00
Mo
3e5a3daf59
BREAKING(unstable): remove CreateHttpClientOptions.caFile ( #8928 )
2021-01-04 16:55:20 +01:00
Kitson Kelly
012f99bd9a
refactor(cli): runtime compiler APIs consolidated to Deno.emit() ( #8799 )
...
Closes: #4752
2021-01-01 08:43:54 +11:00
Nayeem Rahman
22e0ee92a6
BREAKING(unstable): Use hosts for net allowlists ( #8845 )
...
Allowlist checking already uses hosts but for some reason
requests, revokes and the runtime permissions API use URLs.
- BREAKING(lib.deno.unstable.d.ts): Change
NetPermissionDescriptor::url to NetPermissionDescriptor::host
- fix(runtime/permissions): Don't add whole URLs to the
allowlist on request
- fix(runtime/permissions): Harden strength semantics:
({ name: "net", host: "127.0.0.1" } is stronger than
{ name: "net", host: "127.0.0.1:8000" }) for blocklisting
- refactor(runtime/permissions): Use tuples for hosts, make
the host optional in Permissions::{query_net, request_net, revoke_net}()
2020-12-30 23:35:28 +01:00
Waldir Pimenta
b778f8bbff
docs(introduction): Improve wording and capitalization ( #8848 )
2020-12-29 10:05:29 +11:00
yonatan ben avraham
afbd19ed9b
feat(unstable): support in memory certificate data for Deno.createHttpClient ( #8739 )
2020-12-19 23:13:48 +01:00
Andrew Mitchell
c05615d670
docs: Remove a deprecated function from docstring for Deno.permissions ( #8729 )
2020-12-12 13:15:50 +01:00
Marcus Hultman
c7276e15e5
feat(unstable): add cbreak option to setRaw ( #8383 )
2020-11-30 11:08:03 -05:00
Chayim Refael Friedman
f42adf2277
docs: Add missing closing parenthesis ( #8477 )
2020-11-25 12:54:38 +01:00