Skip to content

skeleton@2025.1.3

Compare
Choose a tag to compare
@shopify-github-actions-access shopify-github-actions-access released this 27 Mar 17:50
· 9 commits to main since this release
1bf1e33

Patch Changes

  • Bump Remix to 2.16.1 and vite to 6.2.0 (#2784) by @wizardlyhel

  • Update skeleton and create-hydrogen cli to 3.75.4 (#2769) by @juanpprieto

  • Fixing typescript compile (#2787) by @balazsbajorics

    In tsconfig.json:

         "types": [
           "@shopify/oxygen-workers-types",
    -      "@remix-run/node",
    +      "@remix-run/server-runtime",
           "vite/client"
         ],
  • Updates @shopify/cli-kit, @shopify/cli and @shopify/plugin-cloudflare to 3.77.0. (#2810) by @seanparsons

  • Support for the Remix future flag v3_routeConfig. (#2722) by @seanparsons

    Please refer to the Remix documentation for more details on v3_routeConfig future flag: https://remix.run/docs/en/main/start/future-flags#v3_routeconfig

    1. Add the following npm package dev dependencies:

        "devDependencies": {
          "@remix-run/dev": "^2.16.1",
      +    "@remix-run/fs-routes": "^2.16.1",
      +    "@remix-run/route-config": "^2.16.1",
    2. If you have export function Layout in your root.tsx, move this export into its own file. For example:

      // /app/layout.tsx
      export default function Layout() {
        const nonce = useNonce();
        const data = useRouteLoaderData<RootLoader>('root');
      
        return (
          <html lang="en">
          ...
        );
      }
    3. Create a routes.ts file.

      import { flatRoutes } from "@remix-run/fs-routes";
      import { layout, type RouteConfig } from "@remix-run/route-config";
      import { hydrogenRoutes } from "@shopify/hydrogen";
      
      export default hydrogenRoutes([
        // Your entire app reading from routes folder using Layout from layout.tsx
        layout("./layout.tsx", await flatRoutes()),
      ]) satisfies RouteConfig;
    4. Update your vite.config.ts.

      export default defineConfig({
        plugins: [
          hydrogen(),
          oxygen(),
          remix({
      -      presets: [hydrogen.preset()],
      +      presets: [hydrogen.v3preset()],
  • Updated dependencies [0425e50d, 74ef1ba7]: