Aaron O'Mullan
91e80ada8a
core: remove serde_json-isms in op_close() and op_resources() ( #10026 )
...
Core no longer uses `serde_json` now, besides re-exporting it or in the module specifier tests
2021-04-05 23:17:00 -04:00
Luca Casonato
d849c87eb1
chore: deprecate Deno.iter and Deno.iterSync ( #10025 )
...
This commit marks the `Deno.iter` and `Deno.iterSync` utils as
deprecated, and schedules them for removal in Deno 2.0. These
utilities are implemented in pure JS, so should not be part of the
Deno namespace.
These utilities are now available in std/io/util:
denoland/deno_std#843 .
2021-04-06 00:05:55 +02:00
Luca Casonato
da60e2afcb
chore: deprecate Deno.Buffer and read/write utils ( #9793 )
...
This commit marks the `Deno.Buffer` / `Deno.readAll` /
`Deno.readAllSync` / `Deno.writeAll` / `Deno.writeAllSync` utils as
deprecated, and schedules them for removal in Deno 2.0. These
utilities are implemented in pure JS, so should not be part of the
Deno namespace.
These utilities are now available in std/io/buffer and std/io/util:
https://github.com/denoland/deno_std/pull/808 .
This additionallty removes all internal dependance on Deno.Buffer.
2021-04-06 00:05:36 +02:00
Aaron O'Mullan
2aed322dd5
refactor: convert ops to use serde_v8 ( #10009 )
...
This commit rewrites most of the ops to use "serde_v8" instead
of "json" serialization.
2021-04-05 18:40:24 +02:00
Luca Casonato
284e6c3039
chore: update std submodule ( #10017 )
2021-04-05 15:57:52 +02:00
ayame113
ac84eff940
docs: add documentation about Atom Editor LSP client ( #10016 )
...
Co-authored-by: ayame113 <ayame113@users.noreply.github.com>
2021-04-05 21:32:49 +10:00
Aaron O'Mullan
5f2a83f563
perf(serde_v8): preallocate vector when serializing arrays ( #9955 )
2021-04-04 15:04:35 +02:00
Divy Srivastava
e33e46e13b
docs: update Deno.metrics() table data ( #9999 )
2021-04-04 07:42:31 -04:00
David Sherret
eed4e29337
chore(cli): Upgrade jsonc_parser to 0.17 ( #9977 )
...
Use new parse_to_serde_value as it's faster and less code here.
2021-04-04 07:27:13 -04:00
Nayeem Rahman
1312a57984
fix: Properly await already evaluating dynamic imports ( #9984 )
2021-04-04 07:26:00 -04:00
louix
fe027b4a59
docs: update kakoune LSP example configuration ( #9989 )
...
Fixes #9988
2021-04-04 10:09:19 +10:00
Aaron O'Mullan
84e1df3ce2
perf(serde_v8): drop need for EscapableHandleScope ( #9990 )
...
This is another improvement to serde_v8's serialization code,
it drops the need for creating a v8::EscapableHandleScope or "subscope".
2021-04-04 02:03:57 +02:00
Aaron O'Mullan
19d0e6b671
perf(serde_v8): introduce Serializable boxable object ( #9983 )
2021-04-04 01:17:02 +02:00
Aaron O'Mullan
878599ca7c
perf(serde_v8): drop need for RC in serializer ( #9987 )
...
Which substantially improves the performance of to_v8()
by removing Rc's overhead (extra allocs, drops, checks, etc...)
2021-04-04 00:42:16 +02:00
Aaron O'Mullan
824bd2f5c3
refactor: Switch op_now to be a json-op ( #9974 )
2021-04-03 20:35:28 +02:00
Ryan Dahl
d2fbbfbbf3
refactor: don't call Context::Global in async_op_response ( #9971 )
2021-04-03 14:33:01 +02:00
Aaron O'Mullan
105c0ee3b4
perf(serde_v8/de): implement SeqAccess size_hint ( #9975 )
2021-04-02 20:12:10 -04:00
upendra1997
8257f51d7e
fix(permissions): don't panic when no input is given ( #9894 )
...
Fixes #9633
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-03 07:49:51 +11:00
Aaron O'Mullan
22cef71c4e
core/op_baseline: drop BufVec and minor cleanup ( #9969 )
2021-04-02 17:36:01 +02:00
Aaron O'Mullan
ee3aa612aa
perf: bench async op baseline ( #9954 )
2021-04-02 16:06:30 +02:00
Aaron O'Mullan
058579da56
refactor(ops): remove variadic buffers ( #9944 )
2021-04-02 09:47:57 -04:00
Kitson Kelly
adf5761090
v1.8.3
2021-04-02 22:22:08 +11:00
Kitson Kelly
df1d36a759
chore: bump dependent crates for cli ( #9964 )
2021-04-02 22:22:08 +11:00
Jean Pierre
035f7b0ca0
feat(lsp): implement textDocument/foldingRange ( #9900 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-02 17:21:07 +11:00
Kitson Kelly
f50385b2a5
Revert "fix(cli): align type definitions to spec ( #9782 )" ( #9961 )
...
This reverts commit f8aff8edcd
.
2021-04-02 12:12:07 +11:00
David Sherret
6048ce5a34
chore(cli): add "Deno" to the windows file description ( #9959 )
2021-04-02 10:10:00 +11:00
Luca Casonato
0e72129da2
fix(websocket): ignore resource close error ( #9755 )
...
It is possible that the WebSocket is already closed when we try to
close it with `WebSocket#close` or in the `error` or `close` events.
Currently this leads to an uncatchable promise rejection. This changes
this so that closing an already closed WebSocket is a noop.
2021-04-02 00:55:22 +02:00
defectivepixel
2d7fdb0a19
chore(cli): fix futime and futimeSync code examples ( #9953 )
2021-04-02 08:53:31 +11:00
Aaron O'Mullan
6eace4de5c
perf(core): js errors as unions vs tuples to reduce allocs ( #9947 )
2021-04-01 07:24:30 -04:00
Casper Beyer
f8aff8edcd
fix(cli): align type definitions to spec ( #9782 )
...
Fixes #5666
2021-04-01 20:23:16 +11:00
Peter Shank
5107aac542
docs: copyedit introduction for clarity ( #9805 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-01 20:20:43 +11:00
John Spurlock
f9ced5cc14
Fix typo in faqs.md ( #9948 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-04-01 20:19:45 +11:00
Kitson Kelly
ec6317e894
fix(lsp): ensure insert_text is passed back on completions ( #9951 )
...
Fixes #9920
2021-04-01 20:18:51 +11:00
Attila Gulyas
47ac654ea2
docs: add the Nix pkg manager to Installation options ( #9921 )
2021-04-01 18:51:23 +11:00
Chandan Kumar
9e937122c2
docs: fix typo ( #9946 )
2021-04-01 18:45:47 +11:00
Aaron O'Mullan
fec1b2a5a4
refactor: new optimized op-layer using serde_v8 ( #9843 )
...
- Improves op performance.
- Handle op-metadata (errors, promise IDs) explicitly in the op-layer vs
per op-encoding (aka: out-of-payload).
- Remove shared queue & custom "asyncHandlers", all async values are
returned in batches via js_recv_cb.
- The op-layer should be thought of as simple function calls with little
indirection or translation besides the conceptually straightforward
serde_v8 bijections.
- Preserve concepts of json/bin/min as semantic groups of their
inputs/outputs instead of their op-encoding strategy, preserving these
groups will also facilitate partial transitions over to v8 Fast API for the
"min" and "bin" groups
2021-03-31 10:37:38 -04:00
Aaron O'Mullan
6dc3549a81
serde_v8: restore ser/de benches ( #9939 )
2021-03-30 22:24:49 -04:00
Aaron O'Mullan
7efea6cc20
perf: add op_baseline bench ( #9924 )
2021-03-30 16:20:45 +02:00
crowlKats
e85595ae50
docs: clarify jetbrains setup ( #9930 )
...
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-03-30 12:47:44 +11:00
Aaron O'Mullan
269ea88e0e
bench: track Date.now() as upper bound reference ( #9922 )
2021-03-29 01:12:19 +02:00
Divy Srivastava
00468bceff
chore: fix clippy warning in serde_v8. ( #9917 )
2021-03-28 17:09:46 +02:00
Aaron O'Mullan
7c7a62a7f8
feat(bench/deno_common): show ns/op ( #9915 )
...
It's simply the inverse of the rate (ops/s), but it's often useful to look at time per op
2021-03-27 23:17:06 -04:00
crowlKats
b11249647f
fix: update wpt + align AbortController ( #9907 )
2021-03-27 15:49:57 +01:00
Aaron O'Mullan
940b3a26bd
chore: Add missing copyright headers ( #9910 )
2021-03-27 01:33:06 +01:00
Aaron O'Mullan
fa67aeb026
chore: add Deno copyright headers to all rust files ( #9909 )
2021-03-27 01:26:27 +01:00
Aaron O'Mullan
699eeebc12
refactor(core): decode JsStackFrames using serde_v8 ( #9902 )
2021-03-27 01:25:48 +01:00
Ryan Dahl
f46e39c5c5
remove macro_use ( #9884 )
2021-03-26 12:34:25 -04:00
Aaron O'Mullan
6c6f3e87c1
Add bench suite of common Deno functions ( #9878 )
2021-03-26 09:13:53 -04:00
Aaron O'Mullan
505db5da2c
refactor(core): simplify heapStats() by using serde_v8 ( #9901 )
2021-03-26 09:09:22 -04:00
Yasser A.Idrissi
200170b64d
docs: Add help community section ( #9882 )
2021-03-26 08:04:18 -04:00