refactor: update all (major)

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/fs-extra (source) 9.0.13 -> 11.0.1 age adoption passing confidence
commander 10.0.0 -> 11.0.0 age adoption passing confidence
conventional-changelog-cli (source) 2.2.2 -> 3.0.0 age adoption passing confidence
del 6.1.1 -> 7.0.0 age adoption passing confidence
eslint-plugin-jsdoc 39.7.4 -> 46.4.4 age adoption passing confidence
eslint-plugin-prettier 4.2.1 -> 5.0.0 age adoption passing confidence
eslint-plugin-unicorn 45.0.2 -> 48.0.0 age adoption passing confidence
fs-extra 10.1.0 -> 11.1.1 age adoption passing confidence
glob 8.1.0 -> 10.3.3 age adoption passing confidence
prettier (source) 2.8.3 -> 3.0.0 age adoption passing confidence
rimraf 3.0.2 -> 5.0.1 age adoption passing confidence

Release Notes

tj/commander.js (commander)

v11.0.0

Compare Source

Fixed
  • help command works when help option is disabled ([#​1864])
Changed
  • leading and trailing spaces are now ignored by the .arguments() method ([#​1874])
  • refine "types" exports for ESM to follow TypeScript guidelines ([#​1886])
  • Breaking: Commander 11 requires Node.js v16 or higher

v10.0.1

Compare Source

Added
Fixed
  • remove unused Option.optionFlags property from TypeScript definition ([#​1844])
Changed
  • assume boolean option intended if caller passes string instead of hash to .implies() ([#​1854])
conventional-changelog/conventional-changelog (conventional-changelog-cli)

v3.0.0: conventional-changelog-cli: v3.0.0

Compare Source

BREAKING CHANGES
  • now all promises are native
  • Node >= 14 is required
Code Refactoring
sindresorhus/del (del)

v7.0.0

Compare Source

Breaking
  • Require Node.js 14 (#​143) 106d7d8
  • This package is now pure ESM. Please read this.
  • Moved from a default export to named exports:
    • require('del')import {deleteAsync} from 'del'
    • require('del').syncimport {deleteSync} from 'del'
gajus/eslint-plugin-jsdoc (eslint-plugin-jsdoc)

v46.4.4

Compare Source

Bug Fixes

v46.4.3

Compare Source

Bug Fixes
  • match-description: drop throws and yields from being reported for non-empty descriptions by nonemptyTags default; #​1126 (03578ca)

v46.4.2

Compare Source

Bug Fixes
  • require-jsdoc: do not report MethodDefinition with non-public accessibility; fixes #​1124 (00922c3)

v46.4.1

Compare Source

Bug Fixes
  • require-jsdoc: do not report PropertyDefinition's with non-public accessibility; fixes #​1122 (1e45ae4)

v46.4.0

Compare Source

Features

v46.3.0

Compare Source

Bug Fixes
  • make name required on [@template](https://github.com/template) for non-JSDoc modes (467441b)
Features
  • match-description: ensure [@desc](https://github.com/desc) checked by default; check more desc-like tags by default; check non-empty tags; #​233 (1b9d9e4)

v46.2.6

Compare Source

Bug Fixes
  • imports-as-dependencies: do not log missing package.json when rule is not active; fixes #​1117 (3a5dd7d)

v46.2.5

Compare Source

Bug Fixes

v46.2.4

Compare Source

Bug Fixes
  • imports-as-dependencies: allow relative paths (7469e59)

v46.2.3

Compare Source

Bug Fixes
  • imports-as-dependencies: catch typings as possible publishing source (e3b0d0c)

v46.2.2

Compare Source

Bug Fixes
  • imports-as-dependencies: don't report TypeScript proper (75b6b8c)

v46.2.1

Compare Source

Bug Fixes
  • imports-as-dependencies: check for types in package.json and if not present, check [@types](https://github.com/types); fixes #​1107 (785fb26)

v46.2.0

Compare Source

Features
  • imports-as-dependencies: add new rule to detect missing dependencies for import statements; fixes #​896 (d7ec6e0)

v46.1.0

Compare Source

Features
  • require-returns: per-context forceRequireReturn; fixes #​757 (31b3a24)

v46.0.0

Compare Source

Features
  • no-defaults: make no-defaults on by default (034ade1)
BREAKING CHANGES
  • no-defaults: Removes default values. Disable the rule if removal not desired.

Also:

  • docs: adds info on TS recommended rules

v45.0.0

Compare Source

Features
  • add recommended-typescript-flavor configs (6042b77)
  • for typescript configs, disable no-undefined-types; fixes #​888 (ec41b90)
BREAKING CHANGES
  • This should only impact users of typescript configs. TS should itself handle checking for undefined types, so the (imperfect) rule has been disabled for such users.

v44.2.7

Compare Source

v44.2.6

Compare Source

v44.2.5

Compare Source

v44.2.4

Compare Source

v44.2.3

Compare Source

v44.2.2

Compare Source

v44.2.1

Compare Source

v44.2.0

Compare Source

v44.1.0

Compare Source

v44.0.2

Compare Source

v44.0.1

Compare Source

v44.0.0

Compare Source

v43.2.0

Compare Source

v43.1.1

Compare Source

v43.1.0

Compare Source

v43.0.9

Compare Source

v43.0.8

Compare Source

v43.0.7

Compare Source

v43.0.6

Compare Source

v43.0.5

Compare Source

v43.0.4

Compare Source

v43.0.3

Compare Source

v43.0.2

Compare Source

v43.0.1

Compare Source

v43.0.0

Compare Source

v42.0.0

Compare Source

v41.1.2

Compare Source

v41.1.1

Compare Source

v41.1.0

Compare Source

v41.0.0

Compare Source

v40.3.0

Compare Source

v40.2.1

Compare Source

v40.2.0

Compare Source

v40.1.2

Compare Source

v40.1.1

Compare Source

v40.1.0

Compare Source

v40.0.3

Compare Source

v40.0.2

Compare Source

v40.0.1

Compare Source

v40.0.0

Compare Source

v39.9.1

Compare Source

v39.9.0

Compare Source

v39.8.0

Compare Source

v39.7.5

Compare Source

prettier/eslint-plugin-prettier (eslint-plugin-prettier)

v5.0.0

Compare Source

Major Changes
Minor Changes
Patch Changes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)

v48.0.0

Compare Source

Improvements
  • Deprecate no-unsafe-regex rule (#​2135) 7b473aa
  • prefer-top-level-await: Ignore promises inside Promise.{all,allSettled,any,race}() (#​2139) d3f6b60
  • no-process-exit: Ignore when using node:worker_threads module (#​2136) 2907805
  • prefer-array-some: Ignore filter calls with literal argument (#​2097) 7a32edb
  • prefer-modern-math-api: Check cases that Math.hypot() should be preferred (#​2080) 9bbc948
  • explicit-length-check: Ignore .length || number (#​1977) b9b8794
Fixes

v47.0.0

Compare Source

Breaking
New rules
Improvements
Fixes

v46.0.1

Compare Source

v46.0.0

Compare Source

Improvements
Fixes
jprichardson/node-fs-extra (fs-extra)

v11.1.1

Compare Source

  • Preserve timestamps when moving files across devices (#​992, #​994)

v11.1.0

Compare Source

  • Re-add main field to package.json for better TypeScript compatibility (#​979, #​981)

v11.0.0

Compare Source

Breaking Changes
  • Don't allow requiring fs-extra/lib/SOMETHING (switched to exports) (#​974)
  • Require Node v14.14+ (#​968, #​969)
New Features
  • Add fs-extra/esm for ESM named export support; see docs for details (#​746, #​974)
  • Add promise support for fs.readv() (#​970)
Bugfixes
isaacs/node-glob (glob)

v10.3.3

Compare Source

v10.3.2

Compare Source

v10.3.1

Compare Source

v10.3.0

Compare Source

  • Add --default -p flag to provide a default pattern

v10.2.7

Compare Source

v10.2.6

Compare Source

v10.2.5

Compare Source

v10.2.4

Compare Source

v10.2.3

Compare Source

v10.2.2

Compare Source

v10.2.1

Compare Source

v10.2.0

Compare Source

  • Add glob cli

v10.1.0

Compare Source

  • Return '.' instead of the empty string '' when the current working directory is returned as a match.
  • Add posix: true option to return / delimited paths, even on Windows.

v10.0.0

Compare Source

  • No default exports, only named exports

v9.3.5

Compare Source

v9.3.4

Compare Source

v9.3.3

Compare Source

  • Upgraded minimatch to v8, adding support for any degree of nested extglob patterns.

v9.3.2

Compare Source

v9.3.1

Compare Source

v9.3.0

Compare Source

v9.2.1

Compare Source

v9.2.0

Compare Source

v9.1.2

Compare Source

v9.1.1

Compare Source

v9.1.0

Compare Source

v9.0.2

Compare Source

v9.0.1

Compare Source

v9.0.0

Compare Source

prettier/prettier (prettier)

v3.0.0

Compare Source

diff

🔗 Release Notes

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;
isaacs/rimraf (rimraf)

v5.0.1

Compare Source

v5.0.0

Compare Source

v4.4.1

Compare Source

v4.4.0

Compare Source

v4.3.1

Compare Source

v4.3.0

Compare Source

v4.2.0

Compare Source

v4.1.4

Compare Source

v4.1.3

Compare Source

v4.1.2

Compare Source

v4.1.1

Compare Source

v4.1.0

Compare Source

v4.0.7

Compare Source

v4.0.6

Compare Source

v4.0.5

Compare Source

v4.0.4

Compare Source

v4.0.3

Compare Source

v4.0.2

Compare Source

v4.0.1

Compare Source

v4.0.0

Compare Source


Configuration

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

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

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

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


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

This MR has been generated by Renovate Bot.

Edited by openstappsbot

Merge request reports

Loading