Bartek Iwańczuk
2872b362ff
BREAKING: disallow static import of local modules from remote modules ( #5050 )
...
This commit changes module loading logic to disallow statically import
local module (file:// scheme) from remote modules (http://, https://
schemes).
2020-05-02 15:51:08 +02:00
Bartek Iwańczuk
de2c042482
BREAKING: remove support for JSON imports ( #5037 )
...
This commit removes support for importing JSON files as modules.
This change is dictated by security; browsers rolled back on this
support as well.
2020-05-02 00:32:05 +02:00
Nayeem Rahman
96fd0f4692
BREAKING: feat(cli/installer): Support guessing the executable name ( #5036 )
2020-05-01 15:33:11 -04:00
Bartek Iwańczuk
6661e7e287
BREAKING: remove window.location and self.location ( #5034 )
...
This commit removes "location" global available on "window",
"globalThis" and "self".
2020-05-01 20:15:28 +02:00
Fenzland
25b765c123
fix misaligned error reporting on tab char ( #5032 )
2020-05-01 13:03:54 -04:00
Luca Casonato
80e2211141
Unstable methods should not appear in runtime or d.ts ( #4957 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-04-30 11:23:40 -04:00
Valentin Anger
721a4ad59d
BREAKING: Map-like interface for Deno.env ( #4942 )
2020-04-29 14:48:19 -04:00
Nayeem Rahman
678313b176
BREAKING: Remove Deno.EOF, use null instead ( #4953 )
2020-04-28 12:40:43 -04:00
Bartek Iwańczuk
8feb30e325
BREAKING: remove overload of Deno.test() ( #4951 )
...
This commit removes overload of Deno.test() that accepted named
function.
2020-04-28 12:33:09 +02:00
Luca Casonato
e6f70c77ee
Make import maps unstable ( #4934 )
2020-04-28 01:12:38 +02:00
Bartek Iwańczuk
7a94ea08e9
fix(core): fix top-level-await error handling ( #4911 )
2020-04-27 17:25:26 +02:00
Ryan Dahl
4036be2ab2
Make runtime compile ops unstable ( #4912 )
2020-04-27 09:59:34 -04:00
Ryan Dahl
0c47cd6785
introduce unstable flag, make a few things unstable ( #4892 )
2020-04-25 09:31:54 -04:00
Bartek Iwańczuk
4a8d25646a
BREAKING CHANGE: remove Deno.OpenMode ( #4884 )
...
This commit removes Deno.OpenMode along with overloaded variants
of Deno.open() and Deno.openSync() that used OpenMode.
2020-04-25 00:45:55 +02:00
Bartek Iwańczuk
0cb1bb98cc
BREAKING CHANGE: change order of args in Deno.copy() ( #4885 )
2020-04-25 00:09:14 +02:00
Nayeem Rahman
ef6ee25e09
refactor(cli/fmt_errors): Improve source line formatting ( #4832 )
2020-04-20 15:39:02 -04:00
Nayeem Rahman
4e3532fe7b
fix(core/js_errors): Get error's name and message from JS fields ( #4808 )
2020-04-19 15:17:22 +02:00
Nayeem Rahman
5bfe3eb8f4
feat(cli/installer.rs): Add DENO_INSTALL_ROOT ( #4787 )
2020-04-16 18:15:42 -04:00
Bartek Iwańczuk
d359789c52
feat: support Deno namespace in Worker API ( #4784 )
2020-04-16 23:40:29 +02:00
Nayeem Rahman
5ac728a5f1
refactor(cli/js/ops/fs): Improve readdir() and FileInfo interfaces ( #4763 )
2020-04-16 01:40:30 -04:00
Ryan Dahl
263dc8f5fe
Revert "test(inspector): add coverage test case ( #4725 )" ( #4754 )
...
Flaky and doesn't implement any features.
This reverts commit a7a3a771a0
.
2020-04-15 11:26:31 +02:00
Bartek Iwańczuk
a7a3a771a0
test(inspector): add coverage test case ( #4725 )
2020-04-14 20:09:50 +02:00
Bartek Iwańczuk
e08ece2d2c
fix(worker): make worker name spec compliant ( #4746 )
2020-04-14 17:41:06 +02:00
Bartek Iwańczuk
2585b72c9b
feat: implement EventTarget for worker scope ( #4737 )
2020-04-13 22:18:31 +02:00
crowlKats
25bd6868e5
feat(worker): add MessageEvent, ErrorEvent and handling to Worker API ( #4391 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-04-13 18:34:32 +02:00
Nayeem Rahman
0ea6eb83a9
refactor(core/js_error): Align JSStackFrame with CallSite ( #4715 )
...
Renames and adds missing fields to JSStackFrame from CallSite. Fixes #4705 .
Cleans up base changes for line and column numbers.
2020-04-13 10:54:16 -04:00
Nayeem Rahman
2b362bef85
refactor(cli/fmt_errors): Format stack frames in prepareStackTrace() ( #4706 )
2020-04-11 02:08:11 -04:00
Ryan Dahl
2af9f5f2cf
Remove __domTypes namespace ( #4698 )
2020-04-10 14:24:42 -04:00
Nayeem Rahman
8b4508338b
fix(core/js_error): Get frame data from prepareStackTrace() ( #4690 )
...
Fixes: #2703
Fixes: #2710
Closes: #4153
Closes: #4232
Co-authored-by: Kevin (Kun) Kassimo Qian <kevinkassimo@gmail.com>
2020-04-10 18:26:52 +02:00
Bartek Iwańczuk
be71885628
implement Worker.terminate() and self.close() ( #4684 )
2020-04-10 00:15:17 +02:00
Akshat Agarwal
caff550b6c
BREAKING: Rename 'deno fetch' subcommand to 'deno cache' ( #4656 )
2020-04-07 11:24:47 -04:00
Bartek Iwańczuk
dd3a94933a
feat: add --importmap flag to deno bundle ( #4651 )
2020-04-07 12:32:09 +02:00
Giorgi Rostomashvili
f82b9ba329
fix: fetch reference types for JS files ( #4652 )
...
Fixes #4000 and fixes #4476 . Now always tries to fetch reference types
for JS files. Does not throw if it fails, since Typescript compiler will
complain if the file is not there(it will try to fetch it again first)
and people who just use JS should not be bothered by this error.
Not sure about my test, it passes and catches the bug but maybe there is
a better way to express it.
2020-04-06 16:52:25 -04:00
Andres Villegas
2911fcc78d
Enable inspector tests ( #4628 )
2020-04-04 14:46:09 -04:00
Bert Belder
c0cb198114
Make inspector more robust, add --inspect-brk support ( #4552 )
2020-04-03 13:40:11 -04:00
Kitson Kelly
2e24385c48
Support dynamic import in bundles. ( #4561 )
2020-04-01 23:14:30 -04:00
Michał Sabiniarz
4b71ac550e
console: iterable printing improvements ( #4472 )
...
1. Array elements are now grouped the same as in Node.js
2. Limit to 100 (Node.js default) elements to display in iterable
3. Print each element in new line if excessing max line length (same as in Node.js)
4. Print length of the TypedArray
5. Print information about empty items in Array
2020-03-30 13:45:37 -04:00
Ryan Dahl
6ae47449ec
Ignore flaky test cafile_info ( #4517 )
...
Ref #4512
2020-03-28 22:51:30 +01:00
Kevin (Kun) "Kassimo" Qian
2f7842246e
fix(inspector): proper error message on port collision ( #4514 )
2020-03-28 17:42:29 -04:00
Kitson Kelly
bced52505f
Update to Prettier 2 and use ES Private Fields ( #4498 )
2020-03-28 13:03:49 -04:00
Ryan Dahl
2874664e91
feat: Support Inspector / Chrome Devtools ( #4484 )
...
This is a first pass implementation which is still missing several important
features:
- support for --inspect-brk (#4503 )
- support for source maps (#4501 )
- support for piping console.log to devtools console (#4502 )
Co-authored-by: Bert Belder <bertbelder@gmail.com>
Co-authored-by: Matt Harrison <mt.harrison86@gmail.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-03-27 16:09:51 -04:00
Kevin (Kun) "Kassimo" Qian
5d7bcf86fd
feat: window.close() ( #4474 )
2020-03-24 23:56:40 -04:00
Kevin (Kun) "Kassimo" Qian
3938071e91
errors: replace .lines with explicit .split newline ( #4483 )
2020-03-24 23:55:54 -04:00
Kevin (Kun) "Kassimo" Qian
3d228f5f9e
hide source line if error message longer than 150 chars ( #4487 )
2020-03-24 23:53:48 -04:00
Michał Sabiniarz
2e5e5fe393
console: replace object abbreviation with line breaking ( #4425 )
2020-03-24 00:57:05 -04:00
bartOssh
ec07386067
feat: first pass at "deno upgrade" ( #4328 )
2020-03-23 11:37:24 -04:00
Akshat Agarwal
b8a5c29bf8
BREAKING CHANGE Rename Deno.run's args to cmd ( #4444 )
...
This is to avoid confusion with Deno.args which does not include the
executable to be run.
2020-03-21 17:44:18 -04:00
Ryan Dahl
0adc86f105
Remove DENO_BUILD_MODE and DENO_BUILD_PATH ( #4431 )
...
* Remove DENO_BUILD_MODE and DENO_BUILD_PATH
Also remove outdated docs related to ninja/gn.
* fix
* remove parameter to build_mode()
* remove arg parsing from benchmark.py
2020-03-20 21:48:34 -04:00
Samrith Shankar
798904b0f2
Add require-await lint rule ( #4401 )
2020-03-20 09:38:34 -04:00
Ryan Dahl
a6d8098b35
Clean up installer tests ( #4433 )
2020-03-19 17:20:46 -04:00