Skip to content

Commit

Permalink
Merge branch 'v4.0' into add-multer-for-fastify
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon authored Nov 27, 2024
2 parents 0cc59fb + 53a5b14 commit 8c0d38d
Show file tree
Hide file tree
Showing 1,771 changed files with 350,316 additions and 34,146 deletions.
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# These are supported funding model platforms

open_collective: nestia
github: [samchon]
15 changes: 13 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
version: 2
updates:
#######################################################
- package-ecosystem: 'npm'
directory: '/packages/test'
directory: '/packages/cli'
schedule:
interval: 'daily'
open-pull-requests-limit: 25
allow:
- dependency-name: typescript
#######################################################
- package-ecosystem: 'npm'
directory: 'test'
schedule:
interval: 'daily'
versioning-strategy: increase
Expand All @@ -15,6 +24,7 @@ updates:
- dependency-name: ts-node
- dependency-name: ts-patch
- dependency-name: typescript
- dependency-name: typescript-transform-paths
groups:
NestJS:
patterns:
Expand All @@ -29,4 +39,5 @@ updates:
patterns:
- "ts-node"
- "ts-patch"
- "typescript"
- "typescript"
- "typescript-transform-paths"
13 changes: 3 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: build
on:
push:
paths:
- 'packages/*/src/**'
- 'packages/*/package.json'
- 'packages/{core,fetcher,sdk}/src/**'
- 'packages/{core,fetcher,sdk}/package.json'
- 'test/**'
- 'test/package.json'
pull_request:
Expand All @@ -21,14 +21,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: pnpm/action-setup@v2
with:
version: 8

- name: test
working-directory: ./test
run: npm start

- name: migrate
working-directory: ./packages/migrate
run: pnpm install && npm run build && npm run test
run: npm start
27 changes: 27 additions & 0 deletions .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build
on:
push:
paths:
- 'packages/migrate/assets/input/*.json'
- 'packages/migrate/src/**'
- 'packages/migrate/test/**'
- 'packages/migrate/package.json'
pull_request:
paths:
- 'packages/*/src/**'
- 'packages/*/package.json'
- 'test/**'
- 'test/package.json'

jobs:
Ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x

- name: test
working-directory: ./test
run: npm start
3 changes: 0 additions & 3 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Root Install
run: npm run package:tgz
- name: Build
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ lib/
node_modules/

packages/*/*.tgz
packages/*/docs
package-lock.json
pnpm-lock.yaml
*.log
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ Nestia is a set of helper libraries for NestJS, supporting below features:
- SDK library generator for clients
- Mockup Simulator for client applications
- Automatic E2E test functions generator
- `@nestia/e2e`
- Test program utilizng e2e test functions
- Benchmark program using e2e test functions
- `@nestia/e2e`: Test program utilizing e2e test functions
- `@nestia/benchmark`: Benchmark program using e2e test functions
- `@nestia/migrate`: OpenAPI generator from Swagger to NestJS/SDK
- `@nestia/editor`: Swagger-UI with Online TypeScript Editor
- `nestia`: Just CLI (command line interface) tool
Expand Down
13 changes: 7 additions & 6 deletions benchmark/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "@nestia/benchmark",
"private": true,
"name": "@samchon/nestia-benchmark",
"version": "0.1.0",
"description": "Benchmark Nestia",
"main": "bin/index.js",
"main": "lib/index.js",
"scripts": {
"build": "rimraf bin && tsc",
"generate": "ts-node src/generate && npm run prettier && npm run build",
Expand All @@ -25,7 +26,7 @@
},
"homepage": "https://nestia.io",
"dependencies": {
"@nestia/core": "^3.0.5",
"@nestia/core": "^3.10.0-dev.20240803-2",
"@nestjs/common": "^10.3.7",
"@nestjs/core": "^10.3.7",
"@nestjs/platform-express": "^10.3.7",
Expand All @@ -39,9 +40,9 @@
"physical-cpu-count": "^2.0.0",
"randexp": "^0.5.3",
"reflect-metadata": "^0.2.2",
"tgrid": "^1.0.2",
"tgrid": "^1.0.3",
"tstl": "^3.0.0",
"typia": "^6.3.1"
"typia": "^7.0.0-dev.20241027-2"
},
"devDependencies": {
"@types/autocannon": "^7.9.0",
Expand All @@ -52,6 +53,6 @@
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"ts-patch": "^3.2.1",
"typescript": "^5.4.5"
"typescript": "5.5.4"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
> - Memory: 31,954 MB
> - OS: win32
> - NodeJS version: v20.10.0
> - nestia version: v3.0.5
> - nestia version: v3.10.0-dev.20240803-2

## assert
![assert benchmark](images/assert.svg)

Types | nestia-express | nestia-fastify | NestJS-express | NestJS-fastify
-------|------|------|------|------
object (simple) | 54 | 84 | 6.56 | 7.45
object (hierarchical) | 133 | 168 | 11 | 11
object (recursive) | 136 | 162 | 11 | 10
object (union, explicit) | 82 | 106 | 12 | 12
array (simple) | 128 | 159 | 25 | 28
array (hierarchical) | 95 | 109 | 13 | 22
array (recursive) | 113 | 140 | 8.56 | 8.57
array (union, explicit) | 144 | 157 | 19 | 30
object (simple) | 52 | 82 | 6.60 | 7.31
object (hierarchical) | 125 | 164 | 11 | 11
object (recursive) | 133 | 154 | 10 | 10
object (union, explicit) | 81 | 101 | 12 | 12
array (simple) | 109 | 143 | 24 | 26
array (hierarchical) | 111 | 148 | 22 | 23
array (recursive) | 119 | 141 | 8.63 | 8.56
array (union, explicit) | 151 | 157 | 31 | 31

> Unit: Megabytes/sec
Expand All @@ -30,14 +30,14 @@

Types | nestia-express | nestia-fastify | NestJS-express | NestJS-fastify
-------|------|------|------|------
object (simple) | 60 | 102 | 15 | 16
object (hierarchical) | 162 | 198 | 28 | 29
object (recursive) | 170 | 209 | 27 | 27
object (union, explicit) | 130 | 149 | 12 | 12
array (simple) | 150 | 156 | 26 | 28
array (hierarchical) | 167 | 120 | 22 | 23
array (recursive) | 131 | 136 | 22 | 22
array (union, explicit) | 140 | 140 | 29 | 30
object (simple) | 60 | 102 | 15 | 17
object (hierarchical) | 160 | 195 | 29 | 30
object (recursive) | 172 | 209 | 27 | 27
object (union, explicit) | 135 | 151 | 13 | 12
array (simple) | 147 | 170 | 27 | 26
array (hierarchical) | 174 | 171 | 23 | 23
array (recursive) | 135 | 144 | 23 | 23
array (union, explicit) | 144 | 156 | 29 | 30

> Unit: Megabytes/sec
Expand All @@ -49,14 +49,14 @@

Types | nestia-express | nestia-fastify | NestJS-express | NestJS-fastify
-------|------|------|------|------
object (simple) | 71 | 96 | 10 | 13
object (hierarchical) | 151 | 175 | 20 | 21
object (recursive) | 155 | 176 | 19 | 19
object (union, explicit) | 101 | 112 | 12 | 12
array (simple) | 136 | 143 | 25 | 26
array (hierarchical) | 106 | 134 | 20 | 22
array (recursive) | 133 | 130 | 16 | 16
array (union, explicit) | 143 | 145 | 31 | 31
object (simple) | 70 | 96 | 12 | 13
object (hierarchical) | 152 | 175 | 20 | 21
object (recursive) | 158 | 174 | 19 | 20
object (union, explicit) | 103 | 114 | 12 | 13
array (simple) | 139 | 158 | 26 | 27
array (hierarchical) | 152 | 158 | 20 | 22
array (recursive) | 138 | 141 | 16 | 16
array (union, explicit) | 154 | 154 | 30 | 31

> Unit: Megabytes/sec
Expand All @@ -66,4 +66,4 @@



Total elapsed time: 1,753,592 ms
Total elapsed time: 1,783,259 ms
Loading

0 comments on commit 8c0d38d

Please sign in to comment.