Skip to content

Commit

Permalink
Merge pull request #14322 from craftcms/feature/cms-1257-commerceguys…
Browse files Browse the repository at this point in the history
…addressing-v2

commerceguys/addressing v2
  • Loading branch information
brandonkelly authored Feb 7, 2024
2 parents 7a7c917 + 89f4945 commit 4c42d8c
Show file tree
Hide file tree
Showing 19 changed files with 482 additions and 301 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG-WIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
- Improved the styling of element chips.
- Improved checkbox-style deselection behavior for control panel items, to account for double-clicks.
- Table views are no longer available for element indexes on mobile.
- Address conditions now have “Address Line 1”, “Address Line 2”, “Administrative Area”, “Country”, “Dependent Locality”, “First Name”, “Full Name”, “Last Name”, “Locality”, “Organization Tax ID”, “Organization”, “Postal Code”, and “Sorting Code” rules.
- Added the “Address Line 3” address field. ([#14318](https://github.com/craftcms/cms/discussions/14318))
- Address conditions now have “Address Line 1”, “Address Line 2”, “Address Line 3”, “Administrative Area”, “Country”, “Dependent Locality”, “First Name”, “Full Name”, “Last Name”, “Locality”, “Organization Tax ID”, “Organization”, “Postal Code”, and “Sorting Code” rules.
- Added live conditional field support to user edit pages and inline-editable Matrix blocks. ([#14115](https://github.com/craftcms/cms/pull/14115), [#14223](https://github.com/craftcms/cms/pull/14223))
- Earth icons are now localized based on the system time zone.

Expand Down Expand Up @@ -105,7 +106,7 @@
- Assets, categories, entries, and tags now support eager-loading paths prefixed with a field layout provider’s handle (e.g. `myEntryType:myField`).
- Element queries now have an `eagerly` param, which can be used to lazily eager-load the resulting elements for all peer elements, when `all()`, `collect()`, `one()`, `nth()`, or `count()` is called.
- Element queries now have an `inBulkOp` param, which limits the results to elements which were involved in a bulk operation. ([#14032](https://github.com/craftcms/cms/pull/14032))
- Address queries now have `addressLine1`, `addressLine2`, `administrativeArea`, `countryCode`, `dependentLocality`, `firstName`, `fullName`, `lastName`, `locality`, `organizationTaxId`, `organization`, `postalCode`, and `sortingCode` params.
- Address queries now have `addressLine1`, `addressLine2`, `addressLine3`, `administrativeArea`, `countryCode`, `dependentLocality`, `firstName`, `fullName`, `lastName`, `locality`, `organizationTaxId`, `organization`, `postalCode`, and `sortingCode` params.
- Entry queries now have `field`, `fieldId`, `primaryOwner`, `primaryOwnerId`, `owner`, `ownerId`, `allowOwnerDrafts`, and `allowOwnerRevisions` params.
- Entry queries’ `authorId` params now support passing multiple IDs prefixed with `and`, to fetch entries with multiple listed authors.
- User queries now have an `authorOf` param.
Expand Down Expand Up @@ -211,6 +212,7 @@
- Added `craft\elements\conditions\ElementConditionInterface::getFieldLayouts()`.
- Added `craft\elements\conditions\addresses\AddressLine1ConditionRule`.
- Added `craft\elements\conditions\addresses\AddressLine2ConditionRule`.
- Added `craft\elements\conditions\addresses\AddressLine3ConditionRule`.
- Added `craft\elements\conditions\addresses\AdministrativeAreaConditionRule`.
- Added `craft\elements\conditions\addresses\CountryConditionRule`.
- Added `craft\elements\conditions\addresses\DependentLocalityConditionRule`.
Expand Down Expand Up @@ -604,6 +606,7 @@
- Craft now requires `pragmarx/google2fa`.
- Craft now requires `pragmarx/recovery`.
- Craft now requires `web-auth/webauthn-lib`.
- Updated `commerceguys/addressing` to v2. ([#14318](https://github.com/craftcms/cms/discussions/14318))
- Updated `illuminate/collections` to v10.
- Updated `yiisoft/yii2-symfonymailer` to v4.
- Craft no longer requires `composer/composer`.
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

- It’s now possible to expand and collapse global sidebar items without navigating to them. ([#14313](https://github.com/craftcms/cms/issues/14313), [#14321](https://github.com/craftcms/cms/pull/14321))
- Removed the maximum content area width. ([#14281](https://github.com/craftcms/cms/pull/14281))
- Added the “Address Line 3” address field. ([#14318](https://github.com/craftcms/cms/discussions/14318))
- Address conditions now have an “Address Line 3” rule.
- Address queries now have `addressLine3` params.
- Added `craft\elements\conditions\addresses\AddressLine3ConditionRule`.
- Updated `commerceguys/addressing` to v2. ([#14318](https://github.com/craftcms/cms/discussions/14318))
- Fixed a bug where querying elements with `eagerly()` wasn’t working across element types.
- Fixed a SQL error that could occur when querying relations with `eagerly()`.
- Fixed a bug where element actions weren’t working for elements that were added to a relational field.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"ext-pdo": "*",
"ext-zip": "*",
"bacon/bacon-qr-code": "^2.0",
"commerceguys/addressing": "^1.2",
"commerceguys/addressing": "^2.1.1",
"composer/semver": "^3.3.2",
"craftcms/plugin-installer": "~1.6.0",
"craftcms/server-check": "~5.0.1",
Expand Down
Loading

0 comments on commit 4c42d8c

Please sign in to comment.