🟠 Release v2.71.3
⭐⭐ Moderate Complexity • 5 commits • 68 files changedThis release introduces Shopify integration for rewards, allowing admins to create discount-based rewards that are automatically managed in their Shopify stores. Users can now redeem Shopify discounts through Nudj with full support for discount codes and direct checkout links. The release also includes important security patches and fixes for authentication stability.
What’s New
- Shopify Rewards Integration - Seamlessly create and manage Shopify discount-based rewards directly from Nudj’s Admin app
- Flexible Discount Redemption - Choose between showing discount codes with store links or direct checkout links to users
- Automatic Code Generation - Generate unique discount codes with custom prefixes for tracked redemptions
- Authentication Stability - Fixed cookie modification issues in Server Components that were preventing smooth user redirects
- Security Vulnerabilities Patched - Updated critical dependencies to address Dependabot security findings
Apps Updated
User App
✓ Updated - 9 changes
API
✓ Updated - 21 changes
Admin
✓ Updated - 38 changes
MCP Server
— No changes
Website
— No changes
Games
— No changes
Detailed Changes
User App
User App
Authentication & Session Management
- Fixed cookie modification errors in Next.js Server Components that were blocking user redirects during auth callback
- Improved token refresh detection with better handling for expired vs. invalid tokens
- Removed unnecessary cookie deletion operations that were preventing proper session restoration
- Removed Storybook configuration and story files (5,027 lines removed)
- Updated dependencies to address critical security vulnerabilities
API
API
Shopify Integration Backend
- Added
shopifyApiClientfor communicating with Shopify’s GraphQL API - Implemented bulk discount code creation endpoint for Shopify integration
- Added queue handlers for processing Shopify redemption events
- Implemented reward asset management service for Shopify integrations
- Added language mapping support for multi-language Shopify discount configurations
- New
RewardRedemptionConfigShopifyDtoModelfor Shopify-specific reward configurations - New queue DTOs:
ShopifyRedeemCodeRegisterQueuePayloadDtoandShopifyRedeemCodeRegisterQueueOutputDto - Added Shopify discount code generation utilities
- Updated reward asset models to support Shopify redeemables
- Added
SHOPIFY_REDEEM_CODE_REGISTERqueue name for processing Shopify redemptions - Implemented queue message building for Shopify discount tracking
- Added
@shopify/shopify-apifor official Shopify GraphQL API support
Admin
Admin
Shopify Rewards Configuration UI
- New
ShopifyRedemptionStepcomponent for configuring Shopify-based rewards - Display mode selector: Choose between discount codes with store links or direct checkout links
- Code prefix configuration with helpful placeholder guidance
- Read-only Shopify Discount ID field showing integration details
- Informational banner explaining Shopify integration limitations
- Updated
reward-form-containerto handle Shopify-specific configuration flows - Enhanced
use-reward-formhook with Shopify validation logic - Updated reward form schema to support
shopifyDiscountIdandprefixfields - Added Shopify display mode enum options to reward schemas
- Updated rewards columns to display Shopify integration status
- Enhanced reward edit page to support Shopify reward configuration
- New
shopify-connection-cardcomponent for managing Shopify store connections - New
shopify-linking-code-modalfor establishing Shopify authentication
Packages
Packages
Models Package
- Added complete Shopify reward redemption configuration models
- Added Shopify-specific DTOs for queue operations
- Added Shopify platform configuration models for organization settings
- Added utilities for Shopify discount code generation with prefixes
- New
ShopifyIntegrationServicefor managing Shopify discount and redemption workflows - New
ShopifyApiClientfor direct GraphQL communication with Shopify API - Updated
RewardAssetServiceto support Shopify reward assets - Updated
DistributionManagementServicewith Shopify redemption handling
Technical Highlights
Shopify Integration Architecture
The Shopify rewards integration follows a three-tier architecture:- Admin Configuration - Admins select a Shopify discount in their store and configure display mode (code or link)
- Automatic Code Generation - When users redeem, Nudj generates unique discount codes with the configured prefix via Shopify’s GraphQL API
- Queue Processing - Redemptions are tracked through a dedicated queue system that logs discount code registrations
Session Management Improvements
Fixed authentication flow issues where cookie operations in Next.js Server Components were blocking proper session management. The callback handler now properly validates and restores user sessions without redundant cookie operations.Security Updates
Removed unused Storybook dependencies (4,989 lines of dependencies removed) and updated critical packages to address Dependabot security findings. No breaking changes to public APIs.Contributors
@SaadK943 commits • +123/-5,035 lines
@jamescockayne1 commit • +1,084/-122 linesRelease Stats
| Metric | Value |
|---|---|
| Total Commits | 5 |
| Lines Added | +1,694 |
| Lines Removed | -5,175 |
| Files Changed | 68 |
| Release Size | Large |
| Complexity | Moderate |
v2.71.3 deployed on December 10, 2025


