1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
Commit graph

4725 commits

Author SHA1 Message Date
Ryan Dahl
2379a3b340
Implement Serialize for ModuleSpecifier (#7900)
Also re-export serde from deno_core, since its now a dependency.
2020-10-09 15:45:40 -04:00
Bartek Iwańczuk
f4357f0ff9
refactor: Worker is not a Future (#7895)
This commit rewrites deno::Worker to not implement Future
trait.

Instead there are two separate methods:
- Worker::poll_event_loop() - does single tick of event loop
- Worker::run_event_loop() - runs event loop to completion

Additionally some cleanup to Worker's field visibility was done.
2020-10-09 19:08:10 +02:00
Bartek Iwańczuk
9731cbc288
fix Releases.md (#7883) 2020-10-09 19:05:50 +02:00
Bert Belder
265c25754b
ci: add workaround for MacOS + Cargo + Github Actions cache bug (#7898) 2020-10-09 17:03:58 +02:00
Bert Belder
f911dc3afe
ci: fix rusty_v8 binary download unavailable (#7898)
A recent change in rustc or cargo made it so that rusty_v8's `build.rs`,
which is responsible for downloading `librusty_v8.a`, does not get
rebuilt or re-run when its build output directory is restored from the
Github Actions cache.

However, rusty_v8's custom build script does not save the download to
its build output directory; it puts the file in
`target/debug|release/gn_out/obj` instead.

To get CI going again we opted to add `target/*/gn_out` to the Github
Actions cache.

A more robust fix would be make rusty_v8 save the download to the
cargo-designated output directory.
2020-10-09 15:11:36 +02:00
Bartek Iwańczuk
2ae59318ee
build: invalidate GHA cache (#7894) 2020-10-09 13:00:39 +02:00
Nayeem Rahman
98727b331d
fix(op_crates/fetch): Stringify and parse Request URLs (#7838)
Fixes #7837
2020-10-09 16:12:44 +11:00
crowlKats
c06fbc449d
Fix typos (#7882) 2020-10-08 15:40:49 -04:00
Yoshiya Hinosawa
6897ea8ebe
docs(std/bytes): add missing docs to README (#7885) 2020-10-08 15:39:02 -04:00
Bartek Iwańczuk
1cb91b7362
upgrade: Rust 1.47.0 (#7886) 2020-10-08 18:12:24 +02:00
Bartek Iwańczuk
b5e4b63a88
v1.4.5 2020-10-08 14:20:18 +02:00
Kitson Kelly
9d71b0ef5b
fix: update worker types to better align to lib.dom.d.ts (#7843) 2020-10-08 11:43:26 +02:00
Nayeem Rahman
986ad08bce
fix(cli/rt/error_stack): Improve message line formatting (#7860) 2020-10-08 11:05:19 +02:00
Simon Rask
62f8d945e1
fix(cli/fs) Small change in filter expression (#7865) 2020-10-08 10:57:45 +02:00
Bartek Iwańczuk
d8879feb8c
refactor(core): JsRuntime is not a Future (#7855)
This commit rewrites deno_core::JsRuntime to not implement Future
trait.

Instead there are two separate methods:
- JsRuntime::poll_event_loop() - does single tick of event loop
- JsRuntime::run_event_loop() - runs event loop to completion
2020-10-07 22:30:06 +02:00
Nayeem Rahman
8bd7c936f9
fix(cli/rt/console): Don't require a prototype to detect a class instance (#7869) 2020-10-07 16:08:54 -04:00
Bartek Iwańczuk
46e9758962
upgrade: deno_doc, deno_lint, dprint, swc (#7862) 2020-10-07 20:29:12 +02:00
Cedric Vangout
b5f06adbf3
docs(std/encoding/csv): update the usage of ParseOptions (#7857) 2020-10-07 18:01:35 +02:00
Bartek Iwańczuk
a09f4a4abd
upgrade: rusty_v8 0.11.0, V8 8.7.220.3 (#7859) 2020-10-07 17:41:25 +02:00
Bartek Iwańczuk
9b70f2f345
refactor: rename isolate to js_runtime (#7858)
This commit renames occurrences of "isolate" variable name
to "js_runtime". This was outstanding debt after renaming
deno_core::CoreIsolate to JsRuntime.
2020-10-07 17:20:20 +02:00
Bartek Iwańczuk
83f6def3c6
refactor(core): JsRuntime doesn't defer to OwnedIsolate (#7853)
Remove Deref and DeferMut implementations for JsRuntime.
2020-10-07 15:56:52 +02:00
Nayeem Rahman
c226d3af25
fix(cli/ops/fs): Don't force Windows paths separate paths with forward slash (#7833) 2020-10-07 14:05:43 +02:00
Kitson Kelly
99aa23b8dd
refactor(cli): remove TextDocument (#7850) 2020-10-07 22:43:44 +11:00
Casper Beyer
cb3a3a1e95
refactor(cli/inspector): use &str for post_message (#7851)
This changes the signature of InspectorSession.post_message to take a
&str rather than a String avoiding the need call str.to_string at each
call site.
2020-10-07 10:24:15 +02:00
Kitson Kelly
7ab645f512
refactor(cli): cleanups to new module graph (#7846) 2020-10-07 16:24:15 +11:00
Yasser A.Idrissi
ece400d13f
docs(README): fix code block type (#7845) 2020-10-07 11:32:56 +11:00
Steven Guerrero
82a17dad11
docs: fix deno.land/manual example and clarify linting of code (#7842)
Fixes #7841
2020-10-07 11:31:36 +11:00
Casper Beyer
21965e8a96
refactor(cli/repl): tightly integrate event loop (#7834) 2020-10-06 13:50:48 +02:00
Bartek Iwańczuk
6b8aef5103
chore: update contributing.md and PR template (#7820) 2020-10-06 10:40:48 +02:00
Bartek Iwańczuk
c7c7677825
fix(core): module execution with top level await (#7672)
This commit fixes implementation of top level await in "deno_core".

Previously promise returned from module execution was ignored causing to execute
modules out-of-order.

With this commit promise returned from module execution is stored on "JsRuntime"
and event loop is polled until the promise resolves.
2020-10-06 10:18:22 +02:00
ali ahmed
40324ff748
feat(std/node/fs): adding readdir, rename, and some others (#7666) 2020-10-06 01:35:22 -04:00
ali ahmed
a51408a4bc
fix(std/node/fs): allow appendFileSync to accept Uint8Array as type for data (#7835) 2020-10-06 01:26:12 -04:00
Kitson Kelly
d0f734bacc
chore: add a bundle benchmark (#7828) 2020-10-05 21:39:46 +11:00
Nayeem Rahman
72425810b8
perf(cli/console): Don't add redundant ANSI codes (#7823) 2020-10-05 11:50:49 +02:00
Kitson Kelly
f632b3b6e7
fix(core): handle unregistered errors in core better (#7817) 2020-10-05 20:35:51 +11:00
Bartek Iwańczuk
8d00c32ee2
refactor(core): JsRuntime::poll (#7825)
This commit does reorganization of "JsRuntime::poll" to allow fixing of top-level-await bug.
2020-10-05 11:08:19 +02:00
JavascriptMick
f377b611ba
chore: add lockfile tests (#7816)
Fixes #7653
2020-10-05 10:32:18 +11:00
tokiedokie
3d65177dbc
docs(std): version all imports in README (#7442)
Use $STD_VERSION in std/ README files to automatically
display proper version.
2020-10-04 14:18:36 +02:00
tokiedokie
ec96323823
chore(std/http): rename http_bench.ts -> bench.ts (#7509) 2020-10-04 13:34:52 +02:00
Trivikram Kamat
d0eb179132
docs: end sentences with a period in markdown (#7813) 2020-10-04 07:19:11 +11:00
Trivikram Kamat
391eed42f4
docs: update location of unit tests folder (#7814) 2020-10-04 07:16:13 +11:00
Atakan Ermiş
920c0b3515
docs(std/encoding): add missing JSDoc (#7809) 2020-10-03 16:44:08 +02:00
Casper Beyer
f9973364dd
docs(std/wasi): remove outdated testing section (#7812) 2020-10-03 16:41:24 +02:00
Nayeem Rahman
315724b856
feat(unstable): revert "enable importsNotUsedAsValues by default #7413" (#7800)
This reverts commit fbb18d40d3.
2020-10-03 16:40:26 +02:00
Casper Beyer
e8b93674ed
docs(std/wasi): fix usage example (#7808)
The usage example is a bit out of date and not compatible with the
stricter definition of the WebAssembly namespace.

This fixes that and makes it a bit cleaner.
2020-10-03 15:52:34 +02:00
Bartek Iwańczuk
ae1ed2d166
v1.4.4 2020-10-03 14:58:10 +02:00
Casper Beyer
c191ca1aeb
fix(cli/repl): put the thread to sleep when idle (#7804) 2020-10-03 12:51:25 +02:00
CGQAQ
59312f3936
fix(cli): update type definitions to align to TS dom (#7791)
Fixes #7746
2020-10-03 12:57:31 +10:00
Casper Beyer
4c7f53b04b
fix(cli/repl): enable colors on inspected values (#7798) 2020-10-02 15:51:08 +02:00
Bartek Iwańczuk
63efa5f15d
v1.4.3 2020-10-02 14:37:48 +02:00