PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.17
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.17
1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 1.3.51 1.3.50 1.3.49 1.3.48 All 180 releases
← All changes | backend/views/components/Analytics/lib/utils.js +8 -2 1.4.01.4.17 View file →
@@ -1,7 +1,13 @@
1 1 import { clsx } from 'clsx';
2 -import { twMerge } from 'tailwind-merge';
2 +import { extendTailwindMerge } from 'tailwind-merge';
3 3
4 +// Declared without a trailing separator: Tailwind v4 prefixes are variant-style
5 +// (`disco:flex`). This was previously a bare `twMerge` with no prefix at all.
6 +const twMerge = extendTailwindMerge({
7 + prefix: 'disco',
8 +});
9 +
4 10 export function cn(...inputs) {
5 11 return twMerge(clsx(inputs));
6 12 }
7 13
@@ -25,9 +31,9 @@
25 31 *
26 32 * @param {string} d
27 33 * @returns {String} Local date string
28 34 */
29 -export function fmtDate(d) {
35 +export function formatDate(d) {
30 36 if (!d) return '—';
31 37 return new Date(d).toLocaleDateString('en-US', {
32 38 month: 'short',
33 39 day: 'numeric',