@stacksjs/defaults 0.75.117 → 0.75.119
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.
|
@@ -301,3 +301,14 @@ type PartitionFilter<T> = (item: T, index: number, array: readonly T[]) => any
|
|
|
301
301
|
- `mode` returns the first most-frequent value when there's a tie
|
|
302
302
|
- For complex collection operations with chaining, consider `@stacksjs/collections`
|
|
303
303
|
- The `Arr` facade wraps most but not all standalone functions -- advanced stats need direct imports
|
|
304
|
+
|
|
305
|
+
## Daily series with provenance
|
|
306
|
+
|
|
307
|
+
`@stacksjs/arrays/series` is a browser-safe entrypoint. `mergeDailySeries(rows,
|
|
308
|
+
sourcePriority)` selects one finite numeric value per calendar day and field,
|
|
309
|
+
falling back per field when a preferred source lacks it. Rows carry `day`,
|
|
310
|
+
`source`, `values` and optional `updatedAt`; outputs carry `date`, `values`
|
|
311
|
+
and `sources`. Source priority is application policy. Same-source ties prefer
|
|
312
|
+
newer updates; invalid dates, blank values, booleans and nonfinite values are
|
|
313
|
+
ignored. Zero is preserved. `summarizeSeries(points)` reports count, latest,
|
|
314
|
+
average and extrema over `{ date, value, source? }` points without rounding.
|
|
@@ -16,7 +16,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
16
16
|
| `@stacksjs/alias` | [`stacks-alias`](../stacks-alias/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/alias/src/index.ts) | 1 |
|
|
17
17
|
| `@stacksjs/analytics` | [`stacks-analytics`](../stacks-analytics/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/analytics/src/index.ts) | 6 |
|
|
18
18
|
| `@stacksjs/api` | [`stacks-api`](../stacks-api/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/api/src/index.ts) | 7 |
|
|
19
|
-
| `@stacksjs/arrays` | [`stacks-arrays`](../stacks-arrays/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/arrays/src/index.ts) |
|
|
19
|
+
| `@stacksjs/arrays` | [`stacks-arrays`](../stacks-arrays/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/arrays/src/index.ts) | 6 |
|
|
20
20
|
| `@stacksjs/audio` | [`stacks-audio`](../stacks-audio/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/audio/src/index.ts) | 2 |
|
|
21
21
|
| `@stacksjs/auth` | [`stacks-auth`](../stacks-auth/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/auth/src/index.ts) | 112 |
|
|
22
22
|
| `@stacksjs/browser` | [`stacks-browser`](../stacks-browser/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/browser/src/index.ts) | 8 |
|
|
@@ -87,14 +87,14 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
87
87
|
| `@stacksjs/sms` | [`stacks-sms`](../stacks-sms/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/sms/src/index.ts) | 5 |
|
|
88
88
|
| `@stacksjs/socials` | [`stacks-socials`](../stacks-socials/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/index.ts) | 12 |
|
|
89
89
|
| `@stacksjs/storage` | [`stacks-storage`](../stacks-storage/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/storage/src/index.ts) | 36 |
|
|
90
|
-
| `@stacksjs/strings` | [`stacks-strings`](../stacks-strings/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/strings/src/index.ts) |
|
|
90
|
+
| `@stacksjs/strings` | [`stacks-strings`](../stacks-strings/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/strings/src/index.ts) | 7 |
|
|
91
91
|
| `@stacksjs/testing` | [`stacks-testing`](../stacks-testing/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/testing/src/index.ts) | 11 |
|
|
92
92
|
| `@stacksjs/tinker` | [`stacks-repl`](../stacks-repl/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/tinker/src/index.ts) | 1 |
|
|
93
93
|
| `@stacksjs/tunnel` | [`stacks-tunnel`](../stacks-tunnel/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/tunnel/src/index.ts) | 1 |
|
|
94
94
|
| `@stacksjs/types` | [`stacks-types`](../stacks-types/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/types/src/index.ts) | 2 |
|
|
95
95
|
| `@stacksjs/ui` | [`stacks-ui`](../stacks-ui/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/ui/src/index.ts) | 5 |
|
|
96
96
|
| `@stacksjs/utils` | [`stacks-utils`](../stacks-utils/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/utils/src/index.ts) | 15 |
|
|
97
|
-
| `@stacksjs/validation` | [`stacks-validation`](../stacks-validation/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/validation/src/index.ts) |
|
|
97
|
+
| `@stacksjs/validation` | [`stacks-validation`](../stacks-validation/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/validation/src/index.ts) | 17 |
|
|
98
98
|
| `@stacksjs/video` | [`stacks-video`](../stacks-video/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/video/src/index.ts) | 3 |
|
|
99
99
|
| `@stacksjs/whois` | [`stacks-whois`](../stacks-whois/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/whois/src/index.ts) | 4 |
|
|
100
100
|
|
|
@@ -167,7 +167,7 @@ Declared runtime exports: `arr`.
|
|
|
167
167
|
|
|
168
168
|
Local source modules: [src/arr.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/arrays/src/arr.ts), [src/macro.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/arrays/src/macro.ts).
|
|
169
169
|
|
|
170
|
-
Evidence directory: [
|
|
170
|
+
Evidence directory: [6 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/arrays/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
171
171
|
|
|
172
172
|
### @stacksjs/audio
|
|
173
173
|
|
|
@@ -839,7 +839,7 @@ Declared runtime exports: `string`.
|
|
|
839
839
|
|
|
840
840
|
Local source modules: [src/string.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/strings/src/string.ts).
|
|
841
841
|
|
|
842
|
-
Evidence directory: [
|
|
842
|
+
Evidence directory: [7 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/strings/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
843
843
|
|
|
844
844
|
### @stacksjs/testing
|
|
845
845
|
|
|
@@ -907,7 +907,7 @@ Declared runtime exports: `applyConditionals`, `isArray`, `isBoolean`, `isFuncti
|
|
|
907
907
|
|
|
908
908
|
Local source modules: [src/input.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/validation/src/input.ts), [src/reporter.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/validation/src/reporter.ts), [src/schema.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/validation/src/schema.ts), [src/validator.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/validation/src/validator.ts).
|
|
909
909
|
|
|
910
|
-
Evidence directory: [
|
|
910
|
+
Evidence directory: [17 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/validation/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
911
911
|
|
|
912
912
|
### @stacksjs/video
|
|
913
913
|
|
|
@@ -420,3 +420,13 @@ interface PluralizeOptions { count?, inclusive? }
|
|
|
420
420
|
- `helpers.ts` exports `toString()` (Object.prototype.toString, not ordinary
|
|
421
421
|
string coercion) and `mask(value, character, index, length?)`. Mask supports
|
|
422
422
|
a negative starting index and uses the first character of its mask string.
|
|
423
|
+
|
|
424
|
+
## CSV exports
|
|
425
|
+
|
|
426
|
+
Import `csvCell` and `toCsv` from `@stacksjs/strings/csv` for RFC 4180 exports.
|
|
427
|
+
`toCsv(headers, rows, { bom: true })` adds a UTF-8 BOM and writes CRLF lines.
|
|
428
|
+
Quotes, commas, carriage returns and newlines are escaped. Text beginning
|
|
429
|
+
with a spreadsheet formula operator (including leading whitespace) is
|
|
430
|
+
prefixed with an apostrophe by default; numbers, including negatives, retain
|
|
431
|
+
their numeric value. `{ spreadsheetSafe: false }` explicitly disables that
|
|
432
|
+
policy for machine-oriented exports.
|
|
@@ -13,6 +13,14 @@ allowed-tools: Read Edit Write Bash Grep Glob
|
|
|
13
13
|
input order. Invalid entries reject the whole list; optional empty lists require
|
|
14
14
|
an explicit zero minimum. Use it for channel, role and capability selections.
|
|
15
15
|
|
|
16
|
+
`parseObjectInput(value, field)` accepts plain JSON records, including null
|
|
17
|
+
prototype records, and rejects arrays and class instances. `parseArrayInput`
|
|
18
|
+
validates an actual array and its length (`minItems = 0`, `maxItems = 100`).
|
|
19
|
+
`parsePositiveIdListInput(value, field, minItems = 1, maxItems = 100)` validates
|
|
20
|
+
every resource ID and returns unique IDs in input order. Bounds apply before
|
|
21
|
+
deduplication; no malformed entry is silently removed. These dependency-free
|
|
22
|
+
helpers are available from `@stacksjs/validation/input` and the root export.
|
|
23
|
+
|
|
16
24
|
## Key Paths
|
|
17
25
|
- Core package: `storage/framework/core/validation/src/`
|
|
18
26
|
- Package: `@stacksjs/validation`
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.119",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.119",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@iconify-json/f7": "^1.2.2",
|
|
57
57
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
58
|
-
"@stacksjs/mobile": "^0.75.
|
|
58
|
+
"@stacksjs/mobile": "^0.75.119",
|
|
59
59
|
"@stacksjs/sanitizer": "^0.2.422",
|
|
60
60
|
"@xterm/addon-fit": "^0.11.0",
|
|
61
61
|
"@xterm/xterm": "^6.0.0",
|