As SvelteKit recently released its 3.0 version, sv create command automatically chooses SvelteKit 3.0 for the first initialization. However, SvelteKit 3.0 has some syntax changes that affects to the default templates included in the @fedify/init package.
Proposal
Update the syntax of hooks.server.ts included in the @fedify/init package, by changing $lib to #lib as the official migration guide introduces
What to do
One-line change may applied to the 2.4-maintenance branch, as SvelteKit template newly introduced in 2.4.0. Changes @fedify/init package only, replacing $lib to #lib
Testing
mise run test-each init to test the init package
- create the new project with SvelteKit template and run
fedify lookup http://localhost:5173/users/john to test if the lookup successful at the initial state of setup.
Related Issues
As SvelteKit recently released its 3.0 version,
sv createcommand automatically chooses SvelteKit 3.0 for the first initialization. However, SvelteKit 3.0 has some syntax changes that affects to the default templates included in the@fedify/initpackage.Proposal
Update the syntax of
hooks.server.tsincluded in the@fedify/initpackage, by changing$libto#libas the official migration guide introducesWhat to do
One-line change may applied to the
2.4-maintenancebranch, as SvelteKit template newly introduced in 2.4.0. Changes@fedify/initpackage only, replacing$libto#libTesting
mise run test-each initto test the init packagefedify lookup http://localhost:5173/users/johnto test if the lookup successful at the initial state of setup.Related Issues
fedify init#892