@dxtmisha/functional-basic 1.3.8 → 1.3.10
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.
- package/CHANGELOG.md +11 -0
- package/ai-description.txt +15 -11
- package/ai-types.txt +122 -938
- package/dist/library.js +302 -302
- package/dist/src/classes/Geo.d.ts +1 -1
- package/dist/src/classes/GeoInstance.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.3.10] - 2026-06-17
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **GeoInstance**: Cleaned up internal debug console logs from `getItem` and `getCookie` methods.
|
|
9
|
+
|
|
10
|
+
## [1.3.9] - 2026-06-17
|
|
11
|
+
|
|
12
|
+
### Changed / Improved
|
|
13
|
+
- **GeoInstance**: Extended `setValueDefault` to accept functional callbacks: `code?: string | (() => string)`. Dynamic resolution via `executeFunction` is performed when fallback to the default code occurs.
|
|
14
|
+
- **Geo**: Updated static `setValueDefault` signature to accept a function parameter `string | (() => string)`.
|
|
15
|
+
|
|
5
16
|
## [1.3.8] - 2026-06-16
|
|
6
17
|
|
|
7
18
|
### Added
|
package/ai-description.txt
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
This library is a comprehensive, isomorphic utility toolkit for TypeScript applications, focusing on data management, HTTP communication, internationalization, and DOM manipulation.
|
|
2
2
|
|
|
3
|
-
Core Purpose:
|
|
4
|
-
|
|
3
|
+
1. Core Purpose:
|
|
4
|
+
The library acts as a centralized foundation for common application tasks. It provides a robust HTTP client (Fetch wrapper with built-in retries, caching, and hydration support), state management (localized storage, cookie handling, URL hash synchronization), internationalization (translation management, date/time/currency formatting), and DOM utility functions (event listeners, scroll management, meta tag management).
|
|
5
5
|
|
|
6
|
-
Usage Scenarios:
|
|
7
|
-
- API Orchestration: Use the Api
|
|
8
|
-
-
|
|
9
|
-
- Localization:
|
|
10
|
-
- DOM
|
|
11
|
-
-
|
|
6
|
+
2. Usage Scenarios:
|
|
7
|
+
- API Orchestration: Use the Api/ApiInstance classes for unified fetch requests, centralized error handling (ErrorCenter), and automatic response caching.
|
|
8
|
+
- State Synchronization: Essential for SSR-compliant state management (ServerStorage) and syncing application state with URL hashes or Cookies.
|
|
9
|
+
- Localization: Indispensable for applications requiring multi-language support (Translate), dynamic date/time formatting (GeoIntl, Datetime), and locale-aware number/currency formatting.
|
|
10
|
+
- DOM & Event Management: Use EventItem for lifecycle-safe event listeners (with automatic cleanup) and scroll/resize optimizations; use Meta and its derivatives for SEO and social media metadata management.
|
|
11
|
+
- Data Processing: Highly useful for search-as-you-type implementations (SearchList) and complex data transformations (Formatters).
|
|
12
12
|
|
|
13
|
-
Integration Context:
|
|
14
|
-
|
|
13
|
+
3. Integration Context:
|
|
14
|
+
- SSR & Hydration: The library includes specialized handlers (ApiHydration, ServerStorage, getHydrationData) designed to bridge the gap between server-rendered state and client-side execution, preventing hydration mismatches.
|
|
15
|
+
- Architecture: It follows a singleton-friendly patterns (e.g., Api.getItem(), Geo.getObject()) that facilitate global access to state and configurations across disparate modules without tight coupling.
|
|
16
|
+
- Type Safety: Extensively typed (TypeScript), providing full autocompletion and structural validation for search, API, translation, and formatting configurations.
|
|
17
|
+
|
|
18
|
+
An AI assistant should study this library when tasked with building enterprise-grade, localized web applications that require standardized API communication, cross-browser DOM event management, or robust SSR data state serialization.
|