Skip to content
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

fix: rename react directory to reactjs #2884

Merged
merged 5 commits into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"createAsyncStoragePersistor-experimental",
"broadcastQueryClient-experimental",
"lib",
"react",
"reactjs",
"scripts",
"types"
],
Expand All @@ -81,7 +81,11 @@
}
},
"typesVersions": {
"<4.1": { "types/*": ["types/ts3.8/*"] }
"<4.1": {
"types/*": [
"types/ts3.8/*"
]
}
},
"devDependencies": {
"@babel/cli": "^7.11.6",
Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/hydration.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mockNavigatorOnLine, sleep } from '../../react/tests/utils'
import { mockNavigatorOnLine, sleep } from '../../reactjs/tests/utils'
import { QueryCache } from '../queryCache'
import { QueryClient } from '../queryClient'
import { dehydrate, hydrate } from '../hydration'
Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/infiniteQueryObserver.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sleep, queryKey } from '../../react/tests/utils'
import { sleep, queryKey } from '../../reactjs/tests/utils'
import { QueryClient, InfiniteQueryObserver } from '../..'

describe('InfiniteQueryObserver', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/mutationCache.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { queryKey, mockConsoleError } from '../../react/tests/utils'
import { queryKey, mockConsoleError } from '../../reactjs/tests/utils'
import { MutationCache, QueryClient } from '../..'

describe('mutationCache', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/mutations.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { QueryClient } from '../..'
import { mockConsoleError, queryKey, sleep } from '../../react/tests/utils'
import { mockConsoleError, queryKey, sleep } from '../../reactjs/tests/utils'
import { MutationState } from '../mutation'
import { MutationObserver } from '../mutationObserver'

Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/queriesObserver.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sleep, queryKey } from '../../react/tests/utils'
import { sleep, queryKey } from '../../reactjs/tests/utils'
import { QueryClient, QueriesObserver, QueryObserverResult } from '../..'

describe('queriesObserver', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/query.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
queryKey,
mockVisibilityState,
mockConsoleError,
} from '../../react/tests/utils'
} from '../../reactjs/tests/utils'
import {
QueryCache,
QueryClient,
Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/queryCache.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sleep, queryKey, mockConsoleError } from '../../react/tests/utils'
import { sleep, queryKey, mockConsoleError } from '../../reactjs/tests/utils'
import { QueryCache, QueryClient } from '../..'

describe('queryCache', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/queryClient.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sleep, queryKey, mockConsoleError } from '../../react/tests/utils'
import { sleep, queryKey, mockConsoleError } from '../../reactjs/tests/utils'
import {
InfiniteQueryObserver,
QueryCache,
Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/queryObserver.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
queryKey,
mockConsoleError,
expectType,
} from '../../react/tests/utils'
} from '../../reactjs/tests/utils'
import { QueryClient, QueryObserver, QueryObserverResult } from '../..'

describe('queryObserver', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/tests/utils.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
mapQueryStatusFilter,
} from '../utils'
import { QueryClient, QueryCache, setLogger, Logger } from '../..'
import { queryKey } from '../../react/tests/utils'
import { queryKey } from '../../reactjs/tests/utils'

describe('core/utils', () => {
it('setLogger should override the default logger', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/hydration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export type {
ShouldDehydrateMutationFunction,
ShouldDehydrateQueryFunction,
} from '../core/hydration'
export type { HydrateProps } from '../react/Hydrate'
export type { HydrateProps } from '../reactjs/Hydrate'
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './core'
export * from './react'
export * from './reactjs'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ts3.8/useQueries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UseQueryOptions, UseQueryResult } from '../react/types'
import { UseQueryOptions, UseQueryResult } from '../reactjs/types'

/**
* Backwards-compatible definition for TS < 4.1
Expand Down