diff --git a/.github/actions/pnpm-setup-node/action.yml b/.github/actions/pnpm-setup-node/action.yml index a680f5491..c158078b5 100644 --- a/.github/actions/pnpm-setup-node/action.yml +++ b/.github/actions/pnpm-setup-node/action.yml @@ -5,7 +5,7 @@ runs: steps: - uses: pnpm/action-setup@v4 with: - version: 9.7.1 + version: 9.12.3 - uses: actions/setup-node@v4 with: cache: "pnpm" diff --git a/.nvmrc b/.nvmrc index 42e31a00c..bb8c76c68 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.14.0 +v22.11.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b1b6dd280..802ffd3b1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -35,11 +35,14 @@ In general, things we find useful when reviewing suggestions are: 0. [Choose an issue about bug or feature you want to work on](https://github.com/toss/suspensive/issues) 1. Fork this repository. 2. Clone the repository + ```shell git clone git@github.com:{username}/suspensive.git ``` + 3. Please use the correct node version. You can use the version declared in [.nvmrc](https://github.com/toss/suspensive/blob/main/.nvmrc). We strongly recommend [nvm](https://github.com/nvm-sh/nvm) to control local machine's node version easily. also We recommend [nvm's deeper shell integration](https://github.com/nvm-sh/nvm#deeper-shell-integration) too. -4. Install packages. [We use pnpm@9.7.1. Install pnpm with corepack please if you can](https://pnpm.io/installation#using-corepack). We recommend using corepack for pnpm to automatically use the version declared in the packageManager field of package.json. +4. Install packages. [We use pnpm@9.12.3. Install pnpm with corepack please if you can](https://pnpm.io/installation#using-corepack). We recommend using corepack for pnpm to automatically use the version declared in the packageManager field of package.json. + ```shell corepack enable && corepack prepare pnpm install diff --git a/docs/suspensive.org/package.json b/docs/suspensive.org/package.json index 0fdad128c..e1a0fa834 100644 --- a/docs/suspensive.org/package.json +++ b/docs/suspensive.org/package.json @@ -30,7 +30,7 @@ "d3": "^7.9.0", "framer-motion": "^11.11.8", "next": "catalog:", - "nextra": "^3.0.11", + "nextra": "^3.2.0", "nextra-theme-docs": "^3.0.11", "react": "catalog:react18", "react-dom": "catalog:react18", diff --git a/examples/next-streaming-react-query/next.config.js b/examples/next-streaming-react-query/next.config.js index 4c5d4b260..3643c6b71 100644 --- a/examples/next-streaming-react-query/next.config.js +++ b/examples/next-streaming-react-query/next.config.js @@ -1,8 +1,7 @@ /** @type {import('next').NextConfig} */ -const nextConfig = { +module.exports = { + reactStrictMode: true, experimental: { typedRoutes: true, }, } - -module.exports = nextConfig diff --git a/examples/next-streaming-react-query/src/app/layout.tsx b/examples/next-streaming-react-query/src/app/layout.tsx index 4fe673e00..298c2f7ef 100644 --- a/examples/next-streaming-react-query/src/app/layout.tsx +++ b/examples/next-streaming-react-query/src/app/layout.tsx @@ -1,8 +1,7 @@ -import type { Metadata } from 'next' import type { ReactNode } from 'react' import { Providers } from './providers' -export const metadata: Metadata = { +export const metadata = { title: 'Next HTML Streaming with Suspense', } diff --git a/examples/next-streaming-react-query/tsconfig.json b/examples/next-streaming-react-query/tsconfig.json index 5404d4816..c3abafe78 100644 --- a/examples/next-streaming-react-query/tsconfig.json +++ b/examples/next-streaming-react-query/tsconfig.json @@ -14,11 +14,7 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, - "plugins": [ - { - "name": "next" - } - ], + "plugins": [{ "name": "next" }], "paths": { "~/*": ["./src/*"] } diff --git a/examples/react-native-playground/package.json b/examples/react-native-playground/package.json index 646bb81d1..ff186c21f 100644 --- a/examples/react-native-playground/package.json +++ b/examples/react-native-playground/package.json @@ -17,7 +17,7 @@ "react-native": "catalog:react18" }, "devDependencies": { - "@babel/core": "^7.24.9", + "@babel/core": "^7.26.0", "@expo/webpack-config": "catalog:", "@types/react": "catalog:react18" } diff --git a/examples/visualization/next.config.js b/examples/visualization/next.config.js index 2a7a94f4b..370013118 100644 --- a/examples/visualization/next.config.js +++ b/examples/visualization/next.config.js @@ -1,10 +1,8 @@ /** @type {import('next').NextConfig} */ -const nextConfig = { +module.exports = { reactStrictMode: true, transpilePackages: ['@suspensive/react', '@suspensive/react-query'], experimental: { typedRoutes: true, }, } - -module.exports = nextConfig diff --git a/examples/visualization/src/app/layout.tsx b/examples/visualization/src/app/layout.tsx index 2ce8bfa4f..649e13e50 100644 --- a/examples/visualization/src/app/layout.tsx +++ b/examples/visualization/src/app/layout.tsx @@ -25,21 +25,12 @@ export default function RootLayout({ children }: { children: React.ReactNode })