Repository navigation
v1.1.0
·
27 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Storefront listings, carts, and variable product pages now price and stock
products in a fixed number of queries, the OpenAPI spec takes its version
from the release tag, and the engine installs on MySQL.
Added
Product::withDisplayData()scope andProduct::displayRelations(): eager-load what a display price and stock state need (prices, stock rows, variants with theirs) (#195).Tax\TaxRateCandidates(scoped): active tax rates are read once per request per tax class and country, and re-read after aTaxRateis saved or deleted (#195).StockLevels::itemFor(),available(), andsellable()take an optional$preferLoadedflag to read a loadedinventoryItemsrelation. OnlyStockStatususes it; reservations, checkout, and refunds always read fresh rows (#195).ecommerce:generate-openapi --spec-version=sets the spec'sinfo.version(a leadingvis dropped; anything that isn't a semantic version is refused). The release workflow passes the tag (#189).OpenApiGenerator::generate()takes an optional version, andOpenApiGenerator::normalizeVersion()reads a version or tag.
Changed
ProductPriceResolver,PriceDisplayResolver,StockStatus, and product-type variant lookup use relations the caller already loaded instead of querying per product or variant;VariantResolver::matrix()loads variant prices and stock once. Nothing changes for callers that load nothing (#195).- Without
--spec-version,info.versioncomes fromcomposer.json, then the installed engine version. It falls back to0.0.0-dev(OpenApiGenerator::FALLBACK_VERSION), not a hard-coded release number that had to be bumped by hand each release.
Fixed
- MySQL install: the
product_variant_idforeign key onecommerce_product_variant_option_valuesis namedecommerce_pvov_variant_fk. Laravel's default name was 66 characters, past MySQL's 64-character limit, somigratefailed on MySQL. Existing SQLite and Postgres installs are unaffected. A test now compiles every migration as MySQL and fails on any identifier over 64 characters (#191).