Skip to content

Releases: verbb/wishlist

3.0.0-beta.2

26 Mar 00:20
Compare
Choose a tag to compare
3.0.0-beta.2 Pre-release
Pre-release

Fixed

  • Fix an error referring to old content table.

3.0.0-beta.1

04 Mar 09:46
Compare
Choose a tag to compare
3.0.0-beta.1 Pre-release
Pre-release

Added

  • Add the ability to create a list when adding or toggling an item in one request.
  • Add newList parameter when managing items, to force-create a new list, even if one for the chosen type exists (and add the items to that list).
  • Add craft.wishlist.getUserList(params) to quickly get the current users list. Using params allows you to specify other list types, and more.
  • Add list.addItemUrl(element, params) list.toggleItemUrl(element, params) list.removeItemUrl(element, params).
  • Add craft.wishlist.addItemUrl(element, params) craft.wishlist.toggleItemUrl(element, params) craft.wishlist.removeItemUrl(element, params).
  • Add support to update multiple items at once.
  • Add List::isEmpty() to check if there are any items in the list.
  • Add List::getItem(element, params) to get a specific item, based on a given element and any additional query params.
  • Add List::hasItem(item) to check if a list has a specific item.
  • Add support for Item::getInList(list) to pass in a specific list to check.

Changed

  • Now requires PHP 8.2.0+.
  • Now requires Craft 5.0.0-beta.1+.
  • All URL-based actions now have their query parameters encoded to prevent tampering with.
  • craft.wishlist.getInUserLists() now accepts an element as its parameter, not just an elementId.
  • Change listTypeHandle parameter for managing items to listType.

Removed

  • Remove listTypeId parameter for managing items. Use listType instead.
  • Remove listTypeHandle parameter for managing items. Use listType instead.
  • Remove \verbb\wishlist\services\Items::getItemsForList().
  • Remove \verbb\wishlist\services\Lists::getList().
  • Remove forceSave parameter on craft.wishlist.lists(). Lists are now created when items are added, rather than when calling this tag.

Deprecated

  • Deprecated craft.wishlist.item(). Use craft.wishlist.items(params) to find items, or craft.wishlist.addItemUrl/toggleItemUrl/removeItemUrl to manage items.

2.0.9

03 Mar 13:52
Compare
Choose a tag to compare

Added

  • Add currentSite as a variable when rendering a PDF.
  • Add the ability to order list items by their linked-to element’s title with orderBy(‘elementTitle asc’).

Changed

  • Bump dompdf/dompdf requirement to 2.0.4.

Fixed

  • Fix order of operations when uninstalling the plugin.

2.0.8

30 Jan 11:47
Compare
Choose a tag to compare

Changed

  • PDFs now support using the current site’s locale language and formatting.

Fixed

  • Fix being unable to delete a disabled list.

2.0.7

25 Oct 00:44
Compare
Choose a tag to compare

Fixed

  • Implement Element::trackChanges() for Blitz compatibility.

2.0.6

11 Jul 06:52
Compare
Choose a tag to compare

Added

  • Add reference to the List element index columns.

Fixed

  • Fix when duplicating a list, a new reference wasn’t generated.

2.0.5

27 May 01:46
Compare
Choose a tag to compare

Added

  • Add empty linked element checks to wishlist/items/cleanup-orphaned-items

Changed

  • Only admins are now allowed to access plugin settings

Fixed

  • Fix Wishlist list type permissions not using UIDs.
  • Fix being unable to customise item element index columns in the control panel, when editing a list.

1.4.18

27 May 01:34
Compare
Choose a tag to compare

Added

  • Add support for DomPDF 2.0+ and Commerce 3.4.21+.

2.0.4

17 Dec 22:39
Compare
Choose a tag to compare

Added

  • Added support for item options to be updated when managing items. (thanks @bymayo).
  • Add cross-site item management.
  • Add support for siteId for craft.wishlist.item.

Changed

  • Update element GraphQL description.

Fixed

  • Fixed PHP errors that could occur when executing GraphQL queries.

1.4.17

17 Dec 22:36
Compare
Choose a tag to compare

Added

  • Added support for item options to be updated when managing items. (thanks @bymayo).