@tanstack/react-query 5.74.3 → 5.74.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,18 @@
1
1
  import { defineConfig } from 'vitest/config'
2
- import tsconfigPaths from 'vite-tsconfig-paths'
3
2
 
4
- import { dynamicAliases } from './root.vite.config'
5
3
  import packageJson from './package.json'
6
4
 
7
5
  export default defineConfig({
8
- plugins: [tsconfigPaths({ ignoreConfigErrors: true })],
6
+ // fix from https://github.com/vitest-dev/vitest/issues/6992#issuecomment-2509408660
9
7
  resolve: {
10
- alias: dynamicAliases,
8
+ conditions: ['@tanstack/custom-condition'],
9
+ },
10
+ environments: {
11
+ ssr: {
12
+ resolve: {
13
+ conditions: ['@tanstack/custom-condition'],
14
+ },
15
+ },
11
16
  },
12
17
  test: {
13
18
  name: packageJson.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-query",
3
- "version": "5.74.3",
3
+ "version": "5.74.7",
4
4
  "description": "Hooks for managing, caching and syncing asynchronous and remote data in React",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -21,6 +21,7 @@
21
21
  "react-native": "src/index.ts",
22
22
  "exports": {
23
23
  ".": {
24
+ "@tanstack/custom-condition": "./src/index.ts",
24
25
  "import": {
25
26
  "types": "./build/modern/index.d.ts",
26
27
  "default": "./build/modern/index.js"
@@ -43,7 +44,7 @@
43
44
  "!build/codemods/**/__tests__"
44
45
  ],
45
46
  "dependencies": {
46
- "@tanstack/query-core": "5.74.3"
47
+ "@tanstack/query-core": "5.74.7"
47
48
  },
48
49
  "devDependencies": {
49
50
  "@testing-library/react": "^16.1.0",
@@ -56,7 +57,7 @@
56
57
  "react": "^19.0.0",
57
58
  "react-dom": "^19.0.0",
58
59
  "react-error-boundary": "^4.1.2",
59
- "@tanstack/query-persist-client-core": "5.74.3"
60
+ "@tanstack/query-persist-client-core": "5.74.7"
60
61
  },
61
62
  "peerDependencies": {
62
63
  "react": "^18 || ^19"
@@ -1,17 +0,0 @@
1
- // @ts-check
2
-
3
- import path from 'node:path'
4
- import ts from 'typescript'
5
-
6
- const tsconfig = ts.readConfigFile(
7
- path.resolve(__dirname, '..', 'tsconfig.json'),
8
- ts.sys.readFile,
9
- ).config
10
-
11
- export const dynamicAliases = Object.entries(
12
- tsconfig.compilerOptions.paths || {},
13
- ).reduce((aliases, [key, [value]]) => {
14
- const aliasKey = key.replace('/*', '')
15
- aliases[aliasKey] = path.resolve(value.replace('/*', ''))
16
- return aliases
17
- }, /** @type {Record<string, string>} */ ({}))