Skip to content

Commit 9d3e9ba

Browse files
feat: add yew-link crate for unified SSR/CSR data fetching (#4027)
* fix: disable streaming output in wasm-bindgen-test-runner for E2E tests wasm-bindgen 0.2.115+ introduced incremental DOM scraping that assumes #output content is append-only. The SSR E2E tests replace #output via set_inner_html, breaking the offset tracker and causing the runner to miss test results. WASM_BINDGEN_TEST_NO_STREAM falls back to reading full text each poll. --------- Co-authored-by: Esteve Autet Alexe <esteve@memw.es>
1 parent 2142c5c commit 9d3e9ba

46 files changed

Lines changed: 4154 additions & 186 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
TARGET_FLAGS: ${{ case(matrix.target == 'wasm32', '--target wasm32-unknown-unknown', null) }}
5151
run: >-
5252
cargo hack clippy
53-
-p yew -p yew-agent -p yew-router
53+
-p yew -p yew-agent -p yew-router -p yew-link
5454
--feature-powerset --no-dev-deps
5555
--keep-going
5656
$RELEASE_FLAG

.github/workflows/main-checks.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
RUSTFLAGS: ${{ matrix.toolchain == 'nightly' && '--cfg nightly_yew' || '' }}
145145
run: |
146146
if [[ "${{ matrix.toolchain }}" == "1.85.0" ]]; then
147-
cargo test --all-targets -p yew-agent -p yew-agent-macro -p yew-router
147+
cargo test --all-targets -p yew-agent -p yew-agent-macro -p yew-router -p yew-link -p yew-link-macro
148148
else
149149
ls packages | grep -v "^yew$" | xargs -I {} cargo test --all-targets -p {}
150150
fi
@@ -301,9 +301,12 @@ jobs:
301301
fail-fast: false
302302
matrix:
303303
include:
304-
- example: ssr_router
304+
- example: axum_ssr_router
305305
server_bin: ssr_router_server
306-
trunk_dir: examples/ssr_router
306+
trunk_dir: examples/axum_ssr_router
307+
- example: actix_ssr_router
308+
server_bin: ssr_router_server
309+
trunk_dir: examples/actix_ssr_router
307310
- example: simple_ssr
308311
server_bin: simple_ssr_server
309312
trunk_dir: examples/simple_ssr

.github/workflows/test-website.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,21 @@ jobs:
4444

4545
- name: Run website code snippet tests
4646
run: cargo test -p website-test --target wasm32-unknown-unknown
47+
48+
website_tests_native:
49+
name: Tests Website Snippets (native)
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v6
53+
54+
- name: Setup toolchain
55+
uses: dtolnay/rust-toolchain@master
56+
with:
57+
toolchain: stable
58+
59+
- uses: Swatinem/rust-cache@v2
60+
with:
61+
save-if: ${{ github.ref == 'refs/heads/master' }}
62+
63+
- name: Run website code snippet tests
64+
run: cargo test -p website-test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ dist/
88
*.iml
99
/.idea/
1010
/.vscode/
11+
.nvim.lua

0 commit comments

Comments
 (0)