Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support 1.n.x and 1.x version format #38 #39

Merged
merged 55 commits into from
Jan 7, 2021
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2e64c72
add empty functions
jiro4989 Jan 5, 2021
0342590
fix
jiro4989 Jan 5, 2021
94d7560
install compare-versions
jiro4989 Jan 5, 2021
902e49b
install node-fetch
jiro4989 Jan 5, 2021
b6c4261
wip
jiro4989 Jan 5, 2021
ec8582f
wip
jiro4989 Jan 5, 2021
214eb1c
wip
jiro4989 Jan 5, 2021
df9bf74
add test code
jiro4989 Jan 5, 2021
36e6eee
wip
jiro4989 Jan 5, 2021
6e2ac3d
wip
jiro4989 Jan 6, 2021
75ee0bf
wip
jiro4989 Jan 6, 2021
c7394ba
remove node-fetch
jiro4989 Jan 6, 2021
3d4e454
implements patch version
jiro4989 Jan 6, 2021
137a7e2
format
jiro4989 Jan 6, 2021
62fb9e5
tsc
jiro4989 Jan 6, 2021
5c652f3
add typescript test job
jiro4989 Jan 6, 2021
1587946
add 'v' prefix
jiro4989 Jan 6, 2021
3f02bdf
format
jiro4989 Jan 6, 2021
3d912fd
tsc
jiro4989 Jan 6, 2021
8b01250
add test case
jiro4989 Jan 6, 2021
18242fa
format
jiro4989 Jan 6, 2021
f7d8c39
implements minor version
jiro4989 Jan 6, 2021
73980d0
add test case
jiro4989 Jan 6, 2021
d36caac
tsc
jiro4989 Jan 6, 2021
ba3924e
update validations
jiro4989 Jan 6, 2021
6158537
format
jiro4989 Jan 6, 2021
4fd7340
add test case
jiro4989 Jan 6, 2021
f2d2f47
tsc
jiro4989 Jan 6, 2021
c242f36
update test case
jiro4989 Jan 6, 2021
7c7162a
add export
jiro4989 Jan 6, 2021
df5d1d7
add test case
jiro4989 Jan 6, 2021
e8b5b9f
tsc
jiro4989 Jan 6, 2021
34a036a
update test description
jiro4989 Jan 6, 2021
e5b0f54
update test code position
jiro4989 Jan 6, 2021
5037d4d
format
jiro4989 Jan 6, 2021
a336ef0
add match version functions
jiro4989 Jan 7, 2021
2b645da
format
jiro4989 Jan 7, 2021
02b1d56
tsc
jiro4989 Jan 7, 2021
928563e
add test cases
jiro4989 Jan 7, 2021
cf6ebc3
implements glob
jiro4989 Jan 7, 2021
24ced8d
tsc
jiro4989 Jan 7, 2021
f145efd
add test case
jiro4989 Jan 7, 2021
212eda7
add info message
jiro4989 Jan 7, 2021
4db97ef
tsc
jiro4989 Jan 7, 2021
a4db434
add request header
jiro4989 Jan 7, 2021
b241762
format
jiro4989 Jan 7, 2021
8c9173e
tscv
jiro4989 Jan 7, 2021
bdeff6f
fix code
jiro4989 Jan 7, 2021
32586e3
format
jiro4989 Jan 7, 2021
9cc0c80
tsc
jiro4989 Jan 7, 2021
bd8023a
fix
jiro4989 Jan 7, 2021
d0d38de
tsc
jiro4989 Jan 7, 2021
5c5a022
fix
jiro4989 Jan 7, 2021
16bb1f2
format
jiro4989 Jan 7, 2021
d0551ad
tsc
jiro4989 Jan 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add empty functions
jiro4989 committed Jan 5, 2021
commit 2e64c72541227c3001002c612a2bd4d9c99babb4
26 changes: 26 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* fetchTagList returns Nim version tag list.
* TODO
*/
function fetchTagList(): string[] {
const tagURL = "https://api.github.com/repos/nim-lang/Nim/tags";
return [];
}

/**
* getLatestVersionWithTags returns a latest version of `1.n.x`.
* TODO
*/
function getLatestVersionWithTags(version: string, tags: string[]): string {
return "";
}

/**
* getLatestVersion returns a latest version of `1.n.x`.
* TODO
*/
function getLatestVersion(version: string): string {
const tags = fetchTagList();
return getLatestVersionWithTags(version, tags);
}