Skip to content

Commit ee42a13

Browse files
committed
[add] Field Cleaner utility
[optimize] remove Database Connection String for compatibility [optimize] upgrade to Koa Router 15 & other latest Upstream packages
1 parent 9ecd815 commit ee42a13

11 files changed

Lines changed: 830 additions & 830 deletions

File tree

.env.example

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
APP_SECRET = random_string
2-
DATABASE_URL = postgresql://your-account:your-password@your-region.pooler.supabase.com:5432/postgres
2+
3+
DATABASE_TYPE = postgres
4+
DATABASE_SSL = false
5+
DATABASE_HOST = localhost
6+
DATABASE_PORT = 5432
7+
DATABASE_USER = your-db-user
8+
DATABASE_PASSWORD = your-db-password
9+
DATABASE_NAME = your-db-name
310

411
GITHUB_PAT = # set by admin
512

.github/workflows/replace-repository-name.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ SourceName=$2
55
TargetOwner=$3
66
TargetName=$4
77

8-
sed -i "s/$SourceOwner\/$SourceName/$TargetOwner\/$TargetName/ig" $(grep -i $SourceOwner/$SourceName -rl .)
9-
sed -i "s/$SourceOwner/$TargetOwner/ig" $(grep -i $SourceOwner -rl .)
10-
sed -i "s/$SourceName/$TargetName/ig" $(grep -i $SourceName -rl .)
8+
sed -i "s/$SourceOwner\/$SourceName/$TargetOwner\/$TargetName/ig" \
9+
$(grep -i $SourceOwner/$SourceName -rl . --exclude-dir=.git --exclude-dir=node_modules)
10+
sed -i "s/$SourceOwner/$TargetOwner/ig" \
11+
$(grep -i $SourceOwner -rl . --exclude-dir=.git --exclude-dir=node_modules)
12+
sed -i "s/$SourceName/$TargetName/ig" \
13+
$(grep -i $SourceName -rl . --exclude-dir=.git --exclude-dir=node_modules)

ReadMe.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
## Best practice
3535

3636
1. Install GitHub apps in your organization or account:
37-
3837
1. [Probot settings][18]: set up Issue labels & Pull Request rules
3938
2. [PR badge][19]: set up Online [VS Code][20] editor entries in Pull Request description
4039

@@ -60,7 +59,7 @@
6059
| Name | Usage |
6160
| :------------------------: | :--------------------------: |
6261
| `APP_SECRET` | encrypt Password & Token |
63-
| `DATABASE_URL` | PostgreSQL connection string |
62+
| `DATABASE_*` | Database connection settings |
6463
| `SUPABASE_PROJECT_URL` | [Supabase][25] project URL |
6564
| `SUPABASE_ANON_KEY` | Supabase anon key |
6665
| `AWS_S3_END_POINT` | [AWS S3][26] endpoint URL |

package.json

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,66 +18,65 @@
1818
"node": ">=22"
1919
},
2020
"dependencies": {
21-
"@aws-sdk/client-s3": "^3.931.0",
22-
"@aws-sdk/s3-request-presigner": "^3.931.0",
21+
"@aws-sdk/client-s3": "^3.948.0",
22+
"@aws-sdk/s3-request-presigner": "^3.948.0",
2323
"@koa/cors": "^5.0.0",
2424
"@koa/multer": "^4.0.0",
25-
"@koa/router": "^14.0.0",
25+
"@koa/router": "^15.1.0",
2626
"@passwordless-id/webauthn": "^2.3.1",
27-
"@smithy/smithy-client": "^4.9.6",
28-
"@supabase/auth-js": "^2.81.1",
29-
"@supabase/supabase-js": "^2.81.1",
27+
"@smithy/smithy-client": "^4.9.10",
28+
"@supabase/auth-js": "^2.87.1",
29+
"@supabase/supabase-js": "^2.87.1",
3030
"class-transformer": "^0.5.1",
31-
"class-validator": "^0.14.2",
31+
"class-validator": "^0.14.3",
3232
"cross-env": "^10.1.0",
3333
"dotenv": "^17.2.3",
34-
"jsonwebtoken": "^9.0.2",
34+
"jsonwebtoken": "^9.0.3",
3535
"koa": "^3.1.1",
3636
"koa-bodyparser": "^4.4.1",
3737
"koa-jwt": "^4.0.4",
3838
"koa-logger": "^4.0.0",
3939
"koa-mount": "^4.2.0",
4040
"koa2-swagger-ui": "^5.12.0",
4141
"koagger": "^0.4.0",
42-
"marked": "^17.0.0",
42+
"marked": "^17.0.1",
4343
"mobx-github": "^0.6.2",
4444
"mobx-restful": "^2.1.4",
4545
"pg": "^8.16.3",
46-
"pg-connection-string": "^2.9.1",
4746
"reflect-metadata": "^0.2.2",
4847
"routing-controllers": "^0.11.3",
4948
"routing-controllers-openapi": "^5.0.0",
5049
"tslib": "^2.8.1",
51-
"typeorm": "^0.3.27",
50+
"typeorm": "^0.3.28",
5251
"undici": "^7.16.0",
5352
"web-utility": "^4.6.4"
5453
},
5554
"devDependencies": {
56-
"@eslint/js": "^9.39.1",
55+
"@eslint/js": "^9.39.2",
5756
"@octokit/openapi-types": "^27.0.0",
5857
"@types/eslint-config-prettier": "^6.11.3",
5958
"@types/jest": "^29.5.14",
6059
"@types/jsonwebtoken": "^9.0.10",
6160
"@types/koa": "^3.0.1",
6261
"@types/koa-logger": "^3.1.5",
63-
"@types/node": "^22.19.1",
64-
"better-sqlite3": "^12.4.1",
65-
"eslint": "^9.39.1",
62+
"@types/node": "^22.19.3",
63+
"better-sqlite3": "^12.5.0",
64+
"eslint": "^9.39.2",
6665
"eslint-config-prettier": "^10.1.8",
6766
"eslint-plugin-simple-import-sort": "^12.1.1",
6867
"globals": "^16.5.0",
6968
"husky": "^9.1.7",
7069
"jest": "^29.7.0",
7170
"jiti": "^2.6.1",
7271
"koajax": "^3.1.2",
73-
"lint-staged": "^16.2.6",
74-
"prettier": "^3.6.2",
75-
"start-server-and-test": "^2.1.2",
72+
"lint-staged": "^16.2.7",
73+
"prettier": "^3.7.4",
74+
"start-server-and-test": "^2.1.3",
7675
"swagger-typescript-api": "^13.2.16",
77-
"ts-jest": "^29.4.5",
76+
"ts-jest": "^29.4.6",
7877
"ts-node": "^10.9.2",
7978
"typescript": "~5.9.3",
80-
"typescript-eslint": "^8.46.4"
79+
"typescript-eslint": "^8.49.0"
8180
},
8281
"resolutions": {
8382
"reflect-metadata": "$reflect-metadata",

0 commit comments

Comments
 (0)