Bartek Iwańczuk
197a589a4a
fix Deno.iterSync() examples ( #4855 )
2020-04-22 18:36:04 -04:00
Ryan Dahl
e26c2cd7c8
Add comments in Reader/SyncReader about iter/iterSync ( #4852 )
2020-04-22 22:00:48 +02:00
Bartek Iwańczuk
68d287eed5
BREAKING CHANGE: rename Deno.toAsyncIterator() to Deno.iter() ( #4848 )
...
* rename Deno.toAsyncIterator() to Deno.iter()
* adds sync version Deno.iterSync()
* adds optional second argument for buffer size
2020-04-22 21:30:45 +02:00
Ryan Dahl
da6819a14c
Add comment distinguishing Deno.Buffer from Node's Buffer ( #4847 )
2020-04-22 14:26:16 -04:00
张超杰
08936c2efc
chore(docs): A space should be left after the single-line comment ( #4811 )
2020-04-22 10:21:05 -04:00
Kitson Kelly
8bcfc03d71
Rewrite streams ( #4842 )
2020-04-22 10:06:51 -04:00
张超杰
b270d6c8d0
typo
2020-04-21 16:11:52 -04:00
Ryan Dahl
cc1720132a
Move resource_table from deno::State to deno_core::Isolate ( #4834 )
2020-04-21 09:48:44 -04:00
Ryan Dahl
6e5f3453f8
Remove core/plugin.rs ( #4824 )
...
This simplifies the plugin interface in order to deliver op crates with a similar API
2020-04-20 10:27:15 -04:00
迷渡
ade05f3c00
fix(doc): Group ID ( #4803 )
2020-04-18 11:25:35 -04:00
EnokMan
47617e60d5
feat: startTLS ( #4773 )
2020-04-18 11:21:20 -04:00
迷渡
9d53a7a523
fix(doc): FileInfo.created
is creation time ( #4799 )
2020-04-18 00:05:33 -04:00
Gudmund Vatn
260084ccbf
Add close method to Plugin ( #4670 ) ( #4785 )
2020-04-17 12:51:10 +02:00
Bartek Iwańczuk
d359789c52
feat: support Deno namespace in Worker API ( #4784 )
2020-04-16 23:40:29 +02:00
Nayeem Rahman
5ac728a5f1
refactor(cli/js/ops/fs): Improve readdir() and FileInfo interfaces ( #4763 )
2020-04-16 01:40:30 -04:00
Ryan Dahl
fab0204cbf
Make writeSync, readSync, seekSync, openSync, isatty proper synchronous syscalls ( #4762 )
2020-04-15 20:43:19 -04:00
Kitson Kelly
cb64cf3ce2
Add support for AbortController/AbortSignal ( #4757 )
2020-04-15 10:10:49 -04:00
Nayeem Rahman
95eb6d780c
fix(cli/js/net): Make generator return types iterable ( #4661 )
2020-04-15 12:44:09 +02:00
Bartek Iwańczuk
e08ece2d2c
fix(worker): make worker name spec compliant ( #4746 )
2020-04-14 17:41:06 +02:00
Ryan Dahl
ff60b31129
dedup various type definitions ( #4741 )
...
FormData FilePropertyBag DomFile BlobPropertyBag RequestCache
RequestCredentials RequestDestination RequestMode RequestRedirect
ResponseType
2020-04-14 09:23:07 -04:00
Ryan Dahl
360c05ffe7
dedup Headers types ( #4736 )
2020-04-13 22:46:23 -04:00
Bartek Iwańczuk
2585b72c9b
feat: implement EventTarget for worker scope ( #4737 )
2020-04-13 22:18:31 +02:00
crowlKats
25bd6868e5
feat(worker): add MessageEvent, ErrorEvent and handling to Worker API ( #4391 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-04-13 18:34:32 +02:00
Nayeem Rahman
0ea6eb83a9
refactor(core/js_error): Align JSStackFrame with CallSite ( #4715 )
...
Renames and adds missing fields to JSStackFrame from CallSite. Fixes #4705 .
Cleans up base changes for line and column numbers.
2020-04-13 10:54:16 -04:00
Bartek Iwańczuk
5105c68399
workers: update postMessage and location types ( #4734 )
2020-04-13 16:48:12 +02:00
Khải
ef76389e42
Convert ProcessStatus to a tagged union ( #4732 )
2020-04-13 10:46:34 -04:00
迷渡
3a5dae4303
docs: highlight NO_COLOR ( #4723 )
2020-04-11 23:12:42 -04:00
Ryan Dahl
637a9ecd6a
dedup URLSearchParams, URL, Location, DOMStringList ( #4719 )
2020-04-11 17:19:36 -04:00
Ryan Dahl
da28fc1e7b
dedup type declarations ( #4718 )
...
Blob, BlobPart, BufferSource, ReferrerPolicy, BlobPart, AbortSignal, AbortSignalEventMap
2020-04-11 16:25:31 -04:00
Kitson Kelly
fc4819e1e0
refactor: Event and EventTarget implementations ( #4707 )
...
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-11 11:42:02 -04:00
Nayeem Rahman
2b362bef85
refactor(cli/fmt_errors): Format stack frames in prepareStackTrace() ( #4706 )
2020-04-11 02:08:11 -04:00
Ryan Dahl
2af9f5f2cf
Remove __domTypes namespace ( #4698 )
2020-04-10 14:24:42 -04:00
Nayeem Rahman
8b4508338b
fix(core/js_error): Get frame data from prepareStackTrace() ( #4690 )
...
Fixes: #2703
Fixes: #2710
Closes: #4153
Closes: #4232
Co-authored-by: Kevin (Kun) Kassimo Qian <kevinkassimo@gmail.com>
2020-04-10 18:26:52 +02:00
Ryan Dahl
02bc58d832
BREAKING: Make fetch API more web compatible ( #4687 )
...
- 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-10 09:51:17 -04:00
Bartek Iwańczuk
be71885628
implement Worker.terminate() and self.close() ( #4684 )
2020-04-10 00:15:17 +02:00
Chris Knight
2becae884e
BREAKING: Remove deprecated mkdir, mkdirSync APIs ( #4615 )
2020-04-09 11:15:56 -04:00
Nayeem Rahman
71ac552249
feat(cli/doc): Support doc for runtime built-ins ( #4635 )
2020-04-09 14:34:24 +02:00
Ryan Dahl
198a045dbe
Remove __event, __eventTarget, __customEvent namespaces ( #4683 )
2020-04-09 12:03:44 +02:00
Ryan Dahl
dd2d19b22d
Remove __blob and __console namespaces ( #4677 )
2020-04-08 13:21:04 -04:00
Ryan Dahl
fe17496831
Remove extra copy of URLSearchParams ( #4675 )
2020-04-08 10:32:08 -04:00
Ryan Dahl
b4836be57e
Remove __io namespace ( #4669 )
2020-04-08 01:30:51 +02:00
Ryan Dahl
f07fcfcc80
Remove __url namespace ( #4668 )
2020-04-07 17:11:38 -04:00
Ryan Dahl
6660fb25c9
Remove __workers namespace ( #4665 )
2020-04-07 15:03:14 -04:00
Ryan Dahl
51f5276e8c
Remove __textEncoding and __performanceUtil namespaces ( #4663 )
2020-04-07 13:27:37 -04:00
Ryan Dahl
62726430be
Remove __timers namespace ( #4662 )
2020-04-07 11:12:31 -04:00
Ondřej Žára
0ea9562933
docs: add README to cli/js/web/ ( #4578 )
2020-04-06 13:06:11 +02:00
crowlKats
6720a0dc02
feat: Add File support in FormData ( #4632 )
2020-04-05 15:49:04 -04:00
Parker Gabel
0db04d6a42
fix( #4546 ) Added Math.trunc to toSecondsFromEpoch to conform the result to u64 ( #4575 )
2020-04-03 15:20:40 -04:00
Yusuke Sakurai
2426174485
feat: Expose ReadableStream and make Blob more standardized ( #4581 )
...
Co-authored-by: crowlkats <crowlkats@gmail.com>
2020-04-03 14:55:23 -04:00
dubiousjim
c5c3abc517
adjust docs for Deno.seek ( #4610 )
2020-04-03 13:45:44 -04:00