Luca Casonato
08441b855d
fix(op_crates/fetch): Body.body should be stream of Uint8Array ( #8030 )
2020-10-19 17:01:36 +02:00
Casper Beyer
35028db5e5
fix(cli/repl): unterminated string literal should invalidate ( #7896 )
...
This adds the grave character to the pair matching so that template
string literals trigger multi-line edits.
2020-10-19 16:54:50 +02:00
vwkd
e432db70e9
docs: readTextFile / readTextFileSync throw when reading directory ( #7999 )
2020-10-19 15:06:04 +02:00
Casper Beyer
e58763737e
docs(getting_started): fix WebAssembly example ( #8028 )
2020-10-19 14:43:58 +02:00
Nayeem Rahman
19b918d112
feat(std/path): Add toFileUrl() ( #7971 )
2020-10-19 14:36:53 +02:00
Yoshiya Hinosawa
342b151b5d
docs(std/datetime): document toIMF, isLeap, difference, and constants ( #7931 )
2020-10-19 14:35:48 +02:00
Casper Beyer
8eb44537ec
fix(cli/repl): keyboard interrupt should continue ( #7960 )
...
This changes the behavior of keyboard interrupts (ctrl+c) to continue,
clearing the current line instead of exiting.
Exit can still be done with ctrl+d or by calling close().
2020-10-19 14:06:21 +02:00
Casper Beyer
f5c23f8058
fix(cli/repl): write all results to stdout ( #7893 )
...
This writes all evaluaton results to stdout regardless if the result is
an error or not.
This matches the behavior of other read-eval-print-loops like Node.
2020-10-19 13:41:25 +02:00
Marcos Casagrande
d3dea24560
fix(std/tar): fix constant condition ( #8010 )
2020-10-19 13:33:51 +02:00
Casper Beyer
f91c1155f0
docs(tools): add repl section ( #8011 )
...
This adds a section on the repl with the keybindings that we support out
of the box.
2020-10-19 13:33:15 +02:00
Ryan Dahl
fb2cae9687
deno_core 0.64.0 ( #8025 )
2020-10-19 06:35:09 -04:00
Ryan Dahl
59888ff0b2
upgrade rusty_v8 ( #8017 )
2020-10-18 13:07:11 -04:00
Casper Beyer
065db9df19
test(std/io): use a real tempdir ( #8019 )
...
This replaces a case of a temp file in the working tree with a tempfile
in a real temporary directory avoiding pollution of the working
directory.
2020-10-18 12:16:26 -04:00
Ryan Dahl
3e51610bbb
Remove github actions cache ( #8020 )
...
Running into issues with cache when trying to upgrade V8. Based on the analysis in
https://github.com/denoland/deno/pull/7903#issuecomment-706252380
we know the cache is not providing much benefit.
2020-10-18 12:12:17 -04:00
Bartek Iwańczuk
8f9da368f7
refactor(lint): show hint for lint errors ( #8016 )
...
This commit adds formatting of optional "hint" that
can be present in lint diagnostic.
2020-10-18 16:26:05 +02:00
Casper Beyer
b33e8d5d42
refactor(cli/repl): extract is_closing to a function ( #8015 )
...
This extracts is closing into a function so that it can easily be used
as the condition for the loop.
2020-10-18 16:19:47 +02:00
Bartek Iwańczuk
c1c7601304
upgrade: deno_doc, deno_lint, dprint, swc ( #8009 )
2020-10-17 17:08:23 +02:00
Ben Noordhuis
46b892ad37
refactor(core): more control over isolate creation ( #8000 )
...
Make JSRuntime::new() accept a custom v8::CreateParams object to tune
the v8::Isolate it creates.
Subsumes the functionality of HeapLimits, which I therefore removed.
2020-10-17 11:56:15 +02:00
William Perron
943b0980c7
feat(cli/ops): add the sleep_sync op ( #7974 )
2020-10-15 21:06:31 -04:00
Kitson Kelly
bbe4474d39
fix(cli): ModuleGraph2 properly handles redirects ( #7981 )
2020-10-16 10:34:55 +11:00
Bartek Iwańczuk
bd0c64b9ae
Reland feat(cli/console): inspect with colors regardless of Deno.noColor ( #7976 )
2020-10-15 12:32:03 +02:00
Bartek Iwańczuk
81635c59e6
Revert "feat(cli/console): inspect with colors regardless of Deno.noColor ( #7778 )" ( #7973 )
...
This reverts commit f75bd89aff
.
2020-10-14 18:54:29 +02:00
ali ahmed
5bed06fb94
feat(std/fs/node): adding some functions ( #7921 )
2020-10-14 11:59:28 -04:00
TTtie
f75bd89aff
feat(cli/console): inspect with colors regardless of Deno.noColor ( #7778 )
...
This commit adds the ability for users to inspect items stylized
with ANSI colors regardless of the value of Deno.noColor.
2020-10-14 17:51:56 +02:00
vwkd
f9489e9acb
fix typos ( #7964 )
2020-10-14 10:28:21 -04:00
Bartek Iwańczuk
12e700bddf
fix(test): return error when awaiting unresolved promise ( #7968 )
...
This commit fixes test runner by awaitning "Deno.runTests()" call,
which ensures proper error is returned when there's an unresolved
promise that's being awaited.
2020-10-14 15:19:13 +02:00
Yoshiya Hinosawa
e9f02c2314
fix(console): fix the test cases of function inspections ( #7965 )
2020-10-14 15:01:03 +02:00
Casper Beyer
e2a1a7c937
refactor(cli/repl): clean up prelude injection ( #7967 )
...
This extracts prelude injection into a helper function and moves the
prelude string literal into a top level static string to help trim some
of the fat out of the run function.
2020-10-14 14:34:05 +02:00
Bartek Iwańczuk
135053486c
fix: top-level-await module execution ( #7946 )
...
This commit changes implementation of top-level-await in "deno_core".
Previously promise returned from module evaluation was not awaited,
leading to out-of-order execution of modules that have TLA. It's been
fixed by changing "JsRuntime::mod_evaluate" to be an async function
that resolves when the promise returned from module evaluation also
resolves. When waiting for promise resolution event loop is polled
repeatedly, until there are no more dynamic imports or pending
ops.
2020-10-14 14:04:09 +02:00
Kitson Kelly
10654fa955
refactor(cli): add tsc2 ( #7942 )
...
Ref #7225
2020-10-14 10:52:49 +11:00
Ryan Dahl
374d433f1f
Remove dead code ( #7963 )
2020-10-13 18:24:40 -04:00
sakas
f42d0fc99e
docs: fix links to examples ( #7919 )
2020-10-13 17:19:34 +02:00
Grant Timmerman
47eeb889e1
docs: fix runtime docs link in README ( #7926 )
2020-10-13 17:17:43 +02:00
Nayeem Rahman
d0c2714c03
fix(op_crates/web/url): apply backslash replacement to the pathname setter ( #7937 )
2020-10-13 17:16:10 +02:00
Casper Beyer
bbf7b2ee72
feat(cli/repl): add regex based syntax highlighter ( #7811 )
...
This commit adds a simple regex replace based highlighter
to the REPL editor.
It tries to match the color palette of Deno.inspect()
2020-10-13 16:23:02 +02:00
Yoshiya Hinosawa
0dcaea72ae
feat: add alert, confirm, and prompt ( #7507 )
...
This commit adds "alert", "confirm" and "prompt" functions from web standards.
2020-10-13 15:31:59 +02:00
Bartek Iwańczuk
0bd3cea0ff
refactor(cli): rename GlobalState to ProgramState ( #7914 )
2020-10-13 13:35:35 +02:00
Kitson Kelly
000ac5c40b
reafactor(cli): use Emit enum and rename ts_build_info ( #7952 )
2020-10-13 21:54:28 +11:00
timonson
1956cb8137
fix(std/encoding): base64 properly encodes mbc and handles Uint8Arrays ( #7807 )
...
Fixes #6094
Fixes #4794
2020-10-13 12:12:10 +11:00
Kitson Kelly
26639b3bac
chore(cli): remove dead code ( #7941 )
2020-10-12 22:25:25 +11:00
Kitson Kelly
e877b36072
refactor(cli): move info subcommand over to new module graph ( #7892 )
2020-10-12 13:25:27 +11:00
Valentin Anger
fede13f2eb
feat(cli): support importmap flag with deno doc subcommand ( #7821 )
...
Fixes #7783
2020-10-12 10:05:46 +11:00
Nayeem Rahman
5f3028af13
fix(cli/rt/main): Add global interface objects ( #7875 )
2020-10-12 09:04:43 +11:00
Yoshiya Hinosawa
265a9fb932
fix(console): fix inspection of Function ( #7930 )
...
This commit fixes the inspection of functions. The current
implementation gets the name of the type of the function
from "f.__proto__.constructor.name", and it throws when
the prototype is set to null.
This commit checks the prototype before accessing its
constructor name and uses the generic name 'Function'
if the prototype is not available.
2020-10-11 22:04:26 +02:00
Casper Beyer
86dc55134e
fix(cli/console): only inspect getters with option ( #7830 )
2020-10-11 21:52:20 +02:00
Peter
08f3ae92d3
fix(std): Parsing inline arrays of inline tables in toml ( #7902 )
2020-10-11 21:33:23 +02:00
Casper Beyer
fa80649926
refactor(cli/repl): get context id from notification ( #7864 )
...
This takes the execution context id from a notification which is sent on
Runtime.enable rather than hard-coding it to a magic value.
2020-10-11 19:49:55 +02:00
Bartek Iwańczuk
527628e186
reland JsRuntime/Worker is not a Future ( #7924 )
2020-10-11 13:20:40 +02:00
Bartek Iwańczuk
7af5041a06
Revert "feat(std/node/fs): adding readdir, rename, and some others ( #7666 )" ( #7917 )
...
This reverts commit 40324ff748
.
2020-10-10 15:05:19 +02:00
Bartek Iwańczuk
9e9ec9784a
v1.4.6
2020-10-10 12:30:55 +02:00