@oneluiz/dual-datepicker 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +26 -2
  2. package/fesm2022/oneluiz-dual-datepicker.mjs +75 -71
  3. package/fesm2022/oneluiz-dual-datepicker.mjs.map +1 -1
  4. package/package.json +8 -9
  5. package/types/oneluiz-dual-datepicker.d.ts +1618 -0
  6. package/dual-datepicker.component.d.ts +0 -243
  7. package/esm2022/core/built-in-presets.mjs +0 -289
  8. package/esm2022/core/calendar-grid/cache.config.mjs +0 -35
  9. package/esm2022/core/calendar-grid/calendar-grid.cache.mjs +0 -98
  10. package/esm2022/core/calendar-grid/calendar-grid.factory.mjs +0 -97
  11. package/esm2022/core/calendar-grid/calendar-grid.types.mjs +0 -8
  12. package/esm2022/core/calendar-grid/range-highlighter.cache.mjs +0 -200
  13. package/esm2022/core/calendar-grid/range-highlighter.mjs +0 -185
  14. package/esm2022/core/calendar-grid/range-highlighter.types.mjs +0 -11
  15. package/esm2022/core/calendar-grid/virtual-weeks.logic.mjs +0 -149
  16. package/esm2022/core/calendar-grid/virtual-weeks.types.mjs +0 -11
  17. package/esm2022/core/date-adapter.mjs +0 -77
  18. package/esm2022/core/date-clock.mjs +0 -65
  19. package/esm2022/core/dual-date-range.store.mjs +0 -329
  20. package/esm2022/core/internal.mjs +0 -92
  21. package/esm2022/core/native-date-adapter.mjs +0 -286
  22. package/esm2022/core/preset-providers.mjs +0 -243
  23. package/esm2022/core/preset-registry.mjs +0 -277
  24. package/esm2022/core/preset.engine.mjs +0 -179
  25. package/esm2022/core/public.mjs +0 -94
  26. package/esm2022/core/range-preset.plugin.mjs +0 -70
  27. package/esm2022/core/range.validator.mjs +0 -105
  28. package/esm2022/core/system-clock.mjs +0 -34
  29. package/esm2022/core/testing/date.helpers.mjs +0 -49
  30. package/esm2022/core/testing/fixed-clock.mjs +0 -30
  31. package/esm2022/core/testing/index.mjs +0 -8
  32. package/esm2022/dual-datepicker.component.mjs +0 -1314
  33. package/esm2022/oneluiz-dual-datepicker.mjs +0 -5
  34. package/esm2022/public-api.mjs +0 -43
  35. package/index.d.ts +0 -5
  36. package/public-api.d.ts +0 -44
package/README.md CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  A lightweight, zero-dependency date range picker for Angular 17+. Built with standalone components, Reactive Forms, and Angular Signals. No Angular Material required.
4
4
 
5
- > **🆕 NEW in v3.5.1**: [**Timezone-Safe Date Adapter**](docs/TIMEZONE_ADAPTER.md) - Fixes enterprise-critical timezone bugs in ERP, BI, POS, and invoicing systems 🛡️
6
- > **🆕 NEW in v3.5.0**: [**Headless Architecture**](docs/HEADLESS.md) - Use date range state WITHOUT the UI component. Perfect for SSR, services, and global dashboard filters! 🎯
5
+ > **🚀 v4.0.0**: [**Public API Formalization**](#v400-public-api-formalization) - Stable, documented API contract. ~50% smaller package. Better tree-shaking. Breaking changes documented in [CHANGELOG.md](CHANGELOG.md) 📦
6
+ > **🆕 v3.5.1**: [**Timezone-Safe Date Adapter**](docs/TIMEZONE_ADAPTER.md) - Fixes enterprise-critical timezone bugs in ERP, BI, POS, and invoicing systems 🛡️
7
+ > **🆕 v3.5.0**: [**Headless Architecture**](docs/HEADLESS.md) - Use date range state WITHOUT the UI component. Perfect for SSR, services, and global dashboard filters! 🎯
7
8
 
8
9
  [![npm version](https://img.shields.io/npm/v/@oneluiz/dual-datepicker)](https://www.npmjs.com/package/@oneluiz/dual-datepicker)
9
10
  [![npm provenance](https://img.shields.io/badge/provenance-available-brightgreen)](https://www.npmjs.com/package/@oneluiz/dual-datepicker)
@@ -22,6 +23,29 @@ npm install @oneluiz/dual-datepicker
22
23
 
23
24
  ## 🌟 What's New
24
25
 
26
+ ### v4.0.0: Public API Formalization
27
+
28
+ **Major release** formalizing the stable public API contract:
29
+
30
+ **What Changed:**
31
+ - ✅ **Stable Public API** - Clear contract with 11 main exports
32
+ - ✅ **~50% Smaller Package** - 250 KB (was 500 KB)
33
+ - ✅ **Better Tree-Shaking** - Pure ESM bundles
34
+ - ⚠️ **Breaking Changes** - Internal APIs removed, DateAdapter methods renamed
35
+
36
+ **Migration:**
37
+ ```typescript
38
+ // ❌ Before (v3.x)
39
+ import { CalendarGridFactory } from '@oneluiz/dual-datepicker';
40
+ const date = adapter.parse('2026-01-15');
41
+
42
+ // ✅ After (v4.0)
43
+ import { DualDateRangeStore } from '@oneluiz/dual-datepicker';
44
+ const date = adapter.parseISODate('2026-01-15');
45
+ ```
46
+
47
+ **[📖 Read the full migration guide in CHANGELOG.md →](CHANGELOG.md#400---2026-02-21)**
48
+
25
49
  ### Timezone-Safe Date Adapter (v3.5.1)
26
50
 
27
51
  **Fixed**: Enterprise timezone bugs that caused date ranges to shift by ±1 day.