-
Notifications
You must be signed in to change notification settings - Fork 1.4k
refactor: v2 release #6903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wmertens
wants to merge
1,762
commits into
main
Choose a base branch
from
build/v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+154,831
−88,510
Open
refactor: v2 release #6903
Changes from 250 commits
Commits
Show all changes
1762 commits
Select commit
Hold shift + click to select a range
4dfcb8e
refactor(core): don't use JSX handler props in JsxNode
wmertens b22daa2
refactor: use constant event names prefixes
Varixo 983d068
fix: correct event rendering and attaching
Varixo dbcccb2
fix: jsx event property handling
Varixo 97fd9fa
fix: some small issues
wmertens 66a3cc8
fix(jsx): sanity in event case handling
wmertens b108221
fix: registering use-on events
Varixo be7e6fb
fix: dispatch event on vnode
Varixo e50f10e
docs: document event kebabcase
wmertens 1e9e6c7
useOn: accept event names as-is
wmertens 77f228e
fix(core DOM): add selector targets for scoped events on new elements
wmertens 408c018
fix(qwikloader): listen on the case variations
wmertens 61208e1
fix(core): actual sane casing in events
wmertens 61bec49
Merge pull request #8060 from QwikDev/v2-fix-repl
wmertens 76fcd68
Version Packages (beta)
github-actions[bot] e3e6a78
chore: pnpm api.update
wmertens d25be24
fix(ssr): emit qwikloader only in body if html
wmertens 100cf87
Merge pull request #8091 from QwikDev/fix-inline
wmertens 2403f6a
fix: useId should genereate different id for ssr
Varixo 00149b5
Merge pull request #8094 from QwikDev/v2-fix-use-id-ssr
wmertens 4827d2e
Merge branch 'build/v2' into changeset-release/build/v2
wmertens 3de1bac
feat: add resolve method for async computed
Varixo e1ca73e
test: add eslint rule for resolving async computed
Varixo 5432199
feat: make async computed resolve return value
Varixo 65ae071
Merge pull request #8033 from QwikDev/changeset-release/build/v2
wmertens b14fe22
Merge pull request #7881 from QwikDev/v2-async-read-value
wmertens d0012c5
Merge pull request #8087 from QwikDev/v2-fix-apply-journal
wmertens 48711d0
fix(router): don't deduplicate server args
wmertens 2f50042
Merge pull request #8098 from QwikDev/fix-serverimBHsargs
wmertens b8b0046
Merge branch 'QwikDev:build/v2' into build/v2
JerryWu1234 22a9355
feat(docs): integrate @qwik.dev/devtools into documentation site
JerryWu1234 83db141
solve conflict
JerryWu1234 60cabc9
Merge pull request #8099 from JerryWu1234/integrate_qwik_devtool
wmertens 2a587f8
Merge remote-tracking branch 'origin/main' into v2-merge-main
wmertens e0f764c
fix(router): properly init state browser-side
wmertens 2807b3b
fix(docs): make Root non-reactive
wmertens c052a4c
refactor(router): make spa-init more compressible
wmertens e3cbdd7
fix(serdes): inflate store target, not store
wmertens 3eb3ca5
fix(docs): move reactive head to own component
wmertens bd53d10
fix: checking if object is serializable in dev mode
Varixo 3748a24
Merge pull request #8101 from QwikDev/v2-merge-main
wmertens df3236d
Merge pull request #8106 from QwikDev/v2-fix-verify-serializable
wmertens f85c71a
fix(core): getCaptured was returning an old reference
wmertens d16a3af
fix(optimizer): ignore null inlinedQrl
wmertens 5b18552
chore(core): document inlinedQrl
wmertens 3bb30c1
refactor(router): don't send qrl for server$ unless needed for scope
wmertens 6795710
Merge pull request #8109 from QwikDev/document-inlinedqrl
wmertens 5f1c26b
feat: support promises as attributes
Varixo 364937f
fix: diffing text node and virtual
Varixo 48c0d87
fix: diffing async computed and promise inside signal
Varixo a369eeb
chore: add changesets
Varixo 909a47c
fix: dont block qrl chores
Varixo 1912f77
Merge pull request #8119 from QwikDev/v2-dont-block-qrls
wmertens fad941d
fix(serdes): preload qrls work again
wmertens f74286c
Merge pull request #8121 from QwikDev/v2-fix-preload-qrls
wmertens 0bd2c88
perf(qrl): remove needless retryOnPromise
wmertens 3d5e723
qrl: test `this` binding
wmertens c32fc64
fix(serdes): actually import preload qrls on inflate
wmertens 06e6c5b
Merge pull request #8122 from QwikDev/v2-fix-preload-qrls
wmertens 2c85df4
fix: don't emit script before qwik style element
Varixo 6c97a5f
fix(asyncComputed): only throw once
wmertens 3454e15
chore: lint++
wmertens 349dcc6
Merge pull request #8123 from QwikDev/v2-fix-preload-qrls
wmertens 0b2db41
chore: remove noScriptHere counter
Varixo d433c68
Merge pull request #8124 from QwikDev/v2-fix-adding-script-before-style
wmertens e116efc
Merge pull request #8117 from QwikDev/v2-attribute-promises
wmertens 13c5cce
Version Packages (beta)
github-actions[bot] 310dbe3
Merge branch 'build/v2' into changeset-release/build/v2
wmertens cb19ff7
Merge pull request #8095 from QwikDev/changeset-release/build/v2
wmertens b367c15
outDir for qwikVite plugin now properly points to the manifest aswell
gnemanja 2d69c94
Changeset
gnemanja 2d950c1
pnpm fmt - Changes
gnemanja ff4cb6b
Removed uneccessary code
gnemanja 8c7943d
chore: pnpm dedupe
gnemanja ce12588
Merge pull request #8127 from gnemanja/v2-out-dir-fix
wmertens d8767fb
fix: serializing reused qrl
Varixo 338ac31
Merge pull request #8131 from QwikDev/v2-fix-serialize-capture-ref
wmertens 06ec88f
fix(types): inside a component the handlers are only QRLs
wmertens dd12f2f
refactor(types): fix exports, correct scopes etc
wmertens a303212
fix(core): qresume event + fix no-resume
wmertens b4b72b8
chore: pnpm api.update
wmertens beab2a0
fix(types): infer types through sync$
wmertens ab5c685
fix: correct @builder.io/qwik override to local
wmertens 89a07ff
Merge pull request #8134 from QwikDev/v2-types
wmertens ee94e34
feat: change behavior of useAsyncComputed
Varixo 6ad11bb
feat: update eslint rules for useAsyncComputed
Varixo 51b37f0
feat: update route loader types
Varixo 0a69921
chore: add changeset
Varixo cecfdc5
chore: pnpm dedupe
Varixo ce512cc
feat: implement cleanup on destroy for async computed
Varixo 4978f20
feat: run cleanup function for async computed before computation
Varixo 6c0c2d0
fix: cleanup store and signals during vnode remove
Varixo 0aed379
feat: extend eslint rule for route loaders
Varixo 07b3729
fix: make sure new promise during the next computation
Varixo 3bbd3d8
chore: add changesets
Varixo 7c77b38
chore: use native node to run ts scripts
Varixo e20e531
fix: allow to modify inline component's children component props
Varixo da59cf0
Merge pull request #8141 from QwikDev/v2-fix-component-prop-set
wmertens 00ca33e
Merge pull request #8138 from QwikDev/v2-run-build-node-native
wmertens f9d925c
refactor: replace cross-spawn with execa
JerryWu1234 022969a
refactor: migrate from CommonJS to ESM by removing CJS builds and upd…
JerryWu1234 cf2d436
chore: update package.json files to use "module" type and remove glob…
JerryWu1234 fe3fbb6
chore: minimum node version for TS support
JerryWu1234 200c81e
Merge pull request #8103 from JerryWu1234/no-cjs
wmertens 94df210
feat: memoize qrl symbols in qwikloader
Varixo 2110331
Merge pull request #8144 from QwikDev/v2-qrls-memoizing
Varixo 959ae79
fix(router dev): restore platform option functionality
wmertens d5760ed
Merge pull request #8126 from QwikDev/v2-async-computed-changes
wmertens 07deb2c
fix: skip apply journal during vnode diff
Varixo 0ad6748
Merge pull request #8143 from QwikDev/v2-skip-journal-during-diff
wmertens fc1dec4
Merge pull request #8145 from QwikDev/v2-fix-dev-platform
wmertens 0c81e2a
feat: introduce blockRender option for useTask$
Varixo 71dc7e4
chore: rename option to deferUpdates
Varixo 4bf17ae
feat: render blocking task by default
Varixo 0782caa
clarify deferUpdates default
wmertens f959dc8
Merge pull request #8107 from QwikDev/v2-blocking-task
wmertens ade0783
Version Packages (beta)
github-actions[bot] 397eaa0
fix Changelog
wmertens 1e7496d
chore: release 2.0.0-beta.14
wmertens 4133638
feat: reactive var props
Varixo 233b086
fix: scheduling already blocked chore
Varixo 86c0ad3
chore: change effect backref to props proxy
Varixo eb68746
fix: handling component props
Varixo 2c111c9
feat: add cleanup for props proxy
Varixo f63d477
fix: cleanup props proxy
Varixo 5746b46
chore: misc changes
Varixo 86e3a98
chore: add changesets
Varixo 1fb75e7
Merge pull request #8156 from QwikDev/v2-reactive-var-props
Varixo dce9976
fix: setting undefined as input value
Varixo 919901f
chore: pnpm dedupe
wmertens 1ff482f
Merge pull request #8157 from QwikDev/v2-fix-input-undefined-value
wmertens 7ddec1b
Merge remote-tracking branch 'origin/main' into v2-merge-main
wmertens de5e864
Merge pull request #8159 from QwikDev/v2-merge-main
wmertens 1fc309c
fix: serialize correctly null or undefined value for signals
Varixo 8af7775
fix: defer reading QScopedStyle until promise resolves for SSR
Varixo 2f4ab02
Merge pull request #8161 from QwikDev/v2-await-jsxoutput-scoped-style
wmertens c008001
fix: handling blocked chores in scheduler
Varixo 2e132fc
Merge pull request #8160 from QwikDev/v2-undefined-default-effects-value
wmertens f026a32
fix: early return if chore is already running
Varixo b91ce76
Merge pull request #8167 from QwikDev/v2-fix-open-code-block
wmertens 23b3dcd
fix: don't trigger document and window events for normal events
Varixo c3221c2
Merge pull request #8170 from QwikDev/v2-qwikloader-document-event-fix
wmertens be5d399
feat: used optimized method for setting changed attribute value
Varixo 0bdbd8f
Merge pull request #8171 from QwikDev/v2-optimize-attr-diff
wmertens 000b3a1
fix(core): move qresume after state init
wmertens f48c13b
fix(serdes): correct serializer handling
wmertens 8ade957
Merge pull request #8175 from QwikDev/v2-fixes
wmertens aaaaf82
perf(serdes): short-circuit uninitialized serializer
wmertens 76fdc14
Merge pull request #8176 from QwikDev/v2-fixes
wmertens 12fee1f
fix: finding projections after client partial rerender
Varixo dd133bc
Merge pull request #8185 from QwikDev/v2-fix-projections-resolving
wmertens d0c137f
fix(dev): click to component with base
wmertens 9627e22
fix: removing children from var props
Varixo a36a963
Merge pull request #8188 from QwikDev/v2-jsx-split-children
wmertens 2a0240a
Merge pull request #8187 from QwikDev/v2-fix-click-to-component
wmertens 8810145
Version Packages (beta)
github-actions[bot] 3c83746
fix(release): revert supabase-auth-helpers-qwik version
wmertens 920f1a4
Merge pull request #8158 from QwikDev/changeset-release/build/v2
wmertens 27d4724
feat: introduce QRLInternal type and update related exports
JerryWu1234 2e08fc7
Merge pull request #8193 from JerryWu1234/build/v2
wmertens 28fcb8a
chore: update dependencies in create-qwik and add deprecation notice …
JerryWu1234 4555a72
Merge pull request #8196 from JerryWu1234/build/v2
wmertens ac63576
Version Packages (beta)
github-actions[bot] 0d4afd9
chore: changelog
wmertens a83ccf3
Merge pull request #8195 from QwikDev/changeset-release/build/v2
wmertens 41e1976
fix(starters): add missing global.css to library starter
JerryWu1234 86e8beb
Merge pull request #8202 from JerryWu1234/miss-global-css
gioboa 265cd06
chore(core): _getQContainerElement only on element
wmertens a4beb4d
chore(core): _run should not wait
wmertens f2b3c7f
chore(serdes): name SerializationBackRef
wmertens 4a300da
refactor(core): ignore className
wmertens cda0703
wip cursors scheduling
wmertens 10f44a6
more logging
wmertens 3da2602
feat(cursors): pass container to vnode functions
Varixo 4faa4ea
chore(types): add event handler type tests
wmertens 0dd7ced
feat(cursors): migrate to journal
Varixo f87a406
feat(cursors): handle changing component props
Varixo d75efa2
feat(cursors): fix some promises cases
Varixo cc050d7
feat(cursors): compute chore impl
Varixo af03abb
feat(cursors): fix apply journal
Varixo 4a89bc9
feat(cursors): fix handling errors
Varixo d377da3
feat(cursors): migrate to single cursor prop
Varixo ed61626
fix(cursors): setting falsy prop
Varixo 3792012
fix(cursors): vnode_diff unit tests
wmertens bda881e
fix(cursors): merge cursors during vnode-diff and fix debug to string
Varixo 6048aae
feat(cursors): initialize render context with waitOn
Varixo 603a396
feat(cursors): propogate dirty flag to blocking cursor
Varixo 61ff799
feat(cursors): fix async computed signals
Varixo baeaa77
feat(cursor): process dirty non-projection vnodes first
Varixo d9231e9
feat(cursors): dont execute qrls for deleted vnodes
Varixo e8a09bd
feat(cursors): fix resource tests
Varixo 82c6cf2
feat(cursors): fix visible tasks
Varixo 3a16bcf
feat(cursors): ssr integration
Varixo c346655
feat(cursors): assign key as : prop value
Varixo 0228cbb
feat(cursors): fix setting innerHTML
Varixo 0b21c01
feat(cursors): fix catching error for runQrl
Varixo c1d0cda
feat(cursors): fix hoisting styles
Varixo 2e86953
feat(cursors): retry on promise while invalidate signal
Varixo bff0856
feat(cursors): remove old scheduler tests
Varixo b92435c
feat(cursors): fix vnode tests
Varixo 7bf055c
feat(cursors): misc changes
Varixo e0dd705
feat(cursors): fix most resource tests
Varixo 7a53f45
feat(cursors): async computed serialization fix
Varixo 05ddd43
feat(cursors): cleanup old code and fix build
Varixo 782c0d8
feat(cursors): fix signals e2e tests
Varixo 5bdd71f
feat(cursors): skip descendant cursors
Varixo 5e15fbf
feat(cursors): fix materialize element vnode key
Varixo 006f207
feat(cursors): change resource e2e tests after behavior change
Varixo 2af6847
feat: better select impl for perf benchmark
Varixo e228454
feat(cursors): add chore-execution unit tests
Varixo 4295175
feat(cursors): fix resource race condition problem
Varixo 9309a80
feat(cursors): fix signal unit test
Varixo 809f246
feat(cursors): better unit chore-execution test output
Varixo b0bbf8a
feat(cursors): small fixes
Varixo a84f4a7
feat(cursors): defer trigger tasks for server while running effects
Varixo a4b6ea3
feat(cursors): fix node diff payload helper methods
Varixo bb14c24
feat(cursors): faster attributes iteration
Varixo 225c224
feat(cursors): use micro and macro tasks for cursors
Varixo 8887ba4
feat(cursors): register qwik loader fix and comparing signal prop
Varixo e37014d
feat(perf): optimizations after deopt analysis
Varixo d3a9ee3
feat(perf): optimize jsx node creation
Varixo 794ee71
feat(perf): dont assign vNode
Varixo d60fa2b
feat(cursors): fix special characters in custom block in vnode data
Varixo 15c6cfb
fix(e2e): less flaky e2e tests
Varixo dd3b419
feat(perf): less inner functions for diff algorithm
Varixo 12f8a03
feat(perf): fast document getter
Varixo a8baea9
feat(perf): factory functions for operations
Varixo 6cca0e5
feat(cursors): fix unnecessary escaping slot names
Varixo 5680f10
feat(cursors): add changesets
Varixo 63cf92e
Merge pull request #8181 from QwikDev/v2-cursors
wmertens b044c5b
fix(cursors): memory allocation fix
Varixo d7b141d
chore: add memory allocation changesets
Varixo 9668413
Merge pull request #8212 from QwikDev/v2-cursors-memory-fix
wmertens 7f1aaa2
fix: correct escaping separator characters in attributes
Varixo d1d9c65
fix: apply journal in correct order for some edge cases
Varixo a3529fc
test: enable skipped test
Varixo 288bb39
Merge pull request #8216 from QwikDev/v2-attr-separator-escaping
wmertens 4486f0d
Merge pull request #8218 from QwikDev/v2-correct-journal-order
wmertens 7c096ff
Version Packages (beta)
github-actions[bot] afa0e57
Update CHANGELOG.md
wmertens c34c237
Merge pull request #8211 from QwikDev/changeset-release/build/v2
wmertens d875827
feat(perf): hoist wrapped signal function
Varixo 898b779
chore: fix macos ci
Varixo f91c57a
feat(optimizer): move event conversion logic to the optimizer
Varixo a0484f4
feat(optimizer): transform event names with transpile_jsx=false
Varixo 2e6663c
fix: correct signal diffing
Varixo 8b282b4
Merge pull request #8219 from QwikDev/v2-wrapped-signal-fn-hoisting
wmertens 0edd98e
Merge pull request #8222 from QwikDev/v2-event-logic-optimzier
wmertens 2dc3638
feat(perf): better prop diffing
Varixo 91321d4
Merge pull request #8221 from QwikDev/v2-diff-signal
wmertens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| 1 << 0 | 001 | static listeners | ||
| 1 << 1 | 002 | static subtree | ||
|
|
||
| ## Slots | ||
|
|
||
| ```typescript | ||
| const Parent = component$(() => { | ||
| return ( | ||
| <Child> | ||
| Projection Content | ||
| <span q:slot="secondary">Secondary Content</span> | ||
| <span q:slot="other">Other Content</span> | ||
| </Child> | ||
| }; | ||
| }); | ||
|
|
||
| const Child = component$(() => { | ||
| return ( | ||
| <div> | ||
| <Slot>Default Primary</Slot> | ||
| <Slot name="secondary">Default Secondary</Slot> | ||
| </div> | ||
| ); | ||
| }); | ||
| ``` | ||
|
|
||
| ```html | ||
| <Fragment Parent> | ||
| <Fragment Child> | ||
| <div> | ||
| <Fragment Slot ptr:Child> | ||
| Projected Content | ||
| <template>Default Primary</template> | ||
| </Fragment> | ||
| <Fragment Slot ptr:Child> | ||
| <span q:slot="secondary">Secondary Content</span> | ||
| </Fragment> | ||
| </div> | ||
| </Fragment> | ||
| <template> | ||
| <span q:slot="other">Other Content</span> | ||
| </template> | ||
| </Fragment> | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': patch | ||
| --- | ||
|
|
||
| fix: reduced number of errors "Cannot serialize function" during serialization |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,19 +2,14 @@ | |
| "$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
| "changelog": ["./changelog-github-custom.cjs", { "repo": "QwikDev/qwik" }], | ||
| "commit": false, | ||
| "fixed": [["@builder.io/qwik", "@builder.io/qwik-city", "eslint-plugin-qwik", "create-qwik"]], | ||
| "fixed": [ | ||
| ["@qwik.dev/core", "@qwik.dev/router", "eslint-plugin-qwik", "create-qwik", "@qwik.dev/react"] | ||
| ], | ||
| "linked": [], | ||
| "access": "public", | ||
| "baseBranch": "upcoming", | ||
| "baseBranch": "build/v2", | ||
| "updateInternalDependencies": "minor", | ||
| "ignore": [ | ||
| "qwik-docs", | ||
| "@builder.io/qwik-labs", | ||
| "insights", | ||
| "@builder.io/qwik-react", | ||
| "@builder.io/qwik-worker", | ||
| "qwik-cli-e2e" | ||
| ], | ||
| "ignore": ["qwik-docs", "insights", "qwik-cli-e2e"], | ||
| "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { | ||
| "onlyUpdatePeerDependentsWhenOutOfRange": true | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': major | ||
| --- | ||
|
|
||
| BREAKING: remove HTML-related types. Use PropsOf instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': major | ||
| --- | ||
|
|
||
| 💥**BREAKING**: `useComputed` no longer allows Promise returns. (meaning it is strictly sync) Instead, use `useSignal` and `useTask` together to perform async signal updates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': minor | ||
| --- | ||
|
|
||
| feat: new integration tests that are running with the optimizer |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': minor | ||
| --- | ||
|
|
||
| feat: new simpler signals implementation with lazy useComputed$ execution, only when is needed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| '@qwik.dev/core': major | ||
| --- | ||
|
|
||
| `qwik-labs` package has been removed in favor of experimental features. | ||
| So the "Insights" vite plugin and components have been moved to core as an experimental feature. | ||
|
|
||
| In order to use it, you need to - | ||
|
|
||
| **1)** add `insights` to the experimental array in `vite.config.ts`: | ||
|
|
||
| ```ts | ||
| qwikVite({ | ||
| experimental: ['insights'] | ||
| }), | ||
| ``` | ||
|
|
||
| **2)** Import and use the `qwikInsights` vite plugin from `@qwik.dev/core/insights/vite`: | ||
|
|
||
| ```ts | ||
| import { qwikInsights } from '@qwik.dev/core/insights/vite'; | ||
| ``` | ||
|
|
||
| **3)** import the `<Insights>` component from `@qwik.dev/core/insights` and use it in your `root.tsx` file: : | ||
|
|
||
| ```tsx title="root.tsx" | ||
| import { Insights } from '@qwik.dev/core/insights'; | ||
|
|
||
| // ...rest of root.tsx file | ||
|
|
||
| return ( | ||
| <Insights publicApiKey="..." postUrl="..." /> | ||
| /* ...qwik app */ | ||
| ); | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "mode": "pre", | ||
| "tag": "alpha", | ||
| "initialVersions": { | ||
| "create-qwik": "2.0.0-0", | ||
| "qwik-docs": "0.0.1", | ||
| "eslint-plugin-qwik": "2.0.0-0", | ||
| "@qwik.dev/core": "2.0.0-0", | ||
| "@qwik.dev/router": "2.0.0-0", | ||
| "insights": "0.1.0", | ||
| "@qwik.dev/dom": "2.1.19", | ||
| "@qwik.dev/react": "2.0.0-0", | ||
| "supabase-auth-helpers-qwik": "0.0.3", | ||
| "qwik-cli-e2e": "0.0.0" | ||
| }, | ||
| "branch": "build/v2", | ||
| "changesets": [ | ||
| "brave-files-grin", | ||
| "fast-baboons-itch", | ||
| "five-kangaroos-matter", | ||
| "fresh-rocks-exercise", | ||
| "hip-hornets-cheer", | ||
| "nine-otters-repeat", | ||
| "rich-wasps-tease", | ||
| "rotten-weeks-tickle", | ||
| "sour-zebras-tell", | ||
| "sweet-socks-whisper", | ||
| "tricky-meals-heal", | ||
| "wild-cooks-pay" | ||
| ] | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': major | ||
| --- | ||
|
|
||
| BREAKING: the Typescript exports were trimmed down to the bare minimum. If there are types you are missing, open an issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': patch | ||
| --- | ||
|
|
||
| fix: do not trigger effects if computed value is not changed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': minor | ||
| --- | ||
|
|
||
| feat: added the scheduler to sort chores execution and have more predictable behavior |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': minor | ||
| --- | ||
|
|
||
| feat: new faster serialization system |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/router': major | ||
| --- | ||
|
|
||
| Renamed "Qwik City" to "Qwik Router" and package to "@qwik.dev/router" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@qwik.dev/core': minor | ||
| --- | ||
|
|
||
| feat: new CSR and SSR rendering written from scratch to speed up performance, improve code readability, and make the code easier to understand for new contributors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,5 +33,6 @@ | |
| "label": "Serve", | ||
| "onAutoForward": "openPreview" | ||
| } | ||
| } | ||
| }, | ||
| "postCreateCommand": "./.devcontainer/post-create.sh" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/bin/bash | ||
|
|
||
| git config --global alias.co checkout | ||
| git config --global alias.br branch | ||
| git config --global alias.ci commit | ||
| git config --global alias.st status | ||
| git config --global alias.lg "log --oneline" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Workaround to cancel workflow runs from forked repositories | ||
| name: Cancel | ||
| on: | ||
| workflow_run: | ||
| workflows: ['ci'] | ||
| types: | ||
| - requested | ||
| jobs: | ||
| cancel: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: styfle/[email protected] | ||
| if: github.event_name == 'pull_request' | ||
| with: | ||
| workflow_id: ${{ github.event.workflow.id }} | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 5 months ago
To fix the problem, you should add a
permissionsblock to the workflow or to the specific job. The best practice is to set the minimal permissions required for the workflow to function. In this case, the workflow uses thestyfle/cancel-workflow-action, which typically only needsactions: writepermission to cancel workflow runs. Therefore, you should add apermissionsblock withactions: writeat either the workflow root (to apply to all jobs) or at the job level (to apply only to thecanceljob). The change should be made in.github/workflows/cancel.yml, above thejobs:key (for workflow-level) or inside thecancel:job (for job-level). No additional imports or definitions are needed.