summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2020-03-04refactor: rewrite testPerm into unitTest (#4231)Bartek Iwańczuk
Rewrite "testPerm" helper function used for testing of internal runtime code. It's been renamed to "unitTest" and provides API that is extensible in the future by accepting optional "UnitTestOptions" argument. "test" helper was also removed and replaced by overloaded version of "unitTest" that takes only function argument. "UnitTestOptions" currently supports "perms" and "skip" options, where former works exactly as first argument to "testPerm" did, while the latter allows to conditionally skip tests.
2020-03-04Migrate internal bundles to System (#4233)Kitson Kelly
2020-03-04Fix `deno install` file name including extra dot on Windows (#4243)yuta0801
2020-03-03Disable flaky and broken tests (#4239)Ryan Dahl
2020-03-03add assertOps sanitizer in cli/js/ unit tests (#4209)Bartek Iwańczuk
* add "assertOps" test assertion which makes sure test case is not "leaking" ops - ie. after test finishes there are no pending async ops * apply "assertOps" to all tests in "cli/js/" * fix numerous tests leaking ops * document problem with edge case in "clearInterval" and "clearTimeout" implementation where they may leak async ops * move "cli/js/worker_test.ts" to "cli/tests/worker_test.ts" and run as integration test; workers leak ops because of missing "terminate" implementation
2020-03-03misc: reduce unnecesarry output in cli/js tests (#4182)Yusuke Sakurai
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-03-02Do not convert exceptions to JSON and back (#4214)Bert Belder
2020-03-02Fix JavaScript dependencies in bundles. (#4215)Kitson Kelly
Fixes #4602 We turned off `allowJs` by default, to keep the compiler from grabbing a bunch of files that it wouldn't actually do anything useful with. On the other hand, this caused problems with bundles, where the compiler needs to gather all the dependencies, including JavaScript ones. This fixes this so that when we are bundling, we analyse JavaScript imports in the compiler.
2020-03-02Rename Option -> Options (#4226)dubiousjim
* Rename MkdirOption interface to MkdirOptions It was hard to remember which Options interfaces were spelled in the singular and which in the plural (and anyway this one contained two options). Also added MkdirOptions to cli/js/deno.ts. All the analogous interfaces were exported there. * Rename RemoveOption interface to RemoveOptions This was the last remaining Option interface spelled in the singular. Easier to remember if they're all Option**s**; plus we may want to add extra options here later.
2020-03-02feat: update metrics to track different op types (#4221)Bartek Iwańczuk
2020-03-02refactor: rename structures related to Modules (#4217)Bartek Iwańczuk
* rename structures related to ES Modules; add "Modules" prefix * remove unneeded Unpin trait requirement for "ModuleLoader"
2020-03-02seek should return cursor position (#4211)bartOssh
2020-03-02Cleanup comments and internal variables (#4205)dubiousjim
2020-03-01Port Complex Permissions Tests to Rust (#4200)João Souto
2020-03-01feat(std/node): add os.tmpdir() implementation (#4213)ecyrbe
2020-03-01perf: use subarray instead of slice in dispatch minimal (#4180)Ryan Dahl
2020-03-01Make internel error frames dimmer (#4201)Kevin (Kun) "Kassimo" Qian
2020-02-29docs: fix broken Deno.write() example (#4190)Chris Knight
2020-02-29refactor(cli/js): Replace constructError() with getErrorClass() (#4189)Nayeem Rahman
Flattens dispatch error handling to produce one less useless stack frame on op errors.
2020-02-29add assertResources sanitizer to cli/js/ unit tests (#4161)Bartek Iwańczuk
2020-02-28v0.35.0Ryan Dahl
2020-02-28Revert "perf: use subarray instead of slice in dispatch minimal (#4173)" (#4174)Bartek Iwańczuk
This reverts commit 0eb91c5591eb7e5e419aa9dbdaff99f5bd8015da.
2020-02-28http_cache: change .headers.json to .metadata.json (#4175)Ryan Dahl
Add original URL to metadata. This is so the VS Code Plugin can reverse look up the URL for cache entries. Ref #4069.
2020-02-28perf: use subarray instead of slice in dispatch minimal (#4173)Bartek Iwańczuk
2020-02-28Clean up lib.deno.ns.d.ts JSDoc (#4170)Kitson Kelly
2020-02-28rewrite permission revoke test as integration test (#4164)Bartek Iwańczuk
2020-02-28Support TypeScript eval through `deno eval -T` flag (#4141)Kevin (Kun) "Kassimo" Qian
2020-02-28fetch_cached_remote_source support redirect URL without base (#4099)Kevin (Kun) "Kassimo" Qian
2020-02-27Revert "chore: share HTTP server between tests (#3966)" (#4165)Bartek Iwańczuk
This reverts commit e6167c78134182c45689bda7bcb12af05009349c.
2020-02-27Merge mod_evaluate() and mod_evaluate_dyn_import() methods (#4167)Bert Belder
2020-02-27Return non-zero exit code on malformed stdin fmt (#4163)Ryan Dahl
2020-02-27replace impl Future with poll_fn for net.rs, process.rs, tls.rs (#4158)Bartek Iwańczuk
2020-02-27feat: Support types compiler option in compiler APIs (#4155)Kitson Kelly
Handles `types` in the compiler APIs to make it easier to supply external type libraries.
2020-02-26rewrite normalize_path (#4143)Bartek Iwańczuk
Rewrite "normalize_path()" to remove all intermediate components from the path, ie. "./" and "../". It's very similar in functionality to fs::canonicalize(), however "normalize_path() doesn't resolve symlinks.
2020-02-26remove Read/Write futures, use poll_fn instead (#4150)Bartek Iwańczuk
2020-02-26stream output of js unit tests (#4146)Bartek Iwańczuk
2020-02-26Bundles can be sync or async based on top level await (#4124)Kitson Kelly
Previously, bundles always utilised top level await, even if the bundled modules didn't require top level await. Now, analysis of the bundle is done and if none of the bundled modules are asynchronously executed, then the bundle as a whole will be synchronously executed. Fixes #4055 Fixes #4123
2020-02-26DenoFlags -> Flags (#4136)Ryan Dahl
2020-02-26upgrade: dprint 0.7.0 (#4130)Ryan Dahl
* upgrade: dprint 0.7.0 Also make deno fmt less verbose (like cargo fmt)
2020-02-26Fix flaky tests (#4134)Ryan Dahl
2020-02-26add window.self read-only property (#4131)Bartek Iwańczuk
2020-02-26tty: Deno.setRaw(rid, mode) to turn on/off raw mode (#3958)Kevin (Kun) "Kassimo" Qian
2020-02-25Port permission_prompt_tests to Rust (#4129)João Souto
2020-02-25upgrade: TypeScript 3.8 (#4100)Kitson Kelly
2020-02-25Remove _async from method names since _sync are gone (#4128)Ryan Dahl
2020-02-25fix: Resolve makeTemp* paths from CWD (#4104)Nayeem Rahman
2020-02-25Clean up how we use opIds (#4118)Ryan Dahl
2020-02-25Fix issues with JavaScript importing JavaScript. (#4120)Kitson Kelly
Fixes #3852 Fixes #4117
2020-02-24fix: [http] Consume unread body and trailers before reading next request (#3990)Yusuke Sakurai
- Added `ServerRequest.finalize()`: consuming all unread body stream and trailers. - This is cleanup method for reading next request from same keep-alive connection. - Needed when handler didn't consume all body and trailers even after responding. - refactor: `ServerRequest._bodyStream()`, `ServerRequestBody` are removed. - Now using `bodyReader()` and `chunkedBodyReader()` instead. - fix: Trailers should only be read `transfer-encoding` is `chunked` and `trailer` header is set and its value is valid. - fix: use `Headers.append()` on reading trailers. - fix: delete `trailer` field from headers after reading trailers. - reorg: Several functions related to IO are moved into `http/io.ts`
2020-02-24Remove ansi_term dependency (#4116)João Souto