Skip to content

Commit 823ff01

Browse files
Preloader update (#255)
* update deps * no globalThis * remove preloader logic and simplify qwik loader * test no adapter check * inject for ssg files * loop over for Astro actions * add comment for actions * feat: update dependencies * fix: lint * changeset * changeset * update peer deps
1 parent e709a4e commit 823ff01

File tree

23 files changed

+886
-892
lines changed

23 files changed

+886
-892
lines changed

.changeset/wet-cobras-fall.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@qwikdev/create-astro": minor
3+
"@qwikdev/astro": minor
4+
---
5+
6+
🚀 Qwik Astro now supports the Qwik preloader! ⚡️
7+
8+
✨ Simplified loader mechanism
9+
🔄 Improved deployment support
10+
⚙️ Enhanced Astro actions integration
11+
12+
Read more in the upcoming blog post on the Qwik site.
13+
14+

apps/demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"astro": "astro"
1313
},
1414
"dependencies": {
15-
"@builder.io/qwik": "^1.12.0",
15+
"@builder.io/qwik": "^1.14.1",
1616
"@qwikdev/astro": "workspace:*",
17-
"astro": "5.1.1"
17+
"astro": "5.8.0"
1818
}
1919
}

apps/deno-demo/deno.lock

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

apps/deno-demo/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"dependencies": {
1414
"@astrojs/check": "^0.9.4",
1515
"@astrojs/deno": "^5.0.1",
16-
"@astrojs/react": "^4.1.2",
17-
"@builder.io/qwik": "^1.12.0",
16+
"@astrojs/react": "^4.3.0",
17+
"@builder.io/qwik": "^1.14.1",
1818
"@qwikdev/astro": "workspace:*",
1919
"@types/react": "^18.3.18",
2020
"@types/react-dom": "^18.3.5",
21-
"astro": "^5.1.1",
21+
"astro": "^5.8.0",
2222
"react": "^18.3.1",
2323
"react-dom": "^18.3.1",
2424
"typescript": "^5.7.2"

apps/node-demo/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"astro": "astro"
1313
},
1414
"dependencies": {
15-
"@astrojs/node": "9.0.0",
16-
"@astrojs/react": "4.1.2",
17-
"@builder.io/qwik": "^1.12.0",
15+
"@astrojs/node": "9.2.2",
16+
"@astrojs/react": "4.3.0",
17+
"@builder.io/qwik": "^1.14.1",
1818
"@qwikdev/astro": "workspace:*",
1919
"@types/react": "^18.3.18",
2020
"@types/react-dom": "^18.3.5",
21-
"astro": "5.1.1",
21+
"astro": "5.8.0",
2222
"react": "^18.3.1",
2323
"react-dom": "^18.3.1"
2424
}

apps/website/.astro/content.d.ts

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ declare module 'astro:content' {
3131
ContentEntryMap[C]
3232
>['slug'];
3333

34+
export type ReferenceDataEntry<
35+
C extends CollectionKey,
36+
E extends keyof DataEntryMap[C] = string,
37+
> = {
38+
collection: C;
39+
id: E;
40+
};
41+
export type ReferenceContentEntry<
42+
C extends keyof ContentEntryMap,
43+
E extends ValidContentEntrySlug<C> | (string & {}) = string,
44+
> = {
45+
collection: C;
46+
slug: E;
47+
};
48+
3449
/** @deprecated Use `getEntry` instead. */
3550
export function getEntryBySlug<
3651
C extends keyof ContentEntryMap,
@@ -61,19 +76,17 @@ declare module 'astro:content' {
6176
export function getEntry<
6277
C extends keyof ContentEntryMap,
6378
E extends ValidContentEntrySlug<C> | (string & {}),
64-
>(entry: {
65-
collection: C;
66-
slug: E;
67-
}): E extends ValidContentEntrySlug<C>
79+
>(
80+
entry: ReferenceContentEntry<C, E>,
81+
): E extends ValidContentEntrySlug<C>
6882
? Promise<CollectionEntry<C>>
6983
: Promise<CollectionEntry<C> | undefined>;
7084
export function getEntry<
7185
C extends keyof DataEntryMap,
7286
E extends keyof DataEntryMap[C] | (string & {}),
73-
>(entry: {
74-
collection: C;
75-
id: E;
76-
}): E extends keyof DataEntryMap[C]
87+
>(
88+
entry: ReferenceDataEntry<C, E>,
89+
): E extends keyof DataEntryMap[C]
7790
? Promise<DataEntryMap[C][E]>
7891
: Promise<CollectionEntry<C> | undefined>;
7992
export function getEntry<
@@ -99,16 +112,10 @@ declare module 'astro:content' {
99112

100113
/** Resolve an array of entry references from the same collection */
101114
export function getEntries<C extends keyof ContentEntryMap>(
102-
entries: {
103-
collection: C;
104-
slug: ValidContentEntrySlug<C>;
105-
}[],
115+
entries: ReferenceContentEntry<C, ValidContentEntrySlug<C>>[],
106116
): Promise<CollectionEntry<C>[]>;
107117
export function getEntries<C extends keyof DataEntryMap>(
108-
entries: {
109-
collection: C;
110-
id: keyof DataEntryMap[C];
111-
}[],
118+
entries: ReferenceDataEntry<C, keyof DataEntryMap[C]>[],
112119
): Promise<CollectionEntry<C>[]>;
113120

114121
export function render<C extends keyof AnyEntryMap>(
@@ -120,14 +127,8 @@ declare module 'astro:content' {
120127
): import('astro/zod').ZodEffects<
121128
import('astro/zod').ZodString,
122129
C extends keyof ContentEntryMap
123-
? {
124-
collection: C;
125-
slug: ValidContentEntrySlug<C>;
126-
}
127-
: {
128-
collection: C;
129-
id: keyof DataEntryMap[C];
130-
}
130+
? ReferenceContentEntry<C, ValidContentEntrySlug<C>>
131+
: ReferenceDataEntry<C, keyof DataEntryMap[C]>
131132
>;
132133
// Allow generic `string` to avoid excessive type errors in the config
133134
// if `dev` is not running to update as you edit.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.1.1","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"compressHTML\":true,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":1},\"server\":{\"open\":false,\"host\":true,\"port\":4321,\"streaming\":true},\"redirects\":{},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[],\"remotePatterns\":[]},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":\"shiki\",\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true},\"env\":{\"schema\":{},\"validateSecrets\":false},\"experimental\":{\"clientPrerender\":false,\"contentIntellisense\":false,\"responsiveImages\":false},\"legacy\":{\"collections\":false}}"]
1+
[["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.8.0","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"compressHTML\":true,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":1},\"server\":{\"open\":false,\"host\":true,\"port\":4321,\"streaming\":true,\"allowedHosts\":[]},\"redirects\":{},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[],\"remotePatterns\":[]},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":{\"type\":\"shiki\",\"excludeLangs\":[\"math\"]},\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true},\"env\":{\"schema\":{},\"validateSecrets\":false},\"experimental\":{\"clientPrerender\":false,\"contentIntellisense\":false,\"responsiveImages\":false,\"headingIdCompat\":false,\"preserveScriptOrder\":false},\"legacy\":{\"collections\":false}}"]

apps/website/.astro/icon.d.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Automatically generated by astro-icon
2-
// 632b0409652059c207b6b86f8296db3f6ecd60756c68a84c827176c38731cfb1
2+
// 84540ed8e7b9c390cb4d0998d44328d1bf7166256810f69a0ad8301b6593e6fe
33

44
declare module 'virtual:astro-icon' {
55
export type Icon =
@@ -149,6 +149,7 @@ declare module 'virtual:astro-icon' {
149149
| "lucide:battery-full"
150150
| "lucide:battery-low"
151151
| "lucide:battery-medium"
152+
| "lucide:battery-plus"
152153
| "lucide:battery-warning"
153154
| "lucide:beaker"
154155
| "lucide:bean"
@@ -374,6 +375,7 @@ declare module 'virtual:astro-icon' {
374375
| "lucide:circle-power"
375376
| "lucide:circle-slash"
376377
| "lucide:circle-slash-2"
378+
| "lucide:circle-small"
377379
| "lucide:circle-stop"
378380
| "lucide:circle-user"
379381
| "lucide:circle-user-round"
@@ -408,6 +410,7 @@ declare module 'virtual:astro-icon' {
408410
| "lucide:clock-alert"
409411
| "lucide:clock-arrow-down"
410412
| "lucide:clock-arrow-up"
413+
| "lucide:clock-fading"
411414
| "lucide:cloud"
412415
| "lucide:cloud-alert"
413416
| "lucide:cloud-cog"
@@ -681,6 +684,9 @@ declare module 'virtual:astro-icon' {
681684
| "lucide:frown"
682685
| "lucide:fuel"
683686
| "lucide:fullscreen"
687+
| "lucide:funnel"
688+
| "lucide:funnel-plus"
689+
| "lucide:funnel-x"
684690
| "lucide:gallery-horizontal"
685691
| "lucide:gallery-horizontal-end"
686692
| "lucide:gallery-thumbnails"
@@ -901,6 +907,9 @@ declare module 'virtual:astro-icon' {
901907
| "lucide:map-pin-x"
902908
| "lucide:map-pin-x-inside"
903909
| "lucide:map-pinned"
910+
| "lucide:map-plus"
911+
| "lucide:mars"
912+
| "lucide:mars-stroke"
904913
| "lucide:martini"
905914
| "lucide:maximize"
906915
| "lucide:maximize-2"
@@ -999,6 +1008,7 @@ declare module 'virtual:astro-icon' {
9991008
| "lucide:network"
10001009
| "lucide:newspaper"
10011010
| "lucide:nfc"
1011+
| "lucide:non-binary"
10021012
| "lucide:notebook"
10031013
| "lucide:notebook-pen"
10041014
| "lucide:notebook-tabs"
@@ -1183,6 +1193,7 @@ declare module 'virtual:astro-icon' {
11831193
| "lucide:sandwich"
11841194
| "lucide:satellite"
11851195
| "lucide:satellite-dish"
1196+
| "lucide:saudi-riyal"
11861197
| "lucide:save"
11871198
| "lucide:save-all"
11881199
| "lucide:save-off"
@@ -1239,6 +1250,7 @@ declare module 'virtual:astro-icon' {
12391250
| "lucide:shield-off"
12401251
| "lucide:shield-plus"
12411252
| "lucide:shield-question"
1253+
| "lucide:shield-user"
12421254
| "lucide:shield-x"
12431255
| "lucide:ship"
12441256
| "lucide:ship-wheel"
@@ -1248,6 +1260,7 @@ declare module 'virtual:astro-icon' {
12481260
| "lucide:shopping-cart"
12491261
| "lucide:shovel"
12501262
| "lucide:shower-head"
1263+
| "lucide:shrimp"
12511264
| "lucide:shrink"
12521265
| "lucide:shrub"
12531266
| "lucide:shuffle"
@@ -1339,6 +1352,7 @@ declare module 'virtual:astro-icon' {
13391352
| "lucide:square-plus"
13401353
| "lucide:square-power"
13411354
| "lucide:square-radical"
1355+
| "lucide:square-round-corner"
13421356
| "lucide:square-scissors"
13431357
| "lucide:square-sigma"
13441358
| "lucide:square-slash"
@@ -1446,6 +1460,7 @@ declare module 'virtual:astro-icon' {
14461460
| "lucide:train-front-tunnel"
14471461
| "lucide:train-track"
14481462
| "lucide:tram-front"
1463+
| "lucide:transgender"
14491464
| "lucide:trash"
14501465
| "lucide:trash-2"
14511466
| "lucide:tree-deciduous"
@@ -1510,6 +1525,8 @@ declare module 'virtual:astro-icon' {
15101525
| "lucide:vault"
15111526
| "lucide:vegan"
15121527
| "lucide:venetian-mask"
1528+
| "lucide:venus"
1529+
| "lucide:venus-and-mars"
15131530
| "lucide:vibrate"
15141531
| "lucide:vibrate-off"
15151532
| "lucide:video"

apps/website/.astro/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"_variables": {
3-
"lastUpdateCheck": 1741474475166
3+
"lastUpdateCheck": 1747946665529
44
}
55
}

apps/website/.astro/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/// <reference types="astro/client" />
2+
/// <reference path="content.d.ts" />

0 commit comments

Comments
 (0)