diff --git a/.github/workflows/test-local.yaml b/.github/workflows/test-local.yaml index 31c3a4b49..b34425080 100644 --- a/.github/workflows/test-local.yaml +++ b/.github/workflows/test-local.yaml @@ -7,6 +7,9 @@ jobs: vite: runs-on: ubuntu-latest name: vite + concurrency: + group: ${{ github.ref }}-e2e-local-vite-${{ matrix.data_provider }}-${{ matrix.ui_framework }} + cancel-in-progress: true strategy: fail-fast: false matrix: @@ -36,14 +39,14 @@ jobs: cd ${{ steps.build_step.outputs.project_path }} npm install npm run build - npm run preview -- --port 3000 & + npm run preview -- --port 3000 --host & - name: Run Cypress on local uses: cypress-io/github-action@v4 with: command: npx cypress run --record --parallel --env=AUTH_PROVIDER=${{ steps.build_step.outputs.auth_provider }},UI_FRAMEWORK=${{ matrix.ui_framework }},FRAMEWORK=react,DATA_PROVIDER=${{ matrix.data_provider }} install: false start: "npm ls" - wait-on: "http://0.0.0.0:3000" + wait-on: "http://localhost:3000" env: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} FRAMEWORK: react @@ -53,6 +56,9 @@ jobs: react: runs-on: ubuntu-latest name: react + concurrency: + group: ${{ github.ref }}-e2e-local-react-${{ matrix.data_provider }}-${{ matrix.ui_framework }} + cancel-in-progress: true strategy: fail-fast: false matrix: @@ -101,6 +107,9 @@ jobs: nextjs: runs-on: ubuntu-latest name: nextjs + concurrency: + group: ${{ github.ref }}-e2e-local-nextjs-${{ matrix.data_provider }}-${{ matrix.ui_framework }} + cancel-in-progress: true strategy: fail-fast: false matrix: @@ -145,6 +154,9 @@ jobs: remix: runs-on: ubuntu-latest name: remix + concurrency: + group: ${{ github.ref }}-e2e-local-remix-${{ matrix.data_provider }}-${{ matrix.ui_framework }} + cancel-in-progress: true strategy: fail-fast: false matrix: diff --git a/.github/workflows/test-remote.yaml b/.github/workflows/test-remote.yaml index fd0991271..894a0fd7b 100644 --- a/.github/workflows/test-remote.yaml +++ b/.github/workflows/test-remote.yaml @@ -7,6 +7,9 @@ jobs: refine-vite: runs-on: ubuntu-latest name: Vite + concurrency: + group: ${{ github.ref }}-e2e-remote-vite-${{ matrix.data_provider }}-${{ matrix.ui_framework }} + cancel-in-progress: true strategy: fail-fast: false matrix: @@ -51,6 +54,9 @@ jobs: refine-nextjs: runs-on: ubuntu-latest name: NextJS + concurrency: + group: ${{ github.ref }}-e2e-remote-nextjs-${{ matrix.data_provider }}-${{ matrix.ui_framework }} + cancel-in-progress: true strategy: fail-fast: false matrix: @@ -96,6 +102,9 @@ jobs: refine-remix: runs-on: ubuntu-latest name: Remix + concurrency: + group: ${{ github.ref }}-e2e-remote-remix-${{ matrix.data_provider }}-${{ matrix.ui_framework }} + cancel-in-progress: true strategy: fail-fast: false matrix: diff --git a/presets.js b/presets.js index f8cecc1d7..4e2621bcb 100644 --- a/presets.js +++ b/presets.js @@ -2,7 +2,7 @@ module.exports = { presets: [ { name: "refine-antd", - type: "refine-react", + type: "refine-vite", answers: { "ui-framework": "antd", "router-provider": "react-router-v6", @@ -13,12 +13,12 @@ module.exports = { "i18n-no": "no", "i18n-antd": "no", "i18n-mui": "no", - "inferencer": "no", + inferencer: "no", }, }, { name: "refine-headless", - type: "refine-react", + type: "refine-vite", answers: { "ui-framework": "no", "router-provider": "react-router-v6", @@ -29,12 +29,12 @@ module.exports = { "i18n-no": "no", "i18n-antd": "no", "i18n-mui": "no", - "inferencer": "no", + inferencer: "no", }, }, { name: "refine-mui", - type: "refine-react", + type: "refine-vite", answers: { "ui-framework": "mui", "router-provider": "react-router-v6", @@ -45,46 +45,46 @@ module.exports = { "i18n-no": "no", "i18n-antd": "no", "i18n-mui": "no", - "inferencer": "no", + inferencer: "no", }, }, { name: "refine-mantine", - type: "refine-react", + type: "refine-vite", answers: { - 'ui-framework': 'mantine', - 'router-provider': 'react-router-v6', - 'data-provider': 'data-provider-custom-json-rest', - 'auth-provider': 'none', - 'antd-example-pages': 'no', - 'mui-example-pages': 'no', - 'mantine-example-pages': 'no', - 'i18n-no': 'no', - 'i18n-antd': 'no', - 'i18n-mui': 'no', - 'i18n-mantine': 'no', - "inferencer": "no", - } + "ui-framework": "mantine", + "router-provider": "react-router-v6", + "data-provider": "data-provider-custom-json-rest", + "auth-provider": "none", + "antd-example-pages": "no", + "mui-example-pages": "no", + "mantine-example-pages": "no", + "i18n-no": "no", + "i18n-antd": "no", + "i18n-mui": "no", + "i18n-mantine": "no", + inferencer: "no", + }, }, { name: "refine-chakra-ui", - type: "refine-react", + type: "refine-vite", answers: { - 'ui-framework': 'chakra', - 'router-provider': 'react-router-v6', - 'data-provider': 'data-provider-custom-json-rest', - 'auth-provider': 'none', - 'antd-example-pages': 'no', - 'mui-example-pages': 'no', - 'mantine-example-pages': 'no', - 'chakra-example-pages': 'no', - 'i18n-no': 'no', - 'i18n-antd': 'no', - 'i18n-mui': 'no', - 'i18n-mantine': 'no', - 'i18n-chakra': 'no', - "inferencer": "no", - } + "ui-framework": "chakra", + "router-provider": "react-router-v6", + "data-provider": "data-provider-custom-json-rest", + "auth-provider": "none", + "antd-example-pages": "no", + "mui-example-pages": "no", + "mantine-example-pages": "no", + "chakra-example-pages": "no", + "i18n-no": "no", + "i18n-antd": "no", + "i18n-mui": "no", + "i18n-mantine": "no", + "i18n-chakra": "no", + inferencer: "no", + }, }, { name: "refine-headless-remix", @@ -95,7 +95,7 @@ module.exports = { "auth-provider": "none", "antd-example-pages": "no", "mui-example-pages": "no", - "inferencer": "no", + inferencer: "no", }, }, { @@ -110,12 +110,12 @@ module.exports = { "i18n-no": "no", "i18n-antd": "no", "i18n-mui": "no", - "inferencer": "no", + inferencer: "no", }, }, { name: "refine-antd-supabase", - type: "refine-react", + type: "refine-vite", answers: { "ui-framework": "antd", "router-provider": "react-router-v6", @@ -129,27 +129,27 @@ module.exports = { }, }, { - name: 'refine-supabase', - type: 'refine-vite', + name: "refine-supabase", + type: "refine-vite", answers: { - 'ui-framework': 'no', - 'router-provider': 'react-router-v6', - 'data-provider': 'data-provider-supabase', - 'i18n-no': 'no', - 'inferencer': 'no', - } + "ui-framework": "no", + "router-provider": "react-router-v6", + "data-provider": "data-provider-supabase", + "i18n-no": "no", + inferencer: "no", + }, }, { - name: 'refine-appwrite', - type: 'refine-vite', + name: "refine-appwrite", + type: "refine-vite", answers: { - 'ui-framework': 'antd', - 'router-provider': 'react-router-v6', - 'data-provider': 'data-provider-appwrite', + "ui-framework": "antd", + "router-provider": "react-router-v6", + "data-provider": "data-provider-appwrite", "antd-example-pages": "no", "i18n-antd": "no", - 'inferencer': 'no', - } - } + inferencer: "no", + }, + }, ], }; diff --git a/refine-nextjs/plugins/antd/package.json b/refine-nextjs/plugins/antd/package.json index df62a0362..f57860aa3 100644 --- a/refine-nextjs/plugins/antd/package.json +++ b/refine-nextjs/plugins/antd/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "@refinedev/antd": "^5.7.0", + "@refinedev/antd": "latest", "antd": "^5.0.5", "@ant-design/icons": "^5.0.1" } diff --git a/refine-nextjs/plugins/chakra/package.json b/refine-nextjs/plugins/chakra/package.json index 27aa6e55a..7d3dd5966 100644 --- a/refine-nextjs/plugins/chakra/package.json +++ b/refine-nextjs/plugins/chakra/package.json @@ -1,8 +1,8 @@ { "dependencies": { - "@refinedev/chakra-ui": "^2.5.4", - "@refinedev/react-hook-form": "^4.1.2", - "@refinedev/react-table": "^5.1.4", + "@refinedev/chakra-ui": "latest", + "@refinedev/react-hook-form": "latest", + "@refinedev/react-table": "latest", "@tabler/icons": "^1.1.0", "@chakra-ui/react": "^2.5.1" } diff --git a/refine-nextjs/plugins/data-provider-airtable/package.json b/refine-nextjs/plugins/data-provider-airtable/package.json index 97216fd5f..07ee2e86f 100644 --- a/refine-nextjs/plugins/data-provider-airtable/package.json +++ b/refine-nextjs/plugins/data-provider-airtable/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "@refinedev/airtable": "^4.0.0" + "@refinedev/airtable": "latest" } } \ No newline at end of file diff --git a/refine-nextjs/plugins/data-provider-altogic/package.json b/refine-nextjs/plugins/data-provider-altogic/package.json index 279c19ad5..77940f761 100644 --- a/refine-nextjs/plugins/data-provider-altogic/package.json +++ b/refine-nextjs/plugins/data-provider-altogic/package.json @@ -1,6 +1,6 @@ { "dependencies": { "@refinedev/altogic": "^4.0.0", - "axios": "^0.26.1" + "axios": "^1.6.2" } } \ No newline at end of file diff --git a/refine-nextjs/plugins/data-provider-custom-json-rest/package.json b/refine-nextjs/plugins/data-provider-custom-json-rest/package.json index fa4662be2..e2e476d55 100644 --- a/refine-nextjs/plugins/data-provider-custom-json-rest/package.json +++ b/refine-nextjs/plugins/data-provider-custom-json-rest/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/simple-rest": "^4.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/simple-rest": "^5.0.0" + } +} diff --git a/refine-nextjs/plugins/data-provider-medusa/package.json b/refine-nextjs/plugins/data-provider-medusa/package.json index bb1a4210c..6ec59186b 100644 --- a/refine-nextjs/plugins/data-provider-medusa/package.json +++ b/refine-nextjs/plugins/data-provider-medusa/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/medusa": "^2.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/medusa": "^3.0.0" + } +} diff --git a/refine-nextjs/plugins/data-provider-nestjsx-crud/package.json b/refine-nextjs/plugins/data-provider-nestjsx-crud/package.json index 424bcc8f8..cc705eb86 100644 --- a/refine-nextjs/plugins/data-provider-nestjsx-crud/package.json +++ b/refine-nextjs/plugins/data-provider-nestjsx-crud/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/nestjsx-crud": "^4.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/nestjsx-crud": "^5.0.0" + } +} diff --git a/refine-nextjs/plugins/data-provider-strapi-v4/package.json b/refine-nextjs/plugins/data-provider-strapi-v4/package.json index c20239f03..d138b43f5 100644 --- a/refine-nextjs/plugins/data-provider-strapi-v4/package.json +++ b/refine-nextjs/plugins/data-provider-strapi-v4/package.json @@ -1,7 +1,7 @@ { "dependencies": { - "@refinedev/strapi-v4": "^5.2.0", - "axios": "^0.26.1", + "@refinedev/strapi-v4": "^6.0.0", + "axios": "^1.6.2", "nookies": "^2.5.2" } } \ No newline at end of file diff --git a/refine-nextjs/plugins/data-provider-strapi-v4/src/authProvider.ts b/refine-nextjs/plugins/data-provider-strapi-v4/src/authProvider.ts index 4b77740b5..e670be974 100644 --- a/refine-nextjs/plugins/data-provider-strapi-v4/src/authProvider.ts +++ b/refine-nextjs/plugins/data-provider-strapi-v4/src/authProvider.ts @@ -1,22 +1,18 @@ import { AuthBindings } from "@refinedev/core"; import { AuthHelper } from "@refinedev/strapi-v4"; - import axios from "axios"; import nookies from "nookies"; - -import { TOKEN_KEY, API_URL } from "./constants"; +import { API_URL, TOKEN_KEY } from "./constants"; export const axiosInstance = axios.create(); const strapiAuthHelper = AuthHelper(API_URL + "/api"); -axiosInstance.interceptors.request.use((request) => { +axiosInstance.interceptors.request.use((config) => { const cookies = nookies.get(); - if (cookies[TOKEN_KEY]) { - request.headers = { - Authorization: `Bearer ${cookies[TOKEN_KEY]}`, - }; + if (cookies[TOKEN_KEY] && config.headers) { + config.headers["Authorization"] = `Bearer ${cookies[TOKEN_KEY]}`; } - return request; + return config; }); export const authProvider: AuthBindings = { diff --git a/refine-nextjs/template/_package.json b/refine-nextjs/template/_package.json index a88f4378a..a279f36bd 100644 --- a/refine-nextjs/template/_package.json +++ b/refine-nextjs/template/_package.json @@ -2,6 +2,9 @@ "name": "<%= name %>", "version": "0.1.0", "private": true, + "engines": { + "node": ">=18.0.0" + }, "scripts": { "dev": "cross-env NODE_OPTIONS=--max_old_space_size=4096 refine dev", "build": "refine build", @@ -10,9 +13,9 @@ "refine": "refine" }, "dependencies": { - "@refinedev/cli": "^2.7.4", - "@refinedev/core": "^4.28.2", - "@refinedev/devtools": "^1.1.6", + "@refinedev/cli": "latest", + "@refinedev/core": "latest", + "@refinedev/devtools": "latest", "@refinedev/nextjs-router": "^5.3.2", "@refinedev/inferencer": "^4.3.2", "@refinedev/kbar": "^1.1.2", @@ -24,7 +27,7 @@ "devDependencies": { "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", - "@types/node": "^12.20.11", + "@types/node": "^18.0.0", "@typescript-eslint/parser": "5.48.0", "typescript": "^4.7.4", "cross-env": "^7.0.3" diff --git a/refine-react/plugins/auth-provider-auth0/package.json b/refine-react/plugins/auth-provider-auth0/package.json index 5c925e0ac..111f42a19 100644 --- a/refine-react/plugins/auth-provider-auth0/package.json +++ b/refine-react/plugins/auth-provider-auth0/package.json @@ -1,6 +1,6 @@ { "dependencies": { "@auth0/auth0-react": "^1.5.0", - "axios": "^0.26.1" + "axios": "^1.6.2" } } \ No newline at end of file diff --git a/refine-react/plugins/auth-provider-google/extend.js b/refine-react/plugins/auth-provider-google/extend.js index 4d65c2481..9c025a92e 100644 --- a/refine-react/plugins/auth-provider-google/extend.js +++ b/refine-react/plugins/auth-provider-google/extend.js @@ -1,7 +1,7 @@ const base = { _app: { refineImports: [`AuthBindings`], - import: [`import axios, { AxiosRequestConfig } from "axios";`], + import: [`import axios from "axios";`], localImport: [ `import { Login } from "pages/login";`, `import { CredentialResponse } from "interfaces/google";`, @@ -9,17 +9,13 @@ const base = { ], afterImport: [ "const axiosInstance = axios.create();", - "axiosInstance.interceptors.request.use((request: AxiosRequestConfig) => {", + "axiosInstance.interceptors.request.use((config) => {", 'const token = localStorage.getItem("token");', - "if (request.headers) {", - ' request.headers["Authorization"] = `Bearer ${token}`;', - "} else {", - " request.headers = {", - " Authorization: `Bearer ${token}`,", - " };", + "if (config.headers) {", + ' config.headers["Authorization"] = `Bearer ${token}`;', "}", "", - "return request;", + "return config;", "});", ], inner: [ diff --git a/refine-react/plugins/auth-provider-google/package.json b/refine-react/plugins/auth-provider-google/package.json index a3408af4d..7b977dc89 100644 --- a/refine-react/plugins/auth-provider-google/package.json +++ b/refine-react/plugins/auth-provider-google/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "axios": "^0.26.1" + "axios": "^1.6.2" } } diff --git a/refine-react/plugins/auth-provider-keycloak/package.json b/refine-react/plugins/auth-provider-keycloak/package.json index 024585c40..5243b325b 100644 --- a/refine-react/plugins/auth-provider-keycloak/package.json +++ b/refine-react/plugins/auth-provider-keycloak/package.json @@ -2,6 +2,6 @@ "dependencies": { "keycloak-js": "^20.0.3", "@react-keycloak/web": "^3.4.0", - "axios": "^0.26.1" + "axios": "^1.6.2" } } \ No newline at end of file diff --git a/refine-react/plugins/data-provider-altogic/package.json b/refine-react/plugins/data-provider-altogic/package.json index 279c19ad5..77940f761 100644 --- a/refine-react/plugins/data-provider-altogic/package.json +++ b/refine-react/plugins/data-provider-altogic/package.json @@ -1,6 +1,6 @@ { "dependencies": { "@refinedev/altogic": "^4.0.0", - "axios": "^0.26.1" + "axios": "^1.6.2" } } \ No newline at end of file diff --git a/refine-react/plugins/data-provider-custom-json-rest/package.json b/refine-react/plugins/data-provider-custom-json-rest/package.json index fa4662be2..e2e476d55 100644 --- a/refine-react/plugins/data-provider-custom-json-rest/package.json +++ b/refine-react/plugins/data-provider-custom-json-rest/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/simple-rest": "^4.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/simple-rest": "^5.0.0" + } +} diff --git a/refine-react/plugins/data-provider-medusa/package.json b/refine-react/plugins/data-provider-medusa/package.json index bb1a4210c..6ec59186b 100644 --- a/refine-react/plugins/data-provider-medusa/package.json +++ b/refine-react/plugins/data-provider-medusa/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/medusa": "^2.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/medusa": "^3.0.0" + } +} diff --git a/refine-react/plugins/data-provider-nestjsx-crud/package.json b/refine-react/plugins/data-provider-nestjsx-crud/package.json index 424bcc8f8..cc705eb86 100644 --- a/refine-react/plugins/data-provider-nestjsx-crud/package.json +++ b/refine-react/plugins/data-provider-nestjsx-crud/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/nestjsx-crud": "^4.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/nestjsx-crud": "^5.0.0" + } +} diff --git a/refine-react/plugins/data-provider-strapi-v4/package.json b/refine-react/plugins/data-provider-strapi-v4/package.json index 14c758219..6e18a0bca 100644 --- a/refine-react/plugins/data-provider-strapi-v4/package.json +++ b/refine-react/plugins/data-provider-strapi-v4/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "@refinedev/strapi-v4": "^5.2.0", - "axios": "^0.26.1" + "@refinedev/strapi-v4": "^6.0.0", + "axios": "^1.6.2" } } \ No newline at end of file diff --git a/refine-remix/plugins/data-provider-altogic/package.json b/refine-remix/plugins/data-provider-altogic/package.json index 279c19ad5..77940f761 100644 --- a/refine-remix/plugins/data-provider-altogic/package.json +++ b/refine-remix/plugins/data-provider-altogic/package.json @@ -1,6 +1,6 @@ { "dependencies": { "@refinedev/altogic": "^4.0.0", - "axios": "^0.26.1" + "axios": "^1.6.2" } } \ No newline at end of file diff --git a/refine-remix/plugins/data-provider-custom-json-rest/package.json b/refine-remix/plugins/data-provider-custom-json-rest/package.json index fa4662be2..e2e476d55 100644 --- a/refine-remix/plugins/data-provider-custom-json-rest/package.json +++ b/refine-remix/plugins/data-provider-custom-json-rest/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/simple-rest": "^4.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/simple-rest": "^5.0.0" + } +} diff --git a/refine-remix/plugins/data-provider-medusa/package.json b/refine-remix/plugins/data-provider-medusa/package.json index bb1a4210c..6ec59186b 100644 --- a/refine-remix/plugins/data-provider-medusa/package.json +++ b/refine-remix/plugins/data-provider-medusa/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/medusa": "^2.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/medusa": "^3.0.0" + } +} diff --git a/refine-remix/plugins/data-provider-nestjsx-crud/package.json b/refine-remix/plugins/data-provider-nestjsx-crud/package.json index 424bcc8f8..cc705eb86 100644 --- a/refine-remix/plugins/data-provider-nestjsx-crud/package.json +++ b/refine-remix/plugins/data-provider-nestjsx-crud/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/nestjsx-crud": "^4.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/nestjsx-crud": "^5.0.0" + } +} diff --git a/refine-remix/plugins/data-provider-strapi-v4/app/authProvider.ts b/refine-remix/plugins/data-provider-strapi-v4/app/authProvider.ts index 178483f91..0a1abb0f1 100644 --- a/refine-remix/plugins/data-provider-strapi-v4/app/authProvider.ts +++ b/refine-remix/plugins/data-provider-strapi-v4/app/authProvider.ts @@ -1,22 +1,19 @@ import type { AuthBindings } from "@refinedev/core"; import { AuthHelper } from "@refinedev/strapi-v4"; import axios from "axios"; -import Cookies from "js-cookie"; import * as cookie from "cookie"; - -import { TOKEN_KEY, API_URL } from "~/constants"; +import Cookies from "js-cookie"; +import { API_URL, TOKEN_KEY } from "~/constants"; export const axiosInstance = axios.create(); const strapiAuthHelper = AuthHelper(API_URL + "/api"); -axiosInstance.interceptors.request.use((request) => { +axiosInstance.interceptors.request.use((config) => { const token = Cookies.get(TOKEN_KEY); - if (token) { - request.headers = { - Authorization: `Bearer ${token}`, - }; + if (token && config.headers) { + config.headers["Authorization"] = `Bearer ${token}`; } - return request; + return config; }); export const authProvider: AuthBindings = { diff --git a/refine-remix/plugins/data-provider-strapi-v4/package.json b/refine-remix/plugins/data-provider-strapi-v4/package.json index 13b53b534..0a8bf89c9 100644 --- a/refine-remix/plugins/data-provider-strapi-v4/package.json +++ b/refine-remix/plugins/data-provider-strapi-v4/package.json @@ -1,7 +1,7 @@ { "dependencies": { - "@refinedev/strapi-v4": "^5.2.0", - "axios": "^0.26.1", + "@refinedev/strapi-v4": "^6.0.0", + "axios": "^1.6.2", "cookie": "^0.5.0", "js-cookie": "^3.0.1" }, diff --git a/refine-vite/plugins/auth-provider-auth0/package.json b/refine-vite/plugins/auth-provider-auth0/package.json index 5c925e0ac..111f42a19 100644 --- a/refine-vite/plugins/auth-provider-auth0/package.json +++ b/refine-vite/plugins/auth-provider-auth0/package.json @@ -1,6 +1,6 @@ { "dependencies": { "@auth0/auth0-react": "^1.5.0", - "axios": "^0.26.1" + "axios": "^1.6.2" } } \ No newline at end of file diff --git a/refine-vite/plugins/auth-provider-google/extend.js b/refine-vite/plugins/auth-provider-google/extend.js index 41640f55d..84fae3dd7 100644 --- a/refine-vite/plugins/auth-provider-google/extend.js +++ b/refine-vite/plugins/auth-provider-google/extend.js @@ -1,7 +1,7 @@ const base = { _app: { refineImports: [`AuthBindings`], - import: [`import axios, { AxiosRequestConfig } from "axios";`], + import: [`import axios from "axios";`], localImport: [ `import { Login } from "./pages/login";`, `import { CredentialResponse } from "./interfaces/google";`, @@ -9,17 +9,13 @@ const base = { ], afterImport: [ "const axiosInstance = axios.create();", - "axiosInstance.interceptors.request.use((request: AxiosRequestConfig) => {", + "axiosInstance.interceptors.request.use((config) => {", 'const token = localStorage.getItem("token");', - "if (request.headers) {", - ' request.headers["Authorization"] = `Bearer ${token}`;', - "} else {", - " request.headers = {", - " Authorization: `Bearer ${token}`,", - " };", + "if (config.headers) {", + ' config.headers["Authorization"] = `Bearer ${token}`;', "}", "", - "return request;", + "return config;", "});", ], inner: [ diff --git a/refine-vite/plugins/auth-provider-google/package.json b/refine-vite/plugins/auth-provider-google/package.json index a3408af4d..7b977dc89 100644 --- a/refine-vite/plugins/auth-provider-google/package.json +++ b/refine-vite/plugins/auth-provider-google/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "axios": "^0.26.1" + "axios": "^1.6.2" } } diff --git a/refine-vite/plugins/auth-provider-keycloak/package.json b/refine-vite/plugins/auth-provider-keycloak/package.json index 024585c40..5243b325b 100644 --- a/refine-vite/plugins/auth-provider-keycloak/package.json +++ b/refine-vite/plugins/auth-provider-keycloak/package.json @@ -2,6 +2,6 @@ "dependencies": { "keycloak-js": "^20.0.3", "@react-keycloak/web": "^3.4.0", - "axios": "^0.26.1" + "axios": "^1.6.2" } } \ No newline at end of file diff --git a/refine-vite/plugins/data-provider-altogic/package.json b/refine-vite/plugins/data-provider-altogic/package.json index 279c19ad5..77940f761 100644 --- a/refine-vite/plugins/data-provider-altogic/package.json +++ b/refine-vite/plugins/data-provider-altogic/package.json @@ -1,6 +1,6 @@ { "dependencies": { "@refinedev/altogic": "^4.0.0", - "axios": "^0.26.1" + "axios": "^1.6.2" } } \ No newline at end of file diff --git a/refine-vite/plugins/data-provider-custom-json-rest/package.json b/refine-vite/plugins/data-provider-custom-json-rest/package.json index fa4662be2..e2e476d55 100644 --- a/refine-vite/plugins/data-provider-custom-json-rest/package.json +++ b/refine-vite/plugins/data-provider-custom-json-rest/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/simple-rest": "^4.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/simple-rest": "^5.0.0" + } +} diff --git a/refine-vite/plugins/data-provider-medusa/package.json b/refine-vite/plugins/data-provider-medusa/package.json index bb1a4210c..6ec59186b 100644 --- a/refine-vite/plugins/data-provider-medusa/package.json +++ b/refine-vite/plugins/data-provider-medusa/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/medusa": "^2.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/medusa": "^3.0.0" + } +} diff --git a/refine-vite/plugins/data-provider-nestjsx-crud/package.json b/refine-vite/plugins/data-provider-nestjsx-crud/package.json index 424bcc8f8..cc705eb86 100644 --- a/refine-vite/plugins/data-provider-nestjsx-crud/package.json +++ b/refine-vite/plugins/data-provider-nestjsx-crud/package.json @@ -1,5 +1,5 @@ { - "dependencies": { - "@refinedev/nestjsx-crud": "^4.0.0" - } -} \ No newline at end of file + "dependencies": { + "@refinedev/nestjsx-crud": "^5.0.0" + } +} diff --git a/refine-vite/plugins/data-provider-strapi-v4/package.json b/refine-vite/plugins/data-provider-strapi-v4/package.json index 14c758219..6e18a0bca 100644 --- a/refine-vite/plugins/data-provider-strapi-v4/package.json +++ b/refine-vite/plugins/data-provider-strapi-v4/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "@refinedev/strapi-v4": "^5.2.0", - "axios": "^0.26.1" + "@refinedev/strapi-v4": "^6.0.0", + "axios": "^1.6.2" } } \ No newline at end of file