summaryrefslogtreecommitdiff
path: root/cli/tests
AgeCommit message (Collapse)Author
2020-06-27fix(cli): Buffer.bytes() ArrayBuffer size (#6511)Marcos Casagrande
2020-06-26'Compile' messages changed to 'Check' messages (#6504)Ryan Dahl
2020-06-26feat(unstable): add Deno.fdatasyncSync and fdatasync (#6403)Casper Beyer
2020-06-26fix(cli/js/web/url): Support UNC paths on Windows (#6418)Nayeem Rahman
2020-06-26fix(cli): strings shouldn't be interpreted as file URLs (#6412)Casper Beyer
2020-06-26fix: Omit buildinfo when --reload passed (#6489)Kitson Kelly
2020-06-26Re-land "fix(cli): ipv6 parsing for --allow-net params" (#6472)Bartek Iwańczuk
With some minor adjustments
2020-06-25remove duplicate identifier (#6483)Ali Hasani
2020-06-25fix: panic when process stdio rid is 0 or invalid (#6405)Luca Casonato
2020-06-25Restore stats for incremental compile (#6474)Kitson Kelly
2020-06-25Fix readLinkSync and readLink tests on Windows (#6463)Casper Beyer
2020-06-25Remove stale comment referring to deleted code (#6462)Casper Beyer
2020-06-25refactor(cli/tests/unit) to use assertThrows (#6459)Casper Beyer
2020-06-25Revert "fix(cli): ipv6 parsing for --allow-net params (#6453)" (#6458)Bartek Iwańczuk
2020-06-24Incremental compilation for TypeScript (#6428)Bartek Iwańczuk
This commit adds incremental compilation capabilities to internal TS compiler. Instead of using "ts.createProgram()" API for compilation step (during deno startup), "ts.createIncrementalProgram()" API is used instead. Thanks to TS' ".tsbuildinfo" file that already stores all necessary metadata for compilation I was able to remove our own invention that is ".graph" file. ".tsbuildinfo" file is stored alongside compiled source and is used to cache-bust outdated dependencies, facilitated by the "version" field. The value for "version" field is computed in Rust during loading of module graph and is basically a hash of the file contents. Please keep in mind that incremental compilation is only used for initial compilation (or dynamic imports compilation) - bundling and runtime compiler APIs haven't been changed at all. Due to problems with source map I changed compilation settings to inline source map (inlineSourceMap instead of sourceMap).
2020-06-24fix(cli/js/web/console): Improve string quoting behaviour (#6457)Nayeem Rahman
2020-06-24fix(cli): ipv6 parsing for --allow-net params (#6453)Colin Harrington
Co-authored-by: Liming Jin <jinliming2@gmail.com>
2020-06-24Add ability to output compiler performance information (#6434)Kitson Kelly
2020-06-23fix(cli/web): Support URLSearchParam as Body (#6416)Chris Couzens
The following used to fail in Deno despite working in the browser: ```javascript new Request('http://localhost/', {method: 'POST', body: new URLSearchParams({hello: 'world'})}).text().then(console.log) ```
2020-06-22feat(unstable): add Deno.fstatSync and fstat (#6425)Casper Beyer
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-19build: lint cli/tests/unit using deno lint (#6327)Alan Gou
2020-06-18chore(test): move testing utilities to test_util crate (#6360)Bartek Iwańczuk
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-17chore: move fmt test to integration tests (#6340)Bartek Iwańczuk
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-16feat(std/hash): reimplement all hashes in WASM (#6292)skdltmxn
2020-06-15unixpacket should also return byte length on send (#6291)Peter Evers
2020-06-15fix(compiler): JSX compilation and provide better error message (#6300)Bartek Iwańczuk
2020-06-13fix: DatagramConn.send should return bytes sent (#6265)Kermit Xuan
2020-06-12refactor: Don't destructure the Deno namespace (#6268)Nayeem Rahman
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-12improve truncate tests (#6251)Casper Beyer
2020-06-12make std deno-lint clean (#6240)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-06-12fix(cli/js): broken truncate permission tests (#6249)Casper Beyer
The tests for testing that `Deno.truncateSync` and `Deno.truncate` require write permissions seem to not call the functions they are testing *at all* and are calling `Deno.mkdir` and `Deno.mkdirSync` instead. This commit replaces those calls with calls to `Deno.truncateSync` and `Deno.truncate` respectively.
2020-06-12update: deno_lint to v0.1.10 (#6248)Bartek Iwańczuk
* update: deno lint to v0.1.10 * Parallelize "deno lint" subcommand
2020-06-11feat: add Deno.osName() (#5714)Rubin Bhandari
2020-06-11feat: URL support in Deno filesystem methods (#5990)River
2020-06-11fix: WebAssembly runtime error propagation (#6137)Casper Beyer
Currently WebAssembly runtime errors don't propagate up to the user as they use urls to denote where the error occurred which get caught by the source-map pipeline which doesn't support the wasm scheme.
2020-06-11feat: allow reading the entry file from stdin (#6130)Jaap Aarts
2020-06-10feat: Add Deno.mainModule (#6180)John Gardner
2020-06-10feat(lint): use default globs, upgrade to v0.1.9 (#6222)Bartek Iwańczuk
This commit: * added default file globs so "deno lint" can be run without arguments (just like "deno fmt") * added test for globs in "deno lint" * upgrade "deno_lint" crate to v0.1.9
2020-06-10fix(URL): IPv6 hostname support (#5766)Josh Byrnes