Repository navigation
release: 0.2.1 (land Solid 2 port on main) - #5
Merged
Merged
Conversation
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.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR #4 was stacked on #3. After #3 squash-merged, #4 merged into its base
feat/extra-router-paramsinstead ofmain, so the Solid 2 port never reachedmain.The 0.2.0 tarball on npm was also built before the final review changes. Compared with what #4 merged, it:
tanstackRouter()innativescript.vite.mjsand depends on@tanstack/router-plugin. Now that@nativescript/viteapplies dependency plugins (fix(vite): apply plugins from dependency nativescript.vite.mjs configs NativeScript#11669), apps that register the plugin themselves would run it twice;scrollTono-op, so router-core throwsReferenceError: scrollTo is not definedafter every navigation;globalThis.__ns_router, so HMR patches a dead router after a modal opens;STRICT_READ_UNTRACKEDdev warnings from the provider.This PR
1e4fe72) ontomain. The resulting tree matchesfeat/extra-router-paramsplusmain'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
vitestall pass (80 tests). The builtdistcontains thescrollTostub and the detached modal router, andnativescript.vite.mjsno longer registers the router plugin.After merging, publish 0.2.1. The demo (NathanWalker/ns-solid-tanstack-router#2) will pin
^0.2.1.