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 all (major) #240

Merged
merged 3 commits into from
Sep 8, 2023
Merged

Update all (major) #240

merged 3 commits into from
Sep 8, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 1, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change Age Adoption Passing Confidence
actions/checkout action major v3 -> v4 age adoption passing confidence
eslint-config-prettier devDependencies major 8.10.0 -> 9.0.0 age adoption passing confidence
eslint-plugin-unicorn devDependencies major 47.0.0 -> 48.0.1 age adoption passing confidence
get-port devDependencies major 6.1.2 -> 7.0.0 age adoption passing confidence
lerna (source) devDependencies major 6.6.2 -> 7.2.0 age adoption passing confidence
nodemon (source) devDependencies major 2.0.22 -> 3.0.1 age adoption passing confidence
prettier (source) devDependencies major 2.8.8 -> 3.0.3 age adoption passing confidence

Release Notes

actions/checkout (actions/checkout)

v4

Compare Source

prettier/eslint-config-prettier (eslint-config-prettier)

v9.0.0

Compare Source

  • Added: The CLI helper tool now works with eslint.config.js (flat config). Just like ESLint itself, the CLI tool automatically first tries eslint.config.js and then eslintrc, and you can force which one to use by setting the [ESLINT_USE_FLAT_CONFIG] environment variable. Note that the config of eslint-config-prettier has always been compatible with eslint.config.js (flat config) – it was just the CLI tool that needed updating. On top of that, the docs have been updated to mention how to use both eslint.config.js (flat config) and eslintrc, and the tests now test both config systems.
  • Changed: [unicode-bom] is no longer turned off. Prettier preserves the BOM if you have one, and does not add one if missing. It was wrong of eslint-config-prettier to disable that rule. If you get ESLint errors after upgrading, either add "unicode-bom": "off" to your config to disable it again, or run ESLint with --fix to fix all files according to the rule (add or remove BOM). Thanks to Nicolas Stepien (@​nstepien)!
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)

v48.0.1

Compare Source

  • no-empty-file: Fix directive check for TypeScript parser (#​2180) 1bb9ce8

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
sindresorhus/get-port (get-port)

v7.0.0

Compare Source

Breaking
Improvements
  • Use timeout instead of interval for releasing ports (#​68) bd8a403
lerna/lerna (lerna)

v7.2.0

Compare Source

Note: Version bump only for package lerna

7.1.5 (2023-08-09)

Note: Version bump only for package lerna

7.1.4 (2023-07-15)

Bug Fixes

7.1.3 (2023-07-12)

Bug Fixes
  • changelog entries for 7.1.2 (f61b087)

7.1.2 (2023-07-12)

7.1.1 (2023-06-28)

Bug Fixes
  • schema: add missing ref to changelogEntryAdditionalMarkdown (b41afab)

v7.1.5

Compare Source

Note: Version bump only for package lerna

v7.1.4

Compare Source

Bug Fixes

v7.1.3

Compare Source

Bug Fixes
  • changelog entries for 7.1.2 (f61b087)

v7.1.2

Compare Source

v7.1.1

Compare Source

Bug Fixes
  • schema: add missing ref to changelogEntryAdditionalMarkdown (b41afab)

v7.1.0

Compare Source

Features
  • core: export detectProjects utility function (#​3740) (641fecb)
  • repair: add migration to remove unused "lerna" field from lerna.json (#​3734) (4fb0427)
  • version: add --changelog-entry-additional-markdown option (#​3751) (63671df)

7.0.2 (2023-06-15)

Note: Version bump only for package lerna

7.0.1 (2023-06-13)

Note: Version bump only for package lerna

v7.0.2

Compare Source

Note: Version bump only for package lerna

v7.0.1

Compare Source

Note: Version bump only for package lerna

v7.0.0

Compare Source

Bug Fixes
Features
  • add migration for adding $schema, increase some strictness (73ceac3)
remy/nodemon (nodemon)

v3.0.1

Compare Source

Bug Fixes

v3.0.0

Compare Source

Bug Fixes
Features
  • always use polling on IBM i (3b58104)
BREAKING CHANGES
  • official support for node@8 dropped.

However there's no function being used in semver that breaks node 8,
so it's technically still possible to run with node 8, but it will
no longer be supported (or tested in CI).

prettier/prettier (prettier)

v3.0.3

Compare Source

diff

Add preferUnplugged: true to package.json (#​15169 by @​fisker and @​so1ve)

Prettier v3 uses dynamic imports, user will need to unplug Prettier when Yarn's PnP mode is enabled, add preferUnplugged: true to package.json, so Yarn will install Prettier as unplug by default.

Support shared config that forbids require() (#​15233 by @​fisker)

If an external shared config package is used, and the package exports don't have require or default export.

In Prettier 3.0.2 Prettier fails when attempt to require() the package, and throws an error.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in <packageName>/package.json
Allow argument of require() to break (#​15256 by @​fisker)
// Input
const plugin = require(
  global.STANDALONE
    ? path.join(__dirname, "../standalone.js")
    : path.join(__dirname, "..")
);

// Prettier 3.0.2
const plugin = require(global.STANDALONE
  ? path.join(__dirname, "../standalone.js")
  : path.join(__dirname, ".."));

// Prettier 3.0.3
const plugin = require(
  global.STANDALONE
    ? path.join(__dirname, "../standalone.js")
    : path.join(__dirname, "..")
);
Do not print trailing commas in arrow function type parameter lists in ts code blocks (#​15286 by @​sosukesuzuki)
<!-- Input -->
```ts
const foo = <T>() => {}
```

<!-- Prettier 3.0.2 -->
```ts
const foo = <T,>() => {}
```

<!-- Prettier 3.0.3 -->
```ts
const foo = <T>() => {}
```
Support TypeScript 5.2 using / await using declaration (#​15321 by @​sosukesuzuki)

Support for the upcoming Explicit Resource Management feature in ECMAScript. using / await using declaration

{
   using foo = new Foo();
   await using bar = new Bar();
}

v3.0.2

Compare Source

diff

Break after = of assignment if RHS is poorly breakable AwaitExpression or YieldExpression (#​15204 by @​seiyab)
// Input
const { section, rubric, authors, tags } = await utils.upsertCommonData(mainData);

// Prettier 3.0.1
const { section, rubric, authors, tags } = await utils.upsertCommonData(
  mainData,
);

// Prettier 3.0.2
const { section, rubric, authors, tags } =
  await utils.upsertCommonData(mainData);
Do not add trailing comma for grouped scss comments (#​15217 by @​auvred)
/* Input */
$foo: (
	'property': (),
	// comment 1
	// comment 2
)

/* Prettier 3.0.1 */
$foo: (
  "property": (),
  // comment 1
  // comment 2,
);

/* Prettier 3.0.2 */
$foo: (
  "property": (),
  // comment 1
  // comment 2
);
Print declare and export keywords for nested namespace (#​15249 by @​sosukesuzuki)
// Input
declare namespace abc1.def {}
export namespace abc2.def {}

// Prettier 3.0.1
namespace abc1.def {}
namespace abc2.def {}

// Prettier 3.0.2
declare namespace abc1.def {}
export namespace abc2.def {}

v3.0.1

Compare Source

diff

Fix cursor positioning for a special case (#​14812 by @​fisker)
// <|> is the cursor position

/* Input */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|>  } from "fs"

/* Prettier 3.0.0 */
// All messages are represented in JSON.
// So, the prettier.py <|>controls a subprocess which spawns "node {this_file}".
import {} from "fs"

/* Prettier 3.0.1 */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|>} from "fs"
Fix plugins/estree.d.ts to make it a module (#​15018 by @​kingyue737)

Add export {} in plugins/estree.d.ts to fix the "File is not a module" error

Add parenthesis around leading multiline comment in return statement (#​15037 by @​auvred)
// Input
function fn() {
  return (
    /**
     * @&#8203;type {...}
     */ expresssion
  )
}

// Prettier 3.0.0
function fn() {
  return /**
   * @&#8203;type {...}
   */ expresssion;
}

// Prettier 3.0.1
function fn() {
  return (
    /**
     * @&#8203;type {...}
     */ expresssion
  );
}
Add support for Vue "Generic Components" (#​15066 by @​auvred)

https://blog.vuejs.org/posts/vue-3-3#generic-components

<!-- Input -->
<script setup lang="ts" generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"></script>

<!-- Prettier 3.0.0 -->
<script
  setup
  lang="ts"
  generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"
></script>

<!-- Prettier 3.0.1 -->
<script
  setup
  lang="ts"
  generic="
    T extends Type1 & Type2 & (Type3 | Type4),
    U extends string | number | boolean
  "
></script>
Fix comments print in IfStatement (#​15076 by @​fisker)
function a(b) {
  if (b) return 1; // comment
  else return 2;
}

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

/* Prettier 3.0.1 */
function a(b) {
  if (b) return 1; // comment
  else return 2;
}
Add missing type definition for printer.preprocess (#​15123 by @​so1ve)
export interface Printer<T = any> {
  // ...
+ preprocess?:
+   | ((ast: T, options: ParserOptions<T>) => T | Promise<T>)
+   | undefined;
}
Add missing getVisitorKeys method type definition for Printer (#​15125 by @​auvred)
const printer: Printer = {
  print: () => [],
  getVisitorKeys(node, nonTraversableKeys) {
    return ["body"];
  },
};
Add typing to support readonly array properties of AST Node (#​15127 by @​auvred)
// Input
interface TestNode {
  readonlyArray: readonly string[];
}

declare const path: AstPath<TestNode>;

path.map(() => "", "readonlyArray");

// Prettier 3.0.0
interface TestNode {
  readonlyArray: readonly string[];
}

declare const path: AstPath<TestNode>;

path.map(() => "", "readonlyArray");
//                  ^ Argument of type '"readonlyArray"' is not assignable to parameter of type '"regularArray"'. ts(2345)

// Prettier 3.0.1
interface TestNode {
  readonlyArray: readonly string[];
}

declare const path: AstPath<TestNode>;

path.map(() => "", "readonlyArray");
Add space before unary minus followed by a function call (#​15129 by @​pamelalozano)
// Input
div {
  margin: - func();
}

// Prettier 3.0.0
div {
  margin: -func();
}

// Prettier 3.0.1
div {
  margin: - func();
}

v3.0.0

Compare Source

diff

🔗 Release Notes


Configuration

📅 Schedule: Branch creation - "on the 1 day of the month" (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 changed the title Update all to v7 (major) Update all (major) Jul 5, 2023
@renovate renovate bot force-pushed the renovate/major-all branch 4 times, most recently from e7233f7 to df661f4 Compare July 12, 2023 12:46
@renovate renovate bot force-pushed the renovate/major-all branch 4 times, most recently from 1a2579e to 81f3cc2 Compare July 28, 2023 07:38
@renovate renovate bot force-pushed the renovate/major-all branch 3 times, most recently from 24a666a to 286a67d Compare August 9, 2023 19:54
@renovate renovate bot force-pushed the renovate/major-all branch 3 times, most recently from 7b815cb to 5829899 Compare September 4, 2023 13:03
@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (a6b97d0) 62.20% compared to head (2186a5d) 62.20%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #240   +/-   ##
=======================================
  Coverage   62.20%   62.20%           
=======================================
  Files          42       42           
  Lines        1360     1360           
  Branches      203      203           
=======================================
  Hits          846      846           
  Misses        495      495           
  Partials       19       19           
Files Changed Coverage Δ
packages/snage/src/note/convert.ts 88.88% <ø> (ø)
packages/snage/src/config/load.ts 75.23% <100.00%> (ø)

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

@ArLau ArLau merged commit cd1996e into master Sep 8, 2023
2 checks passed
@ArLau ArLau deleted the renovate/major-all branch September 8, 2023 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants