summaryrefslogtreecommitdiff
path: root/cli/js/web
AgeCommit message (Collapse)Author
2020-05-11fix: Expose ErrorEvent globally (#5222)Kitson Kelly
2020-05-09fix: Allow multiple Set-Cookie headers (#5100)Kitson Kelly
2020-05-08fix: correct type error text (#5150)Chris Knight
2020-05-06Check destination length in encodeInto (#5078)Nikolai Vavilov
2020-05-04feat(URL): Support drive letters for file URLs on Windows (#5074)Nayeem Rahman
refactor: Parse URLs more sequentially. This makes it easier to change matching behaviour depending on the protocol. fix: Fail when a host isn't given for certain protocols. fix: Convert back-slashes info forward-slashes.
2020-05-04fix: URL constructor throws confusing error on invalid scheme (#5057)Daniel Lenksjö
2020-05-04fix(console): formatting misalignment on console.table (#5046)木杉
2020-05-03Add TransformStream and TransformStreamController (#5042)Kitson Kelly
2020-05-01BREAKING: remove window.location and self.location (#5034)Bartek Iwańczuk
This commit removes "location" global available on "window", "globalThis" and "self".
2020-05-01Correct copyright in cli/js/web/decode_utf8.ts (#5035)Ryan Dahl
2020-04-30feat: Add WritableStreams (and enable ReadableStreams piping) (#4980)Kitson Kelly
2020-04-29feat(std/path): Add fromFileUrl() (#4993)Nayeem Rahman
Fix: URL constructor accepts a URL object which is not a base
2020-04-28refactor: change InspectOptions, make Deno.inspect stable (#4967)Bartek Iwańczuk
2020-04-28BREAKING: Remove Deno.EOF, use null instead (#4953)Nayeem Rahman
2020-04-28BREAKING: Use LLVM target triple for Deno.build (#4948)Ryan Dahl
Deno.build.os values have changed to correspond to standard LLVM target triples "win" -> "windows" "mac" -> "darwin"
2020-04-28url: Make zero a valid port (#4963)Marcos Casagrande
2020-04-28refactor: remove combined io interface like ReadCloser (#4944)Bartek Iwańczuk
This commit removes "combined" interfaces from cli/js/io.ts; in the like of "ReadCloser", "WriteCloser" in favor of using intersections of concrete interfaces.
2020-04-28Change URL.port implementation to match WHATWG specifications (#4954)Marcos Casagrande
Changed `URL.port` implementation to match [WHATWG specifications](https://url.spec.whatwg.org/#port-state). This PR matches the behaviour of other browsers: 1. a `TypeError` must be thrown when passing an URL with an invalid port to the constructor. 2. When setting an invalid port, using property setter, I haven't found what should happen in this case, so I mimic **Firefox** & **Node** behaviour. If an invalid port is set, it will use the previous value. **Chrome** sets the value to `'0'` if an invalid port is set. I prefer to keep the previous valid value. (I can use Chrome's behaviour if you think it's better, it's a simple value change) ``` url.port = '3000'; // valid url.port = 'deno'; // invalid assertEquals(url.port, '3000'); ``` 3. If the port value equals the current protocol default port value, `port` will be an empty string.
2020-04-28BREAKING: Remove Deno.symbols namespace (#4936)Nayeem Rahman
2020-04-27fix(console): don't throw RangeError when an invalid date is passed (#4929)uki00a
2020-04-27refactor: decouple Console implementation from stdout (#4899)Bartek Iwańczuk
When creating a console instance, one must pass "printFunc" arg which is used internally by Console to output messages. Due to numerous refactors there was a single method ("console.clear()") that used "Deno.stdout" instead of "printFunc". This commit unifies how "Console" outpus message, by using "printFunc" in all methods; consequently "Deno.stdout" is no longer imported in "cli/js/console.ts" making it a standalone module that doesn't depend on any CLI-specific APIs.
2020-04-25fix(cli/js/symbols): Update symbol descriptions (#4878)Nayeem Rahman
Don't use Symbol.for() to define Deno.symbols.customInspect.
2020-04-25change type of stdio handles in JS api (#4891)Bartek Iwańczuk
2020-04-23fix(#2142) make URLSearchParams more standardized (#4695)Fenzland
2020-04-22BREAKING CHANGE: rename Deno.toAsyncIterator() to Deno.iter() (#4848)Bartek Iwańczuk
* rename Deno.toAsyncIterator() to Deno.iter() * adds sync version Deno.iterSync() * adds optional second argument for buffer size
2020-04-22Rewrite streams (#4842)Kitson Kelly
2020-04-16feat: support Deno namespace in Worker API (#4784)Bartek Iwańczuk
2020-04-15Add support for AbortController/AbortSignal (#4757)Kitson Kelly
2020-04-14dedup various type definitions (#4741)Ryan Dahl
FormData FilePropertyBag DomFile BlobPropertyBag RequestCache RequestCredentials RequestDestination RequestMode RequestRedirect ResponseType
2020-04-13dedup Headers types (#4736)Ryan Dahl
2020-04-13feat(worker): add MessageEvent, ErrorEvent and handling to Worker API (#4391)crowlKats
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-04-13workers: update postMessage and location types (#4734)Bartek Iwańczuk
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-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-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-06docs: add README to cli/js/web/ (#4578)Ondřej Žára
2020-04-05feat: Add File support in FormData (#4632)crowlKats
2020-04-03feat: Expose ReadableStream and make Blob more standardized (#4581)Yusuke Sakurai
Co-authored-by: crowlkats <crowlkats@gmail.com>
2020-04-03make Worker.poll private (#4603)Bartek Iwańczuk
2020-03-31fix: invalid blob type (#4536)crowlKats
2020-03-30console: print promise details (#4524)Michał Sabiniarz
2020-03-30console: iterable printing improvements (#4472)Michał Sabiniarz
1. Array elements are now grouped the same as in Node.js 2. Limit to 100 (Node.js default) elements to display in iterable 3. Print each element in new line if excessing max line length (same as in Node.js) 4. Print length of the TypedArray 5. Print information about empty items in Array
2020-03-28Update to Prettier 2 and use ES Private Fields (#4498)Kitson Kelly
2020-03-25refactor: rename ConsoleOptions to InspectOptions (#4493)Chris Knight
2020-03-24console: replace object abbreviation with line breaking (#4425)Michał Sabiniarz
2020-03-20Add require-await lint rule (#4401)Samrith Shankar
2020-03-19perf: Optimize TextEncoder and TextDecoder (#4430)Bartek Iwańczuk
* add tests for "Deno.core.encode" and "Deno.core.decode" for empty inputs * use "Deno.core.encode" in "TextEncoder" * use "Deno.core.decode" in "TextDecoder" * remove "core_decode" and "core_encode" benchmarks
2020-03-19Simplify timer with macrotask callback (#4385)Kevin (Kun) "Kassimo" Qian