@dxtmisha/functional 1.15.16 → 1.15.17
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 +5 -0
- package/ai-description.md +2 -2
- package/ai-types.md +1 -1
- package/dist/library.js +16 -7
- package/dist/style.css +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.15.17] - 2026-10-01
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **executeUse**: Added check for already provided instances on the current component (`instance.provides`) in `ExecuteUseType.provide`, preventing duplicate initialization when called multiple times within the same component setup.
|
|
9
|
+
|
|
5
10
|
## [1.15.16] - 2026-09-07
|
|
6
11
|
|
|
7
12
|
### Changed
|
package/ai-description.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
This package provides
|
|
1
|
+
This package provides reactive Vue composables, design constructor architecture, and utilities for integrating APIs, localization, browser storage, and component lifecycle management. Developers and AI assistants must study ai-types.md when implementing reactive CRUD workflows with SSR prefetching, configuring internationalized date and unit formatters, or synchronizing application state across cookies, storage, and URL parameters. It is also essential for building component design architectures with dynamic subcomponent rendering, lazy loading, and list selection mechanics.
|
|
2
2
|
|
|
3
|
-
Key Capabilities: API
|
|
3
|
+
Key Capabilities: API Fetching, API Management, Reactive Storage, Cookie Synchronization, Cross Tab Sync, Locale Formatting, Geographic Metadata, Reactive Datetime, List Navigation, Search Filtering, Viewport Lazy Loading, SEO Meta Management, Router Integration, Design Component Constructors
|
|
4
4
|
## Mandatory Rules
|
|
5
5
|
You MUST evaluate whether your task relates to any of the following topics (even if not working directly with this package). If related material is present, you are strictly obligated to read and study the corresponding file before proceeding:
|
|
6
6
|
- 'node_modules/@dxtmisha/functional/ai-resources/api-reference.md': Defines guidance and usage patterns for scope-isolated reactive singleton factories and REST API management in @dxtmisha/functional. Details scope initialization functions (executeUseGlobal, executeUseLocal, executeUseProvide) and reactive CRUD operations via useApiManagementRef.
|
package/ai-types.md
CHANGED
package/dist/library.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Api as e, ApiError as t, ApiMethodItem as n, BroadcastMessage as r, Coo
|
|
|
2
2
|
import { computed as F, customRef as oe, effectScope as se, getCurrentInstance as ce, h as le, hasInjectionContext as ue, inject as de, isRef as I, onServerPrefetch as fe, onUnmounted as pe, provide as me, ref as L, shallowRef as R, toRefs as he, triggerRef as ge, useAttrs as _e, useSlots as ve, watch as z, watchEffect as ye } from "vue";
|
|
3
3
|
import { MediaSocial as be } from "@dxtmisha/media";
|
|
4
4
|
export * from "@dxtmisha/functional-basic";
|
|
5
|
-
//#region \0@oxc-project+runtime@0.
|
|
5
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/typeof.js
|
|
6
6
|
function B(e) {
|
|
7
7
|
"@babel/helpers - typeof";
|
|
8
8
|
return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -12,7 +12,7 @@ function B(e) {
|
|
|
12
12
|
}, B(e);
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
|
-
//#region \0@oxc-project+runtime@0.
|
|
15
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/toPrimitive.js
|
|
16
16
|
function xe(e, t) {
|
|
17
17
|
if (B(e) != "object" || !e) return e;
|
|
18
18
|
var n = e[Symbol.toPrimitive];
|
|
@@ -24,13 +24,13 @@ function xe(e, t) {
|
|
|
24
24
|
return (t === "string" ? String : Number)(e);
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region \0@oxc-project+runtime@0.
|
|
27
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/toPropertyKey.js
|
|
28
28
|
function Se(e) {
|
|
29
29
|
var t = xe(e, "string");
|
|
30
30
|
return B(t) == "symbol" ? t : t + "";
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.148.0/helpers/esm/defineProperty.js
|
|
34
34
|
function V(e, t, n) {
|
|
35
35
|
return (t = Se(t)) in e ? Object.defineProperty(e, t, {
|
|
36
36
|
value: n,
|
|
@@ -778,7 +778,7 @@ var Me = class {
|
|
|
778
778
|
//#region src/functions/ref/getApiErrorRef.ts
|
|
779
779
|
function Be(e) {
|
|
780
780
|
return F(() => {
|
|
781
|
-
if (
|
|
781
|
+
if (e.value && !O(e.value) && j(e.value)) return e.value.errorObject;
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
784
|
//#endregion
|
|
@@ -787,7 +787,7 @@ var Y = (e) => typeof e == "string" ? { method: e } : e || {}, X;
|
|
|
787
787
|
function Z(n, r, i = !0, a, o, s, c, l = !0, u = e.getItem()) {
|
|
788
788
|
let d = L(), f = G(Y(r)), p = L(!1), m = L(!1), h = L(), g, _ = !0, v, y = () => {
|
|
789
789
|
let e = H(n);
|
|
790
|
-
return
|
|
790
|
+
return !(a && !a.value || !e);
|
|
791
791
|
}, b = () => ({
|
|
792
792
|
path: H(n),
|
|
793
793
|
...f.value
|
|
@@ -1207,7 +1207,16 @@ function $(e, t = "provide") {
|
|
|
1207
1207
|
x.remove(n);
|
|
1208
1208
|
}
|
|
1209
1209
|
});
|
|
1210
|
-
}, o = (...e) =>
|
|
1210
|
+
}, o = (...e) => {
|
|
1211
|
+
if (t === "provide") {
|
|
1212
|
+
var r;
|
|
1213
|
+
let t = de(n, void 0);
|
|
1214
|
+
if (t) return t;
|
|
1215
|
+
let a = ce();
|
|
1216
|
+
return (a == null || (r = a.provides) == null ? void 0 : r[n]) || i(e);
|
|
1217
|
+
}
|
|
1218
|
+
return x.get(n, () => K.run(() => a(e)));
|
|
1219
|
+
};
|
|
1211
1220
|
return t === "global" && ht().push(o), o;
|
|
1212
1221
|
}
|
|
1213
1222
|
function gt(e) {
|
package/dist/style.css
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/functional",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.17",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A comprehensive library of utilities, base classes, and Vue 3 composables for reactive web development — API orchestration, state singletons (executeUse), storage sync, i18n, formatters, and component design. Extends @dxtmisha/functional-basic.",
|
|
7
7
|
"keywords": [
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"@dxtmisha/functional-basic": ">=1.11.0",
|
|
107
107
|
"@dxtmisha/media": ">=0.7.4",
|
|
108
108
|
"@effect/schema": ">=0.75.5",
|
|
109
|
-
"vue": ">=3.5.
|
|
110
|
-
"vue-router": ">=5.3.
|
|
109
|
+
"vue": ">=3.5.43",
|
|
110
|
+
"vue-router": ">=5.3.1"
|
|
111
111
|
},
|
|
112
112
|
"sideEffects": false,
|
|
113
113
|
"ui-priority": 200
|