summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-01-29Partial implementation of node os polyfill based on currently available Deno ↵cknight
functionality (#3821)
2020-01-29workers: proper TS libs, more spec-compliant APIs (#3812)Bartek Iwańczuk
* split lib.deno_main.d.ts into: - lib.deno.shared_globals.d.ts - lib.deno.window.d.ts - lib.deno.worker.d.ts * remove no longer used libs: - lib.deno_main.d.ts - lib.deno_worker.d.ts * change module loading to use proper TS library for compilation * align to Worker API spec: - Worker.terminate() - self.close() - self.name
2020-01-29Upgrade rusty_v8 (#3816)Ryan Dahl
2020-01-27dx: descriptive permission errors (#3808)Bartek Iwańczuk
Before: ``` ▶ target/debug/deno https://deno.land/std/examples/echo_server.ts error: Uncaught PermissionDenied: run again with the --allow-net flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendSync ($deno$/dispatch_json.ts:67:10) at listen ($deno$/net.ts:170:15) at https://deno.land/std/examples/echo_server.ts:4:23 ``` ``` ▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd error: Uncaught PermissionDenied: run again with the --allow-read flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendAsync ($deno$/dispatch_json.ts:91:10) ``` After: ``` ▶ target/debug/deno https://deno.land/std/examples/echo_server.ts error: Uncaught PermissionDenied: network access to "0.0.0.0:8080", run again with the --allow-net flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendSync ($deno$/dispatch_json.ts:67:10) at listen ($deno$/net.ts:170:15) at https://deno.land/std/examples/echo_server.ts:4:23 ``` ``` ▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with the --allow-read flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendAsync ($deno$/dispatch_json.ts:91:10) ```
2020-01-27refactor: isomorphic snapshot for CLI (#3728)Bartek Iwańczuk
2020-01-26Improve support of type definitions (#3755)Kitson Kelly
2020-01-26lock: support lock-write for fetch command (#3787)Kevin (Kun) "Kassimo" Qian
2020-01-26Remove dead code in cli/shell.rs (#3792)Ryan Dahl
2020-01-26fix clippy warnings (#3798)Ben Noordhuis
2020-01-26feat: make eval support --v8-flags=... (#3797)Ben Noordhuis
Closes #3796
2020-01-25refactor: Modules and Loader trait (#3791)Bartek Iwańczuk
* move is_dyn_import argument from Loader::resolve to Loader::load - it was always kind of strange that resolve() checks permissions. * change argument type from &str to &ModuleSpecifier where applicable
2020-01-25Refactor error tracking and scope juggling in deno_core (#3783)Bert Belder
2020-01-25add some tests for isSymbol in std/node/util_test (#3788)Takashi Idobe
2020-01-24Do not panic and improve error message on cache failure (#3784)Kevin (Kun) "Kassimo" Qian
2020-01-24s/PinnedBuf/ZeroCopyBuf (#3782)Ryan Dahl
2020-01-24fix crate name in docs (#3778)David Asabina
2020-01-24fix cargo-publish-on-tag (#3781)Ryan Dahl
Also rename the "test" CI worker to "test_release"
2020-01-24Break out runtime lib to main and worker (#3771)Kitson Kelly
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-01-24v0.31.0Ryan Dahl
2020-01-24Mark signal APIs as unstable (#3779)Ryan Dahl
2020-01-24fix(std/http): update listenAndServe argument type (#3775)Carl Rosell
allow same argument type for `listenAndServe` as `serve`. fixes: #3774
2020-01-24Add signal handlers (#3757)Yoshiya Hinosawa
2020-01-24Fix: take control buffer offset/length into account again (#3769)Bert Belder
2020-01-23Upgrade rusty_v8 to 0.2.0 (#3764)Ryan Dahl
2020-01-23update readmes (#3765)Ryan Dahl
2020-01-23refactor: remove Isolate.shared_response_buf optimization (#3759)Bartek Iwańczuk
Op return values are no zero copied from Rust to JS.
2020-01-23fix typoFabriece Sumuni
2020-01-22refactor: snapshotting (#3753)Bartek Iwańczuk
2020-01-22Reland "Create an old program to be used in snapshot." (#3747)Bartek Iwańczuk
* read CLI assets from disk during snapshotting
2020-01-22Remove cargo-package test (#3752)Ryan Dahl
The test still relies on crates published to crates.io, thus this test prevents us from making changes to the API used between cli and deno_typescript.
2020-01-22Change 'cargo publish' test to only do 'cargo package' (#3750)Ry Dahl
It was found the cargo-package-dry-run test would fail when version numbers are bumped because crates were not actually published. So, for example, deno_typescript 0.30.2 would not be able to find deno_core 0.30.2 because it had not yet been published (see #3744). Ref #3712
2020-01-21Add github action for cargo publish (#3724)Ry Dahl
2020-01-21Upgrade to rusty_v8 v0.1.1 (#3741)Bert Belder
2020-01-21Revert "Create an old program to be used in snapshot. (#3644)"Ry Dahl
Ref #3712. This change allowed the deno_typescript crate to reference cli/js/lib.deno_runtime.d.ts which breaks "cargo package". We intend to reintroduce a revised version of this patch later once "cargo package" is working and tested. This reverts commit 737ab94ea1bdf65eeef323ea37e84bcf430fb92c.
2020-01-21v0.30.1Ryan Dahl
This patch release is being done only to test crate publishing, hence lack of release notes or published binaries.
2020-01-21feat: add AsyncUnref ops (#3721)Yoshiya Hinosawa
This is in order to support features like signal handlers, which shouldn't prevent the program from exiting.
2020-01-21refactor: split cli::Worker (#3735)Bartek Iwańczuk
* cli::Worker is base struct to create specialized workers * add MainWorker * add CompilerWorker * refactor WebWorker to use Worker
2020-01-21Revert "don't include assets in binary (#3661)"Ry Dahl
Ref #3712 This reverts commit 32cbcfe4e9943a0318c497188e045d23c5f6703a.
2020-01-21Update manual.md (#3734)Lasse Brudeskar Vikås
Updated the `Deno.bundle` description to actually use the `bundle`-function.
2020-01-21change copyrights from 2019 to 2020 (#3733)Takashi Idobe
2020-01-21refactor: Rename JS entry functions (#3732)Bartek Iwańczuk
2020-01-21refactor: don't create new runtime for fs ops (#3730)Bartek Iwańczuk
2020-01-21Implemented alternative open mode in files (#3119)Michał Sabiniarz
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-01-21refactor: split worker and worker host logic (#3722)Bartek Iwańczuk
* split ops/worker.rs into ops/worker_host.rs and ops/web_worker.rs * refactor js/workers.ts and factor out js/worker_main.ts - entry point for WebWorker runtime * BREAKING CHANGE: remove support for blob: URL in Worker * BREAKING CHANGE: remove Deno namespace support and noDenoNamespace option in Worker constructor * introduce WebWorker struct which is a stripped down version of cli::Worker
2020-01-20refactor: reduce number of ErrorKind variants (#3662)Bartek Iwańczuk
2020-01-20Fix bug in strace parser (#3720)Ry Dahl
Co-authored-by: @kt3k
2020-01-20refactor: Improve path handling in permission checks (#3714)Nayeem Rahman
2020-01-20Use globalThis to reference global scope (#3719)Kitson Kelly
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-01-18stabilize net Addr (#3709)Bartek Iwańczuk
Co-authored-by: xiaoxintang <15707971810@163.com>
2020-01-18rename dial to connect and dialTLS to connectTLS (#3710)Bartek Iwańczuk