-
Notifications
You must be signed in to change notification settings - Fork 122
feat(react): optimize the number and depth of snapshot #1764
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
Merged
Merged
Changes from 27 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
b109ea2
feat(react): optimize the number and depth of snapshot
hzy f445c76
feat: make test pass
upupming acc8e45
fix: test case of hydrate and list
upupming b7eba1d
fix: slotIndex for setupDocument
upupming ca7232d
fix: renderComponent slotIndex
upupming 49cd30b
fix: slotIndex of RLTL
upupming ce28aff
Merge remote-tracking branch 'gh/main' into p/hzy/opt-slot_0
upupming 6b05166
feat: update cargo snapshot
upupming c57f3bf
chore: dprint format
upupming 840b0e4
Merge remote-tracking branch 'gh/main' into p/hzy/opt-slot_0
upupming 6367bdb
chore: clean up console.log
upupming 11a436c
chore: update turbo.json
upupming 8a662b7
feat: add insertBefore operation example
upupming abe20ac
feat: update test cases
upupming f8e0e5f
Merge remote-tracking branch 'gh/main' into p/hzy/opt-slot_0
upupming 4974e77
feat: cover test for legacy DynamicPartType
upupming cd52ab1
feat: remove wrapper introducted in #1455
upupming 326e0d8
feat: cover test for slotIndex of non text `children`
upupming f964aed
chore: update RLTL snapshot
upupming d738aa0
Merge remote-tracking branch 'gh/main' into p/hzy/opt-slot_0
upupming 4d40ca1
Revert "feat: remove wrapper introducted in #1455"
upupming 8b59089
feat: keep the lynx suspense from #1455
upupming 7bfb52d
feat: call insertBefore when slotIndex changes
upupming e83bd78
Merge remote-tracking branch 'gh/main' into p/hzy/opt-slot_0
upupming a4b4aaa
fix: typo
upupming 09f94fc
feat: remove __slotIndex of document.ts
upupming fe8ea2b
Merge origin/main into pr-1764
upupming b454c32
Fix react runtime test regressions after merge
upupming fbbb35a
Update transform and hot refresh snapshots for slot v2
upupming 334ede9
Merge origin/main into pr-1764 with pkg.pr.new preact
upupming 974e058
Fix react runtime test regressions after merge
upupming 16b1b67
Use pkg.pr.new internal-preact preview
upupming d5f52df
Update transform and hot refresh snapshots for slot v2
upupming 0105973
test(react-runtime): adapt runtime tests for preview preact
upupming 10169cc
test(react-runtime): cover profile and list hydrate moves
upupming cc1c68c
Merge remote PR branch into remerge branch before push
upupming 22c4a7e
chore(lockfile): dedupe pnpm lockfile
upupming e676f2c
Merge remote-tracking branch 'origin/main' into p/hzy/opt-slot_0
upupming c165c4c
fix: snapshot
upupming 48579db
feat: reduce fragment on single slot child
upupming 9c89ba9
feat: eliminate multi-slot Fragment via flatten + slot-aware reconcile
upupming 2e49b89
feat: simplify slotMap
upupming 11ce6bb
Revert "feat: simplify slotMap"
upupming 17ed3cf
Revert "feat: eliminate multi-slot Fragment via flatten + slot-aware …
upupming 9ed7712
chore: upgrade preact
upupming 78946fc
fix: snapshot
upupming e9b386d
fix: test cases
upupming 2ceaf27
Merge remote-tracking branch 'origin/main' into p/hzy/opt-slot_0
upupming f18bbf3
fix: remove unused test
upupming 6bd678d
feat: reduce empty text vnode and dom
upupming 60b047a
Merge remote-tracking branch 'origin/main' into p/hzy/opt-slot_0
upupming cfb0a4b
fix: wrapper in suspense should always use $0
upupming 159280d
Revert "fix: remove unused test"
upupming afd2d6a
chore: changeset
upupming File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| applyTo: "packages/react/transform/**/*" | ||
| --- | ||
|
|
||
| When validating SWC transform snapshot changes, update the Rust fixtures with `UPDATE=1 cargo test -p swc_plugin_snapshot` and `UPDATE=1 cargo test -p swc_plugin_list --features napi` so the stored snapshots match the current transform output. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.