Skip to content

[deps]: Update npm minor #12

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

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

[deps]: Update npm minor #12

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 22, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
husky 9.0.11 -> 9.1.7 age adoption passing confidence
lint-staged 16.0.0 -> 16.1.0 age adoption passing confidence
prettier (source) 3.3.2 -> 3.5.3 age adoption passing confidence

Release Notes

typicode/husky (husky)

v9.1.7

Compare Source

What's Changed

New Contributors

Full Changelog: typicode/husky@v9.1.6...v9.1.7

v9.1.6

Compare Source

What's Changed

New Contributors

Full Changelog: typicode/husky@v9.1.5...v9.1.6

v9.1.5

Compare Source

What's Changed

New Contributors

Full Changelog: typicode/husky@v9.1.4...v9.1.5

v9.1.4

Compare Source

  • Improve deprecation notice

v9.1.3

Compare Source

  • fix: better handle space in PATH

v9.1.2

Compare Source

Show a message instead of automatically removing deprecated code.

This only concerns projects that still have the following code in their hooks:

- #!/usr/bin/env sh # <- This is deprecated, remove it
- . "$(dirname -- "$0")/_/husky.sh"  # <- This is deprecated, remove it

### Rest of your hook code

Hooks with these lines will fail in v10.0.0

v9.1.1

Compare Source

Super saiyan god dog! It's over 9.0.0!

What's new

You can now run package commands directly, no need for npx or equivalents.
It makes writing hooks more intuitive and is also slightly faster 🐺⚡️

### .husky/pre-commit
- npx jest
+ jest # ~0.2s faster

A new recipe has been added to the docs. Lint staged files without external dependencies (inspired by Prettier docs). Feel free to modify it.

### .husky/pre-commit
prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown
git update-index --again

For more advanced use cases, see lint-staged.

Fixes

  • bunx husky init command
  • Workaround for some hooks implementation on Windows

Deprecations

  • #!/usr/bin/env sh and . "$(dirname -- "$0")/_/husky.sh" are deprecated. husky command will automatically remove them, no action required.
  • If you're having code in ~/.huskyrc please move it to .config/husky/init.sh

Support for these will be removed in v10.

Friendly reminder

If Git hooks don't fit your workflow, you can disable Husky globally. Just add export HUSKY=0 to .config/husky/init.sh.

I've seen some confusion about this on X, so just a heads-up!

Sponsoring

Husky is downloaded over 45M times per month and used by ~1.5M projects. If your company wants to sponsor, you can do so here: GitHub Sponsors.

Have a nice summer ☀️ I'm open to new opportunities/consulting so feel free to drop me a message 😉

v9.1.0

Compare Source

lint-staged/lint-staged (lint-staged)

v16.1.0

Compare Source

Minor Changes
  • #​1536 e729daa Thanks @​iiroj! - A new flag --no-revert has been introduced for when task modifications should be applied to the index before aborting the commit in case of errors. By default, lint-staged will clear all task modifications and revert to the original state.

  • #​1550 b27fa3f Thanks @​iiroj! - Lint-staged now ignores symlinks and leaves them out from the list of staged files.

Patch Changes
prettier/prettier (prettier)

v3.5.3

Compare Source

v3.5.2

Compare Source

diff

Remove module-sync condition (#​17156 by @​fisker)

In Prettier 3.5.0, we added module-sync condition to package.json, so that require("prettier") can use ESM version, but turns out it doesn't work if CommonJS and ESM plugins both imports builtin plugins. To solve this problem, we decide simply remove the module-sync condition, so require("prettier") will still use the CommonJS version, we'll revisit until require(ESM) feature is more stable.

v3.5.1

Compare Source

diff

Fix CLI crash when cache for old version exists (#​17100 by @​sosukesuzuki)

Prettier 3.5 uses a different cache format than previous versions, Prettier 3.5.0 crashes when reading existing cache file, Prettier 3.5.1 fixed the problem.

Support dockercompose and github-actions-workflow in VSCode (#​17101 by @​remcohaszing)

Prettier now supports the dockercompose and github-actions-workflow languages in Visual Studio Code.

v3.5.0

Compare Source

diff

🔗 Release Notes

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

v3.3.3

Compare Source

diff

Add parentheses for nullish coalescing in ternary (#​16391 by @​cdignam-segment)

This change adds clarity to operator precedence.

// Input
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;

// Prettier 3.3.2
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;

// Prettier 3.3.3
foo ? (bar ?? foo) : baz;
(foo ?? bar) ? a : b;
a ? b : (foo ?? bar);
Add parentheses for decorator expressions (#​16458 by @​y-schneider)

Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.

// Input
@&#8203;(foo`tagged template`)
class X {}

// Prettier 3.3.2
@&#8203;foo`tagged template`
class X {}

// Prettier 3.3.3
@&#8203;(foo`tagged template`)
class X {}
Support @let declaration syntax (#​16474 by @​sosukesuzuki)

Adds support for Angular v18 @let declaration syntax.

Please see the following code example. The @let declaration allows you to define local variables within the template:

@&#8203;let name = 'Frodo';

<h1>Dashboard for {{name}}</h1>
Hello, {{name}}

For more details, please refer to the excellent blog post by the Angular Team: Introducing @​let in Angular.

We also appreciate the Angular Team for kindly answering our questions to implement this feature.


Configuration

📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team July 22, 2024 01:53
@renovate renovate bot force-pushed the renovate/npm-minor branch 3 times, most recently from a3b2653 to be1d1cb Compare July 29, 2024 15:35
@renovate renovate bot force-pushed the renovate/npm-minor branch from be1d1cb to 256ac6b Compare August 3, 2024 11:02
@renovate renovate bot force-pushed the renovate/npm-minor branch from 256ac6b to 733c8f2 Compare August 13, 2024 07:02
@renovate renovate bot force-pushed the renovate/npm-minor branch from 733c8f2 to 85736dd Compare August 20, 2024 14:43
@renovate renovate bot force-pushed the renovate/npm-minor branch from 85736dd to 197e679 Compare September 1, 2024 16:17
@renovate renovate bot force-pushed the renovate/npm-minor branch 3 times, most recently from 1223399 to ff44f11 Compare September 12, 2024 01:51
@renovate renovate bot force-pushed the renovate/npm-minor branch 2 times, most recently from db11399 to bb96342 Compare September 24, 2024 14:32
Copy link

Logo
Checkmarx One – Scan Summary & Details410b0a73-649b-4c21-9f5b-bcf2b24e97f2

No New Or Fixed Issues Found

@renovate renovate bot force-pushed the renovate/npm-minor branch from bb96342 to 9d63a43 Compare October 3, 2024 13:56
@renovate renovate bot force-pushed the renovate/npm-minor branch 3 times, most recently from 917fc78 to c8306cc Compare October 22, 2024 16:10
@renovate renovate bot requested a review from a team as a code owner October 22, 2024 16:10
@renovate renovate bot force-pushed the renovate/npm-minor branch 5 times, most recently from 55b7ef3 to 2e94d33 Compare November 6, 2024 15:06
@renovate renovate bot force-pushed the renovate/npm-minor branch 5 times, most recently from 55b34d9 to 73c21a8 Compare November 11, 2024 14:50
@renovate renovate bot force-pushed the renovate/npm-minor branch 5 times, most recently from 00f9936 to 317c98d Compare December 2, 2024 22:17
@renovate renovate bot force-pushed the renovate/npm-minor branch 3 times, most recently from 185f273 to 64eeb97 Compare December 10, 2024 18:19
@renovate renovate bot force-pushed the renovate/npm-minor branch 2 times, most recently from 20cc337 to b1d18e6 Compare December 17, 2024 15:41
@renovate renovate bot force-pushed the renovate/npm-minor branch 2 times, most recently from ac99ae0 to caf3a41 Compare December 28, 2024 11:07
@renovate renovate bot force-pushed the renovate/npm-minor branch 4 times, most recently from 749d193 to 16b0eef Compare January 9, 2025 15:00
@renovate renovate bot force-pushed the renovate/npm-minor branch 2 times, most recently from a2a5b5d to 4ee7826 Compare January 16, 2025 18:37
@renovate renovate bot force-pushed the renovate/npm-minor branch 2 times, most recently from 893fb78 to ecc0158 Compare January 26, 2025 14:38
@renovate renovate bot force-pushed the renovate/npm-minor branch 2 times, most recently from e307a55 to 9a41997 Compare February 20, 2025 13:28
@renovate renovate bot force-pushed the renovate/npm-minor branch from 9a41997 to 5292479 Compare March 1, 2025 04:51
@renovate renovate bot force-pushed the renovate/npm-minor branch from 5292479 to 2c95695 Compare March 10, 2025 04:57
@renovate renovate bot force-pushed the renovate/npm-minor branch from 2c95695 to 050e888 Compare March 19, 2025 17:53
@renovate renovate bot force-pushed the renovate/npm-minor branch from 050e888 to 611c056 Compare April 18, 2025 19:17
@renovate renovate bot force-pushed the renovate/npm-minor branch from 611c056 to c85a597 Compare May 13, 2025 12:50
@renovate renovate bot force-pushed the renovate/npm-minor branch from c85a597 to 9cafee5 Compare June 2, 2025 13:21
@renovate renovate bot force-pushed the renovate/npm-minor branch from 9cafee5 to abc9ffd Compare June 3, 2025 18:27
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.

0 participants