1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-08 09:34:39 -05:00
Commit graph

8519 commits

Author SHA1 Message Date
Bartek Iwańczuk
e35e8981f0
test(std): make test output less noisy (#8445)
This commit makes output of std/ tests less noisy
by passing "--quiet" flag to Deno subprocesses run
as part of test suite.
2020-11-20 18:01:58 +01:00
Bartek Iwańczuk
91f293442d
refactor(cli): worker event serialization (#8438)
This commit simplifies code responsible for serialization
of web worker events. Instead of using "PrettyJsError"
it's enough to downcast to "deno_core::JsError", making
the code less specific to cli/ implementation.
2020-11-20 13:25:18 +01:00
William Perron
8a6a2a50f7
docs(std): add missing jsdoc comments to exported functions (#8442)
includes:
- http/file_server.ts
- testing/_diff.ts
- testing/asserts.ts

Relates to #7487
2020-11-19 21:59:45 -05:00
Bartek Iwańczuk
e582796f42
refactor(cli): rename fmt_errors::JsError to PrettyJsError (#8435)
This commit renames "fmt_errors::JsError" to "PrettyJsError"
to avoid confusion with "deno_core::JsError".

Consequently "CoreJsError" aliases to "deno_core::JsError"
were removed.

Additionally source mapping step has been removed from
"PrettyJsError::create" to better separate domains.
2020-11-19 20:37:22 +01:00
Bartek Iwańczuk
9eaa1fb71d
refactor(cli): move tooling to cli/tools/ (#8424)
This commit moves following tools into a single "tools"
module located at "cli/tools/mod.rs":
- formatter 
- linter
- test runner
- coverage collector
- installer
- binary upgrader
- repl
2020-11-19 19:19:34 +01:00
Bartek Iwańczuk
21e8ff6fc1
build: upgrade Rust to 1.48.0 (#8434) 2020-11-19 18:38:31 +01:00
Bartek Iwańczuk
b55cc51351
build: fix linting problems (#8431) 2020-11-19 15:19:37 +01:00
Gyubong
d5772a937b
feat(std/node): add os.totalmem, os.freemem (#8317) 2020-11-19 07:56:32 -05:00
crowlKats
723fbb8f68
feat(std/io): ReadableStream from AsyncIterator & WritableStream from Writer (#8378) 2020-11-19 07:39:45 -05:00
Steven Guerrero
315d889afa
fix(std/node): correct typings for global, globalThis, window (#8363) 2020-11-19 07:23:42 -05:00
silence
e3c3fc58cb
feat(std/hash): add the sha1Hmac (#8418) 2020-11-19 07:09:30 -05:00
Mark Tiedemann
f4ac2b1475
fix(cli/tests): printf.exe doesn't exist on windows (#8404) 2020-11-19 07:06:19 -05:00
Mark Tiedemann
6bb5fedc69
feat(std/log): Log error stack (#8401) 2020-11-19 06:58:53 -05:00
inokawa
a1852d38cf
Add JSDocs to std/fs/walk.ts (#8426) 2020-11-19 06:53:43 -05:00
lideming
60d9ab08db
fix(std/http): fix error handling in the request iterator (#8365)
If the request body is using chunked encoding, errors may 
be thrown in "request.finalize()".

In this case, we should untrack and close the connection.
2020-11-18 17:47:47 +01:00
Steven Guerrero
b6fa6d6aac
fix(std/node) Fix event extendability (#8409) 2020-11-17 19:49:57 -05:00
Yasser A.Idrissi
f7afe2b78f
feat(std/http): Check if cookie property is valid (#7189)
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2020-11-17 21:06:06 +01:00
Behnam Mohammadi
4e99d8fb6f
refactor(std): remove unnecessary back direction for import (#8403) 2020-11-17 10:24:21 +11:00
Steven Guerrero
06cf6df954
feat(std/node): Add util.deprecate (#8407) 2020-11-16 18:20:46 -05:00
Bartek Iwańczuk
636af2850c
refactor(cli): rename fs module to fs_util (#8380)
This commit renames "fs" module in "cli/" to "fs_util". This is purely
cosmetic change; there were a few places which aliased "crate::fs"
to "deno_fs" which was very confusing with "fs" module in ops.
2020-11-16 20:48:50 +01:00
Steven Guerrero
8ab20a4582
feat(std/node): implement process.nextTick (#8386) 2020-11-16 14:44:37 -05:00
Mark Tiedemann
dd9c204884
Improve Deno.version type declaration (#8391) 2020-11-16 14:36:00 -05:00
Bartek Iwańczuk
ab7b8ba8d1
v1.5.3 2020-11-16 11:14:00 +01:00
Kitson Kelly
37fbbf8101
fix(cli): local sources are not cached in memory (#8328)
Fixes #4743
Closes #5253
Fixes #5631
Fixes #6116

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2020-11-16 13:19:31 +11:00
Elisée Maurer
1079e59cf4
docs(std/async): fix a couple typos in std/async/README.md (#8388) 2020-11-15 13:57:36 +01:00
Bartek Iwańczuk
2cbf5c26ac
feat(lint): support --rules --json (#8384)
This commit adds support for "--json" flag in combination
with "--rules". List of rules is serialized to JSON and printed.
2020-11-14 20:51:30 +01:00
Yusuke Tanaka
9029003046
build: update dlint to v0.2.10 (#8284)
Update prebuilt "dlint" binary to v0.2.10 and fix diagnostics
for "require-await" rule.

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-11-14 20:27:37 +01:00
Benjamin Gruenbaum
3d65e57d7c
fix: fix various global objects constructor length (#8373)
This commit changes various Web APIs constructors to 
match their signature in the browser.
2020-11-14 13:10:23 +01:00
Yusuke Tanaka
3a0ebff641
fix(fmt, lint): Make sure that target paths are not directory (#8375)
This commit merges implementations of "collect_files" and "files_in_subtree",
leaving only the former. Additionally it was ensured that directories are not yielded
from this function.
2020-11-14 13:05:26 +01:00
Behnam Mohammadi
a59f5eadd8
refactor(std): add std/_util/os.ts module (#8370)
This commit adds "std/_util/os.ts" module which contains
common os detection logic and is browser compatible.

Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2020-11-14 00:21:11 +01:00
Divy Srivastava
d5661f677e
refactor: deno_crypto op crate (#7956)
This commit factors out "deno_crypto" op crate.

"rand" crate dependency was consequently moved to 
"deno_crypto" crate and reexported.
2020-11-13 22:01:57 +01:00
KNnut
2c8439bc1e
refactor(cli+core): various cleanups in Rust (#8336) 2020-11-13 09:17:31 +11:00
Behnam Mohammadi
a52d883921
refactor(std/fs): moved isCopyFolder to options (#8319) 2020-11-13 09:13:13 +11:00
Mark Tiedemann
952c8f21e7
fix(std/http): flush body chunks for HTTP chunked encoding (#8349)
Fixes #8339
2020-11-13 09:11:09 +11:00
Max Drosdo.www
444c2cda4f
refactor(cli): minor cleanup of main.rs (#8362) 2020-11-13 08:49:59 +11:00
Bartek Iwańczuk
d4c8fa263d
refactor(core): don't depend on get_identity_hash for promises (#8352)
This commit changes how pending promise exceptions are stored
in JsRuntime by using global handle to promise instead of its
identity hash.
2020-11-11 23:11:40 +01:00
Akshat Agarwal
c744ee2756
fix(cli): don't walk the subdirectory twice when using the --ignore flag (#8040)
This commit reworks "collect_files" utility to accept "ignore" parameter
which allows to filter out files in a single iteration instead of walking
file tree second time to excude "ignored" files.
2020-11-11 20:53:55 +01:00
Benjamin Gruenbaum
a55e689e38
fix(op_crates/web): FileReader event handler order (#8348) 2020-11-11 16:59:49 +01:00
Benjamin Gruenbaum
c7804c06ad
fix(op_crates/web) make isTrusted not constructable (#8337) 2020-11-10 15:26:58 -05:00
Benjamin Gruenbaum
b255a05f18
fix(web/worker) define event handlers in DOM order (#8334) 2020-11-10 07:15:42 -05:00
Andrew Mitchell
97a9620a01
test(cli/upgrade): remove test_compose_url_to_exec (#8329) 2020-11-10 10:41:33 +01:00
Behnam Mohammadi
4cc919a742
refactor(std/fs): remove unnecessary if else block (#8321) 2020-11-10 15:38:46 +11:00
Benjamin Gruenbaum
94b68f9069
fix(cli/rt): dom handler order in websocket (#8320) 2020-11-10 14:34:42 +11:00
Kitson Kelly
0982056ff6
tests(cli): check ignores dynamic import errors (#8323)
Closes #6618
2020-11-10 10:18:43 +11:00
Kitson Kelly
c1fa8fbeba
fix(cli): allow root modules be .mjs/.cjs (#8310)
Fixes #6176
2020-11-10 10:10:41 +11:00
Behnam Mohammadi
568b7d6afb
refactor(std/fs): improve performance by using some instead filter method (#8322) 2020-11-10 09:43:44 +11:00
Bartek Iwańczuk
6f48c526c6
chore: reference dprint config file in format script (#8318)
* chore: reference dprint config file in format script
* chore: ignore .git folder in dprint config
2020-11-09 20:56:43 +01:00
Kitson Kelly
b402b75c1d
fix(cli): allow setting of importsNotUsedAsValues in Deno.compile() (#8306)
Fixes #6663
2020-11-10 06:50:33 +11:00
Kitson Kelly
5375bf2e3f
fix(cli): allow declaration emits for Deno.compile() (#8303)
Fixes #8289
2020-11-10 06:49:15 +11:00
Scott Olson
57c2608e98
fix(cli): Use safe shell escaping in deno install (#7613) 2020-11-09 14:08:12 -05:00