prettier 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/internal/cli.mjs CHANGED
@@ -4777,7 +4777,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
4777
4777
  return 1;
4778
4778
  }
4779
4779
  if ("CI" in env) {
4780
- if ("GITHUB_ACTIONS" in env) {
4780
+ if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
4781
4781
  return 3;
4782
4782
  }
4783
4783
  if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
@@ -5006,7 +5006,7 @@ var chalk = createChalk();
5006
5006
  var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
5007
5007
  var source_default = chalk;
5008
5008
 
5009
- // node_modules/strip-ansi/node_modules/ansi-regex/index.js
5009
+ // node_modules/ansi-regex/index.js
5010
5010
  function ansiRegex({ onlyFirst = false } = {}) {
5011
5011
  const pattern = [
5012
5012
  "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
@@ -6646,7 +6646,11 @@ async function format2(context, input, opt) {
6646
6646
  ms: averageMs
6647
6647
  };
6648
6648
  context.logger.debug(
6649
- `'${performanceTestFlag.name}' measurements for formatWithCursor: ${JSON.stringify(results, null, 2)}`
6649
+ `'${performanceTestFlag.name}' measurements for formatWithCursor: ${JSON.stringify(
6650
+ results,
6651
+ null,
6652
+ 2
6653
+ )}`
6650
6654
  );
6651
6655
  }
6652
6656
  return prettier.formatWithCursor(input, opt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettier",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Prettier is an opinionated code formatter",
5
5
  "bin": "./bin/prettier.cjs",
6
6
  "repository": "prettier/prettier",