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

Update dependency prettier to v3.4.2 #333

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

Conversation

titouanmathis
Copy link
Contributor

@titouanmathis titouanmathis commented Dec 2, 2024

This PR contains the following updates:

Package Type Update Change
prettier (source) devDependencies minor 3.3.3 -> 3.4.2

Release Notes

prettier/prettier (prettier)

v3.4.2

Compare Source

diff

Treat U+30A0 & U+30FB in Katakana Block as CJK (#​16796 by @​tats-u)

Prettier doesn't treat U+30A0 & U+30FB as Japanese. U+30FB is commonly used in Japanese to represent the delimitation of first and last names of non-Japanese people or “and”. The following “C言語・C++・Go・Rust” means “C language & C++ & Go & Rust” in Japanese.

<!-- Input (--prose-wrap=never) -->

C言
語
・
C++
・
Go
・
Rust

<!-- Prettier 3.4.1 -->
C言語・ C++ ・ Go ・ Rust

<!-- Prettier 3.4.2 -->
C言語・C++・Go・Rust

U+30A0 can be used as the replacement of the - in non-Japanese names (e.g. “Saint-Saëns” (Charles Camille Saint-Saëns) can be represented as “サン゠サーンス” in Japanese), but substituted by ASCII hyphen (U+002D) or U+FF1D (full width hyphen) in many cases (e.g. “サン=サーンス” or “サン=サーンス”).

Fix comments print on class methods with decorators (#​16891 by @​fisker)
// Input
class A {
  @&#8203;decorator
  /** 
   * The method description
   *
  */
  async method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}

// Prettier 3.4.1
class A {
  @&#8203;decorator
  async /**
   * The method description
   *
   */
  method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}

// Prettier 3.4.2
class A {
  @&#8203;decorator
  /**
   * The method description
   *
   */
  async method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}
Fix non-idempotent formatting (#​16899 by @​seiyab)

This bug fix is not language-specific. You may see similar change in any languages. This fixes regression in 3.4.0 so change caused by it should yield same formatting as 3.3.3.

// Input
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

// Prettier 3.4.1 (first)
<div>
  foo
  <span>
    longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo
  </span>, abc
</div>;

// Prettier 3.4.1 (second)
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

// Prettier 3.4.2
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

v3.4.1

Compare Source

diff

Remove unnecessary parentheses around assignment in v-on (#​16887 by @​fisker)
<!-- Input -->
<template>
  <button @&#8203;click="foo += 2">Click</button>
</template>

<!-- Prettier 3.4.0 -->
<template>
  <button @&#8203;click="(foo += 2)">Click</button>
</template>

<!-- Prettier 3.4.1 -->
<template>
  <button @&#8203;click="foo += 2">Click</button>
</template>

v3.4.0

Compare Source

diff

🔗 Release Notes


Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" (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.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

This PR has been generated by Renovate Bot.

Copy link

github-actions bot commented Dec 2, 2024

Export Size

Unchanged

@studiometa/ui

Name Size Diff
AbstractPrefetch 1 B -
AbstractScrollAnimation 1 B -
AbstractSliderChild 1 B -
Accordion 1 B -
AccordionItem 1 B -
Action 1 B -
ALL 1 B -
AnchorNav 1 B -
AnchorNavLink 1 B -
AnchorNavTarget 1 B -
AnchorScrollTo 1 B -
animationScrollWithEase 1 B -
ATOMS 1 B -
CircularMarquee 1 B -
Cursor 1 B -
DataBind 1 B -
DataComputed 1 B -
DataEffect 1 B -
DataModel 1 B -
Draggable 1 B -
Figure 1 B -
FigureShopify 1 B -
FigureTwicpics 1 B -
FigureVideo 1 B -
FigureVideoTwicpics 1 B -
Frame 1 B -
FrameAnchor 1 B -
FrameForm 1 B -
FrameTarget 1 B -
LargeText 1 B -
LazyInclude 1 B -
Menu 1 B -
MenuBtn 1 B -
MenuList 1 B -
Modal 1 B -
ModalWithTransition 1 B -
MOLECULES 1 B -
ORGANISMS 1 B -
Panel 1 B -
PrefetchWhenOver 1 B -
PrefetchWhenVisible 1 B -
PRIMITIVES 1 B -
ScrollAnimation 1 B -
ScrollAnimationChild 1 B -
ScrollAnimationChildWithEase 1 B -
ScrollAnimationParent 1 B -
ScrollAnimationWithEase 1 B -
ScrollReveal 1 B -
Sentinel 1 B -
Slider 1 B -
SliderBtn 1 B -
SliderCount 1 B -
SliderDots 1 B -
SliderDrag 1 B -
SliderItem 1 B -
SliderProgress 1 B -
Sticky 1 B -
TableOfContent 1 B -
TableOfContentAnchor 1 B -
Tabs 1 B -
Target 1 B -
Transition 1 B -

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.35%. Comparing base (d19d81c) to head (026ddd7).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #333   +/-   ##
========================================
  Coverage    80.35%   80.35%           
========================================
  Files           96       96           
  Lines         3298     3298           
  Branches       324      324           
========================================
  Hits          2650     2650           
  Misses         648      648           
Flag Coverage Δ
unittests 80.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@titouanmathis titouanmathis changed the title Update dependency prettier to v3.4.1 Update dependency prettier to v3.4.2 Dec 7, 2024
@titouanmathis titouanmathis changed the title Update dependency prettier to v3.4.2 Update dependency prettier to v3.4.2 - autoclosed Dec 8, 2024
@titouanmathis titouanmathis deleted the renovate/prettier-3.x branch December 8, 2024 18:55
@titouanmathis titouanmathis changed the title Update dependency prettier to v3.4.2 - autoclosed Update dependency prettier to v3.4.2 Dec 9, 2024
@titouanmathis titouanmathis reopened this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants