Skip to content

release: 0.2.1 (land Solid 2 port on main) - #5

Merged
NathanWalker merged 2 commits into
mainfrom
release/0.2.1
Nov 24, 2026
Merged

NathanWalker merged 2 commits into
mainfrom
release/0.2.1

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

PR #4 was stacked on #3. After #3 squash-merged, #4 merged into its base feat/extra-router-params instead of main, so the Solid 2 port never reached main.

The 0.2.0 tarball on npm was also built before the final review changes. Compared with what #4 merged, it:

  • still registers tanstackRouter() in nativescript.vite.mjs and depends on @tanstack/router-plugin. Now that @nativescript/vite applies dependency plugins (fix(vite): apply plugins from dependency nativescript.vite.mjs configs NativeScript#11669), apps that register the plugin themselves would run it twice;
  • lacks the scrollTo no-op, so router-core throws ReferenceError: scrollTo is not defined after every navigation;
  • lets modal routers overwrite globalThis.__ns_router, so HMR patches a dead router after a modal opens;
  • emits STRICT_READ_UNTRACKED dev warnings from the provider.

This PR

  • Cherry-picks the merged feat(tanstack-router)!: Solid 2 support (0.2.0) #4 commit (1e4fe72) onto main. The resulting tree matches feat/extra-router-params plus main's CLA workflow.
  • release: 0.2.1: version bump, plus a CHANGELOG entry listing what 0.2.1 adds over the published 0.2.0.

Typecheck, build and vitest all pass (80 tests). The built dist contains the scrollTo stub and the detached modal router, and nativescript.vite.mjs no longer registers the router plugin.

After merging, publish 0.2.1. The demo (NathanWalker/ns-solid-tanstack-router#2) will pin ^0.2.1.

The Solid flavor now targets Solid 2 only: solid-js 2.x, @solidjs/web 2.x,
@nativescript-community/solid-js 2.x and @tanstack/solid-router 2.x.

- solid-web-shim.js stands in for @solidjs/web, binding the router's renderer
  helpers to the NativeScript universal renderer; template() throws a clear
  error pointing at defaultErrorComponent / defaultNotFoundComponent.
- Library sources are plain .ts using createComponent (no JSX runtime shim).
- Provider/PageRenderer/Link follow Solid 2 rules: Errored, onSettled,
  two-arg effects, loads and Frame navigation outside owned scopes, an
  explicit startTransition hook.
- nativescript.vite.mjs only provides the @solidjs/web alias; apps register
  the TanStack router plugin in their own Vite config.
- Modal routers no longer replace the app router on globalThis.__ns_router.
- scrollTo is stubbed for router-core's post-render scroll reset.
- Shared .d.ts chunks are included in the published files.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 38b686a1-2e45-4de4-bb88-18d62929690c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@NathanWalker
NathanWalker merged commit 35da62c into main Nov 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant