Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: merge turbopack crates into next.js #68127

Merged
merged 2,263 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2263 commits
Select commit Hold shift + click to select a range
af79e7b
fix(image): fix build errors for the features (vercel/turbo#7710)
kwonoj Mar 12, 2024
9267569
allow to use full urls in browser runtime (vercel/turbo#7712)
sokra Mar 12, 2024
4e28d7f
accept css files outside of the project as virtual assets (vercel/tur…
sokra Mar 13, 2024
42f0bfa
more efficient node.js process startup (vercel/turbo#7661)
sokra Mar 13, 2024
30dbd61
generate correct async module handling for side effects optimization …
sokra Mar 13, 2024
f7cf6f7
fix(turbopack): Fix CSS Modules class name for lightningcss mode (ver…
kdy1 Mar 13, 2024
f8d3036
Add distinction between Development and Production runtime_type for T…
timneutkens Mar 13, 2024
722b879
feat(node): augment webpack loader's logger context (vercel/turbo#7726)
kwonoj Mar 13, 2024
bdd58b8
fix(css): Do not resolve `url`s in supports query (vercel/turbo#7730)
kdy1 Mar 14, 2024
d9a5a70
Turbopack HMR: Add hook for failed updates and log them more clearly …
wbinnssmith Mar 14, 2024
793f355
Turbopack HMR: reload on any failed HMR update (vercel/turbo#7744)
wbinnssmith Mar 15, 2024
3ddb391
make follow reexports more efficient (vercel/turbo#7741)
sokra Mar 18, 2024
5e02af2
fix(mdx): allow failsafe analyze for mdxasset (vercel/turbo#7757)
kwonoj Mar 18, 2024
ec4fec7
avoid panic (vercel/turbo#7762)
sokra Mar 19, 2024
5e4156b
fix ASSET_PREFIX (vercel/turbo#7750)
sokra Mar 19, 2024
56d5765
process source maps from webpack loaders (vercel/turbo#7761)
sokra Mar 19, 2024
d391ead
remove nested source map comment (vercel/turbo#7773)
sokra Mar 20, 2024
d634976
add cut off depth to avoid stack overflow for infinite recursion in t…
sokra Mar 20, 2024
43af5ee
fallback to normal resolving if alias doesn't resolve (vercel/turbo#7…
sokra Mar 20, 2024
6105ced
Turbopack: Emit an issue on unknown module types instead of falling b…
wbinnssmith Mar 21, 2024
4d1f974
fix and improve webpack logger implementation (vercel/turbo#7800)
sokra Mar 21, 2024
4c0b129
fix alias in getResolve (vercel/turbo#7815)
sokra Mar 22, 2024
6e49ae8
Update `swc_core` to `v0.90.24` (vercel/turbo#7796)
kdy1 Mar 22, 2024
0108d33
fix single css chunks with import context (vercel/turbo#7775)
sokra Mar 22, 2024
db67b05
change port of trace-server (vercel/turbo#7776)
sokra Mar 22, 2024
750bb77
Tracing improvements (vercel/turbo#7763)
sokra Mar 22, 2024
639e6c6
fix webpack loader incorrectly calling custom_evaluate (vercel/turbo#…
sokra Mar 22, 2024
37127ce
fix some small bugs in turbo-tasks that are required for GC (vercel/t…
sokra Mar 22, 2024
539ff2c
fix(sourcemap): update sourcemap, remove checker (vercel/turbo#7823)
kwonoj Mar 24, 2024
4cf608c
fix externals in side-effect optimized modules (vercel/turbo#7797)
sokra Mar 25, 2024
89eeaf7
Avoid showing import map description in resolving issue when there is…
sokra Mar 25, 2024
6eb7143
add next.js trace format (vercel/turbo#7833)
sokra Mar 25, 2024
f00d479
correct global start by first start time (vercel/turbo#7835)
sokra Mar 25, 2024
24c6845
Turbo tasks: Reuse aggregation context and apply queued updates (verc…
wbinnssmith Mar 26, 2024
7f16d64
add concurrency corrected duration (vercel/turbo#7840)
sokra Mar 27, 2024
f664c5f
fix size_hint on count hash set (vercel/turbo#7854)
sokra Mar 27, 2024
e23eb84
feat(turbopack): Support marking packages as side-effect-free (vercel…
kdy1 Mar 28, 2024
859ec70
fix panic in subtract (vercel/turbo#7859)
sokra Mar 28, 2024
9e6348a
Revert "feat(turbopack): Support marking packages as side-effect-free…
wbinnssmith Mar 28, 2024
6e3b082
feat(turbopack): Support marking packages as side-efffect-free (verce…
kdy1 Mar 29, 2024
1a87eb3
add heaptrack trace format (vercel/turbo#7849)
sokra Mar 30, 2024
f16cb07
chore: Bump nightly version (vercel/turbo#7874)
NicholasLYang Apr 4, 2024
2a4e415
fix edge condition in environment (vercel/turbo#7912)
sokra Apr 8, 2024
83ac5e0
feat(turbopack): Handle fragment in requests (vercel/turbo#7771)
kdy1 Apr 9, 2024
17a8af2
feat: support interop for namespace importing cjs function exports (v…
ForsakenHarmony Apr 9, 2024
0d1ba8a
Revert "feat(turbopack): Handle fragment in requests" (vercel/turbo#7…
kdy1 Apr 9, 2024
cb457fc
chore: add parallel rust frontend and remove unused rust dependencies…
ForsakenHarmony Apr 9, 2024
8d1ea9e
remove warning when there is no PostCSS config (vercel/turbo#7920)
sokra Apr 10, 2024
889f52a
build: Update `swc_core` to `v0.90.29` (vercel/turbo#7856)
kdy1 Apr 10, 2024
073b2d6
Revert "build: Update `swc_core` to `v0.90.30`" (vercel/turbo#7938)
sokra Apr 11, 2024
f2ed753
Revert "Revert "build: Update `swc_core` to `v0.90.30`"" (vercel/turb…
sokra Apr 11, 2024
8c1451d
fix recursion cycle when having a cycle of dynamic imports (vercel/tu…
sokra Apr 11, 2024
e10b164
fix HMR by removing chunks from chunk list hash (vercel/turbo#7943)
sokra Apr 11, 2024
87e3064
Revert "fix HMR by removing chunks from chunk list hash" (vercel/turb…
sokra Apr 11, 2024
f9e52e2
feat(turbopack-ecmascript): cache external modules with wrapper (verc…
ForsakenHarmony Apr 11, 2024
d2421b5
refactor GlobalCssAsset to fix dynamic import of css (vercel/turbo#7858)
sokra Apr 12, 2024
c0fc5a9
fix panic when searching an the root span (vercel/turbo#7936)
sokra Apr 15, 2024
8767ea0
fix missing async loader (vercel/turbo#7959)
sokra Apr 15, 2024
084cfe5
fix external module (vercel/turbo#7961)
sokra Apr 15, 2024
a9a28de
fix(turbopack-ecmascript): use direct namespace re-export (vercel/tur…
ForsakenHarmony Apr 15, 2024
a188c77
Revert "feat(turbopack-ecmascript): cache external modules with wrap…
ForsakenHarmony Apr 15, 2024
c97ef5f
fix HMR for cases where chunking changes (vercel/turbo#7947)
sokra Apr 16, 2024
7a8e7c9
fix(turbopack-node) postcss.config.js path resolution on Windows (ver…
bgw Apr 17, 2024
8d6c9bf
Drop excessive cells after task reexecution (vercel/turbo#7765)
sokra Apr 17, 2024
b684929
feat(mdx): support custom parse construct options (vercel/turbo#8005)
kwonoj Apr 19, 2024
dffc6f3
Revert "feat(mdx): support custom parse construct options" (vercel/tu…
kwonoj Apr 19, 2024
80ad27b
allow to give a chunking context a name (vercel/turbo#7930)
sokra Apr 22, 2024
db0e7fe
Rename Turbopack JS runtime generation (vercel/turbo#7721)
timneutkens Apr 22, 2024
d9fce10
fix: Fix source map produced by `lightningcss` (vercel/turbo#7977)
kdy1 Apr 22, 2024
880c11a
Trace server: add support for gz files (vercel/turbo#8013)
sokra Apr 22, 2024
82c063b
Revert "Drop excessive cells after task reexecution" (vercel/turbo#8018)
kwonoj Apr 22, 2024
62a5e5b
feat(mdx): support custom parse construct options (vercel/turbo#8009)
kwonoj Apr 22, 2024
8adbcc8
feat(turbopack): Handle fragment in requests (vercel/turbo#7935)
kdy1 Apr 23, 2024
a60d4ad
Turbopack Tracing: show memory consumption (vercel/turbo#8020)
sokra Apr 23, 2024
a3fb685
Remove `can_be_in_same_chunk` (vercel/turbo#8029)
wbinnssmith Apr 24, 2024
a0286f0
chore: remove repetitive words (vercel/turbo#8032)
hardlydearly Apr 24, 2024
0a15879
rename source map prefix (vercel/turbo#8034)
sokra Apr 30, 2024
f784808
feat(webpack-loaders): support dummy span interface (vercel/turbo#8073)
kwonoj May 3, 2024
3c2fe85
fix(webpack): print resource, project path when relative calc fails (…
kwonoj May 3, 2024
f6482e0
Implement bindings for Turbopack trace server (vercel/turbo#8094)
timneutkens May 6, 2024
8c0a57e
reduce memory usage in analyser (vercel/turbo#8061)
sokra May 7, 2024
1ae8d20
make sure to include our github token for setup scripts (vercel/turbo…
arlyon May 7, 2024
dd1a09c
fix memory counting without custom allocator (vercel/turbo#8102)
sokra May 7, 2024
91c407c
turbo-tasks: Expand `<T as TaskOutput>::Return` values in macros (ver…
bgw May 7, 2024
24ad810
turbopack-node: Use path.join for postcss loader (vercel/turbo#8105)
bgw May 8, 2024
b4d2c62
Replace websocket with tungstenite for turbo-trace-server (vercel/tur…
timneutkens May 8, 2024
6df3088
feat: Add lint for `grid-template-areas` (vercel/turbo#8060)
kdy1 May 8, 2024
253822f
Graph aggregation refactoring (vercel/turbo#8082)
sokra May 8, 2024
9423ded
Update RawOutput API (vercel/turbo#8075)
bgw May 8, 2024
50ef0ff
#[turbo_tasks::value(transparent)]: Generate docs & fail on invalid c…
bgw May 8, 2024
c64b74e
Remove websocket dependency in turbo-trace-server (vercel/turbo#8118)
timneutkens May 9, 2024
7a85430
Turbopack: `EcmascriptChunkItemContent`: add react refresh parameter …
wbinnssmith May 15, 2024
c3b2ffd
change ids from usize to u32 (vercel/turbo#8111)
sokra May 15, 2024
609181e
feat(turbopack-ecmascript): use import attributes for annotations (ve…
ForsakenHarmony May 16, 2024
a6b6f0c
fix off-by-one bug while reading heaptrack files (vercel/turbo#8101)
sokra May 16, 2024
a31540b
refactor memory tracking (vercel/turbo#8130)
sokra May 16, 2024
323cdb8
trace-server: performance improvement (vercel/turbo#8147)
sokra May 17, 2024
72ba0fc
improve performance test case (vercel/turbo#8169)
sokra May 17, 2024
5e245af
Improve Garbage Collection (vercel/turbo#8154)
sokra May 17, 2024
10b3b20
Trace Server add focus mode (vercel/turbo#8153)
sokra May 17, 2024
c8d9c99
improve aggregation tree tracing, remove verbose tracing (vercel/turb…
sokra May 17, 2024
5d3f8e8
Turbopack: Add `BeforeResolve` plugin type (vercel/turbo#8165)
wbinnssmith May 20, 2024
27f6255
fix rustc bug in turbopack-trace-server (vercel/turbo#8158)
arlyon May 21, 2024
3c7fb4e
Upgrade lightningcss, disable grid scoping (vercel/turbo#8176)
timneutkens May 21, 2024
e58b93f
[turbo-trace] add additional filter modes for allocs over time (verce…
arlyon May 22, 2024
2b30c17
Turbopack: Register react refresh exports in module factory (vercel/t…
wbinnssmith May 22, 2024
283fe8a
feat: Remove lint for `grid-template-areas`" (vercel/turbo#8195)
kdy1 May 23, 2024
a25cd17
chore: Remove unused `base16` dependency and dead `hex` wrapper funct…
bgw May 24, 2024
759ef9c
Add option for inlining typeof window (vercel/turbo#8211)
timneutkens May 25, 2024
a32f556
Revert "Turbopack: Register react refresh exports in module factory (…
wbinnssmith May 26, 2024
8f1d0bd
fix(turbopack): Fix edge cases of tree shaking (vercel/turbo#7986)
kdy1 May 28, 2024
0da446b
Turbopack HMR: Avoid infinite loops caused by cycles between modules …
wbinnssmith May 28, 2024
d5edee5
Reapply "Turbopack: Register react refresh exports in module factory …
wbinnssmith May 29, 2024
a3c8d15
chore: update rust version (vercel/turbo#8256)
NicholasLYang Jun 1, 2024
0d6a13d
add crate to calculate prehashes (vercel/turbo#8262)
arlyon Jun 3, 2024
7074834
use prehash to avoid rehashing the key in the task cache (vercel/turb…
sokra Jun 3, 2024
0d4c188
[turbo trace] add ability to filter by value and occurences (vercel/t…
arlyon Jun 4, 2024
507d99c
create turbo-static for compile time graph analysis (vercel/turbo#8037)
arlyon Jun 4, 2024
f48d245
Reduce amount of code generated by ValueDebugFormat (vercel/turbo#8239)
bgw Jun 4, 2024
22be4c5
Minor optimizations to the codegen of TaskFnInputFunction (vercel/tur…
bgw Jun 5, 2024
09cfe11
perf: Introduce `RcStr` (vercel/turbo#8221)
kdy1 Jun 5, 2024
4ea14e5
Postcss: fix failures processing .postcssrc.json (vercel/turbo#8303)
wbinnssmith Jun 5, 2024
7d9da55
add client disallowed transform (vercel/turbo#8336)
sokra Jun 5, 2024
07a6969
add more tracing to transforms and parsing (vercel/turbo#8346)
sokra Jun 6, 2024
393d5cc
improve borrow_mut (vercel/turbo#8344)
sokra Jun 6, 2024
b78120b
Small tree shaking fix and test case update (vercel/turbo#8347)
sokra Jun 7, 2024
0b3ae55
fix: Apply `paren-remover` while minifying (vercel/turbo#8348)
kdy1 Jun 7, 2024
24d356e
Rename ChunkLoading::None to ChunkLoading::Edge (vercel/turbo#8376)
timneutkens Jun 7, 2024
d37cabb
test: Add an execution test for `paren_remover` (vercel/turbo#8371)
kdy1 Jun 7, 2024
c18ca58
Tree Shaking shared state and side effects (vercel/turbo#8370)
sokra Jun 10, 2024
5cd5c66
feat(turbopack-ecmascript): cache external modules with wrapper (verc…
ForsakenHarmony Jun 10, 2024
7fd6691
fix panic in debug mode (vercel/turbo#8324)
sokra Jun 11, 2024
510dfe3
fix counting of reallocations (vercel/turbo#8422)
sokra Jun 11, 2024
6475279
Evaluation uses Node.js chunking context instead of browser one (verc…
sokra Jun 12, 2024
597847e
reduce resolve tasks for resolving (vercel/turbo#8451)
sokra Jun 12, 2024
2b7d792
BeforeResolvePluginCondition: allow module filtering as a condition f…
wbinnssmith Jun 12, 2024
ea505a4
Remove UnsupportedModule plugin (vercel/turbo#8439)
wbinnssmith Jun 12, 2024
9d2d145
fix(turbopack-ecmascript-runtime): prevent hanging when top level awa…
ForsakenHarmony Jun 12, 2024
aa7bd4c
fix(turbopack): make external module wrapper return not found instead…
ForsakenHarmony Jun 13, 2024
fe2aca7
fix(turbopack): add ecmascript options to mdx (vercel/turbo#8469)
ForsakenHarmony Jun 13, 2024
7f29d53
feat: Reduce the number of parts created by tree shaking (vercel/turb…
kdy1 Jun 13, 2024
2decc63
Publish `@vercel/devlow-bench` (vercel/turbo#8480)
wbinnssmith Jun 13, 2024
8ac04ed
chore: release npm packages (vercel/turbo#8481)
wbinnssmith Jun 13, 2024
7f1fa1d
Update mimalloc, enable for glibc Linux aarch64, explicitly disable f…
bgw Jun 14, 2024
39afcd9
feat: Check the number of direct dependants while tree shaking (verce…
kdy1 Jun 14, 2024
f8fe9f0
Tree Shaking grouping of items (vercel/turbo#8420)
sokra Jun 17, 2024
805361c
fix: image optimization typo (vercel/turbo#5328)
iojcde Jun 17, 2024
81ea26c
read larger chunks when reading a trace file (vercel/turbo#8510)
sokra Jun 17, 2024
2617f4c
avoid duplicates in primary_modules (vercel/turbo#8509)
sokra Jun 17, 2024
237b41b
only create spans for nodes that are actually visited (vercel/turbo#8…
sokra Jun 17, 2024
21995c5
build: Update `swc_core` to `v0.95.2` (vercel/turbo#8502)
kdy1 Jun 17, 2024
925b7e5
Fix Turbopack benchmark for next@canary (vercel/turbo#8421)
timneutkens Jun 17, 2024
ac02672
Rename dev_runtime to browser_runtime (vercel/turbo#8396)
timneutkens Jun 19, 2024
8b71d96
Rename runtime/none to runtime/edge (vercel/turbo#8397)
timneutkens Jun 19, 2024
ca97d26
Remove unused Node.js runtime (vercel/turbo#8398)
timneutkens Jun 19, 2024
76b6ce0
Rename build runtime to nodejs (vercel/turbo#8399)
timneutkens Jun 19, 2024
12eb957
Rename dev runtime to browser (vercel/turbo#8400)
timneutkens Jun 19, 2024
57e3143
Decrease default scope_stress test size, add env var config (vercel/t…
bgw Jun 20, 2024
6bb90cc
avoid cloning the source code (vercel/turbo#8556)
sokra Jun 21, 2024
027b280
HMR: handle non-Latin characters in text through base64-encoded sourc…
wbinnssmith Jun 21, 2024
daed66a
Support turbo tasks inside of `mod` blocks (vercel/turbo#8530)
bgw Jun 24, 2024
223a0d1
Handle `#[cfg(...)]` attributes on turbo tasks (vercel/turbo#8542)
bgw Jun 24, 2024
4e43405
Deduplicate persistent task get_function_name logic (vercel/turbo#8529)
bgw Jun 24, 2024
e421f18
Add new ExitHandler API as an alternative to ExitGuard (vercel/turbo#…
bgw Jun 24, 2024
823fab2
Delete unused TASK_ID_MAPPING support (vercel/turbo#8604)
bgw Jun 26, 2024
27f62c0
Remove nohash-hasher dependency (vercel/turbo#8605)
bgw Jun 26, 2024
476ed24
move stateful flag into Done state (vercel/turbo#8559)
sokra Jun 26, 2024
84e9b91
MDX support: Ensure development transform is only used in development…
timneutkens Jun 26, 2024
1b9de3b
reduce size of task output struct (vercel/turbo#8557)
sokra Jun 26, 2024
0ea73c0
remove prepared task type (vercel/turbo#8558)
sokra Jun 26, 2024
697970d
fix(turbopack): add no-op `resolveAbsolutePath` to browser runtime (v…
ForsakenHarmony Jun 26, 2024
746545f
devlow-bench: add git branch and sha to datapoints (vercel/turbo#8602)
wbinnssmith Jun 26, 2024
8d0940d
chore: release npm packages (vercel/turbo#8614)
wbinnssmith Jun 27, 2024
b7e995b
Memory: Use `triomphe::Arc` for `SharedReference` (vercel/turbo#8622)
bgw Jun 28, 2024
5a52052
Task Edges Set/List (vercel/turbo#8624)
sokra Jul 2, 2024
81be6c4
box InProgress task state (vercel/turbo#8644)
sokra Jul 2, 2024
ddabea3
Store aggregate read/execute count statistics (vercel/turbo#8286)
bgw Jul 2, 2024
39979f3
fix typo (vercel/turbo#8619)
sokra Jul 3, 2024
091a8e1
Lots of small fixes to docs in the turbo-tasks crate (vercel/turbo#8651)
bgw Jul 3, 2024
7200f56
Move the typecast out of ReadRawVcFuture and into a new wrapper type …
bgw Jul 3, 2024
63f815b
fix dirty task counting (vercel/turbo#8648)
sokra Jul 3, 2024
a7624fc
Turbopack + Relay: correctly implement artifact_directory to fix mult…
wbinnssmith Jul 3, 2024
3ae3620
fix: Fix ECMAScript analyzer (vercel/turbo#8656)
kdy1 Jul 4, 2024
e15e9de
automatically shrink aggregation lists (vercel/turbo#8657)
sokra Jul 4, 2024
3c25ed0
Turbopack + Relay: don’t manually provide a fallback artifact_directo…
wbinnssmith Jul 4, 2024
f0710fd
Update `swc_core` to `v0.96.5` (vercel/turbo#8646)
kdy1 Jul 5, 2024
7702d30
improve performance of the graph aggregation (vercel/turbo#8686)
sokra Jul 8, 2024
88b9c58
Replace `unreachable` with `bail` in `finalize_css` (vercel/turbo#8694)
bgw Jul 8, 2024
bdac720
Revert "Update `swc_core` to `v0.96.5`" (vercel/turbo#8696)
kdy1 Jul 9, 2024
18c9676
Create a minimum viable `ResolvedVc` type (vercel/turbo#8661)
bgw Jul 9, 2024
98b53bb
Add a minimum viable ResolvedValue marker trait (vercel/turbo#8662)
bgw Jul 9, 2024
4af5f03
Add derive macro for ResolvedValue (vercel/turbo#8678)
bgw Jul 9, 2024
00bfd26
Switch RcStr from std::sync::Arc to triomphe::Arc (vercel/turbo#8715)
bgw Jul 11, 2024
feece3d
perf: Merge multiple `EsmBinding` (vercel/turbo#8699)
kdy1 Jul 11, 2024
32646ba
Add support for `#[turbo_tasks::value(resolved)]` and `#[turbo_tasks:…
bgw Jul 11, 2024
e821515
build: Update `swc_core` to `v0.96.9` (vercel/turbo#8706)
kdy1 Jul 12, 2024
feb65c1
Replace chalk by picocolors (vercel/turbo#8390)
torresgol10 Jul 12, 2024
f65ad46
fix equal checks for cells and output (vercel/turbo#8721)
sokra Jul 15, 2024
6a83aa9
add unloading of tasks to GC (vercel/turbo#8671)
sokra Jul 15, 2024
063619e
fix unloading stateful check (vercel/turbo#8749)
sokra Jul 15, 2024
dd40a2c
feat: Enable tree shaking in next.js (vercel/turbo#8523)
kdy1 Jul 15, 2024
76cfaed
Revert "feat: Enable tree shaking in next.js" (vercel/turbo#8752)
kdy1 Jul 15, 2024
07d77f2
Use fs and vm for async chunk loading in Node (vercel/turbo#8722)
mischnic Jul 16, 2024
968009f
Remove unused instant return value from `CaptureFuture` (vercel/turbo…
bgw Jul 16, 2024
0288a37
Delete dead raw_vc_set module (vercel/turbo#8760)
bgw Jul 16, 2024
fb97c77
Delete dead keyed_cell module (vercel/turbo#8761)
bgw Jul 16, 2024
34dbcfc
feat: Enable tree shaking in next.js (vercel/turbo#8755)
kdy1 Jul 17, 2024
584e211
Rewrite IdFactory and IdFactoryWithReuse (vercel/turbo#8769)
bgw Jul 17, 2024
feac4db
Add u64 ExecutionId type (vercel/turbo#8771)
bgw Jul 17, 2024
cce7d1a
turbo-tasks this calls (vercel/turbo#8735)
sokra Jul 17, 2024
cd4f332
improve failsafe_analyse (vercel/turbo#8775)
sokra Jul 17, 2024
0339244
notify tasks when collectibles change (vercel/turbo#8776)
sokra Jul 17, 2024
cf49da0
fix collectibles counting (vercel/turbo#8778)
sokra Jul 17, 2024
fc3d226
Refactor task arguments to be a single one (vercel/turbo#8736)
sokra Jul 17, 2024
ba42b9b
remove ConcreteTaskInput in favor of the original rust datatypes (ver…
sokra Jul 18, 2024
52fa282
Revert "feat: Enable tree shaking in next.js" (vercel/turbo#8782)
sokra Jul 18, 2024
5bea3e4
merge InProgressDirty into InProgress (vercel/turbo#8777)
sokra Jul 18, 2024
3ba9a0f
fix watcher bug with file creation (vercel/turbo#8785)
sokra Jul 19, 2024
46844f9
get rid of notify-debouncer in favor of our own debouncing (vercel/tu…
sokra Jul 22, 2024
42a68f3
impl Ord for Diagnostics and Issue so they are sorted correctly (verc…
sokra Jul 22, 2024
93cd796
Simplify some of the syntax used with VcRead<T> (vercel/turbo#8812)
bgw Jul 23, 2024
8bd0e11
feat(turbopack): support analysing string concatenation (vercel/turbo…
ForsakenHarmony Jul 24, 2024
a05c355
change from failsafe_analyse to failsafe_parse (vercel/turbo#8828)
sokra Jul 24, 2024
38a88ff
make sure that all the taiki-e/install-action calls use our env (verc…
arlyon Jul 24, 2024
43c8422
Refactor cell reading to handle removed cells (vercel/turbo#8819)
sokra Jul 24, 2024
1c5f7af
add tags to turbo tasks (vercel/turbo#8038)
arlyon Jul 24, 2024
c8d2bc5
box Scheduled task state to save memory (vercel/turbo#8807)
sokra Jul 24, 2024
59b7e3a
Drop excessive cells after task reexecution (vercel/turbo#8170)
sokra Jul 24, 2024
4cc0ef2
reduce memory and consolidate shared vs transient cells (vercel/turbo…
arlyon Jul 25, 2024
1c04b10
avoid implementing Eq on Completion (vercel/turbo#8818)
sokra Jul 25, 2024
b6c91c4
feat: Improve tree shaking (vercel/turbo#8781)
kdy1 Jul 25, 2024
5b63ef7
GC auto increase memory limit on inefficient GC (vercel/turbo#8687)
sokra Jul 25, 2024
bd32157
Reduce macro usage in turbo-tasks-testing (vercel/turbo#8832)
bgw Jul 25, 2024
4949b61
fix: Use `hygiene_with_config` instead of `hygiene` (vercel/turbo#8848)
sokra Jul 29, 2024
484f244
Support monorepo package self-references (vercel/turbo#8820)
mischnic Jul 29, 2024
3793f6a
allow to resolve symlinks on DirectoryEntry (vercel/turbo#8851)
sokra Jul 29, 2024
0365d92
fix symlinks and dotfiles while reading glob (vercel/turbo#8865)
sokra Jul 29, 2024
21fe711
Support `module_resolution: "nodenext"` (vercel/turbo#8748)
mischnic Jul 29, 2024
c5f2021
Add/move tests for Vc generics (vercel/turbo#8843)
bgw Jul 29, 2024
ee57264
Fix `ReadRef<T>::cell` when `T` != `T::Read::Repr` (vercel/turbo#8845)
bgw Jul 29, 2024
72f4094
fix: Fix tree shaking even more (vercel/turbo#8864)
kdy1 Jul 30, 2024
ac39709
improve test glob to exclude output folder (vercel/turbo#8875)
sokra Jul 30, 2024
b2fd89c
only add import references when they are used (vercel/turbo#8874)
sokra Jul 30, 2024
503d048
Replace MDX ModuleType with MDX SourceTransform (vercel/turbo#8766)
mischnic Jul 30, 2024
0879251
Make JS Lints have lower severity (vercel/turbo#8837)
mischnic Jul 31, 2024
134a9c0
Convert MDX errors into issues (vercel/turbo#8879)
mischnic Jul 31, 2024
6947e3e
smarter logical combination that keeps truthy/falsy/nullish property …
sokra Jul 31, 2024
fb033c4
Skip unreachable code when early return can be statically analysed (v…
sokra Aug 1, 2024
becc655
Add 'turbopack/' from commit 'fb033c4917bb1bb98b238f1b4c7a928b66a90887'
ForsakenHarmony Aug 1, 2024
7c3b279
chore: fix references for the new turbopack crates (#68128)
ForsakenHarmony Aug 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[env]
CARGO_WORKSPACE_DIR = { value = "", relative = true }
TURBO_PNPM_WORKSPACE_DIR = { value = "", relative = true }

[build]
rustflags = [
Expand Down
42 changes: 42 additions & 0 deletions .config/ast-grep/rule-tests/__snapshots__/no-context-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
id: no-context
snapshots:
'fn foo(context: ChunkingContext) -> u32 { 5 };':
labels:
- source: context
style: primary
start: 7
end: 14
- source: 'context: ChunkingContext'
style: secondary
start: 7
end: 31
foo(|context| context):
labels:
- source: context
style: primary
start: 5
end: 12
- source: '|context|'
style: secondary
start: 4
end: 13
let context = ChunkingContext::new();:
labels:
- source: context
style: primary
start: 4
end: 11
- source: let context = ChunkingContext::new();
style: secondary
start: 0
end: 37
'struct Foo { context: Context };':
labels:
- source: context
style: primary
start: 13
end: 20
- source: 'context: Context'
style: secondary
start: 13
end: 29
11 changes: 11 additions & 0 deletions .config/ast-grep/rule-tests/no-context-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: no-context
valid:
- 'let chunking_context = ChunkingContext::new();'
- 'struct Foo { chunking_context: Context };'
- 'foo(|chunking_context| context)'
- 'fn foo(chunking_context: ChunkingContext) -> u32 { 5 };'
invalid:
- 'let context = ChunkingContext::new();'
- 'struct Foo { context: Context };'
- 'foo(|context| context)'
- 'fn foo(context: ChunkingContext) -> u32 { 5 };'
Empty file.
35 changes: 35 additions & 0 deletions .config/ast-grep/rules/no-context.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
id: no-context
message: Don't name variables `context`.
note: Use a more specific name, such as chunking_context, asset_context, etc.
severity: error
language: Rust
rule:
regex: \bcontext\b
any:
- all:
- inside:
any:
- kind: closure_parameters
- kind: parameter
- kind: function_item
- kind: let_declaration
- kind: identifier
- all:
- kind: field_identifier
- inside:
kind: field_declaration
ignores:
- './crates/turbopack-css/**'
- './crates/turbopack-dev-server/**'
- './crates/turbopack-browser/**'
- './crates/turbopack-ecmascript-hmr-protocol/**'
- './crates/turbopack-ecmascript-plugins/**'
- './crates/turbopack-ecmascript-runtime/**'
- './crates/turbopack-json/**'
- './crates/turbopack-mdx/**'
- './crates/turbopack-node/**'
- './crates/turbopack-static/**'
- './crates/turbopack-tests/**'
- './crates/turbopack/**'
- './crates/turborepo-cache/**'
- './crates/turborepo-scm/**'
17 changes: 17 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[profile.tp-test-linux.junit]
path = "junit.xml"
report-name = "Turbopack tests (Linux)"
store-success-output = true
store-failure-output = true

[profile.tp-test-mac.junit]
path = "junit.xml"
report-name = "Turbopack tests (Mac)"
store-success-output = true
store-failure-output = true

[profile.tp-test-win.junit]
path = "junit.xml"
report-name = "Turbopack tests (Windows)"
store-success-output = true
store-failure-output = true
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ packages/next-swc/docs/assets/**/*
test/lib/amp-validator-wasm.js
test/production/pages-dir/production/fixture/amp-validator-wasm.js
test/e2e/async-modules/amp-validator-wasm.js

# turbopack crates
turbopack/crates/*/tests/**
turbopack/crates/*/js/src/compiled
7 changes: 6 additions & 1 deletion .eslintrc.cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"files": ["**/*.ts", "**/*.tsx"],
// Linting with type-checked rules is very slow and needs a lot of memory,
// so we exclude non-essential files.
"excludedFiles": ["examples/**/*", "test/**/*", "**/*.d.ts"],
"excludedFiles": [
"examples/**/*",
"test/**/*",
"**/*.d.ts",
"turbopack/**/*"
],
"parserOptions": {
"project": true
},
Expand Down
9 changes: 7 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"commonjs": true,
"es6": true,
"node": true,
"jest": true
"jest": true,
"es2020": true
},
"parserOptions": {
"requireConfigFile": false,
Expand Down Expand Up @@ -101,7 +102,11 @@
"error",
{
"args": "none",
"ignoreRestSiblings": true
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"no-use-before-define": "off",
Expand Down
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ packages/next/compiled/** -text linguist-vendored

# Make next/src/build folder indexable for github search
build/** linguist-generated=false

turbopack/crates/turbo-tasks-macros-tests/tests/**/*.stderr linguist-generated=true
turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/**/output.md linguist-generated=true
turbopack/crates/turbopack-tests/tests/snapshot/**/output/** linguist-generated=true
10 changes: 9 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,21 @@ jobs:
uses: ./.github/workflows/build_reusable.yml
with:
needsRust: 'yes'
skipInstallBuild: 'yes'
needsNextest: 'yes'
skipNativeBuild: 'yes'
afterBuild: turbo run test-cargo-unit
mold: 'yes'
stepName: 'test-cargo-unit'
secrets: inherit

test-bench:
name: test cargo benches
needs: ['changes', 'build-next']
if: ${{ needs.changes.outputs.docs-only == 'false' }}

uses: ./.github/workflows/test-turbopack-rust-bench-test.yml
secrets: inherit

rust-check:
name: rust check
needs: ['changes', 'build-next']
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ jobs:
- run: pnpm install
if: ${{ inputs.skipInstallBuild != 'yes' }}

- name: Install node-file-trace test dependencies
if: ${{ inputs.needsNextest == 'yes' }}
working-directory: turbopack/crates/turbopack/tests/node-file-trace
run: pnpm install -r --side-effects-cache false

- run: ANALYZE=1 pnpm build
if: ${{ inputs.skipInstallBuild != 'yes' }}

Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/test-turbopack-rust-bench-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Turbopack Rust testing benchmarks
on:
workflow_call:
inputs:
runner:
type: string
default: '["self-hosted", "linux", "x64", "metal"]'
os:
type: string
default: 'linux'
all:
type: boolean
default: false

env:
TURBOPACK_BENCH_COUNTS: '100'
TURBOPACK_BENCH_PROGRESS: '1'

NODE_LTS_VERSION: 20

jobs:
test:
name: Test
runs-on: ${{ fromJSON(inputs.runner) }}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
if: inputs.os == 'windows'

- name: Checkout
uses: actions/checkout@v3

- name: Setup Rust
uses: ./.github/actions/setup-rust

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_LTS_VERSION }}
check-latest: true
- run: corepack enable

- name: Build benchmarks for tests
timeout-minutes: 120
run: |
cargo test --benches --workspace --release --no-fail-fast --exclude turbopack-bench --exclude next-swc-napi --no-run
- name: Run cargo test on benchmarks
timeout-minutes: 120
run: |
cargo test --benches --workspace --release --no-fail-fast --exclude turbopack-bench --exclude next-swc-napi
- name: Build benchmarks for tests for other bundlers
if: inputs.all
timeout-minutes: 120
run: |
cargo test --benches --release -p turbopack-bench --no-run
- name: Run cargo test on benchmarks for other bundlers
if: inputs.all
timeout-minutes: 120
run: |
cargo test --benches --release -p turbopack-bench
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,17 @@ bench/nested-deps/components/**/*
test/lib/amp-validator-wasm.js
test/production/pages-dir/production/fixture/amp-validator-wasm.js
test/e2e/async-modules/amp-validator-wasm.js

# turbopack crates
turbopack/crates/*/js/src/compiled
turbopack/crates/turbopack/bench.json
turbopack/crates/turbopack/tests
turbopack/crates/turbopack-ecmascript/tests/analyzer/graph
turbopack/crates/turbopack-ecmascript/tests/tree-shaker
turbopack/crates/next-transform-strip-page-exports/tests
turbopack/crates/next-transform-dynamic/tests
turbopack/crates/turbopack-tests/tests/execution/turbopack/basic/error/input/broken.js
turbopack/crates/turbopack-tests/tests/**/output*

# temporarily disable prettier for the turbopack directory
turbopack/
Loading
Loading