Skip to content

Commit 1bfd8ab

Browse files
authored
fix(shared,clerk-js): raise @tanstack/query-core floor to ^5.100.6 (#8432)
1 parent 5eec2fe commit 1bfd8ab

5 files changed

Lines changed: 189 additions & 177 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@clerk/shared': patch
3+
'@clerk/clerk-js': patch
4+
---
5+
6+
Raise the `@tanstack/query-core` floor to `^5.100.6` in the repo catalog and consume it from `@clerk/shared` and `@clerk/clerk-js` so the version baked into the production `clerk-js` CDN bundle stays in lockstep with what consumer-side `@clerk/shared` resolves to.
7+
8+
Fixes a runtime crash (`TypeError: e.isFetched is not a function`) introduced when consumer dedupe resolved `query-core` to `5.100.x` (which adds `Query.isFetched()`) while the published CDN bundle still embedded `5.90.16`. The new `QueryObserver` then called `isFetched()` on `Query` objects from the older bundled version.

packages/clerk-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"@solana/wallet-standard": "catalog:module-manager",
9292
"@stripe/stripe-js": "5.6.0",
9393
"@swc/helpers": "catalog:repo",
94-
"@tanstack/query-core": "^5.90.16",
94+
"@tanstack/query-core": "catalog:repo",
9595
"@wallet-standard/core": "catalog:module-manager",
9696
"@zxcvbn-ts/core": "catalog:module-manager",
9797
"@zxcvbn-ts/language-common": "catalog:module-manager",

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"test:coverage": "vitest --collectCoverage && open coverage/lcov-report/index.html"
141141
},
142142
"dependencies": {
143-
"@tanstack/query-core": "^5.90.16",
143+
"@tanstack/query-core": "catalog:repo",
144144
"dequal": "2.0.3",
145145
"glob-to-regexp": "0.4.1",
146146
"js-cookie": "3.0.5",

0 commit comments

Comments
 (0)