Skip to content

Commit e59ecdb

Browse files
authored
Merge pull request #525 from dmitry-stepanenko/ds/upgrade-qwik
2 parents 7766b63 + dbf8a99 commit e59ecdb

File tree

9 files changed

+186
-69
lines changed

9 files changed

+186
-69
lines changed
File renamed without changes.

.github/actions/test/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ runs:
6666
- name: Lint PR
6767
if: github.event_name == 'pull_request'
6868
shell: bash
69-
run: pnpm danger ci --use-github-checks --failOnErrors
70-
working-directory: packages/bots
69+
run: pnpm danger ci --use-github-checks --failOnErrors -d .dangerfile.ts
7170
env:
7271
DANGER_GITHUB_API_TOKEN: ${{ inputs.github_token }}

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
},
2828
"packageManager": "[email protected]",
2929
"devDependencies": {
30-
"@builder.io/qwik": "^1.2.12",
31-
"@builder.io/qwik-city": "^1.2.12",
30+
"@builder.io/qwik": "^1.2.19",
31+
"@builder.io/qwik-city": "^1.2.19",
32+
"@builder.io/vite-plugin-macro": "~0.0.7",
3233
"@commitlint/cli": "^17.7.1",
3334
"@commitlint/config-angular": "^17.7.0",
3435
"@commitlint/config-conventional": "^17.7.0",
@@ -76,7 +77,7 @@
7677
"clipboard-copy": "4.0.1",
7778
"commitizen": "^4.3.0",
7879
"commitlint": "^17.7.1",
79-
"country-list-json": "1.1.0",
80+
"country-list-json": "^1.1.0",
8081
"cypress": "^13.0.0",
8182
"cypress-axe": "1.4.0",
8283
"cypress-ct-qwik": "0.3.0",
@@ -87,7 +88,7 @@
8788
"eslint": "^8.48.0",
8889
"eslint-config-prettier": "^8",
8990
"eslint-plugin-cypress": "^2.14.0",
90-
"eslint-plugin-qwik": "^1.2.12",
91+
"eslint-plugin-qwik": "^1.2.19",
9192
"eslint-plugin-storybook": "^0.6.13",
9293
"focus-trap": "7.5.3",
9394
"husky": "^8.0.3",
@@ -110,7 +111,7 @@
110111
"shiki": "0.14.5",
111112
"storybook": "^7.4.0",
112113
"storybook-framework-qwik": "^0.2.3",
113-
"tailwind-merge": "1.14.0",
114+
"tailwind-merge": "^1.14.0",
114115
"tailwindcss": "^3.3.3",
115116
"ts-node": "10.9.1",
116117
"typescript": "^5.2.2",
@@ -143,5 +144,10 @@
143144
],
144145
"nx": {
145146
"includedScripts": []
147+
},
148+
"pnpm": {
149+
"patchedDependencies": {
150+
"@builder.io/[email protected]": "patches/@[email protected]"
151+
}
146152
}
147153
}

packages/kit-fluffy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"qwik": "qwik"
3636
},
3737
"peerDependencies": {
38-
"@builder.io/qwik": ">1.1.0"
38+
"@builder.io/qwik": "^1.1.0"
3939
},
4040
"devDependencies": {
4141
"@builder.io/vite-plugin-macro": "~0.0.7"

packages/kit-headless/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"private": false,
2323
"scripts": {},
2424
"peerDependencies": {
25-
"@builder.io/qwik": ">1.2.11"
25+
"@builder.io/qwik": "^1.2.11"
2626
},
2727
"dependencies": {
28-
"@floating-ui/dom": "1.0.10",
28+
"@floating-ui/dom": "^1.0.10",
2929
"country-list-json": "^1.1.0",
3030
"libphonenumber-js": "^1.10.43"
3131
}

packages/kit-tailwind/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
"qwik": "qwik"
3434
},
3535
"dependencies": {
36-
"daisyui": "^2.50.1"
36+
"daisyui": "^3.6.4"
3737
},
3838
"peerDependencies": {
39-
"@builder.io/qwik": ">1.2.11"
39+
"@builder.io/qwik": "^1.2.11"
4040
}
4141
}

patches/@[email protected]

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/optimizer.cjs b/optimizer.cjs
2+
index add5bb6089e10e3c41de62ce9cc012aec5ded67f..32dfc0dbdcb21a85539602b447117ffa50475ce2 100644
3+
--- a/optimizer.cjs
4+
+++ b/optimizer.cjs
5+
@@ -2978,7 +2978,7 @@ globalThis.qwikOptimizer = function(module) {
6+
var VALID_ID_PREFIX = "/@id/";
7+
var VITE_PUBLIC_PATH = "/@vite/";
8+
var internalPrefixes = [ FS_PREFIX, VALID_ID_PREFIX, VITE_PUBLIC_PATH ];
9+
- var InternalPrefixRE = new RegExp(`^(?:${internalPrefixes.join("|")})`);
10+
+ var InternalPrefixRE = new RegExp(`(?:${internalPrefixes.join("|")})`);
11+
var shouldSsrRender = (req, url) => {
12+
const pathname = url.pathname;
13+
if (/\.[\w?=&]+$/.test(pathname) && !pathname.endsWith(".html")) {
14+
diff --git a/optimizer.mjs b/optimizer.mjs
15+
index 49de5cc48e365a2935e98aedbb17a8eb26fb570c..8ffbbd31913860ec0762cc6d87cb3f91083e6865 100644
16+
--- a/optimizer.mjs
17+
+++ b/optimizer.mjs
18+
@@ -3086,7 +3086,7 @@ var VITE_PUBLIC_PATH = "/@vite/";
19+
20+
var internalPrefixes = [ FS_PREFIX, VALID_ID_PREFIX, VITE_PUBLIC_PATH ];
21+
22+
-var InternalPrefixRE = new RegExp(`^(?:${internalPrefixes.join("|")})`);
23+
+var InternalPrefixRE = new RegExp(`(?:${internalPrefixes.join("|")})`);
24+
25+
var shouldSsrRender = (req, url) => {
26+
const pathname = url.pathname;

0 commit comments

Comments
 (0)