@fest-lib/core 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/README.md +29 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,3 +1,31 @@
1
1
  # Core.TS
2
2
 
3
- TypeScript core library (such as 'getValue', type checking, and any other utils)
3
+ `@fest-lib/core` level 0.5 fest-lib utilities. No fest peers. Used by every higher library.
4
+
5
+ Unwraps refs (`getValue`), type/empty checks, deferred promises, channels, mapped collections, user-scope paths, time/phone helpers, grid item math, WeakRef wrappers, and DOM constructor polyfills for worker/Node hosts.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @fest-lib/core
11
+ ```
12
+
13
+ ```ts
14
+ import { getValue, isObject, createDeferred, debounce } from "@fest-lib/core";
15
+
16
+ const raw = getValue(maybeRef);
17
+ const { promise, resolve } = createDeferred<string>();
18
+ ```
19
+
20
+ ## Layout
21
+
22
+ | Path | Role |
23
+ | --- | --- |
24
+ | `src/utils/Primitive.ts` | `getValue`, refs, type guards |
25
+ | `src/utils/PromiseUtils.ts` | deferred, queue, timeout |
26
+ | `src/utils/Object.ts` / `Mapped.ts` | object + collection helpers |
27
+ | `src/utils/UserPath.ts` | user-scope path normalize |
28
+ | `src/utils/GridItemUtils.ts` | launcher grid item math |
29
+ | `src/runtime/dom-globals-polyfill.ts` | host polyfills |
30
+
31
+ Build: `npm run build`. Publish: `npm run publish` (`build:publish` + public npm).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fest-lib/core",
3
- "description": "Core JavaScript/TypeScript utilities (fest-lib)",
4
- "version": "0.1.11",
3
+ "description": "fest-lib core: getValue, type guards, deferred promises, paths, time, grid math",
4
+ "version": "0.1.12",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "sideEffects": false,