Ryan Dahl
78bfeebad1
Revert "fix: Use # to denote line number in stack traces" ( #6119 )
...
This reverts commit c4c6a8dae4
There is some controversy about this change because vscode doesn't interpret the fragments correctly. Needs more discussion before landing.
2020-06-05 11:37:40 -04:00
Andrew Mitchell
c4c6a8dae4
fix: Use # to denote line number in stack traces ( #6114 )
...
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-05 08:01:02 -04:00
Chris Knight
1ebd330927
doc: complete unstable documentation and make consistent ( #6074 )
2020-06-03 13:46:09 -04:00
Marcos Casagrande
a1915a0d4f
fix(fetch): Support 101 status code ( #6059 )
2020-06-03 09:43:11 -04:00
Kitson Kelly
3fe6bc1b82
fix: Better use of @ts-expect-error ( #6038 )
2020-06-02 00:24:44 -04:00
Valentin Anger
becbb56b19
feat(core): Ops can take several zero copy buffers ( #4788 )
2020-06-01 14:20:47 -04:00
精武陈真
f0ba814a79
fix jsDoc ( #5992 )
2020-06-01 09:53:43 -04:00
Marcos Casagrande
29db4104c4
fix(cli/web): Body.bodyUsed should use IsReadableStreamDisturbed
2020-06-01 14:37:46 +02:00
Marcos Casagrande
1d3dce9a68
fix(cli/js/web): formData parser for binary files ( #6015 )
2020-06-01 14:32:08 +02:00
Marcos Casagrande
edeeedf401
fix(cli/fetch): set null body for null-body status ( #5980 )
2020-05-31 19:21:14 -04:00
Marcos Casagrande
08552fc6b9
fix(fetch): network error on multiple redirects ( #5985 )
2020-05-31 16:13:53 -04:00
Marcos Casagrande
ecb94c06e9
fix Headers.name and FormData.name ( #5994 )
2020-05-31 16:07:24 -04:00
Chris Knight
8b037364ac
doc: add/update jsdoc for global functions ( #5963 )
2020-05-30 11:19:16 -04:00
Nayeem Rahman
8e39275429
fix(cli/permissions): Fix CWD and exec path leaks ( #5642 )
2020-05-29 17:27:43 +02:00
Nayeem Rahman
49c7077401
fix(cli/js/error_stack): Expose Error.captureStackTrace ( #5254 )
2020-05-29 14:02:36 +02:00
Luca Casonato
02a6720527
Improved typechecking error for unstable props ( #5503 )
2020-05-29 12:45:20 +02:00
Kitson Kelly
2668637e9b
fix: REPL evaluates in strict mode ( #5565 )
...
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-29 12:24:06 +02:00
Peter Evers
fe7d6824c9
fix DenoBlob name ( #5879 )
2020-05-29 02:27:57 -04:00
Speykious
6d9b06619d
improve indentation when displaying objects with console.log ( #5909 )
2020-05-28 09:04:43 -04:00
Marcos Casagrande
c9bbb200d6
formData: set default filename for Blob to <blob> ( #5907 )
2020-05-28 09:02:00 -04:00
Kevin (Kun) "Kassimo" Qian
3cbcdd4250
console: Hide values
for console.table if display not necessary ( #5914 )
2020-05-28 08:30:32 -04:00
Kitson Kelly
228f9c207f
Use ts-expect-error instead of ts-ignore. ( #5869 )
2020-05-26 10:02:16 -04:00
Marcos Casagrande
08f74e1f6a
fix(cli/web/fetch): Make Response constructor standard ( #5787 )
2020-05-25 12:55:16 -04:00
Marcos Casagrande
1c4a9665e2
fix: Allow ArrayBuffer as Fetch request body ( #5831 )
2020-05-25 09:26:36 -04:00
Marcos Casagrande
c9f0e34e29
Improve bufferFromStream ( #5826 )
2020-05-25 09:14:01 -04:00
Marcos Casagrande
20bf04dc7e
Move getHeaderValueParams & hasHeaderValueOf to util.ts ( #5824 )
2020-05-25 09:12:09 -04:00
Valentin Anger
b7f0b073bb
Add unstable checks for unix transport ( #5818 )
...
Also remove the unix example from the stable documentation
to stay in line with the `Deno.listen` one
2020-05-24 09:43:40 -04:00
guzhongren
94f1de5f80
Fix example ( #5775 )
2020-05-23 10:16:57 -04:00
Luca Casonato
6feca0ef8b
Fix Deno.dir and Diagnostics being present at stable runtime ( #5750 )
2020-05-23 09:37:12 -04:00
Marcos Casagrande
28b651c2e2
Simplify isFiniteNonNegativeNumber ( #5686 )
2020-05-22 22:09:35 -04:00
Ergenekon Yiğit
4fa69e890e
fix: atob should throw dom exception ( #5730 )
2020-05-22 21:52:50 -04:00
Chris Knight
4b06e35765
doc: clarify and warn on Deno.read/write behaviour ( #5743 )
2020-05-22 12:56:12 -04:00
Bartek Iwańczuk
f9e45114b9
fix: redirects handling in module analysis ( #5726 )
...
This commit fixes a bug introduced in #5029 that caused bad
handling of redirects during module analysis.
Also ensured that duplicate modules are not downloaded.
2020-05-22 16:01:00 +02:00
Bhumij Gupta
88e8c32652
docd: Replace obsolete Deno.homeDir() with Deno.dir('home') ( #5708 )
2020-05-21 14:06:42 +02:00
Marcos Casagrande
47b089ffa8
fix: streams hwm validation ( #5681 )
2020-05-20 20:18:43 -04:00
Ryan Dahl
30702e2678
move js unit tests to cli/tests ( #5678 )
2020-05-20 17:52:51 -04:00
Bartek Iwańczuk
8799855fdc
refactor: reorganize TS compiler ( #5603 )
2020-05-20 16:25:40 +02:00
Speykious
9752b853dd
Provide better ANSI colorized output when inspecting objects ( #5404 )
2020-05-19 14:19:26 -04:00
uki00a
cdc9323ccc
fix: REPL does not exit properly when close() is called ( #5451 )
2020-05-19 13:33:11 -04:00
buckle2000
1be7ec47ac
Mark Deno.pid and Deno.noColor as const ( #5593 )
2020-05-18 21:51:54 -04:00
Ali Hasani
6072755ead
Implement Deno.symlink() for windows ( #5533 )
2020-05-19 00:46:02 +02:00
Nayeem Rahman
93c2164673
Fix URL encoding ( #5557 )
2020-05-18 09:47:45 -04:00
Ali Hasani
c3ec16535f
Make Deno.remove() work with directory symlinks on windows ( #5488 )
2020-05-18 14:50:44 +02:00
Ryan Dahl
2a038eafcd
Revert "Fix definition of URL constructor ( #5521 )" ( #5564 )
...
This reverts commit 63bc468365
.
2020-05-18 08:46:56 -04:00
Bartek Iwańczuk
9d63772fe5
refactor: rewrite TS dependency analysis in Rust ( #5029 )
...
This commit completely overhauls how module analysis is
performed in TS compiler by moving the logic to Rust.
In the current setup module analysis is performed using
"ts.preProcessFile" API in a special TS compiler worker
running on a separate thread.
"ts.preProcessFile" allowed us to build a lot of functionality
in CLI including X-TypeScript-Types header support
and @deno-types directive support. Unfortunately at the
same time complexity of the ops required to perform
supporting tasks exploded and caused some hidden
permission escapes.
This PR introduces "ModuleGraphLoader" which can parse
source and load recursively all dependent source files; as
well as declaration files. All dependencies used in TS
compiler and now fetched and collected upfront in Rust
before spinning up TS compiler.
To achieve feature parity with existing APIs this commit
includes a lot of changes:
* add "ModuleGraphLoader"
- can fetch local and remote sources
- parses source code using SWC and extracts imports, exports, file references, special
headers
- this struct inherited all of the hidden complexity and cruft from TS version and requires
several follow up PRs
* rewrite cli/tsc.rs to perform module analysis upfront and send all required source code to
TS worker in one message
* remove op_resolve_modules and op_fetch_source_files from cli/ops/compiler.rs
* run TS worker on the same thread
2020-05-18 12:59:29 +02:00
Bert Belder
36fde75d77
Miscellaneous documentation and spelling improvements ( #5527 )
...
* Extended/updated documentation on code editor setup and plugins.
* Moved documentation to the right file.
* Fixed spelling errors in documentation and code.
* Updated broken links.
Co-authored-by: 迷渡 <justjavac@gmail.com>
Co-authored-by: AlfieriChou <alfierichou@gmail.com>
Co-authored-by: Anil Seervi <anil13112000@gmail.com
Co-authored-by: Bert Belder <bertbelder@gmail.com>
Co-authored-by: Fernando Basso <fernandobasso.br@gmail.com>
Co-authored-by: József Sallai <jozsef@sallai.me>
Co-authored-by: S4ltyGo4t <mario.weidner@gmx.de>
Co-authored-by: Tommy May <tommymay37@gmail.com>
Co-authored-by: Turbinya <wownucleos@gmail.com>
Co-authored-by: ᴜɴвʏтᴇ <i@shangyes.net>
2020-05-17 19:24:39 +02:00
Ali Hasani
eddb916883
Implement Deno.kill for windows ( #5347 )
2020-05-17 19:11:24 +02:00
Masahiro Miyashiro (3846masa)
63bc468365
Fix definition of URL constructor ( #5521 )
2020-05-17 11:37:16 -04:00
Ali Hasani
6ffb8ee2c3
docs: update cli/js/tests README ( #5531 )
2020-05-17 12:14:37 +02:00
Siddharth Parmar
bfd4baf2d3
Fix formatting of example code in typescript declaration files ( #5475 )
2020-05-16 21:23:48 +02:00