Skip to content

Commit

Permalink
feat(node): update app generator for fastify to the next major v5 (#2…
Browse files Browse the repository at this point in the history
…9589)

## Current Behavior
`npx create-nx-workspace`, when fastify is chosen, generates fastify 4
boilerplate

## Expected Behavior
fastify bumped their major version, and many latest plugins require v5
(e.g. [cors](https://github.com/fastify/fastify-cors))

## Related Issue(s)
no

- the combination of versions works on my setup
- the combinations of versions is the latest at the moment

---------

Co-authored-by: Colum Ferry <[email protected]>
  • Loading branch information
dearlordylord and Coly010 authored Jan 27, 2025
1 parent 2c60795 commit 1f69dce
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
21 changes: 21 additions & 0 deletions packages/node/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,27 @@
"alwaysAddToPackageJson": false
}
}
},
"20.4.0": {
"version": "20.4.0-beta.3",
"packages": {
"fastify": {
"version": "~5.2.1",
"alwaysAddToPackageJson": false
},
"fastify-plugin": {
"version": "~5.0.1",
"alwaysAddToPackageJson": false
},
"@fastify/autoload": {
"version": "~6.0.3",
"alwaysAddToPackageJson": false
},
"@fastify/sensible": {
"version": "~6.0.2",
"alwaysAddToPackageJson": false
}
}
}
}
}
8 changes: 4 additions & 4 deletions packages/node/src/utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const expressTypingsVersion = '~4.17.13';
export const koaVersion = '~2.14.1';
export const koaTypingsVersion = '~2.13.5';

export const fastifyVersion = '~4.13.0';
export const fastifyAutoloadVersion = '~5.7.1';
export const fastifySensibleVersion = '~5.2.0';
export const fastifyPluginVersion = '~4.5.0';
export const fastifyVersion = '~5.2.1';
export const fastifyAutoloadVersion = '~6.0.3';
export const fastifySensibleVersion = '~6.0.2';
export const fastifyPluginVersion = '~5.0.1';

export const axiosVersion = '^1.6.0';

0 comments on commit 1f69dce

Please sign in to comment.