Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update devdependencies (non-major) #443

Open
wants to merge 1 commit into
base: alpha
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 4, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@anolilab/prettier-config (source) 2.0.5 -> 2.0.6 age adoption passing confidence
@octokit/fixtures 22.0.2 -> 22.0.7 age adoption passing confidence
@octokit/types 6.34.0 -> 6.41.0 age adoption passing confidence
@types/bluebird (source) 3.5.36 -> 3.5.42 age adoption passing confidence
@types/jest (source) 27.4.0 -> 27.5.2 age adoption passing confidence
@types/js-yaml (source) 4.0.5 -> 4.0.9 age adoption passing confidence
@types/node (source) 16.11.18 -> 16.18.114 age adoption passing confidence
@types/promise-retry (source) 1.1.3 -> 1.1.6 age adoption passing confidence
@types/uuid (source) 8.3.3 -> 8.3.4 age adoption passing confidence
jest (source) 27.4.5 -> 27.5.1 age adoption passing confidence
jest-circus (source) 27.4.5 -> 27.5.1 age adoption passing confidence
prettier (source) 2.5.1 -> 2.8.8 age adoption passing confidence
ts-jest (source) 27.1.2 -> 27.1.5 age adoption passing confidence
typescript (source) 4.5.4 -> 4.9.5 age adoption passing confidence

Release Notes

anolilab/javascript-style-guide (@​anolilab/prettier-config)

v2.0.6

Compare Source

octokit/fixtures (@​octokit/fixtures)

v22.0.7

Compare Source

Bug Fixes

v22.0.6

Compare Source

Bug Fixes

v22.0.5

Compare Source

Bug Fixes

v22.0.4

Compare Source

Bug Fixes

v22.0.3

Compare Source

Bug Fixes
octokit/types.ts (@​octokit/types)

v6.41.0

Compare Source

Features
  • GET /enterprises/{enterprise}/code-scanning/alerts (#​430) (32db4e6)

v6.40.0

Compare Source

  • Add support for new GET /repos/{owner}/{repo}/codespaces/new API operation
  • Update @octokit/openapi-types to latest (v12.10.0)
  • Update scripts/update-endpoints/generated/endpoints.json with latest auto-generated data

v6.39.0

Compare Source

Features
  • add support for specifying a name for the forked repository when creating a fork with POST /repos/{owner}/{repo}/forks (#​409) (c32761b)

v6.38.2

Compare Source

Bug Fixes
  • gracefully rename org_id path parameter for GET /orgs/{org_id}/codespaces to org (2d43e98)
  • remove defunkt GET /repos/{owner}/{repo}/community/code_of_conduct (e937ce6)

v6.38.1

Compare Source

Bug Fixes
  • RequestInterface: Revert method overloading with adding some tests (#​405) (11d6d8f)

v6.38.0

Compare Source

Features
  • add 11 new APIs and support for new retention_period_minutes request body parameter in Codespaces APIs (#​406) (e070137)

v6.37.1

Compare Source

Bug Fixes
  • RequestInterface: make types with VS Code Typeahead and TypeScript 4.7 (#​399) (b5fa0ce)

v6.37.0

Compare Source

Features
  • add new before and after parameters to GET /orgs/{org}/secret-scanning/alerts and GET /repos/{owner}/{repo}/secret-scanning/alerts (a1c008c)

v6.36.0

Compare Source

Features
  • POST /repos/{owner}/{repo}/dependency-graph/snapshots (bcbf0a1)

v6.35.0

Compare Source

Features
  • {GET,DELETE} /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}
  • {GET,PATCH,DELETE} /orgs/{org}/teams/{team_slug}/external-groups
  • {GET,POST,PUT,DELETE} /enterprises/{enterprise}/actions/runners/{runner_id}/labels"
  • {GET,POST,PUT,DELETE} /orgs/{org}/actions/runners/{runner_id}/labels
  • {GET,POST,PUT,DELETE} /repos/{owner}/{repo}/actions/runners/{runner_id}/labels
  • {GET,POST} /repos/{owner}/{repo}/codespaces
  • {GET,POST} /repos/{owner}/{repo}/tags/protection
  • {GET,POST} /user/codespaces, GET /user/codespaces/secrets, GET /user/codespaces/secrets/public-key, {GET,PUT,DELETE} /user/codespaces/secrets/{secret_name}, {GET,PUT} /user/codespaces/secrets/{secret_name}/repositories, {PUT,DELETE} /user/codespaces/secrets/{secret_name}/repositories/{repository_id}, {GET,PATCH,DELETE} /user/codespaces/{codespace_name}, POST /user/codespaces/{codespace_name}/exports, GET /user/codespaces/{codespace_name}/exports/{export_id}, GET /user/codespaces/{codespace_name}/machines, POST /user/codespaces/{codespace_name}/start, POST /user/codespaces/{codespace_name}/stop
  • {GET,PUT,DELETE} /orgs/{org}/dependabot/secrets/{secret_name}
  • {GET,PUT,DELETE} /repos/{owner}/{repo}/codespaces/secrets/{secret_name}
  • {GET,PUT,DELETE} /repos/{owner}/{repo}/dependabot/secrets/{secret_name}
  • {GET,PUT} /orgs/{org}/actions/permissions/workflow
  • {GET,PUT} /orgs/{org}/dependabot/secrets/{secret_name}/repositories
  • {GET,PUT} /repos/{owner}/{repo}/actions/permissions/access
  • {GET,PUT} /repos/{owner}/{repo}/actions/permissions/workflow
  • /organizations/{organization_id}/custom_roles
  • /orgs/{org}/actions/cache/usage
  • DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}
  • DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}
  • DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}
  • DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}
  • DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}
  • GET /enterprise-installation/{enterprise_or_org}/server-statistics
  • GET /enterprises/{enterprise}/actions/cache/usage
  • GET /enterprises/{enterprise}/actions/permissions/workflow
  • GET /enterprises/{enterprise}/actions/runner-groups - visible-to-organization paramter
  • GET /enterprises/{enterprise}/secret-scanning/alerts
  • GET /enterprises/{enterprise}/settings/billing/advanced-security
  • GET /orgs/{org}/actions/cache/usage-by-repository
  • GET /orgs/{org}/actions/runner-groups - new parameter: visible_to_repository
  • GET /orgs/{org}/code-scanning/alerts
  • GET /orgs/{org}/credential-authorizations - new parameters: per_page, page, login
  • GET /orgs/{org}/dependabot/secrets/public-key
  • GET /orgs/{org}/dependabot/secrets
  • GET /orgs/{org}/external-group/{group_id}
  • GET /orgs/{org}/external-groups
  • GET /orgs/{org}/secret-scanning/alerts - new parameters: sort, direction
  • GET /orgs/{org}/settings/billing/advanced-security
  • GET /repos/{owner}/{repo}/codeowners/errors
  • GET /repos/{owner}/{repo}/codespaces/devcontainers
  • GET /repos/{owner}/{repo}/codespaces/machines
  • GET /repos/{owner}/{repo}/codespaces/secrets/public-key
  • GET /repos/{owner}/{repo}/codespaces/secrets
  • GET /repos/{owner}/{repo}/dependabot/secrets/public-key
  • GET /repos/{owner}/{repo}/dependabot/secrets
  • GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}
  • GET /repos/{owner}/{repo}/releases/{release_id}/reactions
  • GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations
  • PATCH /orgs/{org}/actions/runner-groups/{runner_group_id} - new parameters: allows_public_repositories, restricted_to_workflows, selected_workflows
  • PATCH /orgs/{org} - new parameter: members_can_fork_private_repositories
  • POST /orgs/{org}/actions/runner-groups - new parameters: allows_public_repositories, restricted_to_workflows, selected_workflows
  • POST /orgs/{org}/migrations - new parrameters: exclude_metadata, exclude_git_data, org_metadata_only
  • POST /orgs/{org}/repos - new parameter: use_squash_pr_title_as_default
  • POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun
  • POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs
  • POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces
  • POST /user/migrations - new parrameters: exclude_metadata, exclude_git_data, org_metadata_only
  • PUT /enterprises/{enterprise}/actions/permissions/workflow
  • PUT /orgs/{org}/outside_collaborators/{username} - new parameter: async
  • GET /repos/{owner}/{repo}/actions/cache/usage
  • GET /repos/{owner}/{repo}/actions/runs: new parameter: check_suite_id
  • GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs: new parameter: check_suite_id
  • GET /repos/{owner}/{repo}/code-scanning/alerts: new parameters: direction, sort
  • GET /repos/{owner}/{repo}/environments: new parameters: per_page, page
  • GET /repos/{owner}/{repo}/secret-scanning/alerts: new parameters: direction, sort
  • PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews: new parameters: dismissal_restrictions.apps, bypass_pull_request_allowances
  • PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks: new parameter: checks
  • PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}: new parameter: dismissed_comment
  • PATCH /repos/{owner}/{repo}: secret_scanning_push_protection, use_squash_pr_title_as_default
  • POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun: new parameter: enable_debug_logging
  • POST /user/gpg_keys: new parameter: name
  • PUT /repos/{owner}/{repo}/branches/{branch}/protection: new parameter: required_status_checks.checks, required_pull_request_reviews.{apps,bypass_pull_request_allowances}, block_creations
Bug Fixes
  • POST /app-manifests/{code}/conversions has no request body
  • GET /projects/{project_id}/collaborators/{username}/permission: correct response type and example
  • PATCH /repos/{owner}/{repo}: visibility parameter cannot be set to visibility
  • POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun: no longer deprecated
  • remove defunkt DELETE /reactions/{reaction_id}
  • remove defunkt POST /repos/{owner}/{repo}/content_references/{content_reference_id}/attachments
jestjs/jest (jest)

v27.5.1

Compare Source

Features
  • [jest-config] Support comments in JSON config file (#​12316)
  • [pretty-format] Expose ConvertAnsi plugin (#​12308)
Fixes
  • [expect] Add type definitions for asymmetric closeTo matcher (#​12304)
  • [jest-cli] Load binary via exported API (#​12315)
  • [jest-config] Replace jsonlint with parse-json (#​12316)
  • [jest-repl] Make module importable (#​12311 & #​12315)
Chore & Maintenance
  • [*] Avoid anonymous default exports (#​12313)

v27.5.0

Compare Source

Features
  • [expect] Add asymmetric matcher expect.closeTo (#​12243)
  • [jest-mock] Added mockFn.mock.lastCall to retrieve last argument (#​12285)
Fixes
  • [expect] Add a fix for .toHaveProperty('') (#​12251)
  • [jest-each, @​jest/globals] Allow passing ReadonlyArray type of a table to describe.each and test.each (#​12297)
  • [@jest/globals] Add missing options argument to jest.doMock typing (#​12292)
  • [jest-environment-node] Add atob and btoa (#​12269)
  • [jest-matcher-utils] Correct diff for expected asymmetric matchers (#​12264)
  • [jest-message-util] Fix .getTopFrame() (and toMatchInlineSnapshot()) with mjs files (#​12277)
Chore & Maintenance
  • [*] Update graceful-fs to ^4.2.9 (#​11749)
Performance
  • [jest-resolve] perf: skip error creation on not found stat calls (#​11749)

v27.4.7

Compare Source

Fixes
  • jest-config Add missing @babel/core dependency (#​12216)

v27.4.6

Compare Source

Fixes
  • [jest-environment-node] Add AbortSignal (#​12157)
  • [jest-environment-node] Add Missing node global performance (#​12002)
  • [jest-runtime] Handle missing mocked property (#​12213)
  • [@jest/transform] Update dependency package pirates to 4.0.4 (#​12002)
Performance
  • jest-config perf: only register ts-node once when loading TS config files (#​12160)
prettier/prettier (prettier)

v2.8.8

Compare Source

This version is a republished version of v2.8.7.
A bad version was accidentally published and it can't be unpublished, apologies for the churn.

v2.8.7

Compare Source

diff

Allow multiple decorators on same getter/setter (#​14584 by @​fisker)
// Input
class A {
  @​decorator()
  get foo () {}
  
  @​decorator()
  set foo (value) {}
}

// Prettier 2.8.6
SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3)
  3 |   get foo () {}
  4 |   
> 5 |   @​decorator()
    |   ^^^^^^^^^^^^
  6 |   set foo (value) {}
  7 | }

// Prettier 2.8.7
class A {
  @​decorator()
  get foo() {}

  @​decorator()
  set foo(value) {}
}

v2.8.6

Compare Source

diff

Allow decorators on private members and class expressions (#​14548 by @​fisker)
// Input
class A {
  @​decorator()
  #privateMethod () {}
}

// Prettier 2.8.5
SyntaxError: Decorators are not valid here. (2:3)
  1 | class A {
> 2 |   @​decorator()
    |   ^^^^^^^^^^^^
  3 |   #privateMethod () {}
  4 | }

// Prettier 2.8.6
class A {
  @​decorator()
  #privateMethod() {}
}

v2.8.5

Compare Source

diff

Support TypeScript 5.0 (#​14391 by @​fisker, #​13819 by @​fisker, @​sosukesuzuki)

TypeScript 5.0 introduces two new syntactic features:

  • const modifiers for type parameters
  • export type * declarations
Add missing parentheses for decorator (#​14393 by @​fisker)
// Input
class Person {
  @​(myDecoratorArray[0])
  greet() {}
}

// Prettier 2.8.4
class Person {
  @​myDecoratorArray[0]
  greet() {}
}

// Prettier 2.8.5
class Person {
  @​(myDecoratorArray[0])
  greet() {}
}
Add parentheses for TypeofTypeAnnotation to improve readability (#​14458 by @​fisker)
// Input
type A = (typeof node.children)[];

// Prettier 2.8.4
type A = typeof node.children[];

// Prettier 2.8.5
type A = (typeof node.children)[];
Support max_line_length=off when parsing .editorconfig (#​14516 by @​josephfrazier)

If an .editorconfig file is in your project and it sets max_line_length=off for the file you're formatting,
it will be interpreted as a printWidth of Infinity rather than being ignored
(which previously resulted in the default printWidth of 80 being applied, if not overridden by Prettier-specific configuration).

<!-- Input -->
<div className='HelloWorld' title={`You are visitor number ${ num }`} onMouseOver={onMouseOver}/>

<!-- Prettier 2.8.4 -->
<div
  className="HelloWorld"
  title={`You are visitor number ${num}`}
  onMouseOver={onMouseOver}
/>;

<!-- Prettier 2.8.5 -->
<div className="HelloWorld" title={`You are visitor number ${num}`} onMouseOver={onMouseOver} />;

v2.8.4

Compare Source

diff

Fix leading comments in mapped types with readonly (#​13427 by @​thorn0, @​sosukesuzuki)
// 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];
};
Group params in opening block statements (#​14067 by @​jamescdavis)

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}}
Ignore files in .sl/ (#​14206 by @​bolinfest)

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.

Recognize @satisfies in Closure-style type casts (#​14262 by @​fisker)
// Input
const a = /** @&#8203;satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @&#8203;type {Record<string, string>} */ ({hello: 1337});

// Prettier 2.8.3
const a = /** @&#8203;satisfies {Record<string, string>} */ { hello: 1337 };
const b = /** @&#8203;type {Record<string, string>} */ ({ hello: 1337 });

// Prettier 2.8.4
const a = /** @&#8203;satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @&#8203;type {Record<string, string>} */ ({hello: 1337});
Fix parens in inferred function return types with extends (#​14279 by @​fisker)
// 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;

v2.8.3

Compare Source

diff

Allow self-closing tags on custom elements (#​14170 by @​fisker)

See Angular v15.1.0 release note for details.

// Input
<app-test/>

// Prettier 2.8.2
SyntaxError: Only void and foreign elements can be self closed "app-test" (1:1)
> 1 | <app-test/>
    | ^^^^^^^^^
  2 |

// Prettier 2.8.3
<app-test />

v2.8.2

Compare Source

diff

Don't lowercase link references (#​13155 by @​DerekNonGeneric & @​fisker)
<!-- Input -->
We now don't strictly follow the release notes format suggested by [Keep a Changelog].

[Keep a Changelog]: https://example.com/

<!-- Prettier 2.8.1 -->
We now don't strictly follow the release notes format suggested by [Keep a Changelog].

[keep a changelog]: https://example.com/
<!--
^^^^^^^^^^^^^^^^^^ lowercased
-->

<!-- Prettier 2.8.2 -->
<Same as input>
Preserve self-closing tags (#​13691 by @​dcyriller)
{{! Input }}
<div />
<div></div>
<custom-component />
<custom-component></custom-component>
<i />
<i></i>
<Component />
<Component></Component>

{{! Prettier 2.8.1 }}
<div></div>
<div></div>
<custom-component></custom-component>
<custom-component></custom-component>
<i></i>
<i></i>
<Component />
<Component />

{{! Prettier 2.8.2 }}
<div />
<div></div>
<custom-component />
<custom-component></custom-component>
<i />
<i></i>
<Component />
<Component />
Allow custom "else if"-like blocks with block params (#​13930 by @​jamescdavis)

#​13507 added support for custom block keywords used with else, but failed to allow block params. This updates printer-glimmer to allow block params with custom "else if"-like blocks.

{{! Input }}
{{#when isAtWork as |work|}}
  Ship that
  {{work}}!
{{else when isReading as |book|}}
  You can finish
  {{book}}
  eventually...
{{else}}
  Go to bed!
{{/when}}

{{! Prettier 2.8.1 }}
{{#when isAtWork as |work|}}
  Ship that
  {{work}}!
{{else when isReading}}
  You can finish
  {{book}}
  eventually...
{{else}}
  Go to bed!
{{/when}}

{{! Prettier 2.8.2 }}
{{#when isAtWork as |work|}}
  Ship that
  {{work}}!
{{else when isReading as |book|}}
  You can finish
  {{book}}
  eventually...
{{else}}
  Go to bed!
{{/when}}
Preserve empty lines between nested SCSS maps (#​13931 by @​jneander)
/* Input */
$map: (
  'one': (
     'key': 'value',
  ),

  'two': (
     'key': 'value',
  ),
)

/* Prettier 2.8.1 */
$map: (
  'one': (
     'key': 'value',
  ),
  'two': (
     'key': 'value',
  ),
)

/* Prettier 2.8.2 */
$map: (
  'one': (
     'key': 'value',
  ),

  'two': (
     'key': 'value',
  ),
)
Fix missing parentheses when an expression statement starts with let[ (#​14000, #​14044 by @​fisker, @​thorn0)
// Input
(let[0] = 2);

// Prettier 2.8.1
let[0] = 2;

// Prettier 2.8.1 (second format)
SyntaxError: Unexpected token (1:5)
> 1 | let[0] = 2;
    |     ^
  2 |

// Prettier 2.8.2
(let)[0] = 2;
Fix semicolon duplicated at the end of LESS file (#​14007 by @​mvorisek)
// Input
@&#8203;variable: {
  field: something;
};

// Prettier 2.8.1
@&#8203;variable: {
  field: something;
}; ;

// Prettier 2.8.2
@&#8203;variable: {
  field: something;
};
Fix no space after unary minus when followed by opening parenthesis in LESS (#​14008 by @​mvorisek)
// Input
.unary_minus_single {
  margin: -(@&#8203;a);
}

.unary_minus_multi {
  margin: 0 -(@&#8203;a);
}

.binary_minus {
  margin: 0 - (@&#8203;a);
}

// Prettier 2.8.1
.unary_minus_single {
  margin: - (@&#8203;a);
}

.unary_minus_multi {
  margin: 0 - (@&#8203;a);
}

.binary_minus {
  margin: 0 - (@&#8203;a);
}

// Prettier 2.8.2
.unary_minus_single {
  margin: -(@&#8203;a);
}

.unary_minus_multi {
  margin: 0 -(@&#8203;a);
}

.binary_minus {
  margin: 0 - (@&#8203;a);
}
Do not change case of property name if inside a variable declaration in LESS (#​14034 by @​mvorisek)
// Input
@&#8203;var: {
  preserveCase: 0;
};

// Prettier 2.8.1
@&#8203;var: {
  preservecase: 0;
};

// Prettier 2.8.2
@&#8203;var: {
  preserveCase: 0;
};
Fix formatting for auto-accessors with comments (#​14038 by @​fisker)
// Input
class A {
  @&#8203;dec()
  // comment
  accessor b;
}

// Prettier 2.8.1
class A {
  @&#8203;dec()
  accessor // comment
  b;
}

// Prettier 2.8.1 (second format)
class A {
  @&#8203;dec()
  accessor; // comment
  b;
}

// Prettier 2.8.2
class A {
  @&#8203;dec()
  // comment
  accessor b;
}
Add parentheses for TSTypeQuery to improve readability (#​14042 by @​onishi-kohei)
// Input
a as (typeof node.children)[number]
a as (typeof node.children)[]
a as ((typeof node.children)[number])[]

// Prettier 2.8.1
a as typeof node.children[number];
a as typeof node.children[];
a as typeof node.children[number][];

// Prettier 2.8.2
a as (typeof node.children)[number];
a as (typeof node.children)[];
a as (typeof node.children)[number][];
Fix displacing of comments in default switch case (#​14047 by @​thorn0)

It was a regression in Prettier 2.6.0.

// Input
switch (state) {
  default:
    result = state; // no change
    break;
}

// Prettier 2.8.1
switch (state) {
  default: // no change
    result = state;
    break;
}

// Prettier 2.8.2
switch (state) {
  default:
    result = state; // no change
    break;
}
Support type annotations on auto accessors via babel-ts (#​14049 by @​sosukesuzuki)

The bug that @babel/parser cannot parse auto accessors with type annotations has been fixed. So we now support it via babel-ts parser.

class Foo {
  accessor prop: number;
}
Fix formatting of empty type parameters (#​14073 by @​fisker)
// Input
const foo: bar</* comment */> = () => baz;

// Prettier 2.8.1
Error: Comment "comment" was not printed. Please report this error!

// Prettier 2.8.2
const foo: bar</* comment */> = () => baz;
Add parentheses to head of ExpressionStatement instead of the whole statement (#​14077 by @​fisker)
// Input
({}).toString.call(foo) === "[object Array]"
  ? foo.forEach(iterateArray)
  : iterateObject(foo);

// Prettier 2.8.1
({}.toString.call(foo) === "[object Array]"
  ? foo.forEach(iterateArray)
  : iterateObject(foo));

// Prettier 2.8.2
({}).toString.call(foo.forEach) === "[object Array]"
  ? foo.forEach(iterateArray)
  : iterateObject(foo);
Fix comments after directive (#​14081 by @​fisker)
// Input
"use strict" /* comment */;

// Prettier 2.8.1 (with other js parsers except `babel`)
Error: Comment "comment" was not printed. Please report this error!

// Prettier 2.8.2
<Same as input>
Fix formatting for comments inside JSX attribute (#​14082 by @​fisker)
// Input
function MyFunctionComponent() {
  <button label=/*old*/"new">button</button>
}

// Prettier 2.8.1
Error: Comment "old" was not printed. Please report this error!

// Prettier 2.8.2
function MyFunctionComponent() {
  <button label=/*old*/ "new">button</button>;
}
Quote numeric keys for json-stringify parser (#​14083 by @​fisker)
// Input
{0: 'value'}

// Prettier 2.8.1
{
  0: "value"
}

// Prettier 2.8.2
{
  "0": "value"
}
Fix removing commas from function arguments in maps (#​14089 by @​sosukesuzuki)
/* Input */
$foo: map-fn(
  (
    "#{prop}": inner-fn($first, $second),
  )
);

/* Prettier 2.8.1 */
$foo: map-fn(("#{prop}": inner-fn($first $second)));

/* Prettier 2.8.2 */
$foo: map-fn(
  (
    "#{prop}": inner-fn($first, $second),
  )
);
Do not insert space in LESS property access (#​14103 by @​fisker)
// Input
a {
  color: @&#8203;colors[@&#8203;white];
}

// Prettier 2.8.1
a {
  color: @&#8203;colors[ @&#8203;white];
}

// Prettier 2.8.2
<Same as input>

v2.8.1

Compare Source

diff

Fix SCSS map in arguments (#​9184 by @​agamkrbit)
// Input
$display-breakpoints: map-deep-merge(
  (
    "print-only": "only print",
    "screen-only": "only screen",
    "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
  ),
  $display-breakpoints
);

// Prettier 2.8.0
$display-breakpoints: map-deep-merge(
  (
    "print-only": "only print",
    "screen-only": "only screen",
    "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, " sm
      ")-1})",
  ),
  $display-breakpoints
);

// Prettier 2.8.1
$display-breakpoints: map-deep-merge(
  (
    "print-only": "only print",
    "screen-only": "only screen",
    "xs-only": "only screen and (max-width: #{map-get($grid-breakpoints, "sm")-1})",
  ),
  $display-breakpoints
);
Support auto accessors syntax (#​13919 by @​sosukesuzuki)

Support for Auto Accessors Syntax landed in TypeScript 4.9.

(Doesn't work well with babel-ts parser)

class Foo {
  accessor foo: number = 3;
}

v2.8.0

Compare Source

diff

🔗 Release Notes

v2.7.1

Compare Source

diff

Keep useful empty lines in description (#​13013 by @​chimurai)

v2.7.0

Compare Source

"""
First line
Second Line
"""
type Person {
name: String
}

v2.6.2

Compare Source

diff

Fix LESS/SCSS format error (#​12536 by @​fisker)
// Input
.background-gradient(@&#8203;cut) {
    background: linear-gradient(
        to right,
        @&#8203;white 0%,
        @&#8203;white (@&#8203;cut - 0.01%),
        @&#8203;portal-background @&#8203;cut,
        @&#8203;portal-background 100%
    );
}

// Prettier 2.6.1
TypeError: Cannot read properties of undefined (reading 'endOffset')

// Prettier 2.6.2
.background-gradient(@&#8203;cut) {
  background: linear-gradient(
    to right,
    @&#8203;white 0%,
    @&#8203;white (@&#8203;cut - 0.01%),
    @&#8203;portal-background @&#8203;cut,
    @&#8203;portal-background 100%
  );
}
Update meriyah to fix several bugs (#​12567 by @​fisker, fixes in meriyah by @​3cp)

Fixes bugs when parsing following valid code:

foo(await bar());
const regex = /.*/ms;
const element = <p>{/w/.test(s)}</p>;
class A extends B {
  #privateMethod() {
    super.method();
  }
}

v2.6.1

Compare Source

diff

Ignore loglevel when printing information (#​12477 by @​fisker)

v2.6.0

Compare Source

prettier --loglevel silent --find-config-path index.js

kulshekhar/ts-jest (ts-jest)

v27.1.5

Compare Source

Bug Fixes

v27.1.4

Compare Source

Bug Fixes

v27.1.3

Compare Source

Bug Fixes
  • compiler: update memory cache for compiler using received file content (#​3194) (e4d9541)
microsoft/TypeScript (typescript)

v4.9.5: TypeScript 4.9.5

Compare Source

For release notes, check out the release announcement.

Downloads are available on:

Changes:

v4.9.4: TypeScript 4.9.4

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

Changes:


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from prisis as a code owner January 4, 2022 19:31
@renovate renovate bot added Changed Changelog Changed dependency Pull requests that update a dependency file labels Jan 4, 2022
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from 74efbd5 to 3889e11 Compare January 4, 2022 23:29
@renovate renovate bot changed the title chore(deps): update dependency @types/node to v16.11.19 chore(deps): update devdependencies (non-major) Jan 4, 2022
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 3 times, most recently from 94e7fe9 to 05a94ee Compare January 6, 2022 08:38
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 4 times, most recently from b7e37a6 to 4fde307 Compare January 18, 2022 20:02
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from 4fde307 to cba5ab9 Compare January 20, 2022 19:47
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 2 times, most recently from de5fed4 to 39bd347 Compare February 5, 2022 10:43
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 4 times, most recently from 29ca2ba to bbd13ca Compare February 14, 2022 22:01
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 3 times, most recently from 84635dd to d9980a0 Compare March 1, 2022 01:09
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from d9980a0 to 909efdf Compare March 26, 2022 15:20
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from 909efdf to 7dde247 Compare April 25, 2022 01:50
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from 7dde247 to a267aab Compare May 15, 2022 23:01
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 2 times, most recently from 3cf962d to e906124 Compare June 23, 2022 19:05
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from e906124 to 128c521 Compare September 25, 2022 14:47
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from 128c521 to 2d834ef Compare March 1, 2023 10:50
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from 2d834ef to 8ed4dcf Compare March 17, 2023 01:52
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 3 times, most recently from 6b97104 to ec911d3 Compare March 6, 2024 17:25
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 3 times, most recently from aa7b8cf to 402dd9a Compare March 18, 2024 20:34
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from 402dd9a to 96a5fea Compare March 19, 2024 15:14
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 3 times, most recently from 80acd23 to a8dfb2e Compare April 5, 2024 23:13
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from a8dfb2e to b9c26a4 Compare April 9, 2024 06:22
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from b9c26a4 to d749e77 Compare May 6, 2024 19:39
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from d749e77 to b4f7a8e Compare June 4, 2024 00:17
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 3 times, most recently from 077d6bc to 2209758 Compare June 20, 2024 22:35
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 3 times, most recently from e940e64 to fadf233 Compare July 23, 2024 19:48
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from fadf233 to 21b73b0 Compare August 9, 2024 20:21
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from 21b73b0 to 6ff86b0 Compare August 26, 2024 13:47
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 2 times, most recently from 2d39048 to 946a1bc Compare September 5, 2024 00:57
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch 4 times, most recently from 1bdaaf1 to abe9b60 Compare September 27, 2024 18:56
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from abe9b60 to 989b747 Compare October 8, 2024 00:10
@renovate renovate bot force-pushed the renovate/devdependencies-(non-major) branch from 989b747 to add9a9f Compare October 17, 2024 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Changelog Changed dependency Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants