David Sherret
7e72f3af61
chore: update copyright to 2024 ( #21753 )
2024-01-01 19:58:21 +00:00
David Sherret
eda3850f84
chore: add upgrade prompt integration test ( #21273 )
...
1. Adds an upgrade prompt integration test.
1. Adds a test for when the upgrade check takes a long time in the repl.
2023-11-23 16:20:40 +00:00
David Sherret
c213ad380f
chore: combine TestCommandBuilder
with DenoCmd
( #21248 )
2023-11-17 22:46:15 -05:00
David Sherret
f46802cb1e
refactor(upgrade): add unit tests for lsp upgrade check ( #21244 )
2023-11-17 16:40:12 -05:00
Nayeem Rahman
4913274a65
feat(lsp): upgrade check on init and notification ( #21105 )
2023-11-14 22:10:51 +00:00
Bartek Iwańczuk
edeccef499
refactor: migrate more ops to op2 macro ( #20808 )
...
Getting closer...
2023-10-07 21:04:03 +05:30
David Sherret
35fad4d2bc
fix(upgrade): use tar.exe to extract on Windows ( #20711 )
...
This is what we do for deno install, so it should be fine here
https://github.com/denoland/deno_install/pull/219
Closes https://github.com/denoland/deno/issues/20683
2023-09-27 17:57:58 -04:00
David Sherret
91832ce278
fix(upgrade): error instead of panic on unzip failure ( #20691 )
...
For #20683
2023-09-26 17:52:47 -04:00
Matt Mastracci
c272d26ae8
chore(cli): remove atty crate ( #20275 )
...
Removes a crate with an outstanding vulnerability.
2023-08-25 07:43:07 -06:00
Matt Mastracci
b1ce2e4167
fix(ext/web): add stream tests to detect v8slice split bug ( #20253 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-08-23 17:03:05 -06:00
solach
5ff040bf59
fix(cli): output file handling in deno upgrade ( #18994 )
2023-07-20 19:51:02 +00:00
Martin Fischer
801b9ec62d
chore: fix typos ( #19572 )
2023-06-26 09:10:27 -04:00
David Sherret
5c55f2b4fb
chore: upgrade to Rust 1.70.0 ( #19345 )
...
Co-authored-by: linbingquan <695601626@qq.com>
2023-06-06 00:35:39 +00:00
Luca Casonato
76400149a4
fix: don't print release notes on version check prompt ( #19252 )
2023-05-25 14:45:11 +02:00
Levente Kurusa
ab9a17eeee
fix(deno/upgrade): allow --version vX.Y.Z ( #19139 )
...
Instead of just supporting X.Y.Z, support vX.Y.Z. Otherwise we'll try to
download something like vvX.Y.Z
2023-05-16 03:21:59 +02:00
Matt Mastracci
9845361153
refactor(core): bake single-thread assumptions into spawn/spawn_blocking ( #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-14 15:40:01 -06:00
David Sherret
913176313b
perf: lazily create RootCertStore ( #18938 )
2023-05-01 16:42:05 -04:00
David Sherret
9efed4c7a3
refactor(cli): remove ProcState - add CliFactory ( #18900 )
...
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-05-01 14:35:23 -04:00
Yiyu Lin
d790ea7d53
refactor(cli,ext,ops): cleanup regex
with lazy-regex
( #17296 )
...
- 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-13 03:08:01 +02:00
David Sherret
9c255b2843
refactor: ProcState::build
-> ProcState::from_flags
( #18672 )
2023-04-12 14:54:28 -04:00
David Sherret
d07aa4a072
refactor(npm): use deno_npm and deno_semver ( #18602 )
2023-04-06 18:46:44 -04:00
Bartek Iwańczuk
cbd14085e6
Revert "fix(cli): deno upgrade file permission ( #18427 )" ( #18467 )
...
This reverts commit 0742ea1170
.
Closes https://github.com/denoland/deno/issues/18466
2023-03-31 13:43:45 -04:00
滑威
0742ea1170
fix(cli): deno upgrade file permission ( #18427 )
2023-03-26 12:19:12 +03:00
Bartek Iwańczuk
275dee60e7
refactor: make version and user_agent &'static str ( #18400 )
...
These caused a bunch of unnecessary allocations on each startup.
2023-03-23 23:27:58 +01:00
Matt Mastracci
cebefa8783
chore(test_util): replace tempdir code w/tempdir crate ( #18340 )
2023-03-22 12:55:19 -06:00
Divy Srivastava
51649272bd
perf: do not depend on iana-time-zone ( #18088 )
...
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-03-15 07:14:22 +00:00
Kamil Ogórek
6e1b737400
ref(cli): Add better error message when powershell is missing during upgrade ( #17759 )
...
Closes https://github.com/denoland/deno/issues/17756
2023-02-16 21:14:57 +02:00
David Sherret
c4b9a91e27
refactor: use deno_graph's semver and npm structs ( #17791 )
2023-02-15 13:20:40 -05:00
Ikko Eltociear Ashimine
0597499e9e
chore(cli/tools): fix typo in upgrade.rs ( #17690 )
...
vesion -> version
2023-02-08 03:32:30 +00:00
David Sherret
f5840bdcd3
chore: upgrade to Rust 1.67 ( #17548 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-27 10:43:16 -05:00
David Sherret
21065797f6
fix(upgrade): ensure temp dir cleanup on failure ( #17535 )
...
Closes #17533
2023-01-26 09:02:25 -05:00
Leo Kettmeir
b71d224d11
fix(upgrade): don't display release information for canary ( #17516 )
2023-01-25 16:29:27 +01:00
Asher Gomez
0d1471282b
feat(upgrade): link to release notes & blog post ( #17073 )
...
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-24 13:30:45 +01:00
Geert-Jan Zwiers
052bcc62bb
refactor(cli/tools): reduce cloning ( #17309 )
2023-01-13 22:39:19 +01:00
David Sherret
10e4b2e140
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
David Sherret
9f82abb4b4
fix(upgrade/windows): correct command in windows access denied message ( #17049 )
2022-12-14 16:21:43 -05:00
David Sherret
4a64ca8501
chore: fix recent regression with deno upgrade
not handling redirects ( #17045 )
2022-12-14 08:47:18 -05:00
David Sherret
8972ebc9cc
fix: always derive http client from cli flags ( #17029 )
...
I'm not sure how to test this. It doesn't seem to have an existing test.
Closes #15921
2022-12-12 21:30:44 -05:00
Bartek Iwańczuk
8c026dab92
feat: improve download progress bar ( #16984 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-12-12 20:52:10 -05:00
Lino Le Van
a9d2154110
fix(cli/upgrade): properly cleanup after finished ( #16930 )
...
Co-authored-by: kidonng <kidonng@users.noreply.github.com>
2022-12-08 17:48:48 -05:00
David Sherret
83bc8c473d
fix(upgrade/windows): show informative message on access denied error ( #16887 )
...
Closes #16886
2022-12-02 14:53:10 -05:00
David Sherret
05469fc382
fix(upgrade): respect the --quiet
flag ( #16888 )
...
Also, use `ProgressBar` for upgrading.
2022-12-01 18:05:49 -05:00
David Sherret
0c0af67f89
refactor: DenoDir
- move to cache folder and make root_dir
private ( #16823 )
2022-11-26 00:04:30 +00:00
sigmaSd
384e53308a
fix(upgrade): don't prompt if current version has changed ( #16542 )
...
fix https://github.com/denoland/deno/issues/16539
fix https://github.com/denoland/deno/issues/16537
2022-11-05 19:06:58 -04:00
sigmaSd
b07a753756
fix(tools): show correct upgrade command for upgrading canary ( #16486 )
2022-10-31 11:48:28 +01:00
Bartek Iwańczuk
d1d42e6ba7
fix(upgrade): don't prompt if latest version is older than current binary ( #16464 )
2022-10-28 18:43:49 +02:00
David Sherret
65f12f571b
fix(cli): do not log update checker when log level is quiet ( #16433 )
...
Co-authored-by: lucacasonato <hello@lcas.dev>
2022-10-26 21:20:41 +00:00
doi yuki
5d45d2a7e0
fix(upgrade): Added error message when using canary option with M1 ( #16382 )
...
before
```
Looking up latest version
Found latest version 8c9e6c5565
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 8c9e6c5565
error: Canary builds are not available for M1
```
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-10-26 15:51:22 +02:00
David Sherret
15744e2a0c
refactor: testable update checker code ( #16386 )
2022-10-22 14:31:25 -04:00
sigmaSd
8c9e6c5565
feat(upgrade): check if user has write access to deno exe ( #16378 )
2022-10-21 15:50:03 -04:00