Repository navigation
chore: repo setup and Solid 2.0 migration - #1
Conversation
Move the package to packages/ogp, add the check and release workflows with npm trusted publishing, and replace prettier with oxfmt. The compiler fixtures keep their prettier style through the test's formatResult option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Peer on solid-js and @solidjs/web 2.0 and @solidjs/meta 1.0, and use @solidjs/web as the JSX import source. - The SolidStart output declares each image server function with GET and builds its url with serverFunctionUrl, instead of rewriting the 1.x _server path by hand. - parseSolidJSX reads 2.0 SSR templates: it strips every _hk hydration key, joins templates whose t is a list, and throws when holes are still pending. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use function declarations with return types, strict equality and curly braces, and remove the type casts the type-aware rules reject. Compiler output is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SolidStart runs on Solid 1.x, so the default output now targets the server functions that @solidjs/vite-plugin compiles with serverFunctions on. The runtime value is renamed from SolidStart to Solid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@solidjs/meta 1.0 wraps useHead from @solidjs/web, so OpenGraph calls useHead directly and the package loses a peer dependency. A test renders OpenGraph and reads the tag from the head. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moves the repo to the shared library setup (pnpm workspace, changesets, oxlint, oxfmt, check and release workflows) and migrates
@solidjs/ogpto Solid 2.0.Changes
packages/ogpin a pnpm workspace, and add changesets.@lxsmnsyc/oxlint-config) and oxfmt. The reformat is its own commit (style: format with oxfmt), so it can be skipped in review.engines.nodefrom>=20to>=22, the lowest version the check workflow tests.check.yml(lint, format, types, tests; skips drafts) andrelease.yml(changesets, npm trusted publishing).solid-jsand@solidjs/web^2.0.0-rc.21, and use@solidjs/webas the JSX import source.@solidjs/vite-pluginwithserverFunctionson: each image server function is declared withGET(...)and its url comes fromserverFunctionUrl(fn, ...values). TheruntimevalueSolidStartis renamed toSolid, because SolidStart runs on Solid 1.x.parseSolidJSXreads Solid 2.0 SSR templates: it strips every_hkhydration key, joins a template whosetis a list, and throws when holes are still pending.OpenGraphcallsuseHeadfrom@solidjs/webinstead of<Meta>, so@solidjs/metais no longer a peer dependency.The setup and the Solid 2.0 migration share one PR on purpose: the compiler rewrite PR is stacked on this branch.
Changeset
minor(solid-2-support.md): the first release,0.0.0to0.1.0.Checks
npm pack --dry-runlists the same files as before the move.Roadmap
Cost
@solidjs/web. Removed peer:@solidjs/meta.@solidjs/vite-plugin@3.0.0-next.27, to compile JSX in theOpenGraphtest.Risk
OpenGraph, not in a running Solid 2.0 app.@arethetypeswrongreports "CJS resolves to ESM" for the root entry. This was already the case before this PR: the JSX entry is ESM only on purpose.Not done
0.0.0-stageplaceholder) and trusted publishing with provenance are set up separately, before the first release from CI.🤖 Generated with Claude Code