summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-12add copyFile & copyFileSync to std/node/fs (#4726)Ali Hasani
2020-04-12refactor(std/multipart): make readForm() return value more type safe (#4710)Yusuke Sakurai
2020-04-11docs: highlight NO_COLOR (#4723)迷渡
2020-04-11dedup URLSearchParams, URL, Location, DOMStringList (#4719)Ryan Dahl
2020-04-11dedup type declarations (#4718)Ryan Dahl
Blob, BlobPart, BufferSource, ReferrerPolicy, BlobPart, AbortSignal, AbortSignalEventMap
2020-04-11deno install should also accept log level flags for installed script (#4714)David Yamnitsky
2020-04-11refactor: Event and EventTarget implementations (#4707)Kitson Kelly
Refactors Event and EventTarget so that they better encapsulate their non-public data as well as are more forward compatible with things like DOM Nodes. Moves `dom_types.ts` -> `dom_types.d.ts` which was always the intention, it was a legacy of when we used to build the types from the code and the limitations of the compiler. There was a lot of cruft in `dom_types` which shouldn't have been there, and mis-alignment to the DOM standards. This generally has been eliminated, though we still have some minor differences from the DOM (like the removal of some deprecated methods/properties). Adds `DOMException`. Strictly it shouldn't inherit from `Error`, but most browsers provide a stack trace when one is thrown, so the behaviour in Deno actually better matches the browser. `Event` still doesn't log to console like it does in the browser. I wanted to get this raised and that could be an enhancement later on (it currently doesn't either).
2020-04-11refactor(cli/fmt_errors): Format stack frames in prepareStackTrace() (#4706)Nayeem Rahman
2020-04-10Replace panic with invalid_utf8 OpError (#4704)gewoonwoutje
Co-authored-by: Wout Elstgeest <w.elstgeest@inepro.com>
2020-04-10remove unnecessary delay in std/signal tests (#4703)Chris Knight
2020-04-10Remove __domTypes namespace (#4698)Ryan Dahl
2020-04-10fix(core/js_error): Get frame data from prepareStackTrace() (#4690)Nayeem Rahman
Fixes: #2703 Fixes: #2710 Closes: #4153 Closes: #4232 Co-authored-by: Kevin (Kun) Kassimo Qian <kevinkassimo@gmail.com>
2020-04-10fix(std/http): verify cookie name & update SameSite type (#4685)木杉
2020-04-10fix(std/testing/asserts): change left/right to actual/expected (#4697)Chris Knight
2020-04-10feat(std/signal): add utility for listening to signal events (#4696)Chris Knight
2020-04-10BREAKING: Make fetch API more web compatible (#4687)Ryan Dahl
- Removes the __fetch namespace from `deno types` - Response.redirect should be a static. - Response.body should not be AsyncIterable. - Disables the deno_proxy benchmark - Makes std/examples/curl.ts buffer the body before printing to stdout
2020-04-10implement Worker.terminate() and self.close() (#4684)Bartek Iwańczuk
2020-04-09Fix build - 2becae broke CI (#4686)Ryan Dahl
2020-04-09BREAKING: Remove deprecated mkdir, mkdirSync APIs (#4615)Chris Knight
2020-04-09feat(cli/doc): Support doc for runtime built-ins (#4635)Nayeem Rahman
2020-04-09feat(std/log): improvements and new log handler (#4674)Chris Knight
2020-04-09Remove __event, __eventTarget, __customEvent namespaces (#4683)Ryan Dahl
2020-04-08feat(std/node): add isPrimitive (#4673)Ali Hasani
2020-04-08feat(std/node): add fs.mkdir functions and fs.exists tests (#4660)Ali Hasani
2020-04-08v0.40.0Ryan Dahl
2020-04-08upgrade: rust crates (#4679)Ryan Dahl
2020-04-08Remove __blob and __console namespaces (#4677)Ryan Dahl
2020-04-08feat(doc): handle function params and type params (#4672)Bartek Iwańczuk
2020-04-08Remove extra copy of URLSearchParams (#4675)Ryan Dahl
2020-04-08Remove panic catch around dprint calls (#4676)Ryan Dahl
dprint seems to be stable enough to not panic on our own source code now.
2020-04-08Remove __io namespace (#4669)Ryan Dahl
2020-04-07Remove __url namespace (#4668)Ryan Dahl
2020-04-07Remove __workers namespace (#4665)Ryan Dahl
2020-04-07feat(doc): handle basic reexports (#4625)Bartek Iwańczuk
2020-04-07Remove __textEncoding and __performanceUtil namespaces (#4663)Ryan Dahl
2020-04-07BREAKING: Rename 'deno fetch' subcommand to 'deno cache' (#4656)Akshat Agarwal
2020-04-07Remove __timers namespace (#4662)Ryan Dahl
2020-04-07file_server: use text/typescript instead of application/typescript (#4620)木杉
I just tried it and found that using application/typescript, the browser will download the file directly, I think that .ts should be mapped to application/javascript or text/typescript
2020-04-07feat(std/http/server): Respond with 400 on request parse failure (#4614)Nayeem Rahman
2020-04-07feat: add --importmap flag to deno bundle (#4651)Bartek Iwańczuk
2020-04-06Add exists and existsSync to std/node (#4655)Ali Hasani
2020-04-06Remove media_types from std/README.md (#4650)Ali Hasani
2020-04-06fix: fetch reference types for JS files (#4652)Giorgi Rostomashvili
Fixes #4000 and fixes #4476. Now always tries to fetch reference types for JS files. Does not throw if it fails, since Typescript compiler will complain if the file is not there(it will try to fetch it again first) and people who just use JS should not be bothered by this error. Not sure about my test, it passes and catches the bug but maybe there is a better way to express it.
2020-04-06remove std/testing/runner.ts (#4649)Bartek Iwańczuk
2020-04-06fix: test_create_cache_if_dir_not_exit (#4636)Yusuke Sakurai
This test doesn't remove created directory after test. It will fail on next run.
2020-04-06Drop headers with trailing whitespace in header name (#4642)Andrew Stucki
This relates directly to [an issue](https://github.com/denoland/deno_std/issues/620) that I initially raised in `deno_std` awhile back, and was reminded about it today when the `oak` project popped up on my github recommended repos. As of now Deno's http servers are vulnerable to the same underlying issue of go CVE-2019-16276 due to the fact that it's based off of ported go code from their old standard library. [Here's the commit that fixed the CVE.](https://github.com/golang/go/commit/6e6f4aaf70c8b1cc81e65a26332aa9409de03ad8) Long story short, some off the shelf proxies and caching servers allow for passing unaltered malformed headers to backends that they're fronting. When they pass invalid headers that they don't understand this can cause issues with HTTP request smuggling. I believe that to this date, this is the default behavior of AWS ALBs--meaning any server that strips whitespace from the tail end of header field names and then interprets the header, when placed behind an ALB, is susceptible to request smuggling. The current behavior is actually specifically called out in [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4) as something that MUST result in a rejected message, but the change corresponding to this PR, is more lenient and what both go and nginx currently do, and is better than the current behavior.
2020-04-06feat(std/flags): pass key and value to unknown (#4637)Andreas
2020-04-06docs: add README to cli/js/web/ (#4578)Ondřej Žára
2020-04-05feat: Add File support in FormData (#4632)crowlKats
2020-04-04Enable inspector tests (#4628)Andres Villegas