Update devDependencies (non-major)
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
jest (source) | ^29.4.1 -> ^29.4.2 |
||||
prettier (source) | ^2.8.3 -> ^2.8.4 |
Release Notes
facebook/jest
v29.4.2
Features
-
[@jest/core]
Instrument significant lifecycle events withperformance.mark()
(#13859)
Fixes
-
[expect, @​jest/expect]
Provide type ofactual
as a generic argument toMatchers
to allow better-typed extensions (#13848) -
[jest-circus]
Added explicit mention of test failing becausedone()
is not being called in error message (#13847) -
[jest-runtime]
Handle CJS re-exports of node core modules from ESM (#13856) -
[jest-transform]
Downgradewrite-file-atomic
to v4 (#13853) -
[jest-worker]
Ignore IPC messages not intended for Jest (#13543)
Chore & Maintenance
prettier/prettier
v2.8.4
readonly
(#13427 by @thorn0, @sosukesuzuki)
Fix leading comments in mapped types with // Input
type Type = {
// comment
readonly [key in Foo];
};
// Prettier 2.8.3
type Type = {
readonly // comment
[key in Foo];
};
// Prettier 2.8.4
type Type = {
// comment
readonly [key in Foo];
};
#14067 by @jamescdavis)
Group params in opening block statements (This is a follow-up to #13930 to establish wrapping consistency between opening block statements and else blocks by grouping params in opening blocks. This causes params to break to a new line together and not be split across lines unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the same as opening blocks.
{{! Input }}
{{#block param param param param param param param param param param as |blockParam|}}
Hello
{{else block param param param param param param param param param param as |blockParam|}}
There
{{/block}}
{{! Prettier 2.8.3 }}
{{#block
param
param
param
param
param
param
param
param
param
param
as |blockParam|
}}
Hello
{{else block param
param
param
param
param
param
param
param
param
param}}
There
{{/block}}
{{! Prettier 2.8.4 }}
{{#block
param param param param param param param param param param
as |blockParam|
}}
Hello
{{else block
param param param param param param param param param param
as |blockParam|
}}
There
{{/block}}
.sl/
(#14206 by @bolinfest)
Ignore files in In Sapling SCM, .sl/
is the folder where it stores its state, analogous to .git/
in Git. It should be ignored in Prettier like the other SCM folders.
@satisfies
in Closure-style type casts (#14262 by @fisker)
Recognize // Input
const a = /** @​satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @​type {Record<string, string>} */ ({hello: 1337});
// Prettier 2.8.3
const a = /** @​satisfies {Record<string, string>} */ { hello: 1337 };
const b = /** @​type {Record<string, string>} */ ({ hello: 1337 });
// Prettier 2.8.4
const a = /** @​satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @​type {Record<string, string>} */ ({hello: 1337});
extends
(#14279 by @fisker)
Fix parens in inferred function return types with // Input
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;
// Prettier 2.8.3 (First format)
type Foo<T> = T extends (a) => a is infer R extends string ? R : never;
// Prettier 2.8.3 (Second format)
SyntaxError: '?' expected.
// Prettier 2.8.4
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.