Skip to content

Commit 466ad39

Browse files
committed
Merge remote-tracking branch 'origin/main' into v2-merge-main
2 parents 854f95b + 96b533a commit 466ad39

File tree

9 files changed

+219
-66
lines changed

9 files changed

+219
-66
lines changed

.changeset/neat-maps-tickle.md

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

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: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,32 @@ export const manifest = ${JSON.stringify(manifest)};\n`;
916916
// order by discovery time, so that related segments are more likely to group together
917917
function manualChunks(id: string, { getModuleInfo }: Rollup.ManualChunkMeta) {
918918
const module = getModuleInfo(id)!;
919-
const segment = module.meta.segment as SegmentAnalysis | undefined;
920-
return segment?.entry;
919+
const segment = module.meta.segment;
920+
921+
// We need to specifically return segment.entry for qwik-insights
922+
if (segment) {
923+
return segment.entry;
924+
}
925+
926+
if (id.includes('node_modules')) {
927+
return null;
928+
}
929+
930+
// Patch to prevent over-prefetching, we must clearly separate .tsx/.jsx chunks so that rollup doesn't mix random imports into non-entry files such as hooks.
931+
// Maybe a better solution would be to mark those files as entires earlier in the chain so that we can remove this check and the one above altogether.
932+
// We check .(tsx|jsx) after node_modules in case some node_modules end with .jsx or .tsx.
933+
if (/\.(tsx|jsx)$/.test(id)) {
934+
const optimizer = getOptimizer();
935+
const path = optimizer.sys.path;
936+
const relativePath = path.relative(optimizer.sys.cwd(), id);
937+
const sanitizedPath = relativePath
938+
.replace(/^(\.\.\/)+/, '')
939+
.replace(/^\/+/, '')
940+
.replace(/\//g, '-');
941+
return sanitizedPath; // We return sanitizedPath for qwikVite plugin with debug:true
942+
}
943+
944+
return null;
921945
}
922946

923947
return {

0 commit comments

Comments
 (0)