summaryrefslogtreecommitdiff
path: root/cli/js
AgeCommit message (Collapse)Author
2020-04-27Rename FileInfo time fields and represent them as Date objects (#4932)Bert Belder
This patch also increases the resolution of reported file times to sub-millisecond precision.
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-27BREAKING: remove Deno.runTests() API (#4922)Bartek Iwańczuk
Deno.runTests() interface is not yet good enough to be exposed publicly with stability guarantees. This commit removes public API related to testing: Deno.runTests() and Deno.TestMessage, but keeps them exposed on Deno.internal object so they can be used with "deno test" subcommand.
2020-04-26Add buffer size argument to copy (#4907)Marcos Casagrande
2020-04-25BREAKING CHANGE: change return type of Deno.resources() (#4893)Bartek Iwańczuk
2020-04-25fix(cli/js/symbols): Update symbol descriptions (#4878)Nayeem Rahman
Don't use Symbol.for() to define Deno.symbols.customInspect.
2020-04-25introduce unstable flag, make a few things unstable (#4892)Ryan Dahl
2020-04-24chdir should require --allow-write (#4889)Ryan Dahl
2020-04-25remove bootstrap methods from global scope after bootstrapping (#4869)Bartek Iwańczuk
2020-04-25change type of stdio handles in JS api (#4891)Bartek Iwańczuk
2020-04-25BREAKING CHANGE: remove Deno.OpenMode (#4884)Bartek Iwańczuk
This commit removes Deno.OpenMode along with overloaded variants of Deno.open() and Deno.openSync() that used OpenMode.
2020-04-25BREAKING CHANGE: change order of args in Deno.copy() (#4885)Bartek Iwańczuk
2020-04-25add help messages to Deno.test() sanitizers (#4887)Bartek Iwańczuk
2020-04-25stabilize Deno.iter() and Deno.iterSync() (#4890)Bartek Iwańczuk
2020-04-24BREAKING CHANGE: rename Deno.fsEvents() to Deno.watchFs() (#4886)Bartek Iwańczuk
2020-04-24BREAKING CHANGE: rename TLS APIs to camel case (#4888)Bartek Iwańczuk
This commit renames all APIs containing "TLS" to use camel case (connectTLS -> connectTls, etc.)
2020-04-23fix(#2142) make URLSearchParams more standardized (#4695)Fenzland
2020-04-23refactor(cli/js/testing): Rename disableOpSanitizer to sanitizeOps (#4854)Nayeem Rahman
* rename disableOpSanitizer to sanitizeOps * rename disableResourceSanitizer to sanitizeResources
2020-04-22fix Deno.iterSync() examples (#4855)Bartek Iwańczuk
2020-04-22Add comments in Reader/SyncReader about iter/iterSync (#4852)Ryan Dahl
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-22Add comment distinguishing Deno.Buffer from Node's Buffer (#4847)Ryan Dahl
2020-04-22chore(docs): A space should be left after the single-line comment (#4811)张超杰
2020-04-22Rewrite streams (#4842)Kitson Kelly
2020-04-21typo张超杰
2020-04-21Move resource_table from deno::State to deno_core::Isolate (#4834)Ryan Dahl
2020-04-20Remove core/plugin.rs (#4824)Ryan Dahl
This simplifies the plugin interface in order to deliver op crates with a similar API
2020-04-18fix(doc): Group ID (#4803)迷渡
2020-04-18feat: startTLS (#4773)EnokMan
2020-04-18fix(doc): `FileInfo.created` is creation time (#4799)迷渡
2020-04-17Add close method to Plugin (#4670) (#4785)Gudmund Vatn
2020-04-16feat: support Deno namespace in Worker API (#4784)Bartek Iwańczuk
2020-04-16refactor(cli/js/ops/fs): Improve readdir() and FileInfo interfaces (#4763)Nayeem Rahman
2020-04-15Make writeSync, readSync, seekSync, openSync, isatty proper synchronous ↵Ryan Dahl
syscalls (#4762)
2020-04-15Add support for AbortController/AbortSignal (#4757)Kitson Kelly
2020-04-15fix(cli/js/net): Make generator return types iterable (#4661)Nayeem Rahman
2020-04-14fix(worker): make worker name spec compliant (#4746)Bartek Iwańczuk
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: implement EventTarget for worker scope (#4737)Bartek Iwańczuk
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-13refactor(core/js_error): Align JSStackFrame with CallSite (#4715)Nayeem Rahman
Renames and adds missing fields to JSStackFrame from CallSite. Fixes #4705. Cleans up base changes for line and column numbers.
2020-04-13workers: update postMessage and location types (#4734)Bartek Iwańczuk
2020-04-13Convert ProcessStatus to a tagged union (#4732)Khải
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-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