Skip to content

Commit 6dd6fec

Browse files
committed
Move react-tools.umd.cjs back to react-tools.js to fix script blocking
* Change Vite config to output only a UMD build to react-tools.js * Fix script with nonstandard .cjs extension being blocked in the browser when the X-Content-Type-Options: nosniff header is present. * Fix missing rollup dependencies in package-lock.json by running npm audit fix
1 parent 4029c3e commit 6dd6fec

File tree

8 files changed

+711
-34
lines changed

8 files changed

+711
-34
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ reactR.Rcheck
1010
reactR_*.tar.gz
1111
*.swp
1212
.DS_Store
13-
inst/www/react-tools/react-tools.js

DESCRIPTION

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: reactR
22
Type: Package
33
Title: React Helpers
4-
Version: 0.6.0
5-
Date: 2024-06-26
4+
Version: 0.6.1
5+
Date: 2024-09-09
66
Authors@R: c(
77
person(
88
"Facebook", "Inc"
@@ -46,5 +46,5 @@ Suggests:
4646
knitr,
4747
usethis,
4848
jsonlite
49-
RoxygenNote: 7.3.1
49+
RoxygenNote: 7.3.2
5050
VignetteBuilder: knitr

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# reactR 0.6.1
2+
3+
* Fix issue where the `react-tools.umd.cjs` script could be blocked by the browser in some cases, such as apps deployed on shinyapps.io [#86](https://github.com/react-R/reactR/issues/86)
4+
15
# reactR 0.6.0
26

37
* retain `list` in `reactR::component` classes [#82](https://github.com/react-R/reactR/issues/82)

R/dependencies.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ html_dependency_reacttools <- function(){
8282
src = "www/react-tools",
8383
version = "2.0.0",
8484
package = "reactR",
85-
script = c("react-tools.umd.cjs")
85+
script = c("react-tools.js")
8686
)
8787
}
8888

inst/www/react-tools/react-tools.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/www/react-tools/react-tools.umd.cjs

-1
This file was deleted.

0 commit comments

Comments
 (0)