Skip to content

Commit 2de5588

Browse files
authored
Merge pull request #4189 from craftcms/5.6
5.6
2 parents fae9c3e + 6c0c5f4 commit 2de5588

38 files changed

+1256
-330
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- '5.x'
7+
- '5.6'
78
pull_request:
89
permissions:
910
contents: read

CHANGELOG.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,43 @@
22

33
## Unreleased
44

5+
### Administration
6+
- Added the “UI Label Format” and “Variant UI Label Format” settings to product types. ([#4178](https://github.com/craftcms/commerce/pull/4178))
7+
8+
### Extensibility
9+
- Added `relatedToProducts` and `relatedToVariants` GraphQL query arguments, enabling queries for elements related to specific products or variants. ([#4202](https://github.com/craftcms/commerce/discussions/4202))
10+
- Added `craft\commerce\elements\db\ProductQuery::$savable`.
11+
- Added `craft\commerce\elements\db\ProductQuery::savable()`.
12+
- Added `craft\commerce\elements\db\VariantQuery::$savable`.
13+
- Added `craft\commerce\elements\db\VariantQuery::editable()`.
14+
- Added `craft\commerce\elements\db\VariantQuery::savable()`.
15+
- Added `craft\commerce\helpers\ProductQuery::cleanseQueryCriteria()`.
16+
- Added `craft\commerce\services\ShippingRuleCategories::getShippingRuleCategoriesByRuleIds()`.
17+
- Added `craft\commerce\services\ShippingRuleCategories::getShippingRuleCategoriesByRuleIds()`.
18+
- `craft\commerce\elements\db\ProductQuery::$editable` is now nullable.
19+
- `craft\commerce\elements\db\VariantQuery::$editable` is now nullable.
20+
21+
### System
22+
- Craft Commerce now requires Craft CMS 5.9.15 or later.
23+
- Cart numbers are now generated using a cryptographically secure random number generator.
24+
- Cart controller actions that accept an explicit cart number are now rate limited to mitigate enumeration attacks.
25+
- Shipping rule categories are now eager loaded on shipping rules automatically. ([#4220](https://github.com/craftcms/commerce/issues/4220))
526
- Improved product index performance by not eager-loading variants for table attributes that are already fetched via SQL joins. ([#4236](https://github.com/craftcms/commerce/issues/4236))
627
- Fixed a bug where coupon codes were submitted too early while being entered on order edit screens.
7-
- Fixed a [high-severity](https://github.com/craftcms/cms/security/policy#severity--remediation) SQL injection vulnerability in the control panel. (GHSA-875v-7m49-8x88)
8-
- Fixed a [low-severity](https://github.com/craftcms/cms/security/policy#severity--remediation) Information disclosure vulnerability in payment controller action. (GHSA-3vxg-x5f8-f5qf)
28+
- Fixed a bug where variants with empty SKUs didn’t show validation errors when saving a product after it was duplicated. ([#4197](https://github.com/craftcms/commerce/issues/4197))
29+
- Fixed a SQL error that could occur when querying for unfulfilled orders on PostgreSQL. ([#4228](https://github.com/craftcms/commerce/issues/4228))
30+
- Fixed an error that could occur when resaving variants. ([#4226](https://github.com/craftcms/commerce/issues/4226))
31+
- Fixed [high-severity](https://github.com/craftcms/cms/security/policy#severity--remediation) SQL injection vulnerabilities. (GHSA-875v-7m49-8x88, GHSA-r54v-qq87-px5r)
32+
- Fixed a [low-severity](https://github.com/craftcms/cms/security/policy#severity--remediation) information disclosure vulnerability. (GHSA-3vxg-x5f8-f5qf)
933

1034
## 5.5.4 - 2026-02-18
1135

1236
- Fixed a bug where subscription plan edit screens weren’t showing their linked description entries, if the entries were disabled. ([#4229](https://github.com/craftcms/commerce/issues/4229))
1337
- Fixed an error that could occur when editing inventory locations. ([#4233](https://github.com/craftcms/commerce/issues/4233))
1438
- Fixed a SQL error that could occur when querying for unfulfilled orders on PostgreSQL. ([#4228](https://github.com/craftcms/commerce/issues/4228))
1539
- Fixed an error that could occur when resaving variants. ([#4226](https://github.com/craftcms/commerce/issues/4226))
40+
- Fixed [high-severity](https://github.com/craftcms/cms/security/policy#severity--remediation) SQL injection vulnerabilities in the control panel. (GHSA-r54v-qq87-px5r)
41+
- Added `craft\commerce\helpers\ProductQuery::cleanseQueryCriteria()`.
1642

1743
## 5.5.3 - 2026-02-09
1844

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"prefer-stable": true,
2323
"require": {
2424
"php": "^8.2",
25-
"craftcms/cms": "^5.6.0",
25+
"craftcms/cms": "^5.9.15",
2626
"dompdf/dompdf": "^2.0.2",
2727
"ibericode/vat": "^1.2.2",
2828
"iio/libmergepdf": "^4.0",

0 commit comments

Comments
 (0)