Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/react-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-node@v6
with:
node-version: 20
node-version: 22

- name: Install dependencies & build
run: npm install
Expand Down
1,274 changes: 531 additions & 743 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@
"@types/node": "~20.19.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^5.2.0",
"@vitest/coverage-istanbul": "^4.1.2",
"@vitejs/plugin-react": "^6.0.5",
"@vitest/coverage-istanbul": "^4.1.10",
"eslint": "^9.28.0",
"eslint-plugin-import": "^2.31.0",
"gulp": "^5.0.1",
"gulp-replace": "^1.1.3",
"gulp-typescript": "^6.0.0-alpha.1",
"jsdom": "^27.4.0",
"jsdom": "^30.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.1.2",
"typescript-eslint": "^8.34.0",
"vitest": "^4.1.2"
"vitest": "^4.1.10"
},
"repository": {
"type": "git",
Expand Down
11 changes: 11 additions & 0 deletions samples/next-js-sample/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from "eslint/config";
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import path from "node:path";
import { fileURLToPath } from "node:url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export default defineConfig([{
extends: [...nextCoreWebVitals],
}]);
6 changes: 6 additions & 0 deletions samples/next-js-sample/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// You may need the following setting in newer Next.js versions if you
// get the error "Cannot read properties of null (reading 'useContext')".
transpilePackages: ["configcat-react"],
turbopack: {
root: "."
}
};

export default nextConfig;
26 changes: 15 additions & 11 deletions samples/next-js-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "eslint ."
},
"dependencies": {
"configcat-react": "^5.0.1",
"next": "14.2.33",
"react": "^18",
"react-dom": "^18"
"configcat-react": "^5.1.0",
"next": "16.3.0",
"react": "19.2.8",
"react-dom": "19.2.8"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.1.4",
"typescript": "^5"
"@types/node": "^22.20.1",
"@types/react": "19.2.18",
"@types/react-dom": "19.2.4",
"eslint": "9.39.5",
"eslint-config-next": "16.3.0",
"typescript": "~5.9.3"
},
"overrides": {
"@types/react": "19.2.18",
"@types/react-dom": "19.2.4"
}
}
25 changes: 19 additions & 6 deletions samples/next-js-sample/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -10,12 +14,21 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"paths": {
"@/*": ["./src/*"]
}
"@/*": [
"./src/*"
]
},
"target": "ES2017"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
14 changes: 5 additions & 9 deletions samples/react-native-sample/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,20 @@
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"newArchEnabled": true,
"splash": {
"image": "./assets/splash-icon.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"edgeToEdgeEnabled": true
}
},
"web": {
"favicon": "./assets/favicon.png"
}
},
"plugins": [
"expo-status-bar"
]
}
}
20 changes: 10 additions & 10 deletions samples/react-native-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"web": "expo start --web"
},
"dependencies": {
"@expo/metro-runtime": "~6.1.1",
"configcat-react": "^5.0.1",
"expo": "~54.0.0-preview.12",
"expo-status-bar": "~3.0.6",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-native": "0.81.1",
"react-native-web": "^0.21.0"
"@expo/metro-runtime": "~57.0.8",
"configcat-react": "^5.1.0",
"expo": "~57.0.11",
"expo-status-bar": "~57.0.1",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-native": "0.86.2",
"react-native-web": "^0.21.2"
},
"devDependencies": {
"@types/react": "~19.1.0",
"typescript": "~5.9.2"
"@types/react": "~19.2.4",
"typescript": "~6.0.3"
},
"private": true
}
22 changes: 11 additions & 11 deletions samples/react-sdk-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
"preview": "vite preview"
},
"dependencies": {
"configcat-react": "^5.0.1",
"react": "^19.1.1",
"react-dom": "^19.1.1"
"configcat-react": "^5.1.0",
"react": "^19.2.8",
"react-dom": "^19.2.8"
},
"devDependencies": {
"@testing-library/react": "^16.3.2",
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.9",
"@vitejs/plugin-react": "^5.1.3",
"globals": "^17.3.0",
"jsdom": "^27.4.0",
"typescript": "~5.9.2",
"vite": "^7.3.1",
"vitest": "^4.0.18"
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@vitejs/plugin-react": "^6.0.5",
"globals": "^17.9.0",
"jsdom": "^30.0.1",
"typescript": "~5.9.3",
"vite": "^8.2.1",
"vitest": "^4.1.10"
}
}
8 changes: 8 additions & 0 deletions sandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ This project uses [Storybook](https://storybook.js.org/) to showcase and test th
1. `npm i`
2. `npm run build`
3. `npm run storybook`

## Troubleshooting

When run from the Command Prompt on Windows, you may encounter the error: `importers[path] is not a function`.

This issue is caused by [a bug in the tooling](https://github.com/vitejs/vite/issues/18468) that occurs when the drive letter is lowercase.

If you run into this problem, use PowerShell instead.
26 changes: 13 additions & 13 deletions sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@
"build-storybook": "storybook build"
},
"dependencies": {
"configcat-react": "^5.0.1",
"react": "^19.1.1",
"react-dom": "^19.1.1"
"configcat-react": "^5.1.0",
"react": "^19.2.8",
"react-dom": "^19.2.8"
},
"devDependencies": {
"@storybook/addon-docs": "^9.1.3",
"@storybook/addon-links": "^9.1.3",
"@storybook/react-vite": "^9.1.3",
"@types/react": "^19.1.10",
"@types/react-dom": "^19.1.7",
"@vitejs/plugin-react": "^5.0.0",
"globals": "^16.3.0",
"storybook": "^9.1.3",
"typescript": "~5.9.2",
"vite": "^6.3.5"
"@storybook/addon-docs": "^10.5.7",
"@storybook/addon-links": "^10.5.7",
"@storybook/react-vite": "^10.5.7",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@vitejs/plugin-react": "^6.0.5",
"globals": "^17.9.0",
"storybook": "^10.5.7",
"typescript": "~5.9.3",
"vite": "^8.2.1"
}
}
File renamed without changes.