summaryrefslogtreecommitdiff
path: root/cli/js/tests
AgeCommit message (Collapse)Author
2020-05-20move js unit tests to cli/tests (#5678)Ryan Dahl
2020-05-19Provide better ANSI colorized output when inspecting objects (#5404)Speykious
2020-05-19Implement Deno.symlink() for windows (#5533)Ali Hasani
2020-05-18Fix URL encoding (#5557)Nayeem Rahman
2020-05-18Make Deno.remove() work with directory symlinks on windows (#5488)Ali Hasani
2020-05-17Implement Deno.kill for windows (#5347)Ali Hasani
2020-05-17docs: update cli/js/tests README (#5531)Ali Hasani
2020-05-14cli: don't panic on Deno.close invalid argument (#5320)Kevin (Kun) "Kassimo" Qian
2020-05-14Fix typos across the repo (#5295)Dante Calderón
Corrections made: * cli/js/tests/README.md:44:7: corrected "discoveres" to "discovers" * cli/js/tests/chown_test.ts:111:37: corrected "priviledge" to "privilege" * cli/worker.rs:231:56: corrected "decendants" to "descendants" * deno_typescript/lib.rs:136:50: corrected "emmited" to "emitted" * core/es_isolate.rs:492:67: corrected "registerd" to "registered" * core/isolate.rs:103:28: corrected "initalize" to "initialize" * docs/runtime.md:29:14: corrected "ect" to "etc" * docs/tools/debugger.md:122:16: corrected "implementes" to "implements" * std/encoding/_yaml/dumper/dumper_state.ts:57:63: corrected "everwhere" to "everywhere" * std/encoding/csv.ts:37:43: corrected "referal" to "referral" * std/fmt/sprintf.ts:209:20: corrected "unusuable" to "unusable" * std/fmt/README.md:21:40: corrected "Alternativly" to "Alternatively" * std/fmt/README.md:35:68: corrected "seperated" to "separated" * std/fmt/README.md:179:59: corrected "provded" to "provided" * std/mime/multipart.ts:581:46: corrected "writen" to "written" * std/path/_globrex.ts:19:52: corrected "equivelant" to "equivalent" * std/node/events_test.ts:447:9: corrected "asyncronous" to "asynchronous" * std/node/events_test.ts:475:9: corrected "asyncronous" to "asynchronous" * std/node/events_test.ts:500:29: corrected "asyncronous" to "asynchronous" * std/node/events_test.ts:530:40: corrected "asyncronous" to "asynchronous" * std/node/events_test.ts:555:9: corrected "asyncronous" to "asynchronous" * tools/deno_tcp_proxy.ts:1:42: corrected "perfromance" to "performance" * std/node/module.ts:1003:18: corrected "existend" to "existed"
2020-05-11Merge std_tests.rs into integration_tests.rs.rs (#5228)Ryan Dahl
* Remove usage of url_to_filename from integration_tests * Make test ports not conflict with each other
2020-05-09fix: Allow multiple Set-Cookie headers (#5100)Kitson Kelly
2020-05-06BREAKING: execPath should require allow-read (#5109)Ryan Dahl
2020-05-06Check destination length in encodeInto (#5078)Nikolai Vavilov
2020-05-05refactor(ts): remove op_cache (#5071)Bartek Iwańczuk
This PR removes op_cache and refactors how Deno interacts with TS compiler. Ultimate goal is to completely sandbox TS compiler worker; it should operate on simple request -> response basis. With this commit TS compiler no longer caches compiled sources as they are generated but rather collects all sources and sends them back to Rust when compilation is done. Additionally "Diagnostic" and its children got refactored to use "Deserialize" trait instead of manually implementing JSON deserialization.
2020-05-04feat(URL): Support drive letters for file URLs on Windows (#5074)Nayeem Rahman
refactor: Parse URLs more sequentially. This makes it easier to change matching behaviour depending on the protocol. fix: Fail when a host isn't given for certain protocols. fix: Convert back-slashes info forward-slashes.
2020-05-04stabilize Deno.cwd and require --allow-read (#5068)Ryan Dahl
2020-05-04fix: URL constructor throws confusing error on invalid scheme (#5057)Daniel Lenksjö
2020-05-04fix(console): formatting misalignment on console.table (#5046)木杉
2020-05-03Add TransformStream and TransformStreamController (#5042)Kitson Kelly
2020-05-02Deno.chdir should require allow-read not allow-write (#5033)Ryan Dahl
2020-05-01BREAKING: remove window.location and self.location (#5034)Bartek Iwańczuk
This commit removes "location" global available on "window", "globalThis" and "self".
2020-04-30feat: Add WritableStreams (and enable ReadableStreams piping) (#4980)Kitson Kelly
2020-04-29make camel case readDir, readLink, realPath (#4995)Ryan Dahl
2020-04-29BREAKING: remove custom implementation of Deno.Buffer.toString() (#4992)Bartek Iwańczuk
Keep in mind Buffer.toString() still exists, but returns [object Object]. Reason for removal of Buffer.toString() was that it implicitly used TextDecoder with fixed "utf-8" encoding and no way to customize the encoding.
2020-04-29BREAKING: Include limited metadata in 'DirEntry' objects (#4941)Bert Belder
This change is to prevent needed a separate stat syscall for each file when using readdir. For consistency, this PR also modifies std's `WalkEntry` interface to extend `DirEntry` with an additional `path` field.
2020-04-29BREAKING: Map-like interface for Deno.env (#4942)Valentin Anger
2020-04-28fix: bug in Deno.copy (#4977)Marcos Casagrande
2020-04-29refactor: Deno.listener closes when breaking out of async iterator (#4976)Bartek Iwańczuk
2020-04-28refactor: factor out datagram from Deno.listen(), make it unstable (#4968)Bartek Iwańczuk
This commit changes Deno.listen() API by factoring out datagram listeners to Deno.listenDatagram(). New Deno.listenDatagram() is unstable.
2020-04-28Remove Conn.closeRead (#4970)Ryan Dahl
2020-04-28BREAKING: Remove Deno.EOF, use null instead (#4953)Nayeem Rahman
2020-04-28BREAKING: address renamed to path in UnixAddr UnixConnectOptions ↵Ali Hasani
UnixListenOptions (#4959)
2020-04-28BREAKING: Use LLVM target triple for Deno.build (#4948)Ryan Dahl
Deno.build.os values have changed to correspond to standard LLVM target triples "win" -> "windows" "mac" -> "darwin"
2020-04-28url: Make zero a valid port (#4963)Marcos Casagrande
2020-04-28refactor: rename sync io interfaces (#4945)Bartek Iwańczuk
This commit renames sync io interfaces: * SyncReader -> ReaderSync * SyncWriter -> WriterSync * SyncSeeker -> SeekerSync
2020-04-28BREAKING: remove overload of Deno.test() (#4951)Bartek Iwańczuk
This commit removes overload of Deno.test() that accepted named function.
2020-04-28refactor: rename SeekMode variants to camelCase and stabilize (#4946)Bartek Iwańczuk
2020-04-28fix(#4769) Adds readTextFile, writeTextFile, with sync counterparts (#4901)Divya
2020-04-28Change URL.port implementation to match WHATWG specifications (#4954)Marcos Casagrande
Changed `URL.port` implementation to match [WHATWG specifications](https://url.spec.whatwg.org/#port-state). This PR matches the behaviour of other browsers: 1. a `TypeError` must be thrown when passing an URL with an invalid port to the constructor. 2. When setting an invalid port, using property setter, I haven't found what should happen in this case, so I mimic **Firefox** & **Node** behaviour. If an invalid port is set, it will use the previous value. **Chrome** sets the value to `'0'` if an invalid port is set. I prefer to keep the previous valid value. (I can use Chrome's behaviour if you think it's better, it's a simple value change) ``` url.port = '3000'; // valid url.port = 'deno'; // invalid assertEquals(url.port, '3000'); ``` 3. If the port value equals the current protocol default port value, `port` will be an empty string.
2020-04-28BREAKING: Remove Deno.symbols namespace (#4936)Nayeem Rahman
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-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-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-25stabilize Deno.iter() and Deno.iterSync() (#4890)Bartek Iwańczuk