Skip to content

Comments

Release to npm#436

Merged
kzuraw merged 1 commit intomainfrom
changeset-release/main
May 23, 2025
Merged

Release to npm#436
kzuraw merged 1 commit intomainfrom
changeset-release/main

Conversation

@lkostrowski
Copy link
Member

@lkostrowski lkostrowski commented May 19, 2025

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 main, this PR will be updated.

Releases

@saleor/app-sdk@1.0.5

Patch Changes

  • 965089a: Added optional second generic parameter to buildSyncWebhookResponsePayload called SaleorVersion.
    This change improves TypeScript type safety when working with different Saleor versions that have varying payload requirements.

    After this change you can for example use buildSyncWebhookResponsePayload with different version and differently type responses:

    // 3.20 is default `SaleorVersion` so you can also write `buildSyncWebhookResponsePayload<TRANSACTION_CHARGE_REQUESTED>`
    const respOne = buildSyncWebhookResponsePayload<"TRANSACTION_CHARGE_REQUESTED", "3.20">({
      result: "CHARGE_SUCCESS",
      amount: 100, // Required in 3.20
    });
    
    const respTwo = buildSyncWebhookResponsePayload<"TRANSACTION_CHARGE_REQUESTED", "3.21">({
      result: "CHARGE_SUCCESS", // amount is optional in 3.21
    });
  • a353fdf: Allow to override signature verification method in SaleorWebhook class (likely for testing)

@lkostrowski lkostrowski requested a review from a team May 19, 2025 08:03
@codecov
Copy link

codecov bot commented May 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.86%. Comparing base (a353fdf) to head (31bd838).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #436   +/-   ##
=======================================
  Coverage   83.86%   83.86%           
=======================================
  Files         107      107           
  Lines        3507     3507           
  Branches      590      590           
=======================================
  Hits         2941     2941           
  Misses        555      555           
  Partials       11       11           

☔ 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.

@lkostrowski lkostrowski force-pushed the changeset-release/main branch from 16e3368 to 31bd838 Compare May 23, 2025 10:54
@kzuraw kzuraw merged commit 04992da into main May 23, 2025
9 checks passed
@kzuraw kzuraw deleted the changeset-release/main branch May 23, 2025 11:08
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.

2 participants