Skip to content

Commit 6b1b8a7

Browse files
authored
chore: bump fast-json-stringify-compiler to v5.0.0 (fastify#5660)
* chore: bump fast-json-stringify-compiler to v5.0.0 Signed-off-by: Matteo Collina <[email protected]> * fixup Signed-off-by: Matteo Collina <[email protected]> --------- Signed-off-by: Matteo Collina <[email protected]>
1 parent 985b3c3 commit 6b1b8a7

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
"dependencies": {
193193
"@fastify/ajv-compiler": "^4.0.0",
194194
"@fastify/error": "^4.0.0",
195-
"@fastify/fast-json-stringify-compiler": "^4.3.0",
195+
"@fastify/fast-json-stringify-compiler": "^5.0.0",
196196
"abstract-logging": "^2.0.1",
197197
"avvio": "^9.0.0",
198198
"fast-json-stringify": "^6.0.0",

test/types/instance.test-d.ts

+12-10
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,12 @@ expectError(server.decorate<string>('test', true))
370370
expectError(server.decorate<(myNumber: number) => number>('test', function (myNumber: number): string {
371371
return ''
372372
}))
373-
expectError(server.decorate<string>('test', {
374-
getter () {
375-
return true
376-
}
377-
}))
373+
// TODO(mcollina): uncomment after https://github.com/tsdjs/tsd/pull/220 lands.
374+
// expectError(server.decorate<string>('test', {
375+
// getter () {
376+
// return true
377+
// }
378+
// }))
378379
expectError(server.decorate<string>('test', {
379380
setter (x) {}
380381
}))
@@ -418,11 +419,12 @@ server.decorate('typedTestProperty')
418419
server.decorate('typedTestProperty', null, ['foo'])
419420
expectError(server.decorate('typedTestProperty', null))
420421
expectError(server.decorate('typedTestProperty', 'foo'))
421-
expectError(server.decorate('typedTestProperty', {
422-
getter () {
423-
return 'foo'
424-
}
425-
}))
422+
// TODO(mcollina): uncomment after https://github.com/tsdjs/tsd/pull/220 lands.
423+
// expectError(server.decorate('typedTestProperty', {
424+
// getter () {
425+
// return 'foo'
426+
// }
427+
// }))
426428
server.decorate('typedTestMethod', function (x) {
427429
expectType<string>(x)
428430
expectType<FastifyInstance>(this)

0 commit comments

Comments
 (0)