Squirrel
4b79e5a459
chore: Remove unused deps from Cargo.toml files ( #12106 )
2021-09-17 14:39:32 +02:00
Kitson Kelly
99de9eb4c2
fix(cli): don't ignore diagnostics about for await ( #12116 )
...
Fixes #12115
2021-09-17 16:54:52 +10:00
Divy Srivastava
9270cad67c
fix(ext/crypto): don't use core.decode for encoding jwk keys ( #12088 )
2021-09-16 09:12:38 +02:00
Satya Rohith
3c97dbf06b
chore: update tagline ( #12095 )
2021-09-16 11:55:06 +05:30
Kitson Kelly
ccb3387946
fix(lsp): align filter text to vscode logic ( #12081 )
...
Fixes #11861
2021-09-16 12:07:52 +10:00
Satya Rohith
badc87e657
chore(lsp): use pretty_assertions in e2e tests ( #12083 )
2021-09-15 16:04:17 +05:30
David Sherret
f92cc66f0d
1.14.0 ( #12074 )
2021-09-14 16:46:36 -04:00
David Sherret
16c27fce1f
chore: bump crate versions for 0.14 ( #12072 )
2021-09-14 15:38:35 -04:00
Bartek Iwańczuk
1848f43aa1
chore: update URL for schemas ( #12070 )
2021-09-14 16:39:58 +02:00
Divy Srivastava
c41460ecc4
feat(ext/crypto): import RSA pkcs#8 keys ( #11891 )
2021-09-14 15:21:20 +02:00
Kitson Kelly
d36b01ff69
fix(lsp): correctly parse registry patterns ( #12063 )
2021-09-14 14:40:35 +02:00
Satya Rohith
bb7ee4f445
feat(lsp): ignore specific lint for entire file ( #12023 )
2021-09-14 17:46:51 +05:30
Bartek Iwańczuk
6e3c8a4b05
chore: add JSON schema for configuration file ( #12062 )
2021-09-14 04:18:02 +02:00
Bartek Iwańczuk
94c5cd7b2c
docs: Update --config flag help text ( #12059 )
2021-09-14 00:41:34 +02:00
Bartek Iwańczuk
cba1e7b5a3
feat: add option flags to 'deno fmt' ( #12060 )
2021-09-13 22:06:45 +02:00
Bartek Iwańczuk
0dbeb774ba
feat(fmt): add support for configuration file ( #11944 )
...
This commit adds support for configuration file for "deno fmt"
subcommand. It is also respected by LSP when formatting
files.
Example configuration:
{
"fmt": {
"files": {
"include": ["src/"],
"exclude": ["src/testdata/"]
},
"options": {
"useTabs": true,
"lineWidth": 80,
"indentWidth": 4,
"singleQuote": true,
"textWrap": "preserve"
}
}
}
2021-09-13 20:19:10 +02:00
Leo K
a655a0f3e4
feat(unstable): allow specifing gid and uid for subprocess ( #11586 )
2021-09-13 19:26:23 +02:00
Bartek Iwańczuk
274ff6c469
fix: change assertion in httpServerIncompleteMessage test ( #12052 )
2021-09-13 17:05:00 +02:00
Bartek Iwańczuk
a95ca9dc70
feat: stabilise Deno.upgradeWebSocket ( #12024 )
2021-09-13 14:06:12 +02:00
Geert-Jan Zwiers
3ef23e25c6
fix(cli): use updated names in deno info help text ( #11989 )
2021-09-13 13:50:04 +02:00
Andreu Botella
93290487eb
fix: worker_message_before_close was flaky ( #12019 )
2021-09-13 13:47:17 +02:00
Divy Srivastava
2199bdaf64
feat(ext/crypto): export RSA keys as pkcs#8 ( #11880 )
2021-09-13 11:33:28 +02:00
Satya Rohith
84f8747157
fix(lsp): support data urls in deno.importMap
option ( #11397 )
2021-09-13 09:49:23 +05:30
Kitson Kelly
a442821d97
chore: update deno_* crates ( #12020 )
2021-09-13 10:06:36 +10:00
Nayeem Rahman
2cc1577d28
fix(ext/fetch): Properly cancel upload stream when aborting ( #11966 )
...
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-09-13 01:19:38 +02:00
Divy Srivastava
0520ae62dd
fix(ext/crypto): add HkdfParams and Pkdf2Params types ( #11991 )
2021-09-12 23:02:49 +02:00
Ryan Dahl
13991e5995
refactor: Remove duplicated colors.rs file ( #11990 )
2021-09-12 12:04:17 -04:00
David Sherret
00d62e64bf
chore(lsp): temporarily reparse AST for linting ( #11988 )
2021-09-12 09:42:11 -04:00
Divy Srivastava
40c63d1255
feat(ext/crypto): verify ECDSA signatures ( #11739 )
2021-09-11 16:49:53 -04:00
Bartek Iwańczuk
d236f432b8
refactor: use import_map crate ( #11974 )
...
Removes ImportMap implementation from "cli/" and instead
uses "import_map" crate
2021-09-11 03:38:24 +02:00
Bartek Iwańczuk
bd4ca721eb
fix: Query string percent-encoded in import map ( #11976 )
...
This commit fixes a problem in import map when resolving
specifiers containing "?" or "#".
Due to special handling of Windows specifiers required because
of how "url" crate works, a regression was introduced that percent-encoded
all parts of URL that were not considered "path segments".
Co-authored-by: Andreu Botella <abb@randomunok.com>
2021-09-11 02:36:57 +02:00
Ryan Dahl
fb35cd0ef4
fix: permission prompt stuffing ( #11931 )
...
Fixes #9750
2021-09-09 08:38:47 -04:00
Nayeem Rahman
d947629292
fix(ext/web): Preserve stack traces for DOMExceptions ( #11959 )
2021-09-08 23:14:26 +02:00
Bartek Iwańczuk
85e316bd6b
chore: release deno_http 0.8.0 ( #11956 )
2021-09-08 19:32:19 +02:00
David Sherret
2958b05d0c
fix(test): propagate join errors in deno test ( #11953 )
2021-09-08 11:18:07 -04:00
Bartek Iwańczuk
5db1c401cd
fix: bring back Deno.Signal to unstable props ( #11945 )
2021-09-08 13:18:56 +02:00
Luca Casonato
e07f28d301
feat: add URLPattern API ( #11941 )
...
This adds support for the URLPattern API.
The API is added in --unstable only, as it has not yet shipped in any
browser. It is targeted for shipping in Chrome 95.
Spec: https://wicg.github.io/urlpattern/
Co-authored-by: crowlKats < crowlkats@toaxl.com >
2021-09-08 11:14:29 +02:00
Bartek Iwańczuk
2de5587547
fix(ext/http): resource leak if request body is not consumed ( #11955 )
2021-09-08 10:12:23 +02:00
Bartek Iwańczuk
c04117134e
refactor(lint): reuse lint rules ( #11934 )
...
This commit updated "deno_lint" crate to 0.15.1 and refactors
"cli/tools/lint.rs" to create only a single vector of lint rules,
instead of creating a vector for each linted file.
2021-09-08 07:08:33 +02:00
BasiqueEvangelist
08e12380a0
feat(cli): Support Basic authentication in DENO_AUTH_TOKENS ( #11910 )
2021-09-08 06:18:11 +02:00
Kitson Kelly
bf6dbf9855
fix(cli): better handling of source maps ( #11954 )
...
Ref: #11874
2021-09-08 14:05:34 +10:00
David Sherret
4833103011
fix: exit process on panic in a tokio task ( #11942 )
2021-09-07 19:34:27 -04:00
David Sherret
e3a484ae44
fix: remove windows-only panic when calling Deno.kill
( #11948 )
2021-09-07 18:45:13 -04:00
David Sherret
2c2e3ec1ca
refactor(lsp): use deno_ast and cache swc ASTs ( #11780 )
2021-09-07 10:39:32 -04:00
Nayeem Rahman
d331c4b283
fix(ext/web): Format terminal DOMExceptions properly ( #11834 )
2021-09-06 22:59:20 +02:00
Ryan Dahl
c132c8690b
BREAKING(unstable): Remove Deno.Signals enum, Deno.signals.* ( #11909 )
2021-09-06 10:05:33 -04:00
Andreu Botella
b7c2902c97
Don't drop messages from workers that have already been closed ( #11913 )
...
When `worker.terminate()` is called, the spec requires that the
corresponding port message queue is emptied, so no messages can be
received after the call, even if they were sent from the worker before
it was terminated.
The spec doesn't require this of `self.close()`, and since Deno uses
different channels to send messages and to notify that the worker was
closed, messages might still arrive after the worker is known to be
closed, which are currently being dropped. This change fixes that.
The fix involves two parts: one on the JS side and one on the Rust side.
The JS side was using the `#terminated` flag to keep track of whether
the worker is known to be closed, without distinguishing whether further
messages should be dropped or not. This PR changes that flag to an
enum `#state`, which can be one of `"RUNNING"`, `"CLOSED"` or
`"TERMINATED"`.
The Rust side was removing the `WorkerThread` struct from the workers
table when a close control was received, regardless of whether there
were any messages left to read, which made any subsequent calls to
`op_host_recv_message` to return `Ok(None)`, as if there were no more
mesasges. This change instead waits for both a close control and for
the message channel's sender to be closed before the worker thread is
removed from the table.
2021-09-06 11:05:02 +02:00
Craig Morten
930cb0afd8
chore(std/http): server module name migration ( #11890 )
2021-09-05 22:43:46 +02:00
Feng Yu
bb99d5da4c
fix(doc): fix rustdoc bare_urls warning ( #11921 )
2021-09-05 16:22:45 +02:00
Casper Beyer
f9d29115a0
feat(cli): close test worker once all tests complete ( #11727 )
2021-09-04 20:19:26 +02:00
Casper Beyer
ce79cb5797
refactor(testing): redirect console output via reporter ( #11911 )
...
This feeds console output to the reporter and handles silencing there
instead of in the JavaScript code.
2021-09-04 15:16:35 +02:00
Bartek Iwańczuk
44ca3ce6ae
refactor: factor out DenoSubcommand enum variant into structs ( #11896 )
...
This commit refactors "DenoSubcommand" enum in a way that variants
no longer contain anonymous structures but instead contain
dedicated structures for each subcommand, eg. "DenoSubcommand::Lint"
now contains "LintSubcommand".
2021-09-04 01:33:35 +02:00
Bartek Iwańczuk
d93570a619
feat(lint): add support for config file and CLI flags for rules ( #11776 )
...
This commit adds support for following flags in deno lint subcommand:
--config - allows to load configuration file and parses "lint" object
--rules-tags=<tags> - allows specifying which set of tagged rules should be run
--rules-include=<rules> - allow specifying which rules should be run
--rules-exclude=<rules> - allow specifying which rules should not be run
2021-09-03 17:01:58 +02:00
David Sherret
c3001fe280
chore(test): improve flaky lsp_diagnostics_refresh_dependents test to give more info ( #11905 )
2021-09-02 20:31:59 -04:00
David Sherret
987716798f
feat(fmt): add basic JS doc formatting ( #11902 )
2021-09-02 18:28:12 -04:00
Luca Casonato
1bf7b90ca8
chore: update dependencies ( #11856 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-09-02 23:38:44 +02:00
Bartek Iwańczuk
c84532b6d5
chore: upgrade crates ( #11894 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2021-09-02 17:38:19 +02:00
Casper Beyer
77ead8af20
fix(cli): retain path based test mode inference ( #11878 )
2021-09-01 18:31:56 +09:00
Andreu Botella
c49eee551f
feat(workers): Make the Deno
namespace configurable and unfrozen ( #11888 )
...
This is the worker counterpart of PR #11062 .
2021-08-31 19:33:03 +02:00
Luca Casonato
fcd0992dba
fix: move unstable declarations to deno.unstable ( #11876 )
2021-08-31 11:25:15 +02:00
Luca Casonato
0aa6b1e79f
chore: update to rusty_v8 0.27.0 ( #11877 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-30 18:40:00 +02:00
Divy Srivastava
5ee2110179
feat(ext/crypto): support JWK export for HMAC ( #11864 )
2021-08-29 14:23:51 +02:00
Aaron O'Mullan
8a097410a8
bench(deno_common): track readFile 128kb ( #11862 )
2021-08-29 01:05:32 +02:00
Divy Srivastava
1f57cd2c0f
feat(ext/crypto): support JWK import for HMAC ( #11716 )
2021-08-27 13:19:41 +02:00
Kitson Kelly
935133f53a
feat(cli): Update to TypeScript 4.4 ( #11678 )
2021-08-27 10:12:59 +10:00
Casper Beyer
b9a965c607
refactor(cli): introduce module specifier test modes ( #11769 )
...
This commit merges the two vectors of specifiers into a single one introducing
the concept of a "TestMode" which is a tri-state enum specifying how a specifier
is to be tested (as documentation, as an executable module or as both).
This is determined during the collection phase and determines how a specifier
will be executed based on how the specifier was collected (directly or not) and
if it has an eligible media_type when fetched.
For example "deno test README.md" is marked as documentation because, while it
is a direct inclusion it is not an executable media type therefore will only
have the fenced code blocks that can be parsed from it tested.
2021-08-26 21:21:58 +02:00
Sebastien Filion
192af1e7bc
docs: Add async iterator alternative for Deno.serveHttp ( #11850 )
2021-08-26 17:06:58 +02:00
David Sherret
5d7d9d6443
chore(tests): improve unit tests using deferred
( #11842 )
2021-08-25 16:04:14 -04:00
Sean Michael Wykes
dccf4cbe36
feat(fetch): mTLS client certificates for fetch() ( #11721 )
...
This commit adds support for specifying client certificates when using fetch, by means of `Deno.createHttpClient`.
2021-08-25 14:25:12 +02:00
Dayan C. Galiazzi
873cce27b8
fix(ext/http): websocket upgrade header check ( #11830 )
2021-08-25 00:55:32 +02:00
Casper Beyer
a3fd4bb998
fix(cli): dispatch unload event on watch drop ( #11696 )
2021-08-24 22:34:09 +02:00
Divy Srivastava
85a56e7144
feat(ext/crypto): implement encrypt, decrypt & generateKey for RSA-OAEP ( #11654 )
2021-08-24 21:59:02 +02:00
Sebastien Filion
e10d30c8ea
fix(typings): fix property name in DiagnosticMessageChain interface ( #11821 )
2021-08-24 11:53:38 -04:00
Casper Beyer
a7240c5091
feat(cli): add --ignore flag to test command ( #11712 )
2021-08-24 17:23:29 +02:00
Nicolas Stucki
c4561ac969
feat(extensions/console): right align numeric columns in table ( #11748 )
2021-08-24 17:17:40 +02:00
Tilman Roeder
93d83a84db
feat(unstable): Add file locking APIs ( #11746 )
...
This commit adds following unstable APIs:
- Deno.flock()
- Deno.flockSync()
- Deno.funlock()
- Deno.funlockSync()
2021-08-24 15:21:31 +02:00
Nayeem Rahman
1b7848c4a9
feat(unstable): Support file URLs in Deno.dlopen() ( #11658 )
2021-08-24 15:09:00 +02:00
Nayeem Rahman
8c57a6b7e3
BREAKING(unstable): Fix casing in FfiPermissionDescriptor ( #11659 )
2021-08-24 15:08:41 +02:00
Leo K
f4a9db350f
chore(ext/webgpu): update wgpu to 0.10.0 ( #11781 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-24 13:29:42 +02:00
David Sherret
7b882cc05f
1.13.2 ( #11822 )
2021-08-23 16:58:49 -04:00
David Sherret
6db8cbb650
chore: release crates for 1.13.2 ( #11820 )
2021-08-23 15:48:08 -04:00
Luca Casonato
df084b9f14
fix(ext/ffi): don't panic on invalid enum values ( #11815 )
...
Co-authored-by: Feng Yu <f3n67u@gmail.com>
2021-08-23 18:31:19 +02:00
Bartek Iwańczuk
2187c11e5d
fix(ext/http): resource leak on HttpConn.close() ( #11805 )
...
This commit adds tracking of resources that are related
to "HttpConn" so they can be closed automatically
when closing the connection.
2021-08-23 16:15:59 +02:00
Casper Beyer
2c17045aa8
refactor(cli/tools/test): infer disable log from program state ( #11803 )
2021-08-23 16:03:57 +02:00
Bartek Iwańczuk
dbcdd3a18e
fix: duplicate import in cli/main.rs ( #11813 )
2021-08-23 14:08:55 +02:00
Casper Beyer
f3b2f23a1d
refactor(cli/flags): use an optional non zero usize for fail-fast
( #11804 )
...
Changes the type of the `fail_fast` flag from `Option<usize>` to
`Option<NonZeroUsize>` as an optional value of zero isn't sound.
2021-08-23 12:37:02 +02:00
Casper Beyer
198699faba
fix(cli/flags): require a non zero usize for concurrent jobs ( #11802 )
2021-08-23 12:35:38 +02:00
Feng Yu
cb8f34c325
doc(test): add --location to unit test command ( #11793 )
2021-08-21 14:32:05 +02:00
Feng Yu
4c1e56b2f0
tests: remove redundant type assertion ( #11794 )
2021-08-21 16:55:28 +10:00
Kitson Kelly
0d83afd939
fix(lsp): better handling of languageId ( #11755 )
...
Fixes #11521
Fixes #11742
2021-08-19 13:19:12 +10:00
Pankaj Patil
e55454613c
docs(lsp): change deno/registryStatus -> deno/registryState ( #11760 )
2021-08-18 12:17:52 -04:00
Casper Beyer
71e558c71c
test: re-enable test watch tests and mark as flaky ( #11669 )
2021-08-18 15:35:24 +02:00
Luca Casonato
a66218d457
fix(runtime): event loop panics in classic workers ( #11756 )
...
Classic worker scripts are now executed in the context of a Tokio
runtime. This does mean we can not spawn more tokio runtimes in
"op_worker_sync_fetch". We instead spawn a new thread there, that can
create a new Tokio runtime that we can use to block the worker thread.
2021-08-18 15:19:22 +02:00
Casper Beyer
4b800f5d26
refactor(cli): pass optional op_init to create_main_worker ( #11707 )
...
Replaces the testing flag in create_main_worker with a more
general purpose hook to register additional ops.
2021-08-17 12:08:39 +02:00
Divy Srivastava
af97535b7c
fix(ext/crypto): exportKey() for HMAC ( #11737 )
...
Fixes typings and innerKey processing (WPT doesn't test
exportKey for HMAC so this wasn't caught earlier).
2021-08-17 11:29:32 +02:00
David Sherret
c67f6c13cd
1.13.1
2021-08-16 17:42:52 -04:00
David Sherret
a66a7bebbe
chore: release crates for 1.13.1 ( #11729 )
2021-08-16 16:49:14 -04:00
Ben Noordhuis
6ced7b0383
fix(ext/fetch): better error if no content-type
...
The streaming WASM support code inspects the Response object's
Content-Type header but if that was missing, it failed with a fairly
inscrutable "String.prototype.toLowerCase called on null or undefined"
exception. Now it raises a more legible "Invalid WebAssembly content
type" exception.
2021-08-16 19:45:37 +02:00
Ben Noordhuis
245987b2a7
chore(cli/tests): disable flaky test on macos ci ( #11726 )
...
Refs #11580 .
2021-08-16 16:15:00 +02:00
Andreu Botella
ddbb7b83f2
feat(runtime): support classic workers for internal testing ( #11338 )
...
This commit implements classic workers, but only when the `--enable-testing-features-do-not-use` flag is provided. This change is not user facing. Classic workers are used extensively in WPT tests. The classic workers do not support loading from disk, and do not support TypeScript.
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-16 14:29:54 +02:00
Bartek Iwańczuk
d1d2388d7f
test(ext/http): add test for incomplete HTTP message and fix resource leak ( #11717 )
...
This commit adds a test case for "Http: connection closed before
message completed" error as well as fixing an edge with resource
leak when the error is raised.
2021-08-16 13:43:43 +02:00
Ryan Dahl
163f2ef571
fix: parse error when transpiling code with BOM ( #11688 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2021-08-16 09:28:29 +02:00
Luca Casonato
02b23e0575
fix: don't statically type name on Deno.errors ( #11715 )
2021-08-15 15:17:07 +02:00
Casper Beyer
d1fe03d677
fix(test): dispatch load event before tests are run ( #11708 )
2021-08-15 13:54:44 +02:00
Divy Srivastava
370c5013c5
chore: move importKey tests to webcrypto_unit.ts ( #11706 )
2021-08-14 16:23:11 +02:00
Yusuke Tanaka
a1c5fef67f
fix(cli/lint): don't use gray in diagnostics output for visibility ( #11702 )
2021-08-14 15:05:07 +02:00
Casper Beyer
f90231924d
fix(cli): explicitly scan for ignore attribute in inline tests ( #11647 )
...
This commits adds "ignore" as a known attribute for Markdown
codeblock which drops a code block early whenever it is seen
in documentation tests.
2021-08-14 12:33:58 +02:00
Aaron O'Mullan
1d1507384b
cleanup(ext/web/BlobStore): avoid redundant Arc<Box<T>> alloc ( #11693 )
2021-08-14 10:27:27 +02:00
Casper Beyer
b8cfc95470
fix(cli/tools/repl): dont highlight candidate when completion is list ( #11697 )
2021-08-14 10:19:30 +02:00
Casper Beyer
ed19e32d98
refactor: normalize is_supported_
check naming ( #11698 )
...
Normalizes the naming of the functions used to determine
if a path is a suitable match for the test runner and placed
them both in the the fs_util module.
2021-08-14 10:17:21 +02:00
Casper Beyer
605f6119e9
fix(cli): retain input order of remote specifiers ( #11700 )
...
Specifier collection partitions remote specifiers in their own
group which is appended to the collected specifiers at the
end of the routine meaning that the input order isn't respected
for remote specifiers.
2021-08-14 10:16:24 +02:00
Divy Srivastava
71f79097c6
fix(ext/crypto): importKey() SecurityError on non-extractable keys ( #11662 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-13 23:20:44 +02:00
Leo K
0c9d6cbb2a
fix(http/ws): support multiple options in connection header ( #11675 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-13 20:52:13 +02:00
Bartek Iwańczuk
2937f02f00
fix(ext/http): remove unwrap() when HTTP conn errors ( #11674 )
2021-08-13 12:07:05 +02:00
Casper Beyer
ebb79b28a5
refactor(cli): generalize module specifier collection ( #11679 )
2021-08-13 12:06:49 +02:00
Casper Beyer
293eed0ef2
test(cli): add test for test filtering ( #11672 )
2021-08-13 11:33:18 +02:00
Divy Srivastava
c1f97056f4
fix(ext/crypto): take a copy of keyData bytes ( #11666 )
2021-08-13 11:27:56 +02:00
Casper Beyer
3dff757927
fix(cli): allow specifiers of unknown media types with test command ( #11652 )
2021-08-12 20:10:14 +02:00
Bartek Iwańczuk
7d55e05486
fix(lint): add links to help at lint.deno.land ( #11667 )
2021-08-12 19:15:31 +02:00
Bartek Iwańczuk
fd94575576
test: mark run_watch test as flaky ( #11668 )
2021-08-12 13:51:27 +02:00
Casper Beyer
87d69d55ca
fix(test): sort file module specifiers ( #11656 )
2021-08-12 12:09:35 +02:00
Chris Knight
bb6473f3c2
doc: improve coverage CLI help text ( #11646 )
...
Co-authored-by: Casper Beyer <caspervonb@pm.me>
2021-08-12 10:21:38 +02:00
Ryan Dahl
cd323612fd
mark cafile tests as flaky ( #11649 )
2021-08-11 17:38:07 +02:00
David Sherret
15a763152f
chore: move test files to testdata directory ( #11601 )
2021-08-11 10:20:47 -04:00
Ryan Dahl
a0285e2eb8
Rename extensions/ directory to ext/ ( #11643 )
2021-08-11 12:27:05 +02:00
Bartek Iwańczuk
3a69941151
test: reenable cafile tests ( #11615 )
2021-08-11 11:52:52 +02:00
David Sherret
8b97b39d8e
fix: correct spelling of certificate in --unsafely-ignore-certificate-errors
warning message ( #11634 )
2021-08-10 12:47:44 -04:00
Bartek Iwańczuk
d82351d677
v1.13.0
2021-08-10 16:22:21 +02:00
Bartek Iwańczuk
548e466112
chore: release crates ( #11628 )
2021-08-10 14:19:42 +02:00
Bartek Iwańczuk
b9a8111a00
refactor: --unsafely-ignore-certificate-errors ( #11629 )
2021-08-10 13:19:45 +02:00
Kitson Kelly
465cf9a6fe
feat: add new esnext types ( #11627 )
2021-08-10 10:33:08 +02:00
Bartek Iwańczuk
453dfaa960
chore: upgrade crates ( #11626 )
2021-08-10 09:19:14 +02:00
Bartek Iwańczuk
162ec192b7
upgrade: rusty_v8 0.26.0 ( #11625 )
2021-08-10 09:13:02 +02:00
Kitson Kelly
f7e416bc7f
feat(lsp): support clients which do not support disabled code actions ( #11612 )
...
Closes: #11610
2021-08-10 09:56:34 +10:00
Leo K
2db381eba9
feat: add experimental WebSocketStream API ( #10365 )
...
This commit adds the experimental WebSocketStream API when
using the --unstable flag.
The explainer for the API can be found here:
https://github.com/ricea/websocketstream-explainer
2021-08-10 00:28:17 +02:00
David Sherret
7600a456df
chore: remove windows-only compiler warning in http_util.rs ( #11623 )
2021-08-09 16:19:10 -04:00
TheAifam5
353a4a1af3
feat: Add --unsafely-treat-insecure-origin-as-secure flag to disable SSL verification ( #11324 )
...
This commit adds "--unsafely-treat-insecure-origin-as-secure" flag
that allows to disable SSL verification for all domains, or specific
domains if they were passed as an argument to the flag.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-09 16:53:21 +02:00
Ryan Dahl
3ab50b3551
feat: support client certificates for connectTls ( #11598 )
...
Co-authored-by: Daniel Lamando <dan@danopia.net>
Co-authored-by: Erik Price <github@erikprice.net>
2021-08-09 15:55:00 +02:00
Leo K
f546f51698
fix(websocket): allow any close code for server ( #11614 )
2021-08-09 10:45:59 +02:00
Leo K
16ae4a0d57
feat(extensions/web): add structuredClone function ( #11572 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-08-09 10:39:00 +02:00
Justin Chase
02c74fb709
feat(tls): Optionally support loading native certs ( #11491 )
...
This commit adds "DENO_TLS_CA_STORE" env variable to support
optionally loading certificates from the users local certificate store.
This will allow them to successfully connect via tls with corporate
and self signed certs provided they have them installed in their keystore.
It also allows them to deal with revoked certs by simply updating
their keystore without having to upgrade Deno.
Currently supported values are "mozilla", "system" or empty value.
2021-08-07 14:49:38 +02:00
David Sherret
fddeb4cea2
chore: fix repl_with_eval_flag test ( #11603 )
2021-08-06 18:09:19 -04:00
David Sherret
864ce6e832
feat(repl): add --eval flag for evaluating code when the repl starts ( #11590 )
2021-08-06 17:30:28 -04:00
Elias Sjögreen
33c8d790c3
feat: ffi to replace plugins ( #11152 )
...
This commit removes implementation of "native plugins" and replaces
it with FFI API.
Effectively "Deno.openPlugin" API was replaced with "Deno.dlopen" API.
2021-08-06 23:28:10 +02:00
Bartek Iwańczuk
0d1a522a03
revert: allow URL for permissions ( #11600 )
...
Revert changes to "net" permissions in regards to handling URLs
introduced in 15b0e61de
.
2021-08-06 21:10:04 +02:00
Benjamin Gruenbaum
2b53602d3c
feat: support AbortSignal in writeFile ( #11568 )
2021-08-06 10:21:29 -07:00
David Sherret
466d3df9d1
refactor: make ParsedModule
implement Sync
( #11581 )
2021-08-06 10:36:16 -04:00
David Sherret
e9ddc7a41a
feat(repl): support exports in the REPL ( #11592 )
2021-08-06 09:37:24 -04:00
Leo K
15b0e61de5
feat(runtime): allow URL for permissions ( #11578 )
2021-08-06 15:04:00 +02:00
Jean Pierre
728d205d9d
feat(lsp): implement refactoring code actions ( #11555 )
...
Closes: denoland/vscode_deno#433
2021-08-06 11:46:32 +10:00
Leo K
3f0cf9619f
refactor(cli/tests): remove unnecessary void return types ( #11577 )
2021-08-05 13:08:58 +02:00
David Sherret
299c7cfe54
feat(fmt): format top-level JSX elements/fragments with parens when multi-line ( #11582 )
2021-08-04 23:17:32 -04:00
David Sherret
fcaf8cd8e3
chore: refactor netHangsOnClose
test to not use deferred
( #11585 )
2021-08-04 19:45:10 -04:00
Leo K
2ac031d6fd
feat(unstable): clean environmental variables for subprocess ( #11571 )
...
This commit adds "Deno.RunOptions.clearEnv" option, that allows
to clear environmental variables from parent process before spawning
a subprocess.
2021-08-04 21:47:43 +02:00
David Sherret
1cd95dd8b5
chore: surface import map JSON parse error to user ( #11573 )
2021-08-03 15:29:12 -04:00
David Sherret
d7d452efc1
chore: format toml files internally ( #11563 )
2021-08-02 10:19:27 -04:00
Bartek Iwańczuk
505d253436
Revert "fix(extensions/fetch): Add Origin header to outgoing requests for fetch ( #11557 )" ( #11565 )
...
This reverts commit f87aa44d94
.
2021-08-02 15:56:52 +02:00
Bartek Iwańczuk
3a2e94492b
feat: stabilize Deno.serveHttp() ( #11544 )
...
This commit moves "Deno.serveHttp()" and related types
to stable namespace.
2021-08-02 14:40:46 +02:00
Feng Yu
f87aa44d94
fix(extensions/fetch): Add Origin header to outgoing requests for fetch ( #11557 )
2021-08-02 02:19:21 -07:00
David Sherret
ecb4c9492f
chore: fix failing netTcpListenCloseWhileIterating test on some machines ( #11552 )
2021-07-31 21:10:19 -04:00
David Sherret
a13db3650e
fix(lsp): do not output to stderr before exiting the process ( #11562 )
2021-07-31 21:05:09 -04:00
Yusuke Tanaka
8f00b5542c
chore: upgrade Rust to 1.54.0 ( #11554 )
2021-07-30 15:03:41 +02:00
Divy Srivastava
2b13bb6945
feat(runtime): implement navigator.hardwareConcurrency ( #11448 )
...
This commit implements "navigator.hardwareConcurrency" API, which
supersedes "Deno.systemCpuInfo()" API (which was removed in this commit).
2021-07-29 21:45:11 +02:00
David Sherret
eece46f0d8
fix: support windows file specifiers with import maps ( #11551 )
2021-07-29 15:20:34 -04:00
Casper Beyer
c276b52828
feat: type check codeblocks in Markdown file with "deno test --doc" ( #11421 )
2021-07-29 21:03:06 +02:00
Satya Rohith
d0ec29b493
chore: release deno_fetch ( #11549 )
2021-07-29 21:59:44 +05:30
Feng Yu
935083d99a
fix(cli): deno doc panics on invalid url ( #11536 )
2021-07-29 04:07:25 -07:00
Nayeem Rahman
42afbed053
BREAKING(unstable): Rename Deno.WebSocketUpgrade::websocket to socket ( #11542 )
2021-07-28 13:13:14 +02:00
Bartek Iwańczuk
c198535caf
fix: flaky worker test ( #11540 )
2021-07-28 13:12:45 +02:00
Kitson Kelly
667b026798
feat(lsp): ability to set DENO_DIR via settings ( #11527 )
...
Ref: denoland/vscode_deno#287
2021-07-28 07:25:09 +10:00
Yasser A.Idrissi
fd0b24b246
test(cli): add test for deno test --shuffle ( #11523 )
2021-07-27 20:18:16 +02:00
Bartek Iwańczuk
f47c550100
test: make integration::workers::workers test inspectable ( #11524 )
2021-07-27 02:11:38 +02:00
Kitson Kelly
c6f4e41529
refactor(lsp): minor improvements to handling closed documents ( #11518 )
...
Ref #10897
2021-07-27 07:40:12 +10:00
Liam Murphy
091a26104b
fix(cli/dts): Type Deno.errors.*
as subclasses of Error
( #10702 )
2021-07-26 20:40:24 +02:00
Casper Beyer
2e69d2135a
feat(cli/tools/test): imply media type from doc attribute ( #11438 )
2021-07-26 19:48:35 +02:00
Bartek Iwańczuk
dfba7a2b01
v1.12.2
2021-07-26 16:38:27 +02:00
Bartek Iwańczuk
f9bb7949b8
chore: release crates ( #11519 )
2021-07-26 15:45:40 +02:00
Casper Beyer
b2fcd3d014
fix(cli): side-load test modules ( #11515 )
...
This fixes a regression introduced in 1.9 where test modules became main
modules by side loading them in a generated module.
2021-07-26 14:05:44 +02:00
Kitson Kelly
72ac9c3ae0
fix(lsp): handle importmaps properly ( #11496 )
...
Fixes: #11146
Fixes: #11456
Fixes: #10439
2021-07-25 15:33:42 +10:00
Pavel Hrách
74c7559d20
fix(http): support multiple options in connection header for websocket ( #11505 )
...
Fixes #11494
2021-07-24 12:14:03 +10:00
Luca Casonato
28f2f02b7a
feat: add --enable-testing-features-do-not-use ( #11499 )
...
This flag does nothing yet. It is added in preparation for the addition
of classic workers.
2021-07-23 16:31:16 +02:00
Luca Casonato
8b34f07bb0
fix(http/ws): case insensitive connection header ( #11489 )
...
The "connection" header should be case insensitive:
https://datatracker.ietf.org/doc/html/rfc7230#section-6.1
2021-07-22 14:28:55 +02:00
Casper Beyer
4861b13aab
fix(cli): normalize test command errors ( #11375 )
2021-07-22 13:34:29 +02:00
Luca Casonato
78fc9a4c60
fix: support --cert flag for tls connect APIs ( #11484 )
2021-07-22 12:28:46 +02:00
Kitson Kelly
7d151efc68
fix(cli): info now displays type reference deps ( #11478 )
...
Fixes #11476
2021-07-22 15:34:28 +10:00
Kitson Kelly
bdc53b45b7
fix(lsp): do not populate maybe_type slot with import type dep ( #11477 )
...
Fixes: #11458
Fixes: #11461
Closes: denoland/vscode_deno#414
2021-07-22 15:00:45 +10:00
Bert Belder
63546c15bf
fix(cli): rebuild when environment variables change ( #11471 )
2021-07-20 19:06:40 -07:00
Kitson Kelly
c34fef4b71
feat(lsp): add workspace config to status page ( #11459 )
2021-07-21 11:50:43 +10:00
Luca Casonato
a2512de95f
fix: close fetch response body on GC ( #11467 )
...
This commit fixes fetch response bodies to be automatically closed if
the `Response.body` readable stream goes out of scope and is GC'ed.
2021-07-20 21:06:24 +02:00
Bartek Iwańczuk
9b9becf1ae
fix: panic for non-WS connections to inspector ( #11466 )
2021-07-20 15:41:36 +02:00
Yoshiya Hinosawa
65a1724acb
test(cli): add test case for 'deno test --watch' ( #11434 )
2021-07-20 18:29:17 +09:00
Luca Casonato
55632266e9
tests: re-enable disabled Response.formData test ( #11453 )
2021-07-20 00:11:50 +02:00
Bartek Iwańczuk
7d69f06db8
v1.12.1
2021-07-19 21:09:07 +02:00
Bartek Iwańczuk
cd445a2a0d
chore: release crates ( #11454 )
2021-07-19 20:20:42 +02:00
Ayato Tokubi
af4912ed0d
fix(repl): output error without hanging when input is invalid ( #11426 )
2021-07-19 05:38:13 -07:00
Kitson Kelly
07eb44e483
fix(tsc): add .at() types manually to tsc ( #11443 )
...
Fixes: #11441
2021-07-19 11:56:14 +10:00
Casper Beyer
3d3bb1e65c
fix(cli): re-enable --watch flag for test ( #11433 )
2021-07-18 17:55:25 +09:00
Casper Beyer
e0e26b4101
fix(cli): add help description for test --jobs option ( #11415 )
2021-07-17 18:27:37 -04:00
Andreu Botella
240545282a
fix(workers): silently ignore non-existent worker IDs ( #11417 )
...
Fixes #11416
2021-07-17 08:51:06 +10:00
Luca Casonato
91bbd1a6d5
fix(ext/http): correctly concat cookie headers ( #11422 )
...
Cookie headers should not be concatenated by commas, rather by
semicolons.
2021-07-16 16:31:16 +02:00
Casper Beyer
2e57476fbb
fix(cli): return error from coverage_command
( #11411 )
2021-07-15 18:28:14 +02:00
David Sherret
79ac050d29
chore: upgrade to swc 0.46 ( #11402 )
2021-07-14 21:28:01 -04:00
Casper Beyer
69ca44d8e2
refactor(cli/tools/test_runner): split reporter into distinct stages ( #11395 )
...
This splits up the reporter into smaller functions, one for each
distinct event that happens during the testing process.
2021-07-14 21:05:16 +02:00
Ayato Tokubi
6ce2a089a8
chore(repl): fix integration test input to not throw parse errors ( #11401 )
2021-07-14 14:41:24 -04:00
Casper Beyer
844910e44f
test(cli): ensure clear timeout doesn't trigger sanitizers ( #11396 )
2021-07-14 19:47:47 +02:00
Casper Beyer
56635d3b52
refactor(cli/tools/test_runner): make test reporters stateless ( #11357 )
...
This collects summary information in the event collector and
passes it to the reporter instead of having this embedded in
each reporter which leads to a lot of duplication.
2021-07-14 00:11:58 +02:00
Bartek Iwańczuk
1ad6575028
v1.12.0
2021-07-13 10:45:17 +02:00
Bartek Iwańczuk
642dd3d3c4
chore: release crates ( #11378 )
2021-07-13 02:16:49 +02:00
Luca Casonato
9c020d8c27
upgrade: deno_lint 0.10.0 ( #11374 )
2021-07-13 00:04:44 +02:00
Luca Casonato
51e0bfda3c
chore(runtime): deprecate Deno.copy
( #11369 )
2021-07-12 19:44:42 +02:00
Divy Srivastava
00484d24ba
feat(extensions/crypto): implement verify() for RSA ( #11312 )
2021-07-12 14:45:36 +02:00
Bartek Iwańczuk
e95c0c85fa
fix: non-existent field in cli/flags.rs ( #11368 )
2021-07-12 14:22:33 +02:00
Yasser A.Idrissi
32855f2c85
feat: Add support for "deno test --fail-fast=N" ( #11316 )
...
This commit adds support for specifying threshold in the "--fail-fast"
flag for "deno test" subcommand. Previously using "--fail-fast" stopped
running the test suite after first failure and with this change users
may specify number of failed tests that will cause the suite to be interrupted.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-07-12 12:55:42 +02:00
Casper Beyer
0bc54a0099
chore(cli/tools/test_runner): inline execute_module rresults ( #11358 )
2021-07-12 12:46:32 +02:00
Luca Casonato
f649960f87
refactor: deno_http op crate ( #11335 )
2021-07-12 12:44:49 +02:00
Ryan Dahl
511c48a03a
Revert "Remove unstable native plugins ( #10908 )"
...
This reverts commit 7dd4090c2a
.
2021-07-11 18:12:26 -07:00
Andreu Botella
eea6000ef6
fix: align DedicatedWorkerGlobalScope event handlers to spec ( #11353 )
2021-07-10 23:32:10 +02:00
Ryan Dahl
67c9937e66
Revert "feat(cli/tools/test_runner): add terse reporter ( #11156 )" ( #11352 )
...
it's another flag to understand, more code, and isn't something that anyone really needs.
This reverts commit 9d57a4aaeb
.
2021-07-10 07:51:30 -07:00
Casper Beyer
9d57a4aaeb
feat(cli/tools/test_runner): add terse reporter ( #11156 )
...
This commit adds "--terse" flag to "deno test" that makes testing reporter
output one character per test case instead of one line per case.
This is an unstable feature.
2021-07-10 01:29:18 +02:00
Casper Beyer
9b89668065
fix(cli): make --doc work with --watch ( #11183 )
2021-07-10 01:15:15 +02:00
Luca Casonato
ab079a8d63
chore: update crates ( #11332 )
2021-07-09 17:15:50 +02:00
David Sherret
d9c43f7f43
feat(repl): support autocomplete on declarations containing a primitive ( #11325 )
2021-07-08 12:58:18 -04:00
Bartek Iwańczuk
27e1b4cb5a
feat(core): return v8::Value from JsRuntime::execute_script ( #11129 )
...
This commit changes return type of JsRuntime::execute_script to include
v8::Value returned from evaluation.
When embedding deno_core it is sometimes useful to be able to inspect
script evaluation value without the hoops of adding ops to store the
value on the OpState.
v8::Global<v8::Value> is used so consumers don't have to pass
scope themselves.
2021-07-08 18:56:53 +02:00
Casper Beyer
c76c09e335
refactor(cli/tools/coverage): strongly type inspector values ( #11326 )
2021-07-08 17:53:56 +02:00
David Sherret
5fa58c9216
fix: inspecting prototypes of built-ins with custom inspect implementations should not throw ( #11308 )
2021-07-08 09:43:36 -04:00
Leo K
5e092b19fe
feat(runtime/http): server side websocket support ( #10359 )
...
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-07-08 13:33:01 +02:00
Leo K
397c34ca15
fix(cli/tools/upgrade): check if passed version is valid ( #11296 )
2021-07-07 14:59:39 -04:00
Casper Beyer
f48a3fd194
fix(cli/tools/lint): output json reports to stdout ( #11311 )
2021-07-07 20:39:24 +02:00
David Sherret
29b9c89312
chore: temporarily disable flaky single_compile_with_reload test ( #11320 )
2021-07-07 13:52:42 -04:00
Divy Srivastava
a8dcf9e261
fix(extensions/console): left align table entries ( #11295 )
2021-07-07 08:56:30 -07:00
Divy Srivastava
e3a4e9cf11
fix(crypto): hash input for RSASSA-PKCS1-v1_5 before signing ( #11314 )
2021-07-07 16:33:58 +02:00
David Sherret
7fc0e8ec8c
chore: use parking_lot for synchronization primitives to align with tokio ( #11289 )
...
parking_lot is already transitively used in tokio via the "full" cargo feature
2021-07-06 23:48:01 -04:00
Casper Beyer
78ac19f51f
fix(repl): do not panic when Deno.inspect throws ( #11292 )
2021-07-06 23:33:06 +02:00
Luca Casonato
bdfad23dd0
feat: support SharedArrayBuffer sharing between workers ( #11040 )
...
This commit adds support for sharing SABs between workers.
2021-07-06 19:42:52 +02:00
Divy Srivastava
570309d795
feat(crypto): implement generateKey() and sign() ( #9614 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-07-06 14:16:04 +02:00
Casper Beyer
e8258e0210
feat(test): add --shuffle flag to randomize test ordering ( #11163 )
2021-07-05 21:20:33 -04:00
David Sherret
ce3fbb4bd1
chore: add tests for previous assertion error when file contained only triple slash references ( #11285 )
2021-07-05 15:21:44 -04:00
Bartek Iwańczuk
334cef06e7
chore: upgrade crates ( #11284 )
2021-07-05 19:48:24 +02:00
Nayeem Rahman
060dd3ae82
fix(core): Delay deadlock detection for dynamic imports ( #11282 )
2021-07-05 18:59:49 +02:00
Casper Beyer
407de8b834
fix(runtime): ignored tests should not cause permission changes ( #11278 )
2021-07-05 18:36:43 +02:00
Yusuke Tanaka
0a33cc1951
chore: upgrade Tokio to 1.8.0 ( #11281 )
2021-07-05 15:50:56 +02:00
Jimmy Wärting
2c0b0e45b7
refactor: asynchronous blob backing store ( #10969 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-07-05 15:34:37 +02:00
Casper Beyer
ea87d860be
tests: be more liberal with expectation wildcards ( #11279 )
2021-07-05 14:30:51 +02:00
Leo K
220104f577
fix: spec conformance for performance API ( #10887 )
2021-07-05 13:17:11 +02:00
Craig Morten
a6c840d150
fix(fetch): OPTIONS should be allowed a non-null body ( #11242 )
2021-07-05 12:38:12 +02:00
Casper Beyer
c4cc353d59
refactor(runtime): reduce duplication in test harness ( #11274 )
2021-07-05 10:26:57 +02:00
Bartek Iwańczuk
5addba2abc
refactor: use primordials in runtime/, part2 ( #11248 )
2021-07-04 00:17:52 +02:00
Andreu Botella
ffa75be480
feat: enable WebAssembly.instantiateStreaming and wasm async compilation ( #11200 )
...
The WebAssembly streaming APIs used to be enabled, but used to take
buffer sources as their first argument (see #6154 and #7259 ). This
change re-enables them, requiring a Promise<Response> instead, as well as
enabling asynchronous compilation of WebAssembly modules.
2021-07-03 23:33:36 +02:00
Bartek Iwańczuk
6137c8046d
refactor: use primordials in runtime/, part1 ( #11241 )
2021-07-03 16:58:08 +02:00
David Sherret
68b4d60fd7
fix(diff): better handling of text with only line ending differences ( #11212 )
...
Additionally fixes:
* It not displaying a diff when one text had a trailing newline and the other didn't.
* Edge case where the line number width could be incorrect if the original text had say 99 lines and the edit text had 100 lines.
2021-07-02 10:16:09 -04:00
Bartek Iwańczuk
7dd4090c2a
Remove unstable native plugins ( #10908 )
...
This commit removes implementation of native plugins
alongside the unstable "Deno.openPlugin()" API.
2021-07-02 16:11:23 +02:00
Bartek Iwańczuk
513f921219
feat(core): pump V8 message loop on event loop tick ( #11221 )
...
This commit adds support for Atomics and FinalizationRegistry by integrating
V8's message loop into "JsRuntime::poll_event_loop".
2021-07-02 10:46:37 +02:00
Zhangyuan Nie
5648b22fe1
docs(cli/flags): use deno instead of target/debug/deno ( #11215 )
2021-07-02 10:43:53 +02:00
Luca Casonato
0385a99052
v1.11.3
...
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2021-07-02 00:13:40 +02:00
David Sherret
899470addc
chore: update dprint-plugin-json to remove duplicate dprint-core dependency ( #11209 )
2021-07-01 11:22:28 -04:00
Luca Casonato
e9e286a56e
upgrade: swc 0.44.0 ( #11197 )
2021-07-01 11:48:42 +02:00
Luca Casonato
de6e44794b
fix: panic in request body streaming ( #11191 )
2021-06-30 18:05:58 +02:00
Bert Belder
5db9f627e3
chore: get rid of REPL timeout ( #11175 )
...
* Get rid of timeout
* Use tokio channel and reduce calls to run_event_loop
Co-authored-by: David Sherret <dsherret@gmail.com>
2021-06-29 14:39:28 -04:00
Casper Beyer
a0c0daac24
test(cli): harden test runner tests ( #11166 )
2021-06-29 15:40:16 +02:00
Casper Beyer
96d0582900
fix(cli): pretty print coverage files ( #11157 )
2021-06-29 03:39:19 +02:00
Bartek Iwańczuk
38a7128cdd
feat: Add "deno_net" extension ( #11150 )
...
This commits moves implementation of net related APIs available on "Deno"
namespace to "deno_net" extension.
Following APIs were moved:
- Deno.listen()
- Deno.connect()
- Deno.listenTls()
- Deno.serveHttp()
- Deno.shutdown()
- Deno.resolveDns()
- Deno.listenDatagram()
- Deno.startTls()
- Deno.Conn
- Deno.Listener
- Deno.DatagramConn
2021-06-29 01:43:03 +02:00
Bartek Iwańczuk
30cba24848
chore: release deno_core ( #11164 )
2021-06-28 20:59:23 +02:00
Bartek Iwańczuk
9e875b2a23
fix(http): remove unwrap() in HTTP bindings ( #11130 )
2021-06-28 00:19:40 +02:00
David Sherret
098a7c8886
chore: split up integration_tests.rs into separate files ( #11131 )
2021-06-27 13:27:36 -04:00
Andreu Botella
5bf7da91f1
fix(runtime/http): Encode and decode headers as byte strings in the HTTP server ( #11144 )
2021-06-27 02:29:01 +02:00
Bartek Iwańczuk
7b9737b9f4
feat(inspector): pipe console messages between terminal and inspector ( #11134 )
...
This commit adds support for piping console messages to inspector.
This is done by "wrapping" Deno's console implementation with default
console provided by V8 by the means of "Deno.core.callConsole" binding.
Effectively each call to "console.*" methods calls a method on Deno's
console and V8's console.
2021-06-27 02:27:50 +02:00
Luca Casonato
22e7b0f585
fix: MessagePort in message for postMessage transfers ( #11103 )
2021-06-26 11:17:05 +02:00
David Sherret
1f4cdc067a
fix(lsp): reload import registries should not error when the module registries directory does not exist ( #11123 )
2021-06-25 21:44:27 -04:00
David Sherret
5ee6995cf7
chore: move repl integration tests to separate file ( #11127 )
2021-06-25 19:07:06 -04:00
Luca Casonato
40b083c540
fix: specify AbortSignal for native http requests ( #11126 )
2021-06-26 00:01:25 +02:00
Ryan Dahl
48f9df9aa2
upgrade: rusty_v8 0.23.0 (V8 9.2.230.12) ( #11113 )
2021-06-25 12:54:53 +02:00
Yoshiya Hinosawa
d832d2bfd1
chore(ext/console): deprecate Deno.customInspect ( #10035 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-06-25 16:19:18 +09:00
Yoshiya Hinosawa
606611708c
fix(runtime/signal): use op_async_unref for op_signal_poll ( #11097 )
2021-06-25 13:15:35 +09:00
Yoshiya Hinosawa
66c5f41c5b
test(cli): refactor the usages of delay ( #11098 )
...
This PR refactors the usages of delay utility in js unit testing. The same
utiliy is defined in several places with different names. This PR replaces those
usages with the one provided in std/async/delay.ts to improve the readability
and consistency of test code.
2021-06-25 03:44:14 +02:00
Kitson Kelly
9e51766f3e
feat(lsp): dependency hover information ( #11090 )
2021-06-25 09:06:51 +10:00
David Sherret
586586b791
fix: make readonly Event
properties readonly ( #11106 )
2021-06-24 14:21:13 -04:00
David Sherret
a2067ec46d
fix(inspect): eliminate panic inspecting event classes ( #10979 )
2021-06-24 09:43:41 -04:00
David Sherret
4b3845b998
feat(repl): support import declarations in the REPL ( #11086 )
2021-06-24 09:00:46 -04:00
Kitson Kelly
8ed83cba7e
fix(lsp): handle invalid config setting better ( #11104 )
...
Fixes #11100
Fixes #10808
2021-06-24 22:41:04 +10:00
Bert Belder
e02403bb45
ci: run Linux release builds in sysroot with Ubuntu 18.04 and LLVM ( #10920 )
2021-06-23 19:36:05 +00:00
David Sherret
477273085f
chore: use lsp to get parent process id ( #11083 )
...
Removes the previously added internal `--parent-pid` flag. This solution is better.
2021-06-22 21:48:01 -04:00
Benjamin Gruenbaum
20b0a5125a
feat(core): support AbortSignal in readFile ( #10943 )
2021-06-22 11:45:26 -04:00
Luca Casonato
6261c89e04
feat: transfer MessagePort between workers ( #11076 )
...
Add support for transferring `MessagePort`s between workers.
2021-06-22 16:30:16 +02:00
Yoshiya Hinosawa
4e3ec47857
fix(runtime): fix signal promise API ( #11069 )
2021-06-22 15:17:44 +09:00
Yusuke Tanaka
097c02f11b
chore: upgrade crates ( #11007 )
2021-06-22 06:15:32 +02:00
Vladimir Ivanov
cd59601b34
fix(extensions/fetch): Filter out custom HOST headers ( #11020 )
...
This commit updates "fetch" API to ignore custom "Host" headers
and return value provided by "reqwest".
2021-06-22 05:42:04 +02:00
Tomofumi Chiba
4f1b1903cf
feat(fetch): add programmatic proxy ( #10907 )
...
This commit adds new options to unstable "Deno.createHttpClient" API.
"proxy" and "basicAuth" options were added that allow to use custom proxy
when client instance is passed to "fetch" API.
2021-06-22 05:21:57 +02:00
Charlie Moog
580c9f9ef0
fix(core): don't panic on stdout/stderr write failures in Deno.core.print ( #11039 )
2021-06-22 04:39:59 +02:00
Muthu Kumar
388274e02e
fix: move stable/unstable types/APIs to their correct places ( #10880 )
...
- Moved ppid and memoryUsage types from deno.unstable to deno.ns.
- Moved sleepSync to unstable object, shutdown to stable object.
2021-06-22 03:03:00 +02:00
Casper Beyer
68c519d061
feat(repl): show list completion ( #11001 )
2021-06-22 02:07:26 +02:00
Bartek Iwańczuk
9105892ec8
refactor: unify JavaScript script execution method ( #11043 )
...
This commit renames "JsRuntime::execute" to "JsRuntime::execute_script". Additionally
same renames were applied to methods on "deno_runtime::Worker" and
"deno_runtime::WebWorker".
A new macro was added to "deno_core" called "located_script_name" which
returns the name of Rust file alongside line no and col no of that call site.
This macro is useful in combination with "JsRuntime::execute_script"
and allows to provide accurate place where "one-off" JavaScript scripts
are executed for internal runtime functions.
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2021-06-22 01:45:41 +02:00
Kitson Kelly
a5eb2dfc93
fix( #10761 ): graph errors reported as diagnostics for Deno.emit()
( #10767 )
...
Fixes #10761
2021-06-22 07:27:32 +10:00
Kitson Kelly
281c4cd8fc
feat(cli): support "types" when type checking ( #10999 )
...
Fixes #10677
2021-06-22 07:18:32 +10:00
Kitson Kelly
cda15f2a98
feat: Deno namespace configurable and unfrozen ( #11062 )
...
Closes #11033
2021-06-22 07:17:35 +10:00
David Sherret
2d2b5625e0
feat(repl): Type stripping in the REPL ( #10934 )
2021-06-21 15:13:25 -04:00
Luca Casonato
f9ff981daf
feat: MessageChannel
and MessagePort
( #11051 )
...
This commit introduces support for MessageChannel and MessagePort.
MessagePorts can be transfered across other MessagePorts.
2021-06-21 19:53:52 +02:00
Bartek Iwańczuk
a2f939b99c
refactor(core): always attach inspector to isolate ( #11042 )
...
This commit changes "deno_core::JsRuntime" to always create
"deno_core::JsRuntimeInspector" instance.
2021-06-21 19:37:51 +02:00
Bartek Iwańczuk
2c0e482221
v1.11.2
2021-06-21 17:47:25 +02:00
Bartek Iwańczuk
90e3abe8f9
chore: release crates ( #11068 )
2021-06-21 16:37:34 +02:00
Kitson Kelly
3f5fbea17c
fix: add support for module es2020 to Deno.emit ( #11065 )
2021-06-21 21:47:09 +10:00
Satya Rohith
952caa79b3
feat(lsp): quick fix actions to ignore lint errors ( #10627 )
...
Closes #10122
2021-06-21 16:43:35 +10:00
David Sherret
60071c941b
fix(lsp): do not rename in strings and comments ( #11041 )
2021-06-19 11:23:50 -04:00
Nayeem Rahman
2ea41d3ac1
fix(core/modules): Prepare modules only once per runtime ( #11015 )
...
This commit changes module loading implementation in "deno_core"
to call "ModuleLoader::prepare" hook only once per entry point.
This is done to avoid multiple type checking of the same code
in case of duplicated dynamic imports.
Relevant code in "cli/module_graph.rs" was updated as well.
2021-06-19 16:14:43 +02:00
Yusuke Tanaka
b0c04a7941
chore: upgrade Tokio to 1.7.1 ( #11045 )
2021-06-19 15:37:07 +02:00
Bartek Iwańczuk
a8e4fc15e5
fix: Worker accepts specifier as URL ( #11038 )
...
This commit updates type declarations for Worker to accept specifiers
as either strings or URL, bringing it in line with TypeScript
declarations and browser behavior.
2021-06-18 21:34:51 +02:00
David Sherret
419fe2e6b4
chore: fix new linting errors flagged by Rust 1.53 ( #11029 )
2021-06-17 21:48:16 -04:00
David Sherret
aecf989d43
chore(lsp): add --parent-pid <pid>
flag ( #11023 )
...
This commit adds a new `--parent-pid <pid>` flag to `deno lsp` that when provided starts a task that checks for the existence of the provided process id (ex. vscode's) every 30 seconds. If the process doesn't exist (meaning the deno process has nothing interacting with it), then it terminates itself.
2021-06-17 19:57:58 -04:00
Yusuke Tanaka
8031644e65
chore: upgrade Rust to 1.53.0 ( #11021 )
2021-06-17 15:56:30 -04:00
Yusuke Tanaka
a8007059b7
chore: upgrade Tokio to 1.7.0 ( #11008 )
2021-06-16 16:39:51 +02:00
Bartek Iwańczuk
d7ce3adc8b
v1.11.1
2021-06-15 23:28:27 +02:00
Bartek Iwańczuk
ba91a727a6
chore: release crates ( #10976 )
2021-06-15 22:14:58 +02:00
David Sherret
984b8bf0c8
fix(inspector): Deno.inspect should inspect the object the proxy represents rather than the target of the proxy ( #10977 )
2021-06-15 15:33:13 -04:00
Ryan Dahl
9c42b5e03b
Remove various unnecessary allow(clippy) declarations ( #10971 )
2021-06-15 19:22:28 +02:00
David Sherret
b4026dac9c
fix(repl): Complete declarations ( #10963 )
2021-06-15 09:31:36 -04:00
Kitson Kelly
1eac527adb
fix(cli): improve worker types ( #10965 )
2021-06-15 11:16:06 +10:00
Yusuke Tanaka
f4728e26fe
chore: upgrade swc_ecmascript ( #10959 )
2021-06-14 22:25:33 +02:00
Bartek Iwańczuk
1246a433f8
fix: poll connection after writing response chunk in Deno.serveHttp() ( #10961 )
...
This commit changes "op_http_response_write" to first send response chunk
and then poll the underlying HTTP connection.
Previously after writing a chunk of response HTTP connection wasn't polled
and thus data wasn't written to the socket until after next op interacting
with the connection.
2021-06-14 22:10:55 +02:00
Bartek Iwańczuk
1e1959f6fa
fix: hang in Deno.serveHttp() ( #10923 )
...
Waiting on next request in Deno.serveHttp() API hanged
when responses were using ReadableStream. This was caused
by op_http_request_next op that was never woken after
response was fully written. This commit adds waker field to
DenoService which is called after response is finished.
2021-06-14 14:52:49 +02:00
Edward Bebbington
a6f1edd953
docs(unstable/emit): Note that for emit, Deno.formatDiagnostics can be used ( #10925 )
2021-06-11 19:42:43 -04:00
David Sherret
1a92c39b77
refactor(ast): Change AST parsing error to return struct with message and location ( #10911 )
...
* Remove unused check js emit option.
* Improve parse error.
* Format.
2021-06-11 09:03:42 -04:00
David Sherret
9d706d71b5
chore: Fix broken test on Windows ( #10900 )
2021-06-10 12:35:38 -04:00
David Sherret
26a97a1f3b
chore(tests): Kill orphaned deno processes spawned during the tests ( #10922 )
2021-06-10 10:38:03 -04:00
Bartek Iwańczuk
fe11495920
refactor: use join instead of format! ( #10921 )
2021-06-10 16:18:13 +02:00
Bartek Iwańczuk
6091ea098a
refactor: merge deno_file crate into deno_web ( #10914 )
...
This refactor makes it so there's one less crate to publish on each release.
2021-06-10 15:26:10 +02:00
David Sherret
67690b78bd
refactor(repl): Extract out structs for internal REPL code ( #10915 )
...
* Extract out ReplEditor.
* Extract out ReplSession.
* Move PRELUDE declaration up.
2021-06-09 19:07:50 -04:00
Kitson Kelly
e779ea9565
fix(runtime): early binding to dispatchEvent in workers ( #10904 )
2021-06-09 22:21:02 +10:00
Kitson Kelly
6b826033a4
feat(lsp): add additional logging information ( #10890 )
2021-06-09 10:00:26 +10:00
Bartek Iwańczuk
b98293e21c
v1.11.0
2021-06-08 21:38:36 +02:00
Bartek Iwańczuk
3a96fe55a0
chore: release crates ( #10896 )
2021-06-08 20:34:18 +02:00
Bartek Iwańczuk
d9df4347a1
chore: upgrade deno_lint 0.6.1 ( #10882 )
2021-06-07 17:44:31 +02:00
Divy Srivastava
89290741d1
feat(compile): Initialize runtime_compiler ops for standalone binaries ( #10052 )
2021-06-07 14:02:53 +02:00
Kitson Kelly
3b3be024fa
feat(lsp): add test code lens ( #10874 )
...
Ref #8643
2021-06-07 21:38:07 +10:00
Kitson Kelly
d6f6e157bd
tests(lsp): fix flakey lsp integration test ( #10875 )
2021-06-07 19:12:07 +10:00
Bartek Iwańczuk
3b220c64f6
chore: upgrade crates ( #10867 )
...
* deno_doc - 0.5.0
* deno_lint - 0.6.0
* dprint-plugin-typescript - 0.46.0
* dprint-plugin-markdown - 0.8.0
* dprint-plugin-json - 0.12.0
* swc_bundler - 0.37.4
* swc_ecmascript - 0.36.0
2021-06-06 18:42:12 +02:00
jeiea
633c5aab1f
fix( #10747 ): cannot read config option in windows ( #10791 )
...
Fixes #10747
2021-06-06 15:00:17 +10:00
Luca Casonato
c73ef5fa14
refactor(web): use encoding_rs for text encoding ( #10844 )
...
This commit removes all JS based text encoding / text decoding. Instead
encoding now happens in Rust via encoding_rs (already in tree). This
implementation retains stream support, but adds the last missing
encodings. We are incredibly close to 100% WPT on text encoding now.
This should reduce our baseline heap by quite a bit.
2021-06-05 23:10:07 +02:00
Divy Srivastava
e67010b5e2
feat(cli/compile): Support data uri dynamic imports in deno compile
( #9936 )
2021-06-05 16:24:17 +02:00
Bartek Iwańczuk
1d070f3d47
feat: make 'deno lint' stable ( #10851 )
2021-06-05 15:57:31 +02:00
Kitson Kelly
e8be116ab6
fix(lsp): refactor, fix issues and add benchmark for code lens ( #10841 )
2021-06-05 07:31:44 +10:00
Bartek Iwańczuk
5457e741fa
fix: hang in op_http_next_request ( #10836 )
...
This commit adds "CancelHandle" to "ConnResource" and changes
"op_http_next_request" to await for the cancel signal. In turn
when async iterating over "Deno.HttpConn" the iterator breaks
upon closing of the resource.
2021-06-04 01:32:36 +02:00
Yusuke Tanaka
41e9a21307
fix(cli): output json with trailing newline character ( #10830 )
2021-06-03 20:49:02 +02:00
Casper Beyer
55e962b688
feat(cli): support URL overload for Deno.chdir
( #10793 )
2021-06-03 16:32:18 +02:00
Casper Beyer
ece56d9935
feat(runtime): support URL overloads for Deno.symlink
and Deno.symlinkSync
( #10664 )
2021-06-03 16:16:00 +02:00
Casper Beyer
dc69b03339
feat(runtime): support URL overloads for Deno.rename/Deno.renameSync ( #10512 )
2021-06-03 16:14:37 +02:00
Kitson Kelly
844a1317ec
fix( #10775 ): diagnostics update on dependency changes ( #10817 )
...
Fixes #10775
2021-06-03 21:13:53 +10:00
Kitson Kelly
473713c621
fix( #10815 ): lsp only responds to formatting for md, json, jsonc ( #10816 )
...
Fixes #10815
2021-06-02 20:29:58 +10:00
Kitson Kelly
bb5bf91067
feat(lsp): registry auto discovery ( #10813 )
...
Closes: #10194
Fixes: #10468
2021-06-01 21:53:08 +10:00
Kitson Kelly
9abb899f5f
fix(lsp): updates to workspace config are processed sync ( #10812 )
2021-06-01 19:24:36 +10:00
Nayeem Rahman
6dd7a7ecd9
fix(cli): represent bare imports as module graph error slots ( #10804 )
...
Fixes #10795
2021-06-01 16:45:37 +10:00
Yoshiya Hinosawa
595700c993
feat: add FsWatcher interface ( #10798 )
2021-06-01 15:35:06 +09:00
Bert Belder
f891368057
v1.10.3 / 2021.05.31
...
- feat(lsp): diagnostics for deno types and triple-slash refs (#10699 )
- feat(lsp): provide X-Deno-Warning as a diagnostic (#10680 )
- feat(lsp): show hints from `deno_lint` in addition to messages
(#10739 )
- feat(lsp): support formatting json and markdown files (#10180 )
- fix(cli): always allow documentation modules to be checked (#10581 )
- fix(cli): canonicalize coverage dir (#10364 )
- fix(cli): don't statically error on dynamic unmapped bare specifiers
(#10618 )
- fix(cli): empty tsconfig.json file does not cause error (#10734 )
- fix(cli): support source maps with Deno.emit() and bundle (#10510 )
- fix(cli/dts): fix missing error class (NotSupported) in types (#10713 )
- fix(cli/install): support `file:` scheme URLs (#10562 )
- fix(cli/test): don't use reserved symbol `:` in specifier (#10751 )
- fix(cli/test): ensure coverage dir exists (#10717 )
- fix(cli/upgrade): modify download size paddings (#10639 )
- fix(runtime/http): expose nextRequest() errors in respondWith()
(#10384 )
- fix(runtime/http): fix empty blob response (#10689 )
- fix(serde_v8): remove intentional deserialization error on non-utf8
strings (#10156 )
- fix(ext/fetch): fix error message of Request constructor (#10772 )
- fix(ext/fetch): make prototype properties writable (#10769 )
- fix(ext/fetch): remove unimplemented Request attributes (#10784 )
- fix(ext/file): update File constructor following the spec (#10760 )
- fix(ext/webstorage): use opstate for sqlite connection (#10692 )
- fix(lsp): deps diagnostics include data property (#10696 )
- fix(lsp): ignore type definition not found diagnostic (#10610 )
- fix(lsp): local module import added by code action now includes the
file extension (#10778 )
- fix(lsp): make failed to load config error descriptive (#10685 )
- fix(lsp): memoize script versions per tsc request (#10601 )
- fix(lsp): re-enable the per resource configuration without a deadlock
(#10625 )
- docs(cli): update getting started for clarity (#10694 )
- docs(cli/dts) replace `read()` with `readSync()` (#10732 )
- docs(cli/dts): fix plugin example (#10647 )
- docs(cli/dts): fix typo in `TestDefinition.only` description (#10697 )
- docs(cli/dts): fix unix socket examples (#10705 )
- docs(cli/dts): make worker example pass (#10703 )
- docs(cli/dts): tag test permission example as typescript (#10753 )
- docs(permissions): fix grammatical error in permissions docs (#10755 )
- docs(runtime): fix fetch API usage of HTTP server (#10777 )
- docs(testing): fix misspelling (#10683 )
- docs(typescript): fix typo in faqs (#10682 )
-----BEGIN PGP SIGNATURE-----
iQFJBAABCgAzFiEERCcr7u+ib5W/fkyWeneIey4u1GEFAmC1RbwVHGJlcnRiZWxk
ZXJAZ21haWwuY29tAAoJEHp3iHsuLtRhXJsH/RETkMkLj1rZSdQWaOdVnRmP02pb
QmbmtfPVtM0Xvh+zL23Jk2fU2cJPRsf71U260QMyzxE8LVDZ58k9KFID24MdB3b/
J6Y5zLxyhkzc1EutN+D09y2nwrvJv3UKOls2ZLXtZ/HEmqQVOmqlGIaPIGxiQOPO
yAWXKXid/hZ41xDygJpL6FEmemnVlOzPHX/AeccKcyQos7CUUqcNocReUklZcje6
1IEEe6NcAi7x7hRB6lfjtXIZRcEjMD21ZmLsyKEH6YOJfoPzlR0uKYJR0i0ZO5Hr
H4erWA9R3OJDwvx5DhCGxyqW6IuD4A3HGChHtcANdH+RWTyHquqgDSzpeHA=
=Hhjk
-----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
iQFJBAABCgAzFiEERCcr7u+ib5W/fkyWeneIey4u1GEFAmC1TdsVHGJlcnRiZWxk
ZXJAZ21haWwuY29tAAoJEHp3iHsuLtRhYVEH/iHbk8AXA5xF8kV+q2R0IhRrtZjV
8VjDiC1nTGfIJcjXxoUVa1VaYQlfxNxcKPc/PSoW/oUwSoS0I9QvAxPY81dPYNUe
TtiJjf7fNWssu04TK/5rillRuag3e+AGrR605uK2A1b0Y/qlOumtaGN48TXcbyFt
p/p4zXT9TSC+/cOxZFNjnh+UVwpqOJxWxXBBtzrsDcsBfdvOCy/fo7qwjmqbe/q4
BDXNAG4AYHtg5X94b8bEgPDutUjk5HY08KA0EvVffGD0c3czvaF3lO7p8FHt95/3
rG+hS02OxUWRe8rltZk6s1mItypig4EyWWoiUJMaPt8zTz1t9rdy+M0oEpY=
=bAil
-----END PGP SIGNATURE-----
Merge v1.10.3 into main (#10801 )
2021-05-31 20:58:03 +00:00
Bert Belder
1567c1013c
v1.10.3
2021-05-31 20:20:42 +00:00
Casper Beyer
330cd6b7ea
feat(cli): support URL overloads for Deno.utime
and Deno.utimeSync
( #10792 )
2021-05-31 20:05:57 +02:00
Bartek Iwańczuk
ea2c7ac556
fix: running subcommand with coverage collection ( #10802 )
2021-05-31 16:53:49 +02:00
Nayeem Rahman
8a7e1c616d
fix(cli): Don't statically error on dynamic unmapped bare specifiers ( #10618 )
...
Fixes #10168
Fixes #10615
Fixes #10616
2021-05-31 16:37:36 +02:00
Kitson Kelly
925ba8fbbf
fix( #10765 ): lsp import fixes include extensions ( #10778 )
...
Fixes #10765
2021-05-31 16:37:36 +02:00
Yusuke Tanaka
475bc35646
chore: upgrade Tokio to 1.6.1 ( #10782 )
2021-05-31 16:37:35 +02:00
Romain Prignon
cf6b764a35
fix( #10733 ): empty tsconfig.json file does not cause error ( #10734 )
...
Fixes #10733
2021-05-31 16:37:35 +02:00
Luca Casonato
379d40955a
fix(fetch): make prototype properties writable ( #10769 )
2021-05-31 16:37:34 +02:00
Yusuke Tanaka
8a19f28a00
feat(lsp): show hints from deno_lint
in addition to messages ( #10739 )
2021-05-31 16:37:34 +02:00
Yoshiya Hinosawa
323fa5272d
fix(extension/file): update File constructor following the spec ( #10760 )
2021-05-31 16:37:34 +02:00
Casper Beyer
620a2e0f84
docs(cli/dts): tag test permission example as typescript ( #10753 )
2021-05-31 16:37:33 +02:00
Kitson Kelly
6bbefdff39
feat(lsp): diagnostics for deno types and triple-slash refs ( #10699 )
...
Fixes #9823
2021-05-31 16:37:33 +02:00
Casper Beyer
7b6bba5d3a
fix(cli/test): don't use reserved symbol :
in specifier ( #10751 )
2021-05-31 16:37:33 +02:00
CGQAQ
43417b4660
fix(cli/upgrade): modify download size paddings ( #10639 )
2021-05-31 16:37:33 +02:00
迷渡
859a88ba44
fix(docs): rename read to readSync ( #10732 )
...
Signed-off-by: 迷渡 <justjavac@gmail.com>
2021-05-31 16:37:33 +02:00
Yoshiya Hinosawa
195808a538
fix(test): ensure coverage dir exists ( #10717 )
2021-05-31 16:37:32 +02:00
Yoshiya Hinosawa
7b1fd3d146
fix(runtime/http): fix empty blob response ( #10689 )
2021-05-31 16:37:32 +02:00
Kitson Kelly
25b784f00d
chore(lsp): provide test for lsp deadlock issue ( #10679 )
...
Resolves: #10587
2021-05-31 16:37:32 +02:00
Casper Beyer
47ec33eca7
fix(cli/tools/test_runner): --doc should not require permissions ( #10719 )
2021-05-31 16:37:32 +02:00
Kitson Kelly
176075980b
fix(lsp): re-enable the per resource configuration without a deadlock ( #10625 )
...
Fixes #10603
2021-05-31 16:37:32 +02:00
Carter Snook
67cf683aad
fix(cli/dts): fix missing error class (NotSupported) in types ( #10713 )
2021-05-31 16:37:32 +02:00
Casper Beyer
2fe4aaa10d
fix(cli): always allow documentation modules to be checked ( #10581 )
2021-05-31 16:37:31 +02:00
Casper Beyer
3df9f41dfd
test(cli/dts): typecheck examples in declaration files ( #10707 )
...
This commits adds two integration tests that typecheck examples
in the docstrings in Deno declaration files.
2021-05-31 16:37:31 +02:00
Casper Beyer
8a512b99c9
fix(cli/tools/test_runner): use file_fetcher.fetch to get sources ( #10708 )
2021-05-31 16:37:30 +02:00
Casper Beyer
2e9bd3e295
fix(cli): canonicalize coverage dir ( #10364 )
2021-05-31 16:37:30 +02:00
Casper Beyer
736ff290b8
docs(cli/dts): fix plugin example ( #10647 )
2021-05-31 16:37:30 +02:00
Nayeem Rahman
218ba031f0
fix(runtime/http): expose nextRequest() errors in respondWith() ( #10384 )
2021-05-31 16:37:30 +02:00
Kitson Kelly
6ef64b9fce
fix( #10695 ): deps diagnostics include data property ( #10696 )
...
Fixes #10695
2021-05-31 16:37:30 +02:00
Casper Beyer
073e05f9fb
docs(cli/dts): make worker example pass ( #10703 )
2021-05-31 16:37:29 +02:00
Casper Beyer
736b736479
docs: fix unix socket examples ( #10705 )
2021-05-31 16:37:29 +02:00
Satya Rohith
7a751b8135
fix(deno install): support file:
scheme URLs ( #10562 )
2021-05-31 16:37:29 +02:00
Casper Beyer
44cd0b1ef6
docs(cli/dts): fix typo in TestDefinition.only
description ( #10697 )
2021-05-31 16:37:29 +02:00
Satya Rohith
4fedc702c6
fix(runtime): support source maps with Deno.emit() and bundle ( #10510 )
...
Closes: #10413
2021-05-31 16:37:29 +02:00
Satya Rohith
913d4f28b3
fix(lsp): make failed to load config error descriptive ( #10685 )
2021-05-31 16:37:28 +02:00
Yusuke Tanaka
22426fee1e
chore: update deno_lint binary used in CI to v0.5.0 ( #10652 )
2021-05-31 16:37:28 +02:00
Kitson Kelly
d987ca5b07
feat(lsp): provide X-Deno-Warning as a diagnostic ( #10680 )
...
Closes #9932
2021-05-31 16:37:28 +02:00
Satya Rohith
6966c4e916
feat(lsp): support formatting json and markdown files ( #10180 )
...
Resolves #9447
Resolves #9415
2021-05-31 16:37:28 +02:00
Satya Rohith
a622486a1a
fix(lsp): ignore type definition not found diagnostic ( #10610 )
...
Fixes #10575
2021-05-31 16:37:27 +02:00
Kitson Kelly
ef6d69c314
refactor(lsp): memoize script versions per tsc request ( #10601 )
2021-05-31 16:37:27 +02:00
Kitson Kelly
96abb27e73
refactor: share test harness for lsp between bench and integration ( #10659 )
2021-05-31 16:37:27 +02:00
Nayeem Rahman
3a33510bd4
fix(cli): Don't statically error on dynamic unmapped bare specifiers ( #10618 )
...
Fixes #10168
Fixes #10615
Fixes #10616
2021-05-31 10:20:34 +10:00
Luca Casonato
83ce333633
build: cli(build) shouldn't depend on deno_runtime ( #10787 )
...
This speeds up incremental rebuild when only touching JS files by 30%
compared to #10786 .
Rebuild time after touch 01_broadcast_channel.js:
main: run 1 49.18s, run 2 50.34s
#10786 : run 1 43.12s, run 2 43.19s
this + #10786 : run 1 30.30s, run 2 30.95s
2021-05-29 16:25:14 +02:00
Kitson Kelly
bbefceddb9
fix( #10765 ): lsp import fixes include extensions ( #10778 )
...
Fixes #10765
2021-05-29 21:21:11 +10:00
Yusuke Tanaka
5f92f35bee
chore: upgrade Tokio to 1.6.1 ( #10782 )
2021-05-29 13:18:24 +02:00
Kitson Kelly
59237d195f
feat(cli): upgrade to TypeScript 4.3 ( #9960 )
2021-05-28 09:33:11 +10:00
Romain Prignon
3468e1fcf8
fix( #10733 ): empty tsconfig.json file does not cause error ( #10734 )
...
Fixes #10733
2021-05-27 16:33:33 +10:00
crowlKats
b21fa78a1e
feat(cli): add origin data dir to deno info ( #10589 )
...
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-05-27 14:23:12 +09:00
Luca Casonato
d5d59bb794
fix(fetch): make prototype properties writable ( #10769 )
2021-05-26 23:44:42 +02:00
Bartek Iwańczuk
e5beb800c9
refactor: move JsRuntimeInspector to deno_core ( #10763 )
...
This commit moves implementation of "JsRuntimeInspector" to "deno_core" crate.
To achieve that following changes were made:
* "Worker" and "WebWorker" no longer own instance of "JsRuntimeInspector",
instead it is now owned by "deno_core::JsRuntime".
* Consequently polling of inspector is no longer done in "Worker"/"WebWorker",
instead it's done in "deno_core::JsRuntime::poll_event_loop".
* "deno_core::JsRuntime::poll_event_loop" and "deno_core::JsRuntime::run_event_loop",
now accept "wait_for_inspector" boolean that tells if event loop should still be
"pending" if there are active inspector sessions - this change fixes the problem
that inspector disconnects from the frontend and process exits once the code has
stopped executing.
2021-05-26 21:07:12 +02:00