Skip to content

Commit

Permalink
chore: replace fastify.io links with fastify.dev (#697)
Browse files Browse the repository at this point in the history
* docs(readme): replace `fastify.io` links with `fastify.dev`

* docs(readme): remove `www.` from `fastify.dev` urls
  • Loading branch information
Fdawgs committed Jan 21, 2024
1 parent dbf14f1 commit f49afee
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion templates/app-esm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Run the test cases.

## Learn More

To learn Fastify, check out the [Fastify documentation](https://www.fastify.io/docs/latest/).
To learn Fastify, check out the [Fastify documentation](https://fastify.dev/docs/latest/).
6 changes: 3 additions & 3 deletions templates/app-esm/plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ that will then be used in the rest of your application.

Check out:

* [The hitchhiker's guide to plugins](https://www.fastify.io/docs/latest/Guides/Plugins-Guide/)
* [Fastify decorators](https://www.fastify.io/docs/latest/Reference/Decorators/).
* [Fastify lifecycle](https://www.fastify.io/docs/latest/Reference/Lifecycle/).
* [The hitchhiker's guide to plugins](https://fastify.dev/docs/latest/Guides/Plugins-Guide/)
* [Fastify decorators](https://fastify.dev/docs/latest/Reference/Decorators/).
* [Fastify lifecycle](https://fastify.dev/docs/latest/Reference/Lifecycle/).
6 changes: 3 additions & 3 deletions templates/app-esm/routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to independently deploy some of those.
In this folder you should define all the routes that define the endpoints
of your web application.
Each service is a [Fastify
plugin](https://www.fastify.io/docs/latest/Reference/Plugins/), it is
plugin](https://fastify.dev/docs/latest/Reference/Plugins/), it is
encapsulated (it can have its own independent plugins) and it is
typically stored in a file; be careful to group your routes logically,
e.g. all `/users` routes in a `users.js` file. We have added
Expand All @@ -21,7 +21,7 @@ and eventually extract them.

If you need to share functionality between routes, place that
functionality into the `plugins` folder, and share it via
[decorators](https://www.fastify.io/docs/latest/Reference/Decorators/).
[decorators](https://fastify.dev/docs/latest/Reference/Decorators/).

If you're a bit confused about using `async/await` to write routes, you would
better take a look at [Promise resolution](https://www.fastify.io/docs/latest/Reference/Routes/#promise-resolution) for more details.
better take a look at [Promise resolution](https://fastify.dev/docs/latest/Reference/Routes/#promise-resolution) for more details.
2 changes: 1 addition & 1 deletion templates/app-ts-esm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ Run the test cases.

## Learn More

To learn Fastify, check out the [Fastify documentation](https://www.fastify.io/docs/latest/).
To learn Fastify, check out the [Fastify documentation](https://fastify.dev/docs/latest/).
6 changes: 3 additions & 3 deletions templates/app-ts-esm/src/plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ that will then be used in the rest of your application.

Check out:

* [The hitchhiker's guide to plugins](https://www.fastify.io/docs/latest/Guides/Plugins-Guide/)
* [Fastify decorators](https://www.fastify.io/docs/latest/Reference/Decorators/).
* [Fastify lifecycle](https://www.fastify.io/docs/latest/Reference/Lifecycle/).
* [The hitchhiker's guide to plugins](https://fastify.dev/docs/latest/Guides/Plugins-Guide/)
* [Fastify decorators](https://fastify.dev/docs/latest/Reference/Decorators/).
* [Fastify lifecycle](https://fastify.dev/docs/latest/Reference/Lifecycle/).
4 changes: 2 additions & 2 deletions templates/app-ts-esm/src/routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to independently deploy some of those.
In this folder you should define all the routes that define the endpoints
of your web application.
Each service is a [Fastify
plugin](https://www.fastify.io/docs/latest/Reference/Plugins/), it is
plugin](https://fastify.dev/docs/latest/Reference/Plugins/), it is
encapsulated (it can have its own independent plugins) and it is
typically stored in a file; be careful to group your routes logically,
e.g. all `/users` routes in a `users.js` file. We have added
Expand All @@ -21,4 +21,4 @@ and eventually extract them.

If you need to share functionality between routes, place that
functionality into the `plugins` folder, and share it via
[decorators](https://www.fastify.io/docs/latest/Reference/Decorators/).
[decorators](https://fastify.dev/docs/latest/Reference/Decorators/).
2 changes: 1 addition & 1 deletion templates/app-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ Run the test cases.

## Learn More

To learn Fastify, check out the [Fastify documentation](https://www.fastify.io/docs/latest/).
To learn Fastify, check out the [Fastify documentation](https://fastify.dev/docs/latest/).
6 changes: 3 additions & 3 deletions templates/app-ts/src/plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ that will then be used in the rest of your application.

Check out:

* [The hitchhiker's guide to plugins](https://www.fastify.io/docs/latest/Guides/Plugins-Guide/)
* [Fastify decorators](https://www.fastify.io/docs/latest/Reference/Decorators/).
* [Fastify lifecycle](https://www.fastify.io/docs/latest/Reference/Lifecycle/).
* [The hitchhiker's guide to plugins](https://fastify.dev/docs/latest/Guides/Plugins-Guide/)
* [Fastify decorators](https://fastify.dev/docs/latest/Reference/Decorators/).
* [Fastify lifecycle](https://fastify.dev/docs/latest/Reference/Lifecycle/).
4 changes: 2 additions & 2 deletions templates/app-ts/src/routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to independently deploy some of those.
In this folder you should define all the routes that define the endpoints
of your web application.
Each service is a [Fastify
plugin](https://www.fastify.io/docs/latest/Reference/Plugins/), it is
plugin](https://fastify.dev/docs/latest/Reference/Plugins/), it is
encapsulated (it can have its own independent plugins) and it is
typically stored in a file; be careful to group your routes logically,
e.g. all `/users` routes in a `users.js` file. We have added
Expand All @@ -21,4 +21,4 @@ and eventually extract them.

If you need to share functionality between routes, place that
functionality into the `plugins` folder, and share it via
[decorators](https://www.fastify.io/docs/latest/Reference/Decorators/).
[decorators](https://fastify.dev/docs/latest/Reference/Decorators/).
2 changes: 1 addition & 1 deletion templates/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ Run the test cases.

## Learn More

To learn Fastify, check out the [Fastify documentation](https://www.fastify.io/docs/latest/).
To learn Fastify, check out the [Fastify documentation](https://fastify.dev/docs/latest/).
6 changes: 3 additions & 3 deletions templates/app/plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ that will then be used in the rest of your application.

Check out:

* [The hitchhiker's guide to plugins](https://www.fastify.io/docs/latest/Guides/Plugins-Guide/)
* [Fastify decorators](https://www.fastify.io/docs/latest/Reference/Decorators/).
* [Fastify lifecycle](https://www.fastify.io/docs/latest/Reference/Lifecycle/).
* [The hitchhiker's guide to plugins](https://fastify.dev/docs/latest/Guides/Plugins-Guide/)
* [Fastify decorators](https://fastify.dev/docs/latest/Reference/Decorators/).
* [Fastify lifecycle](https://fastify.dev/docs/latest/Reference/Lifecycle/).
6 changes: 3 additions & 3 deletions templates/app/routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to independently deploy some of those.
In this folder you should define all the routes that define the endpoints
of your web application.
Each service is a [Fastify
plugin](https://www.fastify.io/docs/latest/Reference/Plugins/), it is
plugin](https://fastify.dev/docs/latest/Reference/Plugins/), it is
encapsulated (it can have its own independent plugins) and it is
typically stored in a file; be careful to group your routes logically,
e.g. all `/users` routes in a `users.js` file. We have added
Expand All @@ -21,7 +21,7 @@ and eventually extract them.

If you need to share functionality between routes, place that
functionality into the `plugins` folder, and share it via
[decorators](https://www.fastify.io/docs/latest/Reference/Decorators/).
[decorators](https://fastify.dev/docs/latest/Reference/Decorators/).

If you're a bit confused about using `async/await` to write routes, you would
better take a look at [Promise resolution](https://www.fastify.io/docs/latest/Reference/Routes/#promise-resolution) for more details.
better take a look at [Promise resolution](https://fastify.dev/docs/latest/Reference/Routes/#promise-resolution) for more details.
36 changes: 18 additions & 18 deletions test/args.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ test('should parse args correctly', t => {

const argv = [
'--port', '7777',
'--address', 'fastify.io:9999',
'--socket', 'fastify.io.socket:9999',
'--address', 'fastify.dev:9999',
'--socket', 'fastify.dev.socket:9999',
'--require', './require-module.js',
'--log-level', 'info',
'--pretty-logs', 'true',
Expand Down Expand Up @@ -39,8 +39,8 @@ test('should parse args correctly', t => {
ignoreWatch: 'node_modules build dist .git bower_components logs .swp .nyc_output ignoreme.js',
verboseWatch: true,
port: 7777,
address: 'fastify.io:9999',
socket: 'fastify.io.socket:9999',
address: 'fastify.dev:9999',
socket: 'fastify.dev.socket:9999',
require: './require-module.js',
logLevel: 'info',
prefix: 'FASTIFY_',
Expand All @@ -64,8 +64,8 @@ test('should parse args with = assignment correctly', t => {

const argv = [
'--port=7777',
'--address=fastify.io:9999',
'--socket=fastify.io.socket:9999',
'--address=fastify.dev:9999',
'--socket=fastify.dev.socket:9999',
'--require', './require-module.js',
'--log-level=info',
'--pretty-logs=true',
Expand Down Expand Up @@ -94,8 +94,8 @@ test('should parse args with = assignment correctly', t => {
ignoreWatch: 'node_modules build dist .git bower_components logs .swp .nyc_output ignoreme.js',
verboseWatch: true,
port: 7777,
address: 'fastify.io:9999',
socket: 'fastify.io.socket:9999',
address: 'fastify.dev:9999',
socket: 'fastify.dev.socket:9999',
require: './require-module.js',
logLevel: 'info',
prefix: 'FASTIFY_',
Expand All @@ -118,8 +118,8 @@ test('should parse env vars correctly', t => {
t.plan(1)

process.env.FASTIFY_PORT = '7777'
process.env.FASTIFY_ADDRESS = 'fastify.io:9999'
process.env.FASTIFY_SOCKET = 'fastify.io.socket:9999'
process.env.FASTIFY_ADDRESS = 'fastify.dev:9999'
process.env.FASTIFY_SOCKET = 'fastify.dev.socket:9999'
process.env.FASTIFY_REQUIRE = './require-module.js'
process.env.FASTIFY_LOG_LEVEL = 'info'
process.env.FASTIFY_PRETTY_LOGS = 'true'
Expand Down Expand Up @@ -166,12 +166,12 @@ test('should parse env vars correctly', t => {
watch: true,
ignoreWatch: 'node_modules build dist .git bower_components logs .swp .nyc_output ignoreme.js',
verboseWatch: true,
address: 'fastify.io:9999',
address: 'fastify.dev:9999',
bodyLimit: 5242880,
logLevel: 'info',
port: 7777,
prefix: 'FASTIFY_',
socket: 'fastify.io.socket:9999',
socket: 'fastify.dev.socket:9999',
require: './require-module.js',
pluginTimeout: 500,
closeGraceDelay: 30000,
Expand Down Expand Up @@ -216,8 +216,8 @@ test('should parse custom plugin options', t => {

const argv = [
'--port', '7777',
'--address', 'fastify.io:9999',
'--socket', 'fastify.io.socket:9999',
'--address', 'fastify.dev:9999',
'--socket', 'fastify.dev.socket:9999',
'--require', './require-module.js',
'--log-level', 'info',
'--pretty-logs', 'true',
Expand Down Expand Up @@ -253,8 +253,8 @@ test('should parse custom plugin options', t => {
ignoreWatch: 'node_modules build dist .git bower_components logs .swp .nyc_output ignoreme.js',
verboseWatch: true,
port: 7777,
address: 'fastify.io:9999',
socket: 'fastify.io.socket:9999',
address: 'fastify.dev:9999',
socket: 'fastify.dev.socket:9999',
require: './require-module.js',
logLevel: 'info',
prefix: 'FASTIFY_',
Expand Down Expand Up @@ -304,7 +304,7 @@ test('should parse config file correctly and prefer config values over default o
ignoreWatch: 'node_modules build dist .git bower_components logs .swp .nyc_output',
verboseWatch: false,
logLevel: 'fatal',
address: 'fastify.io:9999',
address: 'fastify.dev:9999',
socket: undefined,
require: undefined,
prefix: 'FASTIFY_',
Expand Down Expand Up @@ -346,7 +346,7 @@ test('should prefer command line args over config file options', t => {
ignoreWatch: 'node_modules build dist .git bower_components logs .swp .nyc_output',
verboseWatch: false,
logLevel: 'fatal',
address: 'fastify.io:9999',
address: 'fastify.dev:9999',
socket: undefined,
require: undefined,
prefix: 'FASTIFY_',
Expand Down
2 changes: 1 addition & 1 deletion test/data/custom-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = {
port: 5000,
address: 'fastify.io:9999',
address: 'fastify.dev:9999',
prefix: 'FASTIFY_',
watch: true,
prettyLogs: true,
Expand Down

0 comments on commit f49afee

Please sign in to comment.