Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Apr 15, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

gaoachao and others added 4 commits April 15, 2025 09:06
<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

As one of several PRs addressing issue #304

Support cli option `--no-env` to disable loading of `.env` files

Reference links:
-
#233 (comment)
- web-infra-dev/rsbuild#4947

## Checklist

<!--- Check and mark with an "x" -->

- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).
<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

Now lynx-infra/cache would restore the **last modified** cache. This
would make it easier for hitting turbo cache.

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

## Checklist

<!--- Check and mark with an "x" -->

- [ ] Tests updated (or not required).
- [ ] Documentation updated (or not required).
<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

https://www.npmjs.com/package/typia-rspack-plugin

close: #539

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

## Checklist

<!--- Check and mark with an "x" -->

- [ ] Tests updated (or **not required**).
- [ ] Documentation updated (or **not required**).
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@rspack/cli](https://rspack.dev)
([source](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack-cli))
| [`1.3.4` ->
`1.3.5`](https://renovatebot.com/diffs/npm/@rspack%2fcli/1.3.4/1.3.5) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/@rspack%2fcli/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@rspack%2fcli/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@rspack%2fcli/1.3.4/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@rspack%2fcli/1.3.4/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@rspack/core](https://rspack.dev)
([source](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack))
| [`1.3.4` ->
`1.3.5`](https://renovatebot.com/diffs/npm/@rspack%2fcore/1.3.4/1.3.5) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/@rspack%2fcore/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@rspack%2fcore/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@rspack%2fcore/1.3.4/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@rspack%2fcore/1.3.4/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@rspack/test-tools](https://rspack.dev)
([source](https://github.com/web-infra-dev/rspack/tree/HEAD/packages/rspack-test-tools))
| [`1.3.4` ->
`1.3.5`](https://renovatebot.com/diffs/npm/@rspack%2ftest-tools/1.3.4/1.3.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@rspack%2ftest-tools/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@rspack%2ftest-tools/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@rspack%2ftest-tools/1.3.4/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@rspack%2ftest-tools/1.3.4/1.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>web-infra-dev/rspack (@&#8203;rspack/cli)</summary>

###
[`v1.3.5`](https://github.com/web-infra-dev/rspack/releases/tag/v1.3.5)

[Compare
Source](https://github.com/web-infra-dev/rspack/compare/v1.3.4...v1.3.5)

<!-- Release notes generated using configuration in .github/release.yml
at release/v1.3.5 -->

#### Rspack comes to Next.js 🎉

We’re excited to introduce
[next-rspack](https://www.npmjs.com/package/next-rspack), a
community-driven plugin bringing direct Rspack support to Next.js.

See the [Rspack joins the Next.js
ecosystem](https://rspack.dev/blog/rspack-next-partner) blog for
details.

<img
src="https://github.com/user-attachments/assets/1de66c34-bcdb-4a4f-901a-88bb7e0df8ce"
width="800" />

#### What's Changed
##### Performance Improvements ⚡
* perf: js module loaders getter by
@&#8203;SyMi[https://github.com/web-infra-dev/rspack/pull/9955](https://github.com/web-infra-dev/rspack/pull/9955)l/9955

##### Exciting New Features 🎉
* feat: adapter rspack-resolver async api by
@&#8203;stormslow[https://github.com/web-infra-dev/rspack/pull/9747](https://github.com/web-infra-dev/rspack/pull/9747)l/9747
* feat: rspack cacheable noop feature by
@&#8203;jerrykingx[https://github.com/web-infra-dev/rspack/pull/9990](https://github.com/web-infra-dev/rspack/pull/9990)l/9990
* feat: resolver restriction support regex by
@&#8203;SyMi[https://github.com/web-infra-dev/rspack/pull/9885](https://github.com/web-infra-dev/rspack/pull/9885)l/9885

##### Bug Fixes 🐞
* fix: stablelize order of concated modules by
@&#8203;JSerFe[https://github.com/web-infra-dev/rspack/pull/9968](https://github.com/web-infra-dev/rspack/pull/9968)l/9968
* fix: jsonpChunksLoadingWithCallback code format by
@&#8203;17140809021[https://github.com/web-infra-dev/rspack/pull/9923](https://github.com/web-infra-dev/rspack/pull/9923)l/9923
* fix: lightningcss loader report error by default by
@&#8203;SyMi[https://github.com/web-infra-dev/rspack/pull/9979](https://github.com/web-infra-dev/rspack/pull/9979)l/9979
* fix: external with properties array list in module format by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9980](https://github.com/web-infra-dev/rspack/pull/9980)l/9980
* fix: external module to pass webpack test cases by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9981](https://github.com/web-infra-dev/rspack/pull/9981)l/9981
* fix: hmr wasm filename by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/10010](https://github.com/web-infra-dev/rspack/pull/10010)/10010
* fix: sometimes entry chunk hash not changes with full hash runtime
modules by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9986](https://github.com/web-infra-dev/rspack/pull/9986)l/9986
* fix(wasm): align trait methods for `native_fs` by
@&#8203;CPunish[https://github.com/web-infra-dev/rspack/pull/9999](https://github.com/web-infra-dev/rspack/pull/9999)l/9999
* fix: incorrect type signatures on Hash's digest and update methods by
@&#8203;hulin[https://github.com/web-infra-dev/rspack/pull/9608](https://github.com/web-infra-dev/rspack/pull/9608)l/9608
* fix: error when load binding multiple times by
@&#8203;SyMi[https://github.com/web-infra-dev/rspack/pull/10018](https://github.com/web-infra-dev/rspack/pull/10018)/10018
* fix(incremental): dynamic add entries with infer async modules by
@&#8203;ahabh[https://github.com/web-infra-dev/rspack/pull/10019](https://github.com/web-infra-dev/rspack/pull/10019)/10019
* fix: covert optional import meta property to `undefined` by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/10030](https://github.com/web-infra-dev/rspack/pull/10030)/10030
* fix: worker alias with module by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/10021](https://github.com/web-infra-dev/rspack/pull/10021)/10021

##### Document Updates 📖
* docs: add rspack & next.js partner annoucement by
@&#8203;hardfi[https://github.com/web-infra-dev/rspack/pull/9962](https://github.com/web-infra-dev/rspack/pull/9962)l/9962
* docs: update blog tile and description on the list page by
@&#8203;chenjiah[https://github.com/web-infra-dev/rspack/pull/9969](https://github.com/web-infra-dev/rspack/pull/9969)l/9969
* docs: add next.js guide to sidebar by
@&#8203;chenjiah[https://github.com/web-infra-dev/rspack/pull/9970](https://github.com/web-infra-dev/rspack/pull/9970)l/9970
* docs: translate Next.js blog to Chinese by
@&#8203;chenjiah[https://github.com/web-infra-dev/rspack/pull/9974](https://github.com/web-infra-dev/rspack/pull/9974)l/9974
* docs: improve clarity in documentation by
@&#8203;chenjiah[https://github.com/web-infra-dev/rspack/pull/9977](https://github.com/web-infra-dev/rspack/pull/9977)l/9977
* docs: add dependency in glossary by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9972](https://github.com/web-infra-dev/rspack/pull/9972)l/9972
* docs: add a standalone ecosystem page by
@&#8203;chenjiah[https://github.com/web-infra-dev/rspack/pull/10004](https://github.com/web-infra-dev/rspack/pull/10004)/10004

##### Other Changes
* ci: split reusable-build.yml by
@&#8203;jerrykingx[https://github.com/web-infra-dev/rspack/pull/9941](https://github.com/web-infra-dev/rspack/pull/9941)l/9941
* chore: release v1.3.4 by
@&#8203;ahabh[https://github.com/web-infra-dev/rspack/pull/9950](https://github.com/web-infra-dev/rspack/pull/9950)l/9950
* refactor: dynamic templates of javascript esm dependencies by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9945](https://github.com/web-infra-dev/rspack/pull/9945)l/9945
* refactor: dynamic templates of JavaScript amd and cjs dependencies
by
@&#8203;LingyuCo[https://github.com/web-infra-dev/rspack/pull/9948](https://github.com/web-infra-dev/rspack/pull/9948)ll/9948
* refactor: dynamic templates of javascript remain depenendencies by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9958](https://github.com/web-infra-dev/rspack/pull/9958)l/9958
* chore(deps): update github-actions by
@&#8203;renova[https://github.com/web-infra-dev/rspack/pull/9951](https://github.com/web-infra-dev/rspack/pull/9951)l/9951
* refactor: dynamic templates of all dependencies by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9960](https://github.com/web-infra-dev/rspack/pull/9960)l/9960
* refactor: clean dependency template code by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9961](https://github.com/web-infra-dev/rspack/pull/9961)l/9961
* test: not to print unnecessary message when testing by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9963](https://github.com/web-infra-dev/rspack/pull/9963)l/9963
* ci: add lynx-stack to ecosystem-ci by
@&#8203;colina[https://github.com/web-infra-dev/rspack/pull/9964](https://github.com/web-infra-dev/rspack/pull/9964)l/9964
* chore: use async trace style for chrome tracing by
@&#8203;hardfi[https://github.com/web-infra-dev/rspack/pull/9965](https://github.com/web-infra-dev/rspack/pull/9965)l/9965
* chore: remove unused scripts by
@&#8203;LingyuCod[https://github.com/web-infra-dev/rspack/pull/9973](https://github.com/web-infra-dev/rspack/pull/9973)l/9973
* ci: update lynx infra artifact action by
@&#8203;jerrykingx[https://github.com/web-infra-dev/rspack/pull/9975](https://github.com/web-infra-dev/rspack/pull/9975)l/9975
* ci: use node v22 in ecosystem-ci by
@&#8203;colina[https://github.com/web-infra-dev/rspack/pull/9966](https://github.com/web-infra-dev/rspack/pull/9966)l/9966
* chore: use RefCell instead of Mutex in thread_local! by
@&#8203;quinin[https://github.com/web-infra-dev/rspack/pull/9978](https://github.com/web-infra-dev/rspack/pull/9978)l/9978
* chore: improve tracing by
@&#8203;hardfi[https://github.com/web-infra-dev/rspack/pull/9989](https://github.com/web-infra-dev/rspack/pull/9989)l/9989
* refactor: remove useless code by
@&#8203;jerrykingx[https://github.com/web-infra-dev/rspack/pull/9992](https://github.com/web-infra-dev/rspack/pull/9992)l/9992
* chore(deps): update dependency @&#8203;rspack/plugin-react-refresh to
^1.2.0 by
@&#8203;[https://github.com/web-infra-dev/rspack/pull/10000](https://github.com/web-infra-dev/rspack/pull/10000)k/pull/10000
* chore(deps): update dependency prebundle to ^1.3.3 by
@&#8203;renova[https://github.com/web-infra-dev/rspack/pull/10001](https://github.com/web-infra-dev/rspack/pull/10001)/10001
* chore: add more tracing data by
@&#8203;hardfi[https://github.com/web-infra-dev/rspack/pull/9994](https://github.com/web-infra-dev/rspack/pull/9994)l/9994
* chore(deps): update rspress to 2.0.0-alpha.11 by
@&#8203;SoonIt[https://github.com/web-infra-dev/rspack/pull/10027](https://github.com/web-infra-dev/rspack/pull/10027)/10027

#### New Contributors
* @&#8203;1714080902120 made their first
contributi[https://github.com/web-infra-dev/rspack/pull/9923](https://github.com/web-infra-dev/rspack/pull/9923)l/9923

**Full Changelog**:
web-infra-dev/rspack@v1.3.4...v1.3.5

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/lynx-family/lynx-stack).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJib3Q6cmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@pull pull bot added the ⤵️ pull label Apr 15, 2025
@pull pull bot merged commit 8395143 into PupilTong:main Apr 15, 2025
pull bot pushed a commit that referenced this pull request Jan 4, 2026
<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

<!-- The AI summary below will be auto-generated - feel free to replace
it with your own. -->

Solves lynx-family#2045

An example log from our examples/react package is as below.

First screen:

<details>

```log
[BackgroundThread Component Render] name: Fragment, uniqID: undefined, __id: undefined
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #1: __CreatePage("0", 0) => page#10
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #2: __GetElementUniqueID(page#10) => 10
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #3: __SetCSSId([page#10], 0)
main-thread.js:3460 [MainThread Component Render] name: App
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #4: __CreateView(10) => view#11
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #5: __CreateView(10) => view#12
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #6: __SetClasses(view#12, "Background")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #7: __AppendElement(view#11, view#12) => view#12
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #8: __CreateView(10) => view#13
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #9: __SetClasses(view#13, "App")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #10: __AppendElement(view#11, view#13) => view#13
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #11: __CreateView(10) => view#14
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #12: __SetClasses(view#14, "Banner")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #13: __AppendElement(view#13, view#14) => view#14
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #14: __CreateWrapperElement(10) => wrapper#15
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #15: __AppendElement(view#14, wrapper#15) => wrapper#15
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #16: __CreateText(10) => text#16
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #17: __SetClasses(text#16, "Title")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #18: __SetAttribute(text#16, "text", "React")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #19: __AppendElement(view#14, text#16) => text#16
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #20: __CreateText(10) => text#17
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #21: __SetClasses(text#17, "Subtitle")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #22: __SetAttribute(text#17, "text", "on Lynx")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #23: __AppendElement(view#14, text#17) => text#17
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #24: __CreateView(10) => view#18
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #25: __SetClasses(view#18, "Content")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #26: __AppendElement(view#13, view#18) => view#18
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #27: __CreateImage(10) => image#19
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #28: __SetClasses(image#19, "Arrow")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #29: __AppendElement(view#18, image#19) => image#19
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #30: __CreateText(10) => text#20
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #31: __SetClasses(text#20, "Description")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #32: __SetAttribute(text#20, "text", "Tap the logo and have fun!")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #33: __AppendElement(view#18, text#20) => text#20
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #34: __CreateText(10) => text#21
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #35: __SetClasses(text#21, "Hint")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #36: __AppendElement(view#18, text#21) => text#21
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #37: __CreateRawText("Edit") => raw-text#22
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #38: __AppendElement(text#21, raw-text#22) => raw-text#22
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #39: __CreateWrapperElement(10) => wrapper#23
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #40: __AppendElement(text#21, wrapper#23) => wrapper#23
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #41: __CreateRawText("to see updates!") => raw-text#24
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #42: __AppendElement(text#21, raw-text#24) => raw-text#24
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #43: __CreateView(10) => view#25
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #44: __SetInlineStyles(view#25, "flex:1")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #45: __AppendElement(view#13, view#25) => view#25
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #46: __AppendElement(page#10, view#11) => view#11
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #47: __SetAttribute(image#19, "src", "http://1.1.1.1:3000/static/image/arrow.aee54ba7.png")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #48: __CreateView(10) => view#26
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #49: __SetClasses(view#26, "Logo")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #50: __ReplaceElement(view#26, wrapper#15)
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #51: __AddEvent(view#26, "bindEvent", "tap", "-3:0:")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #52: __CreateImage(10) => image#27
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #53: __SetClasses(image#27, "Logo--lynx")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #54: __AppendElement(view#26, image#27) => image#27
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #55: __SetAttribute(image#27, "src", "http://1.1.1.1:3000/static/image/lynx-logo.620eb8d1.png")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #56: __CreateText(10) => text#28
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #57: __SetInlineStyles(text#28, "font-style:italic;color:rgba(255, 255, 255, 0.85)")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #58: __ReplaceElement(text#28, wrapper#23)
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #59: __CreateRawText("") => raw-text#29
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #60: __SetAttribute(raw-text#29, "text", " src/App.tsx ")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #61: __AppendElement(text#28, raw-text#29) => raw-text#29
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #62: __OnLifecycleEvent(["rLynxFirstScreen", {"root":"{\"id\":-1,\"type\":\"root\",\"children\":[{\"id\":-5,\"type\":\"__snapshot_835da_b8ae7_1\",\"values\":[\"http://1.1.1.1:3000/static/image/arrow.aee54ba7.png\"],\"children\":[{\"id\":-3,\"type\":\"__snapshot_835da_b8ae7_2\",\"values\":[\"-3:0:\"],\"children\":[{\"id\":-2,\"type\":\"__snapshot_835da_b8ae7_4\",\"values\":[\"http://1.1.1.1:3000/static/image/lynx-logo.620eb8d1.png\"]}]},{\"id\":-4,\"type\":\"__snapshot_835da_b8ae7_5\",\"children\":[{\"id\":-6,\"type\":null,\"values\":[\" src/App.tsx \"]}]}]}]}","jsReadyEventIdSwap":{}}])
background.js:11351 [rspeedy-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay disabled.
background.js:3564 [HMR] Waiting for update signal from WDS...
background.js:4476 [BackgroundThread Component Render] name: App, uniqID: __snapshot_835da_b8ae7_1, __id: 2
background.js:4476 [BackgroundThread Component Render] name: Fragment, uniqID: __snapshot_835da_b8ae7_1, __id: 2
background.js:214 Hello, ReactLynx
background.js:8011 [ReactLynxDebug] MTS -> BTS OnLifecycleEvent:
{
  "root": {
    "id": -1,
    "type": "root",
    "children": [
      {
        "id": -5,
        "type": "__snapshot_835da_b8ae7_1",
        "values": [
          "http://1.1.1.1:3000/static/image/arrow.aee54ba7.png"
        ],
        "children": [
          {
            "id": -3,
            "type": "__snapshot_835da_b8ae7_2",
            "values": [
              "-3:0:"
            ],
            "children": [
              {
                "id": -2,
                "type": "__snapshot_835da_b8ae7_4",
                "values": [
                  "http://1.1.1.1:3000/static/image/lynx-logo.620eb8d1.png"
                ]
              }
            ]
          },
          {
            "id": -4,
            "type": "__snapshot_835da_b8ae7_5",
            "children": [
              {
                "id": -6,
                "type": null,
                "values": [
                  " src/App.tsx "
                ]
              }
            ]
          }
        ]
      }
    ]
  },
  "jsReadyEventIdSwap": {}
}
main-thread.js:5801 [ReactLynxDebug] BTS -> MTS updateMainThread:
{
  "data": {
    "patchList": [
      {
        "snapshotPatch": [],
        "id": 2
      }
    ]
  },
  "patchOptions": {
    "isHydration": true,
    "reloadVersion": 0,
    "pipelineOptions": {
      "pipelineID": "0x16c567000_29",
      "needTimestamps": true,
      "pipelineOrigin": "reactLynxHydrate",
      "dsl": "reactLynx",
      "stage": "hydrate"
    }
  }
}
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #63: __FlushElementTree(page#10, {"pipelineOptions":{"pipelineID":"0x16c567000_29","needTimestamps":true,"pipelineOrigin":"reactLynxHydrate","dsl":"reactLynx","stage":"hydrate"}})

```

</details>

Next update:

<details>

```log
[BackgroundThread Component Render] name: App, uniqID: __snapshot_835da_b8ae7_1, __id: -5
main-thread.js:5801 [ReactLynxDebug] BTS -> MTS updateMainThread:
{
  "data": {
    "patchList": [
      {
        "id": 3,
        "snapshotPatch": [
          {
            "op": "RemoveChild",
            "parentId": -3,
            "childId": -2
          },
          {
            "op": "CreateElement",
            "type": "__snapshot_835da_b8ae7_3",
            "id": 7
          },
          {
            "op": "SetAttributes",
            "id": 7,
            "values": [
              "http://1.1.1.1:3000/static/image/react-logo.75eb3837.png"
            ]
          },
          {
            "op": "InsertBefore",
            "parentId": -3,
            "childId": 7,
            "beforeId": null
          }
        ]
      }
    ]
  },
  "patchOptions": {
    "reloadVersion": 0,
    "pipelineOptions": {
      "pipelineID": "0x16c567000_30",
      "needTimestamps": false,
      "pipelineOrigin": "updateTriggeredByBts",
      "dsl": "reactLynx",
      "stage": "update"
    }
  }
}
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #64: __RemoveElement(view#26, image#27) => image#27
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #65: __CreateImage(10) => image#30
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #66: __SetClasses(image#30, "Logo--react")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #67: __SetAttribute(image#30, "src", "http://1.1.1.1:3000/static/image/react-logo.75eb3837.png")
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #68: __AppendElement(view#26, image#30) => image#30
main-thread.js:3421 [ReactLynxDebug] FiberElement API call #69: __FlushElementTree(page#10, {"pipelineOptions":{"pipelineID":"0x16c567000_30","needTimestamps":false,"pipelineOrigin":"updateTriggeredByBts","dsl":"reactLynx","stage":"update"}})
```

</details>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Enhanced debug logging: structured, dual-thread API-call, lifecycle
and hydration traces when debug mode is enabled.
* **Tests**
* Added and expanded tests and snapshots to validate richer logging,
API-call sequences, and hydration traces.
* **Chores**
* Development-only error messages now include a troubleshooting hint
recommending the debug-mode option for easier diagnosis.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

## Checklist

<!--- Check and mark with an "x" -->

- [x] Tests updated (or not required).
- [ ] Documentation updated (or not required).
- [x] Changeset added, and when a BREAKING CHANGE occurs, it needs to be
clearly marked (or not required).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants