summaryrefslogtreecommitdiff
path: root/runtime/js
AgeCommit message (Collapse)Author
2021-04-12feat(runtime): add stat and statSync methods to Deno.File (#10107)Casper Beyer
2021-04-12feat(runtime): stabilize Deno.fstat and Deno.fstatSync (#10108)Casper Beyer
This commit stabilizes Deno.fstat and Deno.fstatSync which are well known system calls and have a stable interface.
2021-04-12feat: Add Deno.memoryUsage() (#9986)Aaron O'Mullan
2021-04-12fix(runtime/js/timers): Use (0, eval) instead of eval() (#10103)Nayeem Rahman
2021-04-11feat: stabilize Deno.ftruncate and Deno.ftruncateSync (#10126)Casper Beyer
This stabilizes Deno.ftruncate and Deno.ftruncateSync. This is a well known system call and the interface is not going to change. Implicitly requires write permissions as the file has to be opened with write to be truncated.
2021-04-10feat(unstable): ALPN config in listenTls (#10065)Luca Casonato
This commit adds the ability for users to configure ALPN protocols when calling `Deno.listenTls`.
2021-04-09API change: Deno.startHttp -> Deno.serveHttp (#10087)Ryan Dahl
2021-04-08feat: native HTTP bindings (#9935)Bartek Iwańczuk
Co-authered-by: Luca Casonato <lucacasonato@yahoo.com> Co-authered-by: Ben Noordhuis <info@bnoordhuis.nl> Co-authered-by: Ryan Dahl <ry@tinyclouds.org>
2021-04-08fix(core): error handling in examples (#9867)Inteon
2021-04-08fix(runtime/readFile*): close resources on error during read (#10059)Satya Rohith
This commit ensures readFile, readFileSync, readTextFile, and readTextFileSync does not leak resources on error.
2021-04-06chore: deprecate Deno.Buffer and read/write utils (#9793)Luca Casonato
This commit marks the `Deno.Buffer` / `Deno.readAll` / `Deno.readAllSync` / `Deno.writeAll` / `Deno.writeAllSync` utils as deprecated, and schedules them for removal in Deno 2.0. These utilities are implemented in pure JS, so should not be part of the Deno namespace. These utilities are now available in std/io/buffer and std/io/util: https://github.com/denoland/deno_std/pull/808. This additionallty removes all internal dependance on Deno.Buffer.
2021-04-05refactor: convert ops to use serde_v8 (#10009)Aaron O'Mullan
This commit rewrites most of the ops to use "serde_v8" instead of "json" serialization.
2021-04-03refactor: Switch op_now to be a json-op (#9974)Aaron O'Mullan
2021-03-21refactor(runtime/permissions): Rename permission structs (#9841)Nayeem Rahman
2021-03-20refactor: Move bin ops to deno_core and unify logic with json ops (#9457)Inteon
This commit moves implementation of bin ops to "deno_core" crates as well as unifying logic between bin ops and json ops to reuse as much code as possible (both in Rust and JavaScript).
2021-03-18chore(console): distinguish between log levels (#9824)Luca Casonato
Change `Console.#printFunc` to pass a log level as the second argument (0 = debug, 3 = error), instead of a boolean for `isErr`. This does not change the Deno runtime behaviour at all.
2021-03-18refactor: update minimal ops & rename to buffer ops (#9719)Inteon
This commit rewrites "dispatch_minimal" into "dispatch_buffer". It's part of an effort to unify JS interface for ops for both json and minimal (buffer) ops. Before this commit "minimal ops" could be either sync or async depending on the return type from the op, but this commit changes it to have separate signatures for sync and async ops (just like in case of json ops).
2021-03-12refactor: move Console to op_crates/console (#9770)Luca Casonato
2021-03-08fix(runtime/js): add navigator interface objects (#9685)Nayeem Rahman
2021-03-01feat: WebGPU API (#7977)crowlKats
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-02-26feat(runtime): stabilize Deno.symlink and Deno.symlinkSync (#9226)Casper Beyer
2021-02-25chore(core): optional args for registerErrorClass (#9602)Luca Casonato
2021-02-25feat(runtime): stabilize Deno.link and Deno.linkSync (#9417)Casper Beyer
This commit makes "Deno.link" and "Deno.linkSync" stable. The permission required has been changed to read-write to ensure one cannot escape the sandbox.
2021-02-25feat(runtime): stabilise permissions and add event target capabilities (#9573)Kitson Kelly
2021-02-24feat: add exit sanitizer to Deno.test (#9529)Casper Beyer
This adds an exit sanitizer to ensure that code being tested or dependencies of that code can't accidentally call "Deno.exit" leading to partial test runs and false results.
2021-02-21feat(unstable): per op metrics (#9240)Luca Casonato
2021-02-21fix(runtime/testing): false positive for timers when an error is thrown (#9553)Casper Beyer
2021-02-10fix(console): log function object properties / do not log non-enumerable ↵David DeSimone
props by default (#9363)
2021-02-09fix(op_crates): Don't use `Deno.inspect` in op crates (#9332)Nayeem Rahman
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-02-04chore: use strict mode for internal runtime, core, and op_crates js (#9391)Developing
2021-02-04refactor: rewrite File implementation (#9334)Luca Casonato
2021-01-30refactor: rewrite Blob implementation (#9309)Luca Casonato
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-01-29fix(cli): Move WorkerOptions::deno types to unstable (#9163)Nayeem Rahman
2021-01-29refactor: IO resource types, fix concurrent read/write and graceful close ↵Bert Belder
(#9118) Fixes: 9032.
2021-01-28chore: add jsdoc to 26_fetch.js and enable some fetch tests (#9305)Luca Casonato
2021-01-24fix(runtime/js): use DOMException in Performance#measure (#9142)Anonymous
2021-01-21fix(runtime): fix recursive dispatches of unload event (#9207)Yoshiya Hinosawa
2021-01-19feat(unstable): add Deno.resolveDns API (#8790)Yusuke Tanaka
2021-01-17fix(op_crates/web): Use WorkerLocation for location in workers (#9084)Nayeem Rahman
2021-01-17chore: Enforce ban-untagged-todo lint rule (#9135)Bartek Iwańczuk
2021-01-15refactor(op_crate/fetch): align streams to spec (#9103)Kitson Kelly
Fixes #8814
2021-01-14fix: don't swallow customInspect exceptions (#9095)Steven Guerrero
2021-01-12feat: stabilize Deno.shutdown() and Conn#closeWrite()Bartek Iwańczuk
Closes: #9099
2021-01-12fix(cli): dispatch unload on exit (#9088)Yoshiya Hinosawa
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-10update copyright to 2021 (#9081)Ryan Dahl
2021-01-10tests(wpt/console): Enables web platform tests for console (#9013)Tarik Eshaq
2021-01-08fix: Worker hangs when posting "undefined" as message (#8920)yonatan ben avraham
This commit fixes hang in web workers occuring when sending "undefined" as message value. It is a temporary band-aid until proper structured close is implemented. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-07feat: add --location=<href> and globalThis.location (#7369)Nayeem Rahman
2021-01-07fix: Use "none" instead of false to sandbox Workers (#9034)Nayeem Rahman