Casper Beyer
269bf380e0
fix(cli): move Deno.flock and Deno.funlock to unstable types ( #12138 )
2021-09-19 14:46:54 +02:00
Casper Beyer
e1144fd635
refactor(cli): don't generate a module for side loading tests ( #12129 )
2021-09-18 16:12:50 +02:00
Nayeem Rahman
75ca013f07
fix(cli/fmt_errors): Abbreviate long data URLs in stack traces ( #12127 )
...
Co-authored-by: Mike White <mike.white@auctane.com>
2021-09-18 15:40:04 +02:00
Bartek Iwańczuk
f840906943
fix(core): prevent multiple main module loading ( #12128 )
...
This commit fixes a problem where loading and executing multiple
modules leads to all of the having "import.meta.main" set to true.
Following Rust APIs were deprecated:
- deno_core::JsRuntime::load_module
- deno_runtime::Worker::execute_module
- deno_runtime::WebWorker::execute_module
Following Rust APIs were added:
- deno_core::JsRuntime::load_main_module
- deno_core::JsRuntime::load_side_module
- deno_runtime::Worker::execute_main_module
- deno_runtime::Worker::execute_side_module
- deno_runtime::WebWorker::execute_main_module
Trying to load multiple "main" modules into the runtime now results in an
error. If user needs to load additional "non-main" modules they should use
APIs for "side" module.
2021-09-18 03:44:53 +02:00
David Sherret
7c0173df27
chore(tests): maybe fix flaky flock tests ( #12122 )
2021-09-17 14:17:01 -04:00
David Sherret
4c8ab33def
chore(tests): fix flaky fetchPostBodyTypedArray ( #12104 )
2021-09-17 09:02:44 -04:00
David Sherret
c8b43a0328
chore(tests): fix flaky flock tests ( #12099 )
2021-09-17 09:02:23 -04:00
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