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 all non-major dependencies #368

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 20, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@testing-library/jest-dom ^5.16.5 -> ^5.17.0 age adoption passing confidence
@types/node (source) ^16.18.3 -> ^16.18.97 age adoption passing confidence
@types/react (source) ^18.0.25 -> ^18.3.3 age adoption passing confidence
@types/react (source) 17.0.52 -> 17.0.80 age adoption passing confidence
@types/react-dom (source) ^18.0.9 -> ^18.3.0 age adoption passing confidence
@types/react-dom (source) 17.0.18 -> 17.0.25 age adoption passing confidence
bootstrap (source) ^5.2.2 -> ^5.3.3 age adoption passing confidence
prettier (source) ^2.7.1 -> ^2.8.8 age adoption passing confidence
react (source) ^18.2.0 -> ^18.3.1 age adoption passing confidence
react-bootstrap (source) ^2.6.0 -> ^2.10.2 age adoption passing confidence
react-bootstrap (source) ^1.6.6 -> ^1.6.8 age adoption passing confidence
react-dom (source) ^18.2.0 -> ^18.3.1 age adoption passing confidence
react-router-dom (source) ^6.4.3 -> ^6.23.1 age adoption passing confidence
typescript (source) ^4.9.3 -> ^4.9.5 age adoption passing confidence
typescript (source) 4.9.3 -> 4.9.5 age adoption passing confidence

Release Notes

testing-library/jest-dom (@​testing-library/jest-dom)

v5.17.0

Compare Source

Features
  • New toHaveAccessibleErrorMessage better implementing the spec, deprecate toHaveErrorMessage (#​503) (d717c66)
twbs/bootstrap (bootstrap)

v5.3.3

Compare Source

Highlights

  • Fixed a breaking change introduced with color modes where it was required to manually import variables-dark.scss when building Bootstrap with Sass. Now, _variables.scss will automatically import _variables-dark.scss. If you were already importing _variables-dark.scss manually, you should keep doing it as it won't break anything and will be the way to go in v6.
  • Fixed a regression in the selector engine that wasn't able to handle multiple IDs anymore.

Color modes

  • Badges now use the .text-bg-* text utilities to be certain that the text is always readable (especially when the customized colors are different in light and dark modes).
  • Fixed our color-modes.js script to handle the case where the OS is set to light mode and the auto color mode is used on the website. If you copied the script from our docs, you should apply this change to your own script.
  • Fixed color schemes description in the color modes documentation to show that color-scheme() only accept light and dark values as parameters.

Miscellaneous

  • Allowed <dl>, <dt> and <dd> in the sanitizer.
  • Dropped evenly items distribution for modal and offcanvas headers.
  • Fixed the accordion CSS selectors to avoid inheritance issues when nesting accordions.
  • Fixed the focus box-shadow for the validation stated form controls.
  • Fixed the focus ring on focused checked buttons.
  • Fixed the product example mobile navbar toggler.
  • Changed the RTL processing of carousel control icons.

🎨 CSS

  • #​37508: Use child combinators to avoid inheriting parent accordion's flush styles
  • #​38719: Fix focus box-shadow for validation stated form-controls
  • #​38884: fix border-radius on radio-switch
  • #​39294: Tests: update navbar in visual modal test
  • #​39373: refactor css: modal and offcanvas header spacing
  • #​39380: Fix Sass compilation breaking change in v5.3
  • #​39387: docs: fix typo
  • #​39411: Optimize the accordion icon
  • #​39497: Fix a typo
  • #​39536: Changed RTL processing of carousel control icons
  • #​39560: Drop --bs-accordion-btn-focus-border-color and deprecate $accordion-button-focus-border-color
  • #​39595: CSS: Fix the focus ring on focused checked buttons

☕️ JavaScript

📖 Docs

  • #​39200: Typo Fix
  • #​39214: Doc: use .text-bg-{color} for all badges
  • #​39246: Docs: fix for example code blocks have unnecessary 30px right-margin
  • #​39249: Doc: consistent rendering of 'Heads up!' callouts
  • #​39281: Fix getOrCreateInstance() doc example
  • #​39293: Update background.md
  • #​39304: Doc: add expanded accordion explanation
  • #​39320: Drop .table-light from table foot example
  • #​39340: Doc: add dispose() to Offcanvas methods
  • #​39378: Docs: fix sentence in modal
  • #​39417: Fix color schemes description in Sass customization documentation
  • #​39418: Docs: change vite config path import in vite guide
  • #​39435: Docs: add shift-color() usage example in sass customization page
  • #​39458: Docs: enhance .card-img-* description
  • #​39503: Minor image compression improvements
  • #​39519: Docs: use consistent HTML elements in Utilities -> Background page
  • #​39520: Docs: drop unused .theme-icon class
  • #​39528: docs: clean up example.html
  • #​39537: Docs: fix desc around deprecated Sass mixins for alerts and list groups
  • #​39539: Update links on get-started page
  • #​39592: Update vite.md
  • #​39604: Fix typo in 'media-breakpoint-between' in migration docs
  • #​39617: Docs: add missing comma in native font stack code source in Content -> Reboot
  • #​39663: updated table to be responsive

🛠 Examples

  • #​39657: Fix product example mobile navbar toggler
  • #​39585: Docs: Add missing type="button" to Cheatsheet nav buttons

🏭 Tests

  • #​39294: Tests: update navbar in visual modal test

🧰 Misc

📦 Dependencies

v5.3.2

Compare Source

Highlights

  • Passing a percentage unit to the global abs() is deprecated since Dart Sass v1.65.0. It resulted in a deprecation warning when compiling Bootstrap with Dart Sass. This has been fixed internally by changing the values passed to the divide() function. The divide() function has not been fixed itself so that we can keep supporting node-sass cross-compatibility. In v6, this won't be an issue as we plan to drop support for node-sass.
  • Using multiple ids in a collapse target wasn't working anymore and has been fixed.

Color modes

  • Increased color contrast of form range track background in light and dark modes.
  • Fixed table state rendering for color modes with a focus on the striped table in dark mode to increase color contrast.
  • Allow <mark> color customization for color modes.

Docs


🎨 CSS

  • #​38816: Use box-shadow CSS variables shadow utilities
  • #​38955: Fix radios looking like ellipse on responsive mode
  • #​38976: Use box-shadow CSS vars instead of Sass vars in assets and variables
  • #​39030: Fix dart-sass deprecation warning
  • #​39033: Color mode: fix table state rendering
  • #​39095: Make form range track background more contrasted
  • #​39119: New Sass var $btn-link-focus-shadow-rgb to allow customization
  • #​39141: New Sass variable to handle <mark> dark mode bg color

☕️ JavaScript

📖 Docs

  • #​38873: Discord reddit bootstrap
  • #​38970: docs: add BootstrapVueNext to docs
  • #​38977: Docs: Add missing form elements in focusable elements
  • #​38978: Docs: Fix popover template role error
  • #​38995: introduction: drop details element
  • #​39037: Further improve image compression with oxipng and the latest jpegoptim
  • #​39054: Docs: Remove incorrect mention of .left- and .right- utilities from migration guide
  • #​39060: Migration: add back v5.0.0 heading
  • #​39145: Docs: add warning callout to add a workaround when jsDelivr is not available
  • #​39177: Fix: make theme selector tick icon visible when active in examples layout
  • #​39179: download: Reword CDN paragraph

🛠 Examples

  • #​38994: examples: update 3rd-party packages
  • #​39086: Correct grammar error in examples/starter-template

🌎 Accessibility

  • #​38978: Docs: Fix popover template role error
  • #​39095: Make form range track background more contrasted

🧰 Misc

  • #​38983: Improve change-version script
  • #​38984: Convert build scripts to ESM
  • #​39021: CI: update permissions for calibreapp-image-actions.yml

📦 Dependencies

v5.3.1

Compare Source

Highlights

  • Color modes:
    • Increased color contrast for dark mode by replacing $gray-500 with $gray-300 for the body color
    • Added our color mode switcher JavaScript to our examples ZIP download
  • Components:
    • Improved disabled styling for all .nav-links, providing .disabled and :disabled for use with anchors and buttons
    • Add support for Home and End keys for navigating tabs by keyboard
    • Added some basic styling to toggle buttons when no modifier class is present
    • Fixed carousel colors in dark mode
  • Forms:
    • Fixed floating label disabled text color
  • Utilities:
    • .text-bg-* utilities now use CSS variables
  • Sass:
    • Add new $navbar-dark-icon-color Sass variable
    • Removed duplicate $alert Sass variables
    • Added a new variable for $vr-border-width to customize the vertical rule helper width
  • Documentation:
    • Added search to our homepage
    • Improved responsive behavior on Dashboard example
    • Improved dark mode rendering of Cheatsheet examples

🎨 CSS

  • #​38913: Floating labels: fix disabled with text inside
  • #​38772: .text-bg-* helpers now use theme CSS variables
  • #​38886: New Sass variable to change vertical rule width
  • #​38851: Fix Sass properties order for newer stylelint-config-recess-order
  • #​38815: Increase contrast in dark-mode (#​38525)
  • #​38774: Generalize disabled nav links CSS rules
  • #​38673: Add $navbar-dark-icon-color
  • #​38674: Remove duplicate $alert-*-scale Sass vars

☕️ JavaScript

  • #​38498: Support Home and End keys in tabs

📖 Docs

  • #​38958: Examples: improve spinner buttons accessibility
  • #​38947: Fix postcss plugin options
  • #​38885: Docs: Update float responsive examples
  • #​38946: Docs: remove v4 reference on homepage
  • #​38948: Fix some typos in Customize > Sass doc
  • #​38840: Docs: fix carousel carousel colors of carousel examples in dark mode
  • #​38604: Add dropdown alignment options to button group example
  • #​38894: Docs: add blank target and noopener rel to footer external links
  • #​38902: Fix tooltip generated markup documentation
  • #​38883: Docs: Fix incorrect class name on migration guide
  • #​38708: add a base class style display for toggle buttons
  • #​38827: Docs: add missing aria-disabled='true' to disabled anchors
  • #​38844: Fix for text-reset example class name
  • #​38838: JS/SCSS shortcodes: Add new feature to remove nested calls inside.
  • #​38850: Add docs search to homepage
  • #​38872: Docs: Improve Text Alignment Example
  • #​38865: Fix custom-radio class name on migration guide
  • #​38786: Explicitly add missing opacity-0 helper class example for clarity.
  • #​38707: Update bottom border on dark navbar example
  • #​38726: Update flex utilities link in navs docs
  • #​38734: Minor fixes for Docs Versions page
  • #​38745: Fix stack examples
  • #​38751: Docs (tooltips): Fix "them" typo in markup section
  • #​38688: Fix missing word issue on nav-tabs page
  • #​38681: Docs: consistency between custom buttons, popovers and tooltips
  • #​38600: collate distribution interval
  • #​38632: docs(spinners): improve buttons examples accessibility
  • #​38583: Docs: add more details on accessibility tips
  • #​38554: Doc: fix 'Events' JS example
  • #​38592: docs(forms): switch to aria-describedby
  • #​38542: Use .d-none instead of inline styling
  • #​38616: Add 'Issues assignment' section to the Contributing Guidelines
  • #​38528: Adding a link to clearfix
  • #​38538: Update Sass docs to mention compiling and including
  • #​38623: Fix disabled element tooltip StackBlitz

🛠 Examples

  • #​38958: Examples: improve spinner buttons accessibility
  • #​38952: dashboard: fix offcanvas md display
  • #​38840: Docs: fix carousel carousel colors of carousel examples in dark mode
  • #​38905: Fix dark mode rendering of Cheatsheet examples
  • #​38711: Fix link colors in Sidebars example

🌎 Accessibility

  • #​38958: Examples: improve spinner buttons accessibility
  • #​38498: Support Home and End keys in tabs
  • #​38827: Docs: add missing aria-disabled='true' to disabled anchors
  • #​38850: Add docs search to homepage
  • #​38774: Generalize disabled nav links CSS rules
  • #​38632: docs(spinners): improve buttons examples accessibility
  • #​38583: Docs: add more details on accessibility tips
  • #​38592: docs(forms): switch to aria-describedby

🧰 Misc

  • #​38747: Add color-modes.js to bootstrap-x.y.z-examples.zip

📦 Dependencies

v5.3.0

Compare Source

v5.2.3

Compare Source

Fixes

🎨 CSS
  • #​37377: Import root in bootstrap-utilities
  • #​37425: Fix deprecation warning with sass 1.56.0
  • #​37266: Carousel: Fix RTL translate() direction
☕️ JavaScript
  • #​37235: fix tooltip/popper disposal inconsistencies
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 {
  @&#8203;decorator()
  get foo () {}
  
  @&#8203;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 |   @&#8203;decorator()
    |   ^^^^^^^^^^^^
  6 |   set foo (value) {}
  7 | }

// Prettier 2.8.7
class A {
  @&#8203;decorator()
  get foo() {}

  @&#8203;decorator()
  set foo(value) {}
}

v2.8.6

Compare Source

diff

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

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

// Prettier 2.8.6
class A {
  @&#8203;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 {
  @&#8203;(myDecoratorArray[0])
  greet() {}
}

// Prettier 2.8.4
class Person {
  @&#8203;myDecoratorArray[0]
  greet() {}
}

// Prettier 2.8.5
class Person {
  @&#8203;(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

facebook/react (react)

v18.3.1

Compare Source

v18.3.0

Compare Source

react-bootstrap/react-bootstrap (react-bootstrap)

v2.10.2

Compare Source

Bug Fixes

v2.10.1

Compare Source

Bug Fixes

v2.10.0

Compare Source

Bug Fixes
Features

2.9.2 (2023-12-22)

Bug Fixes
  • AccordionBody: add AccordionBody to index exports (#​6732) (d34244b)
  • Dropdown: prevent flickering on 'mousedown' rootCloseEvent (#​6714) (a58a0cd)
  • Navbar: add missing type for sti

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the renovatebot label Feb 20, 2023
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 3 times, most recently from 613be83 to 88de173 Compare March 2, 2023 04:53
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 3 times, most recently from 1cdc984 to 08b3941 Compare March 14, 2023 06:33
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 8 times, most recently from 3a0f556 to acea98e Compare March 25, 2023 23:57
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 5 times, most recently from 3856c70 to 351a59f Compare April 2, 2023 11:52
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 2 times, most recently from 1df167d to 82715c0 Compare April 10, 2023 13:03
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 3 times, most recently from c9d157d to 1b3e2fb Compare April 17, 2023 19:15
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 3 times, most recently from 80bb954 to d92a341 Compare June 1, 2023 20:11
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 2 times, most recently from a8d60be to b6f524c Compare June 7, 2023 21:08
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 4 times, most recently from 4c16dca to e912834 Compare March 25, 2024 12:00
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 6 times, most recently from 47f6993 to 0c3aa02 Compare March 30, 2024 07:03
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 6 times, most recently from d2b9d5f to da9b64d Compare April 9, 2024 09:31
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 4 times, most recently from ec2c6e7 to aa58c60 Compare April 16, 2024 00:56
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 5 times, most recently from c16f640 to 9a90195 Compare April 26, 2024 21:28
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 3 times, most recently from f2a04f6 to 2c67a49 Compare May 11, 2024 14:41
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from 2c67a49 to db391e6 Compare May 23, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants