Skip to content

Commit 55bf01b

Browse files
committed
Checkpoint from VS Code for coding agent session
1 parent 11bcf73 commit 55bf01b

File tree

6 files changed

+285
-52
lines changed

6 files changed

+285
-52
lines changed

packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_drop_side_effects.snap

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
source: packages/qwik/src/optimizer/core/src/test.rs
3-
assertion_line: 821
3+
assertion_line: 822
44
expression: output
5-
snapshot_kind: text
65
---
76
==INPUT==
87

@@ -39,11 +38,16 @@ export default component$(() => {
3938
============================= test.js ==
4039

4140
import { serverQrl } from "@qwik.dev/router";
41+
import { qrlDEV } from "@qwik.dev/core";
4242
import { _noopQrlDEV } from "@qwik.dev/core";
4343
import { componentQrl } from "@qwik.dev/core";
44-
import { qrlDEV } from "@qwik.dev/core";
4544
const i_LUXeXe0DQrg = ()=>import("./test.tsx_test_component_LUXeXe0DQrg");
45+
import { clientSupabase } from 'supabase';
46+
import { Client } from 'openai';
47+
import { secret } from './secret';
4648
import { sideEffect } from './secret';
49+
const supabase = clientSupabase();
50+
const dfd = new Client(secret);
4751
(function() {
4852
console.log('run');
4953
})();
@@ -63,9 +67,11 @@ export default /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(i_LUXeXe0DQrg, "t
6367
hi: 575,
6468
displayName: "test.tsx_test_component"
6569
}));
70+
export { dfd as _auto_dfd };
71+
export { supabase as _auto_supabase };
6672

6773

68-
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;;;AAMA,SAAS,UAAU,QAAQ,WAAW;AAKtC,CAAC;IACA,QAAQ,GAAG,CAAC;AACZ,CAAC;AACD,CAAC;IACD,QAAQ,GAAG,CAAC;AACZ,CAAC;AAEF;AAEA,OAAO,MAAM,MAAM;;;;;IAEhB;AAEH,6BAAe;;;;;IAIX\"}")
74+
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;;;AAGA,SAAS,cAAc,QAAQ,WAAW;AAC1C,SAAS,MAAM,QAAQ,SAAS;AAChC,SAAS,MAAM,QAAQ,WAAW;AAClC,SAAS,UAAU,QAAQ,WAAW;AAEtC,MAAM,WAAW;AACjB,MAAM,MAAM,IAAI,OAAO;AAEvB,CAAC;IACA,QAAQ,GAAG,CAAC;AACZ,CAAC;AACD,CAAC;IACD,QAAQ,GAAG,CAAC;AACZ,CAAC;AAEF;AAEA,OAAO,MAAM,MAAM;;;;;IAEhB;AAEH,6BAAe;;;;;IAIX\"}")
6975
============================= test.tsx_test_component_button_onClick_DGk9xLyRokA.js (ENTRY POINT)==
7076

7177
import { api } from "./test";
@@ -93,6 +99,36 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma
9399
]
94100
}
95101
*/
102+
============================= test.tsx_api_server_JonPp043gH0.js (ENTRY POINT)==
103+
104+
import { _auto_dfd as dfd } from "./test";
105+
import { _auto_supabase as supabase } from "./test";
106+
export const api_server_JonPp043gH0 = ()=>{
107+
supabase.from('ffg').do(dfd);
108+
};
109+
110+
111+
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;sCAoB2B;IAC1B,SAAS,IAAI,CAAC,OAAO,EAAE,CAAC;AACzB\"}")
112+
/*
113+
{
114+
"origin": "test.tsx",
115+
"name": "api_server_JonPp043gH0",
116+
"entry": null,
117+
"displayName": "test.tsx_api_server",
118+
"hash": "JonPp043gH0",
119+
"canonicalFilename": "test.tsx_api_server_JonPp043gH0",
120+
"path": "",
121+
"extension": "js",
122+
"parent": null,
123+
"ctxKind": "function",
124+
"ctxName": "server$",
125+
"captures": false,
126+
"loc": [
127+
433,
128+
473
129+
]
130+
}
131+
*/
96132
============================= test.tsx_test_component_LUXeXe0DQrg.js (ENTRY POINT)==
97133

98134
import { _jsxSorted } from "@qwik.dev/core";

packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_noop_dev_mode.snap

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
source: packages/qwik/src/optimizer/core/src/test.rs
3-
assertion_line: 3814
3+
assertion_line: 3815
44
expression: output
5-
snapshot_kind: text
65
---
76
==INPUT==
87

@@ -45,6 +44,39 @@ export const App = /*#__PURE__*/ componentQrl(/*#__PURE__*/ qrlDEV(i_ckEPmXZlub0
4544

4645

4746
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";;;AAGA,OAAO,MAAM,oBAAM;;;;;IAoBhB\"}")
47+
============================= test.tsx_App_component_Cmp_p_shouldRemove_uU0MG0jvQD4.js (ENTRY POINT)==
48+
49+
import { useLexicalScope } from "@qwik.dev/core";
50+
export const App_component_Cmp_p_shouldRemove_uU0MG0jvQD4 = ()=>{
51+
const [stuff] = useLexicalScope();
52+
return stuff.count;
53+
};
54+
55+
56+
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";4DAgBmB;;WAAM,MAAM,KAAK\"}")
57+
/*
58+
{
59+
"origin": "test.tsx",
60+
"name": "App_component_Cmp_p_shouldRemove_uU0MG0jvQD4",
61+
"entry": null,
62+
"displayName": "test.tsx_App_component_Cmp_p_shouldRemove",
63+
"hash": "uU0MG0jvQD4",
64+
"canonicalFilename": "test.tsx_App_component_Cmp_p_shouldRemove_uU0MG0jvQD4",
65+
"path": "",
66+
"extension": "js",
67+
"parent": "App_component_ckEPmXZlub0",
68+
"ctxKind": "eventHandler",
69+
"ctxName": "shouldRemove$",
70+
"captures": true,
71+
"loc": [
72+
350,
73+
367
74+
],
75+
"captureNames": [
76+
"stuff"
77+
]
78+
}
79+
*/
4880
============================= test.tsx_App_component_ckEPmXZlub0.js (ENTRY POINT)==
4981

5082
import { _jsxSorted } from "@qwik.dev/core";
@@ -116,6 +148,66 @@ Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"ma
116148
]
117149
}
118150
*/
151+
============================= test.tsx_App_component_serverStuff_ebyHaP15ytQ.js (ENTRY POINT)==
152+
153+
import { useLexicalScope } from "@qwik.dev/core";
154+
export const App_component_serverStuff_ebyHaP15ytQ = async ()=>{
155+
const [stuff] = useLexicalScope();
156+
// should be removed but keep scope
157+
console.log(stuff.count);
158+
};
159+
160+
161+
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\";qDAKc;;IACZ,mCAAmC;IACnC,QAAQ,GAAG,CAAC,MAAM,KAAK\"}")
162+
/*
163+
{
164+
"origin": "test.tsx",
165+
"name": "App_component_serverStuff_ebyHaP15ytQ",
166+
"entry": null,
167+
"displayName": "test.tsx_App_component_serverStuff",
168+
"hash": "ebyHaP15ytQ",
169+
"canonicalFilename": "test.tsx_App_component_serverStuff_ebyHaP15ytQ",
170+
"path": "",
171+
"extension": "js",
172+
"parent": "App_component_ckEPmXZlub0",
173+
"ctxKind": "function",
174+
"ctxName": "serverStuff$",
175+
"captures": true,
176+
"loc": [
177+
154,
178+
235
179+
],
180+
"captureNames": [
181+
"stuff"
182+
]
183+
}
184+
*/
185+
============================= test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto.js (ENTRY POINT)==
186+
187+
export const App_component_Cmp_p_onClick_vuXzfUTkpto = ()=>console.log('warn');
188+
189+
190+
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/test.tsx\"],\"names\":[],\"mappings\":\"uDAiBc,IAAM,QAAQ,GAAG,CAAC\"}")
191+
/*
192+
{
193+
"origin": "test.tsx",
194+
"name": "App_component_Cmp_p_onClick_vuXzfUTkpto",
195+
"entry": null,
196+
"displayName": "test.tsx_App_component_Cmp_p_onClick",
197+
"hash": "vuXzfUTkpto",
198+
"canonicalFilename": "test.tsx_App_component_Cmp_p_onClick_vuXzfUTkpto",
199+
"path": "",
200+
"extension": "js",
201+
"parent": "App_component_ckEPmXZlub0",
202+
"ctxKind": "eventHandler",
203+
"ctxName": "onClick$",
204+
"captures": false,
205+
"loc": [
206+
383,
207+
408
208+
]
209+
}
210+
*/
119211
== DIAGNOSTICS ==
120212

121213
[]

packages/qwik/src/optimizer/core/src/snapshots/qwik_core__test__example_strip_client_code.snap

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
source: packages/qwik/src/optimizer/core/src/test.rs
3-
assertion_line: 1929
3+
assertion_line: 1930
44
expression: output
5-
snapshot_kind: text
65
---
76
==INPUT==
87

@@ -28,6 +27,7 @@ export const Parent = component$(() => {
2827

2928
useTask$(() => {
3029
// Code
30+
runSomething();
3131
});
3232

3333
return (
@@ -50,11 +50,11 @@ import "./keep";
5050
import "../keep2";
5151
import { componentQrl } from "@qwik.dev/core";
5252
import { useClientMountQrl } from "@qwik.dev/core";
53+
import { useLexicalScope } from "@qwik.dev/core";
54+
import { inlinedQrl } from "@qwik.dev/core";
5355
import { _noopQrl } from "@qwik.dev/core";
5456
import { useTaskQrl } from "@qwik.dev/core";
55-
import { inlinedQrl } from "@qwik.dev/core";
5657
import { _wrapProp } from "@qwik.dev/core";
57-
import { useLexicalScope } from "@qwik.dev/core";
5858
import { _jsxSorted } from "@qwik.dev/core";
5959
import { useStore } from '@qwik.dev/core';
6060
export const Parent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(()=>{
@@ -66,7 +66,8 @@ export const Parent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(()=>{
6666
state
6767
]));
6868
useTaskQrl(/*#__PURE__*/ inlinedQrl(()=>{
69-
// Code
69+
// Code
70+
runSomething();
7071
}, "Parent_component_useTask_ngmvcygWux8"));
7172
return /*#__PURE__*/ _jsxSorted("div", null, {
7273
shouldRemove$: /*#__PURE__*/ _noopQrl("Parent_component_div_shouldRemove_EBj69wTX1do", [
@@ -90,7 +91,7 @@ export const Parent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(()=>{
9091
}, "Parent_component_t6Wy3C0Q0XM"));
9192

9293

93-
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/components/component.tsx\"],\"names\":[],\"mappings\":\";;;;;;;;;;AACA,SAAsC,QAAQ,QAAkB,iBAAiB;AAQjF,OAAO,MAAM,uBAAS,sCAAW;IAChC,MAAM,QAAQ,SAAS;QACtB,MAAM;IACP;IAEA,qBAAqB;IACrB;;;IAKA,oCAAS;IACR,OAAO;IACR;IAEA,qBACC,WAAC;QACA,aAAa;;;QACb,QAAQ;;;;sBAER,WAAC;YACA,QAAQ,2BAAE,IAAM,QAAQ,GAAG,CAAC;YAC5B,OAAO,2BAAE;;uBAAM,MAAM,IAAI;;;;;kBAEzB;;AAGJ,oCAAG\"}")
94+
Some("{\"version\":3,\"sources\":[\"/user/qwik/src/components/component.tsx\"],\"names\":[],\"mappings\":\";;;;;;;;;;AACA,SAAsC,QAAQ,QAAkB,iBAAiB;AAQjF,OAAO,MAAM,uBAAS,sCAAW;IAChC,MAAM,QAAQ,SAAS;QACtB,MAAM;IACP;IAEA,qBAAqB;IACrB;;;IAKA,oCAAS;QACR,OAAO;QACP;IACD;IAEA,qBACC,WAAC;QACA,aAAa;;;QACb,QAAQ;;;;sBAER,WAAC;YACA,QAAQ,2BAAE,IAAM,QAAQ,GAAG,CAAC;YAC5B,OAAO,2BAAE;;uBAAM,MAAM,IAAI;;;;;kBAEzB;;AAGJ,oCAAG\"}")
9495
== DIAGNOSTICS ==
9596

9697
[]

0 commit comments

Comments
 (0)