@hazae41/glacier
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -34,2 +34,3 @@ import * as index from './mods/index.js'; | ||
export { Storage } from './mods/storages/storage.js'; | ||
export { Fallback } from './mods/types/fallback.js'; | ||
export { Fetcher, FetcherMore } from './mods/types/fetcher.js'; | ||
@@ -36,0 +37,0 @@ export { Indexer, States } from './mods/types/indexer.js'; |
@@ -32,2 +32,3 @@ export { AsyncBicoder, AsyncEncoder, AsyncJson, AsyncPipeBicoder, AsyncPipeEncoder, Bicoder, Encoder, SyncBicoder, SyncEncoder, SyncIdentity, SyncJson, SyncPipeBicoder, SyncPipeEncoder } from './coders/coder.js'; | ||
export { Storage } from './storages/storage.js'; | ||
export { Fallback } from './types/fallback.js'; | ||
export { Fetcher, FetcherMore } from './types/fetcher.js'; | ||
@@ -34,0 +35,0 @@ export { Indexer, States } from './types/indexer.js'; |
@@ -1,8 +0,9 @@ | ||
import { Nullable, Option } from '@hazae41/option'; | ||
import { Nullable } from '@hazae41/option'; | ||
import { Fetched } from '../../fetched/fetched.js'; | ||
import { ScrollableSkeletonReactQuery, ScrollableFetcherfulReactQuery, ScrollableFetcherlessReactQuery } from '../../react/hooks/queries/scroll.js'; | ||
import { Mutator } from '../../types/mutator.js'; | ||
import { NormalizerMore } from '../../types/normalizer.js'; | ||
import { ScrollableFetcherfulQuerySettings, ScrollableFetcherlessQuerySettings, ScrollableQuerySettings } from '../../types/settings.js'; | ||
import { State } from '../../types/state.js'; | ||
import { ScrollableSkeletonReactQuery, ScrollableFetcherfulReactQuery, ScrollableFetcherlessReactQuery } from '../../react/hooks/queries/scroll.js'; | ||
import { NormalizerMore } from '../../types/normalizer.js'; | ||
import { Fallback } from '../../types/fallback.js'; | ||
@@ -37,3 +38,3 @@ declare function createScrollableQuery<K, D, F>(settings: ScrollableFetcherfulQuerySettings<K, D, F>): ScrollableFetcherfulQuery<K, D, F>; | ||
normalize(fetched: Nullable<Fetched<D[], F>>, more: NormalizerMore): Promise<void>; | ||
fetch(aborter?: AbortController): Promise<Option<State<D[], F>>>; | ||
fetch(aborter?: AbortController): Promise<Fallback<State<D[], F>>>; | ||
refetch(aborter?: AbortController): Promise<State<D[], F>>; | ||
@@ -40,0 +41,0 @@ scroll(aborter?: AbortController): Promise<State<D[], F>>; |
@@ -1,9 +0,10 @@ | ||
import { Nullable, Option } from '@hazae41/option'; | ||
import { Nullable } from '@hazae41/option'; | ||
import { Fetched } from '../../fetched/fetched.js'; | ||
import { SimpleSkeletonReactQuery, SimpleFetcherlessReactQuery, SimpleFetcherfulReactQuery } from '../../react/hooks/queries/simple.js'; | ||
import { Mutator } from '../../types/mutator.js'; | ||
import { NormalizerMore } from '../../types/normalizer.js'; | ||
import { FetcherlessQuerySettings, FetcherfulQuerySettings, KeyedQuerySettings } from '../../types/settings.js'; | ||
import { State } from '../../types/state.js'; | ||
import { NormalizerMore } from '../../types/normalizer.js'; | ||
import { Updater } from '../../types/updater.js'; | ||
import { SimpleSkeletonReactQuery, SimpleFetcherlessReactQuery, SimpleFetcherfulReactQuery } from '../../react/hooks/queries/simple.js'; | ||
import { Fallback } from '../../types/fallback.js'; | ||
@@ -57,3 +58,3 @@ declare function createQuery<K, D, F>(settings: FetcherlessQuerySettings<K, D, F>): SimpleFetcherlessQuery<K, D, F>; | ||
normalize(fetched: Nullable<Fetched<D, F>>, more: NormalizerMore): Promise<void>; | ||
fetch(aborter?: AbortController): Promise<Option<State<D, F>>>; | ||
fetch(aborter?: AbortController): Promise<Fallback<State<D, F>>>; | ||
refetch(aborter?: AbortController): Promise<State<D, F>>; | ||
@@ -60,0 +61,0 @@ update(updater: Updater<K, D, F>, aborter?: AbortController): Promise<State<D, F>>; |
@@ -1,4 +0,2 @@ | ||
import { Nullable, Option } from '@hazae41/option'; | ||
import { Data } from '../../fetched/data.js'; | ||
import { Fail } from '../../fetched/fail.js'; | ||
import { Nullable } from '@hazae41/option'; | ||
import { Fetched } from '../../fetched/fetched.js'; | ||
@@ -8,2 +6,5 @@ import { Mutator } from '../../types/mutator.js'; | ||
import { FetchedState, State } from '../../types/state.js'; | ||
import { Data } from '../../fetched/data.js'; | ||
import { Fail } from '../../fetched/fail.js'; | ||
import { Fallback } from '../../types/fallback.js'; | ||
@@ -131,3 +132,3 @@ type ReactQuery<K, D, F> = SkeletonReactQuery<K, D, F> | FetcherfulReactQuery<K, D, F> | FetcherlessReactQuery<K, D, F>; | ||
*/ | ||
fetch(aborter?: AbortController): Promise<Option<State<D, F>>>; | ||
fetch(aborter?: AbortController): Promise<Fallback<State<D, F>>>; | ||
/** | ||
@@ -134,0 +135,0 @@ * Fetch without cooldown |
{ | ||
"type": "module", | ||
"name": "@hazae41/glacier", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "hazae41", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -9,3 +9,3 @@ <div align="center"> | ||
[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/glacier) • [**Read the docs 📚**](https://github.com/hazae41/glacier/blob/master/docs) • [**Next.js Example 🪣**](https://codesandbox.io/p/github/hazae41/xswr-example-next) • [**Expo Example 🪣**](https://snack.expo.dev/@git/github.com/hazae41/xswr-example-expo) • [**Comparison with other libs 🌐**](https://github.com/hazae41/glacier/blob/master/docs/comparison.md) | ||
[**Node Package 📦**](https://www.npmjs.com/package/@hazae41/glacier) • [**Read the docs 📚**](https://github.com/hazae41/glacier/blob/master/docs) • [**Next.js Example 🪣**](https://codesandbox.io/p/github/hazae41/glacier-example-next) • [**Expo Example 🪣**](https://snack.expo.dev/@git/github.com/hazae41/xswr-example-expo) • [**Comparison with other libs 🌐**](https://github.com/hazae41/glacier/blob/master/docs/comparison.md) | ||
@@ -12,0 +12,0 @@ ## Philosophy 🧠 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
578827
185
6187