Corey Butler
12c9aa350e
added better error message for non-existant versions
2024-12-29 09:31:09 -06:00
Corey Butler
487bfff54b
version bump
2024-12-28 23:03:04 -06:00
Corey Butler
6ca6f2ca24
resolve merge conflicts
2024-12-28 22:31:25 -06:00
Corey Butler
7de073ee16
combined updates
2024-12-28 22:23:51 -06:00
Corey Butler
096e0a20fc
added version to user-agent header so node downloads can identify old versions of NVM4W
2024-11-22 21:48:27 -06:00
Corey Butler
a3ce3119b1
added bad symlink detection and register/unregister methods
2024-11-21 23:38:04 -06:00
Corey Butler
51c3b178d0
Added upgrade and reinstall commands
2024-11-18 12:10:33 -06:00
Corey Butler
28c3aa8717
Merge pull request #1109 from wsobolewski/utf
...
Support whitespace and non-ASCII characters in path.
2024-11-13 22:24:54 -06:00
Corey Butler
a81c1b908c
Merge pull request #1070 from wsobolewski/arm64
...
Arm64
2024-11-12 11:44:13 -06:00
Stefan Petrović
75f22001fb
Fixed double slash bug that caused versions older than 16.9.0 to have incorrect URLs.
2024-11-08 11:11:57 +01:00
Tobias Kellner
95133cb1d0
Don't perform any changes when trying to use current node version
2024-08-02 20:46:51 +02:00
Wojciech Sobolewski
54a0243299
Update version check logic.
2024-08-01 19:44:11 +02:00
Wojciech Sobolewski
dc699f5960
Code cleanup.
2024-04-02 19:52:28 +02:00
Wojciech Sobolewski
bab56dab69
Support whitespace and non-ASCI characters in path.
2024-02-27 21:14:49 +01:00
Wojciech Sobolewski
f52379fca3
Update arch detection.
2023-12-04 13:59:01 +01:00
Wojciech Sobolewski
b657035a0b
Merge branch 'coreybutler:master' into arm64
2023-12-03 13:30:05 +01:00
Wojciech Sobolewski
b07894d8ca
Merge branch 'master' of https://github.com/wsobolewski/nvm-windows
2023-12-03 13:28:32 +01:00
Corey Butler
7af9934eaf
Add error messages for failed version lookups (when nodejs.org returns partial/no results. Resolves #1064 .
2023-11-22 10:41:38 -06:00
Corey Butler
4854ee0832
Merge branch 'master' of github.com:coreybutler/nvm-windows
2023-11-07 12:22:49 -06:00
Corey Butler
3c736ab164
Add debugging option to identify IPv6 configurations and remind users it is slow.
2023-11-07 12:22:12 -06:00
Corey Butler
9c37af6290
Merge pull request #965 from nineninesevenfour/fix-932-path-with-spaces
...
fix issue #932
2023-10-10 17:19:34 +00:00
Eng Zer Jun
683357f2f3
Avoid unnecessary byte/string conversion
...
We can use `(*regexp.Regexp).MatchString` instead of
`(*regexp.Regexp).Match([]byte(...))` to avoid unnecessary `[]byte`
conversions and reduce allocations.
Example benchmark:
func BenchmarkMatch(b *testing.B) {
reg, _ := regexp.Compile("[^0-9]")
for i := 0; i < b.N; i++ {
if match := reg.Match([]byte("v")); !match {
b.Fail()
}
}
}
func BenchmarkMatchString(b *testing.B) {
reg, _ := regexp.Compile("[^0-9]")
for i := 0; i < b.N; i++ {
if match := reg.MatchString("v"); !match {
b.Fail()
}
}
}
BenchmarkMatch-16 19712776 65.47 ns/op 1 B/op 1 allocs/op
BenchmarkMatchString-16 24261463 51.16 ns/op 0 B/op 0 allocs/op
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2023-10-10 18:53:32 +08:00
Shengyuan Ye
53283980d5
Modified folder detection code against #1031
2023-09-20 09:49:57 +08:00
Corey Butler
c1a633745c
prevent invalid zip file from exracting files to arbitrary locations.
2023-04-27 11:31:01 -05:00
Corey Butler
0990c1fa75
Added a debug check to identify invalid Node installations.
2023-04-20 09:44:15 -05:00
Harald Fassler
6c175fabaf
fix issue #932
...
Signed-off-by: Harald Fassler <harald.fassler+9974@gmail.com >
2023-04-15 12:36:21 +02:00
Tester798
11625ec131
Fix symlink detect if it points to nothing
2023-04-13 15:25:59 +03:00
Corey Butler
3f0dba16dc
Updated go-where dependency and cleaned up debug output.
2023-04-12 22:28:01 -05:00
Corey Butler
9dff81433c
Added extra debug details.
2023-04-12 20:40:26 -05:00
Corey Butler
fa811e098d
Updated build process.
2023-04-11 12:58:48 -05:00
Corey Butler
b54163cf78
Move test command to 'debug'. Fixes #955 and #942 . Addresses #945 with new encoding for settings (forcing UTF-8).
2023-04-11 12:53:34 -05:00
dependabot[bot]
195f9539c2
Bump golang.org/x/text from 0.3.2 to 0.3.8 in /src
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.2 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.2...v0.3.8 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 15:34:38 +00:00
Corey Butler
ed0bce2ca6
Merge pull request #936 from coreybutler/dependabot/go_modules/src/golang.org/x/sys-0.1.0
...
Bump golang.org/x/sys from 0.0.0-20190813064441-fde4db37ae7a to 0.1.0 in /src
2023-04-02 10:33:54 -05:00
秋来冬风
a2cea8fd91
Avoid panic after connection failure
...
Download function, when client.Do returns err= Nil, return false after printing the error message to avoid panic
2023-03-19 13:04:07 +08:00
dependabot[bot]
cb0d573441
Bump golang.org/x/sys in /src
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.0.0-20190813064441-fde4db37ae7a to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-25 03:54:24 +00:00
Corey Butler
16afa15d7d
Added custom UTF-8 converter for settings file.
2023-02-24 12:31:57 -06:00
Corey Butler
8d2af15f77
Remove unreacheable code. Closes PR #926 .
2023-02-13 19:44:34 -06:00
Corey Butler
9366b98d10
Add checks for network connectivity
2023-02-13 19:41:21 -06:00
Corey Butler
6e2c8da2dc
Updated error output for bad version aliases and atttempt to resolve desired alias.
2023-02-04 19:17:35 -06:00
Corey Butler
98fa1e5ca3
Added support for codenames
2023-01-26 21:50:16 -06:00
Corey Butler
7852e0c8ea
Prevent alphabetical characters only for unknown version aliases. Closes #907 .
2023-01-26 20:55:03 -06:00
Corey Butler
fdbf31dfdd
Fixed PATH check logic
2023-01-26 20:51:17 -06:00
Corey Butler
7a52c4cbc4
Added initial environment check. Also prevent versions starting with non-numeric values other than 'v' that aren't a known alias. This closes #919
2023-01-26 20:03:39 -06:00
Corey Butler
f31dd2ab90
Updated elevation approach
2022-10-31 18:55:01 -05:00
Corey Butler
9c2b3b4835
Add aliases/flags for version. Closes #855 .
2022-10-31 18:18:58 -05:00
Corey Butler
68df36c974
Merged several PRs. Adds support for partial version matching in 'use' and 'install' commands. Closes #766 .
2022-10-31 18:17:10 -05:00
Corey Butler
e050a10736
Added HTTP request exception handling to clearly identify bad URLs. A patch was also applied to catch a bad npm URL for npm v6.14.17, which returns multiple results (status code 300). Resolves #766
2022-05-28 10:03:06 -05:00
Corey Butler
dfa2e5f105
Update dependencies
2022-05-28 09:58:54 -05:00
sayefreyadh
faed1f3cf2
minor typo fixed in comments
2022-05-14 03:42:15 +06:00
Corey Butler
e75c744de6
Merge pull request #709 from vladonemo/use_command_enhacement
...
Allow `nvm use` to be called with the part of the semver
2022-05-12 07:26:29 -05:00