New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@saleor/app-sdk

Package Overview
Dependencies
Maintainers
0
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saleor/app-sdk

SDK for building great Saleor Apps

  • 0.0.0-pr-20250206135700
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
increased by7.79%
Maintainers
0
Weekly downloads
 
Created
Source

Discord Badge

SDK for Saleor Apps

SDK for building Saleor Apps.

Supports Saleor version 3.20+

npm version badge npm downloads count

Release flow

  • The main branch is a current, latest branch.
  • Branches matching v[0-9]+.x (like v1.x, v0.x`) are release branches
  • PRs should be opened to main branch and contain changesets (run npx changeset). Once changeset is merged to main, the release PR is opened. After the release PR is merged, the version is being pushed to NPM and changesets are pruned
  • To patch older version, commit from main (including changeset) should be also ported to release branch (e.g. v0.x). Release branch will also detect changes and open release PR
  • To release new major version (e.g. start working on v2.x from v1.x):
    • Create a legacy release branch (e.g. v1.x branch)
    • Mark changeset to main with major change, which will start counting next main releases as 2.x.x
    • Do not merge release PR until it's ready to be merged

Deploying test snapshots

PRs can be pushed to NPM by adding label to PR release dev tag. Workflow will run and print version that has been released.

Installing

npm i @saleor/app-sdk

Docs

You can find the documentation here.

Development

If you would like to develop the SDK and test it with existing project:

  1. In the Saleor App SDK directory run command
pnpm watch

Now any code change will trigger build operation automatically.

  1. In your project directory:
pnpm add ../saleor-app-sdk/dist

As path to your local copy of the App SDK may be different, adjust it accordingly.

Code style

Before committing the code, Git pre-hooks will check staged changes for following the code styles. If you would like to format the code by yourself, run the command:

pnpm lint

Running Integration Tests

To run the integration tests (e.g., Redis APL tests), follow these steps:

  1. Start a Redis container:
docker run --name saleor-app-sdk-redis -p 6379:6379 -d redis:7-alpine
  1. Run the integration tests:
pnpm test:integration
  1. (Optional) Clean up the Redis container:
docker stop saleor-app-sdk-redis
docker rm saleor-app-sdk-redis

Note: If your Redis instance is running on a different host or port, you can set the REDIS_URL environment variable:

REDIS_URL=redis://custom-host:6379 pnpm test:integration

Keywords

FAQs

Package last updated on 06 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc