From 848205fd517d69fc7ba269ef4da65b6fd226eafd Mon Sep 17 00:00:00 2001 From: Nicholas Rayburn <52075362+nrayburn-tech@users.noreply.github.com> Date: Fri, 29 Mar 2024 11:40:52 -0500 Subject: [PATCH 1/4] Feat/updates for v5 (#184) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Pin tap version Update dependabot to ignore tap major versions * Update ci workflow for fastify@5 * Sync gitignore with fastify/skeleton * Update workflows for fastify v5 * Remove unnecessary console log * Update all dependencies Migrate tap 16 to 18 * Move tap settings into .taprc config file --------- Signed-off-by: Gürgün Dayıoğlu Co-authored-by: Gürgün Dayıoğlu --- .github/workflows/ci.yml | 2 +- .gitignore | 10 +++++----- .taprc | 3 +++ package.json | 16 ++++++++-------- test/multipart.test.js | 1 - 5 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 .taprc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0610c55..582175c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.1.0 with: lint: true license-check: true diff --git a/.gitignore b/.gitignore index 2b6aed4..143b73f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,9 @@ lerna-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json +# Clinic +.clinic + # Runtime data pids *.pid @@ -135,18 +138,15 @@ dist # macOS files .DS_Store -# Clinic -.clinic - # lock files -bun.lockb package-lock.json pnpm-lock.yaml yarn.lock +bun.lockb # editor files .vscode .idea -#tap files +# tap files .tap/ diff --git a/.taprc b/.taprc new file mode 100644 index 0000000..343ddd5 --- /dev/null +++ b/.taprc @@ -0,0 +1,3 @@ +disable-coverage: true +files: + - test/**/*.test.js diff --git a/package.json b/package.json index f224c22..becb587 100644 --- a/package.json +++ b/package.json @@ -33,34 +33,34 @@ "scripts": { "lint": "eslint .", "test": "npm run test:unit && npm run test:typescript", - "test:unit": "tap -J -R specy --no-coverage test/*test.js", + "test:unit": "tap", "test:typescript": "tsd", "performance": "npm run lint && node performanceTest/test", "preversion": "npm run test && git push", "postversion": "git push && git push --tags" }, "devDependencies": { - "@fastify/multipart": "8.2.0", + "@fastify/multipart": "8.1.0", "@fastify/pre-commit": "^2.1.0", - "@h4ad/serverless-adapter": "4.2.1", "@types/aws-lambda": "8.10.136", + "aws-lambda": "^1.0.7", "aws-serverless-express": "^3.4.0", "aws-serverless-fastify": "^3.0.6", "benchmark": "^2.1.4", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-n": "^16.6.2", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-standard": "^5.0.0", - "fastify": "^4.26.0", + "fastify": "^4.26.2", "serverless-http": "^3.2.0", - "tap": "^16.3.9", - "tsd": "^0.30.4" + "tap": "18.7.1", + "tsd": "^0.30.7" }, "overrides": { "aws-serverless-fastify": { - "fastify": "^4.26.0" + "fastify": "^4.26.2" } }, "publishConfig": { diff --git a/test/multipart.test.js b/test/multipart.test.js index a1810dd..95a36df 100644 --- a/test/multipart.test.js +++ b/test/multipart.test.js @@ -93,7 +93,6 @@ test('should parse the multipart form-data successfully given utf8 encoded form app.register(multipart, { attachFieldsToBody: true }) app.post('/test', async (request, reply) => { - console.log(request.body) t.equal(request.body.html.fieldname, 'html') t.equal(request.body.html.encoding, '7bit') t.equal(request.body.html.mimetype, 'text/plain') From 51cbbe5067088ba88c454d47413e5233374e3ef9 Mon Sep 17 00:00:00 2001 From: Nicholas Rayburn <52075362+nrayburn-tech@users.noreply.github.com> Date: Fri, 29 Mar 2024 11:40:52 -0500 Subject: [PATCH 2/4] Feat/updates for v5 (#184) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Pin tap version Update dependabot to ignore tap major versions * Update ci workflow for fastify@5 * Sync gitignore with fastify/skeleton * Update workflows for fastify v5 * Remove unnecessary console log * Update all dependencies Migrate tap 16 to 18 * Move tap settings into .taprc config file --------- Signed-off-by: Gürgün Dayıoğlu Co-authored-by: Gürgün Dayıoğlu --- .github/workflows/ci.yml | 2 +- .gitignore | 10 +++++----- .taprc | 3 +++ package.json | 14 +++++++------- test/multipart.test.js | 1 - 5 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 .taprc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0610c55..582175c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.1.0 with: lint: true license-check: true diff --git a/.gitignore b/.gitignore index 2b6aed4..143b73f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,9 @@ lerna-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json +# Clinic +.clinic + # Runtime data pids *.pid @@ -135,18 +138,15 @@ dist # macOS files .DS_Store -# Clinic -.clinic - # lock files -bun.lockb package-lock.json pnpm-lock.yaml yarn.lock +bun.lockb # editor files .vscode .idea -#tap files +# tap files .tap/ diff --git a/.taprc b/.taprc new file mode 100644 index 0000000..343ddd5 --- /dev/null +++ b/.taprc @@ -0,0 +1,3 @@ +disable-coverage: true +files: + - test/**/*.test.js diff --git a/package.json b/package.json index 9473091..ca6a0eb 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "scripts": { "lint": "eslint .", "test": "npm run test:unit && npm run test:typescript", - "test:unit": "tap -J -R specy --no-coverage test/*test.js", + "test:unit": "tap", "test:typescript": "tsd", "performance": "npm run lint && node performanceTest/test", "preversion": "npm run test && git push", @@ -42,25 +42,25 @@ "devDependencies": { "@fastify/multipart": "8.3.0", "@fastify/pre-commit": "^2.1.0", - "@h4ad/serverless-adapter": "4.2.1", - "@types/aws-lambda": "8.10.140", + "@types/aws-lambda": "8.10.136", + "aws-lambda": "^1.0.7", "aws-serverless-express": "^3.4.0", "aws-serverless-fastify": "^3.0.6", "benchmark": "^2.1.4", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-n": "^16.6.2", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-standard": "^5.0.0", - "fastify": "^4.26.0", + "fastify": "^4.26.2", "serverless-http": "^3.2.0", - "tap": "^16.3.9", + "tap": "18.7.1", "tsd": "^0.31.0" }, "overrides": { "aws-serverless-fastify": { - "fastify": "^4.26.0" + "fastify": "^4.26.2" } }, "publishConfig": { diff --git a/test/multipart.test.js b/test/multipart.test.js index a1810dd..95a36df 100644 --- a/test/multipart.test.js +++ b/test/multipart.test.js @@ -93,7 +93,6 @@ test('should parse the multipart form-data successfully given utf8 encoded form app.register(multipart, { attachFieldsToBody: true }) app.post('/test', async (request, reply) => { - console.log(request.body) t.equal(request.body.html.fieldname, 'html') t.equal(request.body.html.encoding, '7bit') t.equal(request.body.html.mimetype, 'text/plain') From fa198109770c943dff140371ab265049a03ccc42 Mon Sep 17 00:00:00 2001 From: James Sumners Date: Wed, 17 Jul 2024 07:23:48 -0400 Subject: [PATCH 3/4] update fastify deps --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ca6a0eb..2193cdb 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "postversion": "git push && git push --tags" }, "devDependencies": { - "@fastify/multipart": "8.3.0", + "@fastify/multipart": "^9.0.0-pre.fv5.1", "@fastify/pre-commit": "^2.1.0", "@types/aws-lambda": "8.10.136", "aws-lambda": "^1.0.7", @@ -53,14 +53,14 @@ "eslint-plugin-n": "^16.6.2", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-standard": "^5.0.0", - "fastify": "^4.26.2", + "fastify": "^5.0.0-alpha.3", "serverless-http": "^3.2.0", "tap": "18.7.1", "tsd": "^0.31.0" }, "overrides": { "aws-serverless-fastify": { - "fastify": "^4.26.2" + "fastify": "^5.0.0-alpha.3" } }, "publishConfig": { From 4c2dc0d25900e514d180323ea1d4a7af28f34ab8 Mon Sep 17 00:00:00 2001 From: Nicholas Rayburn <52075362+nrayburn-tech@users.noreply.github.com> Date: Fri, 29 Mar 2024 11:40:52 -0500 Subject: [PATCH 4/4] Feat/updates for v5 (#184) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Pin tap version Update dependabot to ignore tap major versions * Update ci workflow for fastify@5 * Sync gitignore with fastify/skeleton * Update workflows for fastify v5 * Remove unnecessary console log * Update all dependencies Migrate tap 16 to 18 * Move tap settings into .taprc config file --------- Signed-off-by: Gürgün Dayıoğlu Co-authored-by: Gürgün Dayıoğlu --- .github/workflows/ci.yml | 2 +- .gitignore | 10 +++++----- .taprc | 3 +++ package.json | 10 +++++----- test/multipart.test.js | 1 - 5 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 .taprc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0610c55..582175c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.1.0 with: lint: true license-check: true diff --git a/.gitignore b/.gitignore index 2b6aed4..143b73f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,9 @@ lerna-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json +# Clinic +.clinic + # Runtime data pids *.pid @@ -135,18 +138,15 @@ dist # macOS files .DS_Store -# Clinic -.clinic - # lock files -bun.lockb package-lock.json pnpm-lock.yaml yarn.lock +bun.lockb # editor files .vscode .idea -#tap files +# tap files .tap/ diff --git a/.taprc b/.taprc new file mode 100644 index 0000000..343ddd5 --- /dev/null +++ b/.taprc @@ -0,0 +1,3 @@ +disable-coverage: true +files: + - test/**/*.test.js diff --git a/package.json b/package.json index c95b5a3..ed48247 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "scripts": { "lint": "eslint .", "test": "npm run test:unit && npm run test:typescript", - "test:unit": "tap -J -R specy --no-coverage test/*test.js", + "test:unit": "tap", "test:typescript": "tsd", "performance": "npm run lint && node performanceTest/test", "preversion": "npm run test && git push", @@ -47,20 +47,20 @@ "aws-serverless-express": "^3.4.0", "aws-serverless-fastify": "^3.0.6", "benchmark": "^2.1.4", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-n": "^16.6.2", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-standard": "^5.0.0", - "fastify": "^4.26.0", + "fastify": "^4.26.2", "serverless-http": "^3.2.0", - "tap": "^16.3.9", + "tap": "18.7.1", "tsd": "^0.31.0" }, "overrides": { "aws-serverless-fastify": { - "fastify": "^4.26.0" + "fastify": "^4.26.2" } }, "publishConfig": { diff --git a/test/multipart.test.js b/test/multipart.test.js index a1810dd..95a36df 100644 --- a/test/multipart.test.js +++ b/test/multipart.test.js @@ -93,7 +93,6 @@ test('should parse the multipart form-data successfully given utf8 encoded form app.register(multipart, { attachFieldsToBody: true }) app.post('/test', async (request, reply) => { - console.log(request.body) t.equal(request.body.html.fieldname, 'html') t.equal(request.body.html.encoding, '7bit') t.equal(request.body.html.mimetype, 'text/plain')