Kitson Kelly
1c2ec1f48f
fix: update deno_graph to fix importing config as JSON module ( #15388 )
...
Ref: denoland/deno_graph#166
2022-08-10 07:27:22 +10:00
Bartek Iwańczuk
1f54d87789
feat: add ext/node for require support ( #15362 )
...
This commit adds "ext/node" extension that implementes CommonJS module system.
In the future this extension might be extended to actually contain implementation of
Node compatibility layer in favor of "deno_std/node".
Currently this functionality is not publicly exposed, it is available via "Deno[Deno.internal].require"
namespace and is meant to be used by other functionality to be landed soon.
This is a minimal first pass, things that still don't work:
support for dynamic imports in CJS
conditional exports
2022-08-09 21:06:01 +02:00
David Sherret
888b26819e
fix: various formatting fixes ( #15412 )
2022-08-05 19:31:19 -04:00
Aapo Alasuutari
9c594de0ff
feat(ext/ffi): Add static method variants to Deno.UnsafePointerView ( #15146 )
2022-08-05 21:57:12 +05:30
denobot
cf33720a85
chore: forward v1.24.2 release commit to main ( #15410 )
2022-08-05 00:10:47 +02:00
Nayeem Rahman
34328690dc
fix(test): output parallel test results independently ( #15399 )
2022-08-04 12:38:40 -04:00
David Sherret
8f102e49c1
fix(vendor): existing import map with bare specifier in remote ( #15390 )
2022-08-04 09:39:14 -04:00
Yongwook Choi
2138b68c24
fix: Update Object.prototype.__proto__
related comments ( #15394 )
2022-08-04 08:39:16 +05:30
David Sherret
8b03c1e6cc
fix(vendor): error on dynamic imports that fail to load instead of panicking ( #15391 )
2022-08-03 21:23:45 -04:00
Bartek Iwańczuk
bc4ee59246
chore(compat): update list of supported modules ( #15397 )
2022-08-03 15:56:48 +02:00
Nayeem Rahman
2e2c623882
fix(test): race condition for cancelled tests ( #15233 )
2022-08-02 10:55:11 -04:00
Kitson Kelly
09d14b1b57
fix(lsp): use correct commit chars for completions ( #15366 )
...
Fixes: #15252
2022-08-02 08:54:17 +10:00
Outvi V
924aa31fa8
fix(lsp): remove excessive line breaks in status page ( #15364 )
...
Fixes #15359
2022-08-02 08:29:05 +10:00
David Sherret
2703996dea
refactor(emit/cache): move cli version into emit hash ( #15348 )
2022-07-30 12:09:12 -04:00
David Sherret
ef5653be98
refactor: reuse FastInsecureHasher
in get_check_hash
( #15354 )
2022-07-30 11:43:03 -04:00
Bartek Iwańczuk
20a89d46c4
fix(core): BorrowMutError in nested error ( #15352 )
2022-07-30 16:09:42 +02:00
Mathias Lafeldt
3f0dcd3b80
docs: turn bare URLs into clickable links ( #15347 )
2022-07-30 12:20:29 +02:00
David Sherret
b676cab0b4
fix(compat): use mjs extension for stream/promises ( #15341 )
2022-07-29 15:48:03 -04:00
Colin Ihrig
088bc52db0
Forward 1.24.1 to main ( #15333 ) ( #15336 )
...
1.24.1 (#15333 )
Co-authored-by: cjihrig <cjihrig@users.noreply.github.com>
2022-07-29 08:44:46 -04:00
David Sherret
ffd74cb1a1
chore: update jsonc_parser to 0.20 ( #15316 )
2022-07-26 21:24:56 -04:00
Aapo Alasuutari
b4b4e5980b
chore(ops): Remove unused arguments from ops ( #15315 )
2022-07-26 19:34:08 +02:00
Kitson Kelly
7036600be3
fix(lsp): remove CompletionInfo.flags ( #15288 )
...
Fixes: #15287
2022-07-25 07:11:33 +10:00
Aapo Alasuutari
f8fee6cd21
feat(ext/ffi): Safe number pointers ( #15173 )
2022-07-24 16:11:11 +05:30
diachedelic
2843160fc7
feat(ext/crypto): deriveBits P-384 ( #15138 )
...
This commit adds P-384 curve support for crypto.subtle.deriveBits.
Co-authored-by: James Diacono <james@diacono.com.au>
2022-07-23 22:34:37 +05:30
Bartek Iwańczuk
504d2936ec
fix: unhandledrejection handling for sync throw in top level ( #15279 )
...
Fixes an edge in "unhandledrejection" event that prevent synchronous
errors being surfaced when throw from a top-level scope.
2022-07-23 00:40:42 +02:00
Bartek Iwańczuk
72199303d8
fix: Child.unref() unrefs stdio streams properly ( #15275 )
2022-07-22 18:07:20 +02:00
Divy Srivastava
4db650ddd5
Revert "feat(ops): V8 Fast Calls ( #15122 )" ( #15276 )
...
This reverts commit 03dc3b8972
.
2022-07-22 19:06:32 +05:30
Divy Srivastava
03dc3b8972
feat(ops): V8 Fast Calls ( #15122 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-07-22 17:54:22 +05:30
Bartek Iwańczuk
4e71a9424e
fix: proper typings for unhandledrejection event ( #15271 )
2022-07-21 23:54:53 +02:00
Satya Rohith
6c3d9b981f
fix(cli): unset jsxFragmentFactory & jsxFactory options ( #15264 )
2022-07-21 14:44:18 +05:30
denobot
f0e01682cc
1.24.0 ( #15262 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-07-21 01:28:00 +02:00
David Sherret
26cea0e2ca
feat(test): add --parallel
flag, soft deprecate --jobs
( #15259 )
...
Co-authored-by: mrkldshv <markladyshev@gmail.com>
2022-07-20 17:36:54 -04:00
David Sherret
5f5bbd597a
fix(coverage): do not verify emit source hash for coverage ( #15260 )
2022-07-20 16:30:57 -04:00
Bartek Iwańczuk
d53936eb7d
Reland "feat: add "unhandledrejection" event support" ( #15211 )
2022-07-20 20:28:19 +02:00
Nayeem Rahman
6e350b2b7c
chore(cli): Ignore "experimentalDecorators" and "moduleDetection" options ( #15202 )
2022-07-20 16:59:56 +02:00
Bartek Iwańczuk
d17b3906bf
chore: use import.meta.resolve() in tests ( #15256 )
2022-07-20 16:56:53 +02:00
David Sherret
73504d76b2
fix(task): resolve deno configuration file first from specified --cwd
arg ( #15257 )
2022-07-20 10:36:14 -04:00
David Sherret
cee3246edb
fix(fmt): improve curried arrow functions ( #15251 )
2022-07-20 08:55:18 -04:00
ayame113
27a72a12b7
chore: align some Web API type definitions to lib.dom.d.ts ( #15219 )
2022-07-20 18:30:41 +08:00
Phosra
b8e1250500
fix(ext/web): align DOMException better with spec ( #15097 )
2022-07-20 10:12:18 +02:00
Dante Issaias
2b1f145c3e
chore(ext): update webgpu ( #15059 )
2022-07-20 02:22:26 +02:00
David Sherret
649536e266
fix(task): do not overflow attempting to parse large number as redirect ( #15249 )
2022-07-19 16:50:09 -04:00
Roj
248bfda8d3
chore(cli): update config file schema to include test config ( #15246 )
2022-07-19 15:10:41 -04:00
David Sherret
0ab262b901
feat: emit files on demand and fix racy emit ( #15220 )
2022-07-19 11:58:18 -04:00
Leo Kettmeir
2eb27c92db
fix: WebSocketStream ping event causes pending promises ( #15235 )
2022-07-18 22:49:49 +02:00
Leo Kettmeir
2bebdc9116
feat(unstable): Ability to ref/unref "Child" in "Deno.spawnChild()" API ( #15151 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-07-18 22:24:35 +02:00
Roj
70d1ecaeaa
feat(cli): support configuring the test tool in the config file ( #15079 )
2022-07-18 15:12:19 -04:00
sigmaSd
1f04cea160
chore(repl): update rustyline to 10.0.0 ( #15232 )
2022-07-18 20:47:00 +02:00
Bartek Iwańczuk
999cbfb52b
feat: import.meta.resolve() ( #15074 )
...
This commit adds new "import.meta.resolve()" API which
allows to resolve specifiers relative to the module the API
is called in. This API supports resolving using import maps.
2022-07-18 20:05:26 +02:00
David Sherret
0d73eb3dd9
chore: fix flaky captured_output ( #15234 )
2022-07-18 13:20:15 -04:00
Bartek Iwańczuk
89c1ad0303
fix: revert changes to test output for uncaught errors ( #15231 )
2022-07-18 18:58:13 +02:00
Nayeem Rahman
45c49034a7
BREAKING(unstable): Improve Deno.spawn() stdio API ( #14919 )
...
- "SpawnOutput" extends "ChildStatus" instead of composing it
- "SpawnOutput::stdout", "SpawnOutput::stderr", "Child::stdin",
"Child::stdout" and "Child::stderr" are no longer optional, instead
made them getters that throw at runtime if that stream wasn't set
to "piped".
- Remove the complicated "<T extends SpawnOptions = SpawnOptions>"
which we currently need to give proper type hints for the availability of
these fields. Their typings for these would get increasingly complex
if it became dependent on more options (e.g. "SpawnOptions::pty"
which if set should make the stdio streams unavailable)
2022-07-18 15:16:12 +02:00
Nayeem Rahman
22a4998e29
refactor: allocate IDs for tests ( #14729 )
2022-07-15 13:09:22 -04:00
David Sherret
635eed9373
chore: fix Windows specific clippy errors ( #15212 )
2022-07-15 12:30:25 -04:00
Mark Ladyshau
ee0c0586b3
feat(cli/test): add DENO_JOBS
env variable for test
subcommand ( #14929 )
2022-07-15 10:29:55 -04:00
Bartek Iwańczuk
f9b692e68e
Revert "feat: add "unhandledrejection" event support ( #12994 ) ( #15080 )" ( #15210 )
...
This reverts commit 1a7259b04b
.
2022-07-15 01:06:20 +02:00
orvit
dbf5e95b59
refactor: remove redundant qualification of symbols in Rust ( #15201 )
2022-07-15 07:52:44 +10:00
Bartek Iwańczuk
1a7259b04b
feat: add "unhandledrejection" event support ( #12994 ) ( #15080 )
...
Relanding #12994
This commit adds support for "unhandledrejection" event.
This event will trigger event listeners registered using:
"globalThis.addEventListener("unhandledrejection")
"globalThis.onunhandledrejection"
This is done by registering a default handler using
"Deno.core.setPromiseRejectCallback" that allows to
handle rejected promises in JavaScript instead of Rust.
This commit will make it possible to polyfill
"process.on("unhandledRejection")" in the Node compat
layer.
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-07-14 22:39:20 +02:00
Liam Murphy
bc7cb61d1a
fix(cli/dts): allow passing arguments to WebAssembly
error constructors ( #15149 )
...
These constructors have the same signature as all of JavaScript's other builtin errors.
2022-07-14 14:42:54 -04:00
Rafael Ávila de Espíndola
a34ed568e9
fix(cli): expand tsc roots when using checkJs ( #15164 )
...
A JS file can still point to a TS file, so we need to expand the roots
in the checkJs case too.
Fixes: #15163
2022-07-14 10:40:47 -04:00
Kitson Kelly
7e06d33b34
feat(lsp): provide import map remapping diags and fixes ( #15165 )
2022-07-14 11:12:18 +10:00
David Sherret
294b27717c
feat(fmt): do not add a newline between a template and its tag ( #15195 )
2022-07-13 17:27:27 -04:00
2shiori17
0aca3f0690
fix(cli): Improve error message in watch mode ( #15184 )
2022-07-13 22:01:09 +02:00
David Sherret
5273259eef
chore: remove flaky writeSyncWhileAsyncFails test ( #15194 )
2022-07-13 15:49:20 -04:00
Nayeem Rahman
c2770c70b7
chore(cli): remove dead code related to previous tsc emit ( #15196 )
2022-07-13 15:38:36 -04:00
David Sherret
667812a297
fix(cli): synchronize async stdio/file reads and writes ( #15092 )
...
Fixes a regression where async writes and reads could get out of order.
2022-07-13 11:16:42 -04:00
David Sherret
7470b2d2a7
chore: fix flaky integration::test::meta
( #15192 )
2022-07-13 11:01:52 -04:00
David Sherret
944d708e3c
chore: fix pty_complete_imports test on linux/mac ( #15191 )
2022-07-13 10:49:14 -04:00
David Sherret
698eeb90fd
fix: fallback to no type checking cache when db file can't be created ( #15180 )
2022-07-12 22:44:15 -04:00
2shiori17
61340f1d89
feat(cli/lsp): Sort repl completions ( #15171 )
2022-07-12 22:21:56 -04:00
David Sherret
3a4e95c431
fix(repl): do not panic for import completions when the import specifier is empty ( #15177 )
2022-07-12 21:56:48 -04:00
David Sherret
0c87dd1e98
perf: use emit from swc instead of tsc ( #15118 )
2022-07-12 18:58:39 -04:00
Colin Ihrig
7610764980
chore: forward v1.23.4 release commit to main ( #15172 )
...
1.23.4 (#15168 )
Co-authored-by: cjihrig <cjihrig@users.noreply.github.com>
Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
Co-authored-by: cjihrig <cjihrig@users.noreply.github.com>
2022-07-12 17:08:36 -04:00
Divy Srivastava
5b26a4a30e
fix(ext/http): reading headers with ongoing body reader ( #15161 )
2022-07-12 13:31:37 -04:00
David Sherret
2ff3e8a6c5
chore: fix repl::pty_emoji test on linux ( #15166 )
2022-07-12 11:05:56 -04:00
Kitson Kelly
5db16d1229
fix(lsp): enable auto imports ( #15145 )
...
Fixes: #15111
2022-07-12 09:35:18 +10:00
David Sherret
82431062fa
fix(coverage): better handling of multi-byte characters ( #15159 )
2022-07-11 19:02:11 -04:00
Bartek Iwańczuk
88c36fd414
benchmarks: fix exec_time and latency benchmarks ( #15155 )
2022-07-11 20:58:32 +02:00
Nayeem Rahman
989c723130
perf(cli/proc_state): Get error source lines from memory ( #15031 )
2022-07-11 20:43:47 +02:00
David Sherret
687c712be3
fix: upgrade deno_ast to 0.17 ( #15152 )
2022-07-11 14:10:12 -04:00
cuobiezi
83818c914b
refactor: rename run_basic to run_local ( #15068 )
2022-07-11 19:02:23 +02:00
Ikko Ashimine
d70ba324fe
refactor: update comment in diff.rs ( #15142 )
...
Github -> GitHub
2022-07-10 22:49:18 -04:00
Divy Srivastava
132c761e87
fix(ext/ffi): allow opting out of fast ffi calls ( #15131 )
2022-07-09 18:41:07 +05:30
David Sherret
1cc59e6c5c
chore: unpin pin project to fix cargo publish ( #15085 )
2022-07-05 14:24:40 -04:00
denobot
ef312e0050
1.23.3 ( #15081 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-07-05 14:24:40 -04:00
Bartek Iwańczuk
a919a5dd11
Revert "refactor(snapshots): to their own crate ( #14794 )" ( #15076 )
...
This reverts commit fd5a12d7e2
.
2022-07-05 00:12:41 +02:00
Bartek Iwańczuk
06934db883
Revert "feat: add "unhandledrejection" event support ( #12994 )" ( #15075 )
...
This reverts commit f7af0b01a5
.
2022-07-04 23:34:39 +02:00
Bartek Iwańczuk
f7af0b01a5
feat: add "unhandledrejection" event support ( #12994 )
...
This commit adds support for "unhandledrejection" event.
This event will trigger event listeners registered using:
"globalThis.addEventListener("unhandledrejection")
"globalThis.onunhandledrejection"
This is done by registering a default handler using
"Deno.core.setPromiseRejectCallback" that allows to
handle rejected promises in JavaScript instead of Rust.
This commit will make it possible to polyfill
"process.on("unhandledRejection")" in the Node compat
layer.
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-07-04 21:14:58 +02:00
Roj
691d67b3ed
chore(test): fix test_collect_specifiers
windows path to specifier code ( #15072 )
2022-07-04 14:28:41 -04:00
Roj
dced4d5e19
fix(cli): handle collecting a directory with file:// ( #15002 )
2022-07-04 10:46:10 -04:00
Divy Srivastava
4ee7216858
chore(cli/bench): use deno bench
for deno_common.js ( #15063 )
2022-07-04 16:53:02 +05:30
Carter Snook
8941a39fe5
fix(dts): stop default export type behavior ( #14977 )
...
Ref: #14976
2022-07-04 15:41:52 +10:00
Rafael Ávila de Espíndola
2d15e926f9
fix: update to TypeScript 4.7.4 ( #15022 )
2022-07-04 15:13:50 +10:00
Divy Srivastava
97a7f8d54d
chore(cli/bench): benchmark for raw HTTP ops ( #15043 )
2022-07-02 19:39:25 +05:30
David Sherret
95d2f206fc
refactor: extract deno_graph::create_graph
use to common function ( #15009 )
2022-07-01 11:50:16 -04:00
Bartek Iwańczuk
b8b82c3ea4
chore: use Rust 1.62.0 ( #15028 )
2022-07-01 15:28:06 +02:00
Divy Srivastava
350994e6a6
chore(cli/bench): Add more HTTP benchmarks ( #14995 )
2022-07-01 12:59:01 +05:30
David Sherret
3d8ba30ea0
chore: forward 1.23.2 to main ( #15027 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-30 18:01:08 -04:00
David Sherret
e46584a75a
fix(vendor): ignore import map in output directory instead of erroring ( #14998 )
2022-06-29 20:41:48 -04:00
David Sherret
8c4420c005
refactor: rename RootConfig
to CliOptions
( #15007 )
2022-06-29 11:51:11 -04:00
Mark Ladyshau
6743b3227b
fix(ext/web): remove ErrorEventInit
's error default ( #14809 )
2022-06-29 14:29:08 +02:00
Divy Srivastava
5eb9abd65f
chore(cli/bench): Add bun HTTP server ( #15004 )
2022-06-29 16:57:19 +05:30
bokuweb
91570ba6e8
chore(cli): remove unnecessary unsafe in bench ( #15000 )
2022-06-29 13:46:02 +05:30
David Sherret
01adbb1efb
refactor: add RootConfig
( #14985 )
2022-06-28 16:45:55 -04:00
Geert-Jan Zwiers
5b7bcefa11
fix(task): remove --no-config as task subcommand argument ( #14983 )
2022-06-28 21:47:51 +02:00
Colin Ihrig
0f6a5c5fc2
feat(web): add beforeunload event ( #14830 )
...
This commit adds the 'beforeunload' event.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-06-28 10:49:30 -04:00
Divy Srivastava
ab11b45d1d
refactor(bench): continuous benchmarking improvements ( #14821 )
2022-06-28 17:51:05 +05:30
Aapo Alasuutari
00f4521b20
feat(ext/ffi): Thread safe callbacks ( #14942 )
2022-06-28 14:53:36 +05:30
David Sherret
e1c90963fb
refactor: create args
folder ( #14982 )
2022-06-27 16:54:09 -04:00
Bartek Iwańczuk
681bb49d0d
fix(lsp): restart TS language service when caching dependencies ( #14979 )
2022-06-27 19:43:43 +02:00
Carter Snook
89fc240861
fix(dts/ffi): non-exact types break FFI inference ( #14968 )
2022-06-27 18:11:58 +05:30
Geert-Jan Zwiers
2d1c48ce17
fix(docs): --watch arg is stable ( #14970 )
2022-06-27 00:28:45 +02:00
Luca Casonato
8d82ba7299
build: require safety comments on unsafe code ( #13870 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-06-26 00:13:24 +02:00
Andreu Botella
38505db391
fix(modules): Immediately resolve follow-up dyn imports to a dyn imported module ( #14958 )
...
When a dynamically imported module gets resolved, any code that comes after an
await import() to that module will continue running. However, if that is the
last code in the evaluation of another dynamically imported module, that second
module will not resolve until the next iteration of the event loop, even though
it does not depend on the event loop at all.
When the event loop is being blocked by a long-running operation, such as a
long-running timer, or by an async op that might never end, such as with workers
or BroadcastChannels, that will result in the second dynamically imported module
not being resolved for a while, or ever.
This change fixes this by running the dynamic module loading steps in a loop
until no more dynamic modules can be resolved.
2022-06-25 20:56:29 +02:00
Divy Srivastava
18c9a7ad64
fix(core): don't panic on non-existent cwd ( #14957 )
...
Co-authored-by: cjihrig <cjihrig@gmail.com>
2022-06-25 09:21:58 +05:30
Aaron O'Mullan
fd5a12d7e2
refactor(snapshots): to their own crate ( #14794 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-06-24 15:04:45 +02:00
Bartek Iwańczuk
d39094913e
fix: don't error if Deno.bench() or Deno.test() are used in run subcommand ( #14946 )
2022-06-24 12:00:53 +02:00
Kayla Washburn
215f3d4c8e
v1.23.1 ( #14954 )
...
1.23.1 (#14952 )
Co-authored-by: aslilac <aslilac@users.noreply.github.com>
Co-authored-by: Kayla Washburn <mckayla@hey.com>
Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
Co-authored-by: aslilac <aslilac@users.noreply.github.com>
2022-06-23 15:27:41 -06:00
Nayeem Rahman
ef7bc5e0a6
fix(check): ignore TS2306 ( #14940 )
...
Fixes a regression where this type checking error was being surfaced in certain scenarios.
2022-06-23 12:18:32 -04:00
Bartek Iwańczuk
1e3713c3bc
fix(fmt): ignore node_modules directory ( #14943 )
2022-06-23 01:17:49 +02:00
David Sherret
ca4385ad68
fix: upgrade swc via deno_ast 0.16 ( #14930 )
2022-06-22 15:42:08 -04:00
sigmaSd
efaa149819
fix(repl): use spaces for tab handler on windows ( #14931 )
...
There is a bug in rustyline with tabs on Windows, so we insert spaces for now.
2022-06-22 10:28:28 -04:00
David Sherret
3455f16079
chore(test_util): add new string assertion macros ( #14928 )
2022-06-21 15:25:07 -04:00
David Sherret
7ad0d09228
chore: fix pty_tab_handler test on windows ( #14927 )
2022-06-21 15:24:50 -04:00
Aapo Alasuutari
a38a1f91cf
chore(ext/ffi): simplify FFI types ( #14920 )
...
This commit simplifies the TypeScript types used for interacting with Deno FFI. The basis is that types are now first grouped into logical wholes, NativeNumberType, NativeBigIntType etc. These wholes are combined into the NativeType and NativeResultType general types.
Additionally, this PR removes the { function: { parameters: [], result: "void" } } type declaration from parameters (and result types. Now functions are merely passed and returned as "function".
2022-06-21 08:20:33 +05:30
sigmaSd
ac2cf2cb3e
fix(repl): accept tab when previous character is whitespace ( #14898 )
2022-06-20 18:47:25 -04:00
David Sherret
a7339f756c
refactor: add EmitCache
trait ( #14925 )
2022-06-20 17:59:52 -04:00
David Sherret
a7a64438e2
fix: do not panic running .d.cts and .d.mts files ( #14917 )
2022-06-20 11:20:52 -04:00
Divy Srivastava
a0fc43c2c5
fix(cli/bench): Use deno check
instead of deno cache
( #14916 )
2022-06-20 20:07:24 +05:30
Divy Srivastava
354fa6cd00
BREAKING(ext/ffi): Remove Deno.UnsafePointer
indirection ( #14915 )
2022-06-20 19:08:10 +05:30
Nayeem Rahman
79b42808a4
perf(core): Cache source lookups ( #14816 )
...
Keep a cache for source maps and source lines.
We sort of already had a cache argument for source map lookup
functions but we just passed an empty map instead of storing it.
Extended it to cache source line lookups as well and plugged it
into runtime state.
2022-06-20 14:42:20 +02:00
Aapo Alasuutari
3d6fa64f19
feat(ext/ffi): Callbacks ( #14663 )
...
This commit adds support for unstable FFI
callbacks. A callback is registered using
the `Deno.UnsafeCallback` API.
The backing memory for the callback can
be disposed of using `Deno.UnsafeCallback#close`.
It is not safe to pass the callback after calling
close.
Callbacks from other than the isolate thread
are not supported.
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2022-06-20 16:36:04 +05:30
Mark Ladyshau
60869c2598
fix(ext/fetch): add accept-language
default header to fetch ( #14882 )
2022-06-19 23:33:24 +02:00
Aaron O'Mullan
d0137a93df
chore: use rust 1.61.0 ( #14911 )
2022-06-19 12:01:34 -03:00
David Sherret
f564497630
fix(fmt): should fail --check
on parse error ( #14907 )
2022-06-18 12:44:43 -04:00
Geert-Jan Zwiers
fa7cad06de
fix(docs): update description of --check
flag ( #14890 )
2022-06-18 18:11:15 +02:00
Matt Kane
96821057dc
docs(lsp): correct header name in comments ( #14897 )
2022-06-17 11:41:28 -04:00
Colin Ihrig
367e006e06
fix(ext/web): add EventTarget brand checking ( #14637 )
...
This commit adds brand checking to EventTarget. It also fixes a
bug where deno would crash if an abort signal was aborted on the
global addEventListener().
2022-06-17 11:05:02 -04:00
cjihrig
95312ab53a
fix: make Performance global an EventTarget
...
This commit updates the Performance global to extend
EventTarget.
2022-06-16 12:05:33 -04:00
denobot
e7ea4edc8a
1.23.0 ( #14878 )
...
* 1.23.0
* docs(Releases.md): update a few items for 1.23
* docs(Releases.md): revert bad formatting
Co-authored-by: aslilac <aslilac@users.noreply.github.com>
Co-authored-by: McKayla Washburn <mckayla@hey.com>
2022-06-15 17:02:18 -06:00
Ryan Dahl
d0dec8d36b
chore: upgrade various deps ( #14876 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-06-15 13:48:53 -04:00
Ryan Dahl
3d2394954c
upgrade: v8 10.4.132.5 ( #14874 )
2022-06-15 12:30:19 -04:00
Nayeem Rahman
845d4754c6
fix(check): use "moduleDetection": "force" ( #14875 )
2022-06-15 12:26:43 -04:00
Nayeem Rahman
0b90e966c5
chore(cli/cache): Remove CacheType::Declaration ( #14873 )
2022-06-15 10:25:25 -04:00
cjihrig
b2109a12aa
fix(url): properly indent when inspecting URLs ( #14867 )
...
This commit updates the custom inspect function for URL objects
to pass the inspect options through so that the context is
propagated and the resulting indentation is correct.
Fixes: https://github.com/denoland/deno/issues/14171
2022-06-15 09:52:28 -04:00
cjihrig
eadf943e59
fix(console): constrol inspect() indent with option ( #14867 )
...
This commit updates the Deno.inspect() logic to use the
indentLevel option to control indentation instead of passing
around separate indent/level parameters internally.
Refs: https://github.com/denoland/deno/issues/8099
Refs: https://github.com/denoland/deno/issues/14171
2022-06-15 09:52:28 -04:00
Luca Casonato
5bde4c7eca
BREAKING: remove Intl.v8BreakIterator
( #14864 )
...
This is a non-standard API that is mostly replaced by `Intl.Segmenter`.
2022-06-15 05:04:30 +02:00
sigmaSd
8bfa89a478
feat(repl): Add key binding to force a new line ( #14536 )
...
This commit adds key binding for "ctrl+s"
combination that will force a new line in REPL.
2022-06-15 02:19:06 +02:00
David Sherret
4cff05b275
refactor(runtime/signal): revert SIGINT and SIGBREAK Deno.kill
Windows changes ( #14865 )
2022-06-14 15:31:50 -04:00
Mark Ladyshau
d4f609d8e7
feat(test): update test summary report ( #14629 )
2022-06-14 20:51:49 +02:00