toss / suspensive

Manage asynchronous operations, timing, error handling, detecting intersection of elements, and caching easily (One of TanStack Query community resources)
https://suspensive.org
MIT License
440 stars 38 forks source link

feat(configs): add options for scripts #978

Closed gwansikk closed 3 weeks ago

gwansikk commented 3 weeks ago

Overview

PR Checklist

  1. I read the Contributing Guide
  2. I added documents and tests.
vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
suspensive.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:35am
v1.suspensive.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:35am
visualization.suspensive.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:35am
changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: 0defcd4e0ab5ac279946c2f776df4b0f1c678d32

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ----------------------- | ----- | | @suspensive/react-query | Patch | | @suspensive/react | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov-commenter commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.88%. Comparing base (2c0e755) to head (0defcd4).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/toss/suspensive/pull/978/graphs/tree.svg?width=650&height=150&src=pr&token=5PopssACmx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss)](https://app.codecov.io/gh/toss/suspensive/pull/978?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) ```diff @@ Coverage Diff @@ ## main #978 +/- ## ======================================= Coverage 80.88% 80.88% ======================================= Files 38 38 Lines 450 450 Branches 99 99 ======================================= Hits 364 364 Misses 77 77 Partials 9 9 ``` | [Components](https://app.codecov.io/gh/toss/suspensive/pull/978/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) | Coverage Δ | | |---|---|---| | [@suspensive/react](https://app.codecov.io/gh/toss/suspensive/pull/978/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) | `97.03% <ø> (ø)` | | | [@suspensive/react-query](https://app.codecov.io/gh/toss/suspensive/pull/978/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) | `∅ <ø> (∅)` | | | [@suspensive/react-query-4](https://app.codecov.io/gh/toss/suspensive/pull/978/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) | `0.00% <ø> (ø)` | | | [@suspensive/react-query-5](https://app.codecov.io/gh/toss/suspensive/pull/978/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) | `0.00% <ø> (ø)` | | | [@suspensive/react-await](https://app.codecov.io/gh/toss/suspensive/pull/978/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) | `100.00% <ø> (ø)` | | | [@suspensive/react-image](https://app.codecov.io/gh/toss/suspensive/pull/978/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) | `23.52% <ø> (ø)` | |
codspeed-hq[bot] commented 3 weeks ago

CodSpeed Performance Report

Merging #978 will create unknown performance changes

Comparing configs/feat/scripts (0defcd4) with main (2c0e755)

Summary

:warning: No benchmarks were detected in both the base of the PR and the PR.

manudeli commented 3 weeks ago

@gwansikk Check this change

AS-IS: 33.9kB, 45 files https://www.npmjs.com/package/@suspensive/react-query/v/2.2.3 image

TO-BE: 23.4kB, 34 files https://www.npmjs.com/package/@suspensive/react-query/v/2.2.4 image

gwansikk commented 3 weeks ago

@gwansikk Check this change

AS-IS: 33.9kB, 45 files https://www.npmjs.com/package/@suspensive/react-query/v/2.2.3 image

TO-BE: 23.4kB, 34 files https://www.npmjs.com/package/@suspensive/react-query/v/2.2.4 image

That's right. Due to entry: ['src/scripts/*.{ts,tsx}'] and dts: false in scriptOptions, the build files and ~.d.ts, ~.d.cts from utils have been removed, reducing the number of files.