1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-29 02:29:06 -05:00
Commit graph

822 commits

Author SHA1 Message Date
Bert Belder
98878bd812
refactor: IO resource types, fix concurrent read/write and graceful close (#9118)
Fixes: 9032.
2021-01-29 01:35:07 -08:00
Liam Murphy
06bd692e5c
fix(std/node): Stop callbacks being called twice when callback throws error (#8867) 2021-01-26 13:34:40 +01:00
Steven Guerrero
1f8b83ba1a
feat(std/node): Add support for process.on("exit") (#8940)
This commit adds support for process.on("exit") by appending a listener to
the unload event. Luckily, unload works pretty much the same as on("exit")
since it won't schedule any additional work in the even loop either.

This commit also solves an error in the Node implementation, since "process.argv"
didn't contained the main module route as it was supposed to.
2021-01-25 17:30:31 +01:00
Luca Casonato
e0eb111e3e
Revert "tests: enable wpt for url (#9046)" (#9264)
This reverts commit 66e99d349b.
2021-01-25 16:02:03 +01:00
Luca Casonato
66e99d349b
tests: enable wpt for url (#9046) 2021-01-24 22:29:36 +01:00
Liam Murphy
25830a1067
fix(std/node): replace uses of window with globalThis (#9237) 2021-01-24 02:17:06 +01:00
Nayeem Rahman
1518fabfbb
fix(std/async): make pooledMap() errors catchable (#9217) 2021-01-22 20:45:29 +09:00
Jesse Jackson
ffa920e4b9
Typo (#9221) 2021-01-21 20:09:07 -05:00
grian
47263ef6fa
docs(std/fmt): Add examples of colors.ts usage (#9159) 2021-01-20 15:48:57 +01:00
Ryan Dahl
0f7a02500c
v1.7.0 with release notes 2021-01-20 00:24:27 -05:00
Casper Beyer
6a50615e7c
test(std/node): ensure process.env case doesn't rely on unset variables (#9144) 2021-01-18 10:01:38 -05:00
Casper Beyer
12577f2d9a
test(std/node): avoid project directories for cwd case (#9148) 2021-01-18 07:39:35 -05:00
Bartek Iwańczuk
b26dcbc69d
chore: Enforce ban-untagged-todo lint rule (#9135) 2021-01-17 00:32:59 +01:00
Maxim Zhukov
215ad88baa
docs(std/bytes): fix typo in readme example (#9119) 2021-01-15 09:28:55 +01:00
Maxim Zhukov
ad21ac3115
docs(std/datetime): fix readme example (#9120) 2021-01-15 09:28:05 +01:00
Kitson Kelly
b8303c7812
refactor(op_crate/fetch): align streams to spec (#9103)
Fixes #8814
2021-01-15 08:57:19 +11:00
Yoshiya Hinosawa
f18ae461a8
chore: update copyright year (#9094) 2021-01-11 23:51:10 -08:00
Yusuke Tanaka
d8fd71afdf
chore: update copyright to 2021 (#9092) 2021-01-11 18:13:41 +01:00
Ryan Dahl
2b75a11559
update copyright to 2021 (#9081) 2021-01-10 21:59:07 -05:00
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