1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
Commit graph

4718 commits

Author SHA1 Message Date
Bartek Iwańczuk
8d95bd15e1
refactor(core): remove Deno.core.formatError() (#8091)
With recent improvements to REPL implementation,
Deno.core.formatError() API is no longer needed.
2020-10-23 22:16:12 +02:00
Bartek Iwańczuk
9d36331278
Revert "feat(cli): Add deno cache --test and --worker (#7920)" (#8089)
This reverts commit be15cf285d.
2020-10-23 16:56:25 +02:00
Nayeem Rahman
be15cf285d
feat(cli): Add deno cache --test and --worker (#7920) 2020-10-23 13:31:49 +02:00
Toan Nguyen
29e05bb014
fix: typos in cli and core (#8082) 2020-10-23 13:19:37 +02:00
Kitson Kelly
ab898556a4
refactor(cli): move bundle check to new infrastructure (#8071) 2020-10-23 22:05:41 +11:00
Nayeem Rahman
a3024a6dc5
BREAKING(cli/tsc): Enable isolatedModules by default (#8050) 2020-10-23 12:38:35 +02:00
Nikolai Vavilov
f56c7868ab
docs(cli): update link to dprint-plugin-typescript (#8052) 2020-10-23 12:21:02 +11:00
btoo
1d9c7a0a22
docs(std/path): fix typo in globToRegExp docs (#8081) 2020-10-23 12:19:38 +11:00
Kitson Kelly
7e2c7fb6c5
refactor(cli): migrate run and cache to new infrastructure (#7996)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-10-23 11:50:15 +11:00
Eugen Cazacu
9fa59f0ca8
test(std/datetime): test datetime constants (#8068)
Fixes: #8067
2020-10-23 10:14:57 +11:00
Bartek Iwańczuk
c5c48f845a
feat(lint): stabilize "deno lint" subcommand (#8075)
This commit stabilizes "deno lint" by removing
the need to pass --unstable flag.

--unstable is still required when using --json flag.
2020-10-22 21:52:37 +02:00
Bartek Iwańczuk
9b20cfbee8
upgrade: deno_doc, deno_lint, dprint, swc (#8077)
- deno_doc 0.1.13
- deno_lint 0.2.5
- dprint-plugin-typescript 0.32.6
- swc_bundler 0.12.0
- swc_ecmascript 0.11.1
2020-10-22 20:36:06 +02:00
Divy Srivastava
d592c128cf
chores(cli/fmt): make --ignore stable (#7922)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-10-22 19:04:35 +02:00
Max Drosdo.www
17eaede643
docs: fix command examples use outdated default file_server port (#8062) 2020-10-22 17:17:38 +02:00
nerix
0a2f0fe7f2
fix(cli/rt/websockets): Only add Sec-WebSocket-Protocol if it's not empty (#7936) 2020-10-22 17:09:44 +02:00
Carter Snook
4b43f8cffa
docs(std/uuid): creat -> create (#8064) 2020-10-22 14:03:54 +11:00
Simon Lecoq
23df1c563e
feat(std/testing): Add support for object assertion against object subset (#8001)
This commit add supports for a new assertion function 
"assertObjectMatch" which allows to test an actual object 
against an expected object subset (i.e. inclusivity, not equality).
2020-10-21 18:53:27 +02:00
Casper Beyer
322913ee5c
docs(tools/repl): add special variables section (#8057) 2020-10-21 13:41:29 +02:00
Akshat Agarwal
d6c824a6c3
refactor(cli): use PathBuf instead of String for lint and fmt subcommands (#8042) 2020-10-21 13:12:01 +02:00
Kitson Kelly
0fb39f9176
feat(cli): add types for WeakRef/FinalizationRegistry (#8056)
Fixes #8051
2020-10-21 21:57:01 +11:00
Casper Beyer
be89bdfed7
test(std/wasi): reduce test duplication (#8053)
This fast-forwards wasi-test-suite a couple of commits removed
duplicate, or near duplicate tests with not much additional value.

Other tests have been merged to reduce the number of modules to make
tests topical to the syscall that is being tested.
2020-10-20 22:54:27 +02:00
Ryan Dahl
9e2e2dfb20
bump versions for op crates (#8048) 2020-10-20 10:31:20 -04:00
Casper Beyer
dfe19c5c75
feat: stabilize Deno.fsync and Deno.fdatasync (#8038) 2020-10-20 09:52:10 -04:00
Nayeem Rahman
070d99645f
chore: Rename --importmap to --import-map (#7032)
--importmap still works as an alias to --import-map
but is not visible in CLI help output.
2020-10-20 14:30:59 +02:00
KNnut
aa0e64b579
docs(std/jwt): Fix examples (#8044) 2020-10-20 13:59:10 +02:00
Casper Beyer
17467d01da
fix(std/io): remove trivial internal util.ts module (#8032) 2020-10-20 13:51:57 +02:00
aca
9cf06f76fd
fix(op_crates/web): TextEncoder should return error message with original input (#8005) 2020-10-20 13:47:38 +02:00
Casper Beyer
d9ae74019e
fix(cli): use rid getter for stdio (#8014)
This changes the rid of Deno.stdin, Deno.stdout, Deno.stderr from a
mutable property into a getter to match the rid semantics of Deno.File.
2020-10-20 13:20:17 +02:00
Josh
9141c76b25
docs: Mention how to use a specific shell for Deno.run (#7966) 2020-10-20 13:11:38 +02:00
Luca Casonato
65dc86ebc3
fix: codesnippet in README contains $STD_VERSION (#8045) 2020-10-20 12:15:25 +02:00
Nayeem Rahman
7aba07cc77
fix(cli/worker): Print error stacks from the origin Worker (#7987)
Fixes #4728
2020-10-20 15:05:42 +11:00
Kitson Kelly
57e95032c8
feat(cli): add support for bundle --no-check (#8023)
Fixes #6686
2020-10-20 14:10:42 +11:00
timonson
034ab48086
feat(std/jwt): add a JSON Web Token library (#7991)
Co-authored-by: Tim Reichen <timreichen@users.noreply.github.com>
2020-10-20 14:08:34 +11:00
Jesse Jackson
992c2a436e
fix(cli/rt/performance): check for object props in startOrMeasureOptions before throwing (#7884)
Fixes #7876

Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-10-20 13:43:29 +11:00
Carter Snook
4ff5003eb6
docs(cli): interfaces used as parameters should be exported (#7500)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-10-20 13:41:40 +11:00
Leonard Ginters
623ac9e6df
fix(op_crates/web): TextEncoder should throw RangeError (#8039)
This commit changes error type thrown by TextEncoder, when
provided encoding is not supported matching Chromium behavior.
2020-10-19 23:56:29 +02:00
Absebo
1474d5d76d
fix(cli): Handling of relative importmaps while using watch (#7950) 2020-10-19 23:53:39 +02:00
Casper Beyer
c488468b32
feat(cli/repl): add tab completion (#7827)
This commit adds tab completion in REPL. 

Currently it works only for global identifiers and object properties.
2020-10-19 21:25:21 +02:00
Nayeem Rahman
3f5513758d
feat(cli/installer): Add missing flags for deno install (#7601)
This commit adds support for following flags:
- deno install --importmap
- deno install --no-remote
- deno install --lock
- deno install --lock-write
- deno install --cached-only
- deno install --v8-flags
- deno install --seed
2020-10-19 21:19:20 +02:00
Casper Beyer
9d664f8375
fix(cli/repl): ignore pair matching inside literals (#8037) 2020-10-19 19:13:23 +02:00
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