1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-12 12:50:00 -05:00
Commit graph

8348 commits

Author SHA1 Message Date
Nayeem Rahman
5276cc8592
refactor: Improve placeholder module names (#7430) 2020-09-12 11:33:51 +02:00
Bartek Iwańczuk
60dbc6b294
Revert "feat(unstable): Support data: urls (#5157)" (#7432)
This reverts commit e3319f34a6.
2020-09-12 11:08:00 +02:00
Valentin Anger
e3319f34a6
feat(unstable): Support data: urls (#5157) 2020-09-11 22:40:48 +02:00
Bartek Iwańczuk
a3282aa9ed
feat(unstable): deno run --watch (#7382)
Co-authored-by: Sebastian Seedorf <mail@sebse.de>
2020-09-11 18:19:49 +02:00
tokiedokie
7ff0c4d8c8
docs: move “Debugger” to “Debugging your code” in “Getting started” (#7421) 2020-09-11 16:28:25 +02:00
Luca Casonato
fbb18d40d3
feat(unstable): enable importsNotUsedAsValues by default (#7413) 2020-09-11 16:22:10 +02:00
Bartek Iwańczuk
0d1f626edd
refactor(core): JsRuntime initialization (#7415)
Removes:
- "deno_core::StartupData"
- "deno_core::Script"
- "deno_core::OwnedScript"

Changes to "JsRuntime":
- remove "new_with_loader()"
- remove "with_heap_limits()"
- rename "IsolateOptions" to "RuntimeOptions" and make public
- "JsRuntime::new()" takes "RuntimeOptions" as a single param
2020-09-11 15:18:49 +02:00
Ryan Dahl
7c2e7c6608
Use gotham-like state for ops (#7385)
Provides a concrete state type that can be dynamically added. This is necessary for op crates.
* renames BasicState to OpState
* async ops take `Rc<RefCell<OpState>>`
* sync ops take `&mut OpState`
* removes `OpRegistry`, `OpRouter` traits
* `get_error_class_fn` moved to OpState
* ResourceTable moved to OpState
2020-09-10 09:57:45 -04:00
Nayeem Rahman
6f70e6e72b
feat(console): support CSS styling with "%c" (#7357) 2020-09-10 12:49:47 +02:00
Akshat Agarwal
c1b4ff61c9
feat(unstable): Add Deno.systemMemoryInfo() (#7350)
Co-authored-by: marcopacini <pacinim88@gmail.com>
Co-authored-by: Casper Beyer <caspervonb@pm.me>
2020-09-10 10:38:17 +02:00
Danilo Sampaio
dfd8794da4
docs: add a Powershell autocomplete example (#7329) 2020-09-10 10:13:30 +02:00
Bartek Iwańczuk
2423a867c0
fix: panic on process.kill() after run (#7405)
This commit fixes panic caused by "unimplemented!()"
calls for some variants of "nix::errno::Errno".

Catch-all variant now returns "Error" class name
instead of panicking.

Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-09-09 22:40:16 +02:00
Bert Belder
839c59b14f
fix(cli): suppress 'WSANOTINITIALIZED' error on Deno exit (#7408)
Unblocks: #6901
2020-09-09 21:37:59 +02:00
Luca Casonato
a3bcdb2b69
chore(std): remove std/ws connect method (#7403) 2020-09-09 21:33:38 +02:00
AliBasicCoder
0d126930ca
feat(op_crates/web): Add all single byte encodings to TextDecoder (#6178) 2020-09-09 21:26:26 +02:00
Casper Beyer
5b89e82164
test(std/examples): make tests runnable from any directory (#7399) 2020-09-09 20:57:49 +02:00
Bartek Iwańczuk
25053f92ff
fix(core): panic on big string allocation (#7395)
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-09-09 20:52:11 +02:00
Luca Casonato
71a987942a
build: use GitHub Actions XL runners (#7406) 2020-09-09 17:38:37 +02:00
Yusuke Tanaka
857f9b32e0
feat(fmt, lint): show number of checked files (#7312) 2020-09-09 16:45:31 +02:00
Bartek Iwańczuk
1fcbf9cb8a
upgrade: swc, deno_doc, deno_lint, dprint (#7402)
- deno_doc - 0.1.6
- deno_lint - 0.1.29
- dprint-plugin-typescript 0.31.1
- swc_ecmascript 0.7.3
2020-09-09 15:35:40 +02:00
Nayeem Rahman
b17a5fbcfa
fix(op_crates/web): Use "deno:" URLs for internal script specifiers (#7383) 2020-09-09 14:23:57 +02:00
Bartek Iwańczuk
c14436a424
fix(tsc): config resolution using relative paths (#7392) 2020-09-09 13:37:22 +02:00
Casper Beyer
79b2510617
test(std/mime): make tests runnable from any directory (#7398) 2020-09-09 11:24:47 +02:00
Casper Beyer
11afd071ae
test(std/node): make tests runnable from any directory (#7397)
This makes std/node tests runnable from any directory by resolving the
testdata directory and files relative to the module directory resolved
from import.meta.url.
2020-09-08 11:37:58 -04:00
uki00a
ac455050ee
feat(console): print proxy details (#7139) 2020-09-08 16:06:26 +02:00
Luca Casonato
6ff9395532
feat(unstable): enable isolatedModules by default (#7327) 2020-09-08 15:28:42 +02:00
Bartek Iwańczuk
241d228104
upgrade: deno_doc to 0.1.5 (#7391) 2020-09-08 13:02:14 +02:00
EathonYe
05c46f5969
fix(cli): colors mismatch (#7367) 2020-09-08 12:04:02 +02:00
David Sherret
ab7f93caf1
upgrade: dprint-plugin-typescript 0.31.0 (#7381) 2020-09-08 11:58:17 +02:00
Casper Beyer
1d0f1ed446
fix: Empty Response body returns 0-byte array (#7387) 2020-09-08 11:46:15 +02:00
Casper Beyer
c5d50737f0
test(std/fs): make tests runnable from any directory (#7388) 2020-09-08 11:43:43 +02:00
Casper Beyer
334ed0e2f4
BREAKING(std/fs): remove writeJson and writeJsonSync (#7256) 2020-09-07 19:12:24 +02:00
Casper Beyer
d4b6b25def
BREAKING(std/fs): remove readJson and readJsonSync (#7255) 2020-09-07 18:04:29 +02:00
KrisChambers
1cd2267500
feat(info): Dependency count and sizes (#6786)
This commit changes "deno info" subcommand logic.

- Modules are no longer loaded into V8 isolate - analysis
  is done using ModuleGraph.
- Removed deno_core::Deps structure.
- Modules are no longer type-checked and transpiled - 
  "compiled" file is shown only if it is already available.
- Added number of unique dependencies for root module.
- Changed tree output:
  - file size is shown next to the dependency
  - repeated dependencies are marked with "*"
  - used less spaces in prefix to save terminal width
2020-09-07 15:59:47 +02:00
Casper Beyer
7a8b27aa25
test(std/hash): make tests runnable from any directory (#7376) 2020-09-07 11:32:24 +02:00
Bartek Iwańczuk
f57a2c1e85
refactor(core): rename CoreIsolate to JsRuntime (#7373)
deno_core/
- rename core_isolate.rs to runtime.rs
- rename CoreIsolate to JsRuntime
- rename JSError to JsError
- rename JSStackFrame to JsStackFrame

cli/
- update references from deno_core::CoreIsolate to deno_core::JsRuntime
- rename deno_core::JSError to deno_core::JsError
- rename fmt_errors::JSError to fmt_errors::JsError
2020-09-06 21:44:29 +02:00
Casper Beyer
16a9c92aba
test(std/archive): make tests runnable from any directory (#7366) 2020-09-06 19:52:53 +02:00
Casper Beyer
bd32f9d6e1
test(std/encoding): make tests runnable from any directory (#7368) 2020-09-06 19:48:53 +02:00
Bartek Iwańczuk
803bdd37c7
refactor(core): merge CoreIsolate and EsIsolate (#7370) 2020-09-06 16:50:49 +02:00
Bert Belder
c821e8f2f1
Move JSON ops to deno_core (#7336) 2020-09-06 02:34:02 +02:00
crowlKats
849431eb1d
Fix hellish mistake in manual (#7363) 2020-09-05 16:34:20 -04:00
crowlKats
8c880d3261
feat: Implement WebSocket API (#7051) 2020-09-05 10:39:25 -04:00
Yoshiya Hinosawa
34e98fa59c
feat(install): bundle before installation (#5276) 2020-09-05 13:31:14 +02:00
Bartek Iwańczuk
a14b3c9e30
v1.3.3 2020-09-04 18:15:24 +02:00
Ryan Dahl
e7147786f4
run cargo update (#7348) 2020-09-04 11:24:23 -04:00
Kitson Kelly
9e50b3ee61
fix: don't expose globalThis.__bootstrap (#7344) 2020-09-04 07:52:19 -04:00
Casper Beyer
15649b61bd
test(std/wasi): explicitly list modules for deterministic test runs (#7245)
This explicitly lists std/wasi test modules in a pre-sorted array for deterministic test runs.

As a side effect it makes it a bit more visible when a test has been added or removed aside
from having to look at the submodule update.
2020-09-04 07:14:51 -04:00
Casper Beyer
c10900b2c1
chore(std/wasi): enable and fix lint errors in tests (#7324) 2020-09-04 07:13:08 -04:00
迷渡
c44c45a334
docs: fix anchor link (#7346) 2020-09-04 06:43:51 -04:00
Ryan Dahl
a10339cb20
fix: Handle bad redirects more gracefully (#7342) 2020-09-04 06:43:20 -04:00