Skip to content

Commit

Permalink
Prepare changes for next release :D (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym authored Dec 15, 2024
1 parent b031e7b commit 992f27a
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/github-action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"devDependencies": {
"wrangler": "^3.6.0"
"wrangler": "^3.95.0"
},
"scripts": {
"publish": "wrangler publish"
Expand Down
5 changes: 3 additions & 2 deletions packages/github-action/prepareDeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ if (!R2EXPLORER_CONFIG) {

let wranglerConfig = `
name = "${R2EXPLORER_WORKER_NAME}"
compatibility_date = "2023-05-12"
compatibility_date = "2024-11-06"
main = "src/index.ts"
assets = { directory = "node_modules/r2-explorer/dashboard", binding = "ASSETS", html_handling = "auto-trailing-slash", not_found_handling = "single-page-application" }
`;

if (R2EXPLORER_DOMAIN) {
Expand All @@ -57,7 +58,7 @@ for (const bucket of R2EXPLORER_BUCKETS.split("\n")) {
const split = bucket.trim().split(":");
if (split.length !== 2) {
console.error("R2EXPLORER_BUCKETS is not set correctly!");
console.error(`"${split}" is not in the correct format`);
console.error(`"${split}" is not in the correct format => ALIAS:BUCKET_NAME`);
process.exit(1);
}

Expand Down
142 changes: 140 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"start": "wrangler dev"
},
"dependencies": {
"r2-explorer": "^1.0.7"
"r2-explorer": "^1.1.0"
},
"devDependencies": {
"wrangler": "^3.91.0"
"wrangler": "^3.95.0"
}
}
3 changes: 2 additions & 1 deletion template/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name = "r2-explorer"
compatibility_date = "2024-11-06"
main = "src/index.ts"
compatibility_date = "2024-12-01"
assets = { directory = "node_modules/r2-explorer/dashboard", binding = "ASSETS", html_handling = "auto-trailing-slash", not_found_handling = "single-page-application" }

# Bind R2 Buckets to your application.
# Docs: https://r2explorer.dev/getting-started/add-r2-buckets/
Expand Down

0 comments on commit 992f27a

Please sign in to comment.