Skip to content

Commit 2ba170a

Browse files
committed
Merge branch 'main' into upcoming
2 parents 73e74cc + f3aec78 commit 2ba170a

File tree

51 files changed

+488
-530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+488
-530
lines changed

.changeset/breezy-toes-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-plugin-qwik': minor
3+
---
4+
5+
let eslint-plugin-qwik support Eslint 9 and 8 simultaneously

.changeset/forty-bats-rule.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik': patch
3+
---
4+
5+
updated drizzle to latest version
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik': patch
3+
---
4+
5+
✨ Add the ability to see chunks names in preview/production environments to facilitate debugging of production-only bugs

.github/workflows/ci.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ jobs:
5454
hash-insights: ${{ steps.cache-insights.outputs.cache-primary-key }}
5555
hash-unit: ${{ steps.cache-unit.outputs.cache-primary-key }}
5656
hash-e2e: ${{ steps.cache-e2e.outputs.cache-primary-key }}
57+
hash-cli-e2e: ${{ steps.cache-cli-e2e.outputs.cache-primary-key }}
5758
build-qwik: ${{ steps.cache-qwik.outputs.cache-hit != 'true' }}
5859
build-rust: ${{ steps.cache-rust.outputs.cache-hit != 'true' }}
5960
build-others: ${{ steps.cache-others.outputs.cache-hit != 'true' }}
6061
build-docs: ${{ steps.cache-docs.outputs.cache-hit != 'true' }}
6162
build-insights: ${{ steps.cache-insights.outputs.cache-hit != 'true' }}
6263
build-unit: ${{ steps.cache-unit.outputs.cache-hit != 'true' }}
6364
build-e2e: ${{ steps.cache-e2e.outputs.cache-hit != 'true' }}
65+
build-cli-e2e: ${{ steps.cache-cli-e2e.outputs.cache-hit != 'true' }}
6466
disttag: ${{ steps.set_dist_tag.outputs.disttag }}
6567

6668
steps:
@@ -174,7 +176,7 @@ jobs:
174176
path: |
175177
packages/insights/dist
176178
packages/insights/.netlify
177-
key: ${{ hashfiles('others-key.txt', 'packages/qwik-insights/**/*') }}
179+
key: ${{ hashfiles('others-key.txt', 'packages/insights/**/*') }}
178180
- name: 'check cache: unit tests'
179181
id: cache-unit
180182
uses: actions/cache/restore@v4
@@ -189,6 +191,13 @@ jobs:
189191
lookup-only: true
190192
path: e2e-tests-completed.txt
191193
key: ${{ hashfiles('others-key.txt', 'starters/**/*') }}
194+
- name: 'check cache: cli e2e tests'
195+
id: cache-cli-e2e
196+
uses: actions/cache/restore@v4
197+
with:
198+
lookup-only: true
199+
path: cli-e2e-tests-completed.txt
200+
key: ${{ hashfiles('others-key.txt', 'e2e/**/*') }}
192201

193202
############ BUILD Qwik ############
194203
build-qwik:
@@ -274,6 +283,7 @@ jobs:
274283
node-version: 20.x
275284
cache: 'pnpm'
276285
registry-url: https://registry.npmjs.org/
286+
277287
- run: pnpm install
278288
- if: matrix.settings.wasm
279289
run: pnpm install wasm-pack
@@ -717,7 +727,7 @@ jobs:
717727
############ E2E CLI TEST ############
718728
test-cli-e2e:
719729
name: E2E CLI Tests
720-
if: always() && needs.changes.outputs.build-e2e == 'true'
730+
if: always() && needs.changes.outputs.build-cli-e2e == 'true'
721731

722732
needs:
723733
- build-other-packages
@@ -806,6 +816,7 @@ jobs:
806816
- changes
807817
- test-unit
808818
- test-e2e
819+
- test-cli-e2e
809820
# test-unit runs when any packages changes, so we have to release
810821
# on "upcoming", we always check if we have something to release
811822
# don't run on forks
@@ -832,6 +843,21 @@ jobs:
832843
key: ${{ needs.changes.outputs.hash-e2e }}
833844
path: e2e-tests-completed.txt
834845

846+
- name: Verify test-cli-e2e
847+
if: needs.test-cli-e2e.result != 'skipped'
848+
run: |
849+
if [ "${{ needs.test-cli-e2e.result }}" != success ] ; then
850+
exit 1
851+
else
852+
echo ok > cli-e2e-tests-completed.txt
853+
fi
854+
- name: Save cli-e2e tests cache
855+
if: needs.test-cli-e2e.result != 'skipped'
856+
uses: actions/cache/save@v4
857+
with:
858+
key: ${{ needs.changes.outputs.hash-cli-e2e }}
859+
path: cli-e2e-tests-completed.txt
860+
835861
- name: Checkout
836862
uses: actions/checkout@v4
837863

@@ -915,6 +941,7 @@ jobs:
915941
needs:
916942
- test-unit
917943
- test-e2e
944+
- test-cli-e2e
918945
- lint-package
919946
- build-docs
920947
- build-insights
@@ -925,6 +952,7 @@ jobs:
925952
!(
926953
(needs.test-unit.result == 'success' || needs.test-unit.result == 'skipped') &&
927954
(needs.test-e2e.result == 'success' || needs.test-e2e.result == 'skipped') &&
955+
(needs.test-cli-e2e.result == 'success' || needs.test-cli-e2e.result == 'skipped') &&
928956
(needs.lint-package.result == 'success' || needs.lint-package.result == 'skipped') &&
929957
(needs.build-docs.result == 'success' || needs.build-docs.result == 'skipped') &&
930958
(needs.build-insights.result == 'success' || needs.build-insights.result == 'skipped')

e2e/qwik-cli-e2e/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ function replacePackagesWithLocalOnes(tmpDir: string) {
6767
for (const { name, absolutePath } of tarballConfig) {
6868
patchPackageJsonForPlugin(tmpDir, name, absolutePath);
6969
}
70-
execSync('npm i', {
70+
execSync('pnpm i', {
7171
cwd: tmpDir,
7272
// only output errors
73-
stdio: ['ignore', 'ignore', 'inherit'],
73+
stdio: ['ignore', 'inherit', 'inherit'],
7474
});
7575
}
7676

e2e/qwik-cli-e2e/vite.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
import { defineConfig } from 'vitest/config';
22
import tsconfigPaths from 'vite-tsconfig-paths';
3+
import { resolve } from 'path';
4+
import { mkdirSync } from 'fs';
5+
6+
// if we're running in github CI
7+
if (process.env.CI) {
8+
// Workaround for npm/pnpm crashing in scaffoldQwikProject because "name is too long"
9+
const testPath = resolve(process.cwd(), 'e2e-test-tmp');
10+
mkdirSync(testPath);
11+
process.env.TEMP_E2E_PATH = testPath;
12+
}
313

414
export default defineConfig({
515
plugins: [tsconfigPaths({ ignoreConfigErrors: true, root: '../../' })],

flake.lock

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

package.json

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
"config": {
1010
"syncpack": {
1111
"versionGroups": [
12+
{
13+
"label": "Allow ESLint 9 types in eslint-plugin-qwik",
14+
"dependencies": [
15+
"@types/eslint"
16+
],
17+
"packages": [
18+
"eslint-plugin-qwik"
19+
],
20+
"policy": "[email protected]"
21+
},
1222
{
1323
"label": "Be lenient in vite versions for prod. v4 is broken, v5 is good",
1424
"dependencyTypes": [
@@ -47,16 +57,19 @@
4757
"prod",
4858
"peer"
4959
]
50-
}
51-
],
52-
"semverGroups": [
60+
},
5361
{
5462
"label": "Playwright should have the same version as in flake.nix",
5563
"dependencies": [
5664
"@playwright/test"
5765
],
58-
"pinVersion": "1.47.0"
59-
},
66+
"dependencyTypes": [
67+
"dev"
68+
],
69+
"pinVersion": "1.48.1"
70+
}
71+
],
72+
"semverGroups": [
6073
{
6174
"label": "Undici should always be * until we remove it",
6275
"dependencies": [
@@ -110,7 +123,7 @@
110123
"@napi-rs/triples": "1.2.0",
111124
"@node-rs/helper": "1.6.0",
112125
"@octokit/action": "6.1.0",
113-
"@playwright/test": "1.47.0",
126+
"@playwright/test": "1.48.1",
114127
"@types/brotli": "1.3.4",
115128
"@types/bun": "1.1.6",
116129
"@types/cross-spawn": "6.0.6",
@@ -176,7 +189,7 @@
176189
"yarn": "please-use-pnpm",
177190
"pnpm": ">=9.0.5"
178191
},
179-
"packageManager": "pnpm@9.0.5",
192+
"packageManager": "pnpm@9.15.5",
180193
"pnpm": {
181194
"overrides": {
182195
"typescript": "5.4.5",
@@ -210,8 +223,8 @@
210223
"build.wasm": "tsx --require ./scripts/runBefore.ts scripts/index.ts --wasm",
211224
"build.watch": "tsx --require ./scripts/runBefore.ts scripts/index.ts --build --qwikcity --watch --dev --platform-binding",
212225
"change": "changeset",
213-
"cli": "pnpm build.cli && node packages/create-qwik/dist/create-qwik.cjs && tsx --require ./scripts/runBefore.ts scripts/validate-cli.ts --copy-local-qwik-dist",
214-
"cli.qwik": "pnpm build.cli && node packages/qwik/dist/qwik-cli.cjs",
226+
"cli": "pnpm build.cli && node packages/create-qwik/create-qwik.cjs && tsx --require ./scripts/runBefore.ts scripts/validate-cli.ts --copy-local-qwik-dist",
227+
"cli.qwik": "pnpm build.cli && node packages/qwik/qwik-cli.cjs",
215228
"cli.validate": "tsx --require ./scripts/runBefore.ts scripts/validate-cli.ts",
216229
"deps": "corepack pnpm upgrade -i -r --latest && syncpack fix-mismatches && corepack pnpm dedupe",
217230
"docs.dev": "cd packages/docs && pnpm build.repl-sw && pnpm dev",

packages/docs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"react-dom": "18.3.1",
4646
"rehype-pretty-code": "0.11.0",
4747
"shiki": "0.14.7",
48-
"shikiji": "0.9.19",
4948
"snarkdown": "2.0.0",
5049
"tailwindcss": "3.4.6",
5150
"terser": "5.31.3",
@@ -76,7 +75,7 @@
7675
"codesandbox.sync": "tsx codesandbox.sync.ts",
7776
"contributors": "tsx contributors.ts",
7877
"deploy": "wrangler pages publish ./dist",
79-
"dev": "tsx check-qwik-build.ts && vite --mode ssr --open",
78+
"dev": "concurrently \"tsx check-qwik-build.ts\" \"vite --mode ssr --open\"",
8079
"dev.debug": "node --inspect-brk ../../node_modules/vite/bin/vite.js --mode ssr --force",
8180
"prebuild.core": "tsx check-qwik-build.ts",
8281
"preview": "qwik build preview && vite preview --open",
-49.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)