From f49afee06f7625ad76f5bb8d2d5433ae05ea8759 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 21 Jan 2024 11:49:04 +0000 Subject: [PATCH] chore: replace `fastify.io` links with `fastify.dev` (#697) * docs(readme): replace `fastify.io` links with `fastify.dev` * docs(readme): remove `www.` from `fastify.dev` urls --- templates/app-esm/README.md | 2 +- templates/app-esm/plugins/README.md | 6 ++-- templates/app-esm/routes/README.md | 6 ++-- templates/app-ts-esm/README.md | 2 +- templates/app-ts-esm/src/plugins/README.md | 6 ++-- templates/app-ts-esm/src/routes/README.md | 4 +-- templates/app-ts/README.md | 2 +- templates/app-ts/src/plugins/README.md | 6 ++-- templates/app-ts/src/routes/README.md | 4 +-- templates/app/README.md | 2 +- templates/app/plugins/README.md | 6 ++-- templates/app/routes/README.md | 6 ++-- test/args.test.js | 36 +++++++++++----------- test/data/custom-config.js | 2 +- 14 files changed, 45 insertions(+), 45 deletions(-) diff --git a/templates/app-esm/README.md b/templates/app-esm/README.md index 92ce100e..8e117cde 100644 --- a/templates/app-esm/README.md +++ b/templates/app-esm/README.md @@ -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/). diff --git a/templates/app-esm/plugins/README.md b/templates/app-esm/plugins/README.md index 02fd5f93..1e61ee5b 100644 --- a/templates/app-esm/plugins/README.md +++ b/templates/app-esm/plugins/README.md @@ -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/). diff --git a/templates/app-esm/routes/README.md b/templates/app-esm/routes/README.md index 872567c6..fd8d0b2a 100644 --- a/templates/app-esm/routes/README.md +++ b/templates/app-esm/routes/README.md @@ -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 @@ -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. diff --git a/templates/app-ts-esm/README.md b/templates/app-ts-esm/README.md index be35d934..2d5e417c 100644 --- a/templates/app-ts-esm/README.md +++ b/templates/app-ts-esm/README.md @@ -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/). diff --git a/templates/app-ts-esm/src/plugins/README.md b/templates/app-ts-esm/src/plugins/README.md index 02fd5f93..1e61ee5b 100644 --- a/templates/app-ts-esm/src/plugins/README.md +++ b/templates/app-ts-esm/src/plugins/README.md @@ -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/). diff --git a/templates/app-ts-esm/src/routes/README.md b/templates/app-ts-esm/src/routes/README.md index 67b739aa..9d209026 100644 --- a/templates/app-ts-esm/src/routes/README.md +++ b/templates/app-ts-esm/src/routes/README.md @@ -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 @@ -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/). diff --git a/templates/app-ts/README.md b/templates/app-ts/README.md index be35d934..2d5e417c 100644 --- a/templates/app-ts/README.md +++ b/templates/app-ts/README.md @@ -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/). diff --git a/templates/app-ts/src/plugins/README.md b/templates/app-ts/src/plugins/README.md index 02fd5f93..1e61ee5b 100644 --- a/templates/app-ts/src/plugins/README.md +++ b/templates/app-ts/src/plugins/README.md @@ -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/). diff --git a/templates/app-ts/src/routes/README.md b/templates/app-ts/src/routes/README.md index 67b739aa..9d209026 100644 --- a/templates/app-ts/src/routes/README.md +++ b/templates/app-ts/src/routes/README.md @@ -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 @@ -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/). diff --git a/templates/app/README.md b/templates/app/README.md index be35d934..2d5e417c 100644 --- a/templates/app/README.md +++ b/templates/app/README.md @@ -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/). diff --git a/templates/app/plugins/README.md b/templates/app/plugins/README.md index 02fd5f93..1e61ee5b 100644 --- a/templates/app/plugins/README.md +++ b/templates/app/plugins/README.md @@ -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/). diff --git a/templates/app/routes/README.md b/templates/app/routes/README.md index 872567c6..fd8d0b2a 100644 --- a/templates/app/routes/README.md +++ b/templates/app/routes/README.md @@ -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 @@ -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. diff --git a/test/args.test.js b/test/args.test.js index 640d682c..0b3788c4 100644 --- a/test/args.test.js +++ b/test/args.test.js @@ -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', @@ -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_', @@ -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', @@ -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_', @@ -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' @@ -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, @@ -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', @@ -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_', @@ -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_', @@ -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_', diff --git a/test/data/custom-config.js b/test/data/custom-config.js index fbb74b1e..744e471c 100644 --- a/test/data/custom-config.js +++ b/test/data/custom-config.js @@ -2,7 +2,7 @@ module.exports = { port: 5000, - address: 'fastify.io:9999', + address: 'fastify.dev:9999', prefix: 'FASTIFY_', watch: true, prettyLogs: true,