Alternate of applying shipping discount at checkout

I was using the Shopify Script Editor app to apply shipping discounts at checkout, and it was working fine (Please see the attached screenshot) automatically combining with other product/order discounts. Since scripts are going to be deprecated, I moved to Shopify Functions and created a shipping discount using shopify shippping discount function there using the same conditions as in the Script Editor. The issue is that to combine it with other product/order discounts, I have to allow all existing discounts to combine with this new shipping discount. I have thousands of discounts like that. What is the alternative to achieve this in Shopify Functions?