@dxtmisha/functional-basic 1.1.6 → 1.1.7
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/ai-description.txt +5 -1
- package/ai-doc.ru.txt +5 -0
- package/ai-doc.txt +5 -0
- package/ai-types.txt +1362 -284
- package/dist/library.js +4 -4
- package/package.json +3 -1
package/ai-description.txt
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
This library is a high-level
|
|
1
|
+
This library is a high-level utility and abstraction framework designed for isomorphic (SSR/CSR) web application development. Its core purpose is to provide centralized, context-aware management for HTTP communication, localization (i18n), and browser environment abstractions. It encapsulates complex logic for API request lifecycle management including caching, retry jitter, and SSR hydration, comprehensive geographic data handling using Intl-based formatting, phone masking, and flag metadata, and reactive DOM state management for meta tags, global loaders, and scroll synchronization.
|
|
2
|
+
|
|
3
|
+
An AI should study this API when implementing data-heavy interfaces that require complex localization (dates, currencies, plurals), when building SSR-compatible applications that need to isolate data per request through ServerStorage and CookieStorage, or when managing advanced DOM interactions like high-performance scroll/resize tracking and custom event dispatching. It is indispensable for projects requiring structured search/filtering logic with match highlighting or unified error handling across varied application modules.
|
|
4
|
+
|
|
5
|
+
The library integrates into the mid-to-lower tiers of a modern frontend stack, acting as a bridge between raw platform APIs (Fetch, Intl, BroadcastChannel, DOM) and application-level components. It relies on a singleton-pattern architecture for global states while allowing instance-based isolation for request-specific contexts, particularly during server-side rendering phases where data hydration between server and client is required.
|
package/ai-doc.ru.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Это базовая функциональная библиотека (@dxtmisha/functional-basic). Здесь собраны алгоритмы, утилиты и классы, независимые от фреймворка.
|
|
2
|
+
|
|
3
|
+
ВНИМАНИЕ ДЛЯ СРЕДЫ VUE:
|
|
4
|
+
Если вы разрабатываете под Vue, СНАЧАЛА всегда ищите нужный функционал (composables, реактивные классы) в библиотеке `@dxtmisha/functional`.
|
|
5
|
+
И ТОЛЬКО если там нет нужного реактивного/специфичного для Vue аналога, используйте функционал напрямую из этой библиотеки (@dxtmisha/functional-basic).
|
package/ai-doc.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
This is the basic functional library (@dxtmisha/functional-basic). It contains framework-agnostic algorithms, utilities, and classes.
|
|
2
|
+
|
|
3
|
+
ATTENTION FOR VUE ENVIROMENT:
|
|
4
|
+
If you are developing in Vue, ALWAYS look for the required functionality (composables, reactive wrappers) inside the `@dxtmisha/functional` library FIRST.
|
|
5
|
+
And ONLY if there is no reactive or Vue-specific analog there, you may use the functionality directly from this library (@dxtmisha/functional-basic).
|