Skip to content

Commit

Permalink
chore: remove cache pacakge (#1279)
Browse files Browse the repository at this point in the history
# Overview
- remove cache pacakge

> Creating a library for caching turned out to be a much more
challenging task than we initially expected, as it felt like creating
something from nothing. After extensive discussions and considering our
limited resources and the complexity of the project, we have decided to
conclude the work at this point and discontinue further development.

<!--
    A clear and concise description of what this pr is about.
 -->

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------

Co-authored-by: Jonghyeon Ko <[email protected]>
  • Loading branch information
SEOKKAMONI and manudeli authored Sep 29, 2024
1 parent 5d81410 commit 7c6c3b1
Show file tree
Hide file tree
Showing 45 changed files with 6 additions and 1,306 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ body:
- "@suspensive/react-query-next-experimental"
- "@suspensive/react-query-next-experimental-4"
- "@suspensive/jotai"
- "@suspensive/cache"
- "@suspensive/react-image"
- etc
validations:
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ body:
- "@suspensive/react-query-next-experimental"
- "@suspensive/react-query-next-experimental-4"
- "@suspensive/jotai"
- "@suspensive/cache"
- "@suspensive/react-image"
- etc
validations:
Expand Down
2 changes: 0 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
- "packages/react-query-next-experimental-4/**/*"
"@suspensive/jotai":
- "packages/jotai/**/*"
"@suspensive/cache":
- "packages/cache/**/*"
"@suspensive/react-image":
- "packages/react-image/**/*"
"suspensive.org":
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ Key features: useSuspenseQuery, useSuspenseQueries, useSuspenseInfiniteQuery, qu
Key features: Atom, AtomValue, SetAtom, and more.

### @suspensive/cache [![npm version](https://img.shields.io/npm/v/@suspensive/cache?color=000&labelColor=000&logo=npm&label=)](https://www.npmjs.com/package/@suspensive/cache) [![npm](https://img.shields.io/npm/dm/@suspensive/cache?color=000&labelColor=000)](https://www.npmjs.com/package/@suspensive/cache) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@suspensive/cache?color=000&labelColor=000)](https://www.npmjs.com/package/@suspensive/cache)

> This package provides caching solutions that can be used within React applications. It includes hooks like useRead and useCache, as well as providers for managing and storing cache data efficiently.
Key features: Read, useRead, Cache, useCache, CacheProvider, and more.

<br/>

## Visit [suspensive.org](https://suspensive.org) for docs, guides, API and more!
Expand Down
4 changes: 0 additions & 4 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ component_management:
name: '@suspensive/jotai'
paths:
- packages/jotai/**
- component_id: cache
name: '@suspensive/cache'
paths:
- packages/cache/**
- component_id: react-image
name: '@suspensive/react-image'
paths:
Expand Down
1 change: 0 additions & 1 deletion docs/suspensive.org/src/pages/docs/changelogs.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ import { Cards, Card } from 'nextra/components'
href="https://github.com/toss/suspensive/blob/main/packages/react-image/CHANGELOG.md"
/>
<Card title="@suspensive/jotai" href="https://github.com/toss/suspensive/blob/main/packages/jotai/CHANGELOG.md" />
<Card title="@suspensive/cache" href="https://github.com/toss/suspensive/blob/main/packages/cache/CHANGELOG.md" />
</Cards>
1 change: 0 additions & 1 deletion docs/suspensive.org/src/pages/docs/changelogs.ko.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ import { Cards, Card } from 'nextra/components'
href="https://github.com/toss/suspensive/blob/main/packages/react-image/CHANGELOG.md"
/>
<Card title="@suspensive/jotai" href="https://github.com/toss/suspensive/blob/main/packages/jotai/CHANGELOG.md" />
<Card title="@suspensive/cache" href="https://github.com/toss/suspensive/blob/main/packages/cache/CHANGELOG.md" />
</Cards>
1 change: 0 additions & 1 deletion examples/visualization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"start": "next start -p 4001"
},
"dependencies": {
"@suspensive/cache": "workspace:*",
"@suspensive/react": "workspace:*",
"@suspensive/react-dom": "workspace:*",
"@suspensive/react-image": "workspace:*",
Expand Down
38 changes: 0 additions & 38 deletions examples/visualization/src/app/cache/SuspenseCache/page.tsx

This file was deleted.

16 changes: 6 additions & 10 deletions examples/visualization/src/app/providers.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
'use client'

import { Cache, CacheProvider } from '@suspensive/cache'
import { DefaultProps, DefaultPropsProvider } from '@suspensive/react'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { ReactQueryDevtools } from '@tanstack/react-query-devtools'
import { type PropsWithChildren, useState } from 'react'
import { Spinner } from '~/components/uis'

export const Providers = ({ children }: PropsWithChildren) => {
const cache = useState(() => new Cache())[0]
const queryClient = useState(() => new QueryClient({ defaultOptions: { queries: { retry: 0 } } }))[0]
const defaultProps = useState(() => new DefaultProps({ Delay: { ms: 1200 }, Suspense: { fallback: <Spinner /> } }))[0]

return (
<CacheProvider cache={cache}>
<DefaultPropsProvider defaultProps={defaultProps}>
<QueryClientProvider client={queryClient}>
{children}
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
</DefaultPropsProvider>
</CacheProvider>
<DefaultPropsProvider defaultProps={defaultProps}>
<QueryClientProvider client={queryClient}>
{children}
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
</DefaultPropsProvider>
)
}
195 changes: 0 additions & 195 deletions packages/cache/CHANGELOG.md

This file was deleted.

21 changes: 0 additions & 21 deletions packages/cache/LICENSE

This file was deleted.

13 changes: 0 additions & 13 deletions packages/cache/README.ko.md

This file was deleted.

13 changes: 0 additions & 13 deletions packages/cache/README.md

This file was deleted.

Loading

0 comments on commit 7c6c3b1

Please sign in to comment.