Skip to content

Commit 1bc611f

Browse files
authored
Merge pull request #7380 from QwikDev/v2-merge-main
chore: v2 merge main
2 parents 854f95b + f811acf commit 1bc611f

File tree

11 files changed

+241
-87
lines changed

11 files changed

+241
-87
lines changed

.changeset/neat-maps-tickle.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

flake.lock

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"dependencyTypes": [
6868
"dev"
6969
],
70-
"pinVersion": "1.48.1"
70+
"pinVersion": "1.50.1"
7171
}
7272
],
7373
"semverGroups": [
@@ -98,7 +98,7 @@
9898
"@napi-rs/triples": "1.2.0",
9999
"@node-rs/helper": "1.6.0",
100100
"@octokit/action": "6.1.0",
101-
"@playwright/test": "1.48.1",
101+
"@playwright/test": "1.50.1",
102102
"@qwik.dev/core": "workspace:*",
103103
"@qwik.dev/router": "workspace:*",
104104
"@types/brotli": "1.3.4",

packages/create-qwik/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
## 2.0.0-alpha.0
1818

19+
## 1.12.1
20+
1921
## 1.12.0
2022

2123
## 1.11.0

packages/docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"qwik-image": "0.0.16",
4545
"react": "18.3.1",
4646
"react-dom": "18.3.1",
47-
"rehype-pretty-code": "0.11.0",
48-
"shiki": "0.14.7",
47+
"rehype-pretty-code": "0.14.0",
48+
"shiki": "1.29.1",
4949
"snarkdown": "2.0.0",
5050
"tailwindcss": "3.4.6",
5151
"terser": "5.37.0",

packages/docs/src/routes/docs/docs.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ h6 a:hover .icon {
206206
font-weight: bold;
207207
}
208208

209+
[data-highlighted-chars] {
210+
background: #ac7ef4;
211+
}
212+
209213
.docs article pre {
210214
padding: 18px 15px;
211215
overflow: auto;

packages/eslint-plugin-qwik/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
## 2.0.0-alpha.0
1818

19+
## 1.12.1
20+
1921
## 1.12.0
2022

2123
## 1.11.0

packages/qwik-router/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,31 @@
2929

3030
## 1.11.0
3131

32+
## 1.12.1
33+
34+
### Patch Changes
35+
36+
- 🐞🩹 MDX content now accepts a prop of type `components` that lets you use your own custom components (by [@double-thinker](https://github.com/double-thinker) in [#7277](https://github.com/QwikDev/qwik/pull/7277))
37+
38+
To add custom components to your MDX content, you can now do this:
39+
40+
```tsx
41+
// routes/example/index.tsx
42+
import Content from './markdown.mdx';
43+
import MyComponent from '../../components/my-component/my-component';
44+
import { component$ } from '@builder.io/qwik';
45+
46+
export default component$(() => <Content components={{ MyComponent }} />);
47+
```
48+
49+
You can also use props in JS expressions. See https://mdxjs.com/docs/using-mdx/#props
50+
51+
- 🐞🩹 mdx not rendering (by [@shairez](https://github.com/shairez) in [#7168](https://github.com/QwikDev/qwik/pull/7168))
52+
53+
- 📃 added a "Qwik for Mobile" guide to build iOS and Android Qwik apps (by [@srapport](https://github.com/srapport) in [#7205](https://github.com/QwikDev/qwik/pull/7205))
54+
55+
- 🐞🩹 some qrls weren't fetched correctly on page load (by [@shairez](https://github.com/shairez) in [#7286](https://github.com/QwikDev/qwik/pull/7286))
56+
3257
## 1.12.0
3358

3459
### Patch Changes

packages/qwik/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,26 @@
236236

237237
That way you can run `qwik add --projectDir=packages/my-package` and it will add the feature to the specified project/package (sub) folder, instead of the root folder.
238238

239+
## 1.12.1
240+
241+
### Patch Changes
242+
243+
- 📃 update turso integration keywords, add contributor (by [@A2-NieR](https://github.com/A2-NieR) in [#7215](https://github.com/QwikDev/qwik/pull/7215))
244+
245+
- ✨ tailwindcss v4 integration (by [@sreeisalso](https://github.com/sreeisalso) in [#7274](https://github.com/QwikDev/qwik/pull/7274))
246+
247+
- 🐞🩹 remove usage of `computedStyleMap` (by [@Varixo](https://github.com/Varixo) in [#7252](https://github.com/QwikDev/qwik/pull/7252))
248+
249+
- 📃 remove shop (by [@gioboa](https://github.com/gioboa) in [#7221](https://github.com/QwikDev/qwik/pull/7221))
250+
251+
- 🐞🩹 error in the middleware occurs 404 (by [@JerryWu1234](https://github.com/JerryWu1234) in [#6951](https://github.com/QwikDev/qwik/pull/6951))
252+
253+
- 🐞🩹 changed turso createClient import to work with file urls, updated docs note with info & link to the corresponding section in the turso docs (by [@A2-NieR](https://github.com/A2-NieR) in [#7211](https://github.com/QwikDev/qwik/pull/7211))
254+
255+
- 📃 add Qwik blog + articles (by [@gioboa](https://github.com/gioboa) in [#7214](https://github.com/QwikDev/qwik/pull/7214))
256+
257+
- 🐞🩹 input's value is string when passing number (by [@JerryWu1234](https://github.com/JerryWu1234) in [#7249](https://github.com/QwikDev/qwik/pull/7249))
258+
239259
## 1.12.0
240260

241261
### Minor Changes

packages/qwik/src/optimizer/src/plugins/plugin.ts

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ export function createPlugin(optimizerOptions: OptimizerOptions = {}) {
8989
const serverTransformedOutputs = new Map<string, [TransformModule, string]>();
9090
const parentIds = new Map<string, string>();
9191

92+
const npmChunks = new Map<string, number>();
93+
9294
let internalOptimizer: Optimizer | null = null;
9395
let linter: QwikLinter | undefined = undefined;
9496
let diagnosticsCallback: (
@@ -403,6 +405,7 @@ export function createPlugin(optimizerOptions: OptimizerOptions = {}) {
403405
debug(`transformedOutputs.clear()`);
404406
clientTransformedOutputs.clear();
405407
serverTransformedOutputs.clear();
408+
npmChunks.clear();
406409
};
407410

408411
const getIsServer = (viteOpts?: { ssr?: boolean }) => {
@@ -916,8 +919,30 @@ export const manifest = ${JSON.stringify(manifest)};\n`;
916919
// order by discovery time, so that related segments are more likely to group together
917920
function manualChunks(id: string, { getModuleInfo }: Rollup.ManualChunkMeta) {
918921
const module = getModuleInfo(id)!;
919-
const segment = module.meta.segment as SegmentAnalysis | undefined;
920-
return segment?.entry;
922+
const segment = module.meta.segment;
923+
924+
// We need to specifically return segment.entry for qwik-insights
925+
if (segment) {
926+
return segment.entry;
927+
}
928+
929+
const moduleIndex = id.indexOf('node_modules');
930+
if (moduleIndex === -1) {
931+
return;
932+
}
933+
934+
// Prevent over-prefetching, if a module is too big we move it to a separate chunk.
935+
const modulePath = id.slice(moduleIndex + 'node_modules'.length);
936+
const moduleName = id.startsWith('@')
937+
? modulePath.split('/').slice(0, 2).join('_')
938+
: modulePath.slice(0, modulePath.indexOf('/'));
939+
940+
let size = module.code?.length || 0;
941+
size += npmChunks.get(moduleName) || 0;
942+
npmChunks.set(moduleName, size);
943+
if (size > 10_000) {
944+
return moduleName;
945+
}
921946
}
922947

923948
return {

0 commit comments

Comments
 (0)