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
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