Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
243 commits
Select commit Hold shift + click to select a range
6c69985
ci: pin cargo-shear to v1
Boshen Jul 7, 2024
747fe29
chore(deps): update napi-rs to 2.16.8
renovate[bot] Jul 7, 2024
503fe75
chore(deps): update npm packages
renovate[bot] Jul 7, 2024
176dc45
chore(deps): update rust crate serde to v1.0.204
renovate[bot] Jul 7, 2024
e29975d
bench: add symlink fixtures (#219)
Brooooooklyn Jul 10, 2024
b6eeab6
perf: use custom canonicalize impl to avoid usless syscall (#220)
Brooooooklyn Jul 10, 2024
f762095
chore: update lockfiles
Boshen Jul 10, 2024
11d7100
Release v1.9.4
Boshen Jul 10, 2024
de26319
fix: remove `#[cfg(target_os = "windows")]` logic in `canonicalize` (…
Brooooooklyn Jul 10, 2024
caf1eb0
ci: pin crate-ci/typos version
Boshen Jul 10, 2024
5d4421a
chore: update `cargo deny` (#222)
Boshen Jul 10, 2024
e678d0b
feat(napi): expose module type info in ResolveResult (#223)
Brooooooklyn Jul 11, 2024
1f79263
chore: update devDependencies
Boshen Jul 11, 2024
4400300
Release v1.10.0
Boshen Jul 11, 2024
cb11c18
fix(napi): update buggy NAPI-RS versions (#225)
Brooooooklyn Jul 11, 2024
2160167
ci: all `--all-features` to various commands
Boshen Jul 12, 2024
d6f9390
chore(deps): update crate-ci/typos action to v1.23.2
renovate[bot] Jul 14, 2024
15b0e5c
chore(deps): update rust crate napi to 3.0.0-alpha
renovate[bot] Jul 14, 2024
6d097a7
chore(deps): update rust crates
renovate[bot] Jul 14, 2024
312d612
ci: add x86_64-unknown-freebsd target (#226)
Brooooooklyn Jul 15, 2024
5644abb
fix: resolve module `ipaddr.js` correctly when `extensionAlias` is pr…
Boshen Jul 15, 2024
ad757ca
Release v1.10.1
Boshen Jul 15, 2024
38034a8
ci: fix FreeBSD build (#230)
Brooooooklyn Jul 15, 2024
9791f0b
ci: add `needs` check in build-freebsd
Boshen Jul 15, 2024
378d7cb
ci: publish needs build-freebsd (#232)
Brooooooklyn Jul 16, 2024
b9d0443
Release v1.10.2
Boshen Jul 16, 2024
5310589
feat: Yarn PnP (#217)
arcanis Jul 19, 2024
89e6ae8
chore(deps): update rust crate napi-derive to 3.0.0-alpha
renovate[bot] Jul 21, 2024
f4c3ef5
chore(deps): update rust crates
renovate[bot] Jul 21, 2024
dd847cb
chore(deps): update dependency rust to v1.80.0 (#234)
renovate[bot] Jul 25, 2024
22df000
chore(deps): update crate-ci/typos action to v1.23.5
renovate[bot] Jul 28, 2024
e78ea3c
chore(deps): update codspeedhq/action action to v3
renovate[bot] Jul 28, 2024
65684f6
chore(deps): update rust crate serde_json to v1.0.121
renovate[bot] Jul 28, 2024
733628a
chore(deps): update dependency @types/node to v22
renovate[bot] Jul 29, 2024
8157f99
chore(deps): update crate-ci/typos action to v1.23.6
renovate[bot] Aug 4, 2024
318b101
chore(deps): update rust crates
renovate[bot] Aug 4, 2024
71e1d3d
chore(deps): update rust crate criterion2 to v1
renovate[bot] Aug 11, 2024
71b3498
chore(deps): update rust crates
renovate[bot] Aug 11, 2024
509dc00
chore(deps): update rust crates
renovate[bot] Aug 18, 2024
5bc088f
chore(deps): update rust crates
renovate[bot] Aug 25, 2024
453211e
chore(deps): update crate-ci/typos action to v1.24.1
renovate[bot] Aug 25, 2024
6c4297b
chore: bump rustc to v1.80.1
Boshen Aug 26, 2024
587bdab
perf: use simdutf8 to validate UTF-8 when reading files (#237)
Boshen Aug 26, 2024
f41803f
Release v1.11.0
Boshen Aug 26, 2024
250ad08
chore: typos ignore CHANGELOG.md
Boshen Aug 26, 2024
be6b57c
chore: add esm / cjs `condition_names` to examples
Boshen Aug 30, 2024
5b71e9c
chore(deps): update crate-ci/typos action to v1.24.3
renovate[bot] Sep 1, 2024
3953cdd
feat: give a specific error for matched alias not found (#238)
underfin Sep 3, 2024
2fd0ac9
chore(deps): update crate-ci/typos action to v1.24.4
renovate[bot] Sep 3, 2024
efed84f
chore(deps): update crate-ci/typos action to v1.24.5
renovate[bot] Sep 4, 2024
a7674ce
chore(deps): update dependency rust to v1.81.0 (#239)
renovate[bot] Sep 6, 2024
56f02c0
chore: apply `semver_check` to release-plz (#241)
Boshen Sep 6, 2024
09db0fb
ci: update package.json in release-plz.yml (#242)
Boshen Sep 6, 2024
bc70948
fix .github/workflows/release-plz.yml
Boshen Sep 6, 2024
43d1e39
ci: set `GH_TOKEN` for "Bump package.json" in release-plz.yml
Boshen Sep 6, 2024
23c5fb6
chore(deps): update npm packages
renovate[bot] Sep 8, 2024
e2574ef
chore(deps): update npm packages
renovate[bot] Sep 8, 2024
affeab5
chore(deps): update npm packages
renovate[bot] Sep 15, 2024
bea3580
chore(deps): update crate-ci/typos action to v1.24.6
renovate[bot] Sep 17, 2024
d46cab3
chore(deps): update pnpm to v9.11.0
renovate[bot] Sep 22, 2024
aaace86
chore(deps): update rust crates
renovate[bot] Sep 22, 2024
88caae4
ci: turn off `cargo-semver-checks` for release-plz
Boshen Sep 25, 2024
52f3a25
feat: show tried extension aliases in `ResolveError::ExtensionAlias` …
Boshen Sep 25, 2024
58ea4df
feat!: mark `ResolveError` #[non_exhaustive] (#252)
Boshen Sep 25, 2024
7c3aee4
chore(justfile): add back manual release command
Boshen Sep 25, 2024
3086817
Release v1.12.0
Boshen Sep 25, 2024
2c566ea
fix(napi): `new ResolverFactory()` options should be optional (#256)
Boshen Sep 25, 2024
146685b
chore: update README
Boshen Sep 28, 2024
5082ee3
chore(deps): update rust crates
renovate[bot] Sep 29, 2024
6795a5c
chore(deps): update dependency @types/node to v22.7.4
renovate[bot] Sep 29, 2024
4eaf3a8
chore(deps): update crate-ci/typos action to v1.25.0
renovate[bot] Oct 1, 2024
376e254
chore: update license copyright holder
Boshen Oct 2, 2024
847028e
docs(README): should be `new ResolverFactory`
Boshen Oct 5, 2024
295a352
chore(deps): update rust crates (#266)
renovate[bot] Oct 7, 2024
37c3e91
chore(deps): update crate-ci/typos action to v1.26.0
renovate[bot] Oct 7, 2024
cf14083
chore(deps): update dependency rust to v1.82.0 (#269)
renovate[bot] Oct 17, 2024
23098ef
chore(deps): update rust crate serde_json to v1.0.132
renovate[bot] Oct 20, 2024
efe9f4e
fix: extensionAlias cannot resolve mathjs (#273)
SoonIter Oct 21, 2024
2a7f039
chore(justfile): just `bacon` instead of `cargo-watch`
Boshen Oct 22, 2024
3a71a3e
feat!: add `ResolveError::Builtin::prefixed_with_node_colon` (#272)
IWANABETHATGUY Oct 22, 2024
ba5a189
refactor: clean up elided lifetimes (#277)
Boshen Oct 22, 2024
30b1632
refactor: add more clippy fixes (#279)
Boshen Oct 22, 2024
0bdeb3b
refactor: apply latest `cargo +nightly fmt` (#281)
Boshen Oct 22, 2024
098788c
chore: use default features for `rustc-hash`
Boshen Oct 22, 2024
2d26b10
deps: relax versions for downstream use
Boshen Oct 22, 2024
f935ecd
chore: fix test warning
Boshen Oct 22, 2024
ee87dbc
chore: update napi changes
Boshen Oct 22, 2024
f2252a8
fix: use `fs::canonicalize` to cover symlink edge cases (#284)
Boshen Oct 22, 2024
90d101d
chore(deps): update npm packages
renovate[bot] Oct 22, 2024
375a993
chore: release v2.0.0 (#285)
Boshen Oct 22, 2024
f40bc78
Revert "ci: turn off `cargo-semver-checks` for release-plz"
Boshen Oct 22, 2024
59f8484
chore(deps): update crate-ci/typos action to v1.26.1
renovate[bot] Oct 23, 2024
b76f0e0
chore(deps): update crate-ci/typos action to v1.26.8
renovate[bot] Oct 24, 2024
e6adbbf
chore(deps): update napi-rs to 3.0.0-alpha
renovate[bot] Oct 27, 2024
4f2030a
chore(deps): update rust crates to v1.0.213
renovate[bot] Oct 27, 2024
aff4531
chore(deps): update npm packages
renovate[bot] Oct 27, 2024
7f633f1
chore(deps): update crate-ci/typos action to v1.27.0
renovate[bot] Nov 1, 2024
ffd6d73
chore(deps): update npm packages
renovate[bot] Nov 3, 2024
1e41e24
chore(deps): update rust crates to v1.0.214
renovate[bot] Nov 3, 2024
a6a9b0b
chore(deps): update rust crate criterion2 to v2
renovate[bot] Nov 3, 2024
f7be3a6
chore(deps): update crate-ci/typos action to v1.27.1
renovate[bot] Nov 6, 2024
edc503c
chore(deps): update crate-ci/typos action to v1.27.2
renovate[bot] Nov 7, 2024
96825a3
perf: bring back the symlink optimization (#298)
Brooooooklyn Nov 8, 2024
02e99fc
chore: `cargo upgrade` && `pnpm upgrade`
Boshen Nov 8, 2024
531b38a
ci: amend the release-plz so it doesn't close and create one
Boshen Nov 8, 2024
dfc1c2a
chore: release v2.0.1 (#301)
Boshen Nov 8, 2024
3872516
chore(deps): update crate-ci/typos action to v1.27.3
renovate[bot] Nov 8, 2024
23481be
chore(deps): update napi-rs to 3.0.0-alpha
renovate[bot] Nov 10, 2024
1fe94ec
chore(deps): update rust crate thiserror to v1.0.69
renovate[bot] Nov 10, 2024
e591956
chore: add .yarn to gitignore (#305)
sapphi-red Nov 12, 2024
ebc6c36
test: fix symlink test init on windows (#307)
sapphi-red Nov 12, 2024
ed9208d
chore: fix just benchmark (#309)
sapphi-red Nov 13, 2024
7b746d4
fix: use same UNC path normalization logic with libuv (#306)
sapphi-red Nov 13, 2024
004a599
chore(deps): update rust crates to v1.0.215
renovate[bot] Nov 17, 2024
cf3fa6a
chore(deps): update pnpm to v9.13.2
renovate[bot] Nov 17, 2024
57fcd6e
chore(deps): update codecov/codecov-action action to v5
renovate[bot] Nov 17, 2024
b7f78c3
fix: don't panic when resolving `/` with `roots` (#310)
sapphi-red Nov 18, 2024
1419af5
chore: remove `.pnp.cjs` (#311)
sapphi-red Nov 19, 2024
2070b35
feat: add `Resolver::resolve_tsconfig` API (#312)
Boshen Nov 20, 2024
c913333
chore: release v2.1.0 (#304)
Boshen Nov 20, 2024
be378d8
chore: replace `bacon` with `watchexec`
Boshen Nov 21, 2024
417f534
docs: mention extension must start with a `.` in `with_extension` (#313)
NicholasLYang Nov 22, 2024
cb2a016
test: fix warning on windows
Boshen Nov 22, 2024
6d9e761
ci: add `RUSTFLAGS: "-C debuginfo=1 -C strip=none"` to benchmark build
Boshen Nov 22, 2024
8ab444b
chore: add more data to benchmark
Boshen Nov 22, 2024
703c84b
perf: reduce memory allocation by using a thread_local path for path …
Boshen Nov 22, 2024
6e45c48
chore: remove the deprecated simdutf8 aarch64_neon feature
Boshen Nov 22, 2024
08a19d7
perf: use `path.as_os_str().hash()` instead of `path.hash()` (#316)
Boshen Nov 22, 2024
d5b88b3
perf: reduce memory allocation while resolving package.json (#317)
Boshen Nov 22, 2024
e903e4e
perf: reduce memory allocation while normalizing package path (#318)
Boshen Nov 22, 2024
47fcbae
perf: reduce hash while resolving package.json (#319)
Boshen Nov 22, 2024
ed66360
chore: release v2.1.1 (#314)
Boshen Nov 22, 2024
5bb82c8
chore: update README logo
Boshen Nov 22, 2024
290c972
chore(deps): update npm packages
renovate[bot] Nov 24, 2024
6b7c4a6
chore(deps): update crate-ci/typos action to v1.28.0
renovate[bot] Nov 25, 2024
fe70f41
chore(deps): update crate-ci/typos action to v1.28.1
renovate[bot] Nov 26, 2024
600d89b
chore(deps): update dependency rust to v1.83.0 (#324)
renovate[bot] Nov 28, 2024
a71d5ee
chore(deps): update npm packages
renovate[bot] Dec 1, 2024
5651bc3
chore(deps): update rust crates
renovate[bot] Dec 1, 2024
84847eb
chore(deps): update crate-ci/typos action to v1.28.2
renovate[bot] Dec 2, 2024
45a60cf
ci: separate deny.yml
Boshen Dec 5, 2024
669345d
chore(deny.yml): allow `Unicode-3.0` license
Boshen Dec 5, 2024
3560c80
deps: update dependencies
Boshen Dec 5, 2024
8d6da48
ci: add autofix-ci (#325)
Boshen Dec 5, 2024
1934ae5
chore: add dprint (#326)
Boshen Dec 5, 2024
7255f9b
ci: combine test and check (#327)
Boshen Dec 5, 2024
790332c
feat: faster and stable path hash for the cache (#328)
Boshen Dec 5, 2024
8992ff9
chore: renovate ignore thiserror upgrade
Boshen Dec 5, 2024
a6bfe2a
chore: increase hash size (#329)
Boshen Dec 5, 2024
8844add
chore: remove .taplo.toml
Boshen Dec 5, 2024
b00b2b8
refactor: run clippy with `--all-targets` (#333)
Boshen Dec 11, 2024
31ff044
perf: use `as_os_str` for `Hash` and `PartialEq` operations (#338)
Boshen Dec 11, 2024
cc3b760
perf: guard `load_alias` on hot path (#339)
Boshen Dec 11, 2024
17441f8
feat!: replace `FileSystem::canonicalize` with `FileSystem::read_link…
Boshen Dec 11, 2024
6d04c06
ci: improvement permissions
Boshen Dec 12, 2024
ddc8407
ci: cannot set `permissions` on job step
Boshen Dec 12, 2024
032f1da
chore: release v3.0.0 (#320)
Boshen Dec 12, 2024
139bd72
perf: try directory first in `node_modules` (#340)
Boshen Dec 12, 2024
f4d2fe2
deps: bump npm deps (#342)
Boshen Dec 12, 2024
474afb2
deps: bump rust crates (#343)
Boshen Dec 12, 2024
26d077e
add cliff.toml
Boshen Dec 12, 2024
3f97d25
ci: update paths
Boshen Dec 12, 2024
1a31f7d
chore(cliff.toml): add `filter_commits = true`
Boshen Dec 12, 2024
cacb336
ci: update paths in codecov.yml
Boshen Dec 12, 2024
0c794f8
chore: release v3.0.1 (#344)
oxc-bot Dec 12, 2024
df0bd1c
chore: bump dprint plugins
Boshen Dec 12, 2024
210c923
refactor: replace UnsafeCell with RefCell (#346)
sapphi-red Dec 13, 2024
0a4bf3c
fix: normalize resolved result on Windows for root (#345)
sapphi-red Dec 13, 2024
2a8d7f5
fix: special case for aliasing `@/` (#348)
Boshen Dec 13, 2024
e1b0118
chore: release v3.0.2 (#347)
oxc-bot Dec 13, 2024
5ede59d
fix: try browsers field and alias before resolving directory in node_…
Boshen Dec 14, 2024
fede8dc
chore: release v3.0.3 (#350)
oxc-bot Dec 14, 2024
369e4ab
chore(renovate): pinGitHubActionDigests
Boshen Dec 14, 2024
40a88bf
ci: add zizmor
Boshen Dec 14, 2024
2378375
chore(deps): pin dependencies (#352)
Boshen Dec 14, 2024
29807ba
chore(deps): update dependency rust to v1.84.0 (#354)
renovate[bot] Jan 10, 2025
2bc5173
feat!: generic fs cache `type Resolver = ResolverGeneric<FsCache<File…
arendjr Jan 16, 2025
2098f8a
perf: use papaya instead of dashmap (#356)
arendjr Jan 18, 2025
7777d62
Manifest traits (#360)
arendjr Jan 20, 2025
1642bb9
chore: release v4.0.0 (#357)
oxc-bot Jan 20, 2025
b8142d0
chore(deps): update dependency rust to v1.84.1 (#361)
renovate[bot] Jan 31, 2025
bd42579
chore(deps): update pnpm to v10 (#363)
renovate[bot] Feb 10, 2025
a48ffb0
chore(deps): update github-actions (#364)
renovate[bot] Feb 10, 2025
9c005e1
chore(deps): update rust crates (#362)
renovate[bot] Feb 10, 2025
3cdaaae
chore(deps): update crate-ci/typos action to v1.29.5 (#366)
Boshen Feb 10, 2025
7b36cc1
chore(deps): update npm packages (#367)
Boshen Feb 10, 2025
c291984
chore(README): clarify Rust and node.js usages
Boshen Feb 10, 2025
6aac961
chore: node v22.13.1 (#368)
Boshen Feb 10, 2025
43c766b
ci: fix zizmor security warnings (#370)
Boshen Feb 10, 2025
e652d76
ci: update bump package.json in release-plz.yml
Boshen Feb 10, 2025
fb1ae8e
ci: fix zizmor template-injection warning (#373)
Boshen Feb 10, 2025
12cbf0d
ci: fix release-plz
Boshen Feb 10, 2025
f7a3773
chore: release v4.0.1 (#372)
oxc-bot Feb 10, 2025
f71eacf
chore: renovate pinGitHubActionDigestsToSemver
Boshen Feb 14, 2025
e7b9d07
chore(deps): update github-actions (#377)
Boshen Feb 14, 2025
7ecc78c
ci: use taiki-e/checkout-action
Boshen Feb 14, 2025
60a3f6a
ci: persist-credentials: false
Boshen Feb 14, 2025
d0a3091
chore(deps): update crate-ci/typos action to v1.29.7 (#378)
Boshen Feb 14, 2025
06e2113
feat: add more fields in tsconfig#CompilerOptionsSerde (#374)
IWANABETHATGUY Feb 14, 2025
753a47b
ci: fix release-plz permission
Boshen Feb 14, 2025
f65006a
feat: expose `package_json_path` (#376)
sxzz Feb 14, 2025
7718993
feat: merge options from extends tsconfig.json (#375)
IWANABETHATGUY Feb 14, 2025
c0544e2
ci: use oxc-project/setup-rust
Boshen Feb 14, 2025
3896f82
refactor: vitest (#380)
Boshen Feb 14, 2025
92e6fa3
fix: fix bench
Boshen Feb 14, 2025
1b0b122
chore: release v4.1.0 (#379)
oxc-bot Feb 14, 2025
c066625
chore: bump node; fix corepack (#382)
Boshen Feb 14, 2025
158c72f
ci: fix release-napi
Boshen Feb 14, 2025
6072aa1
chore(deps): update taiki-e/install-action action to v2.48.13 (#383)
renovate[bot] Feb 17, 2025
fe08d54
chore(deps): update taiki-e/install-action action to v2.48.14 (#384)
renovate[bot] Feb 18, 2025
25dff3b
chore(deps): update github-actions (#387)
renovate[bot] Feb 18, 2025
cd992bf
feat: support wildcard `*` in alias plugin (#388)
Boshen Feb 19, 2025
e57a381
chore(deps): lock file maintenance rust crates (#390)
Boshen Feb 19, 2025
f435064
chore(deps): lock file maintenance npm packages (#391)
Boshen Feb 19, 2025
40e4441
chore(deps): lock file maintenance rust crates (#392)
renovate[bot] Feb 19, 2025
4ff74cc
chore: release v4.2.0 (#389)
oxc-bot Feb 19, 2025
67bbcd0
refactor: remove papaya `.collector(seize::Collector::new())` call (#…
Boshen Feb 19, 2025
f2d468b
chore(deps): update crate-ci/typos action to v1.29.9 (#397)
renovate[bot] Feb 21, 2025
f4a3c43
ci: combine lint jobs
Boshen Feb 23, 2025
eae2fef
ci: remove `renovate/**` from push trigger
Boshen Feb 23, 2025
dccb1cb
chore(deps): update github-actions (#399)
renovate[bot] Feb 23, 2025
5a3eac7
chore(deps): update dependency rust to v1.85.0 (#398)
renovate[bot] Feb 24, 2025
d53043e
chore: bump napi for fix in Rust v1.85.0 (#403)
Boshen Feb 24, 2025
f6f8688
chore(deps): update crate-ci/typos action to v1.29.10 (#405)
renovate[bot] Feb 26, 2025
91b0595
chore: bump napi (#404)
Boshen Feb 26, 2025
6cbec4c
chore(deps): update taiki-e/install-action action to v2.49.1 (#401)
renovate[bot] Mar 1, 2025
eb47b26
chore(deps): update crate-ci/typos action to v1.30.0 (#407)
renovate[bot] Mar 1, 2025
13f689c
fix: segfault when running napi-rs inside a Node.js worder thread und…
Boshen Mar 2, 2025
6159a97
chore(deps): update github-actions (#408)
renovate[bot] Mar 2, 2025
6fc9c6b
chore(deps): lock file maintenance (#409)
renovate[bot] Mar 2, 2025
4cd3c85
chore(deps): update crate-ci/typos action to v1.30.1 (#410)
renovate[bot] Mar 4, 2025
598b44c
feat: deserialize `verbatim_module_syntax` from compilerOptions (#411)
IWANABETHATGUY Mar 7, 2025
0a911dc
feat!: Rust Edition 2024 (#402)
Boshen Mar 7, 2025
fe4bb03
chore(deps): update rust crate criterion2 to v3 (#400)
renovate[bot] Mar 7, 2025
8422ff6
chore: release v5.0.0 (#406)
oxc-bot Mar 7, 2025
6a09945
chore(deps): update github-actions (#412)
renovate[bot] Mar 9, 2025
98f3e1c
chore(deps): lock file maintenance rust crates (#413)
renovate[bot] Mar 9, 2025
424d3a9
chore(deps): update taiki-e/install-action action to v2.49.18 (#414)
renovate[bot] Mar 10, 2025
c11f240
chore(deps): update crate-ci/typos action to v1.30.2 (#415)
renovate[bot] Mar 10, 2025
bb661b6
chore(deps): update github-actions (#418)
renovate[bot] Mar 16, 2025
d12e718
chore(deps): lock file maintenance npm packages (#419)
renovate[bot] Mar 16, 2025
da1bf03
chore(deps): lock file maintenance rust crates (#421)
renovate[bot] Mar 17, 2025
9dd5379
Merge branch 'main'
JounQin Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Addresses a potential segmentation fault issue that occurs when
# running napi-rs within a Node.js worker thread on GNU/Linux systems.
# See https://x.com/Brooooook_lyn/status/1895848334692401270
[target.'cfg(target_env = "gnu")']
rustflags = ["-C", "link-args=-Wl,-z,nodelete"]
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root=true

[*]
indent_style=space
indent_size=2
tab_width=2
end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
insert_final_newline=true
25 changes: 12 additions & 13 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -105,7 +105,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand All @@ -117,8 +117,7 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

Expand Down
17 changes: 3 additions & 14 deletions .github/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,15 @@ runs:
node-version-file: .node-version
cache: pnpm

- name: Enable corepack
if: ${{ inputs.node-version != '16' }}
- name: pnpm
shell: bash
run: |
if [[ "${{runner.os}}" == "Windows" ]]; then
# add the npm prefix to PATH to ensure the installed corepack work properly
NPM_PREFIX=$(cygpath -u "$(npm config get prefix)")
export PATH="$NPM_PREFIX:$PATH"
fi
npm install -g [email protected] --force
echo "Corepack version: $(corepack --version)"
corepack enable
pnpm install

- name: yarn
shell: bash
run: |
cd fixtures/pnp
corepack enable
yarn install

- name: pnpm
shell: bash
run: |
pnpm install
44 changes: 44 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".

on:
pull_request:
types:
- opened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1

- uses: oxc-project/[email protected]
with:
restore-cache: false
tools: just,cargo-shear@1,dprint
components: rustfmt

- name: Restore dprint plugin cache
id: cache-restore
uses: actions/cache/restore@v4
with:
key: dprint-autofix-ci-${{ runner.os }}-${{ hashFiles('dprint.json') }}
path: ~/.cache/dprint

- run: just fmt

- uses: autofix-ci/action@v1
with:
fail-fast: false

- name: Save dprint plugin cache
if: ${{ github.ref_name == 'main' }}
id: cache-save
uses: actions/cache/save@v4
with:
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
path: ~/.cache/dprint
29 changes: 17 additions & 12 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ name: Benchmark
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths-ignore:
- '**/*.md'
types:
- opened
- synchronize
paths:
- "src/*.rs"
- "Cargo.lock"
push:
branches:
- main
paths-ignore:
- '**/*.md'
paths:
- "src/*.rs"
- "Cargo.lock"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -21,20 +25,21 @@ jobs:
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: taiki-e/checkout-action@v1
- uses: taiki-e/checkout-action@v1

- uses: Boshen/[email protected]
- uses: oxc-project/[email protected]
with:
cache-key: benchmark
save-cache: ${{ github.ref_name == 'main' }}
tools: cargo-codspeed

- uses: ./.github/actions/pnpm
- name: Build Benchmark
run: cargo codspeed build --features codspeed

- name: Run benchmark
uses: CodSpeedHQ/action@v3
- run: cargo codspeed build --features codspeed
env:
RUSTFLAGS: "-C debuginfo=1 -C strip=none"

- uses: CodSpeedHQ/action@v3
timeout-minutes: 30
with:
run: cargo codspeed run
Expand Down
Loading
Loading