Skip to content

Commit

Permalink
Feat/updates for v5 (#184)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Gürgün Dayıoğlu <[email protected]>
  • Loading branch information
nrayburn-tech and gurgunday authored Mar 29, 2024
1 parent 9ed49d4 commit 848205f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/
3 changes: 3 additions & 0 deletions .taprc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
disable-coverage: true
files:
- test/**/*.test.js
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion test/multipart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 848205f

Please sign in to comment.