Skip to content

Commit 334035b

Browse files
committed
use a query parameter ?specifier=latest to ensure retrieving the latest version
1 parent e1cf654 commit 334035b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: litedown
22
Type: Package
33
Title: A Lightweight Version of R Markdown
4-
Version: 0.6
4+
Version: 0.6.1
55
Authors@R: c(
66
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666", URL = "https://yihui.org")),
77
person("Tim", "Taylor", role = "ctb", comment = c(ORCID = "0000-0002-8587-7113")),

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ jsd_version = local({
11501150
# query version from jsdelivr api
11511151
v_api = function(pkg) {
11521152
x = tryCatch(
1153-
read_utf8(paste0('https://data.jsdelivr.com/v1/packages/', pkg, '/resolved')),
1153+
read_utf8(paste0('https://data.jsdelivr.com/v1/packages/', pkg, '/resolved?specifier=latest')),
11541154
error = function(e) v_cache(pkg, FALSE, Inf) # fall back to local cache
11551155
)
11561156
v = grep_sub('.*"version":\\s*"([0-9.]+)".*', '@\\1', x)

0 commit comments

Comments
 (0)