It supports both calls, for a shipment or a package. The previous code just got the package from the shipment and computed that. (see https://github.com/spree/spree/blob/master/core/app/models/spree/shipping_calculator.rb)