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: introduce cloudflare d1 + r2 + wokrer #60

Merged
merged 67 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
b3c0f7a
feat: command
gronxb Jan 20, 2025
d3f7c4f
Merge branch 'main' into feature/cloudflare
gronxb Jan 21, 2025
2081721
feat: d2 + r2 list
gronxb Jan 21, 2025
072548a
Merge branch 'main' into feature/cloudflare
gronxb Jan 22, 2025
e5a6954
fix: folder
gronxb Jan 22, 2025
60fe8f1
feat: make r2 + d1
gronxb Jan 22, 2025
e0c2ca8
fix: move deps
gronxb Jan 23, 2025
68e7645
chore: init proj
gronxb Jan 23, 2025
f8792b0
Merge branch 'main' into feature/cloudflare
gronxb Jan 23, 2025
effa7b3
feat: unused script
gronxb Jan 23, 2025
df5b453
fix: chorE
gronxb Jan 23, 2025
0f57f54
Merge branch 'main' into feature/cloudflare
gronxb Jan 26, 2025
9d3ee22
feat: init worker
gronxb Jan 27, 2025
2d0d3fb
Merge branch 'main' into feature/cloudflare
gronxb Jan 27, 2025
0d3a3f0
feat: d1 migrations
gronxb Jan 27, 2025
2e0bed6
fix: rename file
gronxb Jan 28, 2025
67c44f1
feat(cloudflare): d1Database
gronxb Jan 29, 2025
867837b
fix: lint
gronxb Jan 29, 2025
59c4082
fix: cloudflare
gronxb Jan 29, 2025
413f7f0
fix: todo
gronxb Jan 29, 2025
3c6f6f1
fix: test
gronxb Jan 29, 2025
e7a055c
fix: comment
gronxb Jan 29, 2025
82c3c35
refactor: move
gronxb Jan 29, 2025
00f7d48
fix: folder
gronxb Jan 29, 2025
d0b8052
feat: migration cloudflare api
gronxb Jan 29, 2025
1fb9d49
feat: r2 storage
gronxb Jan 29, 2025
88dc7e6
fix: cf
gronxb Jan 29, 2025
b778377
feat(r2Storage): use wrangler
gronxb Jan 30, 2025
dedbbcc
feat: init get cloudflare token
gronxb Jan 31, 2025
061bc6e
Merge branch 'main' into feature/cloudflare
gronxb Jan 31, 2025
773b4db
get: cloudflare token
gronxb Feb 1, 2025
1b9bc52
chore: .gitignore
gronxb Feb 1, 2025
dc41a66
fix: semver
gronxb Feb 1, 2025
b6de9be
feat: cloudflare worket end
gronxb Feb 1, 2025
5eb120b
feat: worker get updater info
gronxb Feb 2, 2025
a956820
feat: sep semver satisfies
gronxb Feb 2, 2025
917b917
fix: semver
gronxb Feb 2, 2025
0639e25
feat: filter compatible app versions
gronxb Feb 2, 2025
c625c83
fix: binding
gronxb Feb 2, 2025
792aaa4
feat: /api/check-update
gronxb Feb 2, 2025
5ecfdec
fix: docs
gronxb Feb 2, 2025
67afea4
feat: init command
gronxb Feb 2, 2025
f3d0547
fix: process
gronxb Feb 2, 2025
977861f
feat: worker deploy
gronxb Feb 2, 2025
4d2ceab
fix: link
gronxb Feb 2, 2025
d0686c0
chore(release): publish 0.6.1-rc.0
gronxb Feb 2, 2025
83d2302
fix: files
gronxb Feb 2, 2025
957ba79
chore(release): publish 0.6.1-rc.1
gronxb Feb 2, 2025
55eb38b
fix: package.json
gronxb Feb 2, 2025
6dddd48
fix: build worker
gronxb Feb 2, 2025
a2a31fe
chore(release): publish 0.6.1-rc.2
gronxb Feb 2, 2025
b7c68d8
fix: dist
gronxb Feb 2, 2025
6d1f0cd
chore(release): publish 0.6.1-rc.3
gronxb Feb 2, 2025
ef4b70f
fix: files
gronxb Feb 2, 2025
7756bb6
fix: name
gronxb Feb 2, 2025
24d6bd6
feat: using tmp dir
gronxb Feb 2, 2025
a6319f6
feat: worker name
gronxb Feb 2, 2025
e1b5a82
chore(release): publish 0.6.1-rc.4
gronxb Feb 2, 2025
3d2b83e
fix: available db
gronxb Feb 2, 2025
770ddb9
chore(release): publish 0.6.1-rc.5
gronxb Feb 2, 2025
406e200
fix: config toml
gronxb Feb 2, 2025
bc1dc5d
chore(release): publish 0.6.1-rc.6
gronxb Feb 2, 2025
0ef7f0a
fix: unused file
gronxb Feb 2, 2025
53d7bf7
fix: worker name
gronxb Feb 2, 2025
8d0a173
fix: types
gronxb Feb 2, 2025
0fac4de
fix: unused code
gronxb Feb 2, 2025
b796067
feat: keywords
gronxb Feb 2, 2025
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
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,8 @@ docs/.vitepress/cache

bundle.zip

generated/
generated/

.wrangler/

.hot-updater/
116 changes: 116 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,119 @@
## 0.6.1-rc.6 (2025-02-02)

### 🩹 Fixes

- config toml ([406e200](https://github.com/gronxb/hot-updater/commit/406e200))

### ❤️ Thank You

- gronxb

## 0.6.1-rc.5 (2025-02-02)

### 🩹 Fixes

- available db ([3d2b83e](https://github.com/gronxb/hot-updater/commit/3d2b83e))

### ❤️ Thank You

- gronxb

## 0.6.1-rc.4 (2025-02-02)

### 🚀 Features

- using tmp dir ([24d6bd6](https://github.com/gronxb/hot-updater/commit/24d6bd6))
- worker name ([a6319f6](https://github.com/gronxb/hot-updater/commit/a6319f6))

### 🩹 Fixes

- files ([ef4b70f](https://github.com/gronxb/hot-updater/commit/ef4b70f))
- name ([7756bb6](https://github.com/gronxb/hot-updater/commit/7756bb6))

### ❤️ Thank You

- gronxb

## 0.6.1-rc.3 (2025-02-02)

### 🩹 Fixes

- dist ([b7c68d8](https://github.com/gronxb/hot-updater/commit/b7c68d8))

### ❤️ Thank You

- gronxb

## 0.6.1-rc.2 (2025-02-02)

### 🩹 Fixes

- package.json ([55eb38b](https://github.com/gronxb/hot-updater/commit/55eb38b))
- build worker ([6dddd48](https://github.com/gronxb/hot-updater/commit/6dddd48))

### ❤️ Thank You

- gronxb

## 0.6.1-rc.1 (2025-02-02)

### 🩹 Fixes

- files ([83d2302](https://github.com/gronxb/hot-updater/commit/83d2302))

### ❤️ Thank You

- gronxb

## 0.6.1-rc.0 (2025-02-02)

### 🚀 Features

- command ([b3c0f7a](https://github.com/gronxb/hot-updater/commit/b3c0f7a))
- d2 + r2 list ([2081721](https://github.com/gronxb/hot-updater/commit/2081721))
- make r2 + d1 ([60fe8f1](https://github.com/gronxb/hot-updater/commit/60fe8f1))
- unused script ([effa7b3](https://github.com/gronxb/hot-updater/commit/effa7b3))
- init worker ([9d3ee22](https://github.com/gronxb/hot-updater/commit/9d3ee22))
- d1 migrations ([0d3a3f0](https://github.com/gronxb/hot-updater/commit/0d3a3f0))
- migration cloudflare api ([d0b8052](https://github.com/gronxb/hot-updater/commit/d0b8052))
- r2 storage ([1fb9d49](https://github.com/gronxb/hot-updater/commit/1fb9d49))
- init get cloudflare token ([dedbbcc](https://github.com/gronxb/hot-updater/commit/dedbbcc))
- cloudflare worket end ([b6de9be](https://github.com/gronxb/hot-updater/commit/b6de9be))
- worker get updater info ([5eb120b](https://github.com/gronxb/hot-updater/commit/5eb120b))
- sep semver satisfies ([a956820](https://github.com/gronxb/hot-updater/commit/a956820))
- filter compatible app versions ([0639e25](https://github.com/gronxb/hot-updater/commit/0639e25))
- /api/check-update ([792aaa4](https://github.com/gronxb/hot-updater/commit/792aaa4))
- init command ([67afea4](https://github.com/gronxb/hot-updater/commit/67afea4))
- worker deploy ([977861f](https://github.com/gronxb/hot-updater/commit/977861f))
- **aws:** extendable `s3Database` config ([#74](https://github.com/gronxb/hot-updater/pull/74))
- **cloudflare:** d1Database ([67c44f1](https://github.com/gronxb/hot-updater/commit/67c44f1))
- **r2Storage:** use wrangler ([b778377](https://github.com/gronxb/hot-updater/commit/b778377))

### 🩹 Fixes

- folder ([e5a6954](https://github.com/gronxb/hot-updater/commit/e5a6954))
- move deps ([e0c2ca8](https://github.com/gronxb/hot-updater/commit/e0c2ca8))
- chorE ([df5b453](https://github.com/gronxb/hot-updater/commit/df5b453))
- rename file ([2e0bed6](https://github.com/gronxb/hot-updater/commit/2e0bed6))
- lint ([867837b](https://github.com/gronxb/hot-updater/commit/867837b))
- cloudflare ([59c4082](https://github.com/gronxb/hot-updater/commit/59c4082))
- todo ([413f7f0](https://github.com/gronxb/hot-updater/commit/413f7f0))
- test ([3c6f6f1](https://github.com/gronxb/hot-updater/commit/3c6f6f1))
- comment ([e7a055c](https://github.com/gronxb/hot-updater/commit/e7a055c))
- folder ([00f7d48](https://github.com/gronxb/hot-updater/commit/00f7d48))
- cf ([88dc7e6](https://github.com/gronxb/hot-updater/commit/88dc7e6))
- semver ([dc41a66](https://github.com/gronxb/hot-updater/commit/dc41a66))
- semver ([917b917](https://github.com/gronxb/hot-updater/commit/917b917))
- binding ([c625c83](https://github.com/gronxb/hot-updater/commit/c625c83))
- docs ([5ecfdec](https://github.com/gronxb/hot-updater/commit/5ecfdec))
- process ([f3d0547](https://github.com/gronxb/hot-updater/commit/f3d0547))
- link ([4d2ceab](https://github.com/gronxb/hot-updater/commit/4d2ceab))

### ❤️ Thank You

- gronxb
- Sungyu Kang

## 0.6.0 (2025-01-23)

### 🚀 Features
Expand Down
1 change: 0 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"**/dist/**",
"**/build/**",
"node_modules/**",

"**/*.js"
]
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions docs/docs/guide/console.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ For security reasons, only localhost server is supported at the moment.
<video src={normalizeImagePath("/guide/console/console.mov")} controls autoPlay loop muted />


## Configuration
## Configuration (Optional)

This is a console configuration that does not affect the bundle.

You can configure additional console settings in the `hot-updater.config.ts` file.

The `storage` and `database` plugins must be exist.
Expand All @@ -30,7 +33,6 @@ import { defineConfig } from "hot-updater";

export default defineConfig({
console: { // [!code hl]
gitUrl: "https://github.com/gronxb/hot-updater", // [!code hl]
port: 3000, // [!code hl]
}, // [!code hl]
build: ...,
Expand Down
10 changes: 5 additions & 5 deletions examples/v0.71.19/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hot-updater/example-react-native-v71",
"version": "0.6.0",
"version": "0.6.1-rc.6",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand All @@ -10,16 +10,16 @@
"test": "jest"
},
"dependencies": {
"@hot-updater/react-native": "0.6.0",
"@hot-updater/react-native": "0.6.1-rc.6",
"react": "18.2.0",
"react-native": "0.71.19"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@hot-updater/metro": "0.6.0",
"@hot-updater/supabase": "0.6.0",
"@hot-updater/metro": "0.6.1-rc.6",
"@hot-updater/supabase": "0.6.1-rc.6",
"@react-native-community/cli-platform-android": "10.2.0",
"@react-native-community/cli-platform-ios": "10.2.5",
"@react-native-community/eslint-config": "^3.2.0",
Expand All @@ -32,7 +32,7 @@
"babel-jest": "^29.2.1",
"dotenv": "^16.4.5",
"eslint": "^8.19.0",
"hot-updater": "0.6.0",
"hot-updater": "0.6.1-rc.6",
"invariant": "^2.2.4",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.73.10",
Expand Down
12 changes: 6 additions & 6 deletions examples/v0.74.1/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hot-updater/example-react-native-v74",
"version": "0.6.0",
"version": "0.6.1-rc.6",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand All @@ -15,7 +15,7 @@
"test": "jest"
},
"dependencies": {
"@hot-updater/react-native": "0.6.0",
"@hot-updater/react-native": "0.6.1-rc.6",
"react": "18.2.0",
"react-native": "0.74.1"
},
Expand All @@ -24,9 +24,9 @@
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.24.5",
"@callstack/repack": "^4.0.0",
"@hot-updater/aws": "0.6.0",
"@hot-updater/metro": "0.6.0",
"@hot-updater/supabase": "0.6.0",
"@hot-updater/aws": "0.6.1-rc.6",
"@hot-updater/metro": "0.6.1-rc.6",
"@hot-updater/supabase": "0.6.1-rc.6",
"@react-native-community/cli-platform-android": "13.6.6",
"@react-native/babel-preset": "0.74.83",
"@react-native/eslint-config": "0.74.83",
Expand All @@ -41,7 +41,7 @@
"babel-loader": "^9.1.3",
"dotenv": "^16.4.5",
"eslint": "^8.19.0",
"hot-updater": "0.6.0",
"hot-updater": "0.6.1-rc.6",
"invariant": "^2.2.4",
"jest": "^29.6.3",
"prettier": "2.8.8",
Expand Down
10 changes: 5 additions & 5 deletions examples/v0.76.1-new-arch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hot-updater/example-react-native-v76",
"version": "0.6.0",
"version": "0.6.1-rc.6",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand All @@ -10,16 +10,16 @@
"test": "jest"
},
"dependencies": {
"@hot-updater/react-native": "0.6.0",
"@hot-updater/react-native": "0.6.1-rc.6",
"react": "18.3.1",
"react-native": "0.76.1"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@hot-updater/metro": "0.6.0",
"@hot-updater/supabase": "0.6.0",
"@hot-updater/metro": "0.6.1-rc.6",
"@hot-updater/supabase": "0.6.1-rc.6",
"@react-native-community/cli": "15.0.0",
"@react-native-community/cli-platform-android": "15.0.0",
"@react-native-community/cli-platform-ios": "15.0.0",
Expand All @@ -36,7 +36,7 @@
"babel-jest": "^29.6.3",
"dotenv": "^16.4.5",
"eslint": "^8.19.0",
"hot-updater": "0.6.0",
"hot-updater": "0.6.1-rc.6",
"invariant": "^2.2.4",
"jest": "^29.6.3",
"prettier": "2.8.8",
Expand Down
16 changes: 10 additions & 6 deletions examples/v0.77.0/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hot-updater/example-react-native-v77",
"version": "0.1.0",
"version": "0.6.1-rc.6",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand All @@ -10,16 +10,18 @@
"test": "jest"
},
"dependencies": {
"@hot-updater/react-native": "0.6.0",
"@hot-updater/react-native": "0.6.1-rc.6",
"react": "18.3.1",
"react-native": "0.77.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@hot-updater/metro": "0.6.0",
"@hot-updater/supabase": "0.6.0",
"@hot-updater/aws": "0.6.1-rc.6",
"@hot-updater/cloudflare": "0.6.0",
"@hot-updater/metro": "0.6.1-rc.6",
"@hot-updater/supabase": "0.6.1-rc.6",
"@react-native-community/cli": "15.0.1",
"@react-native-community/cli-platform-android": "15.0.1",
"@react-native-community/cli-platform-ios": "15.0.1",
Expand All @@ -31,16 +33,18 @@
"@rnx-kit/metro-config": "^2.0.1",
"@rnx-kit/metro-resolver-symlinks": "^0.2.1",
"@types/jest": "^29.5.13",
"@types/node": "^22.13.0",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"dotenv": "^16.4.5",
"eslint": "^8.19.0",
"hot-updater": "0.6.0",
"hot-updater": "0.6.1-rc.6",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-native-dotenv": "^3.4.11",
"react-test-renderer": "18.3.1",
"typescript": "5.0.4"
"typescript": "5.0.4",
"wrangler": "^3.105.1"
},
"engines": {
"node": ">=18"
Expand Down
4 changes: 1 addition & 3 deletions examples/v0.77.0/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": "@react-native/typescript-config/tsconfig.json",
"compilerOptions": {
"types": ["./env.d.ts"]
}
"include": ["./env.d.ts", "src/**/*"]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@nx/js": "^20.3.0",
"@rslib/core": "^0.2.2",
"@rslib/core": "^0.4.0",
"nx": "20.3.0",
"rimraf": "^5.0.7",
"tsup": "^8.3.6",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
Expand All @@ -37,6 +38,7 @@
"@hot-updater/react-native": "workspace:*",
"@hot-updater/postgres": "workspace:*",
"@hot-updater/supabase": "workspace:*",
"@hot-updater/cloudflare": "workspace:*",
"@hot-updater/js": "workspace:*"
}
},
Expand Down
6 changes: 3 additions & 3 deletions packages/console/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hot-updater/console",
"type": "module",
"version": "0.6.0",
"version": "0.6.1-rc.6",
"files": [
"dist",
"package.json"
Expand Down Expand Up @@ -57,7 +57,7 @@
"valibot": "^0.42.1"
},
"dependencies": {
"@hot-updater/core": "0.6.0",
"@hot-updater/plugin-core": "0.6.0"
"@hot-updater/core": "0.6.1-rc.6",
"@hot-updater/plugin-core": "0.6.1-rc.6"
}
}
Loading