1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

chore: upgrading vite to newer version (#5703)

This commit is contained in:
Mateusz Kwasniewski 2023-12-20 14:48:18 +01:00 committed by GitHub
parent 0f8a6661a8
commit f3ca4f0c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 705 additions and 673 deletions

View File

@ -13,7 +13,7 @@ export default defineConfig({
on(
'file:preprocessor',
vitePreprocessor({
configFile: path.resolve(__dirname, './vite.config.ts'),
configFile: path.resolve(__dirname, './vite.config.mts'),
mode: 'development',
}),
);

View File

@ -63,7 +63,7 @@
"@types/uuid": "^9.0.0",
"@uiw/codemirror-theme-duotone": "4.21.21",
"@uiw/react-codemirror": "4.21.21",
"@vitejs/plugin-react": "3.1.0",
"@vitejs/plugin-react": "4.2.1",
"cartesian": "^1.0.1",
"chart.js": "3.9.1",
"chartjs-adapter-date-fns": "3.0.0",
@ -111,11 +111,11 @@
"typescript": "4.8.4",
"use-query-params": "^2.2.1",
"vanilla-jsoneditor": "^0.19.0",
"vite": "4.5.1",
"vite-plugin-env-compatible": "1.1.1",
"vite": "5.0.10",
"vite-plugin-env-compatible": "2.0.1",
"vite-plugin-svgr": "3.3.0",
"vite-tsconfig-paths": "4.2.1",
"vitest": "0.33.0",
"vite-tsconfig-paths": "4.2.2",
"vitest": "1.1.0",
"whatwg-fetch": "3.6.19"
},
"optionalDependencies": {

View File

@ -294,4 +294,4 @@ test('add toggle change to pending change request', async () => {
await changeToggle('production');
await verifyChangeRequestDialog('Enable feature toggle test in production');
});
}, 10000);

View File

@ -10,11 +10,11 @@ test('formatAddStrategyApiCode', () => {
'unleashUrl',
),
).toMatchInlineSnapshot(`
"curl --location --request POST 'unleashUrl/api/admin/projects/projectId/features/featureId/environments/environmentId/strategies' \\\\
--header 'Authorization: INSERT_API_KEY' \\\\
--header 'Content-Type: application/json' \\\\
"curl --location --request POST 'unleashUrl/api/admin/projects/projectId/features/featureId/environments/environmentId/strategies' \\
--header 'Authorization: INSERT_API_KEY' \\
--header 'Content-Type: application/json' \\
--data-raw '{
\\"id\\": \\"strategyId\\"
"id": "strategyId"
}'"
`);
});

View File

@ -37,18 +37,18 @@ test('formatUpdateStrategyApiCode', () => {
'unleashUrl',
),
).toMatchInlineSnapshot(`
"curl --location --request PUT 'unleashUrl/api/admin/projects/projectId/features/featureId/environments/environmentId/strategies/strategyId' \\\\
--header 'Authorization: INSERT_API_KEY' \\\\
--header 'Content-Type: application/json' \\\\
"curl --location --request PUT 'unleashUrl/api/admin/projects/projectId/features/featureId/environments/environmentId/strategies/strategyId' \\
--header 'Authorization: INSERT_API_KEY' \\
--header 'Content-Type: application/json' \\
--data-raw '{
\\"id\\": \\"a\\",
\\"name\\": \\"b\\",
\\"parameters\\": {
\\"a\\": 3,
\\"b\\": 2,
\\"c\\": 1
"id": "a",
"name": "b",
"parameters": {
"a": 3,
"b": 2,
"c": 1
},
\\"constraints\\": []
"constraints": []
}'"
`);
});

View File

@ -155,11 +155,11 @@ describe('NewFeatureStrategyCreate', () => {
'unleashUrl',
),
).toMatchInlineSnapshot(`
"curl --location --request POST 'unleashUrl/api/admin/projects/projectId/features/featureId/environments/environmentId/strategies' \\\\
--header 'Authorization: INSERT_API_KEY' \\\\
--header 'Content-Type: application/json' \\\\
"curl --location --request POST 'unleashUrl/api/admin/projects/projectId/features/featureId/environments/environmentId/strategies' \\
--header 'Authorization: INSERT_API_KEY' \\
--header 'Content-Type: application/json' \\
--data-raw '{
\\"id\\": \\"strategyId\\"
"id": "strategyId"
}'"
`);
});

View File

@ -37,18 +37,18 @@ test('formatUpdateStrategyApiCode', () => {
'unleashUrl',
),
).toMatchInlineSnapshot(`
"curl --location --request PUT 'unleashUrl/api/admin/projects/projectId/features/featureId/environments/environmentId/strategies/strategyId' \\\\
--header 'Authorization: INSERT_API_KEY' \\\\
--header 'Content-Type: application/json' \\\\
"curl --location --request PUT 'unleashUrl/api/admin/projects/projectId/features/featureId/environments/environmentId/strategies/strategyId' \\
--header 'Authorization: INSERT_API_KEY' \\
--header 'Content-Type: application/json' \\
--data-raw '{
\\"id\\": \\"a\\",
\\"name\\": \\"b\\",
\\"parameters\\": {
\\"a\\": 3,
\\"b\\": 2,
\\"c\\": 1
"id": "a",
"name": "b",
"parameters": {
"a": 3,
"b": 2,
"c": 1
},
\\"constraints\\": []
"constraints": []
}'"
`);
});

View File

@ -143,4 +143,4 @@ test('Filter table by project', async () => {
expect(window.location.href).toContain(
'?sort=createdAt&order=desc&offset=0&columns=&project=IS%3Aproject-b',
);
});
}, 10000);

View File

@ -4,5 +4,5 @@
"module": "esnext",
"moduleResolution": "node"
},
"include": ["vite.config.ts"]
"include": ["vite.config.mts"]
}

File diff suppressed because it is too large Load Diff