Skip to content

Commit

Permalink
Merge pull request #138 from frouriojs/feature/133_fastify_v4
Browse files Browse the repository at this point in the history
#133 Migration Guide を追加
  • Loading branch information
solufa authored Jan 23, 2023
2 parents 433e9e8 + 3b6a568 commit d13186c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions docs/guide/migration.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
id: migration
title: Migration Guide
---

Here are some updates that require special consideration regarding frourio and frourio-express.

For changes not listed here, please refer to the [Changelog](/changelog).

## v0.31.0 - Consolidate into `defineController()` {#v0.31.0-define-controller}

<p>
<span className="badge badge--primary margin-right--sm">frourio</span>
<span className="badge badge--primary">frourio-express</span>
</p>

`defineHooks()` and `defineResponseSchema()` at controller-level are now deprecated.
Please refer to the [Routing page](/docs/reference/routing) to consolidate them into `defineController()`.

:::note

To avoid confusion, the old "controller" has renamed to "handler".

:::

## v0.31.0 - Support Fastify v4 {#v0.31.0-support-fastify-v4}

<p>
<span className="badge badge--primary margin-right--sm">frourio</span>
<span className="badge badge--secondary">frourio-express</span>
</p>

Fastify v4 is now supported at `frourio@0.31.0`.
Later versions of `frourio` require `fastify@4`.

`frourio-express` is not affected by this change.

See also: [Fastify V4 Migration Guide - Fastify](https://www.fastify.io/docs/latest/Guides/Migration-Guide-V4/)
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module.exports = {
collapsed: false,
link: { type: 'doc', id: 'guide/index' },
items: [
'guide/migration',
'guide/entrypoint',
'guide/authentication',
'guide/cors-helmet',
Expand Down

1 comment on commit d13186c

@vercel
Copy link

@vercel vercel bot commented on d13186c Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

frourio-com – ./

frourio-com.vercel.app
frourio-com-solufa.vercel.app
frourio-com-git-master-solufa.vercel.app

Please sign in to comment.