profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/zekth/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Vincent LE GOFF zekth Genesys Brest, France https://zekth.github.io/ I'm Vincent, I solve problems

reef-pi/reef-pi 252

An opensource reef tank controller based on Raspberry Pi

zekth/Keyset-Catalog 13

Just a simple app to browse available keysets and find the best matches for a color

keycap-archivist/database 9

Keycap Archivist Database

mkbdfr/website 7

Entry point for the Mechanical Keyboards France community

keycap-archivist/app 5

Keycap Archivist application

zekth/deno_easypath 5

Filesystem helper for Deno

zekth/keycap-ruler 5

Measure the size of your keycaps!

zekth/deno_tiny_templates 4

A template parser for deno

zekth/gulp-image-process 4

Gulp task for processing images

zekth/deno_case_style 2

A string validator and formater for case Style

issue commentfastify/fastify

Typescript types for `setValidatorCompiler` mismatches with Ajv version > 8.0.0

We don't support Ajv 8 yet.

J3573R

comment created time in 3 minutes

pull request commentfastify/fastify-nextjs

fix `next()` type declaration

Any update on this? Need a bit help too. To close this ASAP

Iamshankhadeep

comment created time in 36 minutes

issue openedfastify/fastify

Typescript types for `setValidatorCompiler` mismatches with Ajv version > 8.0.0

<!-- Before you submit an issue we recommend you visit Fastify Help and ask any questions you have or mention any problems you've had getting started with Fastify.

Please read this entire template before posting any issue. If you ignore these instructions and post an issue here that does not follow the instructions, your issue might be closed, locked, and assigned the missing discussion label. -->

🐛 Bug Report

With latest Ajv version typescript typing is no longer working when setting ajv instance as schema validator. Tested with code samples from the README.

To Reproduce

Steps to reproduce the behavior:

import Fastify from "fastify";
import Ajv from "ajv";

const fastify = Fastify();

const ajv = new Ajv({
  removeAdditional: true,
  useDefaults: true,
  coerceTypes: 'array',
  allErrors: true
})

fastify.setValidatorCompiler(({ schema, method, url, httpPart }) => {
  return ajv.compile(schema)
})

Typescript compiler gives following error:

src/fastify.ts:13:30 - error TS2345: Argument of type '({ schema }: FastifyRouteSchemaDef<FastifySchema>) => ValidateFunction<unknown>' is not assignable to parameter of type 'FastifySchemaCompiler<FastifySchema>'.
  Call signature return types 'ValidateFunction<unknown>' and 'FastifyValidationResult' are incompatible.
    The types of 'errors' are incompatible between these types.
      Type 'ErrorObject<string, Record<string, any>, unknown>[] | null | undefined' is not assignable to type 'FastifySchemaValidationError[] | null | undefined'.
        Type 'ErrorObject<string, Record<string, any>, unknown>[]' is not assignable to type 'FastifySchemaValidationError[]'.
          Property 'dataPath' is missing in type 'ErrorObject<string, Record<string, any>, unknown>' but required in type 'FastifySchemaValidationError'.

13 fastify.setValidatorCompiler(({ schema }) => {
                                ~~~~~~~~~~~~~~~~~

  node_modules/fastify/types/schema.d.ts:25:3
    25   dataPath: string;
         ~~~~~~~~
    'dataPath' is declared here.


Found 1 error.

Expected behavior

Typescript compilation would succeed with README examples.

Your Environment

  • node version: 14.16.1
  • fastify version: 3.15.0
  • ajv version: 8.1.0 (Problem appears first time in version 8.0.0)
  • typescript version: 4.2.4
  • os: Mac

created time in an hour

issue commentfastify/help

response schema not respect json schema required for object properties.

thanks. i found it on fast-json-stringify#additional-properties.

for those who using Typescript definitions to generate json schema via ts-json-schema-generator struggling to generate "addtionalProperties":true, i didn't find a way to generate "addtionalProperties":true but i found how to generate "additionalProperties": { "type": [ "string", "number" ] }.

please refers to this test case .

export interface MyObject {
    structure: {
        required: string;
        optional?: number;
        [name: string]: string|number;
    };
}

will be

"additionalProperties": { "type": [ "string", "number" ] }
JaosnHsieh

comment created time in 2 hours

issue commentfastify/fastify-multipart

Recursive field attachements?!

As mention in https://github.com/fastify/fastify-multipart/issues/195 is the be design behavior.

yaneony

comment created time in 2 hours

issue closedfastify/help

response schema not respect json schema required for object properties.

What are you trying to achieve, or the steps to reproduce?

response schema not respect json schema required for object properties.

I specify only 2 properties a and b are required in json schema. If we send a, b and c as response. Fastify automatically filter out the properties not specify as required, which leads to unable to send random properties in an object.

const F = require("fastify");

main();

async function main() {
	const app = F();

	app.get(
		"/test",
		{
			schema: {
				response: {
					"2xx": {
						$id: "test.json",
						$schema: "http://json-schema.org/draft-07/schema#",
						type: "object",
						properties: {
							a: {
								type: "string",
							},
							b: {
								type: "string",
							},
						},
						required: ["a", "b"],
						definitions: {},
					},
				},
			},
		},
		async (req, res) => {
			const data = {
				a: "a",
				b: "b",
				c: "c",
			}
			console.log('data',data);
			res.send(data);
		}
	);

	const port = 3030;
	await app.listen(port);
	console.log('listening on %s',port)
}

What was the result you received?

{"a":"a","b":"b"}

via

curl localhost:3030/test

What did you expect?

{"a":"a","b":"b","c":"c"}

Context

  • node version: v12.13.1
  • fastify version: 3.15.0
  • os: Mac
  • any other relevant information:

closed time in 3 hours

JaosnHsieh

issue commentfastify/help

response schema not respect json schema required for object properties.

Fastify removes all properties that are not listed. You should add a c property, like so:

const F = require("fastify");

main();

async function main() {
	const app = F();

	app.get(
		"/test",
		{
			schema: {
				response: {
					"2xx": {
						$id: "test.json",
						$schema: "http://json-schema.org/draft-07/schema#",
						type: "object",
						properties: {
							a: {
								type: "string",
							},
							b: {
								type: "string",
							},

							c: {
								type: "string",
							},
						},
						required: ["a", "b"],
						definitions: {},
					},
				},
			},
		},
		async (req, res) => {
			const data = {
				a: "a",
				b: "b",
				c: "c",
			}
			console.log('data',data);
			res.send(data);
		}
	);

	const port = 3030;
	await app.listen(port);
	console.log('listening on %s',port)
}

You can also use additionalProperties.

JaosnHsieh

comment created time in 3 hours

issue commentfastify/fastify-swagger

feat: add option to hide untagged routes

Thanks! happy to say I was able to migrate back to fastify-swagger 😄

DRoet

comment created time in 3 hours

push eventfastify/fastify-swagger

matthyk

commit sha 2a2488344debdd52f7f7c901171980922f0be34e

add missing comma (#407)

view details

push time in 3 hours

PR merged fastify/fastify-swagger

add missing comma

<!-- Thank you for your pull request. Please provide a description above and review the requirements below.

Bug fixes and new features should include tests and possibly benchmarks.

Contributors guide: https://github.com/fastify/fastify/blob/master/CONTRIBUTING.md

By making a contribution to this project, I certify that:

  • (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

  • (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

  • (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

  • (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. -->

Checklist

+1 -1

0 comment

1 changed file

matthyk

pr closed time in 3 hours

issue openedfastify/help

response schema not respect json schema required for object properties.

What are you trying to achieve, or the steps to reproduce?

response schema not respect json schema required for object properties.

I specify only 2 properties a and b are required in json schema. If we send a, b and c as response. Fastify automatically filter out the properties not specify as required, which leads to unable to send random properties in an object.

const F = require("fastify");

main();

async function main() {
	const app = F();

	app.get(
		"/test",
		{
			schema: {
				response: {
					"2xx": {
						$id: "test.json",
						$schema: "http://json-schema.org/draft-07/schema#",
						type: "object",
						properties: {
							a: {
								type: "string",
							},
							b: {
								type: "string",
							},
						},
						required: ["a", "b"],
						definitions: {},
					},
				},
			},
		},
		async (req, res) => {
			const data = {
				a: "a",
				b: "b",
				c: "c",
			}
			console.log('data',data);
			res.send(data);
		}
	);

	const port = 3030;
	await app.listen(port);
	console.log('listening on %s',port)
}

What was the result you received?

{"a":"a","b":"b"}

via

curl localhost:3030/test

What did you expect?

{"a":"a","b":"b","c":"c"}

Context

  • node version: v12.13.1
  • fastify version: 3.15.0
  • os: Mac
  • any other relevant information:

created time in 3 hours

PR opened fastify/fastify-swagger

add missing comma

<!-- Thank you for your pull request. Please provide a description above and review the requirements below.

Bug fixes and new features should include tests and possibly benchmarks.

Contributors guide: https://github.com/fastify/fastify/blob/master/CONTRIBUTING.md

By making a contribution to this project, I certify that:

  • (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

  • (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

  • (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

  • (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. -->

Checklist

+1 -1

0 comment

1 changed file

pr created time in 3 hours

push eventfastify/fastify

Vetlix

commit sha 73c0b6f598e0568dfd2944d715dfa7aa997ae457

perf: loop optimization (#2992)

view details

push time in 4 hours

PR merged fastify/fastify

Reviewers
perf: loop optimization

<!-- Thank you for your pull request. Please provide a description above and review the requirements below.

Bug fixes and new features should include tests and possibly benchmarks.

Contributors guide: https://github.com/fastify/fastify/blob/master/CONTRIBUTING.md

By making a contribution to this project, I certify that:

  • (a) The contribution was created in whole or in part by me and I have the right to submit it under the open-source license indicated in the file; or

  • (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open-source license (unless I am permitted to submit under a different license), as indicated in the file; or

  • (c) The contribution was provided directly to me by some other person who certified (a), (b), or (c) and I have not modified it.

  • (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved. -->

Checklist

+27 -20

12 comments

6 changed files

Vetlix

pr closed time in 4 hours

delete branch fastify/fastify-passport

delete branch : dependabot/npm_and_yarn/fastify-3.15.0

delete time in 5 hours

push eventfastify/fastify-passport

dependabot[bot]

commit sha 1a29dd22ff43648c32b10652b7666ea47abc767f

chore(deps-dev): bump fastify from 3.14.2 to 3.15.0 (#170) Bumps [fastify](https://github.com/fastify/fastify) from 3.14.2 to 3.15.0. - [Release notes](https://github.com/fastify/fastify/releases) - [Commits](https://github.com/fastify/fastify/compare/v3.14.2...v3.15.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

push time in 5 hours

PR merged fastify/fastify-passport

chore(deps-dev): bump fastify from 3.14.2 to 3.15.0 dependencies javascript

Bumps fastify from 3.14.2 to 3.15.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/fastify/fastify/releases">fastify's releases</a>.</em></p> <blockquote> <h2>v3.15.0</h2> <p>📚 PR:</p> <ul> <li>fix: doc typo, added 'to'. (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2978">#2978</a>)</li> <li>Minor typo fix (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2979">#2979</a>)</li> <li>Added info on logging from outside route handlers (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2982">#2982</a>)</li> <li>Update Ecosystem.md (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2984">#2984</a>)</li> <li>adding reference to commonPrefix option in printRoutes documentation (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2985">#2985</a>)</li> <li>docs(ecosystem): add nstats and fastify-good-sessions to community plugins (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2988">#2988</a>)</li> <li>Point our SECURITY.md to the new hackerone program (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2987">#2987</a>)</li> <li>Tap15.0.1 support (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2986">#2986</a>)</li> <li>Test route onSend accepts function or array of functions (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2999">#2999</a>)</li> <li>chore: auto label test (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3002">#3002</a>)</li> <li>ci: remove redundant conditional (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3004">#3004</a>)</li> <li>Fix error message for FST_ERR_SEND_UNDEFINED_ERR (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3006">#3006</a>)</li> <li>docs: add fastify-hasura (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3008">#3008</a>)</li> <li>test: fix typos in test messages (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3009">#3009</a>)</li> <li>fix typo in comment (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3011">#3011</a>)</li> <li>fix: remove invalid assertion (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3018">#3018</a>)</li> <li>Node 16 (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3021">#3021</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/fastify/fastify/commit/cd75539356a8ee672cee3d0504b5147464f63688"><code>cd75539</code></a> Bumped v3.15.0</li> <li><a href="https://github.com/fastify/fastify/commit/052eea6f85f61e20d25ec38937e035367c3c570a"><code>052eea6</code></a> Node 16 (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3021">#3021</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/aac23883fc01e552d10e9c6a592e4e6d4c57e18d"><code>aac2388</code></a> fix: remove invalid assertion (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3018">#3018</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2af8a3ceae2e498a664e9865f31920bd987e8ca2"><code>2af8a3c</code></a> fix typo in comment (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3011">#3011</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/361e3d3e1229002ace46037e6f2ed649da0023d1"><code>361e3d3</code></a> test: fix typos in test messages (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3009">#3009</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/e5f57e0520a5c2f23f1f27fa1f861329c3467d07"><code>e5f57e0</code></a> docs: add fastify-hasura (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3008">#3008</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/6cdd9e1933605da6259484fecdec48166741aa23"><code>6cdd9e1</code></a> Fix error message for FST_ERR_SEND_UNDEFINED_ERR (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3006">#3006</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2fe194864eebb23ff9abddeefc55210b8c54ce4f"><code>2fe1948</code></a> ci: remove redundant conditional (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3004">#3004</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2cffc18874162d1a8e96c376b1c001c163ffe944"><code>2cffc18</code></a> chore: auto label test (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3002">#3002</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/9d9a717806e86fe7bc796007d49cfecd2337c27e"><code>9d9a717</code></a> Test route onSend accepts function or array of functions (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2999">#2999</a>)</li> <li>Additional commits viewable in <a href="https://github.com/fastify/fastify/compare/v3.14.2...v3.15.0">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+16 -16

0 comment

1 changed file

dependabot[bot]

pr closed time in 5 hours

issue closedfastify/help

fastify-jwt - preValidation for routes plugin

I have a question about fastify-jwt and would appreciate any help.

The README shows how one can use preValidationfor JWT based authentication.

module.exports = async function(fastify, opts) {
  fastify.get(
    "/",
    {
      preValidation: [fastify.authenticate]
    },
    async function(request, reply) {
      return request.user
    }
  )
}

However, what if I want to protect all the routes that are under a routes plugin (for example routes/api/index.js)?

Is there a way to add pre-validation to all routes that exist in a route plugin/file, or must I manually add it to every route declaration?

I'd really appreciate any guidance. Thanks!

closed time in 5 hours

timuster

PR opened fastify/fastify-passport

chore(deps-dev): bump fastify from 3.14.2 to 3.15.0

Bumps fastify from 3.14.2 to 3.15.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/fastify/fastify/releases">fastify's releases</a>.</em></p> <blockquote> <h2>v3.15.0</h2> <p>📚 PR:</p> <ul> <li>fix: doc typo, added 'to'. (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2978">#2978</a>)</li> <li>Minor typo fix (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2979">#2979</a>)</li> <li>Added info on logging from outside route handlers (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2982">#2982</a>)</li> <li>Update Ecosystem.md (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2984">#2984</a>)</li> <li>adding reference to commonPrefix option in printRoutes documentation (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2985">#2985</a>)</li> <li>docs(ecosystem): add nstats and fastify-good-sessions to community plugins (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2988">#2988</a>)</li> <li>Point our SECURITY.md to the new hackerone program (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2987">#2987</a>)</li> <li>Tap15.0.1 support (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2986">#2986</a>)</li> <li>Test route onSend accepts function or array of functions (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2999">#2999</a>)</li> <li>chore: auto label test (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3002">#3002</a>)</li> <li>ci: remove redundant conditional (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3004">#3004</a>)</li> <li>Fix error message for FST_ERR_SEND_UNDEFINED_ERR (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3006">#3006</a>)</li> <li>docs: add fastify-hasura (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3008">#3008</a>)</li> <li>test: fix typos in test messages (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3009">#3009</a>)</li> <li>fix typo in comment (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3011">#3011</a>)</li> <li>fix: remove invalid assertion (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3018">#3018</a>)</li> <li>Node 16 (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3021">#3021</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/fastify/fastify/commit/cd75539356a8ee672cee3d0504b5147464f63688"><code>cd75539</code></a> Bumped v3.15.0</li> <li><a href="https://github.com/fastify/fastify/commit/052eea6f85f61e20d25ec38937e035367c3c570a"><code>052eea6</code></a> Node 16 (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3021">#3021</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/aac23883fc01e552d10e9c6a592e4e6d4c57e18d"><code>aac2388</code></a> fix: remove invalid assertion (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3018">#3018</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2af8a3ceae2e498a664e9865f31920bd987e8ca2"><code>2af8a3c</code></a> fix typo in comment (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3011">#3011</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/361e3d3e1229002ace46037e6f2ed649da0023d1"><code>361e3d3</code></a> test: fix typos in test messages (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3009">#3009</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/e5f57e0520a5c2f23f1f27fa1f861329c3467d07"><code>e5f57e0</code></a> docs: add fastify-hasura (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3008">#3008</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/6cdd9e1933605da6259484fecdec48166741aa23"><code>6cdd9e1</code></a> Fix error message for FST_ERR_SEND_UNDEFINED_ERR (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3006">#3006</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2fe194864eebb23ff9abddeefc55210b8c54ce4f"><code>2fe1948</code></a> ci: remove redundant conditional (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3004">#3004</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2cffc18874162d1a8e96c376b1c001c163ffe944"><code>2cffc18</code></a> chore: auto label test (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3002">#3002</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/9d9a717806e86fe7bc796007d49cfecd2337c27e"><code>9d9a717</code></a> Test route onSend accepts function or array of functions (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2999">#2999</a>)</li> <li>Additional commits viewable in <a href="https://github.com/fastify/fastify/compare/v3.14.2...v3.15.0">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+16 -16

0 comment

1 changed file

pr created time in 5 hours

issue openedfastify/help

fastify-jwt - preValidation for routes plugin

I have a question about fastify-jwt and would appreciate any help.

The README shows how one can use preValidationfor JWT based authentication.

module.exports = async function(fastify, opts) {
  fastify.get(
    "/",
    {
      preValidation: [fastify.authenticate]
    },
    async function(request, reply) {
      return request.user
    }
  )
}

However, what if I want to protect all the routes that are under a routes plugin (for example routes/api/index.js)?

Is there a way to add pre-validation to all routes that exist in a route plugin/file, or must I manually add it to every route declaration?

I'd really appreciate any guidance. Thanks!

created time in 5 hours

delete branch fastify/fastify-nextjs

delete branch : dependabot/npm_and_yarn/fastify-3.15.0

delete time in 5 hours

push eventfastify/fastify-nextjs

dependabot[bot]

commit sha 56f4c839b56a5631ac654deec935e7fabc3466e5

chore(deps-dev): bump fastify from 3.14.2 to 3.15.0 (#229) Bumps [fastify](https://github.com/fastify/fastify) from 3.14.2 to 3.15.0. - [Release notes](https://github.com/fastify/fastify/releases) - [Commits](https://github.com/fastify/fastify/compare/v3.14.2...v3.15.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

push time in 5 hours

PR merged fastify/fastify-nextjs

chore(deps-dev): bump fastify from 3.14.2 to 3.15.0 dependencies javascript

Bumps fastify from 3.14.2 to 3.15.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/fastify/fastify/releases">fastify's releases</a>.</em></p> <blockquote> <h2>v3.15.0</h2> <p>📚 PR:</p> <ul> <li>fix: doc typo, added 'to'. (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2978">#2978</a>)</li> <li>Minor typo fix (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2979">#2979</a>)</li> <li>Added info on logging from outside route handlers (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2982">#2982</a>)</li> <li>Update Ecosystem.md (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2984">#2984</a>)</li> <li>adding reference to commonPrefix option in printRoutes documentation (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2985">#2985</a>)</li> <li>docs(ecosystem): add nstats and fastify-good-sessions to community plugins (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2988">#2988</a>)</li> <li>Point our SECURITY.md to the new hackerone program (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2987">#2987</a>)</li> <li>Tap15.0.1 support (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2986">#2986</a>)</li> <li>Test route onSend accepts function or array of functions (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2999">#2999</a>)</li> <li>chore: auto label test (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3002">#3002</a>)</li> <li>ci: remove redundant conditional (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3004">#3004</a>)</li> <li>Fix error message for FST_ERR_SEND_UNDEFINED_ERR (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3006">#3006</a>)</li> <li>docs: add fastify-hasura (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3008">#3008</a>)</li> <li>test: fix typos in test messages (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3009">#3009</a>)</li> <li>fix typo in comment (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3011">#3011</a>)</li> <li>fix: remove invalid assertion (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3018">#3018</a>)</li> <li>Node 16 (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3021">#3021</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/fastify/fastify/commit/cd75539356a8ee672cee3d0504b5147464f63688"><code>cd75539</code></a> Bumped v3.15.0</li> <li><a href="https://github.com/fastify/fastify/commit/052eea6f85f61e20d25ec38937e035367c3c570a"><code>052eea6</code></a> Node 16 (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3021">#3021</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/aac23883fc01e552d10e9c6a592e4e6d4c57e18d"><code>aac2388</code></a> fix: remove invalid assertion (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3018">#3018</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2af8a3ceae2e498a664e9865f31920bd987e8ca2"><code>2af8a3c</code></a> fix typo in comment (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3011">#3011</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/361e3d3e1229002ace46037e6f2ed649da0023d1"><code>361e3d3</code></a> test: fix typos in test messages (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3009">#3009</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/e5f57e0520a5c2f23f1f27fa1f861329c3467d07"><code>e5f57e0</code></a> docs: add fastify-hasura (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3008">#3008</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/6cdd9e1933605da6259484fecdec48166741aa23"><code>6cdd9e1</code></a> Fix error message for FST_ERR_SEND_UNDEFINED_ERR (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3006">#3006</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2fe194864eebb23ff9abddeefc55210b8c54ce4f"><code>2fe1948</code></a> ci: remove redundant conditional (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3004">#3004</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2cffc18874162d1a8e96c376b1c001c163ffe944"><code>2cffc18</code></a> chore: auto label test (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3002">#3002</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/9d9a717806e86fe7bc796007d49cfecd2337c27e"><code>9d9a717</code></a> Test route onSend accepts function or array of functions (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2999">#2999</a>)</li> <li>Additional commits viewable in <a href="https://github.com/fastify/fastify/compare/v3.14.2...v3.15.0">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+13 -13

0 comment

1 changed file

dependabot[bot]

pr closed time in 5 hours

PR opened fastify/fastify-nextjs

chore(deps-dev): bump fastify from 3.14.2 to 3.15.0

Bumps fastify from 3.14.2 to 3.15.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/fastify/fastify/releases">fastify's releases</a>.</em></p> <blockquote> <h2>v3.15.0</h2> <p>📚 PR:</p> <ul> <li>fix: doc typo, added 'to'. (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2978">#2978</a>)</li> <li>Minor typo fix (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2979">#2979</a>)</li> <li>Added info on logging from outside route handlers (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2982">#2982</a>)</li> <li>Update Ecosystem.md (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2984">#2984</a>)</li> <li>adding reference to commonPrefix option in printRoutes documentation (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2985">#2985</a>)</li> <li>docs(ecosystem): add nstats and fastify-good-sessions to community plugins (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2988">#2988</a>)</li> <li>Point our SECURITY.md to the new hackerone program (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2987">#2987</a>)</li> <li>Tap15.0.1 support (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2986">#2986</a>)</li> <li>Test route onSend accepts function or array of functions (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2999">#2999</a>)</li> <li>chore: auto label test (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3002">#3002</a>)</li> <li>ci: remove redundant conditional (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3004">#3004</a>)</li> <li>Fix error message for FST_ERR_SEND_UNDEFINED_ERR (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3006">#3006</a>)</li> <li>docs: add fastify-hasura (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3008">#3008</a>)</li> <li>test: fix typos in test messages (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3009">#3009</a>)</li> <li>fix typo in comment (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3011">#3011</a>)</li> <li>fix: remove invalid assertion (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3018">#3018</a>)</li> <li>Node 16 (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3021">#3021</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/fastify/fastify/commit/cd75539356a8ee672cee3d0504b5147464f63688"><code>cd75539</code></a> Bumped v3.15.0</li> <li><a href="https://github.com/fastify/fastify/commit/052eea6f85f61e20d25ec38937e035367c3c570a"><code>052eea6</code></a> Node 16 (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3021">#3021</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/aac23883fc01e552d10e9c6a592e4e6d4c57e18d"><code>aac2388</code></a> fix: remove invalid assertion (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3018">#3018</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2af8a3ceae2e498a664e9865f31920bd987e8ca2"><code>2af8a3c</code></a> fix typo in comment (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3011">#3011</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/361e3d3e1229002ace46037e6f2ed649da0023d1"><code>361e3d3</code></a> test: fix typos in test messages (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3009">#3009</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/e5f57e0520a5c2f23f1f27fa1f861329c3467d07"><code>e5f57e0</code></a> docs: add fastify-hasura (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3008">#3008</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/6cdd9e1933605da6259484fecdec48166741aa23"><code>6cdd9e1</code></a> Fix error message for FST_ERR_SEND_UNDEFINED_ERR (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3006">#3006</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2fe194864eebb23ff9abddeefc55210b8c54ce4f"><code>2fe1948</code></a> ci: remove redundant conditional (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3004">#3004</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/2cffc18874162d1a8e96c376b1c001c163ffe944"><code>2cffc18</code></a> chore: auto label test (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/3002">#3002</a>)</li> <li><a href="https://github.com/fastify/fastify/commit/9d9a717806e86fe7bc796007d49cfecd2337c27e"><code>9d9a717</code></a> Test route onSend accepts function or array of functions (<a href="https://github-redirect.dependabot.com/fastify/fastify/issues/2999">#2999</a>)</li> <li>Additional commits viewable in <a href="https://github.com/fastify/fastify/compare/v3.14.2...v3.15.0">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+13 -13

0 comment

1 changed file

pr created time in 5 hours

create barnchfastify/fastify-nextjs

branch : dependabot/npm_and_yarn/fastify-3.15.0

created branch time in 5 hours

created tagfastify/fastify-swagger

tagv4.7.0

Swagger documentation generator for Fastify

created time in 8 hours

push eventfastify/fastify-swagger

KaKa

commit sha 35b2957b16af4698f8fa7eb8fabbabb2c6616eaa

Bumped v4.7.0

view details

push time in 8 hours

push eventfastify/fastify-swagger

Kira

commit sha 7c3d58c062e7fec10574ef4b7c06c4a2ba7b1e15

feat: added option to hide untagged routes (#406) * added option to hide untagged routes * shouldRouteHide function accept options parameter * Use the right naming in swagger test case

view details

push time in 8 hours

PR merged fastify/fastify-swagger

added option to hide untagged routes

Checklist

Added a new plugin parameter hideUntagged. Added cases in both dynamic swagger and openapi example Added tests cases in both dynamic swagger and openapi Update readme with the new parameter description

Related issue: https://github.com/fastify/fastify-swagger/issues/403

+176 -6

2 comments

11 changed files

KiraPC

pr closed time in 8 hours