Skip to content

Version Packages#3754

Open
github-actions[bot] wants to merge 1 commit intomasterfrom
changeset-release/master
Open

Version Packages#3754
github-actions[bot] wants to merge 1 commit intomasterfrom
changeset-release/master

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 1, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@data-client/react@1.0.0

Major Changes

  • #3752 3c3bfe8 - BREAKING CHANGE: useFetch() always returns a stable promise with a .resolved property, even when data is already cached.

    before

    const promise = useFetch(MyResource.get, { id });
    if (promise) {
      // fetch was triggered
    }

    after

    const promise = useFetch(MyResource.get, { id });
    if (!promise.resolved) {
      // fetch is in-flight
    }
    use(promise); // works with React.use()

Minor Changes

  • #3755 5783267 - useFetch() returns a UsablePromise thenable with denormalized data, error handling, and GC tracking. use(useFetch(endpoint, args)) now behaves identically to useSuspense(endpoint, args) — suspending when data is loading, returning denormalized data when cached, throwing on errors, and re-suspending on invalidation.

    Parallel fetches are supported since all useFetch() calls execute before any use() suspends:

    const postPromise = useFetch(PostResource.get, { id });
    const commentsPromise = useFetch(CommentResource.getList, { postId: id });
    const post = use(postPromise);
    const comments = use(commentsPromise);

Patch Changes

  • Updated dependencies [0e0ff1a]:
    • @data-client/core@1.0.0

@data-client/vue@1.0.0

Major Changes

  • #3752 3c3bfe8 - BREAKING CHANGE: useFetch() always returns a stable promise with a .resolved property, even when data is already cached.

    before

    const promise = useFetch(MyResource.get, { id });
    if (promise) {
      // fetch was triggered
    }

    after

    const promise = useFetch(MyResource.get, { id });
    if (!promise.resolved) {
      // fetch is in-flight
    }
    use(promise); // works with React.use()

Patch Changes

  • Updated dependencies [0e0ff1a]:
    • @data-client/core@1.0.0

@data-client/rest@1.0.0

Minor Changes

Patch Changes

  • #3782 3b85c82 - Fix searchParams: undefined being widened to any in TypeScript 6 non-strict mode

    TypeScript 6.0 widens undefined to any during generic inference when strictNullChecks is off.
    This caused RestEndpoint with searchParams: undefined to incorrectly accept arbitrary arguments.

  • #3757 02555a2 - Fix undefined optional path params being interpolated as literal "undefined" in URLs

  • Updated dependencies []:

    • @data-client/endpoint@0.15.7

@data-client/core@1.0.0

Patch Changes

  • #3774 0e0ff1a - GCPolicy interval no longer blocks Node.js process exit

    Call .unref() on GCPolicy's setInterval in Node.js environments, preventing the GC sweep timer from keeping Jest workers or other Node.js processes alive.

@data-client/img@1.0.0

Patch Changes

  • Updated dependencies [3c3bfe8, 5783267]:
    • @data-client/react@1.0.0
    • @data-client/endpoint@0.15.7

@data-client/test@1.0.0

Patch Changes

  • #3774 0e0ff1a - Add automatic cleanup after each test

    renderDataHook() and makeRenderDataClient() now register an afterEach hook at import time that automatically cleans up all active managers. Manual renderDataHook.cleanup() calls in afterEach are no longer needed.

    // Before: ❌
    afterEach(() => {
      renderDataHook.cleanup();
    });
    
    // After: ✓ (no afterEach needed — cleanup is automatic)
  • #3772 1a20f4e - Add per-render cleanup() and allSettled() to makeRenderDataHook return value

    Each renderDataHook() call now returns cleanup and allSettled directly on the result object, ensuring each render's managers can be independently cleaned up. This prevents manager leaks when renderDataHook() is called multiple times in a test.

    New exports: RenderDataHookResult

    const { result, cleanup, allSettled } = renderDataHook(
      () => useSuspense(MyResource.get, { id: 5 }),
      { initialFixtures },
    );
    // ... assertions ...
    cleanup();
  • Updated dependencies [3c3bfe8, 5783267]:

    • @data-client/react@1.0.0

example-benchmark@0.4.81

Patch Changes

  • Updated dependencies [0e0ff1a]:
    • @data-client/core@1.0.0
    • @data-client/endpoint@0.15.7

coinbase-lite@0.0.16

Patch Changes

test-bundlesize@0.1.8

Patch Changes

@codecov
Copy link

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.05%. Comparing base (365422e) to head (ee489a5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3754   +/-   ##
=======================================
  Coverage   98.05%   98.05%           
=======================================
  Files         151      151           
  Lines        2834     2834           
  Branches      555      555           
=======================================
  Hits         2779     2779           
  Misses         11       11           
  Partials       44       44           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions bot force-pushed the changeset-release/master branch 10 times, most recently from 131196b to f7f536a Compare March 7, 2026 18:13
@github-actions github-actions bot force-pushed the changeset-release/master branch 8 times, most recently from 9f2c8fe to 2c35b23 Compare March 8, 2026 18:51
@vercel
Copy link

vercel bot commented Mar 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs-site Ignored Ignored Preview Mar 11, 2026 2:34pm

@github-actions github-actions bot force-pushed the changeset-release/master branch 9 times, most recently from 270d1b4 to 8ef4938 Compare March 11, 2026 14:02
@github-actions github-actions bot force-pushed the changeset-release/master branch from 8ef4938 to 4f6de2c Compare March 11, 2026 14:24
@github-actions github-actions bot force-pushed the changeset-release/master branch from 4f6de2c to ee489a5 Compare March 11, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants