Skip to content

Commit 8c2589f

Browse files
update react and react-dom to 16.0.0 and babel to 6.26.0; update pkgdown site
1 parent ee4d7f8 commit 8c2589f

File tree

21 files changed

+1418
-113
lines changed

21 files changed

+1418
-113
lines changed

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# reactR 0.1.3
2+
3+
* Update react and react-dom to 16.0.0
4+
* Update babel to 6.26.0
5+
16
# reactR 0.1.2
27

38
* Update to react `15.5.0`

R/dependencies.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ html_dependency_react <- function(offline=TRUE){
3737

3838
if(!offline) {
3939
hd$src <- list(href=sprintf(
40-
"//cdnjs.cloudflare.com/ajax/libs/react/%s",
40+
"//unpkg.com/react/@%s/",
4141
react_version()
4242
))
43+
hd$script = c("react.production.min.js", "react-dom.production.min.js")
4344
}
4445

4546
hd

R/meta.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#'@keywords internal
2-
react_version <- function(){'15.5.0'}
3-
babel_version <- function(){'6.24.0'}
2+
react_version <- function(){'16.0.0'}
3+
babel_version <- function(){'6.26.0'}

build/getreact.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ get_babel_latest <- function(){
2020
# get newest react
2121
download.file(
2222
url=sprintf(
23-
"https://unpkg.com/react@%s/dist/react.min.js",
23+
"https://unpkg.com/react@%s/umd/react.production.min.js",
2424
get_react_latest()
2525
),
2626
destfile="./inst/www/react/react.min.js"
@@ -29,7 +29,7 @@ download.file(
2929
# get newest react dom
3030
download.file(
3131
url=sprintf(
32-
"https://unpkg.com/react-dom@%s/dist/react-dom.min.js",
32+
"https://unpkg.com/react-dom@%s/umd/react-dom.production.min.js",
3333
get_react_latest()
3434
),
3535
destfile="./inst/www/react/react-dom.min.js"

docs/LICENSE.html

Lines changed: 108 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/index.html

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/intro_reactR.html

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)