@dxtmisha/functional-basic 1.8.5 → 1.8.6

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.md CHANGED
@@ -1,4 +1,21 @@
1
- The library provides an isomorphic suite of client- and server-side utilities designed for web application infrastructure, state management, internationalization, and network communication, serving as a unified foundation for API lifecycle management, SSR hydration, browser storage, and data transformation across JavaScript runtimes. API and network utilities streamline HTTP fetch requests with configurable defaults, automatic retries with jitter, response caching, error classification, and SSR client hydration script generation. Storage and state management modules supply request-isolated SSR storage contexts, type-safe cookie management, synchronized URL query and hash state, local and session storage with age-based expiration, and cross-tab broadcast messaging. Localization and geographic tools provide automated country and language detection, phone number mask matching, metric-to-imperial unit conversion, pluralization, currency formatting, and asynchronous multi-language translation resolution. Search and data handling capabilities enable multi-column list searching, search match highlighting, fuzzy and exact regular expression matching, multi-field array sorting, and recursive object template replacement. UI, DOM, and event helpers deliver DOM element manipulation, ResizeObserver and scroll-sync event listeners, global loading indicators, icon registration, resumable timers, and isomorphic HTML meta tag management for standard SEO, Open Graph, and Twitter Cards. Studying type definitions in ai-types.md is mandatory when typing complex API request or response structures, configuring custom request wrappers, defining criteria for error storage items, specifying search column paths, setting up custom translation dictionaries, or implementing isolated server storage contexts during SSR. This package connects with modern web frameworks and SSR environments by wrapping standard Web APIs, fetch interfaces, and DOM listeners with environment-agnostic abstractions and automated client-side hydration hooks.
1
+ # Package Overview & Rules (@dxtmisha/functional-basic)
2
+
3
+ ## Core Purpose
4
+ This library provides an isomorphic suite of client- and server-side utilities designed for web application infrastructure, state management, internationalization, and network communication. It serves as a unified foundation for API lifecycle management, SSR hydration, browser storage, and data transformation across JavaScript runtimes.
5
+
6
+ ## Key Capabilities & Groupings
7
+ - **API & Network**: Streamlines HTTP fetch requests with configurable defaults, automatic retries with jitter, response caching, error classification, and SSR client hydration script generation.
8
+ - **Storage & State Management**: Supplies request-isolated SSR storage contexts, type-safe cookie management, synchronized URL query and hash state, local and session storage with age-based expiration, and cross-tab broadcast messaging.
9
+ - **Localization & Geographic Tools**: Provides automated country and language detection, phone number mask matching, metric-to-imperial unit conversion, pluralization, currency formatting, and asynchronous multi-language translation resolution.
10
+ - **Search & Data Handling**: Enables multi-column list searching, search match highlighting, fuzzy and exact regular expression matching, multi-field array sorting, and recursive object template replacement.
11
+ - **UI, DOM, & Event Helpers**: Delivers DOM element manipulation, ResizeObserver and scroll-sync event listeners, global loading indicators, icon registration, resumable timers, and isomorphic HTML meta tag management for standard SEO, Open Graph, and Twitter Cards.
12
+
13
+ ## Triggers for Studying `ai-types.md`
14
+ Studying type definitions in `ai-types.md` is mandatory when typing complex API request or response structures, configuring custom request wrappers, defining criteria for error storage items, specifying search column paths, setting up custom translation dictionaries, or implementing isolated server storage contexts during SSR.
15
+
16
+ ## Integration Context
17
+ This package connects with modern web frameworks and SSR environments by wrapping standard Web APIs, fetch interfaces, and DOM listeners with environment-agnostic abstractions and automated client-side hydration hooks.
18
+
2
19
  ## Mandatory Rules
3
20
  Read the corresponding file ONLY when working on a task related to (even if not working directly with this package):
4
- - 'node_modules/@dxtmisha/functional-basic/ai-prompts/api-reference.md': HTTP client caching, storage management, geolocation localization, and DOM utility helpers
21
+ - 'node_modules/@dxtmisha/functional-basic/ai-resources/api-reference.md': HTTP client caching, storage management, geolocation localization, and DOM utility helpers
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "uri": "@dxtmisha/functional-basic/ai-types.md",
4
+ "name": "Type Definitions (@dxtmisha/functional-basic)",
5
+ "mimeType": "text/markdown",
6
+ "description": "Compressed and AI-optimized TypeScript declaration contracts for core utilities."
7
+ },
8
+ {
9
+ "uri": "@dxtmisha/functional-basic/ai-description.md",
10
+ "name": "Package Overview & Rules (@dxtmisha/functional-basic)",
11
+ "mimeType": "text/markdown",
12
+ "description": "High-density project overview, key capabilities, and prompt trigger guidelines."
13
+ },
14
+ {
15
+ "uri": "@dxtmisha/functional-basic/ai-resources/api-reference.md",
16
+ "name": "API & Core Utilities (@dxtmisha/functional-basic)",
17
+ "mimeType": "text/markdown",
18
+ "description": "HTTP client caching, storage management, geolocation localization, and DOM utility helpers."
19
+ }
20
+ ]