chore(deps): update all dependencies #2

Open
kjuulh wants to merge 1 commits from renovate/all into main
Owner

This PR contains the following updates:

Package Type Update Change
cc build-dependencies minor 1.0.79 -> 1.1.19
nan dependencies minor 2.17.0 -> 2.20.0
prettier (source) devDependencies major ^2.8.8 -> ^3.0.0
tree-sitter (source) dependencies minor ~0.20.10 -> ~0.23.0
tree-sitter-cli devDependencies minor ^0.20.8 -> ^0.23.0

Release Notes

rust-lang/cc-rs (cc)

v1.1.19

Compare Source

Other
  • Add support arm64e-apple-darwin (#​1207)

v1.1.18

Compare Source

Other
  • Fixed unsoundness in StderrForwarder::forward_available (#​1203)

v1.1.17

Compare Source

Fixed
  • fix finding toolchains when invoked by msbuild (#​1201)

v1.1.16

Compare Source

Other
  • Treat VxWorks wr-cc as a Gnu compiler (#​1198)

v1.1.15

Compare Source

Other
  • Add -mfloat-abi=hard as a default argument when using any arm/thumb-none-eabihf target (#​1194)

v1.1.14

Compare Source

Other
  • allow finding tools from path if VisualStudioDir is set

v1.1.13

Compare Source

Other
  • Fix detect family: should detect emscripten as clang, closes #​1185 (#​1186)

v1.1.12

Compare Source

Other

v1.1.11

Compare Source

Other
  • Add support for parsing shell encoded *FLAGS (#​1181)
  • Replace vector of tuples with BTreeMap which already is sorted and free of duplicates (#​1177)

v1.1.10

Compare Source

Other
  • Remap Windows targets triples to their LLVM counterparts (#​1176)

v1.1.9

Compare Source

Other
  • Add custom CC wrapper to the wrapper whitelist (#​1175)

v1.1.8

Compare Source

Other

v1.1.7

Compare Source

Other

v1.1.6

Compare Source

Other

v1.1.5

Compare Source

Other
  • Fix cyclic compilation: Use vendored once_cell (#​1154)

v1.1.4

Compare Source

Other

v1.1.3

Compare Source

Other

v1.1.2

Compare Source

Other
  • Add empty jobserver feature. (#​1150)

v1.1.1

Compare Source

Other
  • Add support arm64e-apple-darwin (#​1207)

v1.1.0

Compare Source

Added
  • add cargo_output to eliminate last vestiges of stdout pollution (#​1141)

v1.0.106

Compare Source

Other

v1.0.105

Compare Source

Other
  • Regenerate windows sys bindings (#​1132)
  • Fix generate-windows-sys-bindings (#​1133)
  • Fix gen-windows-sys-binding (#​1130)
  • Fix gen-windows-sys-binding (#​1127)
  • Update windows-bindgen requirement from 0.57 to 0.58 (#​1123)

v1.0.104

Compare Source

Other
  • Fixed link break about compile-time-requirements (#​1118)

v1.0.103

Compare Source

Other
  • Fix compilation for wasm: env WASI_SYSROOT should be optional (#​1114)

v1.0.102

Compare Source

Other
  • Fix invalid wasi targets compatibility (#​1105)
  • Speedup regenerate-target-info and regenerate-windows-sys (#​1110)

v1.0.101

Compare Source

Other
  • Use Build::getenv instead of env::var* in anywhere that makes sense (#​1103)

v1.0.100

Compare Source

Other
  • Update publish.yml to use release-plz (#​1101)
  • Accept OsStr instead of str for flags (#​1100)
  • Use dep: syntax to avoid implicit features. (#​1099)
  • Minor clippy fixes. (#​1098)
  • Fix WASI compilation for C++ (#​1083)
  • Regenerate windows sys bindings (#​1096)
  • Rename regenerate-windows-sys to regenerate-windows-sys.yml (#​1095)
  • Create regenerate-windows-sys.yml (#​1094)
  • Update windows-bindgen requirement from 0.56 to 0.57 (#​1091)
  • Eagerly close tempfile to fix #​1082 (#​1087)
  • Output msvc.exe in the output directory (#​1090)
  • Fix clippy warnings on Windows (#​1088)
  • Don't try to free DLL on drop (#​1089)
  • Fix panic safety issue in StderrForwarder (#​1079)

v1.0.99

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.98...1.0.99

v1.0.98

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.97...1.0.98

v1.0.97

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.96...1.0.97

v1.0.96

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.95...1.0.96

v1.0.95

Compare Source

What's Changed

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.94...1.0.95

v1.0.94

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.93...1.0.94

v1.0.93

Compare Source

What's Changed

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.92...1.0.93

v1.0.92

Compare Source

What's Changed

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.91...1.0.92

v1.0.91

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.90...1.0.91

v1.0.90

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.89...1.0.90

v1.0.89

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.88...1.0.89

v1.0.88

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.87...1.0.88

v1.0.87

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.86...1.0.87

v1.0.86

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.85...1.0.86

v1.0.85

Compare Source

!IMPORTANT]

This release has been yanked, due to panicking in freeBSD debug build. A release without these issues will be made in the near future.

Sorry, and thanks.

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.84...1.0.85

v1.0.84

Compare Source

!IMPORTANT]

This release has been yanked, due to the Apple deployment target changes causing unintentional widespread breakage for building C++ code on the target (for projects without an explicit deployment target set). A release without these issues will be made in the near future.

Sorry, and thanks.

Changes

This isn't a complete list, but I've tried to cover everything that is either significant, or could cause problems for people using cc in configurations not covered by our tests.

As always, please file bugs if you hit issues. cc is used in many more ways than we can possibly test (especially when cross-compiling or using tier-3 platforms).

Thanks.

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.83...1.0.84

v1.0.83

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.82...1.0.83

v1.0.82

Compare Source

This release corrects a deadlock and potential performance regression present since 1.0.80, and contains no other changes. See https://github.com/rust-lang/cc-rs/pull/849 for details.

v1.0.81

Compare Source

This release exists to fix a bug introduced in 1.0.80 where we would panic if non-UTF8 were written to stderr by the C compiler. See https://github.com/rust-lang/cc-rs/pull/842 and https://github.com/rust-lang/cc-rs/issues/841 for more info.

v1.0.80

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/rust-lang/cc-rs/compare/1.0.79...1.0.80

nodejs/nan (nan)

v2.20.0

Compare Source

v2.19.0

Compare Source

v2.18.0

Compare Source

  • Feature: Cast v8::Object::GetInternalField() return value to v8::Value (#​956) bdfee17
prettier/prettier (prettier)

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
@​(foo`tagged template`)
class X {}

// Prettier 3.3.2
@​foo`tagged template`
class X {}

// Prettier 3.3.3
@​(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:

@​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.

v3.3.2

Compare Source

diff

Fix handlebars path expressions starts with @ (#​16358 by @​Princeyadav05)
{{! Input }}
<div>{{@&#8203;x.y.z}}</div>

{{! Prettier 3.3.1 }}
<div>{{@&#8203;x}}</div>

{{! Prettier 3.3.2 }}
<div>{{@&#8203;x.y.z}}</div>

v3.3.1

Compare Source

diff

Preserve empty lines in front matter (#​16347 by @​fisker)
<!-- Input -->
---
foo:
  - bar1

  - bar2

  - bar3
---
Markdown

<!-- Prettier 3.3.0 -->

---
foo:
  - bar1
  - bar2
  - bar3
---

Markdown

<!-- Prettier 3.3.1 -->
---
foo:
  - bar1

  - bar2

  - bar3
---

Markdown
Preserve explicit language in front matter (#​16348 by @​fisker)
<!-- Input -->
---yaml
title: Hello
slug: home
---

<!-- Prettier 3.3.0 -->
---
title: Hello
slug: home
---

<!-- Prettier 3.3.1 -->
---yaml
title: Hello
slug: home
---
Avoid line breaks in import attributes (#​16349 by @​fisker)
// Input
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };

// Prettier 3.3.0
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type:
  "json" };

// Prettier 3.3.1
import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" };

v3.3.0

Compare Source

diff

🔗 Release Notes

v3.2.5

Compare Source

diff

Support Angular inline styles as single template literal (#​15968 by @​sosukesuzuki)

Angular v17 supports single string inline styles.

// Input
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.4
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.5
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `
    h1 {
      color: blue;
    }
  `,
})
export class AppComponent {}

Unexpected embedded formatting for Angular template (#​15969 by @​JounQin)

Computed template should not be considered as Angular component template

// Input
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.4
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{ hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.5
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}
Use "json" parser for tsconfig.json by default (#​16012 by @​sosukesuzuki)

In v3.2.0, we introduced "jsonc" parser which adds trailing comma by default.

When adding a new parser we also define how it will be used based on the linguist-languages data.

tsconfig.json is a special file used by TypeScript, it uses .json file extension, but it actually uses the JSON with Comments syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing .json file extension.

We decide to treat it as a JSON file for now to avoid the extra configuration step.

To keep using the "jsonc" parser for your tsconfig.json files, add the following to your .prettierrc file

{
  "overrides": [
    {
      "files": ["tsconfig.json", "jsconfig.json"],
      "options": {
        "parser": "jsonc"
      }
    }
  ]
}

v3.2.4

Compare Source

prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }

v3.2.3

Compare Source

diff

Throw errors for invalid code (#​15881 by @​fisker, @​Josh-Cena, @​auvred)
// Input
1++;

// Prettier 3.2.2
1++;

// Prettier 3.2.3
SyntaxError: Invalid left-hand side expression in unary operation (1:1)
> 1 | 1++;
    | ^
// Input
try {} catch (error = 1){}

// Prettier 3.2.2
try {
} catch (error) {}

// Prettier 3.2.3
SyntaxError: Catch clause variable cannot have an initializer. (1:23)
> 1 | try {} catch (error = 1){}
    |                       ^
Fix parser inference (#​15927 by @​fisker)
// Prettier 3.2.2
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "json" }

// Prettier 3.2.3
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }

v3.2.2

Compare Source

diff

Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute (#​15896 by @​eelco)

For example this code would crash before:

<style {...spread}>{`.{}`}</style>
Fix formatting error on optional call expression and member chain (#​15920 by @​sosukesuzuki)
// Input
a(() => {}, c?.d());

// Prettier 3.2.1
TypeError: Cannot read properties of undefined (reading 'type')

// Prettier 3.2.2
a(() => {}, c?.d());

v3.2.1

Compare Source

diff

Fix formatting error on member chain (#​15915 by @​sosukesuzuki)
// Input
test().test2().test2(thing?.something);

// Prettier 3.2.0
TypeError: Cannot read properties of undefined (reading 'type')

// Prettier 3.2.1
test().test2().test2(thing?.something);

v3.2.0

Compare Source

diff

🔗 Release Notes

v3.1.1

Compare Source

diff

Fix config file search (#​15363 by @​fisker)

Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.

├─ .prettierrc
└─ test.js         (A directory)
  └─ .prettierrc
// Prettier 3.1.0
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/test.js/.prettierrc

// Prettier 3.1.1
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/.prettierrc

Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.

In Prettier 3.1.1, you can use --no-error-on-unmatched-pattern to simply skip symbolic links.

Consistently use tabs in ternaries when useTabs is true (#​15662 by @​auvred)
// Input
aaaaaaaaaaaaaaa
	? bbbbbbbbbbbbbbbbbb
	: ccccccccccccccc
	  ? ddddddddddddddd
	  : eeeeeeeeeeeeeee
	    ? fffffffffffffff
	    : gggggggggggggggg;

// Prettier 3.1.0
aaaaaaaaaaaaaaa
	? bbbbbbbbbbbbbbbbbb
	: ccccccccccccccc
	  ? ddddddddddddddd
	  : eeeeeeeeeeeeeee
	    ? fffffffffffffff
	    : gggggggggggggggg;

// Prettier 3.1.1
aaaaaaaaaaaaaaa
	? bbbbbbbbbbbbbbbbbb
	: ccccccccccccccc
		? ddddddddddddddd
		: eeeeeeeeeeeeeee
			? fffffffffffffff
			: gggggggggggggggg;
Improve config file search (#​15663 by @​fisker)

The Prettier config file search performance has been improved by more effective cache strategy.

Fix unstable and ugly formatting for comments in destructuring patterns (#​15708 by @​sosukesuzuki)
// Input
const {
  foo,
  // bar
  // baz
}: Foo = expr;

// Prettier 3.1.0
const {
  foo1,
} // bar
// baz
: Foo = expr;

// Prettier 3.1.0 second output
const {
  foo1, // bar
} // baz
: Foo = expr;

// Prettier 3.1.1
const {
  foo1,
  // bar
  // baz
}: Foo = expr;
Support "Import Attributes" (#​15718 by @​fisker)

TypeScript 5.3 supports the latest updates to the import attributes proposal.

import something from "./something.json" with { type: "json" };
Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd (#​15750 by @​ExplodingCabbage)

The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by @​ds300. However, Prettier's documentation (including the CLI --help text) continued to claim otherwise, falsely. The documentation is now fixed.

Keep curly braces and from keyword in empty import statements (#​15756 by @​fisker)
// Input
import { } from 'foo';
import { /* comment */ } from 'bar';

// Prettier 3.1.0
import {} from "foo";
import /* comment */ "bar";

// Prettier 3.1.1
import {} from "foo";
import {} from /* comment */ "bar";
Keep empty import attributes and assertions (#​15757 by @​fisker)
// Input
import foo from "foo" with {};
import bar from "bar" assert {};

// Prettier 3.1.0
import foo from "foo";
import bar from "bar";

// Prettier 3.1.1
import foo from "foo" with {};
import bar from "bar" assert {};

v3.1.0

Compare Source

diff

🔗 Release Notes

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 {...}
     */ expression
  )
}

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

// Prettier 3.0.1
function fn() {
  return (
    /**
     * @&#8203;type {...}
     */ expression
  );
}
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

tree-sitter/tree-sitter (tree-sitter)

v0.23.0

Compare Source

Breaking
  • Introduce tree-sitter-language crate for grammar crates to depend on (#​3069)
  • Revert interning of a sequence or choice of a single rule (#​3548)
  • bindings: Use capsules in python (#​3384)
  • dsl: Support other JS runtimes (#​3355)
Features
  • Add fuzz subcommand (#​3385)
  • Allow external scanners to use the logger (#​3204)
  • bindings: Add query constants to python
  • bindings: Add node, python, swift tests (#​3178)
  • bindings: Update npm scripts (#​3210)
  • cli: Bump unicode data to v15.1.0
  • cli: Add debug build flag (#​3279)
  • cli: Attach helpful context when grammar.json cannot be found (#​3405)
  • cli: Add --show-fields flag to test command (#​3502)
  • lib: Add ts_query_end_byte_for_pattern (#​3451)
  • lib: Support no_std
  • zig: Update outdated path syntax (#​3383)
Bug Fixes
  • Always reset to the first language when iterating over language attributes (#​3375)
  • Better error when a supertype rule is invalid (#​3400)
  • Intern a sequence or choice of a single element the same as the element itself
  • Do not "absorb" rules that consist of a single terminal if the rule is hidden (#​2577)
  • bindings: Update go bindings (#​3544)
  • cli: Installation via authenticated proxy (#​3414)
  • cli: Dedup preceding_auxiliary_symbols (#​3550)
  • dsl: Improve error message when a rule function returns undefined (#​3452)
  • generate: Rename cargo.toml template (#​3532)
  • go: Update parser name in binding files, add to docs (#​3547)
  • lib: A null clock must have tv_nsec be 0 as well (#​3372)
  • lib: Restrict pattern_map optimization when a wildcard step has an immediate first child (#​3440)
  • lib: An empty root node should not precede an empty range (#​3450)
  • lib: Fix api header C++ interop (#​3534)
  • make: Fail properly on Windows (#​3418)
  • rust: Fetch CARGO_MANIFEST_DIR at runtime in build script (#​3352)
  • rust: Fix new clippy warnings (#​3491)
  • test: Multi-grammar corpus tests are now in the repo root (#​3342)
  • wasm: Update test
Performance
  • Hoist out common subexpressions in satisfies_text_predicates (#​3397)
Documentation
  • Update changelog
  • Remove duplicate pr # in changelog
  • Add note for bullet
  • Fix syntax highlighting unit testing example (#​3434)
  • Add tsserver annotation to example (#​3460)
  • Fix tree cursor documentation (#​3324)
  • Document rust library features (#​3395)
  • Clean up binding & parser lists (#​3443)
Refactor
  • Remove ansi_term dependency (#​3387)
  • Remove difference dependency (#​3388)
  • scripts: Clean up bash scripts (#​3231)
Testing
Build System and CI
  • deps: bump wasmtime, cc, and wasmparser (#​3529
  • bindings: Use language version in soname (#​3308)
  • lib: Include the minor in the soname
  • loader: Make dependencies optional (#​1638)
  • swift: Declare header search path (#​3474)
  • wasm: Don't minify JS (#​3380)
  • wasm: Bump emscripten to 3.1.64 (#​3497)
  • wasm: Support big endian machines (#​3492)
  • zig: Git ignore updated Zig cache directory (#​3408)
Other
  • Swap sprintf() for snprintf() (#​3430)
  • Add .build to gitignore (#​3498)
  • Reset language when resetting wasm store (#​3495)
  • Clone wasm store engine (#​3542)
  • bindings: Fix indent & line endings (#​3284)

v0.22.6

Compare Source

Features
  • Improve handling of serialization buffer overflows (#​3318)
  • Reverse iteration through node parents (#​3214)
  • cli: Support NO_COLOR (#​3299)
  • cli: Add test listing and allow users to parse a specific test number (#​3067)
  • grammar: Add "inherits" field if available (#​3295)
Bug Fixes
  • Correctly load field data from wasm languages
  • Improve error message when the tree-sitter field is malformed
  • Don't error out on package.json lookup errors if --no-bindings is passed (#​3323)
  • cli: Keep default cc flags in build
  • cli: Properly account for multi-grammar repos when using docker to build a wasm parser (#​3337)
  • generate: Don't check arbitrarily named dirs
  • generate: Take AsRef<Path> for the path parameter to avoid clones (#​3322)
  • highlight: Correct signature of ts_highlighter_add_language
  • lib: Do not return field names for extras (#​3330)
  • lib: Advance the lookahead end byte by 4 when there's an invalid code point (#​3305)
  • rust: Update README example (#​3307)
  • rust: Use unix + wasi cfg instead of not windows for fd (#​3304)
  • test: Allow newlines in between test name and attribute
  • wasm: Correct childrenFromFieldXXX method signatures (#​3301)
  • xtask: Always bump every crate in tandem
  • zig: Make usable as a zig dependency (#​3315)
Documentation
  • Mention build command variables
  • Swap \s for \\s in query example
  • highlight: Typo (#​3290)
Refactor
  • tests: Migrate remaining grammar.json tests to grammar.js (#​3325)
Build System and CI
  • Add nightly rustfmt to workflow for linting (#​3333)
  • Fix address sanitizer step (#​3188)
  • deps: Bump cc from 1.0.92 to 1.0.94 in the cargo group (#​3298)
  • deps: Bump the cargo group with 6 updates (#​3313)
  • xtask: Bump build.zig.zon version when bumping versions

v0.22.5

Compare Source

Bug Fixes
  • Avoid generating unused character set constants
  • cli: Test parsing on windows (#​3289)
  • rust: Compilation on wasm32-wasi (#​3293)

v0.22.4

Compare Source

Bug Fixes
  • Fix sorting of transitions within a lex state
  • Include 2-character ranges in array-based state transitions
Build System and CI
  • Always bump at least the patch version in bump xtask

v0.22.3

Compare Source

Features
  • Add strncat to wasm stdlib
  • Generate simpler code for matching large character sets (#​3234)
  • When loading languages via WASM, gracefully handle memory errors and leaks in external scanners (#​3181)
Bug Fixes
  • bindings: Add utf-8 flag to python & node (#​3278)
  • bindings: Generate parser.c if missing (#​3277)
  • bindings: Remove required platforms for swift (#​3264)
  • cli: Fix mismatched parenthesis when accounting for && (#​3274)
  • lib: Do not consider childless nodes for ts_node_parent (#​3191)
  • lib: Properly account for aliased root nodes and root nodes with
    children in ts_subtree_string (#​3191)
  • lib: Account for the root node of a tree cursor being an alias (#​3191)
  • lib: Use correct format specifier in log message (#​3255)
  • parser: Fix variadic macro (#​3229)
  • render: Proper function prototypes (#​3277)
  • windows: Add /utf-8 flag for parsers using unicode symbols (#​3223)
  • Add a semicolon after SKIP macros (#​3264)
  • Add back build-wasm temporarily (#​3203)
  • Add lifetime to matches function (#​3254)
  • Default output directory for build --wasm should use current_dir (#​3203)
  • Fix sorting of wasm stdlib symbols
  • Insert "tree-sitter" section in current directory's package.json if it exists (#​3224)
  • Tie the lifetime of the cursor to the query in QueryCursor::captures() (#​3266)
  • Wrong flag check in build.rs
Performance
  • cli: Reduced the compile time of generated parsers by generating C code with fewer conditionals (#​3234)
Documentation
  • Add NGINX grammar
Refactor
  • parser: Make REDUCE macro non-variadic (#​3280)
  • js: Misc fixes & tidying
  • rust: Misc fixes & tidying
Testing
  • Add regression test for node parent + string bug (#​3191)
  • test: Allow colons in test names (#​3264)
Build System and CI
  • Upgrade wasmtime
  • Update emscripten version (#​3272)
  • dependabot: Improve PR labels (#​3282)

v0.22.2

Compare Source

Breaking
  • cli: Add a separate build command to compile parsers
Features
  • bindings/rust: Expose Parser::included_ranges
  • Lower the lib's MSRV (#​3169)
  • lib: Implement Display for Node (#​3177)
Bug Fixes
  • bindings/wasm: Fix Parser.getIncludedRanges() (#​3164)
  • lib: Makefile installation on macOS (#​3167)
  • lib: Makefile installation (#​3173)
  • lib: Avoid possible UB of calling memset on a null ptr when 0 is passed into array_grow_by (#​3176)
  • lib: Allow hiding symbols (#​3180)
Documentation
Refactor
  • Remove dependency on which crate (#​3172)
  • Turbofish styling
Testing
Build System and CI
  • Simplify workflows (#​3002)
  • lib: Allow overriding CFLAGS on the commandline (#​3159)

v0.22.1

Compare Source

Bug Fixes
  • Cli build script behavior on release

v0.22.0

Compare Source

Breaking
  • Remove top-level corpus dir for tests
    The cli will now only look in test/corpus for tests
  • Remove redundant escape regex & curly brace regex preprocessing (#​2838)
  • bindings: Convert node bindings to NAPI (#​3077)
  • wasm: Make current*, is*, and has* methods properties (#​3103)
  • wasm: Keep API in-line with upstream and start aligning with node (#​3149)
Features
  • Add xtasks to assist with bumping crates (#​3065)
  • Improve language bindings (#​2438)
  • Expose the allocator and array header files for external scanners (#​3063)
  • Add typings for the node bindings
  • Replace nan with node-addon-api and conditionally print logs
  • bindings: Add more make targets
  • bindings: Add peerDependencies for npm
  • bindings: Add prebuildify to node
  • bindings: Remove dsl types file (#​3126)
  • node: Type tag the language (#​3109)
  • test: Add attributes for corpus tests
Bug Fixes
  • Apply some scan-build suggestions (unused assignment/garbage access) (#​3056)
  • Wrap || comparison in parentheses when && is used (#​3070)
  • Ignore unused variables in the array macros (#​3083)
  • binding.cc overwrite should replace PARSER_NAME (#​3116)
  • Don't use __declspec(dllexport) on windows (#​3128)
  • Parsers should export the language function on windows
  • Allow the regex v flag (#​3154)
  • assertions: Case shouldn't matter for comment node detection
  • bindings: Editorconfig and setup.py fixes (#​3082)
  • bindings: Insert types after main if it exists (#​3122)
  • bindings: Fix template oversights (#​3155)
  • cli: Only output the sources with --no-bindings (#​3123)
  • generate: Add .npmignore, populate Swift's exclude list (#​3085)
  • generate: Extern allocator functions for the template don't need to be "exported" (#​3132)
  • generate: Camel case name in Cargo.toml description (#​3140)
  • lib: Include api.h so ts_set_allocator is visible (#​3092)
Documentation
  • Add GitHub user and PR info to the changelog
  • Add css for inline code (#​2844)
  • Document test attributes
  • Add Ohm language parser
  • Remove duplicate the's (#​3120)
  • Add discord and matrix badges (#​3148)
Refactor
  • Rename TS_REUSE_ALLOCATOR flag (#​3088)
  • Remove extern/const where possible
  • array: Use pragma GCC in clang too
  • bindings: Remove npmignore (#​3089)
Testing
  • Don't use TS_REUSE_ALLOCATOR on Darwin systems (#​3087)
  • Add test case for parse stack merging with incorrect error cost bug (#​3098)
Build System and CI
  • Improve changelog settings (#​3064)
  • Unify crate versions via workspace (#​3074)
  • Update cc to remove annoying debug output (#​3075)
  • Adjust dependabot settings (#​3079)
  • Use c11 everywhere
  • Add uninstall command
  • Don't skip tests on failing lint (#​3102)
  • Remove unused deps, bump deps, and bump MSRV to 1.74.1 (#​3153)
  • bindings: Metadata improvements
  • bindings: Make everything c11 (#​3099)
  • dependabot: Update weekly instead of daily (#​3112)
  • deps: Bump the cargo group with 1 update (#​3081)
  • deps: Bump the cargo group with 1 update (#​3097)
  • deps: Bump deps & lockfile (#​3060)
  • deps: Bump the cargo group with 4 updates (#​3134)
  • lint: Detect if Cargo.lock needs to be updated (#​3066)
  • lint: Make lockfile check quiet (#​3078)
  • swift: Move 'cLanguageStandard' behind 'targets' (#​3101)
Other
  • Make Node.js language bindings context aware (#​2841)
    They don't have any dynamic global data, so all it takes is just declaring them as such
  • Fix crash when attempting to load ancient languages via wasm (#​3068)
  • Use workspace dependencies for internal crates like Tree-sitter (#​3076)
  • Remove vendored wasmtime headers (#​3084)
    When building rust binding, use wasmtime headers provided via cargo
    by the wasmtime-c-api crate.
  • Fix invalid parse stack recursive merging with mismatched error cost (#​3086)
    Allowing this invalid merge caused an invariant to be violated
    later on during parsing, when handling a later error.
  • Fix regression in subtree_compare (#​3111)
  • docs: Add Ohm language parser (#​3114)
  • Delete binding_files.rs (#​3106)
  • bindings: Consistent wording (#​3096)
  • bindings: Ignore more artifacts (#​3119)

v0.21.0

Breaking
  • Remove the apply-all-captures flag, make last-wins precedence the default

    NOTE: This change might cause breakage in your grammar's highlight tests.
    Just flip the order around of the relevant queries, and keep in mind that the
    last query that matches will win.

Features
  • Use lockfiles to dedup recompilation
  • Improve error message for files with an unknown grammar path (#​2475)
  • Implement first-line-regex (#​2479)
  • Error out if an empty string is in the extras array
  • Allow specifying an external scanner's files (#​3031)
  • Better error info when a scanner is missing required symbols
  • cli: Add an optional grammar-path argument for the playground (#​3014)
  • cli: Add optional config-path argument (#​3050)
  • loader: Add more commonly used default parser directories
Bug Fixes
  • Prettify xml output and add node position info (#​2970)
  • Inherited grammar generation
  • Properly error out when the word property is an invalid rule
  • Update schema for regex flags (#​3006)
  • Properly handle Query.matches when filtering out results (#​3013)
  • Sexp format edge case with quoted closed parenthesis (#​3016)
  • Always push the default files if there's no externals
  • Don't log NUL characters (#​3037)
  • Don't throw an error if the user uses map in the grammar (#​3041)
  • Remove redundant imports (#​3047)
  • cli: Installation via a HTTP tunnel proxy (#​2824)
  • cli: Don't update tests automatically if parse errors are detected (#​3033)
  • cli: Don't use long for grammar_path
  • test: Allow writing updates to tests without erroneous nodes instead of denying all of them if a single error is found
  • test: Edge case when parsing UNEXPECTED/MISSING nodes with an indentation level greater than 0
  • wasm: Remove C++ mangled symbols (#​2971)
Documentation
  • Create issue template (#​2978)
  • Document regex limitations
  • Mention that token($.foo) is illegal
  • Explicitly mention behavior of walking outside the given "root" node for a TSTreeCursor (#​3021)
  • Small fixes (#​2987)
  • Add Tact language parser (#​3030)
  • web: Provide deno usage information (#​2498)
Refactor
  • Extract regex check into a function and lower its precedence
  • &PathBuf -> &Path (#​3035)
  • Name anonymous types in api.h (#​1659)
Testing
  • Add quotes around bash variables (#​3023)
  • Update html tests
Build System and CI
  • Only create release for normal semver tags (#​2973)
  • Add useful development targets to makefile (#​2979)
  • Remove minimum glibc information in summary page (#​2988)
  • Use the native m1 mac runner (#​2995)
  • Add editorconfig (#​2998)
  • Remove symbolic links from repository (#​2997)
  • Move common Cargo.toml keys into the workspace and inherit them (#​3019)
  • Remove reviewers when drafting or closing a PR (#​2963)
  • Enable creating changelogs with git-cliff (#​3040)
  • Cache fixtures (#​3038)
  • Don't cancel jobs on master (#​3052)
  • Relax caching requirements (#​3051)
  • deps: Bump clap from 4.4.18 to 4.5.0 (#​3007)
  • deps: Bump wasmtime from v16.0.0 to v17.0.1 (#​3008)
  • deps: Bump wasmtime to v18.0.1 (#​3057)
  • sanitize: Add a timeout of 60 minutes (#​3017)
  • sanitize: Reduce timeout to 20 minutes (#​3054)
Other
  • Document preferred language for scanner (#​2972)
  • Add java and tsx to corpus tests (#​2992)
  • Provide a CLI flag to open log.html (#​2996)
  • Some more clippy lints (#​3010)
  • Remove deprecated query parsing mechanism (#​3011)
  • Print out full compiler arguments ran when it fails (#​3018)
  • Deprecate C++ scanners (#​3020)
  • Add some documentation to the playground page (#​1495)
  • Update relevant rust tests (#​2947)
  • Clippy lints (#​3032)
  • Error out when multiple arguments are passed to token/token.immediate (#​3036)
  • Tidying
  • Prefer turbofish syntax where possible (#​3048)
  • Use published wasmtime crates
  • Cleaner cast
  • Update Cargo.lock
  • Get rid of github_issue_test file (#​3055)
  • cli: Use spawn to display emcc's stdout and stderr (#​2494)
  • cli: Warn users when a query path needed for a subcommand isn't specified in a grammar's package.json
  • generate: Dedup and warn about duplicate or invalid rules (#​2994)
  • test: Use different languages for async tests (#​2953)
  • wasm: Use SIDE_MODULE=2 to silence warning (#​3003)

Configuration

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

🚦 Automerge: Enabled.

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 Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [cc](https://github.com/rust-lang/cc-rs) | build-dependencies | minor | `1.0.79` -> `1.1.19` | | [nan](https://github.com/nodejs/nan) | dependencies | minor | [`2.17.0` -> `2.20.0`](https://renovatebot.com/diffs/npm/nan/2.17.0/2.20.0) | | [prettier](https://prettier.io) ([source](https://github.com/prettier/prettier)) | devDependencies | major | [`^2.8.8` -> `^3.0.0`](https://renovatebot.com/diffs/npm/prettier/2.8.8/3.3.3) | | [tree-sitter](https://tree-sitter.github.io/tree-sitter) ([source](https://github.com/tree-sitter/tree-sitter)) | dependencies | minor | `~0.20.10` -> `~0.23.0` | | [tree-sitter-cli](https://github.com/tree-sitter/tree-sitter) | devDependencies | minor | [`^0.20.8` -> `^0.23.0`](https://renovatebot.com/diffs/npm/tree-sitter-cli/0.20.8/0.23.0) | --- ### Release Notes <details> <summary>rust-lang/cc-rs (cc)</summary> ### [`v1.1.19`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1119---2024-09-15) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.18...cc-v1.1.19) ##### Other - Add support arm64e-apple-darwin ([#&#8203;1207](https://github.com/rust-lang/cc-rs/pull/1207)) ### [`v1.1.18`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1118---2024-09-07) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.17...cc-v1.1.18) ##### Other - Fixed unsoundness in `StderrForwarder::forward_available` ([#&#8203;1203](https://github.com/rust-lang/cc-rs/pull/1203)) ### [`v1.1.17`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1117---2024-09-06) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.16...cc-v1.1.17) ##### Fixed - fix finding toolchains when invoked by msbuild ([#&#8203;1201](https://github.com/rust-lang/cc-rs/pull/1201)) ### [`v1.1.16`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1116---2024-09-04) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.15...cc-v1.1.16) ##### Other - Treat VxWorks wr-cc as a Gnu compiler ([#&#8203;1198](https://github.com/rust-lang/cc-rs/pull/1198)) ### [`v1.1.15`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1115---2024-08-26) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.14...cc-v1.1.15) ##### Other - Add -mfloat-abi=hard as a default argument when using any arm/thumb-none-eabihf target ([#&#8203;1194](https://github.com/rust-lang/cc-rs/pull/1194)) ### [`v1.1.14`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1114---2024-08-23) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.13...cc-v1.1.14) ##### Other - allow finding tools from path if VisualStudioDir is set ### [`v1.1.13`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1113---2024-08-16) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.12...cc-v1.1.13) ##### Other - Fix detect family: should detect emscripten as clang, closes [#&#8203;1185](https://github.com/rust-lang/cc-rs/pull/1185) ([#&#8203;1186](https://github.com/rust-lang/cc-rs/pull/1186)) ### [`v1.1.12`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1112---2024-08-15) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.11...cc-v1.1.12) ##### Other - improve docs ([#&#8203;1183](https://github.com/rust-lang/cc-rs/pull/1183)) ### [`v1.1.11`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1111---2024-08-14) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.10...cc-v1.1.11) ##### Other - Add support for parsing shell encoded `*FLAGS` ([#&#8203;1181](https://github.com/rust-lang/cc-rs/pull/1181)) - Replace vector of tuples with BTreeMap which already is sorted and free of duplicates ([#&#8203;1177](https://github.com/rust-lang/cc-rs/pull/1177)) ### [`v1.1.10`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1110---2024-08-11) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.9...cc-v1.1.10) ##### Other - Remap Windows targets triples to their LLVM counterparts ([#&#8203;1176](https://github.com/rust-lang/cc-rs/pull/1176)) ### [`v1.1.9`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#119---2024-08-11) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.8...cc-v1.1.9) ##### Other - Add custom CC wrapper to the wrapper whitelist ([#&#8203;1175](https://github.com/rust-lang/cc-rs/pull/1175)) ### [`v1.1.8`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#118---2024-08-06) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.7...cc-v1.1.8) ##### Other - Fix broken link in docs.rs ([#&#8203;1173](https://github.com/rust-lang/cc-rs/pull/1173)) ### [`v1.1.7`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#117---2024-07-29) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.6...cc-v1.1.7) ##### Other - add `.objects` ([#&#8203;1166](https://github.com/rust-lang/cc-rs/pull/1166)) ### [`v1.1.6`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#116---2024-07-19) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.5...cc-v1.1.6) ##### Other - Clippy fixes ([#&#8203;1163](https://github.com/rust-lang/cc-rs/pull/1163)) ### [`v1.1.5`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#115---2024-07-15) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.4...cc-v1.1.5) ##### Other - Fix cyclic compilation: Use vendored once_cell ([#&#8203;1154](https://github.com/rust-lang/cc-rs/pull/1154)) ### [`v1.1.4`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#114---2024-07-14) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.3...cc-v1.1.4) ##### Other - Support compiling on wasm targets (Supersede [#&#8203;1068](https://github.com/rust-lang/cc-rs/pull/1068)) ([#&#8203;1160](https://github.com/rust-lang/cc-rs/pull/1160)) ### [`v1.1.3`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#113---2024-07-14) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.2...cc-v1.1.3) ##### Other - Reduce msrv to 1.63 ([#&#8203;1158](https://github.com/rust-lang/cc-rs/pull/1158)) - Revert "Use raw-dylib for windows-sys ([#&#8203;1137](https://github.com/rust-lang/cc-rs/pull/1137))" ([#&#8203;1157](https://github.com/rust-lang/cc-rs/pull/1157)) - Fix typos ([#&#8203;1152](https://github.com/rust-lang/cc-rs/pull/1152)) - Fix `doc_lazy_continuation` lints ([#&#8203;1153](https://github.com/rust-lang/cc-rs/pull/1153)) ### [`v1.1.2`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#112---2024-07-12) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.1...cc-v1.1.2) ##### Other - Add empty `jobserver` feature. ([#&#8203;1150](https://github.com/rust-lang/cc-rs/pull/1150)) ### [`v1.1.1`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#1119---2024-09-15) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.0...cc-v1.1.1) ##### Other - Add support arm64e-apple-darwin ([#&#8203;1207](https://github.com/rust-lang/cc-rs/pull/1207)) ### [`v1.1.0`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#110---2024-07-08) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.106...cc-v1.1.0) ##### Added - add cargo_output to eliminate last vestiges of stdout pollution ([#&#8203;1141](https://github.com/rust-lang/cc-rs/pull/1141)) ### [`v1.0.106`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#10106---2024-07-08) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.105...cc-v1.0.106) ##### Other - Drop support for Visual Studio 12 (2013) ([#&#8203;1046](https://github.com/rust-lang/cc-rs/pull/1046)) - Use raw-dylib for windows-sys ([#&#8203;1137](https://github.com/rust-lang/cc-rs/pull/1137)) - Bump msrv to 1.67 ([#&#8203;1143](https://github.com/rust-lang/cc-rs/pull/1143)) - Bump msrv to 1.65 ([#&#8203;1140](https://github.com/rust-lang/cc-rs/pull/1140)) - Fix clippy warnings ([#&#8203;1138](https://github.com/rust-lang/cc-rs/pull/1138)) ### [`v1.0.105`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#10105---2024-07-07) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.104...cc-v1.0.105) ##### Other - Regenerate windows sys bindings ([#&#8203;1132](https://github.com/rust-lang/cc-rs/pull/1132)) - Fix generate-windows-sys-bindings ([#&#8203;1133](https://github.com/rust-lang/cc-rs/pull/1133)) - Fix gen-windows-sys-binding ([#&#8203;1130](https://github.com/rust-lang/cc-rs/pull/1130)) - Fix gen-windows-sys-binding ([#&#8203;1127](https://github.com/rust-lang/cc-rs/pull/1127)) - Update windows-bindgen requirement from 0.57 to 0.58 ([#&#8203;1123](https://github.com/rust-lang/cc-rs/pull/1123)) ### [`v1.0.104`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#10104---2024-07-01) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.103...cc-v1.0.104) ##### Other - Fixed link break about compile-time-requirements ([#&#8203;1118](https://github.com/rust-lang/cc-rs/pull/1118)) ### [`v1.0.103`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#10103---2024-06-30) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.102...cc-v1.0.103) ##### Other - Fix compilation for wasm: env WASI_SYSROOT should be optional ([#&#8203;1114](https://github.com/rust-lang/cc-rs/pull/1114)) ### [`v1.0.102`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#10102---2024-06-29) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.101...cc-v1.0.102) ##### Other - Fix invalid wasi targets compatibility ([#&#8203;1105](https://github.com/rust-lang/cc-rs/pull/1105)) - Speedup regenerate-target-info and regenerate-windows-sys ([#&#8203;1110](https://github.com/rust-lang/cc-rs/pull/1110)) ### [`v1.0.101`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#10101---2024-06-25) [Compare Source](https://github.com/rust-lang/cc-rs/compare/cc-v1.0.100...cc-v1.0.101) ##### Other - Use `Build::getenv` instead of `env::var*` in anywhere that makes sense ([#&#8203;1103](https://github.com/rust-lang/cc-rs/pull/1103)) ### [`v1.0.100`](https://github.com/rust-lang/cc-rs/blob/HEAD/CHANGELOG.md#10100---2024-06-23) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.99...cc-v1.0.100) ##### Other - Update publish.yml to use release-plz ([#&#8203;1101](https://github.com/rust-lang/cc-rs/pull/1101)) - Accept `OsStr` instead of `str` for flags ([#&#8203;1100](https://github.com/rust-lang/cc-rs/pull/1100)) - Use `dep:` syntax to avoid implicit features. ([#&#8203;1099](https://github.com/rust-lang/cc-rs/pull/1099)) - Minor clippy fixes. ([#&#8203;1098](https://github.com/rust-lang/cc-rs/pull/1098)) - Fix WASI compilation for C++ ([#&#8203;1083](https://github.com/rust-lang/cc-rs/pull/1083)) - Regenerate windows sys bindings ([#&#8203;1096](https://github.com/rust-lang/cc-rs/pull/1096)) - Rename regenerate-windows-sys to regenerate-windows-sys.yml ([#&#8203;1095](https://github.com/rust-lang/cc-rs/pull/1095)) - Create regenerate-windows-sys.yml ([#&#8203;1094](https://github.com/rust-lang/cc-rs/pull/1094)) - Update windows-bindgen requirement from 0.56 to 0.57 ([#&#8203;1091](https://github.com/rust-lang/cc-rs/pull/1091)) - Eagerly close tempfile to fix [#&#8203;1082](https://github.com/rust-lang/cc-rs/pull/1082) ([#&#8203;1087](https://github.com/rust-lang/cc-rs/pull/1087)) - Output msvc.exe in the output directory ([#&#8203;1090](https://github.com/rust-lang/cc-rs/pull/1090)) - Fix clippy warnings on Windows ([#&#8203;1088](https://github.com/rust-lang/cc-rs/pull/1088)) - Don't try to free DLL on drop ([#&#8203;1089](https://github.com/rust-lang/cc-rs/pull/1089)) - Fix panic safety issue in StderrForwarder ([#&#8203;1079](https://github.com/rust-lang/cc-rs/pull/1079)) ### [`v1.0.99`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.99) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.98...1.0.99) #### What's Changed - Allow opt-out the -ccbin flag by [@&#8203;QuarticCat](https://github.com/QuarticCat) in https://github.com/rust-lang/cc-rs/pull/1085 - Release cc 1.0.99 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1086 #### New Contributors - [@&#8203;QuarticCat](https://github.com/QuarticCat) made their first contribution in https://github.com/rust-lang/cc-rs/pull/1085 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.98...1.0.99 ### [`v1.0.98`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.98) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.97...1.0.98) #### What's Changed - Cleanup some deprecated, unused allows by [@&#8203;klensy](https://github.com/klensy) in https://github.com/rust-lang/cc-rs/pull/1067 - Fix paths on Mac Catalyst by [@&#8203;madsmtm](https://github.com/madsmtm) in https://github.com/rust-lang/cc-rs/pull/1070 - Fix detect_compiler_family.c not being created by [@&#8203;Jake-Shadle](https://github.com/Jake-Shadle) in https://github.com/rust-lang/cc-rs/pull/1072 - Release cc 1.0.98 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1073 #### New Contributors - [@&#8203;klensy](https://github.com/klensy) made their first contribution in https://github.com/rust-lang/cc-rs/pull/1067 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.97...1.0.98 ### [`v1.0.97`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.97) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.96...1.0.97) #### What's Changed - CI: Create regenerate-target-info by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1055 - Fix file extension for pipelime regenerate-target-info by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1056 - Fix running gen-target-info in regenerate-target-info.yml by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1057 - Fix `regenerate-target-info.yml` by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1060 - Add support for riscv32ima by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/rust-lang/cc-rs/pull/1061 - Fix commit message in regenerate-target-info.yml by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1062 - CI: Run cargo-semver-checks for every PR and commits to main by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1053 - fix: emscripten build on windows by [@&#8203;atty303](https://github.com/atty303) in https://github.com/rust-lang/cc-rs/pull/1054 - Don't use the value of SDKROOT if it doesn't match the target. by [@&#8203;jfgoog](https://github.com/jfgoog) in https://github.com/rust-lang/cc-rs/pull/1047 - Rm unnecessary println in try_get_compiler by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1063 - Bump actions/checkout from 3 to 4 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/rust-lang/cc-rs/pull/1064 - Avoid recursive calls into try_get_compiler when items are in the cache by [@&#8203;dpaoliello](https://github.com/dpaoliello) in https://github.com/rust-lang/cc-rs/pull/1050 - Release cc 1.0.97 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1066 #### New Contributors - [@&#8203;github-actions](https://github.com/github-actions) made their first contribution in https://github.com/rust-lang/cc-rs/pull/1061 - [@&#8203;atty303](https://github.com/atty303) made their first contribution in https://github.com/rust-lang/cc-rs/pull/1054 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.96...1.0.97 ### [`v1.0.96`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.96) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.95...1.0.96) #### What's Changed - Use specified include directories prior to CFLAGS by [@&#8203;justsmth](https://github.com/justsmth) in https://github.com/rust-lang/cc-rs/pull/1043 - MSVC: Add support for linking against the "spectre-mitigated" CRT by [@&#8203;dpaoliello](https://github.com/dpaoliello) in https://github.com/rust-lang/cc-rs/pull/673 - Release cc 1.0.96 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1045 #### New Contributors - [@&#8203;justsmth](https://github.com/justsmth) made their first contribution in https://github.com/rust-lang/cc-rs/pull/1043 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.95...1.0.96 ### [`v1.0.95`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.95) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.94...1.0.95) #### What's Changed - Update windows-bindgen requirement from 0.55 to 0.56 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/rust-lang/cc-rs/pull/1035 - Bump msrv to 1.63 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1031 - Optimize jobserver `try_acquire` by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1037 - Release cc 1.0.95 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1038 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.94...1.0.95 ### [`v1.0.94`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.94) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.93...1.0.94) #### What's Changed - Fix xcrun sdk version arg by [@&#8203;0123456789-jpg](https://github.com/0123456789-jpg) in https://github.com/rust-lang/cc-rs/pull/1007 - Release cc 1.0.94 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1034 #### New Contributors - [@&#8203;0123456789-jpg](https://github.com/0123456789-jpg) made their first contribution in https://github.com/rust-lang/cc-rs/pull/1007 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.93...1.0.94 ### [`v1.0.93`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.93) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.92...1.0.93) #### What's Changed - Add visionOS support by [@&#8203;madsmtm](https://github.com/madsmtm) in https://github.com/rust-lang/cc-rs/pull/1029 - Release cc-rs 1.0.93 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1032 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.92...1.0.93 ### [`v1.0.92`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.92) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.91...1.0.92) #### What's Changed - Fix linking with llvm-lib by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1027 - Release cc 1.0.92 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1028 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.91...1.0.92 ### [`v1.0.91`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.91) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.90...1.0.91) #### What's Changed - Update windows-bindgen requirement from 0.54 to 0.55 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/rust-lang/cc-rs/pull/999 - Fix: Accept non utf-8 characters in compiler and archiver by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/998 - CI: Add automatic publish on tag creation by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/978 - feat: Query rustc for clang target triples instead of hardcoding them by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1004 - Fix safety comment for LibraryHandle::get_proc_address by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1010 - Fix compile family detection: Use C macros instead of `$compiler -v` by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1000 - refactor: Optimize code based on cargo clippy suggestions by [@&#8203;InventiveCoder](https://github.com/InventiveCoder) in https://github.com/rust-lang/cc-rs/pull/1013 - Fix regression in compiler family detection by [@&#8203;russelltg](https://github.com/russelltg) in https://github.com/rust-lang/cc-rs/pull/1014 - Also shim llvm-ar in the clang_android test on non-Windows by [@&#8203;dpaoliello](https://github.com/dpaoliello) in https://github.com/rust-lang/cc-rs/pull/1016 - Fix caching of supported compiler flag by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1002 - fix llvm-ar as archiver for msvc targets; fix clang-cl detection; fix assembler output flag detection; add clang/clang-cl windows CI by [@&#8203;russelltg](https://github.com/russelltg) in https://github.com/rust-lang/cc-rs/pull/1015 - fix(env_tool): return None if env is empty by [@&#8203;cathaysia](https://github.com/cathaysia) in https://github.com/rust-lang/cc-rs/pull/1021 - Release cc 1.0.91 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/1024 #### New Contributors - [@&#8203;InventiveCoder](https://github.com/InventiveCoder) made their first contribution in https://github.com/rust-lang/cc-rs/pull/1013 - [@&#8203;russelltg](https://github.com/russelltg) made their first contribution in https://github.com/rust-lang/cc-rs/pull/1014 - [@&#8203;cathaysia](https://github.com/cathaysia) made their first contribution in https://github.com/rust-lang/cc-rs/pull/1021 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.90...1.0.91 ### [`v1.0.90`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.90) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.89...1.0.90) #### What's Changed - Revert "refactor target flags" by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/992 - Fix regression: remove `--target` when targeting Android on non-Windows platforms by [@&#8203;dpaoliello](https://github.com/dpaoliello) in https://github.com/rust-lang/cc-rs/pull/991 - Drop support for Visual Studio 11 (2012) by [@&#8203;dpaoliello](https://github.com/dpaoliello) in https://github.com/rust-lang/cc-rs/pull/981 - Fix the clang targets for RISC-V Rust targets by [@&#8203;djkoloski](https://github.com/djkoloski) in https://github.com/rust-lang/cc-rs/pull/993 - Release cc 1.0.90 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/996 #### New Contributors - [@&#8203;djkoloski](https://github.com/djkoloski) made their first contribution in https://github.com/rust-lang/cc-rs/pull/993 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.89...1.0.90 ### [`v1.0.89`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.89) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.88...1.0.89) #### What's Changed - refactor target flags by [@&#8203;youknowone](https://github.com/youknowone) in https://github.com/rust-lang/cc-rs/pull/873 - Update windows-bindgen requirement from 0.53 to 0.54 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/rust-lang/cc-rs/pull/982 - Support finding Windows tools on non-Windows host by [@&#8203;cavivie](https://github.com/cavivie) in https://github.com/rust-lang/cc-rs/pull/907 - Use llvm-ar, llvm-ranlib for Android NDK by [@&#8203;mariotaku](https://github.com/mariotaku) in https://github.com/rust-lang/cc-rs/pull/983 - Add a public file iterator by [@&#8203;gzz2000](https://github.com/gzz2000) in https://github.com/rust-lang/cc-rs/pull/987 - Fix make resource failure when cc parallel is enabled by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/985 - Release cc 1.0.89 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/988 #### New Contributors - [@&#8203;cavivie](https://github.com/cavivie) made their first contribution in https://github.com/rust-lang/cc-rs/pull/907 - [@&#8203;mariotaku](https://github.com/mariotaku) made their first contribution in https://github.com/rust-lang/cc-rs/pull/983 - [@&#8203;gzz2000](https://github.com/gzz2000) made their first contribution in https://github.com/rust-lang/cc-rs/pull/987 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.88...1.0.89 ### [`v1.0.88`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.88) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.87...1.0.88) #### What's Changed - Add `/System/iOSSupport` to header/library search paths on Mac Catalyst by [@&#8203;madsmtm](https://github.com/madsmtm) in https://github.com/rust-lang/cc-rs/pull/961 - Fix set_blocking by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/975 - feat: move debug logging behind a debug flag that is disabled by default by [@&#8203;amaanq](https://github.com/amaanq) in https://github.com/rust-lang/cc-rs/pull/972 - Release cc 1.0.88 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/977 #### New Contributors - [@&#8203;madsmtm](https://github.com/madsmtm) made their first contribution in https://github.com/rust-lang/cc-rs/pull/961 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.87...1.0.88 ### [`v1.0.87`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.87) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.86...1.0.87) #### What's Changed - fix: remove unnecessary `println`s by [@&#8203;amaanq](https://github.com/amaanq) in https://github.com/rust-lang/cc-rs/pull/960 - Support native ARM64 MSVC toolchain, and fallback to x64 if emulation is available by [@&#8203;dpaoliello](https://github.com/dpaoliello) in https://github.com/rust-lang/cc-rs/pull/957 - add armv8r-none-eabihf by [@&#8203;chrisnc](https://github.com/chrisnc) in https://github.com/rust-lang/cc-rs/pull/836 - Fix use of cc with make <4.3: Clear O_NONBLOCK after compilaton by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/966 - Release cc 1.0.87 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/967 #### New Contributors - [@&#8203;amaanq](https://github.com/amaanq) made their first contribution in https://github.com/rust-lang/cc-rs/pull/960 - [@&#8203;chrisnc](https://github.com/chrisnc) made their first contribution in https://github.com/rust-lang/cc-rs/pull/836 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.86...1.0.87 ### [`v1.0.86`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.86) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.85...1.0.86) #### What's Changed - CI: Run test on aarch64-apple-darwin by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/947 - Fix jobserver: Last `--jobserver-auth` wins by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/949 - Fix setting O_NONBLOCK in parallel::stderr::set_non_blocking by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/946 - Cache compiler versions detected by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/932 - Release cc 1.0.86 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/952 - Fix CI (Test) nightly by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/956 - Added tvos-sim support by [@&#8203;ErikEverson](https://github.com/ErikEverson) in https://github.com/rust-lang/cc-rs/pull/951 #### New Contributors - [@&#8203;ErikEverson](https://github.com/ErikEverson) made their first contribution in https://github.com/rust-lang/cc-rs/pull/951 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.85...1.0.86 ### [`v1.0.85`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.85) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.84...1.0.85) > \[!IMPORTANT] > > This release has been yanked, due to panicking in freeBSD debug build. A release without these issues will be made in the near future. > > Sorry, and thanks. #### What's Changed - fix: fix the usage of include directories for the Rust analyzer by [@&#8203;aminya](https://github.com/aminya) in https://github.com/rust-lang/cc-rs/pull/854 - Fix Apple deployment version floor when linking C++ by [@&#8203;BlackHoleFox](https://github.com/BlackHoleFox) in https://github.com/rust-lang/cc-rs/pull/901 - Fix unconditional cargo metadata printing on flag support check by [@&#8203;ahlinc](https://github.com/ahlinc) in https://github.com/rust-lang/cc-rs/pull/908 - Some clippy fixes by [@&#8203;waywardmonkeys](https://github.com/waywardmonkeys) in https://github.com/rust-lang/cc-rs/pull/879 - Add `--` for files in `try_expand` (like in [#&#8203;514](https://github.com/rust-lang/cc-rs/issues/514)) by [@&#8203;pashokitsme](https://github.com/pashokitsme) in https://github.com/rust-lang/cc-rs/pull/911 - Link against libc++ on \*-linux-ohos by [@&#8203;DianQK](https://github.com/DianQK) in https://github.com/rust-lang/cc-rs/pull/915 - Add support for ARM64EC when building with MSVC by [@&#8203;dpaoliello](https://github.com/dpaoliello) in https://github.com/rust-lang/cc-rs/pull/910 - Add new compile_intermediates function. by [@&#8203;roblabla](https://github.com/roblabla) in https://github.com/rust-lang/cc-rs/pull/914 - Add `cargo_warnings` config to control the use of the cargo warning instruction by [@&#8203;scootermon](https://github.com/scootermon) in https://github.com/rust-lang/cc-rs/pull/917 - Use RUSTC_WRAPPER if no other wrapper is provided by [@&#8203;LeonMatthesKDAB](https://github.com/LeonMatthesKDAB) in https://github.com/rust-lang/cc-rs/pull/918 - move async_executor and job_token modules into new parallel module by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/923 - do not publish cc-test crate by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/926 - move src/os_pipe.rs to src/os_pipe/mod.rs by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/925 - add comment why tvOS CI job is separate from the matrix by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/928 - move retain_unordered_mut function into parallel module by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/930 - move cc-test & gen-windows-sys-binding into workspace by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/927 - fix broken intradoc links by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/922 - split miscellaneous code into a new command_helpers module by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/931 - split Tool and ToolFamily to a new tool module by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/929 - do not publish tests or gcc-shim with crate by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/934 - use full import path in tool module by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/933 - move Windows code into a module by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/924 - add comment explaining gcc-shim. by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/935 - Add support for riscv32imac-esp-espidf by [@&#8203;madmo](https://github.com/madmo) in https://github.com/rust-lang/cc-rs/pull/939 - Forward lines from stderr of child process to stdout on the same thread, instead of spawning a thread by [@&#8203;dpaoliello](https://github.com/dpaoliello) in https://github.com/rust-lang/cc-rs/pull/940 - Fix typos. by [@&#8203;waywardmonkeys](https://github.com/waywardmonkeys) in https://github.com/rust-lang/cc-rs/pull/942 - Fix default deployment target behavior for Apple targets by [@&#8203;BlackHoleFox](https://github.com/BlackHoleFox) in https://github.com/rust-lang/cc-rs/pull/943 - move documentation from README.md to lib.rs by [@&#8203;Be-ing](https://github.com/Be-ing) in https://github.com/rust-lang/cc-rs/pull/921 - Release cc 1.0.85 by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/944 #### New Contributors - [@&#8203;aminya](https://github.com/aminya) made their first contribution in https://github.com/rust-lang/cc-rs/pull/854 - [@&#8203;ahlinc](https://github.com/ahlinc) made their first contribution in https://github.com/rust-lang/cc-rs/pull/908 - [@&#8203;pashokitsme](https://github.com/pashokitsme) made their first contribution in https://github.com/rust-lang/cc-rs/pull/911 - [@&#8203;DianQK](https://github.com/DianQK) made their first contribution in https://github.com/rust-lang/cc-rs/pull/915 - [@&#8203;dpaoliello](https://github.com/dpaoliello) made their first contribution in https://github.com/rust-lang/cc-rs/pull/910 - [@&#8203;scootermon](https://github.com/scootermon) made their first contribution in https://github.com/rust-lang/cc-rs/pull/917 - [@&#8203;LeonMatthesKDAB](https://github.com/LeonMatthesKDAB) made their first contribution in https://github.com/rust-lang/cc-rs/pull/918 - [@&#8203;Be-ing](https://github.com/Be-ing) made their first contribution in https://github.com/rust-lang/cc-rs/pull/923 - [@&#8203;madmo](https://github.com/madmo) made their first contribution in https://github.com/rust-lang/cc-rs/pull/939 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.84...1.0.85 ### [`v1.0.84`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.84) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.83...1.0.84) > \[!IMPORTANT] > > This release has been yanked, due to the Apple deployment target changes causing unintentional widespread breakage for building C++ code on the target (for projects without an explicit deployment target set). A release without these issues will be made in the near future. > > Sorry, and thanks. #### Changes This isn't a complete list, but I've tried to cover everything that is either significant, or could cause problems for people using `cc` in configurations not covered by our tests. - The MSRV has been updated to 1.53.0 (https://github.com/rust-lang/cc-rs/pull/894) - A completely overhauled implementation of the jobserver protocol (used under `feature = parallel`), which should be more efficient. (https://github.com/rust-lang/cc-rs/pull/889). - Better handling of assemblers on windows targets, especially `armasm[64].exe` (https://github.com/rust-lang/cc-rs/pull/867, https://github.com/rust-lang/cc-rs/pull/868, https://github.com/rust-lang/cc-rs/pull/869, https://github.com/rust-lang/cc-rs/pull/857) - A few fixes for incorrect results from `is_flag_supported` (https://github.com/rust-lang/cc-rs/pull/839, https://github.com/rust-lang/cc-rs/pull/886) - Support for the `*-apple-tvos` and `*-apple-tvos-sim` targets (https://github.com/rust-lang/cc-rs/pull/881, https://github.com/rust-lang/cc-rs/pull/704) - Improved handling of the deployment target on Apple targets, including use of `rustc --print deployment-target` when available (https://github.com/rust-lang/cc-rs/pull/848, https://github.com/rust-lang/cc-rs/pull/872) - We no longer bundle bitcode when compiling for Apple targets, as they've deprecated it (https://github.com/rust-lang/cc-rs/pull/812) - A new `remove_flag` function to remove flags which have been added with `add_flag` (https://github.com/rust-lang/cc-rs/pull/885) - Changes to how clang and gcc are distinguished, and how `-m32`/`-mx32`/`-m64` flags are passed (https://github.com/rust-lang/cc-rs/pull/709) - Minor adjustments to how `-isysroot` is passed on Apple targets (https://github.com/rust-lang/cc-rs/pull/703) and how MSVC version is detected on Windows (https://github.com/rust-lang/cc-rs/pull/696). As always, please file bugs if you hit issues. `cc` is used in many more ways than we can possibly test (especially when cross-compiling or using tier-3 platforms). Thanks. #### New Contributors - [@&#8203;BlackHoleFox](https://github.com/BlackHoleFox) made their first contribution in https://github.com/rust-lang/cc-rs/pull/848 - [@&#8203;youknowone](https://github.com/youknowone) made their first contribution in https://github.com/rust-lang/cc-rs/pull/704 - [@&#8203;Arc-blroth](https://github.com/Arc-blroth) made their first contribution in https://github.com/rust-lang/cc-rs/pull/705 - [@&#8203;osiewicz](https://github.com/osiewicz) made their first contribution in https://github.com/rust-lang/cc-rs/pull/878 - [@&#8203;RubixDev](https://github.com/RubixDev) made their first contribution in https://github.com/rust-lang/cc-rs/pull/839 - [@&#8203;lcruz99](https://github.com/lcruz99) made their first contribution in https://github.com/rust-lang/cc-rs/pull/881 - [@&#8203;raisfeld-ori](https://github.com/raisfeld-ori) made their first contribution in https://github.com/rust-lang/cc-rs/pull/885 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.83...1.0.84 ### [`v1.0.83`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.83) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.82...1.0.83) #### What's Changed - Add method for specifying C/C++ standard version by [@&#8203;hikari-no-yume](https://github.com/hikari-no-yume) in https://github.com/rust-lang/cc-rs/pull/761 - Stop using feature "libc/std" by [@&#8203;kadiwa4](https://github.com/kadiwa4) in https://github.com/rust-lang/cc-rs/pull/860 #### New Contributors - [@&#8203;hikari-no-yume](https://github.com/hikari-no-yume) made their first contribution in https://github.com/rust-lang/cc-rs/pull/761 - [@&#8203;kadiwa4](https://github.com/kadiwa4) made their first contribution in https://github.com/rust-lang/cc-rs/pull/860 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.82...1.0.83 ### [`v1.0.82`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.82) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.81...1.0.82) This release corrects a deadlock and potential performance regression present since 1.0.80, and contains no other changes. See https://github.com/rust-lang/cc-rs/pull/849 for details. ### [`v1.0.81`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.81) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.80...1.0.81) This release exists to fix a bug introduced in 1.0.80 where we would panic if non-UTF8 were written to stderr by the C compiler. See https://github.com/rust-lang/cc-rs/pull/842 and https://github.com/rust-lang/cc-rs/issues/841 for more info. ### [`v1.0.80`](https://github.com/rust-lang/cc-rs/releases/tag/1.0.80) [Compare Source](https://github.com/rust-lang/cc-rs/compare/1.0.79...1.0.80) #### What's Changed - Bump MSRV to 1.46.0 by [@&#8203;thomcc](https://github.com/thomcc) in https://github.com/rust-lang/cc-rs/pull/781 - Make `windows_registry::VsVers` non_exhaustive by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/783 - Prioritize RUSTC_LINKER over target->cross-compile-prefix table. by [@&#8203;dot-asm](https://github.com/dot-asm) in https://github.com/rust-lang/cc-rs/pull/767 - If a file path references a parent directory, transform it to ensure we keep inside the OUT_DIR by [@&#8203;jmesmon](https://github.com/jmesmon) in https://github.com/rust-lang/cc-rs/pull/786 - Speedup `Build::clone`: Use `Arc` instead of `String`/`PathBuf`/`OsString` by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/782 - Fix --target cflag on FreeBSD when compiling against clang by [@&#8203;mqudsi](https://github.com/mqudsi) in https://github.com/rust-lang/cc-rs/pull/785 - Append `freebsd-version` to all --target=\*-freebsd if executed on FreeBSD. by [@&#8203;dot-asm](https://github.com/dot-asm) in https://github.com/rust-lang/cc-rs/pull/788 - Update some doc comments by [@&#8203;mqudsi](https://github.com/mqudsi) in https://github.com/rust-lang/cc-rs/pull/792 - Prevent cloning on every `get_xxx()` call by [@&#8203;mqudsi](https://github.com/mqudsi) in https://github.com/rust-lang/cc-rs/pull/793 - Change approach for native and cross-compilation with clang++ on FreeBSD by [@&#8203;mqudsi](https://github.com/mqudsi) in https://github.com/rust-lang/cc-rs/pull/794 - Default to llvm-ar when compiling for wasm. by [@&#8203;dot-asm](https://github.com/dot-asm) in https://github.com/rust-lang/cc-rs/pull/657 - Add Loongarch64 support by [@&#8203;zhaixiaojuan](https://github.com/zhaixiaojuan) in https://github.com/rust-lang/cc-rs/pull/637 - Refine CUDA documentation. by [@&#8203;dot-asm](https://github.com/dot-asm) in https://github.com/rust-lang/cc-rs/pull/799 - Improve docs for the C++ usage by [@&#8203;SallySoul](https://github.com/SallySoul) in https://github.com/rust-lang/cc-rs/pull/600 - Link against libc++ on AIX by [@&#8203;bzEq](https://github.com/bzEq) in https://github.com/rust-lang/cc-rs/pull/803 - Speedup CI by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/805 - Enable dependabot for GitHub Action Workflows by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/806 - Be more stringent about handling Android NDK. by [@&#8203;jfgoog](https://github.com/jfgoog) in https://github.com/rust-lang/cc-rs/pull/808 - Optimize `Build::compile_objects`: Only spawns one thread by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/780 - add a function to populate flags from an arbitrary environment variable by [@&#8203;nagisa](https://github.com/nagisa) in https://github.com/rust-lang/cc-rs/pull/818 - Use gnu -o flag for obj out path instead of -Fo when using gcc & g++ on Windows by [@&#8203;Spencer1O1](https://github.com/Spencer1O1) in https://github.com/rust-lang/cc-rs/pull/820 - Replace `os_pipe` with direct implementation by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/822 - Optimize `Build::print`: Avoid unnecessary heap alloc by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/824 - Optimize `Error::new`: Avoid unnecessary heap alloc by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/823 - Optimize `cc::Build::try_compile`: Reuse `PrintThread` by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/817 - Remove outdated doc about build parallelism by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/827 - Use correct ABI on NetBSD/riscv64, and add target entry for same. by [@&#8203;he32](https://github.com/he32) in https://github.com/rust-lang/cc-rs/pull/815 - Fix `Build::compile_objects` deadlock on parallel by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/829 - Cleanup mod com, registry, setup_config and winapi by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/828 - Optimize `Build::get_out_dir`: Return `Cow<'_, Path>` by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/831 - Optimize `Build::env_cache`: Store `Option<Arc<str>>` as key by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/832 - Optimize `Build::compile_objects` on feature parallel by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/833 - Disambiguate Windows run-times when using clang to compile. by [@&#8203;dot-asm](https://github.com/dot-asm) in https://github.com/rust-lang/cc-rs/pull/825 - Harmonize README.md with reality. by [@&#8203;dot-asm](https://github.com/dot-asm) in https://github.com/rust-lang/cc-rs/pull/835 - Replace `windows-sys` dependency with bindings generation by [@&#8203;NobodyXu](https://github.com/NobodyXu) in https://github.com/rust-lang/cc-rs/pull/837 - Handle `x86_64h-apple-darwin` target by [@&#8203;thomcc](https://github.com/thomcc) in https://github.com/rust-lang/cc-rs/pull/840 - Bump version to 1.0.80 by [@&#8203;thomcc](https://github.com/thomcc) in https://github.com/rust-lang/cc-rs/pull/834 #### New Contributors - [@&#8203;zhaixiaojuan](https://github.com/zhaixiaojuan) made their first contribution in https://github.com/rust-lang/cc-rs/pull/637 - [@&#8203;SallySoul](https://github.com/SallySoul) made their first contribution in https://github.com/rust-lang/cc-rs/pull/600 - [@&#8203;bzEq](https://github.com/bzEq) made their first contribution in https://github.com/rust-lang/cc-rs/pull/803 - [@&#8203;jfgoog](https://github.com/jfgoog) made their first contribution in https://github.com/rust-lang/cc-rs/pull/808 - [@&#8203;Spencer1O1](https://github.com/Spencer1O1) made their first contribution in https://github.com/rust-lang/cc-rs/pull/820 - [@&#8203;he32](https://github.com/he32) made their first contribution in https://github.com/rust-lang/cc-rs/pull/815 **Full Changelog**: https://github.com/rust-lang/cc-rs/compare/1.0.79...1.0.80 </details> <details> <summary>nodejs/nan (nan)</summary> ### [`v2.20.0`](https://github.com/nodejs/nan/blob/HEAD/CHANGELOG.md#2200-Jun-12-2024) [Compare Source](https://github.com/nodejs/nan/compare/v2.19.0...v2.20.0) - Feature: fix removal of v8::CopyablePersistent ([#&#8203;970](https://github.com/nodejs/nan/issues/970)) [`5805ca5`](https://github.com/nodejs/nan/commit/5805ca5c4c2eef9a65316b68741e29f4825c511f) ### [`v2.19.0`](https://github.com/nodejs/nan/blob/HEAD/CHANGELOG.md#2190-Mar-6-2024) [Compare Source](https://github.com/nodejs/nan/compare/v2.18.0...v2.19.0) - Feature: Fix builds for Electron 29 ([#&#8203;966](https://github.com/nodejs/nan/issues/966)) [`1b630dd`](https://github.com/nodejs/nan/commit/1b630ddb3412cde35b64513662b440f9fd71e1ff) ### [`v2.18.0`](https://github.com/nodejs/nan/blob/HEAD/CHANGELOG.md#2180-Sep-12-2023) [Compare Source](https://github.com/nodejs/nan/compare/v2.17.0...v2.18.0) - Feature: Cast v8::Object::GetInternalField() return value to v8::Value ([#&#8203;956](https://github.com/nodejs/nan/issues/956)) [`bdfee17`](https://github.com/nodejs/nan/commit/bdfee1788239f735b67fe6b46b1439da755e9b62) </details> <details> <summary>prettier/prettier (prettier)</summary> ### [`v3.3.3`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#333) [Compare Source](https://github.com/prettier/prettier/compare/3.3.2...3.3.3) [diff](https://github.com/prettier/prettier/compare/3.3.2...3.3.3) ##### Add parentheses for nullish coalescing in ternary ([#&#8203;16391](https://github.com/prettier/prettier/pull/16391) by [@&#8203;cdignam-segment](https://github.com/cdignam-segment)) This change adds clarity to operator precedence. <!-- prettier-ignore --> ```js // 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 ([#&#8203;16458](https://github.com/prettier/prettier/pull/16458) by [@&#8203;y-schneider](https://github.com/y-schneider)) Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5. <!-- prettier-ignore --> ```ts // 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 ([#&#8203;16474](https://github.com/prettier/prettier/pull/16474) by [@&#8203;sosukesuzuki](https://github.com/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: <!-- prettier-ignore --> ```html @&#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 @&#8203;let in Angular](https://blog.angular.dev/introducing-let-in-angular-686f9f383f0f). We also appreciate the Angular Team for kindly answering our questions to implement this feature. ### [`v3.3.2`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#332) [Compare Source](https://github.com/prettier/prettier/compare/3.3.1...3.3.2) [diff](https://github.com/prettier/prettier/compare/3.3.1...3.3.2) ##### Fix handlebars path expressions starts with `@` ([#&#8203;16358](https://github.com/prettier/prettier/pull/16358) by [@&#8203;Princeyadav05](https://github.com/Princeyadav05)) <!-- prettier-ignore --> ```hbs {{! Input }} <div>{{@&#8203;x.y.z}}</div> {{! Prettier 3.3.1 }} <div>{{@&#8203;x}}</div> {{! Prettier 3.3.2 }} <div>{{@&#8203;x.y.z}}</div> ``` ### [`v3.3.1`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#331) [Compare Source](https://github.com/prettier/prettier/compare/3.3.0...3.3.1) [diff](https://github.com/prettier/prettier/compare/3.3.0...3.3.1) ##### Preserve empty lines in front matter ([#&#8203;16347](https://github.com/prettier/prettier/pull/16347) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```markdown <!-- Input --> --- foo: - bar1 - bar2 - bar3 --- Markdown <!-- Prettier 3.3.0 --> --- foo: - bar1 - bar2 - bar3 --- Markdown <!-- Prettier 3.3.1 --> --- foo: - bar1 - bar2 - bar3 --- Markdown ``` ##### Preserve explicit language in front matter ([#&#8203;16348](https://github.com/prettier/prettier/pull/16348) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```markdown <!-- Input --> ---yaml title: Hello slug: home --- <!-- Prettier 3.3.0 --> --- title: Hello slug: home --- <!-- Prettier 3.3.1 --> ---yaml title: Hello slug: home --- ``` ##### Avoid line breaks in import attributes ([#&#8203;16349](https://github.com/prettier/prettier/pull/16349) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```jsx // Input import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" }; // Prettier 3.3.0 import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" }; // Prettier 3.3.1 import something from "./some-very-very-very-very-very-very-very-very-long-path.json" with { type: "json" }; ``` ### [`v3.3.0`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#330) [Compare Source](https://github.com/prettier/prettier/compare/3.2.5...3.3.0) [diff](https://github.com/prettier/prettier/compare/3.2.5...3.3.0) 🔗 [Release Notes](https://prettier.io/blog/2024/06/01/3.3.0.html) ### [`v3.2.5`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#325) [Compare Source](https://github.com/prettier/prettier/compare/3.2.4...3.2.5) [diff](https://github.com/prettier/prettier/compare/3.2.4...3.2.5) ##### Support Angular inline styles as single template literal ([#&#8203;15968](https://github.com/prettier/prettier/pull/15968) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki)) [Angular v17](https://blog.angular.io/introducing-angular-v17-4d7033312e4b) supports single string inline styles. <!-- prettier-ignore --> ```ts // Input @&#8203;Component({ template: `<div>...</div>`, styles: `h1 { color: blue; }`, }) export class AppComponent {} // Prettier 3.2.4 @&#8203;Component({ template: `<div>...</div>`, styles: `h1 { color: blue; }`, }) export class AppComponent {} // Prettier 3.2.5 @&#8203;Component({ template: `<div>...</div>`, styles: ` h1 { color: blue; } `, }) export class AppComponent {} ``` ##### Unexpected embedded formatting for Angular template ([#&#8203;15969](https://github.com/prettier/prettier/pull/15969) by [@&#8203;JounQin](https://github.com/JounQin)) Computed template should not be considered as Angular component template <!-- prettier-ignore --> ```ts // Input const template = "foobar"; @&#8203;Component({ [template]: `<h1>{{ hello }}</h1>`, }) export class AppComponent {} // Prettier 3.2.4 const template = "foobar"; @&#8203;Component({ [template]: `<h1>{{ hello }}</h1>`, }) export class AppComponent {} // Prettier 3.2.5 const template = "foobar"; @&#8203;Component({ [template]: `<h1>{{ hello }}</h1>`, }) export class AppComponent {} ``` ##### Use `"json"` parser for `tsconfig.json` by default ([#&#8203;16012](https://github.com/prettier/prettier/pull/16012) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki)) In [v3.2.0](https://prettier.io/blog/2024/01/12/3.2.0#new-jsonc-parser-added-15831httpsgithubcomprettierprettierpull15831-by-fiskerhttpsgithubcomfisker), we introduced `"jsonc"` parser which adds trailing comma **by default**. When adding a new parser we also define how it will be used based on the [`linguist-languages`](https://www.npmjs.com/package/linguist-languages) data. `tsconfig.json` is a special file used by [TypeScript](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#using-tsconfigjson-or-jsconfigjson), it uses `.json` file extension, but it actually uses the [JSON with Comments](https://code.visualstudio.com/docs/languages/json#\_json-with-comments) syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing `.json` file extension. We decide to treat it as a JSON file for now to avoid the extra configuration step. To keep using the `"jsonc"` parser for your `tsconfig.json` files, add the following to your `.prettierrc` file ```json { "overrides": [ { "files": ["tsconfig.json", "jsconfig.json"], "options": { "parser": "jsonc" } } ] } ``` <!-- prettier-ignore --> ``` ``` ### [`v3.2.4`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#Prettier-324) [Compare Source](https://github.com/prettier/prettier/compare/3.2.3...3.2.4) prettier --file-info tsconfig.json { "ignored": false, "inferredParser": "jsonc" } ### [`v3.2.3`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#323) [Compare Source](https://github.com/prettier/prettier/compare/3.2.2...3.2.3) [diff](https://github.com/prettier/prettier/compare/3.2.2...3.2.3) ##### Throw errors for invalid code ([#&#8203;15881](https://github.com/prettier/prettier/pull/15881) by [@&#8203;fisker](https://github.com/fisker), [@&#8203;Josh-Cena](https://github.com/Josh-Cena), [@&#8203;auvred](https://github.com/auvred)) <!-- prettier-ignore --> ```ts // Input 1++; // Prettier 3.2.2 1++; // Prettier 3.2.3 SyntaxError: Invalid left-hand side expression in unary operation (1:1) > 1 | 1++; | ^ ``` <!-- prettier-ignore --> ```ts // Input try {} catch (error = 1){} // Prettier 3.2.2 try { } catch (error) {} // Prettier 3.2.3 SyntaxError: Catch clause variable cannot have an initializer. (1:23) > 1 | try {} catch (error = 1){} | ^ ``` ##### Fix parser inference ([#&#8203;15927](https://github.com/prettier/prettier/pull/15927) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```console // Prettier 3.2.2 prettier --file-info tsconfig.json { "ignored": false, "inferredParser": "json" } // Prettier 3.2.3 prettier --file-info tsconfig.json { "ignored": false, "inferredParser": "jsonc" } ``` ### [`v3.2.2`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#322) [Compare Source](https://github.com/prettier/prettier/compare/3.2.1...3.2.2) [diff](https://github.com/prettier/prettier/compare/3.2.1...3.2.2) ##### Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute ([#&#8203;15896](https://github.com/prettier/prettier/pull/15896) by [@&#8203;eelco](https://github.com/eelco)) For example this code would crash before: <!-- prettier-ignore --> ```jsx <style {...spread}>{`.{}`}</style> ``` ##### Fix formatting error on optional call expression and member chain ([#&#8203;15920](https://github.com/prettier/prettier/pull/15920) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki)) <!-- prettier-ignore --> ```jsx // Input a(() => {}, c?.d()); // Prettier 3.2.1 TypeError: Cannot read properties of undefined (reading 'type') // Prettier 3.2.2 a(() => {}, c?.d()); ``` ### [`v3.2.1`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#321) [Compare Source](https://github.com/prettier/prettier/compare/3.2.0...3.2.1) [diff](https://github.com/prettier/prettier/compare/3.2.0...3.2.1) ##### Fix formatting error on member chain ([#&#8203;15915](https://github.com/prettier/prettier/pull/15915) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki)) <!-- prettier-ignore --> ```jsx // Input test().test2().test2(thing?.something); // Prettier 3.2.0 TypeError: Cannot read properties of undefined (reading 'type') // Prettier 3.2.1 test().test2().test2(thing?.something); ``` ### [`v3.2.0`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#320) [Compare Source](https://github.com/prettier/prettier/compare/3.1.1...3.2.0) [diff](https://github.com/prettier/prettier/compare/3.1.1...3.2.0) 🔗 [Release Notes](https://prettier.io/blog/2024/01/12/3.2.0.html) ### [`v3.1.1`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#311) [Compare Source](https://github.com/prettier/prettier/compare/3.1.0...3.1.1) [diff](https://github.com/prettier/prettier/compare/3.1.0...3.1.1) ##### Fix config file search ([#&#8203;15363](https://github.com/prettier/prettier/pull/15363) by [@&#8203;fisker](https://github.com/fisker)) Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake. ```text ├─ .prettierrc └─ test.js (A directory) └─ .prettierrc ``` ```js // Prettier 3.1.0 await prettier.resolveConfigFile(new URL("./test.js", import.meta.url)); // <CWD>/test.js/.prettierrc // Prettier 3.1.1 await prettier.resolveConfigFile(new URL("./test.js", import.meta.url)); // <CWD>/.prettierrc ``` ##### Skip explicitly passed symbolic links with `--no-error-on-unmatched-pattern` ([#&#8203;15533](https://github.com/prettier/prettier/pull/15533) by [@&#8203;sanmai-NL](https://github.com/sanmai-NL)) Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors. In Prettier 3.1.1, you can use `--no-error-on-unmatched-pattern` to simply skip symbolic links. ##### Consistently use tabs in ternaries when `useTabs` is `true` ([#&#8203;15662](https://github.com/prettier/prettier/pull/15662) by [@&#8203;auvred](https://github.com/auvred)) <!-- prettier-ignore --> ```jsx // Input aaaaaaaaaaaaaaa ? bbbbbbbbbbbbbbbbbb : ccccccccccccccc ? ddddddddddddddd : eeeeeeeeeeeeeee ? fffffffffffffff : gggggggggggggggg; // Prettier 3.1.0 aaaaaaaaaaaaaaa ? bbbbbbbbbbbbbbbbbb : ccccccccccccccc ? ddddddddddddddd : eeeeeeeeeeeeeee ? fffffffffffffff : gggggggggggggggg; // Prettier 3.1.1 aaaaaaaaaaaaaaa ? bbbbbbbbbbbbbbbbbb : ccccccccccccccc ? ddddddddddddddd : eeeeeeeeeeeeeee ? fffffffffffffff : gggggggggggggggg; ``` ##### Improve config file search ([#&#8203;15663](https://github.com/prettier/prettier/pull/15663) by [@&#8203;fisker](https://github.com/fisker)) The Prettier config file search performance has been improved by more effective cache strategy. ##### Fix unstable and ugly formatting for comments in destructuring patterns ([#&#8203;15708](https://github.com/prettier/prettier/pull/15708) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki)) <!-- prettier-ignore --> ```tsx // Input const { foo, // bar // baz }: Foo = expr; // Prettier 3.1.0 const { foo1, } // bar // baz : Foo = expr; // Prettier 3.1.0 second output const { foo1, // bar } // baz : Foo = expr; // Prettier 3.1.1 const { foo1, // bar // baz }: Foo = expr; ``` ##### Support "Import Attributes" ([#&#8203;15718](https://github.com/prettier/prettier/pull/15718) by [@&#8203;fisker](https://github.com/fisker)) [TypeScript 5.3](https://devblogs.microsoft.com/typescript/announcing-typescript-5-3/#import-attributes) supports the latest updates to the [import attributes](https://github.com/tc39/proposal-import-attributes) proposal. ```tsx import something from "./something.json" with { type: "json" }; ``` ##### Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd ([#&#8203;15750](https://github.com/prettier/prettier/pull/15750) by [@&#8203;ExplodingCabbage](https://github.com/ExplodingCabbage)) The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by [@&#8203;ds300](https://github.com/ds300). However, Prettier's documentation (including the CLI `--help` text) continued to claim otherwise, falsely. The documentation is now fixed. ##### Keep curly braces and `from` keyword in empty `import` statements ([#&#8203;15756](https://github.com/prettier/prettier/pull/15756) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```js // Input import { } from 'foo'; import { /* comment */ } from 'bar'; // Prettier 3.1.0 import {} from "foo"; import /* comment */ "bar"; // Prettier 3.1.1 import {} from "foo"; import {} from /* comment */ "bar"; ``` ##### Keep empty import attributes and assertions ([#&#8203;15757](https://github.com/prettier/prettier/pull/15757) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```js // Input import foo from "foo" with {}; import bar from "bar" assert {}; // Prettier 3.1.0 import foo from "foo"; import bar from "bar"; // Prettier 3.1.1 import foo from "foo" with {}; import bar from "bar" assert {}; ``` ### [`v3.1.0`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#310) [Compare Source](https://github.com/prettier/prettier/compare/3.0.3...3.1.0) [diff](https://github.com/prettier/prettier/compare/3.0.3...3.1.0) 🔗 [Release Notes](https://prettier.io/blog/2023/11/13/3.1.0.html) ### [`v3.0.3`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#303) [Compare Source](https://github.com/prettier/prettier/compare/3.0.2...3.0.3) [diff](https://github.com/prettier/prettier/compare/3.0.2...3.0.3) ##### Add `preferUnplugged: true` to `package.json` ([#&#8203;15169](https://github.com/prettier/prettier/pull/15169) by [@&#8203;fisker](https://github.com/fisker) and [@&#8203;so1ve](https://github.com/so1ve)) Prettier v3 uses dynamic imports, user [will need to unplug Prettier](https://github.com/yarnpkg/berry/pull/5411#issuecomment-1523502224) when Yarn's PnP mode is enabled, add [`preferUnplugged: true`](https://yarnpkg.com/configuration/manifest#preferUnplugged) to `package.json`, so Yarn will install Prettier as unplug by default. ##### Support shared config that forbids `require()` ([#&#8203;15233](https://github.com/prettier/prettier/pull/15233) by [@&#8203;fisker](https://github.com/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. ```text Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in <packageName>/package.json ``` ##### Allow argument of `require()` to break ([#&#8203;15256](https://github.com/prettier/prettier/pull/15256) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```jsx // 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 ([#&#8203;15286](https://github.com/prettier/prettier/pull/15286) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki)) <!-- prettier-ignore --> ````md <!-- 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 ([#&#8203;15321](https://github.com/prettier/prettier/pull/15321) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki)) Support for the upcoming Explicit Resource Management feature in ECMAScript. [`using` / `await using` declaration](https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#using-declarations-and-explicit-resource-management) <!-- prettier-ignore --> ```tsx { using foo = new Foo(); await using bar = new Bar(); } ``` ### [`v3.0.2`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#302) [Compare Source](https://github.com/prettier/prettier/compare/3.0.1...3.0.2) [diff](https://github.com/prettier/prettier/compare/3.0.1...3.0.2) ##### Break after `=` of assignment if RHS is poorly breakable AwaitExpression or YieldExpression ([#&#8203;15204](https://github.com/prettier/prettier/pull/15204) by [@&#8203;seiyab](https://github.com/seiyab)) <!-- prettier-ignore --> ```js // 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 ([#&#8203;15217](https://github.com/prettier/prettier/pull/15217) by [@&#8203;auvred](https://github.com/auvred)) <!-- prettier-ignore --> ```scss /* 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 ([#&#8203;15249](https://github.com/prettier/prettier/pull/15249) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki)) <!-- prettier-ignore --> ```tsx // 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`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#301) [Compare Source](https://github.com/prettier/prettier/compare/3.0.0...3.0.1) [diff](https://github.com/prettier/prettier/compare/3.0.0...3.0.1) ##### Fix cursor positioning for a special case ([#&#8203;14812](https://github.com/prettier/prettier/pull/14812) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```js // <|> 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 ([#&#8203;15018](https://github.com/prettier/prettier/pull/15018) by [@&#8203;kingyue737](https://github.com/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 ([#&#8203;15037](https://github.com/prettier/prettier/pull/15037) by [@&#8203;auvred](https://github.com/auvred)) <!-- prettier-ignore --> ```jsx // Input function fn() { return ( /** * @&#8203;type {...} */ expression ) } // Prettier 3.0.0 function fn() { return /** * @&#8203;type {...} */ expression; } // Prettier 3.0.1 function fn() { return ( /** * @&#8203;type {...} */ expression ); } ``` ##### Add support for Vue "Generic Components" ([#&#8203;15066](https://github.com/prettier/prettier/pull/15066) by [@&#8203;auvred](https://github.com/auvred)) https://blog.vuejs.org/posts/vue-3-3#generic-components <!-- prettier-ignore --> ```vue <!-- 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` ([#&#8203;15076](https://github.com/prettier/prettier/pull/15076) by [@&#8203;fisker](https://github.com/fisker)) <!-- prettier-ignore --> ```js 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` ([#&#8203;15123](https://github.com/prettier/prettier/pull/15123) by [@&#8203;so1ve](https://github.com/so1ve)) ```diff export interface Printer<T = any> { // ... + preprocess?: + | ((ast: T, options: ParserOptions<T>) => T | Promise<T>) + | undefined; } ``` ##### Add missing `getVisitorKeys` method type definition for `Printer` ([#&#8203;15125](https://github.com/prettier/prettier/pull/15125) by [@&#8203;auvred](https://github.com/auvred)) ```tsx const printer: Printer = { print: () => [], getVisitorKeys(node, nonTraversableKeys) { return ["body"]; }, }; ``` ##### Add typing to support `readonly` array properties of AST Node ([#&#8203;15127](https://github.com/prettier/prettier/pull/15127) by [@&#8203;auvred](https://github.com/auvred)) <!-- prettier-ignore --> ```tsx // 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 ([#&#8203;15129](https://github.com/prettier/prettier/pull/15129) by [@&#8203;pamelalozano](https://github.com/pamelalozano)) <!-- prettier-ignore --> ```less // Input div { margin: - func(); } // Prettier 3.0.0 div { margin: -func(); } // Prettier 3.0.1 div { margin: - func(); } ``` ### [`v3.0.0`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#300) [Compare Source](https://github.com/prettier/prettier/compare/2.8.8...3.0.0) [diff](https://github.com/prettier/prettier/compare/3.0.0-alpha.6...3.0.0) 🔗 [Release Notes](https://prettier.io/blog/2023/07/05/3.0.0.html) </details> <details> <summary>tree-sitter/tree-sitter (tree-sitter)</summary> ### [`v0.23.0`](https://github.com/tree-sitter/tree-sitter/blob/HEAD/CHANGELOG.md#0230---2024-08-26) [Compare Source](https://github.com/tree-sitter/tree-sitter/compare/v0.22.6...v0.23.0) ##### Breaking - Introduce tree-sitter-language crate for grammar crates to depend on ([#&#8203;3069](https://github.com/tree-sitter/tree-sitter/pull/3069)) - Revert interning of a sequence or choice of a single rule ([#&#8203;3548](https://github.com/tree-sitter/tree-sitter/pull/3548)) - **bindings**: Use capsules in python ([#&#8203;3384](https://github.com/tree-sitter/tree-sitter/pull/3384)) - **dsl**: Support other JS runtimes ([#&#8203;3355](https://github.com/tree-sitter/tree-sitter/pull/3355)) ##### Features - Add `fuzz` subcommand ([#&#8203;3385](https://github.com/tree-sitter/tree-sitter/pull/3385)) - Allow external scanners to use the logger ([#&#8203;3204](https://github.com/tree-sitter/tree-sitter/pull/3204)) - **bindings**: Add query constants to python - **bindings**: Add node, python, swift tests ([#&#8203;3178](https://github.com/tree-sitter/tree-sitter/pull/3178)) - **bindings**: Update npm scripts ([#&#8203;3210](https://github.com/tree-sitter/tree-sitter/pull/3210)) - **cli**: Bump unicode data to v15.1.0 - **cli**: Add debug build flag ([#&#8203;3279](https://github.com/tree-sitter/tree-sitter/pull/3279)) - **cli**: Attach helpful context when `grammar.json` cannot be found ([#&#8203;3405](https://github.com/tree-sitter/tree-sitter/pull/3405)) - **cli**: Add `--show-fields` flag to `test` command ([#&#8203;3502](https://github.com/tree-sitter/tree-sitter/pull/3502)) - **lib**: Add `ts_query_end_byte_for_pattern` ([#&#8203;3451](https://github.com/tree-sitter/tree-sitter/pull/3451)) - **lib**: Support no_std - **zig**: Update outdated path syntax ([#&#8203;3383](https://github.com/tree-sitter/tree-sitter/pull/3383)) ##### Bug Fixes - Always reset to the first language when iterating over language attributes ([#&#8203;3375](https://github.com/tree-sitter/tree-sitter/pull/3375)) - Better error when a supertype rule is invalid ([#&#8203;3400](https://github.com/tree-sitter/tree-sitter/pull/3400)) - Intern a sequence or choice of a single element the same as the element itself - Do not "absorb" rules that consist of a single terminal if the rule is hidden ([#&#8203;2577](https://github.com/tree-sitter/tree-sitter/pull/2577)) - **bindings**: Update go bindings ([#&#8203;3544](https://github.com/tree-sitter/tree-sitter/pull/3544)) - **cli**: Installation via authenticated proxy ([#&#8203;3414](https://github.com/tree-sitter/tree-sitter/pull/3414)) - **cli**: Dedup `preceding_auxiliary_symbols` ([#&#8203;3550](https://github.com/tree-sitter/tree-sitter/pull/3550)) - **dsl**: Improve error message when a rule function returns undefined ([#&#8203;3452](https://github.com/tree-sitter/tree-sitter/pull/3452)) - **generate**: Rename `cargo.toml` template ([#&#8203;3532](https://github.com/tree-sitter/tree-sitter/pull/3532)) - **go**: Update parser name in binding files, add to docs ([#&#8203;3547](https://github.com/tree-sitter/tree-sitter/pull/3547)) - **lib**: A null clock must have `tv_nsec` be 0 as well ([#&#8203;3372](https://github.com/tree-sitter/tree-sitter/pull/3372)) - **lib**: Restrict pattern_map optimization when a wildcard step has an immediate first child ([#&#8203;3440](https://github.com/tree-sitter/tree-sitter/pull/3440)) - **lib**: An empty root node should not precede an empty range ([#&#8203;3450](https://github.com/tree-sitter/tree-sitter/pull/3450)) - **lib**: Fix api header C++ interop ([#&#8203;3534](https://github.com/tree-sitter/tree-sitter/pull/3534)) - **make**: Fail properly on Windows ([#&#8203;3418](https://github.com/tree-sitter/tree-sitter/pull/3418)) - **rust**: Fetch `CARGO_MANIFEST_DIR` at runtime in build script ([#&#8203;3352](https://github.com/tree-sitter/tree-sitter/pull/3352)) - **rust**: Fix new clippy warnings ([#&#8203;3491](https://github.com/tree-sitter/tree-sitter/pull/3491)) - **test**: Multi-grammar corpus tests are now in the repo root ([#&#8203;3342](https://github.com/tree-sitter/tree-sitter/pull/3342)) - **wasm**: Update test ##### Performance - Hoist out common subexpressions in satisfies_text_predicates ([#&#8203;3397](https://github.com/tree-sitter/tree-sitter/pull/3397)) ##### Documentation - Update changelog - Remove duplicate pr # in changelog - Add note for bullet - Fix syntax highlighting unit testing example ([#&#8203;3434](https://github.com/tree-sitter/tree-sitter/pull/3434)) - Add tsserver annotation to example ([#&#8203;3460](https://github.com/tree-sitter/tree-sitter/pull/3460)) - Fix tree cursor documentation ([#&#8203;3324](https://github.com/tree-sitter/tree-sitter/pull/3324)) - Document rust library features ([#&#8203;3395](https://github.com/tree-sitter/tree-sitter/pull/3395)) - Clean up binding & parser lists ([#&#8203;3443](https://github.com/tree-sitter/tree-sitter/pull/3443)) ##### Refactor - Remove ansi_term dependency ([#&#8203;3387](https://github.com/tree-sitter/tree-sitter/pull/3387)) - Remove difference dependency ([#&#8203;3388](https://github.com/tree-sitter/tree-sitter/pull/3388)) - **scripts**: Clean up bash scripts ([#&#8203;3231](https://github.com/tree-sitter/tree-sitter/pull/3231)) ##### Testing - Modernize scanner files ([#&#8203;3340](https://github.com/tree-sitter/tree-sitter/pull/3340)) ##### Build System and CI - **deps**: bump wasmtime, cc, and wasmparser ([#&#8203;3529](https://github.com/tree-sitter/tree-sitter/pull/3529) - **bindings**: Use language version in soname ([#&#8203;3308](https://github.com/tree-sitter/tree-sitter/pull/3308)) - **lib**: Include the minor in the soname - **loader**: Make dependencies optional ([#&#8203;1638](https://github.com/tree-sitter/tree-sitter/pull/1638)) - **swift**: Declare header search path ([#&#8203;3474](https://github.com/tree-sitter/tree-sitter/pull/3474)) - **wasm**: Don't minify JS ([#&#8203;3380](https://github.com/tree-sitter/tree-sitter/pull/3380)) - **wasm**: Bump emscripten to 3.1.64 ([#&#8203;3497](https://github.com/tree-sitter/tree-sitter/pull/3497)) - **wasm**: Support big endian machines ([#&#8203;3492](https://github.com/tree-sitter/tree-sitter/pull/3492)) - **zig**: Git ignore updated Zig cache directory ([#&#8203;3408](https://github.com/tree-sitter/tree-sitter/pull/3408)) ##### Other - Swap `sprintf()` for `snprintf()` ([#&#8203;3430](https://github.com/tree-sitter/tree-sitter/pull/3430)) - Add `.build` to gitignore ([#&#8203;3498](https://github.com/tree-sitter/tree-sitter/pull/3498)) - Reset language when resetting wasm store ([#&#8203;3495](https://github.com/tree-sitter/tree-sitter/pull/3495)) - Clone wasm store engine ([#&#8203;3542](https://github.com/tree-sitter/tree-sitter/pull/3542)) - **bindings**: Fix indent & line endings ([#&#8203;3284](https://github.com/tree-sitter/tree-sitter/pull/3284)) ### [`v0.22.6`](https://github.com/tree-sitter/tree-sitter/blob/HEAD/CHANGELOG.md#0226--2024-05-05) [Compare Source](https://github.com/tree-sitter/tree-sitter/compare/v0.22.5...v0.22.6) ##### Features - Improve handling of serialization buffer overflows ([#&#8203;3318](https://github.com/tree-sitter/tree-sitter/pull/3318)) - Reverse iteration through node parents ([#&#8203;3214](https://github.com/tree-sitter/tree-sitter/pull/3214)) - **cli**: Support `NO_COLOR` ([#&#8203;3299](https://github.com/tree-sitter/tree-sitter/pull/3299)) - **cli**: Add test listing and allow users to parse a specific test number ([#&#8203;3067](https://github.com/tree-sitter/tree-sitter/pull/3067)) - **grammar**: Add "inherits" field if available ([#&#8203;3295](https://github.com/tree-sitter/tree-sitter/pull/3295)) ##### Bug Fixes - Correctly load field data from wasm languages - Improve error message when the `tree-sitter` field is malformed - Don't error out on package.json lookup errors if `--no-bindings` is passed ([#&#8203;3323](https://github.com/tree-sitter/tree-sitter/pull/3323)) - **cli**: Keep default cc flags in build - **cli**: Properly account for multi-grammar repos when using docker to build a wasm parser ([#&#8203;3337](https://github.com/tree-sitter/tree-sitter/pull/3337)) - **generate**: Don't check arbitrarily named dirs - **generate**: Take `AsRef<Path>` for the path parameter to avoid clones ([#&#8203;3322](https://github.com/tree-sitter/tree-sitter/pull/3322)) - **highlight**: Correct signature of `ts_highlighter_add_language` - **lib**: Do not return field names for extras ([#&#8203;3330](https://github.com/tree-sitter/tree-sitter/pull/3330)) - **lib**: Advance the lookahead end byte by 4 when there's an invalid code point ([#&#8203;3305](https://github.com/tree-sitter/tree-sitter/pull/3305)) - **rust**: Update README example ([#&#8203;3307](https://github.com/tree-sitter/tree-sitter/pull/3307)) - **rust**: Use unix + wasi cfg instead of not windows for fd ([#&#8203;3304](https://github.com/tree-sitter/tree-sitter/pull/3304)) - **test**: Allow newlines in between test name and attribute - **wasm**: Correct `childrenFromFieldXXX` method signatures ([#&#8203;3301](https://github.com/tree-sitter/tree-sitter/pull/3301)) - **xtask**: Always bump every crate in tandem - **zig**: Make usable as a zig dependency ([#&#8203;3315](https://github.com/tree-sitter/tree-sitter/pull/3315)) ##### Documentation - Mention build command variables - Swap `\s` for `\\s` in query example - **highlight**: Typo ([#&#8203;3290](https://github.com/tree-sitter/tree-sitter/pull/3290)) ##### Refactor - **tests**: Migrate remaining `grammar.json` tests to `grammar.js` ([#&#8203;3325](https://github.com/tree-sitter/tree-sitter/pull/3325)) ##### Build System and CI - Add nightly rustfmt to workflow for linting ([#&#8203;3333](https://github.com/tree-sitter/tree-sitter/pull/3333)) - Fix address sanitizer step ([#&#8203;3188](https://github.com/tree-sitter/tree-sitter/pull/3188)) - **deps**: Bump cc from 1.0.92 to 1.0.94 in the cargo group ([#&#8203;3298](https://github.com/tree-sitter/tree-sitter/pull/3298)) - **deps**: Bump the cargo group with 6 updates ([#&#8203;3313](https://github.com/tree-sitter/tree-sitter/pull/3313)) - **xtask**: Bump `build.zig.zon` version when bumping versions ### [`v0.22.5`](https://github.com/tree-sitter/tree-sitter/blob/HEAD/CHANGELOG.md#0225--2024-04-14) [Compare Source](https://github.com/tree-sitter/tree-sitter/compare/v0.22.4...v0.22.5) ##### Bug Fixes - Avoid generating unused character set constants - **cli**: Test parsing on windows ([#&#8203;3289](https://github.com/tree-sitter/tree-sitter/pull/3289)) - **rust**: Compilation on wasm32-wasi ([#&#8203;3293](https://github.com/tree-sitter/tree-sitter/pull/3293)) ### [`v0.22.4`](https://github.com/tree-sitter/tree-sitter/blob/HEAD/CHANGELOG.md#0224--2024-04-12) [Compare Source](https://github.com/tree-sitter/tree-sitter/compare/v0.22.3...v0.22.4) ##### Bug Fixes - Fix sorting of transitions within a lex state - Include 2-character ranges in array-based state transitions ##### Build System and CI - Always bump at least the patch version in bump xtask ### [`v0.22.3`](https://github.com/tree-sitter/tree-sitter/blob/HEAD/CHANGELOG.md#0223--2024-04-12) [Compare Source](https://github.com/tree-sitter/tree-sitter/compare/v0.22.2...v0.22.3) ##### Features - Add strncat to wasm stdlib - Generate simpler code for matching large character sets ([#&#8203;3234](https://github.com/tree-sitter/tree-sitter/pull/3234)) - When loading languages via WASM, gracefully handle memory errors and leaks in external scanners ([#&#8203;3181](https://github.com/tree-sitter/tree-sitter/pull/3181)) ##### Bug Fixes - **bindings**: Add utf-8 flag to python & node ([#&#8203;3278](https://github.com/tree-sitter/tree-sitter/pull/3278)) - **bindings**: Generate parser.c if missing ([#&#8203;3277](https://github.com/tree-sitter/tree-sitter/pull/3277)) - **bindings**: Remove required platforms for swift ([#&#8203;3264](https://github.com/tree-sitter/tree-sitter/pull/3264)) - **cli**: Fix mismatched parenthesis when accounting for `&&` ([#&#8203;3274](https://github.com/tree-sitter/tree-sitter/pull/3274)) - **lib**: Do not consider childless nodes for ts_node_parent ([#&#8203;3191](https://github.com/tree-sitter/tree-sitter/pull/3191)) - **lib**: Properly account for aliased root nodes and root nodes with children in `ts_subtree_string` ([#&#8203;3191](https://github.com/tree-sitter/tree-sitter/pull/3191)) - **lib**: Account for the root node of a tree cursor being an alias ([#&#8203;3191](https://github.com/tree-sitter/tree-sitter/pull/3191)) - **lib**: Use correct format specifier in log message ([#&#8203;3255](https://github.com/tree-sitter/tree-sitter/pull/3255)) - **parser**: Fix variadic macro ([#&#8203;3229](https://github.com/tree-sitter/tree-sitter/pull/3229)) - render: Proper function prototypes ([#&#8203;3277](https://github.com/tree-sitter/tree-sitter/pull/3277)) - **windows**: Add `/utf-8` flag for parsers using unicode symbols ([#&#8203;3223](https://github.com/tree-sitter/tree-sitter/pull/3223)) - Add a semicolon after SKIP macros ([#&#8203;3264](https://github.com/tree-sitter/tree-sitter/pull/3264)) - Add back `build-wasm` temporarily ([#&#8203;3203](https://github.com/tree-sitter/tree-sitter/pull/3203)) - Add lifetime to matches function ([#&#8203;3254](https://github.com/tree-sitter/tree-sitter/pull/3254)) - Default output directory for `build --wasm` should use current_dir ([#&#8203;3203](https://github.com/tree-sitter/tree-sitter/pull/3203)) - Fix sorting of wasm stdlib symbols - Insert "tree-sitter" section in current directory's package.json if it exists ([#&#8203;3224](https://github.com/tree-sitter/tree-sitter/pull/3224)) - Tie the lifetime of the cursor to the query in `QueryCursor::captures()` ([#&#8203;3266](https://github.com/tree-sitter/tree-sitter/pull/3266)) - Wrong flag check in `build.rs` ##### Performance - **cli**: Reduced the compile time of generated parsers by generating C code with fewer conditionals ([#&#8203;3234](https://github.com/tree-sitter/tree-sitter/pull/3234)) ##### Documentation - Add NGINX grammar ##### Refactor - **parser**: Make REDUCE macro non-variadic ([#&#8203;3280](https://github.com/tree-sitter/tree-sitter/pull/3280)) - **js**: Misc fixes & tidying - **rust**: Misc fixes & tidying ##### Testing - Add regression test for node parent + string bug ([#&#8203;3191](https://github.com/tree-sitter/tree-sitter/pull/3191)) - **test**: Allow colons in test names ([#&#8203;3264](https://github.com/tree-sitter/tree-sitter/pull/3264)) ##### Build System and CI - Upgrade wasmtime - Update emscripten version ([#&#8203;3272](https://github.com/tree-sitter/tree-sitter/pull/3272)) - **dependabot**: Improve PR labels ([#&#8203;3282](https://github.com/tree-sitter/tree-sitter/pull/3282)) ### [`v0.22.2`](https://github.com/tree-sitter/tree-sitter/blob/HEAD/CHANGELOG.md#0222--2024-03-17) [Compare Source](https://github.com/tree-sitter/tree-sitter/compare/v0.22.1...v0.22.2) ##### Breaking - **cli**: Add a separate build command to compile parsers ##### Features - **bindings/rust**: Expose `Parser::included_ranges` - Lower the lib's MSRV ([#&#8203;3169](https://github.com/tree-sitter/tree-sitter/pull/3169)) - **lib**: Implement Display for Node ([#&#8203;3177](https://github.com/tree-sitter/tree-sitter/pull/3177)) ##### Bug Fixes - **bindings/wasm**: Fix `Parser.getIncludedRanges()` ([#&#8203;3164](https://github.com/tree-sitter/tree-sitter/pull/3164)) - **lib**: Makefile installation on macOS ([#&#8203;3167](https://github.com/tree-sitter/tree-sitter/pull/3167)) - **lib**: Makefile installation ([#&#8203;3173](https://github.com/tree-sitter/tree-sitter/pull/3173)) - **lib**: Avoid possible UB of calling memset on a null ptr when 0 is passed into `array_grow_by` ([#&#8203;3176](https://github.com/tree-sitter/tree-sitter/pull/3176)) - **lib**: Allow hiding symbols ([#&#8203;3180](https://github.com/tree-sitter/tree-sitter/pull/3180)) ##### Documentation - Fix typo ([#&#8203;3158](https://github.com/tree-sitter/tree-sitter/pull/3158)) - **licensfe**: Update year ([#&#8203;3183](https://github.com/tree-sitter/tree-sitter/pull/3183)) ##### Refactor - Remove dependency on which crate ([#&#8203;3172](https://github.com/tree-sitter/tree-sitter/pull/3172)) - Turbofish styling ##### Testing - Fix header writes ([#&#8203;3174](https://github.com/tree-sitter/tree-sitter/pull/3174)) ##### Build System and CI - Simplify workflows ([#&#8203;3002](https://github.com/tree-sitter/tree-sitter/pull/3002)) - **lib**: Allow overriding CFLAGS on the commandline ([#&#8203;3159](https://github.com/tree-sitter/tree-sitter/pull/3159)) ### [`v0.22.1`](https://github.com/tree-sitter/tree-sitter/blob/HEAD/CHANGELOG.md#0221--2024-03-10) [Compare Source](https://github.com/tree-sitter/tree-sitter/compare/v0.22.0...v0.22.1) ##### Bug Fixes - Cli build script behavior on release ### [`v0.22.0`](https://github.com/tree-sitter/tree-sitter/blob/HEAD/CHANGELOG.md#0220--2024-03-10) [Compare Source](https://github.com/tree-sitter/tree-sitter/compare/v0.21.0...v0.22.0) ##### Breaking - Remove top-level `corpus` dir for tests The cli will now only look in `test/corpus` for tests - Remove redundant escape regex & curly brace regex preprocessing ([#&#8203;2838](https://github.com/tree-sitter/tree-sitter/pull/2838)) - **bindings**: Convert node bindings to NAPI ([#&#8203;3077](https://github.com/tree-sitter/tree-sitter/pull/3077)) - **wasm**: Make `current*`, `is*`, and `has*` methods properties ([#&#8203;3103](https://github.com/tree-sitter/tree-sitter/pull/3103)) - **wasm**: Keep API in-line with upstream and start aligning with node ([#&#8203;3149](https://github.com/tree-sitter/tree-sitter/pull/3149)) ##### Features - Add xtasks to assist with bumping crates ([#&#8203;3065](https://github.com/tree-sitter/tree-sitter/pull/3065)) - Improve language bindings ([#&#8203;2438](https://github.com/tree-sitter/tree-sitter/pull/2438)) - Expose the allocator and array header files for external scanners ([#&#8203;3063](https://github.com/tree-sitter/tree-sitter/pull/3063)) - Add typings for the node bindings - Replace `nan` with `node-addon-api` and conditionally print logs - **bindings**: Add more make targets - **bindings**: Add peerDependencies for npm - **bindings**: Add prebuildify to node - **bindings**: Remove dsl types file ([#&#8203;3126](https://github.com/tree-sitter/tree-sitter/pull/3126)) - **node**: Type tag the language ([#&#8203;3109](https://github.com/tree-sitter/tree-sitter/pull/3109)) - **test**: Add attributes for corpus tests ##### Bug Fixes - Apply some `scan-build` suggestions (unused assignment/garbage access) ([#&#8203;3056](https://github.com/tree-sitter/tree-sitter/pull/3056)) - Wrap `||` comparison in parentheses when `&&` is used ([#&#8203;3070](https://github.com/tree-sitter/tree-sitter/pull/3070)) - Ignore unused variables in the array macros ([#&#8203;3083](https://github.com/tree-sitter/tree-sitter/pull/3083)) - `binding.cc` overwrite should replace `PARSER_NAME` ([#&#8203;3116](https://github.com/tree-sitter/tree-sitter/pull/3116)) - Don't use `__declspec(dllexport)` on windows ([#&#8203;3128](https://github.com/tree-sitter/tree-sitter/pull/3128)) - Parsers should export the language function on windows - Allow the regex `v` flag ([#&#8203;3154](https://github.com/tree-sitter/tree-sitter/pull/3154)) - **assertions**: Case shouldn't matter for comment node detection - **bindings**: Editorconfig and setup.py fixes ([#&#8203;3082](https://github.com/tree-sitter/tree-sitter/pull/3082)) - **bindings**: Insert `types` after `main` if it exists ([#&#8203;3122](https://github.com/tree-sitter/tree-sitter/pull/3122)) - **bindings**: Fix template oversights ([#&#8203;3155](https://github.com/tree-sitter/tree-sitter/pull/3155)) - **cli**: Only output the sources with `--no-bindings` ([#&#8203;3123](https://github.com/tree-sitter/tree-sitter/pull/3123)) - **generate**: Add `.npmignore`, populate Swift's exclude list ([#&#8203;3085](https://github.com/tree-sitter/tree-sitter/pull/3085)) - **generate**: Extern allocator functions for the template don't need to be "exported" ([#&#8203;3132](https://github.com/tree-sitter/tree-sitter/pull/3132)) - **generate**: Camel case name in `Cargo.toml` description ([#&#8203;3140](https://github.com/tree-sitter/tree-sitter/pull/3140)) - **lib**: Include `api.h` so `ts_set_allocator` is visible ([#&#8203;3092](https://github.com/tree-sitter/tree-sitter/pull/3092)) ##### Documentation - Add GitHub user and PR info to the changelog - Add css for inline code ([#&#8203;2844](https://github.com/tree-sitter/tree-sitter/pull/2844)) - Document test attributes - Add `Ohm` language parser - Remove duplicate `the`'s ([#&#8203;3120](https://github.com/tree-sitter/tree-sitter/pull/3120)) - Add discord and matrix badges ([#&#8203;3148](https://github.com/tree-sitter/tree-sitter/pull/3148)) ##### Refactor - Rename TS_REUSE_ALLOCATOR flag ([#&#8203;3088](https://github.com/tree-sitter/tree-sitter/pull/3088)) - Remove extern/const where possible - **array**: Use pragma GCC in clang too - **bindings**: Remove npmignore ([#&#8203;3089](https://github.com/tree-sitter/tree-sitter/pull/3089)) ##### Testing - Don't use TS_REUSE_ALLOCATOR on Darwin systems ([#&#8203;3087](https://github.com/tree-sitter/tree-sitter/pull/3087)) - Add test case for parse stack merging with incorrect error cost bug ([#&#8203;3098](https://github.com/tree-sitter/tree-sitter/pull/3098)) ##### Build System and CI - Improve changelog settings ([#&#8203;3064](https://github.com/tree-sitter/tree-sitter/pull/3064)) - Unify crate versions via workspace ([#&#8203;3074](https://github.com/tree-sitter/tree-sitter/pull/3074)) - Update `cc` to remove annoying debug output ([#&#8203;3075](https://github.com/tree-sitter/tree-sitter/pull/3075)) - Adjust dependabot settings ([#&#8203;3079](https://github.com/tree-sitter/tree-sitter/pull/3079)) - Use c11 everywhere - Add uninstall command - Don't skip tests on failing lint ([#&#8203;3102](https://github.com/tree-sitter/tree-sitter/pull/3102)) - Remove unused deps, bump deps, and bump MSRV to 1.74.1 ([#&#8203;3153](https://github.com/tree-sitter/tree-sitter/pull/3153)) - **bindings**: Metadata improvements - **bindings**: Make everything c11 ([#&#8203;3099](https://github.com/tree-sitter/tree-sitter/pull/3099)) - **dependabot**: Update weekly instead of daily ([#&#8203;3112](https://github.com/tree-sitter/tree-sitter/pull/3112)) - **deps**: Bump the cargo group with 1 update ([#&#8203;3081](https://github.com/tree-sitter/tree-sitter/pull/3081)) - **deps**: Bump the cargo group with 1 update ([#&#8203;3097](https://github.com/tree-sitter/tree-sitter/pull/3097)) - **deps**: Bump deps & lockfile ([#&#8203;3060](https://github.com/tree-sitter/tree-sitter/pull/3060)) - **deps**: Bump the cargo group with 4 updates ([#&#8203;3134](https://github.com/tree-sitter/tree-sitter/pull/3134)) - **lint**: Detect if `Cargo.lock` needs to be updated ([#&#8203;3066](https://github.com/tree-sitter/tree-sitter/pull/3066)) - **lint**: Make lockfile check quiet ([#&#8203;3078](https://github.com/tree-sitter/tree-sitter/pull/3078)) - **swift**: Move 'cLanguageStandard' behind 'targets' ([#&#8203;3101](https://github.com/tree-sitter/tree-sitter/pull/3101)) ##### Other - Make Node.js language bindings context aware ([#&#8203;2841](https://github.com/tree-sitter/tree-sitter/pull/2841)) They don't have any dynamic global data, so all it takes is just declaring them as such - Fix crash when attempting to load ancient languages via wasm ([#&#8203;3068](https://github.com/tree-sitter/tree-sitter/pull/3068)) - Use workspace dependencies for internal crates like Tree-sitter ([#&#8203;3076](https://github.com/tree-sitter/tree-sitter/pull/3076)) - Remove vendored wasmtime headers ([#&#8203;3084](https://github.com/tree-sitter/tree-sitter/pull/3084)) When building rust binding, use wasmtime headers provided via cargo by the wasmtime-c-api crate. - Fix invalid parse stack recursive merging with mismatched error cost ([#&#8203;3086](https://github.com/tree-sitter/tree-sitter/pull/3086)) Allowing this invalid merge caused an invariant to be violated later on during parsing, when handling a later error. - Fix regression in `subtree_compare` ([#&#8203;3111](https://github.com/tree-sitter/tree-sitter/pull/3111)) - docs: Add `Ohm` language parser ([#&#8203;3114](https://github.com/tree-sitter/tree-sitter/pull/3114)) - Delete `binding_files.rs` ([#&#8203;3106](https://github.com/tree-sitter/tree-sitter/pull/3106)) - **bindings**: Consistent wording ([#&#8203;3096](https://github.com/tree-sitter/tree-sitter/pull/3096)) - **bindings**: Ignore more artifacts ([#&#8203;3119](https://github.com/tree-sitter/tree-sitter/pull/3119)) ### [`v0.21.0`](https://github.com/tree-sitter/tree-sitter/blob/HEAD/CHANGELOG.md#0210--2024-02-21) ##### Breaking - Remove the apply-all-captures flag, make last-wins precedence the default **NOTE**: This change might cause breakage in your grammar's highlight tests. Just flip the order around of the relevant queries, and keep in mind that the last query that matches will win. ##### Features - Use lockfiles to dedup recompilation - Improve error message for files with an unknown grammar path ([#&#8203;2475](https://github.com/tree-sitter/tree-sitter/pull/2475)) - Implement first-line-regex ([#&#8203;2479](https://github.com/tree-sitter/tree-sitter/pull/2479)) - Error out if an empty string is in the `extras` array - Allow specifying an external scanner's files ([#&#8203;3031](https://github.com/tree-sitter/tree-sitter/pull/3031)) - Better error info when a scanner is missing required symbols - **cli**: Add an optional `grammar-path` argument for the playground ([#&#8203;3014](https://github.com/tree-sitter/tree-sitter/pull/3014)) - **cli**: Add optional `config-path` argument ([#&#8203;3050](https://github.com/tree-sitter/tree-sitter/pull/3050)) - **loader**: Add more commonly used default parser directories ##### Bug Fixes - Prettify xml output and add node position info ([#&#8203;2970](https://github.com/tree-sitter/tree-sitter/pull/2970)) - Inherited grammar generation - Properly error out when the word property is an invalid rule - Update schema for regex flags ([#&#8203;3006](https://github.com/tree-sitter/tree-sitter/pull/3006)) - Properly handle `Query.matches` when filtering out results ([#&#8203;3013](https://github.com/tree-sitter/tree-sitter/pull/3013)) - Sexp format edge case with quoted closed parenthesis ([#&#8203;3016](https://github.com/tree-sitter/tree-sitter/pull/3016)) - Always push the default files if there's no `externals` - Don't log NUL characters ([#&#8203;3037](https://github.com/tree-sitter/tree-sitter/pull/3037)) - Don't throw an error if the user uses `map` in the grammar ([#&#8203;3041](https://github.com/tree-sitter/tree-sitter/pull/3041)) - Remove redundant imports ([#&#8203;3047](https://github.com/tree-sitter/tree-sitter/pull/3047)) - **cli**: Installation via a HTTP tunnel proxy ([#&#8203;2824](https://github.com/tree-sitter/tree-sitter/pull/2824)) - **cli**: Don't update tests automatically if parse errors are detected ([#&#8203;3033](https://github.com/tree-sitter/tree-sitter/pull/3033)) - **cli**: Don't use `long` for `grammar_path` - **test**: Allow writing updates to tests without erroneous nodes instead of denying all of them if a single error is found - **test**: Edge case when parsing `UNEXPECTED`/`MISSING` nodes with an indentation level greater than 0 - **wasm**: Remove C++ mangled symbols ([#&#8203;2971](https://github.com/tree-sitter/tree-sitter/pull/2971)) ##### Documentation - Create issue template ([#&#8203;2978](https://github.com/tree-sitter/tree-sitter/pull/2978)) - Document regex limitations - Mention that `token($.foo)` is illegal - Explicitly mention behavior of walking outside the given "root" node for a `TSTreeCursor` ([#&#8203;3021](https://github.com/tree-sitter/tree-sitter/pull/3021)) - Small fixes ([#&#8203;2987](https://github.com/tree-sitter/tree-sitter/pull/2987)) - Add `Tact` language parser ([#&#8203;3030](https://github.com/tree-sitter/tree-sitter/pull/3030)) - **web**: Provide deno usage information ([#&#8203;2498](https://github.com/tree-sitter/tree-sitter/pull/2498)) ##### Refactor - Extract regex check into a function and lower its precedence - `&PathBuf` -> `&Path` ([#&#8203;3035](https://github.com/tree-sitter/tree-sitter/pull/3035)) - Name anonymous types in api.h ([#&#8203;1659](https://github.com/tree-sitter/tree-sitter/pull/1659)) ##### Testing - Add quotes around bash variables ([#&#8203;3023](https://github.com/tree-sitter/tree-sitter/pull/3023)) - Update html tests ##### Build System and CI - Only create release for normal semver tags ([#&#8203;2973](https://github.com/tree-sitter/tree-sitter/pull/2973)) - Add useful development targets to makefile ([#&#8203;2979](https://github.com/tree-sitter/tree-sitter/pull/2979)) - Remove minimum glibc information in summary page ([#&#8203;2988](https://github.com/tree-sitter/tree-sitter/pull/2988)) - Use the native m1 mac runner ([#&#8203;2995](https://github.com/tree-sitter/tree-sitter/pull/2995)) - Add editorconfig ([#&#8203;2998](https://github.com/tree-sitter/tree-sitter/pull/2998)) - Remove symbolic links from repository ([#&#8203;2997](https://github.com/tree-sitter/tree-sitter/pull/2997)) - Move common Cargo.toml keys into the workspace and inherit them ([#&#8203;3019](https://github.com/tree-sitter/tree-sitter/pull/3019)) - Remove reviewers when drafting or closing a PR ([#&#8203;2963](https://github.com/tree-sitter/tree-sitter/pull/2963)) - Enable creating changelogs with git-cliff ([#&#8203;3040](https://github.com/tree-sitter/tree-sitter/pull/3040)) - Cache fixtures ([#&#8203;3038](https://github.com/tree-sitter/tree-sitter/pull/3038)) - Don't cancel jobs on master ([#&#8203;3052](https://github.com/tree-sitter/tree-sitter/pull/3052)) - Relax caching requirements ([#&#8203;3051](https://github.com/tree-sitter/tree-sitter/pull/3051)) - **deps**: Bump clap from 4.4.18 to 4.5.0 ([#&#8203;3007](https://github.com/tree-sitter/tree-sitter/pull/3007)) - **deps**: Bump wasmtime from v16.0.0 to v17.0.1 ([#&#8203;3008](https://github.com/tree-sitter/tree-sitter/pull/3008)) - **deps**: Bump wasmtime to v18.0.1 ([#&#8203;3057](https://github.com/tree-sitter/tree-sitter/pull/3057)) - **sanitize**: Add a timeout of 60 minutes ([#&#8203;3017](https://github.com/tree-sitter/tree-sitter/pull/3017)) - **sanitize**: Reduce timeout to 20 minutes ([#&#8203;3054](https://github.com/tree-sitter/tree-sitter/pull/3054)) ##### Other - Document preferred language for scanner ([#&#8203;2972](https://github.com/tree-sitter/tree-sitter/pull/2972)) - Add java and tsx to corpus tests ([#&#8203;2992](https://github.com/tree-sitter/tree-sitter/pull/2992)) - Provide a CLI flag to open `log.html` ([#&#8203;2996](https://github.com/tree-sitter/tree-sitter/pull/2996)) - Some more clippy lints ([#&#8203;3010](https://github.com/tree-sitter/tree-sitter/pull/3010)) - Remove deprecated query parsing mechanism ([#&#8203;3011](https://github.com/tree-sitter/tree-sitter/pull/3011)) - Print out full compiler arguments ran when it fails ([#&#8203;3018](https://github.com/tree-sitter/tree-sitter/pull/3018)) - Deprecate C++ scanners ([#&#8203;3020](https://github.com/tree-sitter/tree-sitter/pull/3020)) - Add some documentation to the playground page ([#&#8203;1495](https://github.com/tree-sitter/tree-sitter/pull/1495)) - Update relevant rust tests ([#&#8203;2947](https://github.com/tree-sitter/tree-sitter/pull/2947)) - Clippy lints ([#&#8203;3032](https://github.com/tree-sitter/tree-sitter/pull/3032)) - Error out when multiple arguments are passed to `token`/`token.immediate` ([#&#8203;3036](https://github.com/tree-sitter/tree-sitter/pull/3036)) - Tidying - Prefer turbofish syntax where possible ([#&#8203;3048](https://github.com/tree-sitter/tree-sitter/pull/3048)) - Use published wasmtime crates - Cleaner cast - Update `Cargo.lock` - Get rid of `github_issue_test` file ([#&#8203;3055](https://github.com/tree-sitter/tree-sitter/pull/3055)) - **cli**: Use spawn to display `emcc`'s stdout and stderr ([#&#8203;2494](https://github.com/tree-sitter/tree-sitter/pull/2494)) - **cli**: Warn users when a query path needed for a subcommand isn't specified in a grammar's package.json - **generate**: Dedup and warn about duplicate or invalid rules ([#&#8203;2994](https://github.com/tree-sitter/tree-sitter/pull/2994)) - **test**: Use different languages for async tests ([#&#8203;2953](https://github.com/tree-sitter/tree-sitter/pull/2953)) - **wasm**: Use `SIDE_MODULE=2` to silence warning ([#&#8203;3003](https://github.com/tree-sitter/tree-sitter/pull/3003)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNjAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyNC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
kjuulh added 1 commit 2023-07-23 13:05:55 +02:00
kjuulh changed title from chore(deps): update dependency prettier to v3 to chore(deps): update all dependencies 2024-02-21 20:53:49 +01:00
kjuulh force-pushed renovate/all from 1bd4b6e3b9 to 2e1a3def16 2024-02-21 20:53:51 +01:00 Compare
kjuulh force-pushed renovate/all from 2e1a3def16 to 249fe4d717 2024-02-21 22:14:22 +01:00 Compare
kjuulh force-pushed renovate/all from 249fe4d717 to ddf58e4d3e 2024-03-10 22:30:27 +01:00 Compare
kjuulh force-pushed renovate/all from ddf58e4d3e to b188e823fd 2024-03-10 23:14:21 +01:00 Compare
kjuulh force-pushed renovate/all from b188e823fd to c3559b7cee 2024-03-17 13:15:07 +01:00 Compare
kjuulh force-pushed renovate/all from c3559b7cee to e120aedc7a 2024-04-13 01:26:43 +02:00 Compare
kjuulh force-pushed renovate/all from e120aedc7a to 8ed6b2dfc5 2024-04-13 02:38:12 +02:00 Compare
kjuulh force-pushed renovate/all from 8ed6b2dfc5 to 5807ec7afe 2024-04-14 20:01:07 +02:00 Compare
kjuulh force-pushed renovate/all from 5807ec7afe to 58905696a4 2024-05-05 23:32:06 +02:00 Compare
kjuulh force-pushed renovate/all from 58905696a4 to a05ae36e4e 2024-05-23 22:35:23 +02:00 Compare
kjuulh force-pushed renovate/all from a05ae36e4e to 9dfaa198d0 2024-08-21 23:44:50 +02:00 Compare
kjuulh force-pushed renovate/all from 9dfaa198d0 to bed6df70fa 2024-08-23 11:25:50 +02:00 Compare
kjuulh force-pushed renovate/all from bed6df70fa to 3b4f1f1147 2024-08-26 15:57:02 +02:00 Compare
kjuulh force-pushed renovate/all from 3b4f1f1147 to 99f8f1fdb6 2024-08-26 17:48:49 +02:00 Compare
kjuulh force-pushed renovate/all from 99f8f1fdb6 to f173aeaf33 2024-09-05 03:10:38 +02:00 Compare
kjuulh force-pushed renovate/all from f173aeaf33 to 23d811202e 2024-09-07 03:09:00 +02:00 Compare
kjuulh force-pushed renovate/all from 23d811202e to 0bf69aed61 2024-09-08 03:06:48 +02:00 Compare
kjuulh force-pushed renovate/all from 0bf69aed61 to 1356073a35 2024-09-16 03:03:17 +02:00 Compare
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/all:renovate/all
git checkout renovate/all
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kjuulh/tree-sitter-rhai#2
No description provided.