Skip to content

Commit

Permalink
chore(*): Suspensive with Toss (#912)
Browse files Browse the repository at this point in the history
![logo_background_star](https://github.com/toss/suspensive/assets/61593290/100ee9b9-222a-4aa1-9396-3568dbde106c)

# Suspensive with Toss to next stage 🚀

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

Suspensive maintainers (@manudeli, @okinawaa, @minsoo-web) have already
joined toss now and agreed to move suspensive repo into toss
organization and work on this seriously as part of our work. Also, after
discussion with @raon0211, the frontend head of toss, he helped us move
the repository.

I first created Suspensive outside of Toss to find a quick way to modify
@toss/error-boundary and @toss/async-boundary, which are part of the
slash library in 2022, and to improve @toss/react-query. Additionally,
@suspensive/react-query, a part of this library monorepo, has been
introduced as a community resource in the official TanStack Query
document. As a result, Suspensive has become a library that I use in
every project I create.

After joining the company, Toss, I learned that more than 10 services at
Toss were already using @suspensive/react and @suspensive/react-query,
and I would like to support their common use across the company. We also
want to support the use of other companies' production-grade services.
we wanted to share this open source with more people in order to unify
the interfaces related to Suspense and ErrorBoundary and develop the
ecosystem, and we needed a way to continuously receive good feedback.
That's why we moved suspensive into toss organization.

I hope we can make this front-end ecosystem better together.

Thanks, early contributors! we've been able to address a lot of issues
and make a lot of improvements! @tooooo1 @ssi02014 @2-NOW @sungh0lim
@codebutler @sonsurim @SEOKKAMONI @Kanary159357 @lunelson @relsunkaev
@sylvainmouquet @pengooseDev @gjlee94 @wes5510 @chaaerim @minchodang
@zillako @sukvvon @jinn2u


[![contributors](https://contrib.rocks/image?repo=toss/suspensive)](https://github.com/toss/suspensive/graphs/contributors)

## PR Checklist

- [x] I did below actions if need

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

---------
  • Loading branch information
manudeli authored Jun 13, 2024
1 parent 26603e6 commit 5db0b97
Show file tree
Hide file tree
Showing 31 changed files with 148 additions and 168 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "suspensive/react" }],
"changelog": ["@changesets/changelog-github", { "repo": "toss/suspensive" }],
"commit": false,
"fixed": [["@suspensive/react", "@suspensive/react-query"]],
"ignore": ["@suspensive/next-streaming-react-query", "@suspensive/visualization", "@suspensive/suspensive.org"],
Expand Down
8 changes: 8 additions & 0 deletions .changeset/twelve-dancers-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@suspensive/react-await": patch
"@suspensive/react-image": patch
"@suspensive/react-query": patch
"@suspensive/react": patch
---

chore(*): suspensive with toss
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

- [ ] I did below actions if need

1. I read the [Contributing Guide](https://github.com/suspensive/react/blob/main/CONTRIBUTING.md)
1. I read the [Contributing Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
24 changes: 12 additions & 12 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
- Focusing on what is best not just for us as individuals, but for the overall
community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or advances of
- The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand All @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
manudeli.ko@gmail.com.
jonghyeon@toss.im.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down Expand Up @@ -129,4 +129,4 @@ For answers to common questions about this code of conduct, see the FAQ at
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations
[translations]: https://www.contributor-covenant.org/translations
24 changes: 12 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ All communications in this repository will be by English.

### 1. Search for duplicates

[Search the existing issues](https://github.com/suspensive/react/issues) before logging a new one.
[Search the existing issues](https://github.com/toss/suspensive/issues) before logging a new one.

### 2. Have a question?

The issue tracker is for **issues**, in other words, bugs and suggestions.
If you have a _question_, please use [GitHub Discussions](https://github.com/suspensive/react/discussions), your favorite search engine, or other resources.
If you have a _question_, please use [GitHub Discussions](https://github.com/toss/suspensive/discussions), your favorite search engine, or other resources.

### 3. Found a bug?

Expand All @@ -26,7 +26,7 @@ When logging a bug, please be sure to include the following:

### 4. Feature suggestion?

We also accept suggestions in the [issue tracker](https://github.com/suspensive/react/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=%5BFeature%5D%3A).
We also accept suggestions in the [issue tracker](https://github.com/toss/suspensive/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=%5BFeature%5D%3A).

In general, things we find useful when reviewing suggestions are:

Expand All @@ -37,20 +37,20 @@ In general, things we find useful when reviewing suggestions are:

### Prerequisites

0. [Choose an issue about bug or feature you want to work on](https://github.com/suspensive/react/issues)
0. [Choose an issue about bug or feature you want to work on](https://github.com/toss/suspensive/issues)
1. Clone the repository
```shell
git clone git@github.com:suspensive/react.git
```
2. Please use the correct node version. You can use the version declared in [.nvmrc](https://github.com/suspensive/react/blob/main/.nvmrc). We strongly recommend [nvm](https://github.com/nvm-sh/nvm) to control local machine's node version easily. also We recommend [nvm's deeper shell integration](https://github.com/nvm-sh/nvm#deeper-shell-integration) too.
```shell
git clone git@github.com:suspensive/react.git
```
2. Please use the correct node version. You can use the version declared in [.nvmrc](https://github.com/toss/suspensive/blob/main/.nvmrc). We strongly recommend [nvm](https://github.com/nvm-sh/nvm) to control local machine's node version easily. also We recommend [nvm's deeper shell integration](https://github.com/nvm-sh/nvm#deeper-shell-integration) too.
3. Install packages. [We use pnpm v8. Install pnpm with corepack please if you can](https://pnpm.io/installation#using-corepack). We recommend using corepack for pnpm to automatically use the version declared in the packageManager field of package.json.
```shell
pnpm install
```
```shell
pnpm install
```

### Pull Requests

> [Opening a pull request](https://github.com/suspensive/react/pulls)
> [Opening a pull request](https://github.com/toss/suspensive/pulls)
All commit message and title of your Pull Request should match the following format:

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Suspensive
Copyright (c) 2024 Viva Republica, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
28 changes: 13 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<div align="center">
<a href="https://suspensive.org" title="Suspensive Libraries - TypeScript/JavaScript packages to use React Suspense easily">
<img src="https://github.com/suspensive/react/blob/main/assets/logo_background_star.png?raw=true" alt="Suspensive Libraries Logo - TypeScript/JavaScript packages to use React Suspense easily." width="600" />
<img src="https://github.com/toss/suspensive/blob/main/assets/logo_background_star.png?raw=true" alt="Suspensive Libraries Logo - TypeScript/JavaScript packages to use React Suspense easily." width="600" />
<h1 align="center">Suspensive</h1>
</a>
</div>

<div align="center">

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge&color=000&labelColor=000)](https://github.com/suspensive/react/blob/main/LICENSE)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge&color=000&labelColor=000)](https://github.com/toss/suspensive/blob/main/LICENSE)
[![@suspensive/react downloads](https://img.shields.io/npm/dt/@suspensive/react.svg?label=@suspensive/react&color=000&labelColor=000&style=for-the-badge)](https://www.npmjs.com/package/@suspensive/react)
[![@suspensive/react-query downloads](https://img.shields.io/npm/dt/@suspensive/react-query.svg?label=@suspensive/react-query&color=000&labelColor=000&style=for-the-badge)](https://www.npmjs.com/package/@suspensive/react-query)

[![codecov](https://codecov.io/gh/suspensive/react/branch/main/graph/badge.svg?token=H4VQ71NJ16)](https://codecov.io/gh/suspensive/react) ![GitHub stars](https://img.shields.io/github/stars/suspensive/react?style=social) ![GitHub forks](https://img.shields.io/github/forks/suspensive/react?style=social)
[![codecov](https://codecov.io/gh/toss/suspensive/graph/badge.svg?token=5PopssACmx)](https://codecov.io/gh/toss/suspensive) ![GitHub stars](https://img.shields.io/github/stars/toss/suspensive?style=social) ![GitHub forks](https://img.shields.io/github/forks/toss/suspensive?style=social)

[OFFICIAL DOCS](https://suspensive.org) | [VISUALIZATION](https://visualization.suspensive.org) | [DEPENDENCY GRAPH](https://graph.suspensive.org)

Expand Down Expand Up @@ -142,15 +142,15 @@ const Example = () => (

<br/>

## Docs [![deployment](https://img.shields.io/github/deployments/suspensive/react/Production%20%E2%80%93%20docs-v1?label=vercel&logo=vercel&logoColor=white&color=000&labelColor=000)](https://suspensive.org)
## Docs [![deployment](https://img.shields.io/github/deployments/toss/suspensive/Production%20%E2%80%93%20docs-v1?label=vercel&logo=vercel&logoColor=white&color=000&labelColor=000)](https://suspensive.org)

We provide Official Docs

See [OFFICIAL DOCS](https://suspensive.org)

<br/>

## Visualization [![deployment](https://img.shields.io/github/deployments/suspensive/react/Production%20%E2%80%93%20Visualization?label=vercel&logo=vercel&logoColor=white&color=000&labelColor=000)](https://visualization.suspensive.org)
## Visualization [![deployment](https://img.shields.io/github/deployments/toss/suspensive/Production%20%E2%80%93%20Visualization?label=vercel&logo=vercel&logoColor=white&color=000&labelColor=000)](https://visualization.suspensive.org)

Concepts Visualization ready. You can see core concepts of Suspensive visually

Expand All @@ -164,19 +164,17 @@ Read our [Contributing Guide](./CONTRIBUTING.md) to familiarize yourself with Su

### Contributors

[![contributors](https://contrib.rocks/image?repo=suspensive/react)](https://github.com/suspensive/react/graphs/contributors)
[![contributors](https://contrib.rocks/image?repo=toss/suspensive)](https://github.com/toss/suspensive/graphs/contributors)

<br/>

## License

MIT © Suspensive. See [LICENSE](./LICENSE) for details.
MIT © Viva Republica, Inc. See [LICENSE](./LICENSE) for details.

<div align="center">
<a title="Suspensive" href="https://github.com/suspensive">
<div style='display:flex; align-items:center;'>
<img alt="Suspensive" src="https://github.com/suspensive/react/blob/main/assets/logo_dark.png?raw=true" width="24">
<sup>Suspensive</sup>
</div>
</a>
</div>
<a title="Toss" href="https://toss.im">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://static.toss.im/logos/png/4x/logo-toss-reverse.png">
<img alt="Toss" src="https://static.toss.im/logos/png/4x/logo-toss.png" width="100">
</picture>
</a>
8 changes: 2 additions & 6 deletions docs/suspensive.org/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@
"@suspensive/react-query"
],
"homepage": "https://suspensive.org",
"bugs": "https://github.com/suspensive/react/issues",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/manudeli"
},
"bugs": "https://github.com/toss/suspensive/issues",
"author": {
"name": "Jonghyeon Ko",
"email": "manudeli.ko@gmail.com"
"email": "jonghyeon@toss.im"
},
"type": "commonjs",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions docs/suspensive.org/src/pages/docs/changelogs.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { Cards, Card } from 'nextra/components'
# Changelogs

<Cards num={2}>
<Card title="@suspensive/react" href="https://github.com/suspensive/react/blob/main/packages/react/CHANGELOG.md" />
<Card title="@suspensive/react" href="https://github.com/toss/suspensive/blob/main/packages/react/CHANGELOG.md" />
<Card
title="@suspensive/react-query"
href="https://github.com/suspensive/react/blob/main/packages/react-query/CHANGELOG.md"
href="https://github.com/toss/suspensive/blob/main/packages/react-query/CHANGELOG.md"
/>
<Card
title="@suspensive/react-await"
href="https://github.com/suspensive/react/blob/main/packages/react-await/CHANGELOG.md"
href="https://github.com/toss/suspensive/blob/main/packages/react-await/CHANGELOG.md"
/>
<Card
title="@suspensive/react-image"
href="https://github.com/suspensive/react/blob/main/packages/react-image/CHANGELOG.md"
href="https://github.com/toss/suspensive/blob/main/packages/react-image/CHANGELOG.md"
/>
</Cards>
8 changes: 4 additions & 4 deletions docs/suspensive.org/src/pages/docs/changelogs.ko.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { Cards, Card } from 'nextra/components'
# Changelogs

<Cards num={2}>
<Card title="@suspensive/react" href="https://github.com/suspensive/react/blob/main/packages/react/CHANGELOG.md" />
<Card title="@suspensive/react" href="https://github.com/toss/suspensive/blob/main/packages/react/CHANGELOG.md" />
<Card
title="@suspensive/react-query"
href="https://github.com/suspensive/react/blob/main/packages/react-query/CHANGELOG.md"
href="https://github.com/toss/suspensive/blob/main/packages/react-query/CHANGELOG.md"
/>
<Card
title="@suspensive/react-await"
href="https://github.com/suspensive/react/blob/main/packages/react-await/CHANGELOG.md"
href="https://github.com/toss/suspensive/blob/main/packages/react-await/CHANGELOG.md"
/>
<Card
title="@suspensive/react-image"
href="https://github.com/suspensive/react/blob/main/packages/react-image/CHANGELOG.md"
href="https://github.com/toss/suspensive/blob/main/packages/react-image/CHANGELOG.md"
/>
</Cards>
2 changes: 1 addition & 1 deletion docs/suspensive.org/src/pages/docs/migrate-to-v2.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ In addition, in React 18, [Suspense-related features were added](https://legacy.

We were able to release v2 because of Suspensive's contributors. Thank you to everyone who worked together to make it a better library, and we look forward to your continued support.

[![contributors](https://contrib.rocks/image?repo=suspensive/react)](https://github.com/suspensive/react/graphs/contributors)
[![contributors](https://contrib.rocks/image?repo=toss/suspensive)](https://github.com/toss/suspensive/graphs/contributors)
2 changes: 1 addition & 1 deletion docs/suspensive.org/src/pages/docs/migrate-to-v2.ko.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Suspensive v2에서 **호환성을 높이고 DX를 개선하는 데 중점을

Suspensive의 기여자가 있어서 이렇게 v2를 출시할 수 있었던 것 같습니다. 더 나은 라이브러리로 만들기 위해 함께 노력해주신 모든 분들 감사하고 앞으로도 잘 부탁드립니다.

[![contributors](https://contrib.rocks/image?repo=suspensive/react)](https://github.com/suspensive/react/graphs/contributors)
[![contributors](https://contrib.rocks/image?repo=toss/suspensive)](https://github.com/toss/suspensive/graphs/contributors)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Therefore, we will maintain support for @tanstack/react-query v4.

## What's new

### New `<SuspenseQuery/>`, `<SuspenseInfiniteQuery/>` [#775](https://github.com/suspensive/react/pull/775)
### New `<SuspenseQuery/>`, `<SuspenseInfiniteQuery/>` [#775](https://github.com/toss/suspensive/pull/775)

Because the existing useSuspenseQuery is a hook, it creates components with names such as AuthorInfo and PostList to place Suspense and ErrorBoundary on the parent.
This makes it difficult to predict what suspense and errors will be thrown inside AuthorInfo and PostList.
Expand Down Expand Up @@ -96,7 +96,7 @@ const PostsPage = ({ authorId }) => (
)
```

### New `queryOptions` [#828](https://github.com/suspensive/react/pull/828)
### New `queryOptions` [#828](https://github.com/toss/suspensive/pull/828)

Tkdodo, The maintainer of TanStack Query explains well why this interface is needed in [video explaining queryOptions in TanStack Query v5](https://youtu.be/bhE3wuB_TuA?feature=shared&t=1697).
You can also use queryOptions in TanStack Query v4.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## 새로운 기능

### 새로운 `<SuspenseQuery/>`, `<SuspenseInfiniteQuery/>` [#775](https://github.com/suspensive/react/pull/775)
### 새로운 `<SuspenseQuery/>`, `<SuspenseInfiniteQuery/>` [#775](https://github.com/toss/suspensive/pull/775)

기존의 useSuspenseQuery는 훅이기 때문에 부모에 Suspense, ErrorBoundary를 배치하기 위해 AuthorInfo, PostList와 같은 이름을 가진 컴포넌트를 만들게 합니다.
이것은 AuthorInfo, PostList 내부에서 던져질 suspense와 error가 있을지 예측하기 어렵게 만듭니다.
Expand Down Expand Up @@ -96,7 +96,7 @@ const PostsPage = ({ authorId }) => (
)
```

### 새로운 `queryOptions` [#828](https://github.com/suspensive/react/pull/828)
### 새로운 `queryOptions` [#828](https://github.com/toss/suspensive/pull/828)

TanStack Query의 메인테이너 [Tkdodo의 TanStack Query v5의 queryOptions 설명 영상](https://youtu.be/bhE3wuB_TuA?feature=shared&t=1697)에서 이 interface가 필요한 이유를 잘 설명되어 있습니다.
TanStack Query v4에서도 queryOptions를 활용할 수 있습니다.
Expand Down
10 changes: 5 additions & 5 deletions docs/suspensive.org/src/pages/docs/react/migrate-to-v2.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## What's new

### New [`<DevMode/>`](/docs/react/DevMode) [#470](https://github.com/suspensive/react/pull/470)
### New [`<DevMode/>`](/docs/react/DevMode) [#470](https://github.com/toss/suspensive/pull/470)

This is our new feature for DX with new `devMode` prop of `<Suspense/>`, `<ErrorBoundary/>`

Expand Down Expand Up @@ -34,7 +34,7 @@ const Example = () => {
}
```

### New [`wrap`](/docs/react/wrap) builder [#270](https://github.com/suspensive/react/pull/270)
### New [`wrap`](/docs/react/wrap) builder [#270](https://github.com/toss/suspensive/pull/270)

A new feature that wraps a component in `<Suspense/>`, `<ErrorBoundary/>`, and `<ErrorBoundaryGroup/>` all at once.

Expand All @@ -57,7 +57,7 @@ const Example = wrap
})
```

### New `shouldCatch` prop of `<ErrorBoundary/>` [#569](https://github.com/suspensive/react/pull/569)
### New `shouldCatch` prop of `<ErrorBoundary/>` [#569](https://github.com/toss/suspensive/pull/569)

Suspensive's `<ErrorBoundary/>` can catch all thrown errors that occur in children. However, because it catches all thrown errors, when using `<ErrorBoundary/>`, I thought about placing `<ErrorBoundary/>` in a narrower position.
For this reason, we added a new prop called shouldCatch to ErrorBoundary, which allows you to set which Error should be caught.
Expand Down Expand Up @@ -130,7 +130,7 @@ const Example = () => {
}
```

### New [`<ErrorBoundary.Consumer/>`](/docs/react/ErrorBoundary), [`<ErrorBoundaryGroup.Consumer/>`](/docs/react/ErrorBoundaryGroup) [#610](https://github.com/suspensive/react/pull/610)
### New [`<ErrorBoundary.Consumer/>`](/docs/react/ErrorBoundary), [`<ErrorBoundaryGroup.Consumer/>`](/docs/react/ErrorBoundaryGroup) [#610](https://github.com/toss/suspensive/pull/610)

These components can be used to use `useErrorBoundary`, `useErrorBoundaryGroup` in jsx inlinely

Expand All @@ -157,7 +157,7 @@ const Example = () => {

### Removed `<AsyncBoundary/>`

We removed `<AsyncBoundary/>` in v2 [#295](https://github.com/suspensive/react/issues/295)
We removed `<AsyncBoundary/>` in v2 [#295](https://github.com/toss/suspensive/issues/295)

Because `<AsyncBoundary/>` uses `<ErrorBoundary/>` internally, it can be used with `useErrorBoundary` and is affected by `<ErrorBoundaryGroup/>`. We decided to remove this component from v2, believing that it would be better for maintainability and interface unification for library users.

Expand Down
Loading

0 comments on commit 5db0b97

Please sign in to comment.