@dxtmisha/functional-basic 1.0.0 → 1.1.5
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 +66 -0
- package/ai-types.txt +1663 -0
- package/dist/library.d.ts +259 -9
- package/dist/library.js +571 -455
- package/package.json +4 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.1.5] - 2026-04-26
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **Api**: Added `setOrigin()` and `getOrigin()` methods for managing the protocol and domain of the base URL.
|
|
9
|
+
- **Api**: Added `setConfig()` method for bulk configuration of API settings.
|
|
10
|
+
- **Api**: Added support for `endResetLimit` in `ApiFetch` to control recursive retries via `setEnd`.
|
|
11
|
+
- **Api**: Added support for jittered retry delays to prevent request thundering herds.
|
|
12
|
+
- **ServerStorage**: Added `remove()` method for deleting items from storage.
|
|
13
|
+
- **ServerStorage**: Added `setErrorStatus()` method to toggle visibility of context-missing errors.
|
|
14
|
+
|
|
15
|
+
## [1.1.4] - 2026-04-25
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- **Meta**: Added `htmlTitle()` method to `Meta`, `MetaStatic`, and `MetaManager` classes for generating HTML-safe title strings.
|
|
19
|
+
|
|
20
|
+
### Changed / Improved
|
|
21
|
+
- **MetaManager**: The `toHtml()` method now excludes the `<title>` tag, allowing for more flexible title management via `htmlTitle()`.
|
|
22
|
+
- **Package**: Added `CHANGELOG.md` to the list of files included in the package distribution.
|
|
23
|
+
|
|
24
|
+
## [1.1.3] - 2026-04-24
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
- **ResumableTimer**: Added a new class for managing timers with pause and resume functionality.
|
|
28
|
+
- **ApiDataReturn**: Implemented a class for standardizing API responses with support for descriptions and texts.
|
|
29
|
+
- **MetaStatic**: Added a class for managing static meta-data.
|
|
30
|
+
- **Datetime**: Added functionality for working with dates and times.
|
|
31
|
+
- **Translate**: Implemented a localization and translation system.
|
|
32
|
+
- **GeoInstance**: Added an instance for advanced geolocation data handling.
|
|
33
|
+
- **ApiHydration**: Added support for API data hydration for SSR.
|
|
34
|
+
- **StorageCallback**: Added a callback mechanism for tracking storage changes.
|
|
35
|
+
- **New Functions**:
|
|
36
|
+
- `getCurrentTime` — returns the current time.
|
|
37
|
+
- `getArrayHighlightMatch` — searches for and highlights matches in arrays.
|
|
38
|
+
|
|
39
|
+
### Changed / Improved
|
|
40
|
+
- **Refactoring**: Major refactoring of the `functional-basic` package to improve architecture.
|
|
41
|
+
- **SSR**: Adapted the API and related modules for full Server-Side Rendering support.
|
|
42
|
+
- **API**:
|
|
43
|
+
- Improved the core `Api` class.
|
|
44
|
+
- Refined `ApiCache` and caching systems.
|
|
45
|
+
- **Cookie**:
|
|
46
|
+
- Completely redesigned the Cookie handling mechanics, including `CookieBlock` and `CookieStorage`.
|
|
47
|
+
- Added `getListenerRaw` support to `CookieStorage.init()` for initializing from raw cookie strings (essential for SSR).
|
|
48
|
+
- Extracted cookie parsing and formatting logic into protected `parse()` and `format()` methods.
|
|
49
|
+
- Expanded `CookieOptions` to support modern attributes: `path`, `domain`, `secure`, `httpOnly`, and `partitioned` (CHIPS).
|
|
50
|
+
- Updated `setListener` signature to include the fully formatted cookie string as a third parameter, facilitating easier SSR header management.
|
|
51
|
+
- **Function Optimization**:
|
|
52
|
+
- `getSearchExp` and `getSeparatingSearchExp` — refined search mechanisms.
|
|
53
|
+
- `getRequestString` — improved query string generation.
|
|
54
|
+
- `addTagHighlightMatch` — optimized tag highlighting.
|
|
55
|
+
- `applyTemplate` — expanded template support.
|
|
56
|
+
- `forEach`, `frame`, `blobToBase64`, `getElementId` — technical improvements and optimization.
|
|
57
|
+
|
|
58
|
+
### Fixed
|
|
59
|
+
- **Testing**: Fixed and updated all unit tests (`vitest`) for stability and coverage.
|
|
60
|
+
- **Geo**: Fixed logic errors in geolocation functions and their tests.
|
|
61
|
+
- Fixed type definition errors and minor bugs in core functions.
|
|
62
|
+
|
|
63
|
+
### Documentation
|
|
64
|
+
- **JSDoc**: Completed a full revision and standardization of JSDoc comments for all classes and functions.
|
|
65
|
+
- **ServerStorage**: Added detailed descriptions of methods and operating principles.
|
|
66
|
+
- Updated `ApiDataReturn` documentation.
|