1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
Commit graph

803 commits

Author SHA1 Message Date
William Perron
cd2f7ae69d
docs(std/log): add default values description (#9060) 2021-01-10 08:36:53 -05:00
Ryan Dahl
cb658f5ce5
Remove emoji from welcome script so it looks better on windows (#9031) 2021-01-07 05:51:15 -05:00
Zhangyuan Nie
03b121b235
fix(std/http): Use ES private fields in server (#8981) 2021-01-06 08:55:08 -05:00
Casper Beyer
f4b03a8887
BREAKING(std/wasi): return exit code from start (#9022)
This returns the exit code directly from the start entry point instead
of throwing it and letting the user handle it.

As a result the exit status is an implementation detail and has been
made internal.
2021-01-06 05:29:55 -05:00
Liam Murphy
4c4791b589
fix(std/node): resolve files in symlinked directories (#8840) 2021-01-06 00:42:40 +01:00
Casper Beyer
ee9c0c8373
BREAKING(std/wasi): make implementation details private (#8996)
This makes the implementation details of the Context class private,
making the public interface much more bare-bones and aligns it closer to
what Node exposes.
2021-01-05 18:14:42 +01:00
Kai Mallea
e192eda913
typo (#8998) 2021-01-05 11:24:24 -05:00
Casper Beyer
c823211a2c
feat(std/wasi): allow stdio resources to be specified (#8999) 2021-01-05 12:16:46 +01:00
Yacine Hmito
346b72ce70
docs: Remove outdated information about third_party/ directory (#8973) 2021-01-04 18:13:53 +01:00
Nayeem Rahman
62465ca4ee
fix(std): Don't use JSDoc syntax for browser-compatibility headers (#8960) 2021-01-02 10:17:01 -05:00
Noxazer
0163cedd80
fix(std/http): parsing of HTTP version header (#8902) 2020-12-31 00:17:41 +01: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
Bartek Iwańczuk
b07a0b640d
v1.6.3 2020-12-30 16:13:42 +01:00
Nayeem Rahman
268e47c0d8
fix(std/http): Don't expose ServerRequest::done as Deferred (#8919) 2020-12-29 20:22:09 -05:00
Yuki Tanaka
0e0ffa417b
chore(std/node/fs): Remove unnecessary try-catch (#8908) 2020-12-29 15:26:08 +01:00
Louis-Philippe Perron
34513c032c
feat(std/node): adds fs.mkdtemp & fs.mkdtempSync (#8604) 2020-12-28 21:58:58 +01:00
Bartek Iwańczuk
d199e45ad5
v1.6.2 2020-12-22 17:00:35 +01:00
MVEMCJSUNPE
7a9766dd18
feat(std/node): Added os.type (#8591) 2020-12-15 05:13:22 -05:00
Bartek Iwańczuk
b6d5ae1ecd
v1.6.1 2020-12-14 21:25:05 +01:00
xiaoxintang
89c14f79a4
fix(std/datetime): partsToDate (#8553) 2020-12-12 14:21:48 +01:00
Anh Hong
b8bc24d167
chore: fixed various misspellings and other typos (#8691) 2020-12-11 06:45:45 +11:00
Casper Beyer
5f05e1783e
docs(std/wasi): document ContextOptions (#8715) 2020-12-10 16:13:57 +01:00
Casper Beyer
b7faa27704
docs(std/wasi): add a basic description of Context (#8711) 2020-12-10 13:38:31 +01:00
Casper Beyer
77b2bc3bc1
fix(std/wasi): disallow multiple starts (#8712) 2020-12-10 13:37:09 +01:00
Casper Beyer
c5ccbf3699
test(std/wasi): run test runner with --no-check (#8710) 2020-12-10 13:36:07 +01:00
Casper Beyer
65c6a0306e
test(std/wasi): add a case for open directory/../.. (#8708) 2020-12-10 13:31:15 +01:00
tomholford
7cc7f1719b
docs: fix naming in std/io usage example (#8700)
Co-authored-by: tomholford <tomholford@users.noreply.github.com>
2020-12-10 14:22:09 +11:00
Bartek Iwańczuk
df87bf1d6a
v1.6.0 2020-12-08 15:37:45 +01:00
Nayeem Rahman
b77d6cb29e
chore(std): Remove tsconfig_test.json (#8629)
Ref #8050
2020-12-07 21:49:58 +11:00
Yosi Pramajaya
0b37a79060
BREAKING(std/bytes): Adjust APIs based on std-wg discussion (#8612) 2020-12-06 09:51:13 -05:00
Iván Canales
c10280214e
fix(std/bufio): Remove '\r' at the end of Windows lines (#8447)
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2020-12-05 17:41:16 +01:00
Liam Murphy
362be01abe
feat(std/node): Add "setImmediate" and "clearImmediate" to global scope (#8566)
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
2020-12-05 16:16:07 +01:00
Yuki Tanaka
d72310f139
fix(std/encoding): Rewrite toml parser not to use eval() (#8624) 2020-12-05 15:49:05 +01:00
Casper Beyer
4f0dc2c51d
refactor(std/wasi): prefer explicit encoder/decoder names (#8622)
This renames a couple of identifiers from the ambigious name "text" to
the more explicit textEncoder and textDecoder depending on what they are.
2020-12-05 15:47:01 +01:00
Benjamin Gruenbaum
71ef5a9cd3
feat(op_crates/web) EventTarget signal support (#8616)
Fixes: https://github.com/denoland/deno/issues/8606
2020-12-04 12:47:08 -05:00
Casper Beyer
ae21a9569b
refactor(std/wasi): prefer nullish coalescing (#8607) 2020-12-04 13:53:16 +01:00
Casper Beyer
0ea1c6f5b0
feat(std/wasi): add return on exit option (#8605)
This adds an exitOnReturn option to context making it 
possible to unwind the stack on the exit(2) syscall 
instead of delegating to it directly.

Use case is being able to treat WASI execution contexts 
as children that don't kill the parent on exit.
2020-12-03 19:57:35 +01:00
Casper Beyer
de036e1f08
feat(std/wasi): add support for initializing reactors (#8603)
This adds another entry point to Context called initialize for 
spinning up style modules.

Reactors are modules that don't have a main function and 
basically run forever in the background.
2020-12-03 19:36:13 +01:00
Behnam Mohammadi
6e03917b51
style(std/archive): add default value on argument (#8582) 2020-12-02 09:19:30 +11:00
Yasser A.Idrissi
447f3fe410
feat(std/http): Add Cookie value validation (#8471) 2020-12-01 14:23:03 +01:00
Liam Murphy
7a4d0fc22b
feat(std/fs): Re-enable followSymlinks on walk() (#8479) 2020-11-30 09:34:36 -05:00
Guy Bedford
ff3c5897ea
fix(std/node): Inline default objects to ensure correct prototype (#8513) 2020-11-27 13:40:11 -05:00
sarahdenofiletrav
28869a632d
fix(std/http): prevent path traversal (#8474)
Fix path traversal problem when the request URI 
does not have a leading slash.

The file server now returns HTTP 400 when requests 
lack the leading slash, and are not absolute URIs. 
(https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html).
2020-11-26 22:31:19 +01:00
crowlKats
2031418a24
feat(std/ws): protocol & version support (#8505)
Co-authored-by: Tom Wieland <tom.wieland@gmail.com>
2020-11-26 16:38:15 +01:00
Jesse Jackson
01e87119ea
fix(std/encoding/csv): Correct readme formatting due to dprint issues (#8503) 2020-11-26 15:52:45 +01:00
Steven Guerrero
9042fcc12e
feat(std/node/stream): Add Duplex, Transform, Passthrough, pipeline, finished and promises (#7940) 2020-11-26 13:50:08 +01:00
Jesse Jackson
ed11eb6687
feat(std/encoding/csv): Add stringify functionality (#8408) 2020-11-25 09:50:00 -05:00
ThenMorning
bfd1da4871
docs(std): add some missing JSDoc ws/mod.ts (#8428) 2020-11-25 13:53:24 +01:00
Steven Guerrero
355d5d3bba
feat(std/node): Port most of node errors (#7934) 2020-11-24 22:11:16 +01:00
Kitson Kelly
276f529755
feat(cli): update to TypeScript 4.1 (#7573) 2020-11-24 09:31:10 +11:00