Skip to content

Commit 715530e

Browse files
authored
chore(package.json): update to qwik v1.7.0 (#881)
1 parent b81ce7c commit 715530e

File tree

5 files changed

+62
-54
lines changed

5 files changed

+62
-54
lines changed

apps/website/src/components/header/header.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export default component$(({ showVersion = false }: HeaderProps) => {
218218
);
219219
});
220220

221-
const DarkModeToggle = component$<PropsOf<'button'>>(({ ...props }) => {
221+
const DarkModeToggle = component$<PropsOf<typeof Button>>(({ ...props }) => {
222222
const { theme, setTheme } = useTheme();
223223
const switchLightDark = $((input: string | string[]): string | string[] | undefined => {
224224
const switchWord = (word: string): string =>
@@ -234,7 +234,6 @@ const DarkModeToggle = component$<PropsOf<'button'>>(({ ...props }) => {
234234
return (
235235
<Button
236236
{...props}
237-
type="button"
238237
aria-label="Toggle dark mode"
239238
size="icon"
240239
look="ghost"

apps/website/src/components/showcase/showcase.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { Component, PropsOf, component$, useSignal, useTask$ } from '@builder.io/qwik';
1+
import { Component, component$, useSignal, useTask$ } from '@builder.io/qwik';
22
import { useLocation } from '@builder.io/qwik-city';
33
import { isDev } from '@builder.io/qwik/build';
44
import { Tabs } from '@qwik-ui/headless';
55
import { Highlight } from '../highlight/highlight';
66
import { metaGlobComponents, rawComponents } from './component-imports';
77

8-
type ShowcaseProps = PropsOf<'div'> & {
8+
type ShowcaseProps = {
99
name?: string;
1010
vertical?: boolean;
1111
};

apps/website/vite.config.ts

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,30 @@ import { qwikVite } from '@builder.io/qwik/optimizer';
33
import { qwikNxVite } from 'qwik-nx/plugins';
44
import { defineConfig } from 'vite';
55
import tsconfigPaths from 'vite-tsconfig-paths';
6-
import { isDev } from '@builder.io/qwik/build';
76
import { recmaProvideComponents } from './recma-provide-components';
87

98
export default defineConfig(async () => {
109
const { default: rehypePrettyCode } = await import('rehype-pretty-code');
1110
const { visit } = await import('unist-util-visit');
12-
let output: any = {};
13-
if (!isDev) {
14-
// Client-specific configuration
15-
output = {
16-
// Customize the client build structure
17-
entryFileNames: ({ name }: any) => {
18-
if (name.startsWith('entry')) {
19-
return '[name].js';
20-
}
21-
return `build/[name]-[hash].js`;
22-
},
23-
chunkFileNames: () => {
24-
return `build/[name]-[hash].js`;
25-
},
26-
assetFileNames: `build/[name]-[hash].[ext]`,
27-
};
28-
}
11+
12+
// Commented out for qwik v1.7.0
13+
// let output: any = {};
14+
// if (!isDev) {
15+
// // Client-specific configuration
16+
// output = {
17+
// // Customize the client build structure
18+
// entryFileNames: ({ name }: any) => {
19+
// if (name.startsWith('entry')) {
20+
// return '[name].js';
21+
// }
22+
// return `build/[name]-[hash].js`;
23+
// },
24+
// chunkFileNames: () => {
25+
// return `build/[name]-[hash].js`;
26+
// },
27+
// assetFileNames: `build/[name]-[hash].[ext]`,
28+
// };
29+
// }
2930

3031
return {
3132
plugins: [
@@ -94,9 +95,10 @@ export default defineConfig(async () => {
9495
},
9596
build: {
9697
target: 'es2022',
97-
rollupOptions: {
98-
output,
99-
},
98+
// Commented out for qwik v1.7.0
99+
// rollupOptions: {
100+
// output,
101+
// },
100102
},
101103
preview: {
102104
headers: {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"packageManager": "[email protected]",
4242
"devDependencies": {
4343
"@axe-core/playwright": "^4.9.1",
44-
"@builder.io/qwik": "^1.5.5",
45-
"@builder.io/qwik-city": "^1.5.5",
44+
"@builder.io/qwik": "^1.7.0",
45+
"@builder.io/qwik-city": "^1.7.0",
4646
"@changesets/cli": "^2.27.3",
4747
"@changesets/get-github-info": "^0.6.0",
4848
"@changesets/types": "^6.0.0",
@@ -102,7 +102,7 @@
102102
"eslint-config-prettier": "^9.1.0",
103103
"eslint-plugin-cypress": "^3.2.0",
104104
"eslint-plugin-playwright": "^1.6.2",
105-
"eslint-plugin-qwik": "^1.5.5",
105+
"eslint-plugin-qwik": "^1.7.0",
106106
"focus-trap": "7.5.4",
107107
"husky": "^9.0.11",
108108
"jest": "^29.7.0",

pnpm-lock.yaml

Lines changed: 33 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)