Ryan Dahl
8a4533eb75
feat: deno eval -p ( #5682 )
2020-06-06 09:07:59 -04:00
Casper Beyer
ed5aedc6b4
Rename abbreviated assertions in std/testing ( #6118 )
2020-06-05 23:43:00 -04:00
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
Bert Belder
9a783ae4e6
ci: upgrade to Rust 1.44.0 ( #6113 )
2020-06-05 05:11:15 +02:00
Ryan Dahl
e3cc3db20f
Revert "feat: format deno bundle output ( #5139 )" ( #6085 )
...
This reverts commit 93cf3bd534
.
2020-06-04 08:36:25 -04:00
Marcos Casagrande
a1915a0d4f
fix(fetch): Support 101 status code ( #6059 )
2020-06-03 09:43:11 -04:00
Ryan Dahl
23dc9c13db
Fix REPL BorrowMutError panic ( #6055 )
2020-06-02 16:37:52 -04:00
Kitson Kelly
3fe6bc1b82
fix: Better use of @ts-expect-error ( #6038 )
2020-06-02 00:24:44 -04:00
Bartek Iwańczuk
c813990806
fix: compile TS dependencies of JS files ( #6000 )
...
This commit fixes regression that caused TS dependencies
not being compiled.
Check was added that ensures TS compiler is run if
any of dependencies in module graph is TS/TSX/JSX.
2020-06-01 21:01:51 +02: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
Bartek Iwańczuk
02d46bae9f
fix: media type for .cjs and application/node ( #6005 )
2020-05-31 21:08:26 +02:00
uki00a
464f5bf769
chore(cli/tests/unit/remove_test): remove duplicate codes between sync and async cases ( #6004 )
2020-05-31 13:19:56 -04:00
uki00a
64bd2768f7
fix( #4850 ): Deno.remove() fails to remove unix socket ( #5967 )
2020-05-30 14:48:26 -04:00
Bartek Iwańczuk
550556e948
fix: ES private fields parsing in SWC ( #5964 )
2020-05-30 17:32:48 +02:00
Marcos Casagrande
a82f24e9a8
test to check that resource handle is closed after stream is cancelled ( #5956 )
2020-05-30 01:02:41 -04:00
Nayeem Rahman
8e39275429
fix(cli/permissions): Fix CWD and exec path leaks ( #5642 )
2020-05-29 17:27:43 +02:00
Bartek Iwańczuk
ad6d2a7734
refactor: TS compiler and module graph ( #5817 )
...
This PR addresses many problems with module graph loading
introduced in #5029 , as well as many long standing issues.
"ModuleGraphLoader" has been wired to "ModuleLoader" implemented
on "State" - that means that dependency analysis and fetching is done
before spinning up TS compiler worker.
Basic dependency tracking for TS compilation has been implemented.
Errors caused by import statements are now annotated with import
location.
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-05-29 16:32:15 +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
Adam Odziemkowski
958f21e7ab
fix(cli): write lock file before running any code ( #5794 )
2020-05-29 02:43:31 -04:00
Peter Evers
fe7d6824c9
fix DenoBlob name ( #5879 )
2020-05-29 02:27:57 -04:00
uki00a
55311c33c4
chore(integration_tests): stop collecting unnecessary output in permissions tests ( #5926 )
2020-05-28 19:40:33 -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
Marcos Casagrande
f8c6500eef
test(clie/web/fetch): Re-enable tests ( #5904 )
2020-05-27 16:37:19 -04:00
Kitson Kelly
228f9c207f
Use ts-expect-error instead of ts-ignore. ( #5869 )
2020-05-26 10:02:16 -04:00
Bartek Iwańczuk
f462f7fe54
fix: parsing of JSX and TSX in SWC ( #5870 )
2020-05-26 15:41:00 +02:00
Marcos Casagrande
4e92ef7dc9
Add more tests for fetch response body ( #5852 )
2020-05-25 16:20:09 -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
Bert Belder
131f2a5f0c
fix: BorrowMutError when evaluating expression in inspector console ( #5822 )
...
Note that this does not fix the 'Uncaught ReferenceError' issue that
happens when 'eager evaluation' is enabled in the inspector.
Fixes: #5807
2020-05-25 04:26:33 +02:00
Bert Belder
ee0b5bb89e
test: add utility function for assigning unique port to inspector ( #5822 )
2020-05-25 02:41:59 +02:00
Andrew Mitchell
4ca0d6e2d3
Re-enable several fetch tests ( #5803 )
2020-05-24 12:04:57 -04:00
Bartek Iwańczuk
c3c16f025c
fix: TSX analysis in module graph loader ( #5785 )
2020-05-23 19:04:29 +02:00
Bartek Iwańczuk
960f9ccb2e
fix: SWC lexer settings and silent errors ( #5752 )
...
This commit changes how error occurring in SWC are handled.
Changed lexer settings to properly handle TS decorators.
Changed output of SWC error to annotate with position in file.
2020-05-22 19:23:35 +02:00
Bartek Iwańczuk
e191c70989
fix: ts type imports ( #5733 )
2020-05-22 19:05:18 +02: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
Bartek Iwańczuk
491feb859f
fix: --inspect flag working like --inspect-brk ( #5697 )
2020-05-21 20:34:25 +02:00
Colin Harrington
aea5b12bae
ci: Errors in benchmarks should fail CI ( #5422 )
2020-05-21 13:08:43 +02:00
Bartek Iwańczuk
5f9c1c7da6
fix: disallow http imports for modules loaded over https ( #5680 )
2020-05-21 13:06:12 +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
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