summaryrefslogtreecommitdiff
path: root/cli/tools/upgrade.rs
AgeCommit message (Collapse)Author
2023-06-06chore: upgrade to Rust 1.70.0 (#19345)David Sherret
Co-authored-by: linbingquan <695601626@qq.com>
2023-05-25fix: don't print release notes on version check prompt (#19252)Luca Casonato
2023-05-16fix(deno/upgrade): allow --version vX.Y.Z (#19139)Levente Kurusa
Instead of just supporting X.Y.Z, support vX.Y.Z. Otherwise we'll try to download something like vvX.Y.Z
2023-05-14refactor(core): bake single-thread assumptions into spawn/spawn_blocking ↵Matt Mastracci
(#19056) Partially supersedes #19016. This migrates `spawn` and `spawn_blocking` to `deno_core`, and removes the requirement for `spawn` tasks to be `Send` given our single-threaded executor. While we don't need to technically do anything w/`spawn_blocking`, this allows us to have a single `JoinHandle` type that works for both cases, and allows us to more easily experiment with alternative `spawn_blocking` implementations that do not require tokio (ie: rayon). Async ops (+~35%): Before: ``` time 1310 ms rate 763358 time 1267 ms rate 789265 time 1259 ms rate 794281 time 1266 ms rate 789889 ``` After: ``` time 956 ms rate 1046025 time 954 ms rate 1048218 time 924 ms rate 1082251 time 920 ms rate 1086956 ``` HTTP serve (+~4.4%): Before: ``` Running 10s test @ http://localhost:4500 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 68.78us 19.77us 1.43ms 86.84% Req/Sec 68.78k 5.00k 73.84k 91.58% 1381833 requests in 10.10s, 167.36MB read Requests/sec: 136823.29 Transfer/sec: 16.57MB ``` After: ``` Running 10s test @ http://localhost:4500 2 threads and 10 connections Thread Stats Avg Stdev Max +/- Stdev Latency 63.12us 17.43us 1.11ms 85.13% Req/Sec 71.82k 3.71k 77.02k 79.21% 1443195 requests in 10.10s, 174.79MB read Requests/sec: 142921.99 Transfer/sec: 17.31MB ``` Suggested-By: alice@ryhl.io Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-05-01perf: lazily create RootCertStore (#18938)David Sherret
2023-05-01refactor(cli): remove ProcState - add CliFactory (#18900)David Sherret
This removes `ProcState` and replaces it with a new `CliFactory` which initializes our "service structs" on demand. This isn't a performance improvement at the moment for `deno run`, but might unlock performance improvements in the future.
2023-04-13refactor(cli,ext,ops): cleanup `regex` with `lazy-regex` (#17296)Yiyu Lin
- bump deps: the newest `lazy-regex` need newer `oncecell` and `regex` - reduce `unwrap` - remove dep `lazy_static` - make more regex cached --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-04-12refactor: `ProcState::build` -> `ProcState::from_flags` (#18672)David Sherret
2023-04-06refactor(npm): use deno_npm and deno_semver (#18602)David Sherret
2023-03-31Revert "fix(cli): deno upgrade file permission (#18427)" (#18467)Bartek Iwańczuk
This reverts commit 0742ea1170239b7d010e219b3349b2f9edaaefe5. Closes https://github.com/denoland/deno/issues/18466
2023-03-26fix(cli): deno upgrade file permission (#18427)滑威
2023-03-23refactor: make version and user_agent &'static str (#18400)Bartek Iwańczuk
These caused a bunch of unnecessary allocations on each startup.
2023-03-22chore(test_util): replace tempdir code w/tempdir crate (#18340)Matt Mastracci
2023-03-15perf: do not depend on iana-time-zone (#18088)Divy Srivastava
Chrono's `clock` feature pulls in `iana-time-zone` which links to macOS core_foundation. This PR itself is not enough to get rid of CoreFoundation. Removal depends on getting rid of security framework, see #18071
2023-02-16ref(cli): Add better error message when powershell is missing during upgrade ↵Kamil Ogórek
(#17759) Closes https://github.com/denoland/deno/issues/17756
2023-02-15refactor: use deno_graph's semver and npm structs (#17791)David Sherret
2023-02-08chore(cli/tools): fix typo in upgrade.rs (#17690)Ikko Eltociear Ashimine
vesion -> version
2023-01-27chore: upgrade to Rust 1.67 (#17548)David Sherret
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-26fix(upgrade): ensure temp dir cleanup on failure (#17535)David Sherret
Closes #17533
2023-01-25fix(upgrade): don't display release information for canary (#17516)Leo Kettmeir
2023-01-24feat(upgrade): link to release notes & blog post (#17073)Asher Gomez
This change prints a link to the release notes to `deno upgrade` output and its variations. Release notes aren't printed for commands relating to canary versions. Closes #16350.
2023-01-13refactor(cli/tools): reduce cloning (#17309)Geert-Jan Zwiers
2023-01-02chore: update copyright year to 2023 (#17247)David Sherret
Yearly tradition of creating extra noise in git.
2022-12-14fix(upgrade/windows): correct command in windows access denied message (#17049)David Sherret
2022-12-14chore: fix recent regression with `deno upgrade` not handling redirects (#17045)David Sherret
2022-12-12fix: always derive http client from cli flags (#17029)David Sherret
I'm not sure how to test this. It doesn't seem to have an existing test. Closes #15921
2022-12-12feat: improve download progress bar (#16984)Bartek Iwańczuk
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-12-08fix(cli/upgrade): properly cleanup after finished (#16930)Lino Le Van
Co-authored-by: kidonng <kidonng@users.noreply.github.com>
2022-12-02fix(upgrade/windows): show informative message on access denied error (#16887)David Sherret
Closes #16886
2022-12-01fix(upgrade): respect the `--quiet` flag (#16888)David Sherret
Also, use `ProgressBar` for upgrading.
2022-11-26refactor: `DenoDir` - move to cache folder and make `root_dir` private (#16823)David Sherret
2022-11-05fix(upgrade): don't prompt if current version has changed (#16542)sigmaSd
fix https://github.com/denoland/deno/issues/16539 fix https://github.com/denoland/deno/issues/16537
2022-10-31fix(tools): show correct upgrade command for upgrading canary (#16486)sigmaSd
2022-10-28fix(upgrade): don't prompt if latest version is older than current binary ↵Bartek Iwańczuk
(#16464)
2022-10-26fix(cli): do not log update checker when log level is quiet (#16433)David Sherret
Co-authored-by: lucacasonato <hello@lcas.dev>
2022-10-26fix(upgrade): Added error message when using canary option with M1 (#16382)doi yuki
before ``` Looking up latest version Found latest version 8c9e6c5565c1c00437d083de76cdd944e44b1d99 Checking https://dl.deno.land/canary/8c9e6c5565c1c00437d083de76cdd944e44b1d99/deno-aarch64-apple-darwin.zip Download could not be found, aborting ``` after ``` Looking up latest canary version Found latest version 8c9e6c5565c1c00437d083de76cdd944e44b1d99 error: Canary builds are not available for M1 ``` Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-10-22refactor: testable update checker code (#16386)David Sherret
2022-10-21feat(upgrade): check if user has write access to deno exe (#16378)sigmaSd
2022-10-21fix(upgrade): put prompt date in the past when creating a file (#16380)Bartek Iwańczuk
2022-10-21feat(update): prompt for new version once per day (#16375)Bartek Iwańczuk
<!-- Before submitting a PR, please read http://deno.land/manual/contributing 1. Give the PR a descriptive title. Examples of good title: - fix(std/http): Fix race condition in server - docs(console): Update docstrings - feat(doc): Handle nested reexports Examples of bad title: - fix #7123 - update docs - fix bugs 2. Ensure there is a related issue and it is referenced in the PR text. 3. Ensure there are tests that cover the changes. 4. Ensure `cargo test` passes. 5. Ensure `./tools/format.js` passes without changing files. 6. Ensure `./tools/lint.js` passes. -->
2022-10-20refactor(cli): update checker - use a single option instead of two (#16372)David Sherret
2022-10-20feat(cli): check for updates in background (#15974)Bert Belder
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-08-27fix(cli): `deno upgrade --canary` always downloaded latest version even if ↵cuobiezi
it was already latest (#15639) Closes #15570
2022-08-10feat: add initial internal npm client and dependency resolver (#15446)David Sherret
2022-06-27refactor: create `args` folder (#14982)David Sherret
2022-04-01chore(tests): use custom temp dir creation for the tests (#14153)David Sherret
2022-03-18fix(cli): add support for DENO_CERT in upgrade command (#13862)Sylvain Cau
2022-02-24chore: upgrade to Rust 1.59 (#13767)David Sherret
2022-02-23fix(upgrade): move the file permission check to the beginning of the upgrade ↵mlemesle
process (#13726)
2022-01-07chore: update copyright to 2022 (#13306)Ryan Dahl
Co-authored-by: Erfan Safari <erfanshield@outlook.com>