1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-13 16:26:08 -05:00
Commit graph

7033 commits

Author SHA1 Message Date
crowlKats
750f179aeb
refactor(cli/tools/upgrade): rework upgrade (#8331)
This commit does major overhaul of "upgrade" subcommand, 
reducing complexity & giving more sensible console output. 

Removes gz support for archives. 

Uses last part of url instead of scraping to get latest version.
2020-11-22 16:07:05 +01:00
Nayeem Rahman
7405356e23
chore(cli/flags): Rename --failfast to --fail-fast (#8456) 2020-11-22 15:40:33 +01:00
Yasser A.Idrissi
2c00f6c548
feat(std/http): Validate cookie path value (#8457) 2020-11-22 15:34:31 +01:00
Nayeem Rahman
14877f7fe2
feat(unstable): Add deno test --no-run (#8093)
This commit adds new flag to "deno test" subcommand
called "--no-run" that allows to preload, cache an type
check.
2020-11-22 14:06:51 +01:00
Max Drosdo.www
686a17fc07
fix(cli): support "deno run --v8-flags=--help" without script (#8110) 2020-11-21 23:33:42 +01:00
Steven Guerrero
a4f27c4d57
feat(std/node): Add Readable Stream / Writable Stream / errors support (#7569) 2020-11-21 16:13:18 -05:00
Mo
ce890f2ae7
docs(std/path): add missing JSDoc (#8282) 2020-11-21 19:23:24 +01:00
Anonymous
27dd786016
fix: "cloneValue" should return a Set when given a Set (#7972) 2020-11-21 17:29:18 +01:00
Yasser A.Idrissi
692322cc28
refactor(std/http): Rename validateCookieName param name & JSDoc (#8451) 2020-11-21 16:53:23 +01:00
Bartek Iwańczuk
ec7f1e399e
refactor(core): don't depend on get_identity_hash for modules (#8354)
This commit refactors "deno_core::Modules" structure to not depend on
"get_identity_hash" function to identify modules, but instead use default
hash implementation.
2020-11-21 16:23:35 +01:00
Bartek Iwańczuk
04f4201f30
refactor(corr): accept get_error_class_fn in RuntimeOptions (#8444)
This commit adds "get_error_class_fn" field to "RuntimeOptions"
struct in order to unify configuration of "JsRuntime".
2020-11-21 15:56:14 +01:00
Bartek Iwańczuk
cf7949db2f
upgrade: rusty_v8 0.13.0, v8 8.8.278.2 (#8446) 2020-11-21 14:45:07 +01:00
De Rouck Antoine
671f96025a
refactor(core): Improve code readability in core.js (#8345) 2020-11-21 14:19:43 +01:00
Bartek Iwańczuk
b63fe3f35c
upgrade: deno_doc, deno_lint, dprint, swc (#8443) 2020-11-21 13:17:42 +01:00
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