diff --git a/CHANGELOG.md b/CHANGELOG.md index 5608a40..ec9f756 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [0.25.0] - 2026-09-28 + +### Added +- `Modules\Core\Wishlist\` — extracted the wishlist feature's business logic from 3dealer: + `WishlistService` (guest cookie / logged-in `wishlist_items` toggle, merge-on-login), + `WishlistItem` model, the `wishlist.toggle` route/controller, `MergeGuestWishlistOnLogin` + (listens on `Auth\Events\UserAuthenticated`, same pattern as `ClaimGuestOrdersOnLogin`), and + the `wishlist-controller.js` Stimulus controller (exported as `registerWishlist()` from this + package's JS entry point). Page rendering (the account/guest wishlist list views, and their + product-card presentation) stays app-specific, since it depends on each app's own UI + components. The `wishlist_items` migration checks `Schema::hasTable()` first, so a consumer + that already had its own copy of this table (e.g. 3dealer) isn't broken by this package now + also shipping it. + ## [0.24.1] - 2026-09-28 ### Fixed diff --git a/composer.json b/composer.json index 8ddd167..cfcec34 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "boboko/core", "description": "Core module — authentication and shared panel behaviour", "type": "library", - "version": "0.24.1", + "version": "0.25.0", "autoload": { "psr-4": { "Modules\\Core\\": "src/" @@ -47,7 +47,8 @@ "Modules\\Core\\Providers\\FileServiceProvider", "Modules\\Core\\Providers\\ShippingServiceProvider", "Modules\\Core\\Providers\\OrderServiceProvider", - "Modules\\Core\\Providers\\PrivacyServiceProvider" + "Modules\\Core\\Providers\\PrivacyServiceProvider", + "Modules\\Core\\Providers\\WishlistServiceProvider" ] } }, diff --git a/package.json b/package.json index 3f8ce12..b9f0261 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@boboko/core", - "version": "0.24.1", + "version": "0.25.0", "private": true, "type": "module", "description": "Portable Stimulus controllers and styles for boboko-core's cart + checkout module. Installed as a real npm dependency (file:../boboko-core in dev, a tagged git install in prod) so a consuming app's `npm install` resolves this package's own dependencies (leaflet, @hotwired/stimulus) transitively, the same way `composer update boboko/*` does for PHP. See CONTRIBUTE.md's \"JS/CSS: a real npm package\" section.",