IWANABETHATGUY
c034eee5c1
feat(transformer): handle invalid react jsx runtime ( #1502 )
2023-11-28 23:19:58 +08:00
Boshen
6ea1bf2f18
Revert "chore(prettier_conformance): temporary disable code coverage"
...
This reverts commit e1266c69f9 .
2023-11-28 17:34:59 +08:00
Boshen
37a592cc33
chore: update transform conformance exec snapshot
2023-11-28 16:38:20 +08:00
Boshen
7fca9504d2
chore: update snapshots
2023-11-28 16:27:10 +08:00
Boshen
8faa9936a6
ci: start running prettier conformance
2023-11-28 16:05:15 +08:00
Boshen
ca87fcfff3
ci(benchmark): use moonrepo/setup-rust to speed up compilation by caching everything ( #1568 )
2023-11-28 16:03:18 +08:00
Wenzhe Wang
3fe9cccb9e
feat(playground): format Prettier IR ( #1567 )
2023-11-28 13:51:47 +08:00
Cameron
9a0a6f5004
feat(prettier) further improve class printing ( #1566 )
2023-11-28 10:59:37 +08:00
Cameron
522cf29489
feat(prettier) improve class printing ( #1565 )
2023-11-28 10:54:33 +08:00
Cameron
2bfd28e6f5
fix(prettier) remove unmatched brace when displaying doc ( #1564 )
2023-11-28 10:50:25 +08:00
Cameron
83f25fc9b3
fix(prettier) fix printing of call args when in break mode ( #1563 )
...
To test, format:
```ts
foobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobar();
```
Previously:
```ts
foobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobar(
,
);
```
Now:
```ts
foobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobarfoobar();
```
2023-11-28 10:45:27 +08:00
Cameron
cc25f7897d
fix(prettier) Fix printing of array expressions ( #1562 )
2023-11-28 10:39:37 +08:00
Cameron
fe7f6efff2
fix(prettier) Fix debug printing if IfBreak` doc ( #1561 )
2023-11-28 10:34:28 +08:00
magic-akari
92c1d9d527
feat(transform): TypeScript Enum ( #1173 )
2023-11-28 10:33:01 +08:00
Cameron
cda0b97ade
feat(prettier) use groupId in fluid assignments ( #1560 )
2023-11-28 10:29:32 +08:00
Boshen
7d9d04c569
refactor(prettier): align line with prettier ( #1559 )
...
This PR alines all the line types with prettier
```
const hardlineWithoutBreakParent = { type: DOC_TYPE_LINE, hard: true };
const literallineWithoutBreakParent = {
type: DOC_TYPE_LINE,
hard: true,
literal: true,
};
const line = { type: DOC_TYPE_LINE };
const softline = { type: DOC_TYPE_LINE, soft: true };
const hardline = [hardlineWithoutBreakParent, breakParent];
const literalline = [literallineWithoutBreakParent, breakParent];
```
101598f94f/src/document/builders.js (L165-L175)
2023-11-27 23:11:53 +08:00
Wenzhe Wang
21dffec8be
feat(prettier): add id on IfBreak and Group ( #1551 )
2023-11-27 22:53:32 +08:00
Dunqing
0e1abae757
feat(prettier): filter out EmptyStatement in BlockStatement ( #1546 )
2023-11-27 22:45:45 +08:00
Radu Baston
afeed17be9
feat(linter): eslint-lugin-unicorn no_useless_length_check ( #1541 )
...
I have an issue with this rule. I am able to identify the condition that
breaks the rule, but I can't manage to get the fix done. I was thinking
of concatenating the valid conditions with the common operator, but I am
not sure how to do that (from `Expression` to turn to `string` to be
passed as a parameter to the fix). any help is appreciated.
NOTE: I will probably do some refactorization for this code after
implementing the fix
---------
Co-authored-by: Radu Baston <radu.baston@sectorlabs.ro>
2023-11-27 19:53:39 +08:00
dependabot[bot]
e1704d96a3
chore(deps): bump the dependencies group with 9 updates ( #1558 )
...
Bumps the dependencies group with 9 updates:
| Package | From | To |
| --- | --- | --- |
| [ignore](https://github.com/BurntSushi/ripgrep ) | `0.4.20` | `0.4.21`
|
| [proc-macro2](https://github.com/dtolnay/proc-macro2 ) | `1.0.69` |
`1.0.70` |
| [serde](https://github.com/serde-rs/serde ) | `1.0.192` | `1.0.193` |
| [ureq](https://github.com/algesten/ureq ) | `2.8.0` | `2.9.1` |
| [url](https://github.com/servo/rust-url ) | `2.4.1` | `2.5.0` |
| [tracing-subscriber](https://github.com/tokio-rs/tracing ) | `0.3.17` |
`0.3.18` |
|
[codspeed-criterion-compat](https://github.com/CodSpeedHQ/codspeed-rust )
| `2.3.1` | `2.3.3` |
| [napi](https://github.com/napi-rs/napi-rs ) | `2.14.0` | `2.14.1` |
| [napi-derive](https://github.com/napi-rs/napi-rs ) | `2.14.1` |
`2.14.2` |
Updates `ignore` from 0.4.20 to 0.4.21
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/BurntSushi/ripgrep/commits ">compare
view</a></li>
</ul>
</details>
<br />
Updates `proc-macro2` from 1.0.69 to 1.0.70
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/dtolnay/proc-macro2/releases ">proc-macro2's
releases</a>.</em></p>
<blockquote>
<h2>1.0.70</h2>
<ul>
<li>Add #[track_caller] on <code>Ident::new</code> so that panics on
invalid input are attributed to the caller (<a
href="https://redirect.github.com/dtolnay/proc-macro2/issues/423 ">#423</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="cd31a69e9c "><code>cd31a69</code></a>
Release 1.0.70</li>
<li><a
href="4482662ae5 "><code>4482662</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/proc-macro2/issues/423 ">#423</a>
from dtolnay/trackcaller</li>
<li><a
href="690ab11e04 "><code>690ab11</code></a>
Track caller for Ident validation panics</li>
<li><a
href="f15383f9f0 "><code>f15383f</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/proc-macro2/issues/422 ">#422</a>
from dtolnay/newchecked</li>
<li><a
href="ea2cd7f2e4 "><code>ea2cd7f</code></a>
Rename internal Ident::new -> Ident::new_checked</li>
<li><a
href="8059195101 "><code>8059195</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/proc-macro2/issues/421 ">#421</a>
from dtolnay/identunchecked</li>
<li><a
href="805a6adf92 "><code>805a6ad</code></a>
Bypass Ident validation on identifiers created by parser</li>
<li><a
href="c51346270e "><code>c513462</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/proc-macro2/issues/420 ">#420</a>
from dtolnay/newraw</li>
<li><a
href="bd778e1383 "><code>bd778e1</code></a>
Delete Ident::_new_raw</li>
<li><a
href="0cb3649e01 "><code>0cb3649</code></a>
Ignore checked_conversions pedantic clippy lint</li>
<li>Additional commits viewable in <a
href="https://github.com/dtolnay/proc-macro2/compare/1.0.69...1.0.70 ">compare
view</a></li>
</ul>
</details>
<br />
Updates `serde` from 1.0.192 to 1.0.193
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/serde-rs/serde/releases ">serde's
releases</a>.</em></p>
<blockquote>
<h2>v1.0.193</h2>
<ul>
<li>Fix field names used for the deserialization of
<code>RangeFrom</code> and <code>RangeTo</code> (<a
href="https://redirect.github.com/serde-rs/serde/issues/2653 ">#2653</a>,
<a
href="https://redirect.github.com/serde-rs/serde/issues/2654 ">#2654</a>,
<a
href="https://redirect.github.com/serde-rs/serde/issues/2655 ">#2655</a>,
thanks <a
href="https://github.com/emilbonnek "><code>@emilbonnek</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="44613c7d01 "><code>44613c7</code></a>
Release 1.0.193</li>
<li><a
href="c706281df3 "><code>c706281</code></a>
Merge pull request <a
href="https://redirect.github.com/serde-rs/serde/issues/2655 ">#2655</a>
from dtolnay/rangestartend</li>
<li><a
href="65d75b8fe3 "><code>65d75b8</code></a>
Add RangeFrom and RangeTo tests</li>
<li><a
href="332b0cba40 "><code>332b0cb</code></a>
Merge pull request <a
href="https://redirect.github.com/serde-rs/serde/issues/2654 ">#2654</a>
from dtolnay/rangestartend</li>
<li><a
href="8c4af41296 "><code>8c4af41</code></a>
Fix more RangeFrom / RangeEnd mixups</li>
<li><a
href="24a78f071b "><code>24a78f0</code></a>
Merge pull request <a
href="https://redirect.github.com/serde-rs/serde/issues/2653 ">#2653</a>
from emilbonnek/fix/range-to-from-de-mixup</li>
<li><a
href="c91c33436d "><code>c91c334</code></a>
Fix Range{From,To} deserialize mixup</li>
<li><a
href="2083f43a28 "><code>2083f43</code></a>
Update ui test suite to nightly-2023-11-19</li>
<li>See full diff in <a
href="https://github.com/serde-rs/serde/compare/v1.0.192...v1.0.193 ">compare
view</a></li>
</ul>
</details>
<br />
Updates `ureq` from 2.8.0 to 2.9.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/algesten/ureq/blob/main/CHANGELOG.md ">ureq's
changelog</a>.</em></p>
<blockquote>
<h1>2.9.1</h1>
<h2>Fixed</h2>
<ul>
<li>Unbreak feature <code>http-interop</code>. This feature is version
locked to http crate 0.2</li>
<li>New feature <code>http-crate</code>. This feature is for http crate
1.0</li>
<li>New feature <code>proxy-from-env</code> to detect proxy settings for
global Agent (ureq::get).</li>
</ul>
<h1>2.9.0</h1>
<h2>Fixed</h2>
<ul>
<li>Broken rustls dep (introduced new function in patch version) (<a
href="https://redirect.github.com/algesten/ureq/issues/677 ">#677</a>)</li>
<li>Doc and test fixes (<a
href="https://redirect.github.com/algesten/ureq/issues/670 ">#670</a>, <a
href="https://redirect.github.com/algesten/ureq/issues/673 ">#673</a>, <a
href="https://redirect.github.com/algesten/ureq/issues/674 ">#674</a>)</li>
</ul>
<h2>Added</h2>
<ul>
<li>Upgraded http dep to 1.0</li>
<li>http_interop to not require utf-8 headers (<a
href="https://redirect.github.com/algesten/ureq/issues/672 ">#672</a>)</li>
<li>http_interop implement conversion for
<code>http::request::Parts</code> (<a
href="https://redirect.github.com/algesten/ureq/issues/669 ">#669</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="9092222fbd "><code>9092222</code></a>
2.9.1</li>
<li><a
href="73690436cb "><code>7369043</code></a>
Rename feature http -> http-crate</li>
<li><a
href="87108e006d "><code>87108e0</code></a>
Support both http 0.2 and 1.0</li>
<li><a
href="89a69a5834 "><code>89a69a5</code></a>
docs: update doc comment on <code>try_proxy_from_env</code> method to
reflect the `proxy...</li>
<li><a
href="395218de39 "><code>395218d</code></a>
feat: add a feature flag "proxy-from-env" to control whether
or not to detect...</li>
<li><a
href="260213b3e2 "><code>260213b</code></a>
2.9.0</li>
<li><a
href="c83ba95ac4 "><code>c83ba95</code></a>
Update changelog</li>
<li><a
href="07b8925f3b "><code>07b8925</code></a>
Simpler version expression for rustls dep</li>
<li><a
href="c1bc86ad58 "><code>c1bc86a</code></a>
http 1.0</li>
<li><a
href="916ffbffbe "><code>916ffbf</code></a>
Fix missing add_trust_anchors method due to lax rustls versioning</li>
<li>Additional commits viewable in <a
href="https://github.com/algesten/ureq/compare/2.8.0...2.9.1 ">compare
view</a></li>
</ul>
</details>
<br />
Updates `url` from 2.4.1 to 2.5.0
<details>
<summary>Commits</summary>
<ul>
<li><a
href="00e9e18ce6 "><code>00e9e18</code></a>
Update url 2.5.0 (<a
href="https://redirect.github.com/servo/rust-url/issues/885 ">#885</a>)</li>
<li><a
href="464b1f7d8f "><code>464b1f7</code></a>
Fix another overflow in punycode encode_into (<a
href="https://redirect.github.com/servo/rust-url/issues/880 ">#880</a>)</li>
<li><a
href="912d716b04 "><code>912d716</code></a>
Correct spelling mistake in <code>Position</code> docs (<a
href="https://redirect.github.com/servo/rust-url/issues/875 ">#875</a>)</li>
<li><a
href="5f454e2031 "><code>5f454e2</code></a>
Added #[must_use] Attributes for Configuration Options (<a
href="https://redirect.github.com/servo/rust-url/issues/876 ">#876</a>)</li>
<li><a
href="67fc2730b6 "><code>67fc273</code></a>
Fix search setting for non-special urls with space, query and fragment
(<a
href="https://redirect.github.com/servo/rust-url/issues/879 ">#879</a>)</li>
<li><a
href="ae8d29e04a "><code>ae8d29e</code></a>
use checked addition to not panic in debug build (<a
href="https://redirect.github.com/servo/rust-url/issues/877 ">#877</a>)</li>
<li><a
href="e39c9a20be "><code>e39c9a2</code></a>
Fix clippy (<a
href="https://redirect.github.com/servo/rust-url/issues/878 ">#878</a>)</li>
<li>See full diff in <a
href="https://github.com/servo/rust-url/compare/v2.4.1...v2.5.0 ">compare
view</a></li>
</ul>
</details>
<br />
Updates `tracing-subscriber` from 0.3.17 to 0.3.18
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/tokio-rs/tracing/releases ">tracing-subscriber's
releases</a>.</em></p>
<blockquote>
<h2>tracing-subscriber 0.3.18</h2>
<p>This release of <code>tracing-subscriber</code> adds support for the
<a href="https://no-color.org/ "><code>NO_COLOR</code></a> environment
variable (an informal standard to disable emitting ANSI color escape
codes) in
<code>fmt::Layer</code>, reintroduces support for the <a
href="https://github.com/chronotope/chrono "><code>chrono</code></a>
crate, and increases the
minimum supported Rust version (MSRV) to Rust 1.63.0.</p>
<p>It also introduces several minor API improvements.</p>
<h3>Added</h3>
<ul>
<li><strong>chrono</strong>: Add <a
href="https://github.com/chronotope/chrono "><code>chrono</code></a>
implementations of <code>FormatTime</code> (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2690 ">#2690</a>)</li>
<li><strong>subscriber</strong>: Add support for the <a
href="https://no-color.org/ "><code>NO_COLOR</code></a> environment
variable in
<code>fmt::Layer</code> (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2647 ">#2647</a>)</li>
<li><strong>fmt</strong>: make <code>format::Writer::new()</code> public
(<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2680 ">#2680</a>)</li>
<li><strong>filter</strong>: Implement <code>layer::Filter</code> for
<code>Option<Filter></code> (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2407 ">#2407</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li><strong>log</strong>: bump version of <code>tracing-log</code> to
0.2 (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2772 ">#2772</a>)</li>
<li>Increased minimum supported Rust version (MSRV) to 1.63.0+.</li>
</ul>
<p><a
href="https://redirect.github.com/tokio-rs/tracing/issues/2690 ">#2690</a>:
<a
href="https://redirect.github.com/tokio-rs/tracing/pull/2690 ">tokio-rs/tracing#2690</a>
<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2647 ">#2647</a>:
<a
href="https://redirect.github.com/tokio-rs/tracing/pull/2647 ">tokio-rs/tracing#2647</a>
<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2680 ">#2680</a>:
<a
href="https://redirect.github.com/tokio-rs/tracing/pull/2680 ">tokio-rs/tracing#2680</a>
<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2407 ">#2407</a>:
<a
href="https://redirect.github.com/tokio-rs/tracing/pull/2407 ">tokio-rs/tracing#2407</a>
<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2772 ">#2772</a>:
<a
href="https://redirect.github.com/tokio-rs/tracing/pull/2772 ">tokio-rs/tracing#2772</a></p>
<p>Thanks to <a
href="https://github.com/shayne-fletcher "><code>@shayne-fletcher</code></a>,
<a href="https://github.com/dmlary "><code>@dmlary</code></a>, <a
href="https://github.com/kaifastromai "><code>@kaifastromai</code></a>,
and <a href="https://github.com/jsgf "><code>@jsgf</code></a> for
contributing!</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="8b7a1dde69 "><code>8b7a1dd</code></a>
chore: prepare tracing-subscriber 0.3.18 release (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2789 ">#2789</a>)</li>
<li><a
href="befb4de073 "><code>befb4de</code></a>
chore: fix <code>ahash</code>-caused build breakage (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2792 ">#2792</a>)</li>
<li><a
href="1dc1e6a302 "><code>1dc1e6a</code></a>
chore: bump <code>ahash</code> to 0.7.7 (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2794 ">#2794</a>)</li>
<li><a
href="abb23931ef "><code>abb2393</code></a>
chore: backport CI improvements (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2238 ">#2238</a>)</li>
<li><a
href="c6abc10c3a "><code>c6abc10</code></a>
chore: bump MSRV to 1.63 (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2793 ">#2793</a>)</li>
<li><a
href="4529182e60 "><code>4529182</code></a>
attributes: added missing RecordTypes for instrument (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2781 ">#2781</a>)</li>
<li><a
href="7b594354cf "><code>7b59435</code></a>
subcriber: update docs for EnvFilter Builder (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2782 ">#2782</a>)</li>
<li><a
href="119f91a85c "><code>119f91a</code></a>
tracing: removed core imports in macros (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2762 ">#2762</a>)</li>
<li><a
href="346d6e6456 "><code>346d6e6</code></a>
core: fix incorrect (incorrectly updated) docs for LevelFilter (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2767 ">#2767</a>)</li>
<li><a
href="8cdc9da202 "><code>8cdc9da</code></a>
appender: remove <code>Sync</code> bound from writer for
<code>NonBlocking</code> (<a
href="https://redirect.github.com/tokio-rs/tracing/issues/2607 ">#2607</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18 ">compare
view</a></li>
</ul>
</details>
<br />
Updates `codspeed-criterion-compat` from 2.3.1 to 2.3.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/CodSpeedHQ/codspeed-rust/releases ">codspeed-criterion-compat's
releases</a>.</em></p>
<blockquote>
<h2>v2.3.3</h2>
<h2>What's Changed</h2>
<h3><code>criterion-compat</code></h3>
<ul>
<li>Avoid creating a breaking change while adding generics to
<code>BenchmarkGroup</code> <a
href="https://github.com/art049 "><code>@art049</code></a> in <a
href="https://redirect.github.com/CodSpeedHQ/codspeed-rust/pull/30 ">CodSpeedHQ/codspeed-rust#30</a></li>
</ul>
<h3><code>cargo-codspeed</code></h3>
<ul>
<li>Correct <code>cargo-codspeed</code> repository url by <a
href="https://github.com/davidhewitt "><code>@davidhewitt</code></a> in
<a
href="https://redirect.github.com/CodSpeedHQ/codspeed-rust/pull/28 ">CodSpeedHQ/codspeed-rust#28</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/davidhewitt "><code>@davidhewitt</code></a>
made their first contribution in <a
href="https://redirect.github.com/CodSpeedHQ/codspeed-rust/pull/28 ">CodSpeedHQ/codspeed-rust#28</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.2...v2.3.3 ">https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.2...v2.3.3 </a></p>
<h2>v2.3.2 (yanked)</h2>
<h2>What's Changed</h2>
<ul>
<li>feat(criterion): <code>BenchmarkGroup</code> compat with
<code>Measurement</code> generic param and <code>plot_config</code> by
<a href="https://github.com/sdd "><code>@sdd</code></a> in <a
href="https://redirect.github.com/CodSpeedHQ/codspeed-rust/pull/26 ">CodSpeedHQ/codspeed-rust#26</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/sdd "><code>@sdd</code></a> made their
first contribution in <a
href="https://redirect.github.com/CodSpeedHQ/codspeed-rust/pull/26 ">CodSpeedHQ/codspeed-rust#26</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.1...v2.3.2 ">https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.1...v2.3.2 </a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="fc751390d7 "><code>fc75139</code></a>
Release 2.3.3</li>
<li><a
href="ca39531092 "><code>ca39531</code></a>
feat(criterion): support explicit lifetime for BenchmarkGroup</li>
<li><a
href="487fdee134 "><code>487fdee</code></a>
fix(criterion): add a default measurement to the benchmark group
struct</li>
<li><a
href="68a0039a4e "><code>68a0039</code></a>
chore: add codspeed badges in sub readmes</li>
<li><a
href="6064482e87 "><code>6064482</code></a>
fix: correct repository_url for crates</li>
<li><a
href="dc6b1f1875 "><code>dc6b1f1</code></a>
chroe: add the codspeed badge to the readme</li>
<li><a
href="3af70b54c9 "><code>3af70b5</code></a>
Release 2.3.2</li>
<li><a
href="e033746ad1 "><code>e033746</code></a>
feat(criterion): <code>BenchmarkGroup</code> compat with
<code>Measurement</code> generic param and...</li>
<li>See full diff in <a
href="https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.1...v2.3.3 ">compare
view</a></li>
</ul>
</details>
<br />
Updates `napi` from 2.14.0 to 2.14.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/napi-rs/napi-rs/releases ">napi's
releases</a>.</em></p>
<blockquote>
<h2><code>@napi-rs/cli</code><a
href="https://github.com/2 "><code>@2</code></a>.14.1</h2>
<h2>What's Changed</h2>
<ul>
<li>[Fix] Quote toml path by <a
href="https://github.com/TheBrenny "><code>@TheBrenny</code></a> in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1410 ">napi-rs/napi-rs#1410</a></li>
<li>chore(cli): update CI template by <a
href="https://github.com/Brooooooklyn "><code>@Brooooooklyn</code></a>
in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1416 ">napi-rs/napi-rs#1416</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/TheBrenny "><code>@TheBrenny</code></a>
made their first contribution in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1410 ">napi-rs/napi-rs#1410</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/napi-rs/napi-rs/compare/napi@2.10.4...@napi-rs/cli@2.14.1 ">https://github.com/napi-rs/napi-rs/compare/napi@2.10.4 ...<code>@napi-rs/cli</code><code>@2.14.1</code></a></p>
<h2>napi-derive@2.14.1</h2>
<h2>What's Changed</h2>
<ul>
<li>fix(napi-derive): async task void output type by <a
href="https://github.com/Brooooooklyn "><code>@Brooooooklyn</code></a>
in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1795 ">napi-rs/napi-rs#1795</a></li>
<li>fix(napi-derive): async task optional output type by <a
href="https://github.com/Brooooooklyn "><code>@Brooooooklyn</code></a>
in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1796 ">napi-rs/napi-rs#1796</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/napi-rs/napi-rs/compare/napi-sys@2.3.0...napi-derive@2.14.1 ">https://github.com/napi-rs/napi-rs/compare/napi-sys@2.3.0...napi-derive@2.14.1 </a></p>
<h2>napi@2.14.1</h2>
<h2>What's Changed</h2>
<ul>
<li>style(napi): clippy fix by <a
href="https://github.com/Brooooooklyn "><code>@Brooooooklyn</code></a>
in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1815 ">napi-rs/napi-rs#1815</a></li>
<li>fix(napi): cargo doc build by <a
href="https://github.com/Brooooooklyn "><code>@Brooooooklyn</code></a>
in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1819 ">napi-rs/napi-rs#1819</a></li>
<li>fix(napi): compile error for wasm32-unknown-unknown target by <a
href="https://github.com/Brooooooklyn "><code>@Brooooooklyn</code></a>
in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1822 ">napi-rs/napi-rs#1822</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/napi-rs/napi-rs/compare/napi@2.14.0...napi@2.14.1 ">https://github.com/napi-rs/napi-rs/compare/napi@2.14.0...napi@2.14.1 </a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="6a4f4f173d "><code>6a4f4f1</code></a>
chore(release): publish</li>
<li><a
href="e4ac44e560 "><code>e4ac44e</code></a>
Release independent packages</li>
<li><a
href="8a9c42a985 "><code>8a9c42a</code></a>
fix(napi): compile error for wasm32-unknown-unknown target</li>
<li><a
href="7dced934a7 "><code>7dced93</code></a>
fix(napi): cargo doc build</li>
<li><a
href="751312cec9 "><code>751312c</code></a>
test: add test file name into error message (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1821 ">#1821</a>)</li>
<li><a
href="7c3f8b514e "><code>7c3f8b5</code></a>
fix(napi-derive): compile warning (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1820 ">#1820</a>)</li>
<li><a
href="8c911b5d34 "><code>8c911b5</code></a>
chore: upgrade emnapi dependencies (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1817 ">#1817</a>)</li>
<li><a
href="76dcf833da "><code>76dcf83</code></a>
chore(deps): update dependency emnapi to v0.44.0 (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1805 ">#1805</a>)</li>
<li><a
href="6df0ca112e "><code>6df0ca1</code></a>
chore: 🤖 align wasi template to nodejs demo (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1814 ">#1814</a>)</li>
<li><a
href="c321071c89 "><code>c321071</code></a>
chore(deps): update dependency <code>@emnapi/runtime</code> to v0.44.0
(<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1804 ">#1804</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/napi-rs/napi-rs/compare/napi@2.14.0...napi@2.14.1 ">compare
view</a></li>
</ul>
</details>
<br />
Updates `napi-derive` from 2.14.1 to 2.14.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/napi-rs/napi-rs/releases ">napi-derive's
releases</a>.</em></p>
<blockquote>
<h2>napi-derive@2.14.2</h2>
<h2>What's Changed</h2>
<ul>
<li>fix(napi-derive): compile warning by <a
href="https://github.com/Brooooooklyn "><code>@Brooooooklyn</code></a>
in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1820 ">napi-rs/napi-rs#1820</a></li>
<li>fix(napi): compile error for wasm32-unknown-unknown target by <a
href="https://github.com/Brooooooklyn "><code>@Brooooooklyn</code></a>
in <a
href="https://redirect.github.com/napi-rs/napi-rs/pull/1822 ">napi-rs/napi-rs#1822</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/napi-rs/napi-rs/compare/napi-derive@2.14.1...napi-derive@2.14.2 ">https://github.com/napi-rs/napi-rs/compare/napi-derive@2.14.1...napi-derive@2.14.2 </a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="6a4f4f173d "><code>6a4f4f1</code></a>
chore(release): publish</li>
<li><a
href="e4ac44e560 "><code>e4ac44e</code></a>
Release independent packages</li>
<li><a
href="8a9c42a985 "><code>8a9c42a</code></a>
fix(napi): compile error for wasm32-unknown-unknown target</li>
<li><a
href="7dced934a7 "><code>7dced93</code></a>
fix(napi): cargo doc build</li>
<li><a
href="751312cec9 "><code>751312c</code></a>
test: add test file name into error message (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1821 ">#1821</a>)</li>
<li><a
href="7c3f8b514e "><code>7c3f8b5</code></a>
fix(napi-derive): compile warning (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1820 ">#1820</a>)</li>
<li><a
href="8c911b5d34 "><code>8c911b5</code></a>
chore: upgrade emnapi dependencies (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1817 ">#1817</a>)</li>
<li><a
href="76dcf833da "><code>76dcf83</code></a>
chore(deps): update dependency emnapi to v0.44.0 (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1805 ">#1805</a>)</li>
<li><a
href="6df0ca112e "><code>6df0ca1</code></a>
chore: 🤖 align wasi template to nodejs demo (<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1814 ">#1814</a>)</li>
<li><a
href="c321071c89 "><code>c321071</code></a>
chore(deps): update dependency <code>@emnapi/runtime</code> to v0.44.0
(<a
href="https://redirect.github.com/napi-rs/napi-rs/issues/1804 ">#1804</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/napi-rs/napi-rs/compare/napi-derive@2.14.1...napi-derive@2.14.2 ">compare
view</a></li>
</ul>
</details>
<br />
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-27 09:01:15 +00:00
Boshen
6670d94708
chore(rust): remove unnecessary clippy::non_upper_case_globals ( #1557 )
2023-11-27 14:31:38 +08:00
Boshen
6e7892fcf0
refactor(prettier): move comment printing to its own directory ( #1556 )
2023-11-27 14:22:15 +08:00
Boshen
cc382835ef
feat(prettier): trailing comment (wip) ( #1538 )
2023-11-27 14:08:39 +08:00
u9g
9a5bb008e7
feat(query): Add is_getter, is_setter, is_constructor to all Function implementors ( #1526 )
...
---
<details open="true"><summary>Generated summary (powered by <a href="https://app.graphite.dev ">Graphite</a>)</summary>
> # TL;DR
> This pull request adds new properties to the `ArrowFunction`, `FnDeclaration`, and `Function` interfaces in the Trustfall schema. It also adds implementation for resolving these properties in the `adapter.rs` and `properties.rs` files. Additionally, it adds a new method `function_scope_flag` to the `Vertex` struct in the `vertex.rs` file.
>
> # What changed
> - Added new properties (`is_getter`, `is_setter`, `is_constructor`) to the `ArrowFunction`, `FnDeclaration`, and `Function` interfaces in the Trustfall schema.
> - Implemented the resolution of these properties in the `resolve_arrow_function_property`, `resolve_fn_declaration_property`, and `resolve_function_property` functions in the `properties.rs` file.
> - Added a new method `function_scope_flag` to the `Vertex` struct in the `vertex.rs` file.
>
> # How to test
> 1. Run the test suite to ensure that all existing tests pass.
> 2. Add new tests to cover the newly added properties and the `function_scope_flag` method.
> 3. Run the test suite again and ensure that all tests pass.
>
> # Why make this change
> - The new properties (`is_getter`, `is_setter`, `is_constructor`) provide additional information about functions in the Trustfall schema, allowing clients to query for these properties.
> - The `function_scope_flag` method in the `Vertex` struct provides a convenient way to access the scope flags of a function node, which can be useful for various analysis and processing tasks.
</details>
2023-11-27 12:22:41 +08:00
IWANABETHATGUY
8251a343aa
fix(oxc_vscode): vscode extension - check on file change (not on file save) ( #1525 )
...
1. Closed https://github.com/oxc-project/oxc/issues/1518
[录屏 2023年11月24日
12时08分14秒.webm](https://github.com/oxc-project/oxc/assets/17974631/6ff42edf-b837-466a-a9fa-a1d1244dfd45 )
2023-11-27 12:20:50 +08:00
Dunqing
85e8c8bad5
fix(prettier): incorrect order of print in AssignmentTargetPropertyProperty ( #1545 )
2023-11-27 12:18:32 +08:00
Cameron
d5b636b197
feat(prettier) Improve assignment compatibility ( #1547 )
2023-11-27 10:01:01 +08:00
Ken-HH24
a2510be7a0
feat(linter): no-is-mounted for eslint-plugin-react ( #1550 )
...
Try to implement `no-is-mounted` for #1022
2023-11-26 11:06:08 +00:00
Boshen
023e6eabcd
chore(resolver): add a path alias test ( #1549 )
2023-11-26 07:14:32 +00:00
Cameron
08b659455b
refactor(prettier) move assignment printing into seperate file ( #1544 )
2023-11-26 14:09:57 +08:00
Radu Baston
59d0428eb5
feat(linter): eslint 9.0 no empty static block ( #1543 )
...
Related [issue](https://github.com/oxc-project/oxc/issues/1191 )
---------
Co-authored-by: Radu Baston <radu.baston@sectorlabs.ro>
2023-11-25 17:09:50 +00:00
magic-akari
9ff0ffcc6f
feat(ast): implement new proposal-import-attributes ( #1476 )
...
- [Import Attributes](https://tc39.es/proposal-import-attributes )
2023-11-25 15:56:09 +08:00
Wenzhe Wang
46d1086c3e
feat(prettier): add LineSuffix Doc ( #1542 )
2023-11-25 13:46:02 +08:00
Wenzhe Wang
924d99e8d7
feat(prettier): init command of Fill ( #1460 )
2023-11-25 12:03:26 +08:00
Boshen
13cac62402
feat(prettier): print leading comments for all ast nodes ( #1537 )
2023-11-25 00:35:51 +08:00
Cameron
41bb0060eb
fix(linter) fix panic in no hex escape ( #1540 )
...
🦀 🦶 🔫
lol https://twitter.com/boshen_c/status/1719033308682870891
closes #1539
2023-11-24 23:57:02 +08:00
Boshen
32b19561a8
chore(prettier_conformance): ignore bind-expressions ( #1535 )
2023-11-24 20:26:27 +08:00
Dunqing
3ca2f50773
feat(prettier): align ObjectProerty with prettier ( #1536 )
2023-11-24 20:20:07 +08:00
Dunqing
ac8a5ce574
feat(prettier): support handling of BlockStatement within consequent in SwitchCase ( #1533 )
2023-11-24 17:15:29 +08:00
Dunqing
ec0ee5cd07
feat(prettier): keep empty lines in SwitchStatement ( #1532 )
2023-11-24 17:10:27 +08:00
Boshen
4a0d18048b
feat(prettier): format () => ({} ? 1 : 2); to () => ({}) ? 1 : 2; ( #1534 )
2023-11-24 17:07:19 +08:00
Dunqing
75c75887e3
feat(prettier): trim spaces when printing hardline ( #1531 )
2023-11-24 17:05:20 +08:00
Boshen
e55fdc6452
feat(prettier): add parens to conditional and arrow expr ( #1530 )
2023-11-24 15:07:29 +08:00
IWANABETHATGUY
9897cab220
chore(vscode): improve dx ( #1528 )
2023-11-24 15:05:27 +08:00
Boshen
6e81b3d41a
fix(prettier): pop the stack in should_wrap_function_for_export_default ( #1529 )
2023-11-24 14:57:06 +08:00
RiESAEX
8afda7d247
feat(linter): eslint-plugin-unicorn: escape-case ( #1495 )
...
[Rule](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/escape-case.md )
#684
2023-11-24 10:44:34 +08:00
u9g
ec2af2b24a
chore: add lint plugins to gitignore ( #1524 )
2023-11-24 10:43:34 +08:00
Boshen
6ebb42dbd7
fix(ast): remove debug_assertions from debug_name
2023-11-24 10:24:15 +08:00
IWANABETHATGUY
f4616815ea
chore: remove nextest config ( #1522 )
...
1. remove nextext config since we don't use it anymore.
2023-11-24 10:12:50 +08:00
Boshen
1dc365c204
ci: cargo test run --no-run --workspace -> cargo test --quiet --no-run
...
Doesn't seem to have a difference with `--workspace`
2023-11-23 21:55:41 +08:00