Skip to content

Version Packages - #4719

Merged
ntucker merged 1 commit into
masterfrom
changeset-release/master
Nov 29, 2026
Merged

ntucker merged 1 commit into
masterfrom
changeset-release/master

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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/core@0.19.2

Patch Changes

  • #4718 20d93f0 - Fix getResponse() and getResponseMeta() typing data as undefined for endpoints without a schema

    Affects Controller, Snapshot, and the snap that getOptimisticResponse() receives.

    // store settings are plain JSON, so this endpoint has no schema
    const getSettings = new RestEndpoint({
      path: '/settings',
      process(value): { taxRate: number } {
        return value;
      },
    });
    
    const addToCart = new RestEndpoint({
      path: '/cart/items',
      method: 'POST',
      body: {} as { productId: string; price: number },
      schema: CartItem,
      getOptimisticResponse(snap, body) {
        const { data: settings } = snap.getResponse(getSettings);
        return {
          ...body,
          id: `optimistic-${snap.fetchedAt}`,
          // Before: Property 'taxRate' does not exist on type 'never'.
          tax: body.price * (settings?.taxRate ?? 0),
        };
      },
    });

    New exported types EndpointData<E> and EndpointDataNullable<E> are what useSuspense(), useCache(), useDLE(), useLive() and these reads return. Use them to annotate your own helpers. Docs

  • Updated dependencies [20d93f0]:

    • @data-client/normalizr@0.19.2

@data-client/endpoint@0.19.2

Patch Changes

  • #4718 20d93f0 - Fix getResponse() and getResponseMeta() typing data as undefined for endpoints without a schema

    Affects Controller, Snapshot, and the snap that getOptimisticResponse() receives.

    // store settings are plain JSON, so this endpoint has no schema
    const getSettings = new RestEndpoint({
      path: '/settings',
      process(value): { taxRate: number } {
        return value;
      },
    });
    
    const addToCart = new RestEndpoint({
      path: '/cart/items',
      method: 'POST',
      body: {} as { productId: string; price: number },
      schema: CartItem,
      getOptimisticResponse(snap, body) {
        const { data: settings } = snap.getResponse(getSettings);
        return {
          ...body,
          id: `optimistic-${snap.fetchedAt}`,
          // Before: Property 'taxRate' does not exist on type 'never'.
          tax: body.price * (settings?.taxRate ?? 0),
        };
      },
    });

    New exported types EndpointData<E> and EndpointDataNullable<E> are what useSuspense(), useCache(), useDLE(), useLive() and these reads return. Use them to annotate your own helpers. Docs

@data-client/graphql@0.19.2

Patch Changes

  • #4718 20d93f0 - Fix getResponse() and getResponseMeta() typing data as undefined for endpoints without a schema

    Affects Controller, Snapshot, and the snap that getOptimisticResponse() receives.

    // store settings are plain JSON, so this endpoint has no schema
    const getSettings = new RestEndpoint({
      path: '/settings',
      process(value): { taxRate: number } {
        return value;
      },
    });
    
    const addToCart = new RestEndpoint({
      path: '/cart/items',
      method: 'POST',
      body: {} as { productId: string; price: number },
      schema: CartItem,
      getOptimisticResponse(snap, body) {
        const { data: settings } = snap.getResponse(getSettings);
        return {
          ...body,
          id: `optimistic-${snap.fetchedAt}`,
          // Before: Property 'taxRate' does not exist on type 'never'.
          tax: body.price * (settings?.taxRate ?? 0),
        };
      },
    });

    New exported types EndpointData<E> and EndpointDataNullable<E> are what useSuspense(), useCache(), useDLE(), useLive() and these reads return. Use them to annotate your own helpers. Docs

  • Updated dependencies [20d93f0]:

    • @data-client/endpoint@0.19.2

@data-client/normalizr@0.19.2

Patch Changes

  • #4718 20d93f0 - Fix getResponse() and getResponseMeta() typing data as undefined for endpoints without a schema

    Affects Controller, Snapshot, and the snap that getOptimisticResponse() receives.

    // store settings are plain JSON, so this endpoint has no schema
    const getSettings = new RestEndpoint({
      path: '/settings',
      process(value): { taxRate: number } {
        return value;
      },
    });
    
    const addToCart = new RestEndpoint({
      path: '/cart/items',
      method: 'POST',
      body: {} as { productId: string; price: number },
      schema: CartItem,
      getOptimisticResponse(snap, body) {
        const { data: settings } = snap.getResponse(getSettings);
        return {
          ...body,
          id: `optimistic-${snap.fetchedAt}`,
          // Before: Property 'taxRate' does not exist on type 'never'.
          tax: body.price * (settings?.taxRate ?? 0),
        };
      },
    });

    New exported types EndpointData<E> and EndpointDataNullable<E> are what useSuspense(), useCache(), useDLE(), useLive() and these reads return. Use them to annotate your own helpers. Docs

@data-client/react@0.19.2

Patch Changes

  • #4718 20d93f0 - Fix getResponse() and getResponseMeta() typing data as undefined for endpoints without a schema

    Affects Controller, Snapshot, and the snap that getOptimisticResponse() receives.

    // store settings are plain JSON, so this endpoint has no schema
    const getSettings = new RestEndpoint({
      path: '/settings',
      process(value): { taxRate: number } {
        return value;
      },
    });
    
    const addToCart = new RestEndpoint({
      path: '/cart/items',
      method: 'POST',
      body: {} as { productId: string; price: number },
      schema: CartItem,
      getOptimisticResponse(snap, body) {
        const { data: settings } = snap.getResponse(getSettings);
        return {
          ...body,
          id: `optimistic-${snap.fetchedAt}`,
          // Before: Property 'taxRate' does not exist on type 'never'.
          tax: body.price * (settings?.taxRate ?? 0),
        };
      },
    });

    New exported types EndpointData<E> and EndpointDataNullable<E> are what useSuspense(), useCache(), useDLE(), useLive() and these reads return. Use them to annotate your own helpers. Docs

  • Updated dependencies [20d93f0]:

    • @data-client/core@0.19.2

@data-client/rest@0.19.2

Patch Changes

  • #4718 20d93f0 - Fix getResponse() and getResponseMeta() typing data as undefined for endpoints without a schema

    Affects Controller, Snapshot, and the snap that getOptimisticResponse() receives.

    // store settings are plain JSON, so this endpoint has no schema
    const getSettings = new RestEndpoint({
      path: '/settings',
      process(value): { taxRate: number } {
        return value;
      },
    });
    
    const addToCart = new RestEndpoint({
      path: '/cart/items',
      method: 'POST',
      body: {} as { productId: string; price: number },
      schema: CartItem,
      getOptimisticResponse(snap, body) {
        const { data: settings } = snap.getResponse(getSettings);
        return {
          ...body,
          id: `optimistic-${snap.fetchedAt}`,
          // Before: Property 'taxRate' does not exist on type 'never'.
          tax: body.price * (settings?.taxRate ?? 0),
        };
      },
    });

    New exported types EndpointData<E> and EndpointDataNullable<E> are what useSuspense(), useCache(), useDLE(), useLive() and these reads return. Use them to annotate your own helpers. Docs

  • Updated dependencies [20d93f0]:

    • @data-client/endpoint@0.19.2

@data-client/vue@0.19.2

Patch Changes

  • #4718 20d93f0 - Fix getResponse() and getResponseMeta() typing data as undefined for endpoints without a schema

    Affects Controller, Snapshot, and the snap that getOptimisticResponse() receives.

    // store settings are plain JSON, so this endpoint has no schema
    const getSettings = new RestEndpoint({
      path: '/settings',
      process(value): { taxRate: number } {
        return value;
      },
    });
    
    const addToCart = new RestEndpoint({
      path: '/cart/items',
      method: 'POST',
      body: {} as { productId: string; price: number },
      schema: CartItem,
      getOptimisticResponse(snap, body) {
        const { data: settings } = snap.getResponse(getSettings);
        return {
          ...body,
          id: `optimistic-${snap.fetchedAt}`,
          // Before: Property 'taxRate' does not exist on type 'never'.
          tax: body.price * (settings?.taxRate ?? 0),
        };
      },
    });

    New exported types EndpointData<E> and EndpointDataNullable<E> are what useSuspense(), useCache(), useDLE(), useLive() and these reads return. Use them to annotate your own helpers. Docs

  • Updated dependencies [20d93f0]:

    • @data-client/core@0.19.2

example-benchmark@0.4.88

Patch Changes

  • Updated dependencies [20d93f0]:
    • @data-client/core@0.19.2
    • @data-client/endpoint@0.19.2
    • @data-client/normalizr@0.19.2

example-benchmark-react@0.1.14

Patch Changes

  • Updated dependencies [20d93f0]:
    • @data-client/core@0.19.2
    • @data-client/endpoint@0.19.2
    • @data-client/rest@0.19.2
    • @data-client/react@0.19.2

coinbase-lite@0.0.29

Patch Changes

  • Updated dependencies [20d93f0]:
    • @data-client/rest@0.19.2
    • @data-client/react@0.19.2

normalizr-github-example@0.1.62

Patch Changes

  • Updated dependencies [20d93f0]:
    • @data-client/endpoint@0.19.2
    • @data-client/normalizr@0.19.2

normalizr-redux-example@0.1.60

Patch Changes

  • Updated dependencies [20d93f0]:
    • @data-client/endpoint@0.19.2
    • @data-client/normalizr@0.19.2

normalizr-relationships@0.1.62

Patch Changes

  • Updated dependencies [20d93f0]:
    • @data-client/endpoint@0.19.2
    • @data-client/normalizr@0.19.2

test-bundlesize@0.1.21

Patch Changes

  • Updated dependencies [20d93f0]:
    • @data-client/rest@0.19.2
    • @data-client/react@0.19.2
    • @data-client/img@0.19.0

@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.64%. Comparing base (9b1a4a1) to head (e7b97ee).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4719   +/-   ##
=======================================
  Coverage   98.64%   98.64%           
=======================================
  Files         163      163           
  Lines        3164     3164           
  Branches      629      629           
=======================================
  Hits         3121     3121           
  Misses          9        9           
  Partials       34       34           

☔ View full report in Codecov by Harness.
📢 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.

@ntucker
ntucker added this pull request to the merge queue Nov 29, 2026
Merged via the queue into master with commit da79b18 Nov 29, 2026
20 checks passed
@ntucker
ntucker deleted the changeset-release/master branch November 29, 2026 23:36
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.

1 participant