David Sherret
2fee8394a9
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-05 13:05:49 +01: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
Bartek Iwańczuk
0e1a71fec6
fix(upgrade): put prompt date in the past when creating a file ( #16380 )
2022-10-21 17:07:17 +02:00
Bartek Iwańczuk
4b6168d5e3
feat(update): prompt for new version once per day ( #16375 )
...
<!--
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-21 01:50:55 +02:00
David Sherret
e825022c82
refactor(cli): update checker - use a single option instead of two ( #16372 )
2022-10-20 17:01:17 -04:00
Bert Belder
a48d05fac7
feat(cli): check for updates in background ( #15974 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-10-20 16:15:21 +02:00
cuobiezi
dbfaaddb4f
fix(cli): deno upgrade --canary
always downloaded latest version even if it was already latest ( #15639 )
...
Closes #15570
2022-08-27 13:46:38 -04:00
David Sherret
d9fae38d1e
feat: add initial internal npm client and dependency resolver ( #15446 )
2022-08-10 15:23:58 -04:00
David Sherret
e1c90963fb
refactor: create args
folder ( #14982 )
2022-06-27 16:54:09 -04:00
David Sherret
1c37ac3352
chore(tests): use custom temp dir creation for the tests ( #14153 )
2022-04-01 11:15:37 -04:00
Sylvain Cau
c98c976294
fix(cli): add support for DENO_CERT in upgrade command ( #13862 )
2022-03-18 18:40:44 -04:00
David Sherret
3b12afd072
chore: upgrade to Rust 1.59 ( #13767 )
2022-02-24 20:03:12 -05:00
mlemesle
f8b73ab97e
fix(upgrade): move the file permission check to the beginning of the upgrade process ( #13726 )
2022-02-23 16:11:46 -05:00
Ryan Dahl
1fb5858009
chore: update copyright to 2022 ( #13306 )
...
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2022-01-07 22:09:52 -05:00
Bartek Iwańczuk
907cef563e
refactor: cleanup cli/main.rs ( #13160 )
2021-12-21 15:49:27 +01:00
Divy Srivastava
6de53b631f
refactor: use once_cell
instead of lazy_static
( #13135 )
2021-12-18 16:14:42 -05:00
Ryan Dahl
b2036a4db7
refactor: re-export anyhow from deno_core ( #12777 )
2021-11-16 09:02:28 -05:00
Luca Casonato
22dd1b90c4
fix(cli/upgrade): nice error when unzip is missing ( #12693 )
...
Previously just a generic "error: No such file or directory (os error
2)" was printed. Now "`unzip` was not found on your PATH, please install
`unzip`" will be printed.
2021-11-09 11:06:45 +01:00
Leo K
397c34ca15
fix(cli/tools/upgrade): check if passed version is valid ( #11296 )
2021-07-07 14:59:39 -04:00
CGQAQ
428bc6849f
fix(cli/upgrade): modify download size paddings ( #10639 )
2021-05-24 16:55:44 +09:00
crowlKats
fd3b961126
feat(cli/upgrade): add download progress ( #10343 )
2021-04-24 13:37:43 -04:00
Nicholas Rodrigues Lordello
320c19c7c0
fix(installer): Remove double '.' from temporary archive extension on upgrade ( #10289 )
2021-04-21 17:48:28 +02:00
Ryan Dahl
f46e39c5c5
remove macro_use ( #9884 )
2021-03-26 12:34:25 -04:00
Liam Murphy
a61389a55e
fix(compile): fix panic when cross-compiling between windows and unix ( #9203 )
2021-01-24 02:40:13 +09:00
Luca Casonato
cf3202644d
fix: full commit hash in canary compile download ( #9166 )
2021-01-19 13:53:23 +01:00
Bartek Iwańczuk
9ff468df73
feat: Standalone lite binaries and cross compilation ( #9141 )
...
This commit adds --target and --lite flags to deno compile subcommand.
--target allows to cross-compile binary to different target architectures by
fetching appropriate binary from remote server on first run. All downloaded
binaries are stored in "$DENO_DIR/dl".
--lite allows to use lite version of the runtime (ie. the one that doesn't contain
built-in tooling like formatter or linter).
2021-01-19 03:40:22 +01:00
Yusuke Tanaka
d8fd71afdf
chore: update copyright to 2021 ( #9092 )
2021-01-11 18:13:41 +01:00
Luca Casonato
a44349dfdf
feat: denort binary ( #9041 )
...
This commit adds new binary target called "denort".
It is a "lite" version of "deno" binary that can only execute
code embedded inside the binary itself.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-08 03:08:51 +01:00
Bartek Iwańczuk
2e74f164b6
refactor: deno_runtime crate ( #8640 )
...
This commit moves Deno JS runtime, ops, permissions and
inspector implementation to new "deno_runtime" crate located
in "runtime/" directory.
Details in "runtime/README.md".
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-12-13 19:45:53 +01:00
crowlKats
973af61d8b
feat(cli/tools/upgrade): canary support ( #8476 )
2020-11-29 20:00:35 +01:00
crowlKats
a08d2eee2b
add canary versioning ( #8480 )
2020-11-25 05:30:14 -05:00
crowlKats
750f179aeb
refactor(cli/tools/upgrade): rework upgrade ( #8331 )
...
This commit does major overhaul of "upgrade" subcommand,
reducing complexity & giving more sensible console output.
Removes gz support for archives.
Uses last part of url instead of scraping to get latest version.
2020-11-22 16:07:05 +01:00
Bartek Iwańczuk
9eaa1fb71d
refactor(cli): move tooling to cli/tools/ ( #8424 )
...
This commit moves following tools into a single "tools"
module located at "cli/tools/mod.rs":
- formatter
- linter
- test runner
- coverage collector
- installer
- binary upgrader
- repl
2020-11-19 19:19:34 +01:00