summaryrefslogtreecommitdiff
path: root/cli/js
AgeCommit message (Collapse)Author
2020-06-21core: add Deno.core.dispatchByName (#6395)Bartek Iwańczuk
This commit adds alternate dispatch method to core JS API. "Deno.core.dispatchByName()" works like "Deno.core.dispatch()", but takes op name instead of op id as a first argument.
2020-06-21feat(unstable): add Deno.fsyncSync and fsync (#6411)Casper Beyer
2020-06-20Remove Deno.dir and dirs dependency (#6385)Ryan Dahl
2020-06-20feat(unstable): add Deno.ftruncate and ftruncateSync (#6243)Casper Beyer
2020-06-19refactor(compiler): split code paths for compile and bundle (#6304)Bartek Iwańczuk
* refactor "compile" and "runtimeCompile" in "compiler.ts" and factor out separate methods for "compile" and "bundle" operations * remove noisy debug output from "compiler.ts" * provide "Serialize" implementations for enums in "msg.rs" * rename "analyze_dependencies_and_references" to "pre_process_file" and move it to "tsc.rs" * refactor ModuleGraph to use more concrete types and properly annotate locations where errors occur * remove dead code from "file_fetcher.rs" - "SourceFile.types_url" is no longer needed, as type reference parsing is done in "ModuleGraph" * remove unneeded field "source_path" from ".meta" files stored for compiled source file (towards #6080)
2020-06-19fix: "deno test" should respect NO_COLOR=true (#6371)uki00a
2020-06-18refactor(cli/web): use isTypedArray method (#6369)Marcos Casagrande
2020-06-18Deno.bundle supports targets < ES2017 (#6346)Ryan Dahl
This commit provides a "system_loader_es5.js" bundle loader which will be added to the bundle when the target is < ES2017, which is the minimum target syntax required for "system_loader.js". Supports #5913 (via Deno.bundle()) with a couple caveats: * Allowing "deno bundle" to take a different target is not supported, as we specifically ignore "target" when passed in a TypeScript config file. This is because deno bundle is really intended to generate bundles that work in Deno. It is an unintentional side effect that some bundles are loadable in browsers. * While a target of "es3" will be accepted, the module loader will still only be compatible with ES5 or later. Realistically no one should be expecting bundles generated by Deno to be used on IE8 and prior, and there is just too much "baggage" to support that at this point. This is a minor variation of 75bb9d, which exposed some sort of internal V8 bug. Ref #6358 This is 100% authored by Kitson Kelly. Github might change the author when landing so I'm leaving this in: Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-06-18fix: decode path properly on win32 (#6351)River
2020-06-17Revert "Deno.bundle supports targets < ES2017. (#6328)" (#6342)Bartek Iwańczuk
This reverts commit 75bb9dbdfc7f8b4e8d17978808ae575e61843aef.
2020-06-17Deno.bundle supports targets < ES2017. (#6328)Kitson Kelly
This commit provides a "system_loader_es5.js" bundle loader which will be added to the bundle when the target is < ES2017, which is the minimum target syntax required for "system_loader.js". Supports #5913 (via Deno.bundle()) with a couple caveats: * Allowing "deno bundle" to take a different target is not supported, as we specifically ignore "target" when passed in a TypeScript config file. This is because deno bundle is really intended to generate bundles that work in Deno. It is an unintentional side effect that some bundles are loadable in browsers. * While a target of "es3" will be accepted, the module loader will still only be compatible with ES5 or later. Realistically no one should be expecting bundles generated by Deno to be used on IE8 and prior, and there is just too much "baggage" to support that at this point.
2020-06-13fix: DatagramConn.send should return bytes sent (#6265)Kermit Xuan
2020-06-12feat: Add TestDefinition::only (#5793)Nayeem Rahman
2020-06-12Revert "feat: add Deno.osName()" (#6261)Ryan Dahl
Deno.build.os provides the same functionality This reverts commit 6ccf9037a6b36c81ea0e6ac12d0e2dbd793f6114.
2020-06-12doc: fix inspect example with correct InspectOptions (#6255)Chris Knight
2020-06-11feat: add Deno.osName() (#5714)Rubin Bhandari
2020-06-11feat: URL support in Deno filesystem methods (#5990)River
2020-06-10feat: Add Deno.mainModule (#6180)John Gardner
2020-06-10fix(URL): IPv6 hostname support (#5766)Josh Byrnes
2020-06-10fix: Remove try-catch from Buffer.readFrom, readFromSync (#6161)Casper Beyer
2020-06-10fix(cli/js/process): Always return a code in ProcessStatus (#5244)Nayeem Rahman
2020-06-10fix: several regressions in TS compiler (#6177)Bartek Iwańczuk
This commit fixes several regressions in TS compiler: * double compilation of same module during same process run * compilation of JavaScript entry point with non-JS imports * unexpected skip of emit during compilation Additional checks were added to ensure "allowJs" setting is used in TS compiler if JavaScript has non-JS dependencies.
2020-06-09feat(cli): Add Deno.env.delete() (#5859)Tuan Le
2020-06-09fix(cli/js/web/worker): Disable relative module specifiers (#5266)Nayeem Rahman
2020-06-09fix(cli/js/process): Strengthen socket types based on pipes (#4836)Nayeem Rahman
2020-06-08feat(cli/js/net): make rid on listener public (#5571)Peter Indiola
2020-06-08fix(cli/web/fetch): multipart/form-data request body support for binary ↵Marcos Casagrande
files (#5886)
2020-06-05Revert "fix: Use # to denote line number in stack traces" (#6119)Ryan Dahl
This reverts commit c4c6a8dae488a3473ee09b0e3a54943b706d8944 There is some controversy about this change because vscode doesn't interpret the fragments correctly. Needs more discussion before landing.
2020-06-05fix: Use # to denote line number in stack traces (#6114)Andrew Mitchell
This makes the URLs in stack traces actual URLs to the files. Before: https://deno.land/std/testing/asserts.ts:138:11 After: https://deno.land/std/testing/asserts.ts#138:11
2020-06-03doc: complete unstable documentation and make consistent (#6074)Chris Knight
2020-06-03fix(fetch): Support 101 status code (#6059)Marcos Casagrande
2020-06-02fix: Better use of @ts-expect-error (#6038)Kitson Kelly
2020-06-01feat(core): Ops can take several zero copy buffers (#4788)Valentin Anger
2020-06-01fix jsDoc (#5992)精武陈真
2020-06-01fix(cli/web): Body.bodyUsed should use IsReadableStreamDisturbedMarcos Casagrande
2020-06-01fix(cli/js/web): formData parser for binary files (#6015)Marcos Casagrande
2020-05-31fix(cli/fetch): set null body for null-body status (#5980)Marcos Casagrande
2020-05-31fix(fetch): network error on multiple redirects (#5985)Marcos Casagrande
2020-05-31fix Headers.name and FormData.name (#5994)Marcos Casagrande
2020-05-30doc: add/update jsdoc for global functions (#5963)Chris Knight
2020-05-29fix(cli/permissions): Fix CWD and exec path leaks (#5642)Nayeem Rahman
2020-05-29fix(cli/js/error_stack): Expose Error.captureStackTrace (#5254)Nayeem Rahman
2020-05-29Improved typechecking error for unstable props (#5503)Luca Casonato
2020-05-29fix: REPL evaluates in strict mode (#5565)Kitson Kelly
Since everything that Deno loads is treated as an ES Module, it means that all code is treated as "use strict" except for when using the REPL. This PR changes that so code in the REPL is also always evaluated with "use strict". There are also a couple other places where we load code as scripts which should also use "use strict" just in case.
2020-05-29fix DenoBlob name (#5879)Peter Evers
2020-05-28improve indentation when displaying objects with console.log (#5909)Speykious
2020-05-28formData: set default filename for Blob to <blob> (#5907)Marcos Casagrande
2020-05-28console: Hide `values` for console.table if display not necessary (#5914)Kevin (Kun) "Kassimo" Qian
2020-05-26Use ts-expect-error instead of ts-ignore. (#5869)Kitson Kelly
2020-05-25fix(cli/web/fetch): Make Response constructor standard (#5787)Marcos Casagrande