@datakable/core 2.0.0 → 2.0.2
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/README.md +8 -2
- package/dist/{codes-B9bCK73-.d.cts → codes-AX8XkMNY.d.cts} +6 -2
- package/dist/{codes-B9bCK73-.d.ts → codes-AX8XkMNY.d.ts} +6 -2
- package/dist/column-filters.d.cts +2 -2
- package/dist/column-filters.d.ts +2 -2
- package/dist/diagnostics/explain.cjs.map +1 -1
- package/dist/diagnostics/explain.js.map +1 -1
- package/dist/diagnostics/hub.cjs +7 -1
- package/dist/diagnostics/hub.cjs.map +1 -1
- package/dist/diagnostics/hub.js +7 -1
- package/dist/diagnostics/hub.js.map +1 -1
- package/dist/diagnostics/redact.cjs +1 -1
- package/dist/diagnostics/redact.cjs.map +1 -1
- package/dist/diagnostics/redact.js +1 -1
- package/dist/diagnostics/redact.js.map +1 -1
- package/dist/diagnostics/types.cjs.map +1 -1
- package/dist/{explain-Q8Cg0cZy.d.cts → explain-BVE3ln3G.d.ts} +3 -3
- package/dist/{explain-i0OATi_W.d.ts → explain-pKAnnxEW.d.cts} +3 -3
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/pagination.d.cts +2 -2
- package/dist/pagination.d.ts +2 -2
- package/dist/schema.d.cts +2 -2
- package/dist/schema.d.ts +2 -2
- package/dist/{search-async-entry-CuLYPfY_.d.cts → search-async-entry-ByMJbHjc.d.cts} +2 -2
- package/dist/{search-async-entry-Cx7xpuVZ.d.ts → search-async-entry-CFQODE08.d.ts} +2 -2
- package/dist/search-async.d.cts +3 -3
- package/dist/search-async.d.ts +3 -3
- package/dist/search.d.cts +4 -4
- package/dist/search.d.ts +4 -4
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/sorting.d.cts +2 -2
- package/dist/sorting.d.ts +2 -2
- package/dist/table/types.cjs.map +1 -1
- package/dist/table/types.js.map +1 -1
- package/dist/validity.d.cts +2 -2
- package/dist/validity.d.ts +2 -2
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +15 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/diagnostics/types.ts"],"sourcesContent":["import type { DiagnosticCode, DiagnosticDetails } from './catalog'\n\nexport type { DiagnosticCode, DiagnosticDetails } from './catalog'\n\nexport type DiagnosticLevel = 'error' | 'warn' | 'info'\n\nexport type Trigger = 'init' | 'data-change' | 'setOptions' | 'hydrate' | 'fetch' | `api:${string}`\n\nexport type Phase = 'ssr' | 'hydrate' | 'client'\n\n/**\n * Where in the developer's code or data (§8.1). `interceptor` and `operation` are additions for\n * plugin-level codes the spec table does not locate (interceptors, op registry).\n */\nexport type Location =\n | { kind: 'column'; index: number; id: string }\n | { kind: 'feature'; name: string }\n | { kind: 'option'; path: string }\n | { kind: 'row'; index: number; key?: string }\n | { kind: 'interceptor'; name: string; op: string }\n | { kind: 'operation'; op: string; slot?: string }\n\n/** A summary of table state — never raw input (§8.1). */\nexport interface DiagnosticStateSummary {\n searchLength: number\n activeFilters: string[]\n sort: string[]\n page: number\n}\n\nexport interface DiagnosticContext {\n /** `options.name`, else `table#n`. */\n table: string\n /** Dev: creation site, e.g. `UsersPage.tsx:42`. */\n createdAt?: string\n /** `@datakable/core@x.y.z` */\n package: string\n trigger: Trigger\n /** Pipeline run id — joins explain() and other diagnostics. */\n run: number\n phase: Phase\n mode: Record<string, 'client' | 'server'>\n state: DiagnosticStateSummary\n occurrences: { count: number; first: number; last: number }\n /** e.g. `DK_SCHEMA_INVALID_ROW#run57` */\n causedBy?: string\n
|
|
1
|
+
{"version":3,"sources":["../../src/diagnostics/types.ts"],"sourcesContent":["import type { DiagnosticCode, DiagnosticDetails } from './catalog'\n\nexport type { DiagnosticCode, DiagnosticDetails } from './catalog'\n\nexport type DiagnosticLevel = 'error' | 'warn' | 'info'\n\nexport type Trigger = 'init' | 'data-change' | 'setOptions' | 'hydrate' | 'fetch' | `api:${string}`\n\nexport type Phase = 'ssr' | 'hydrate' | 'client'\n\n/**\n * Where in the developer's code or data (§8.1). `interceptor` and `operation` are additions for\n * plugin-level codes the spec table does not locate (interceptors, op registry).\n */\nexport type Location =\n | { kind: 'column'; index: number; id: string }\n | { kind: 'feature'; name: string }\n | { kind: 'option'; path: string }\n | { kind: 'row'; index: number; key?: string }\n | { kind: 'interceptor'; name: string; op: string }\n | { kind: 'operation'; op: string; slot?: string }\n\n/** A summary of table state — never raw input (§8.1). */\nexport interface DiagnosticStateSummary {\n searchLength: number\n activeFilters: string[]\n sort: string[]\n page: number\n}\n\nexport interface DiagnosticContext {\n /** `options.name`, else `table#n`. */\n table: string\n /** Dev: creation site, e.g. `UsersPage.tsx:42`. */\n createdAt?: string\n /** `@datakable/core@x.y.z` */\n package: string\n trigger: Trigger\n /** Pipeline run id — joins explain() and other diagnostics. */\n run: number\n phase: Phase\n mode: Record<string, 'client' | 'server'>\n state: DiagnosticStateSummary\n occurrences: { count: number; first: number; last: number }\n /** e.g. `DK_SCHEMA_INVALID_ROW#run57` */\n causedBy?: string\n /**\n * Original error (ES2022 cause). Reaches code you install (`onDiagnostic`, `diagnostic:emit`\n * interceptors, the `redact` seam) and, under `strict`, the thrown `DatakableError`'s `cause`;\n * `getDiagnostics()`, `toJSON` and the console leave it out.\n */\n cause?: unknown\n}\n\nexport interface Diagnostic {\n /** Stable public API; never reused or redefined. */\n code: DiagnosticCode\n level: DiagnosticLevel\n /** What happened, instance-specific. Empty in production unless messages are opted in. */\n problem: string\n where: Location\n /** Consequence + the fallback the system applied. */\n impact: string\n /** Concrete fixes, best first. */\n fix: string[]\n /** `docs/errors.md#<code>` (+ query params in production). */\n docs: string\n /** The catalog details. Redaction (T26) rewrites them before any sink sees them. */\n details: Record<string, unknown>\n context: DiagnosticContext\n /** `code@where` — grouping key (dedupe, Sentry). */\n fingerprint: string\n /** Safe serializer: bigint, cycles and Errors never throw; `context.cause` is left out. */\n toJSON(): object\n}\n\n/** Per-call additions to the live context. */\nexport interface EmitOptions {\n cause?: unknown\n causedBy?: string\n run?: number\n trigger?: Trigger\n phase?: Phase\n /**\n * Not printed by the default console sink (another table printed it in this process, #38). Still\n * stored and delivered to `onDiagnostic`.\n */\n quiet?: boolean\n}\n\n/** Emits a catalog diagnostic; `details` is typed by `code` (see `DiagnosticCatalog`). */\nexport type Emit = <C extends DiagnosticCode>(\n code: C,\n details: DiagnosticDetails<C>,\n options?: EmitOptions,\n) => void\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RowIssue, E as Emit, a as EmitOptions, D as Diagnostic, T as Trigger, P as Phase, I as InvalidRowsMode, F as FlaggedRow, b as Row, c as DiagnosticCode, d as DiagnosticDetails, e as TableSchema, f as RedactLevel, g as RedactFn, h as InvalidRow, i as RowKey } from './codes-
|
|
1
|
+
import { R as RowIssue, E as Emit, a as EmitOptions, D as Diagnostic, T as Trigger, P as Phase, I as InvalidRowsMode, F as FlaggedRow, b as Row, c as DiagnosticCode, d as DiagnosticDetails, e as TableSchema, f as RedactLevel, g as RedactFn, h as InvalidRow, i as RowKey } from './codes-AX8XkMNY.js';
|
|
2
2
|
|
|
3
3
|
/** Runtime types an option can accept (`'array'` is checked before `'object'`). */
|
|
4
4
|
type OptionType = 'string' | 'number' | 'boolean' | 'function' | 'object' | 'array';
|
|
@@ -639,7 +639,7 @@ interface TableDiagnosticsOptions {
|
|
|
639
639
|
/**
|
|
640
640
|
* Redaction (§8.2): a level, or a custom `redact(path, value)` on top of the default level
|
|
641
641
|
* (`'keys'` in development, `'safe'` in production). Columns with `sensitive: true` are never
|
|
642
|
-
* logged; a `rowKey` path into a sensitive column is
|
|
642
|
+
* logged; a `rowKey` path into a sensitive column is logged as `[sensitive]` (no hash) at every level.
|
|
643
643
|
*/
|
|
644
644
|
redact?: RedactLevel | RedactFn;
|
|
645
645
|
}
|
|
@@ -1010,7 +1010,7 @@ interface RowStep {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
/** What `table.explainRow(key)` returns (§8.4); `String(e)` is the console report. */
|
|
1012
1012
|
interface RowExplanation {
|
|
1013
|
-
/** The key asked for, redacted (a hash under `'safe'`). */
|
|
1013
|
+
/** The key asked for, redacted (a hash under `'safe'`, `[sensitive]` for a sensitive rowKey). */
|
|
1014
1014
|
readonly key: unknown;
|
|
1015
1015
|
readonly found: boolean;
|
|
1016
1016
|
/** Position in `getData()`; absent when not found or dropped by the schema. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RowIssue, E as Emit, a as EmitOptions, D as Diagnostic, T as Trigger, P as Phase, I as InvalidRowsMode, F as FlaggedRow, b as Row, c as DiagnosticCode, d as DiagnosticDetails, e as TableSchema, f as RedactLevel, g as RedactFn, h as InvalidRow, i as RowKey } from './codes-
|
|
1
|
+
import { R as RowIssue, E as Emit, a as EmitOptions, D as Diagnostic, T as Trigger, P as Phase, I as InvalidRowsMode, F as FlaggedRow, b as Row, c as DiagnosticCode, d as DiagnosticDetails, e as TableSchema, f as RedactLevel, g as RedactFn, h as InvalidRow, i as RowKey } from './codes-AX8XkMNY.cjs';
|
|
2
2
|
|
|
3
3
|
/** Runtime types an option can accept (`'array'` is checked before `'object'`). */
|
|
4
4
|
type OptionType = 'string' | 'number' | 'boolean' | 'function' | 'object' | 'array';
|
|
@@ -639,7 +639,7 @@ interface TableDiagnosticsOptions {
|
|
|
639
639
|
/**
|
|
640
640
|
* Redaction (§8.2): a level, or a custom `redact(path, value)` on top of the default level
|
|
641
641
|
* (`'keys'` in development, `'safe'` in production). Columns with `sensitive: true` are never
|
|
642
|
-
* logged; a `rowKey` path into a sensitive column is
|
|
642
|
+
* logged; a `rowKey` path into a sensitive column is logged as `[sensitive]` (no hash) at every level.
|
|
643
643
|
*/
|
|
644
644
|
redact?: RedactLevel | RedactFn;
|
|
645
645
|
}
|
|
@@ -1010,7 +1010,7 @@ interface RowStep {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
/** What `table.explainRow(key)` returns (§8.4); `String(e)` is the console report. */
|
|
1012
1012
|
interface RowExplanation {
|
|
1013
|
-
/** The key asked for, redacted (a hash under `'safe'`). */
|
|
1013
|
+
/** The key asked for, redacted (a hash under `'safe'`, `[sensitive]` for a sensitive rowKey). */
|
|
1014
1014
|
readonly key: unknown;
|
|
1015
1015
|
readonly found: boolean;
|
|
1016
1016
|
/** Position in `getData()`; absent when not found or dropped by the schema. */
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { D as Diagnostic, c as DiagnosticCode, d as DiagnosticDetails, a as EmitOptions, T as Trigger, P as Phase, j as DiagnosticStateSummary, f as RedactLevel, k as RedactionOptions, l as DiagnosticDefinition, I as InvalidRowsMode, e as TableSchema, S as StandardSchemaV1, E as Emit } from './codes-
|
|
2
|
-
export { B as BadResponse, m as BuildInput, n as DK_UNSAFE_REDACTION, o as DatakableConfigError, p as DatakableError, q as DatakableSchemaError, r as DiagnosticCatalog, s as DiagnosticContext, t as DiagnosticLevel, u as DiagnosticMessages, v as DiagnosticMeta, w as DiagnosticText, x as FlaggedInvalidRow, F as FlaggedRow, h as InvalidRow, L as Location, y as REDACTED, z as RedactField, g as RedactFn, A as Redactor, b as Row, R as RowIssue, i as RowKey, C as SCHEMA_INGEST, G as SENSITIVE, H as SchemaIssueColumn, J as SchemaOutcome, K as SlotDefinition, M as SlotReturns, V as ValidRow, N as asyncDiagnostics, O as boundaryDiagnostics, Q as buildDiagnostic, U as columnFiltersDiagnostics, W as comparatorDiagnostics, X as coreDiagnostics, Y as dataCheckDiagnostics, Z as dataMutationDiagnostics, _ as defineDiagnostic, $ as defineSlot, a0 as describeReturn, a1 as describeValue, a2 as envDiagnostics, a3 as featureDiagnostics, a4 as fetchDiagnostics, a5 as formatSlot, a6 as formatWhere, a7 as getDiagnosticDefinition, a8 as getDiagnosticText, a9 as getSlot, aa as hasMessages, ab as hashRowKey, ac as installMessages, ad as isStandardSchema, ae as keepDiagnostics, af as listDiagnosticCodes, ag as matchesSlot, ah as optionDiagnostics, ai as paginationDiagnostics, aj as pipelineDiagnostics, ak as resolveRedaction, al as rowKeyDiagnostics, am as schemaDiagnostics, an as scrubError, ao as scrubSchemaIssue, ap as searchDiagnostics, aq as slotDiagnostics, ar as sortingDiagnostics, as as ssrDiagnostics, at as stepDiagnostics, au as tableDiagnostics, av as throwConfigError, aw as validityDiagnostics, ax as versioningDiagnostics } from './codes-
|
|
3
|
-
import { S as Stage, A as AnyFeature, I as InterceptorRuntime, a as Interceptor, F as Feature, b as FixedTypes, c as FeatureContext, R as RowModelContext, d as AnyRow, e as FeatureTypes, O as OpName, f as InterceptorContext, g as OpResult, T as TableState, h as TableOptions, i as ServerFetcher, j as TableStateFor, k as Table, l as ApiOf } from './explain-
|
|
4
|
-
export { m as AccessorColumn, n as Apply, B as BuiltinOperations, C as CELL_FALLBACK, o as CellContext, p as CellFailures, q as CellSlot, r as ColumnDef, s as ColumnValues, t as ContextBase, u as ContextPool, v as ControlledState, w as Core, E as ExplainStep, x as FetchOutcome, y as FetchParams, z as FetchResult, D as Fetcher, G as FilterFor, H as HotOpWarning, J as InterceptorRuntimeOptions, K as InvalidCellContext, L as IsAny, M as KeyColumn, N as Listener, P as LooseRow, Q as OpInput, U as OpKind, V as OpOutput, W as OpSpec, X as OperationInfo, Y as Operations, Z as OptionRule, _ as OptionType, $ as OptionsDefinition, a0 as OptionsSchema, a1 as Path, a2 as PathValue, a3 as Primitive, a4 as RenderReq, a5 as RowExplanation, a6 as RowModel, a7 as RowModelStatus, a8 as RowOf, a9 as RowStep, aa as RowStepOutcome, ab as SERVER_SOURCE, ac as SliceUpdater, ad as SortAlgorithm, ae as StateOf, af as TableDiagnosticsOptions, ag as TableExplanation, ah as UPDATE_DEPTH_LIMIT, ai as Updater, aj as createContext, ak as createContextPool, al as createInterceptorRuntime, am as defineInterceptor, an as defineOptions, ao as emitTableDiagnostic, ap as getOperation, aq as isOptionsDefinition, ar as listOperations, as as registerOperation, at as runCells } from './explain-
|
|
1
|
+
import { D as Diagnostic, c as DiagnosticCode, d as DiagnosticDetails, a as EmitOptions, T as Trigger, P as Phase, j as DiagnosticStateSummary, f as RedactLevel, k as RedactionOptions, l as DiagnosticDefinition, I as InvalidRowsMode, e as TableSchema, S as StandardSchemaV1, E as Emit } from './codes-AX8XkMNY.cjs';
|
|
2
|
+
export { B as BadResponse, m as BuildInput, n as DK_UNSAFE_REDACTION, o as DatakableConfigError, p as DatakableError, q as DatakableSchemaError, r as DiagnosticCatalog, s as DiagnosticContext, t as DiagnosticLevel, u as DiagnosticMessages, v as DiagnosticMeta, w as DiagnosticText, x as FlaggedInvalidRow, F as FlaggedRow, h as InvalidRow, L as Location, y as REDACTED, z as RedactField, g as RedactFn, A as Redactor, b as Row, R as RowIssue, i as RowKey, C as SCHEMA_INGEST, G as SENSITIVE, H as SchemaIssueColumn, J as SchemaOutcome, K as SlotDefinition, M as SlotReturns, V as ValidRow, N as asyncDiagnostics, O as boundaryDiagnostics, Q as buildDiagnostic, U as columnFiltersDiagnostics, W as comparatorDiagnostics, X as coreDiagnostics, Y as dataCheckDiagnostics, Z as dataMutationDiagnostics, _ as defineDiagnostic, $ as defineSlot, a0 as describeReturn, a1 as describeValue, a2 as envDiagnostics, a3 as featureDiagnostics, a4 as fetchDiagnostics, a5 as formatSlot, a6 as formatWhere, a7 as getDiagnosticDefinition, a8 as getDiagnosticText, a9 as getSlot, aa as hasMessages, ab as hashRowKey, ac as installMessages, ad as isStandardSchema, ae as keepDiagnostics, af as listDiagnosticCodes, ag as matchesSlot, ah as optionDiagnostics, ai as paginationDiagnostics, aj as pipelineDiagnostics, ak as resolveRedaction, al as rowKeyDiagnostics, am as schemaDiagnostics, an as scrubError, ao as scrubSchemaIssue, ap as searchDiagnostics, aq as slotDiagnostics, ar as sortingDiagnostics, as as ssrDiagnostics, at as stepDiagnostics, au as tableDiagnostics, av as throwConfigError, aw as validityDiagnostics, ax as versioningDiagnostics } from './codes-AX8XkMNY.cjs';
|
|
3
|
+
import { S as Stage, A as AnyFeature, I as InterceptorRuntime, a as Interceptor, F as Feature, b as FixedTypes, c as FeatureContext, R as RowModelContext, d as AnyRow, e as FeatureTypes, O as OpName, f as InterceptorContext, g as OpResult, T as TableState, h as TableOptions, i as ServerFetcher, j as TableStateFor, k as Table, l as ApiOf } from './explain-pKAnnxEW.cjs';
|
|
4
|
+
export { m as AccessorColumn, n as Apply, B as BuiltinOperations, C as CELL_FALLBACK, o as CellContext, p as CellFailures, q as CellSlot, r as ColumnDef, s as ColumnValues, t as ContextBase, u as ContextPool, v as ControlledState, w as Core, E as ExplainStep, x as FetchOutcome, y as FetchParams, z as FetchResult, D as Fetcher, G as FilterFor, H as HotOpWarning, J as InterceptorRuntimeOptions, K as InvalidCellContext, L as IsAny, M as KeyColumn, N as Listener, P as LooseRow, Q as OpInput, U as OpKind, V as OpOutput, W as OpSpec, X as OperationInfo, Y as Operations, Z as OptionRule, _ as OptionType, $ as OptionsDefinition, a0 as OptionsSchema, a1 as Path, a2 as PathValue, a3 as Primitive, a4 as RenderReq, a5 as RowExplanation, a6 as RowModel, a7 as RowModelStatus, a8 as RowOf, a9 as RowStep, aa as RowStepOutcome, ab as SERVER_SOURCE, ac as SliceUpdater, ad as SortAlgorithm, ae as StateOf, af as TableDiagnosticsOptions, ag as TableExplanation, ah as UPDATE_DEPTH_LIMIT, ai as Updater, aj as createContext, ak as createContextPool, al as createInterceptorRuntime, am as defineInterceptor, an as defineOptions, ao as emitTableDiagnostic, ap as getOperation, aq as isOptionsDefinition, ar as listOperations, as as registerOperation, at as runCells } from './explain-pKAnnxEW.cjs';
|
|
5
5
|
import { ColumnFiltersTypes } from './column-filters.cjs';
|
|
6
6
|
export { ColumnFilter, ColumnFiltersApi, ColumnFiltersOptions, ColumnFiltersState, ContainsFilter, CustomFilter, EqualsFilter, InFilter, RangeFilter, RangeValue, columnFilters } from './column-filters.cjs';
|
|
7
7
|
import { PaginationState, PaginationApi } from './pagination.cjs';
|
|
8
8
|
export { PaginationOptions, pagination } from './pagination.cjs';
|
|
9
9
|
import { SearchApi } from './search.cjs';
|
|
10
10
|
export { SearchOptions, SearchTyping, SearchWait, search } from './search.cjs';
|
|
11
|
-
import { S as SearchState } from './search-async-entry-
|
|
12
|
-
export { A as AsyncSearchFn, a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, d as SearchOutcome, e as SearchResult, f as SearchStatus, w as withSearchFn } from './search-async-entry-
|
|
11
|
+
import { S as SearchState } from './search-async-entry-ByMJbHjc.cjs';
|
|
12
|
+
export { A as AsyncSearchFn, a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, d as SearchOutcome, e as SearchResult, f as SearchStatus, w as withSearchFn } from './search-async-entry-ByMJbHjc.cjs';
|
|
13
13
|
import { SortingTypes } from './sorting.cjs';
|
|
14
14
|
export { SortAlgorithmOption, SortDirection, SortEntry, SortingApi, SortingOptions, SortingState, compareValues, sorting, typeRank } from './sorting.cjs';
|
|
15
15
|
import { ValidityState, ValidityApi } from './validity.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { D as Diagnostic, c as DiagnosticCode, d as DiagnosticDetails, a as EmitOptions, T as Trigger, P as Phase, j as DiagnosticStateSummary, f as RedactLevel, k as RedactionOptions, l as DiagnosticDefinition, I as InvalidRowsMode, e as TableSchema, S as StandardSchemaV1, E as Emit } from './codes-
|
|
2
|
-
export { B as BadResponse, m as BuildInput, n as DK_UNSAFE_REDACTION, o as DatakableConfigError, p as DatakableError, q as DatakableSchemaError, r as DiagnosticCatalog, s as DiagnosticContext, t as DiagnosticLevel, u as DiagnosticMessages, v as DiagnosticMeta, w as DiagnosticText, x as FlaggedInvalidRow, F as FlaggedRow, h as InvalidRow, L as Location, y as REDACTED, z as RedactField, g as RedactFn, A as Redactor, b as Row, R as RowIssue, i as RowKey, C as SCHEMA_INGEST, G as SENSITIVE, H as SchemaIssueColumn, J as SchemaOutcome, K as SlotDefinition, M as SlotReturns, V as ValidRow, N as asyncDiagnostics, O as boundaryDiagnostics, Q as buildDiagnostic, U as columnFiltersDiagnostics, W as comparatorDiagnostics, X as coreDiagnostics, Y as dataCheckDiagnostics, Z as dataMutationDiagnostics, _ as defineDiagnostic, $ as defineSlot, a0 as describeReturn, a1 as describeValue, a2 as envDiagnostics, a3 as featureDiagnostics, a4 as fetchDiagnostics, a5 as formatSlot, a6 as formatWhere, a7 as getDiagnosticDefinition, a8 as getDiagnosticText, a9 as getSlot, aa as hasMessages, ab as hashRowKey, ac as installMessages, ad as isStandardSchema, ae as keepDiagnostics, af as listDiagnosticCodes, ag as matchesSlot, ah as optionDiagnostics, ai as paginationDiagnostics, aj as pipelineDiagnostics, ak as resolveRedaction, al as rowKeyDiagnostics, am as schemaDiagnostics, an as scrubError, ao as scrubSchemaIssue, ap as searchDiagnostics, aq as slotDiagnostics, ar as sortingDiagnostics, as as ssrDiagnostics, at as stepDiagnostics, au as tableDiagnostics, av as throwConfigError, aw as validityDiagnostics, ax as versioningDiagnostics } from './codes-
|
|
3
|
-
import { S as Stage, A as AnyFeature, I as InterceptorRuntime, a as Interceptor, F as Feature, b as FixedTypes, c as FeatureContext, R as RowModelContext, d as AnyRow, e as FeatureTypes, O as OpName, f as InterceptorContext, g as OpResult, T as TableState, h as TableOptions, i as ServerFetcher, j as TableStateFor, k as Table, l as ApiOf } from './explain-
|
|
4
|
-
export { m as AccessorColumn, n as Apply, B as BuiltinOperations, C as CELL_FALLBACK, o as CellContext, p as CellFailures, q as CellSlot, r as ColumnDef, s as ColumnValues, t as ContextBase, u as ContextPool, v as ControlledState, w as Core, E as ExplainStep, x as FetchOutcome, y as FetchParams, z as FetchResult, D as Fetcher, G as FilterFor, H as HotOpWarning, J as InterceptorRuntimeOptions, K as InvalidCellContext, L as IsAny, M as KeyColumn, N as Listener, P as LooseRow, Q as OpInput, U as OpKind, V as OpOutput, W as OpSpec, X as OperationInfo, Y as Operations, Z as OptionRule, _ as OptionType, $ as OptionsDefinition, a0 as OptionsSchema, a1 as Path, a2 as PathValue, a3 as Primitive, a4 as RenderReq, a5 as RowExplanation, a6 as RowModel, a7 as RowModelStatus, a8 as RowOf, a9 as RowStep, aa as RowStepOutcome, ab as SERVER_SOURCE, ac as SliceUpdater, ad as SortAlgorithm, ae as StateOf, af as TableDiagnosticsOptions, ag as TableExplanation, ah as UPDATE_DEPTH_LIMIT, ai as Updater, aj as createContext, ak as createContextPool, al as createInterceptorRuntime, am as defineInterceptor, an as defineOptions, ao as emitTableDiagnostic, ap as getOperation, aq as isOptionsDefinition, ar as listOperations, as as registerOperation, at as runCells } from './explain-
|
|
1
|
+
import { D as Diagnostic, c as DiagnosticCode, d as DiagnosticDetails, a as EmitOptions, T as Trigger, P as Phase, j as DiagnosticStateSummary, f as RedactLevel, k as RedactionOptions, l as DiagnosticDefinition, I as InvalidRowsMode, e as TableSchema, S as StandardSchemaV1, E as Emit } from './codes-AX8XkMNY.js';
|
|
2
|
+
export { B as BadResponse, m as BuildInput, n as DK_UNSAFE_REDACTION, o as DatakableConfigError, p as DatakableError, q as DatakableSchemaError, r as DiagnosticCatalog, s as DiagnosticContext, t as DiagnosticLevel, u as DiagnosticMessages, v as DiagnosticMeta, w as DiagnosticText, x as FlaggedInvalidRow, F as FlaggedRow, h as InvalidRow, L as Location, y as REDACTED, z as RedactField, g as RedactFn, A as Redactor, b as Row, R as RowIssue, i as RowKey, C as SCHEMA_INGEST, G as SENSITIVE, H as SchemaIssueColumn, J as SchemaOutcome, K as SlotDefinition, M as SlotReturns, V as ValidRow, N as asyncDiagnostics, O as boundaryDiagnostics, Q as buildDiagnostic, U as columnFiltersDiagnostics, W as comparatorDiagnostics, X as coreDiagnostics, Y as dataCheckDiagnostics, Z as dataMutationDiagnostics, _ as defineDiagnostic, $ as defineSlot, a0 as describeReturn, a1 as describeValue, a2 as envDiagnostics, a3 as featureDiagnostics, a4 as fetchDiagnostics, a5 as formatSlot, a6 as formatWhere, a7 as getDiagnosticDefinition, a8 as getDiagnosticText, a9 as getSlot, aa as hasMessages, ab as hashRowKey, ac as installMessages, ad as isStandardSchema, ae as keepDiagnostics, af as listDiagnosticCodes, ag as matchesSlot, ah as optionDiagnostics, ai as paginationDiagnostics, aj as pipelineDiagnostics, ak as resolveRedaction, al as rowKeyDiagnostics, am as schemaDiagnostics, an as scrubError, ao as scrubSchemaIssue, ap as searchDiagnostics, aq as slotDiagnostics, ar as sortingDiagnostics, as as ssrDiagnostics, at as stepDiagnostics, au as tableDiagnostics, av as throwConfigError, aw as validityDiagnostics, ax as versioningDiagnostics } from './codes-AX8XkMNY.js';
|
|
3
|
+
import { S as Stage, A as AnyFeature, I as InterceptorRuntime, a as Interceptor, F as Feature, b as FixedTypes, c as FeatureContext, R as RowModelContext, d as AnyRow, e as FeatureTypes, O as OpName, f as InterceptorContext, g as OpResult, T as TableState, h as TableOptions, i as ServerFetcher, j as TableStateFor, k as Table, l as ApiOf } from './explain-BVE3ln3G.js';
|
|
4
|
+
export { m as AccessorColumn, n as Apply, B as BuiltinOperations, C as CELL_FALLBACK, o as CellContext, p as CellFailures, q as CellSlot, r as ColumnDef, s as ColumnValues, t as ContextBase, u as ContextPool, v as ControlledState, w as Core, E as ExplainStep, x as FetchOutcome, y as FetchParams, z as FetchResult, D as Fetcher, G as FilterFor, H as HotOpWarning, J as InterceptorRuntimeOptions, K as InvalidCellContext, L as IsAny, M as KeyColumn, N as Listener, P as LooseRow, Q as OpInput, U as OpKind, V as OpOutput, W as OpSpec, X as OperationInfo, Y as Operations, Z as OptionRule, _ as OptionType, $ as OptionsDefinition, a0 as OptionsSchema, a1 as Path, a2 as PathValue, a3 as Primitive, a4 as RenderReq, a5 as RowExplanation, a6 as RowModel, a7 as RowModelStatus, a8 as RowOf, a9 as RowStep, aa as RowStepOutcome, ab as SERVER_SOURCE, ac as SliceUpdater, ad as SortAlgorithm, ae as StateOf, af as TableDiagnosticsOptions, ag as TableExplanation, ah as UPDATE_DEPTH_LIMIT, ai as Updater, aj as createContext, ak as createContextPool, al as createInterceptorRuntime, am as defineInterceptor, an as defineOptions, ao as emitTableDiagnostic, ap as getOperation, aq as isOptionsDefinition, ar as listOperations, as as registerOperation, at as runCells } from './explain-BVE3ln3G.js';
|
|
5
5
|
import { ColumnFiltersTypes } from './column-filters.js';
|
|
6
6
|
export { ColumnFilter, ColumnFiltersApi, ColumnFiltersOptions, ColumnFiltersState, ContainsFilter, CustomFilter, EqualsFilter, InFilter, RangeFilter, RangeValue, columnFilters } from './column-filters.js';
|
|
7
7
|
import { PaginationState, PaginationApi } from './pagination.js';
|
|
8
8
|
export { PaginationOptions, pagination } from './pagination.js';
|
|
9
9
|
import { SearchApi } from './search.js';
|
|
10
10
|
export { SearchOptions, SearchTyping, SearchWait, search } from './search.js';
|
|
11
|
-
import { S as SearchState } from './search-async-entry-
|
|
12
|
-
export { A as AsyncSearchFn, a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, d as SearchOutcome, e as SearchResult, f as SearchStatus, w as withSearchFn } from './search-async-entry-
|
|
11
|
+
import { S as SearchState } from './search-async-entry-CFQODE08.js';
|
|
12
|
+
export { A as AsyncSearchFn, a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, d as SearchOutcome, e as SearchResult, f as SearchStatus, w as withSearchFn } from './search-async-entry-CFQODE08.js';
|
|
13
13
|
import { SortingTypes } from './sorting.js';
|
|
14
14
|
export { SortAlgorithmOption, SortDirection, SortEntry, SortingApi, SortingOptions, SortingState, compareValues, sorting, typeRank } from './sorting.js';
|
|
15
15
|
import { ValidityState, ValidityApi } from './validity.js';
|
package/dist/pagination.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ai as paginationDiagnostics } from './codes-
|
|
2
|
-
import { F as Feature, b as FixedTypes } from './explain-
|
|
1
|
+
export { ai as paginationDiagnostics } from './codes-AX8XkMNY.cjs';
|
|
2
|
+
import { F as Feature, b as FixedTypes } from './explain-pKAnnxEW.cjs';
|
|
3
3
|
import { a as DataMode } from './mode-DFV8ryXo.cjs';
|
|
4
4
|
|
|
5
5
|
interface PaginationState {
|
package/dist/pagination.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ai as paginationDiagnostics } from './codes-
|
|
2
|
-
import { F as Feature, b as FixedTypes } from './explain-
|
|
1
|
+
export { ai as paginationDiagnostics } from './codes-AX8XkMNY.js';
|
|
2
|
+
import { F as Feature, b as FixedTypes } from './explain-BVE3ln3G.js';
|
|
3
3
|
import { a as DataMode } from './mode-DFV8ryXo.js';
|
|
4
4
|
|
|
5
5
|
interface PaginationState {
|
package/dist/schema.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StandardSchemaV1, e as TableSchema } from './codes-
|
|
2
|
-
export { q as DatakableSchemaError, h as InvalidRow, I as InvalidRowsMode, C as SCHEMA_INGEST, H as SchemaIssueColumn, J as SchemaOutcome, ad as isStandardSchema, am as schemaDiagnostics } from './codes-
|
|
1
|
+
import { S as StandardSchemaV1, e as TableSchema } from './codes-AX8XkMNY.cjs';
|
|
2
|
+
export { q as DatakableSchemaError, h as InvalidRow, I as InvalidRowsMode, C as SCHEMA_INGEST, H as SchemaIssueColumn, J as SchemaOutcome, ad as isStandardSchema, am as schemaDiagnostics } from './codes-AX8XkMNY.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Opts a Standard Schema v1 (zod, valibot, arktype, …) into table validation (§5.1):
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StandardSchemaV1, e as TableSchema } from './codes-
|
|
2
|
-
export { q as DatakableSchemaError, h as InvalidRow, I as InvalidRowsMode, C as SCHEMA_INGEST, H as SchemaIssueColumn, J as SchemaOutcome, ad as isStandardSchema, am as schemaDiagnostics } from './codes-
|
|
1
|
+
import { S as StandardSchemaV1, e as TableSchema } from './codes-AX8XkMNY.js';
|
|
2
|
+
export { q as DatakableSchemaError, h as InvalidRow, I as InvalidRowsMode, C as SCHEMA_INGEST, H as SchemaIssueColumn, J as SchemaOutcome, ad as isStandardSchema, am as schemaDiagnostics } from './codes-AX8XkMNY.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Opts a Standard Schema v1 (zod, valibot, arktype, …) into table validation (§5.1):
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as RowKey } from './codes-
|
|
2
|
-
import { R as RowModelContext, c as FeatureContext } from './explain-
|
|
1
|
+
import { i as RowKey } from './codes-AX8XkMNY.cjs';
|
|
2
|
+
import { R as RowModelContext, c as FeatureContext } from './explain-pKAnnxEW.cjs';
|
|
3
3
|
|
|
4
4
|
/** What `setSearch` / `flushSearch` resolve to; they never reject. */
|
|
5
5
|
interface SearchOutcome {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as RowKey } from './codes-
|
|
2
|
-
import { R as RowModelContext, c as FeatureContext } from './explain-
|
|
1
|
+
import { i as RowKey } from './codes-AX8XkMNY.js';
|
|
2
|
+
import { R as RowModelContext, c as FeatureContext } from './explain-BVE3ln3G.js';
|
|
3
3
|
|
|
4
4
|
/** What `setSearch` / `flushSearch` resolve to; they never reject. */
|
|
5
5
|
interface SearchOutcome {
|
package/dist/search-async.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ap as searchDiagnostics } from './codes-
|
|
2
|
-
export { A as AsyncSearchFn, a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, e as SearchResult, w as withSearchFn } from './search-async-entry-
|
|
3
|
-
import './explain-
|
|
1
|
+
export { ap as searchDiagnostics } from './codes-AX8XkMNY.cjs';
|
|
2
|
+
export { A as AsyncSearchFn, a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, e as SearchResult, w as withSearchFn } from './search-async-entry-ByMJbHjc.cjs';
|
|
3
|
+
import './explain-pKAnnxEW.cjs';
|
package/dist/search-async.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ap as searchDiagnostics } from './codes-
|
|
2
|
-
export { A as AsyncSearchFn, a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, e as SearchResult, w as withSearchFn } from './search-async-entry-
|
|
3
|
-
import './explain-
|
|
1
|
+
export { ap as searchDiagnostics } from './codes-AX8XkMNY.js';
|
|
2
|
+
export { A as AsyncSearchFn, a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, e as SearchResult, w as withSearchFn } from './search-async-entry-CFQODE08.js';
|
|
3
|
+
import './explain-BVE3ln3G.js';
|
package/dist/search.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { ap as searchDiagnostics } from './codes-
|
|
2
|
-
import { d as AnyRow, F as Feature, b as FixedTypes } from './explain-
|
|
1
|
+
export { ap as searchDiagnostics } from './codes-AX8XkMNY.cjs';
|
|
2
|
+
import { d as AnyRow, F as Feature, b as FixedTypes } from './explain-pKAnnxEW.cjs';
|
|
3
3
|
import { a as DataMode } from './mode-DFV8ryXo.cjs';
|
|
4
|
-
import { d as SearchOutcome, A as AsyncSearchFn, S as SearchState } from './search-async-entry-
|
|
5
|
-
export { a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, e as SearchResult, f as SearchStatus, w as withSearchFn } from './search-async-entry-
|
|
4
|
+
import { d as SearchOutcome, A as AsyncSearchFn, S as SearchState } from './search-async-entry-ByMJbHjc.cjs';
|
|
5
|
+
export { a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, e as SearchResult, f as SearchStatus, w as withSearchFn } from './search-async-entry-ByMJbHjc.cjs';
|
|
6
6
|
|
|
7
7
|
interface SearchApi {
|
|
8
8
|
/** Sets `input` (and `query`, with the client's immediate typing strategy). */
|
package/dist/search.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { ap as searchDiagnostics } from './codes-
|
|
2
|
-
import { d as AnyRow, F as Feature, b as FixedTypes } from './explain-
|
|
1
|
+
export { ap as searchDiagnostics } from './codes-AX8XkMNY.js';
|
|
2
|
+
import { d as AnyRow, F as Feature, b as FixedTypes } from './explain-BVE3ln3G.js';
|
|
3
3
|
import { a as DataMode } from './mode-DFV8ryXo.js';
|
|
4
|
-
import { d as SearchOutcome, A as AsyncSearchFn, S as SearchState } from './search-async-entry-
|
|
5
|
-
export { a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, e as SearchResult, f as SearchStatus, w as withSearchFn } from './search-async-entry-
|
|
4
|
+
import { d as SearchOutcome, A as AsyncSearchFn, S as SearchState } from './search-async-entry-CFQODE08.js';
|
|
5
|
+
export { a as SEARCH_ENGINE, b as SearchFn, c as SearchFnContext, e as SearchResult, f as SearchStatus, w as withSearchFn } from './search-async-entry-CFQODE08.js';
|
|
6
6
|
|
|
7
7
|
interface SearchApi {
|
|
8
8
|
/** Sets `input` (and `query`, with the client's immediate typing strategy). */
|
package/dist/server.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Interceptor, D as Fetcher, i as ServerFetcher } from './explain-
|
|
2
|
-
export { x as FetchOutcome, y as FetchParams, z as FetchResult, ab as SERVER_SOURCE } from './explain-
|
|
3
|
-
export { B as BadResponse, N as asyncDiagnostics, a4 as fetchDiagnostics } from './codes-
|
|
1
|
+
import { a as Interceptor, D as Fetcher, i as ServerFetcher } from './explain-pKAnnxEW.cjs';
|
|
2
|
+
export { x as FetchOutcome, y as FetchParams, z as FetchResult, ab as SERVER_SOURCE } from './explain-pKAnnxEW.cjs';
|
|
3
|
+
export { B as BadResponse, N as asyncDiagnostics, a4 as fetchDiagnostics } from './codes-AX8XkMNY.cjs';
|
|
4
4
|
|
|
5
5
|
/** Spec §7.1: a request that has not settled after 30 s is aborted (`DK_ASYNC_TIMEOUT`). */
|
|
6
6
|
declare const DEFAULT_ASYNC_TIMEOUT = 30000;
|
package/dist/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as Interceptor, D as Fetcher, i as ServerFetcher } from './explain-
|
|
2
|
-
export { x as FetchOutcome, y as FetchParams, z as FetchResult, ab as SERVER_SOURCE } from './explain-
|
|
3
|
-
export { B as BadResponse, N as asyncDiagnostics, a4 as fetchDiagnostics } from './codes-
|
|
1
|
+
import { a as Interceptor, D as Fetcher, i as ServerFetcher } from './explain-BVE3ln3G.js';
|
|
2
|
+
export { x as FetchOutcome, y as FetchParams, z as FetchResult, ab as SERVER_SOURCE } from './explain-BVE3ln3G.js';
|
|
3
|
+
export { B as BadResponse, N as asyncDiagnostics, a4 as fetchDiagnostics } from './codes-AX8XkMNY.js';
|
|
4
4
|
|
|
5
5
|
/** Spec §7.1: a request that has not settled after 30 s is aborted (`DK_ASYNC_TIMEOUT`). */
|
|
6
6
|
declare const DEFAULT_ASYNC_TIMEOUT = 30000;
|
package/dist/sorting.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { W as comparatorDiagnostics, ar as sortingDiagnostics } from './codes-
|
|
2
|
-
import { ad as SortAlgorithm, a1 as Path, e as FeatureTypes, F as Feature } from './explain-
|
|
1
|
+
export { W as comparatorDiagnostics, ar as sortingDiagnostics } from './codes-AX8XkMNY.cjs';
|
|
2
|
+
import { ad as SortAlgorithm, a1 as Path, e as FeatureTypes, F as Feature } from './explain-pKAnnxEW.cjs';
|
|
3
3
|
import { a as DataMode } from './mode-DFV8ryXo.cjs';
|
|
4
4
|
|
|
5
5
|
/** The rank of `v` in {@link RANK}. */
|
package/dist/sorting.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { W as comparatorDiagnostics, ar as sortingDiagnostics } from './codes-
|
|
2
|
-
import { ad as SortAlgorithm, a1 as Path, e as FeatureTypes, F as Feature } from './explain-
|
|
1
|
+
export { W as comparatorDiagnostics, ar as sortingDiagnostics } from './codes-AX8XkMNY.js';
|
|
2
|
+
import { ad as SortAlgorithm, a1 as Path, e as FeatureTypes, F as Feature } from './explain-BVE3ln3G.js';
|
|
3
3
|
import { a as DataMode } from './mode-DFV8ryXo.js';
|
|
4
4
|
|
|
5
5
|
/** The rank of `v` in {@link RANK}. */
|
package/dist/table/types.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/table/types.ts"],"sourcesContent":["import type { ColumnDef, LooseRow, Path } from '../column'\nimport type { RowExplanation, TableExplanation } from '../diagnostics/explain'\nimport type { RedactFn, RedactLevel } from '../diagnostics/redact'\nimport type { Diagnostic } from '../diagnostics/types'\nimport type { AnyFeature } from '../feature/types'\nimport type { InvalidRow } from '../ingest/schema'\nimport type { TableSchema } from '../ingest/schema-brand'\nimport type { InvalidRowsMode } from '../ingest/schema-codes'\nimport type { Interceptor } from '../intercept/define'\nimport type { OpName } from '../intercept/operations'\nimport type { RowKey } from '../pipeline/row'\nimport type { RowModel } from '../pipeline/types'\nimport type { FetchOutcome } from '../source/fetcher'\nimport type { ServerFetcher } from '../source/server-brand'\n\n/** Table state: one entry per slice (feature state is typed by `StateOf`, T08). */\nexport type TableState = Record<string, unknown>\n\n/** A partial state merged per slice, or a function of the current state returning one. */\nexport type Updater<S> = Partial<S> | ((prev: S) => Partial<S>)\n\n/** `options.state`: a slice given as `undefined` counts as not passed (owned by the store). */\nexport type ControlledState<S> = { [K in keyof S]?: S[K] | undefined }\n\n/** Called after each committed change with the new and the previously notified snapshot. */\nexport type Listener<S> = (state: S, prev: S) => void\n\n/**\n * Max consecutive re-entrant notification rounds (a listener updating state, whose listeners\n * update state, …). The update that would start the next round is dropped (`DK_UPDATE_LOOP`).\n */\nexport const UPDATE_DEPTH_LIMIT = 50\n\nexport interface TableDiagnosticsOptions {\n /**\n * Redaction (§8.2): a level, or a custom `redact(path, value)` on top of the default level\n * (`'keys'` in development, `'safe'` in production). Columns with `sensitive: true` are never\n * logged; a `rowKey` path into a sensitive column is
|
|
1
|
+
{"version":3,"sources":["../../src/table/types.ts"],"sourcesContent":["import type { ColumnDef, LooseRow, Path } from '../column'\nimport type { RowExplanation, TableExplanation } from '../diagnostics/explain'\nimport type { RedactFn, RedactLevel } from '../diagnostics/redact'\nimport type { Diagnostic } from '../diagnostics/types'\nimport type { AnyFeature } from '../feature/types'\nimport type { InvalidRow } from '../ingest/schema'\nimport type { TableSchema } from '../ingest/schema-brand'\nimport type { InvalidRowsMode } from '../ingest/schema-codes'\nimport type { Interceptor } from '../intercept/define'\nimport type { OpName } from '../intercept/operations'\nimport type { RowKey } from '../pipeline/row'\nimport type { RowModel } from '../pipeline/types'\nimport type { FetchOutcome } from '../source/fetcher'\nimport type { ServerFetcher } from '../source/server-brand'\n\n/** Table state: one entry per slice (feature state is typed by `StateOf`, T08). */\nexport type TableState = Record<string, unknown>\n\n/** A partial state merged per slice, or a function of the current state returning one. */\nexport type Updater<S> = Partial<S> | ((prev: S) => Partial<S>)\n\n/** `options.state`: a slice given as `undefined` counts as not passed (owned by the store). */\nexport type ControlledState<S> = { [K in keyof S]?: S[K] | undefined }\n\n/** Called after each committed change with the new and the previously notified snapshot. */\nexport type Listener<S> = (state: S, prev: S) => void\n\n/**\n * Max consecutive re-entrant notification rounds (a listener updating state, whose listeners\n * update state, …). The update that would start the next round is dropped (`DK_UPDATE_LOOP`).\n */\nexport const UPDATE_DEPTH_LIMIT = 50\n\nexport interface TableDiagnosticsOptions {\n /**\n * Redaction (§8.2): a level, or a custom `redact(path, value)` on top of the default level\n * (`'keys'` in development, `'safe'` in production). Columns with `sensitive: true` are never\n * logged; a `rowKey` path into a sensitive column is logged as `[sensitive]` (no hash) at every level.\n */\n redact?: RedactLevel | RedactFn\n}\n\nexport interface TableOptions<T, S extends TableState = TableState> {\n /** Names the table in diagnostics; default `table#n`. */\n name?: string\n data?: readonly T[]\n columns?: readonly ColumnDef<T>[]\n /**\n * A Standard Schema v1 (zod, valibot, arktype, …) every row is validated with (§5.1), opted in\n * with `withSchema(UserSchema)` from `@datakable/core/schema`; the row type is its output. An\n * async schema sets `status: 'validating'` while it runs. Read once, at creation.\n */\n schema?: TableSchema<unknown, T>\n /**\n * What happens to rows that fail `schema` (§5.1): `'drop'` (default) removes them, `'flag'` keeps\n * them with `row.valid === false`, `'throw'` throws `DatakableSchemaError`. All three list them in\n * `getInvalidRows()`. Read once, at creation; no effect without `schema`.\n */\n invalidRows?: InvalidRowsMode\n /** Row identity (§5.2). Read by redaction here; key handling is the ingest's. */\n rowKey?: Path<LooseRow<T>> | ((row: T) => string | number)\n /**\n * Installed features (§3.3), in any order: the pipeline runs them by `stage`. Each adds its state\n * slice and merges its API onto the table. Read once, at creation (`setOptions` ignores it).\n */\n features?: readonly AnyFeature[]\n /** Starting values of owned slices; a feature slice given here replaces its `initialState()`. */\n initialState?: Partial<S>\n /**\n * Controlled slices (§3.2): every key with a defined value is owned by the caller, who feeds\n * changes back through `setOptions({ state })`. Slices not passed are owned by the store.\n */\n state?: ControlledState<S>\n /**\n * Receives changes to controlled slices as an updater that merges only the changed slices into\n * the caller's state: `onStateChange: (u) => setControlled(u)`. Not called for owned slices.\n */\n onStateChange?: (updater: (prev: Partial<S>) => Partial<S>) => void\n /** User / feature interceptors (§3.4). The errorBoundary is always installed outermost. */\n interceptors?: readonly Interceptor<OpName>[]\n /** User sink for every diagnostic (e.g. Sentry). */\n onDiagnostic?: (d: Diagnostic) => void\n /**\n * ms before an async request (`fetcher`, `searchFn`) is aborted with `DK_ASYNC_TIMEOUT`.\n * Default 30 000; `Infinity` disables it. Read once, at creation.\n */\n timeout?: number\n /**\n * Server source (§7.1): `fetcher({ query, filters, sort, pageIndex, pageSize, signal })` →\n * `{ rows, rowCount }`. It receives only the state of the server-mode features and runs at\n * creation and whenever that state changes (`status: 'fetching'`), through `async:request`\n * (latest wins, abort, `timeout`). Needs at least one feature with `mode: 'server'`\n * (`DK_FETCHER_WITHOUT_SERVER_MODE`). The returned rows go through `schema` and the data checks.\n * Opt in with `withFetcher(fetchUsers)` from `@datakable/core/server`: a table without a fetcher\n * does not bundle the server source (changed 2026-10-13 for §9.3).\n */\n fetcher?: ServerFetcher<T>\n /**\n * Server mode without a fetcher (§7.1): the total number of rows on the server, while `data` is\n * only the current page. Server-mode pagination counts pages from it (`DK_ROW_COUNT_MISSING`\n * when missing).\n */\n rowCount?: number\n /**\n * SSR (§7.2): the rows the server already produced for the initial state (e.g. its fetcher\n * result). Ingested at creation like `data` when `data` is not given, and counts as the result of\n * the initial async work: the fetcher's first request is skipped (a later server-state change\n * fetches), a `searchFn` is not called for the initial query, and hydration does not re-fetch.\n * With server pagination, `rowCount` gives its total. Read once, at creation.\n */\n initialData?: readonly T[]\n /** Rethrow error-level diagnostics as `DatakableError`. */\n strict?: boolean\n diagnostics?: TableDiagnosticsOptions\n}\n\nexport interface Table<\n T,\n S extends TableState = TableState,\n M extends InvalidRowsMode = 'drop',\n /** The element type `setOptions({ data })` accepts: `unknown` (raw input) with a schema. */\n In = T,\n> {\n /** The current immutable snapshot; the same reference until a slice changes. */\n getState(): S\n setState(updater: Updater<S>): void\n /** Returns the unsubscribe function. One throwing listener never stops the others. */\n subscribe(listener: Listener<S>): () => void\n /** Merges `options` into the current ones (`table:setOptions`). */\n setOptions(\n options: Partial<Omit<TableOptions<T, S>, 'features' | 'data'>> & { data?: readonly In[] },\n ): void\n getOptions(): Readonly<TableOptions<T, S>>\n /** The ingested data (the previous data while an async ingest is pending or failed). */\n getData(): readonly T[]\n /**\n * The row model (§6.6): the visible rows (`Row` objects for the current page only), the counts\n * and the status. The same object until data, state or columns change the result.\n */\n getRowModel(): RowModel<T, M>\n /**\n * The rows that failed `schema` in the current data (§5.1), in every `invalidRows` mode:\n * `{ index, raw, issues }` with `index` into `options.data`. Empty without a schema.\n */\n getInvalidRows(): readonly InvalidRow[]\n /** Oldest first, at most 100 entries. */\n getDiagnostics(): Diagnostic[]\n /**\n * The last pipeline run (§8.4): rows per step, schema drops, the page, open diagnostics, and\n * timings when traced (the tracer runs in development). `String(table.explain())` is a one-line\n * summary. Read-only.\n */\n explain(): TableExplanation\n /**\n * Replays the row with key `key` through the schema and every step (§8.4): which step kept it\n * where, and the step that removed it, with a fix. Values are redacted like diagnostics (§8.2).\n * `String(table.explainRow(key))` is the console report. Read-only.\n */\n explainRow(key: RowKey): RowExplanation\n /**\n * Runs `options.fetcher` again with the current params (§7.1), e.g. a Retry button after\n * `DK_FETCH_FAILED`. Never rejects. Without a fetcher: `{ status: 'applied' }` at once.\n */\n refetch(): Promise<FetchOutcome>\n /** Releases listeners. Later mutating calls are no-ops that report `DK_TABLE_DESTROYED`. */\n destroy(): void\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BO,IAAM,qBAAqB;","names":[]}
|
package/dist/table/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/table/types.ts"],"sourcesContent":["import type { ColumnDef, LooseRow, Path } from '../column'\nimport type { RowExplanation, TableExplanation } from '../diagnostics/explain'\nimport type { RedactFn, RedactLevel } from '../diagnostics/redact'\nimport type { Diagnostic } from '../diagnostics/types'\nimport type { AnyFeature } from '../feature/types'\nimport type { InvalidRow } from '../ingest/schema'\nimport type { TableSchema } from '../ingest/schema-brand'\nimport type { InvalidRowsMode } from '../ingest/schema-codes'\nimport type { Interceptor } from '../intercept/define'\nimport type { OpName } from '../intercept/operations'\nimport type { RowKey } from '../pipeline/row'\nimport type { RowModel } from '../pipeline/types'\nimport type { FetchOutcome } from '../source/fetcher'\nimport type { ServerFetcher } from '../source/server-brand'\n\n/** Table state: one entry per slice (feature state is typed by `StateOf`, T08). */\nexport type TableState = Record<string, unknown>\n\n/** A partial state merged per slice, or a function of the current state returning one. */\nexport type Updater<S> = Partial<S> | ((prev: S) => Partial<S>)\n\n/** `options.state`: a slice given as `undefined` counts as not passed (owned by the store). */\nexport type ControlledState<S> = { [K in keyof S]?: S[K] | undefined }\n\n/** Called after each committed change with the new and the previously notified snapshot. */\nexport type Listener<S> = (state: S, prev: S) => void\n\n/**\n * Max consecutive re-entrant notification rounds (a listener updating state, whose listeners\n * update state, …). The update that would start the next round is dropped (`DK_UPDATE_LOOP`).\n */\nexport const UPDATE_DEPTH_LIMIT = 50\n\nexport interface TableDiagnosticsOptions {\n /**\n * Redaction (§8.2): a level, or a custom `redact(path, value)` on top of the default level\n * (`'keys'` in development, `'safe'` in production). Columns with `sensitive: true` are never\n * logged; a `rowKey` path into a sensitive column is
|
|
1
|
+
{"version":3,"sources":["../../src/table/types.ts"],"sourcesContent":["import type { ColumnDef, LooseRow, Path } from '../column'\nimport type { RowExplanation, TableExplanation } from '../diagnostics/explain'\nimport type { RedactFn, RedactLevel } from '../diagnostics/redact'\nimport type { Diagnostic } from '../diagnostics/types'\nimport type { AnyFeature } from '../feature/types'\nimport type { InvalidRow } from '../ingest/schema'\nimport type { TableSchema } from '../ingest/schema-brand'\nimport type { InvalidRowsMode } from '../ingest/schema-codes'\nimport type { Interceptor } from '../intercept/define'\nimport type { OpName } from '../intercept/operations'\nimport type { RowKey } from '../pipeline/row'\nimport type { RowModel } from '../pipeline/types'\nimport type { FetchOutcome } from '../source/fetcher'\nimport type { ServerFetcher } from '../source/server-brand'\n\n/** Table state: one entry per slice (feature state is typed by `StateOf`, T08). */\nexport type TableState = Record<string, unknown>\n\n/** A partial state merged per slice, or a function of the current state returning one. */\nexport type Updater<S> = Partial<S> | ((prev: S) => Partial<S>)\n\n/** `options.state`: a slice given as `undefined` counts as not passed (owned by the store). */\nexport type ControlledState<S> = { [K in keyof S]?: S[K] | undefined }\n\n/** Called after each committed change with the new and the previously notified snapshot. */\nexport type Listener<S> = (state: S, prev: S) => void\n\n/**\n * Max consecutive re-entrant notification rounds (a listener updating state, whose listeners\n * update state, …). The update that would start the next round is dropped (`DK_UPDATE_LOOP`).\n */\nexport const UPDATE_DEPTH_LIMIT = 50\n\nexport interface TableDiagnosticsOptions {\n /**\n * Redaction (§8.2): a level, or a custom `redact(path, value)` on top of the default level\n * (`'keys'` in development, `'safe'` in production). Columns with `sensitive: true` are never\n * logged; a `rowKey` path into a sensitive column is logged as `[sensitive]` (no hash) at every level.\n */\n redact?: RedactLevel | RedactFn\n}\n\nexport interface TableOptions<T, S extends TableState = TableState> {\n /** Names the table in diagnostics; default `table#n`. */\n name?: string\n data?: readonly T[]\n columns?: readonly ColumnDef<T>[]\n /**\n * A Standard Schema v1 (zod, valibot, arktype, …) every row is validated with (§5.1), opted in\n * with `withSchema(UserSchema)` from `@datakable/core/schema`; the row type is its output. An\n * async schema sets `status: 'validating'` while it runs. Read once, at creation.\n */\n schema?: TableSchema<unknown, T>\n /**\n * What happens to rows that fail `schema` (§5.1): `'drop'` (default) removes them, `'flag'` keeps\n * them with `row.valid === false`, `'throw'` throws `DatakableSchemaError`. All three list them in\n * `getInvalidRows()`. Read once, at creation; no effect without `schema`.\n */\n invalidRows?: InvalidRowsMode\n /** Row identity (§5.2). Read by redaction here; key handling is the ingest's. */\n rowKey?: Path<LooseRow<T>> | ((row: T) => string | number)\n /**\n * Installed features (§3.3), in any order: the pipeline runs them by `stage`. Each adds its state\n * slice and merges its API onto the table. Read once, at creation (`setOptions` ignores it).\n */\n features?: readonly AnyFeature[]\n /** Starting values of owned slices; a feature slice given here replaces its `initialState()`. */\n initialState?: Partial<S>\n /**\n * Controlled slices (§3.2): every key with a defined value is owned by the caller, who feeds\n * changes back through `setOptions({ state })`. Slices not passed are owned by the store.\n */\n state?: ControlledState<S>\n /**\n * Receives changes to controlled slices as an updater that merges only the changed slices into\n * the caller's state: `onStateChange: (u) => setControlled(u)`. Not called for owned slices.\n */\n onStateChange?: (updater: (prev: Partial<S>) => Partial<S>) => void\n /** User / feature interceptors (§3.4). The errorBoundary is always installed outermost. */\n interceptors?: readonly Interceptor<OpName>[]\n /** User sink for every diagnostic (e.g. Sentry). */\n onDiagnostic?: (d: Diagnostic) => void\n /**\n * ms before an async request (`fetcher`, `searchFn`) is aborted with `DK_ASYNC_TIMEOUT`.\n * Default 30 000; `Infinity` disables it. Read once, at creation.\n */\n timeout?: number\n /**\n * Server source (§7.1): `fetcher({ query, filters, sort, pageIndex, pageSize, signal })` →\n * `{ rows, rowCount }`. It receives only the state of the server-mode features and runs at\n * creation and whenever that state changes (`status: 'fetching'`), through `async:request`\n * (latest wins, abort, `timeout`). Needs at least one feature with `mode: 'server'`\n * (`DK_FETCHER_WITHOUT_SERVER_MODE`). The returned rows go through `schema` and the data checks.\n * Opt in with `withFetcher(fetchUsers)` from `@datakable/core/server`: a table without a fetcher\n * does not bundle the server source (changed 2026-10-13 for §9.3).\n */\n fetcher?: ServerFetcher<T>\n /**\n * Server mode without a fetcher (§7.1): the total number of rows on the server, while `data` is\n * only the current page. Server-mode pagination counts pages from it (`DK_ROW_COUNT_MISSING`\n * when missing).\n */\n rowCount?: number\n /**\n * SSR (§7.2): the rows the server already produced for the initial state (e.g. its fetcher\n * result). Ingested at creation like `data` when `data` is not given, and counts as the result of\n * the initial async work: the fetcher's first request is skipped (a later server-state change\n * fetches), a `searchFn` is not called for the initial query, and hydration does not re-fetch.\n * With server pagination, `rowCount` gives its total. Read once, at creation.\n */\n initialData?: readonly T[]\n /** Rethrow error-level diagnostics as `DatakableError`. */\n strict?: boolean\n diagnostics?: TableDiagnosticsOptions\n}\n\nexport interface Table<\n T,\n S extends TableState = TableState,\n M extends InvalidRowsMode = 'drop',\n /** The element type `setOptions({ data })` accepts: `unknown` (raw input) with a schema. */\n In = T,\n> {\n /** The current immutable snapshot; the same reference until a slice changes. */\n getState(): S\n setState(updater: Updater<S>): void\n /** Returns the unsubscribe function. One throwing listener never stops the others. */\n subscribe(listener: Listener<S>): () => void\n /** Merges `options` into the current ones (`table:setOptions`). */\n setOptions(\n options: Partial<Omit<TableOptions<T, S>, 'features' | 'data'>> & { data?: readonly In[] },\n ): void\n getOptions(): Readonly<TableOptions<T, S>>\n /** The ingested data (the previous data while an async ingest is pending or failed). */\n getData(): readonly T[]\n /**\n * The row model (§6.6): the visible rows (`Row` objects for the current page only), the counts\n * and the status. The same object until data, state or columns change the result.\n */\n getRowModel(): RowModel<T, M>\n /**\n * The rows that failed `schema` in the current data (§5.1), in every `invalidRows` mode:\n * `{ index, raw, issues }` with `index` into `options.data`. Empty without a schema.\n */\n getInvalidRows(): readonly InvalidRow[]\n /** Oldest first, at most 100 entries. */\n getDiagnostics(): Diagnostic[]\n /**\n * The last pipeline run (§8.4): rows per step, schema drops, the page, open diagnostics, and\n * timings when traced (the tracer runs in development). `String(table.explain())` is a one-line\n * summary. Read-only.\n */\n explain(): TableExplanation\n /**\n * Replays the row with key `key` through the schema and every step (§8.4): which step kept it\n * where, and the step that removed it, with a fix. Values are redacted like diagnostics (§8.2).\n * `String(table.explainRow(key))` is the console report. Read-only.\n */\n explainRow(key: RowKey): RowExplanation\n /**\n * Runs `options.fetcher` again with the current params (§7.1), e.g. a Retry button after\n * `DK_FETCH_FAILED`. Never rejects. Without a fetcher: `{ status: 'applied' }` at once.\n */\n refetch(): Promise<FetchOutcome>\n /** Releases listeners. Later mutating calls are no-ops that report `DK_TABLE_DESTROYED`. */\n destroy(): void\n}\n"],"mappings":";AA+BO,IAAM,qBAAqB;","names":[]}
|
package/dist/validity.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { aw as validityDiagnostics } from './codes-
|
|
2
|
-
import { F as Feature, b as FixedTypes } from './explain-
|
|
1
|
+
export { aw as validityDiagnostics } from './codes-AX8XkMNY.cjs';
|
|
2
|
+
import { F as Feature, b as FixedTypes } from './explain-pKAnnxEW.cjs';
|
|
3
3
|
|
|
4
4
|
/** Which rows the `validity` step keeps (§6.2). */
|
|
5
5
|
type ValidityState = 'all' | 'valid' | 'invalid';
|
package/dist/validity.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { aw as validityDiagnostics } from './codes-
|
|
2
|
-
import { F as Feature, b as FixedTypes } from './explain-
|
|
1
|
+
export { aw as validityDiagnostics } from './codes-AX8XkMNY.js';
|
|
2
|
+
import { F as Feature, b as FixedTypes } from './explain-BVE3ln3G.js';
|
|
3
3
|
|
|
4
4
|
/** Which rows the `validity` step keeps (§6.2). */
|
|
5
5
|
type ValidityState = 'all' | 'valid' | 'invalid';
|
package/dist/version.cjs
CHANGED
package/dist/version.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts","../package.json"],"sourcesContent":["// Read from package.json at build time (the bundler inlines the one field), so a release never\n// ships a stale hard-coded version.\nimport { version } from '../package.json'\n\n/** The `@datakable/core` version (`context.package`, docs URLs, the global version registry). */\nexport const VERSION: string = version\n","{\n \"name\": \"@datakable/core\",\n \"version\": \"2.0.
|
|
1
|
+
{"version":3,"sources":["../src/version.ts","../package.json"],"sourcesContent":["// Read from package.json at build time (the bundler inlines the one field), so a release never\n// ships a stale hard-coded version.\nimport { version } from '../package.json'\n\n/** The `@datakable/core` version (`context.package`, docs URLs, the global version registry). */\nexport const VERSION: string = version\n","{\n \"name\": \"@datakable/core\",\n \"version\": \"2.0.2\",\n \"description\": \"Headless, framework-agnostic core of DataKable — table state, sorting, filtering and types.\",\n \"license\": \"MIT\",\n \"author\": \"Supakit Kitjanabumrungsak\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/Ink01101011/datakable.git\",\n \"directory\": \"packages/core\"\n },\n \"homepage\": \"https://github.com/Ink01101011/datakable#readme\",\n \"bugs\": \"https://github.com/Ink01101011/datakable/issues\",\n \"keywords\": [\n \"react\",\n \"react-table\",\n \"datatable\",\n \"data-table\",\n \"data-grid\",\n \"datagrid\",\n \"table\",\n \"typescript\",\n \"type-safe\",\n \"headless\",\n \"headless-ui\",\n \"zero-config\",\n \"sorting\",\n \"filtering\",\n \"search\",\n \"pagination\",\n \"framework-agnostic\",\n \"vanilla-js\",\n \"table-state\"\n ],\n \"type\": \"module\",\n \"sideEffects\": [\n \"./dist/messages/index.js\",\n \"./dist/messages/index.cjs\",\n \"./dist/diagnostics/process-guard.js\",\n \"./dist/diagnostics/process-guard.cjs\"\n ],\n \"engines\": {\n \"node\": \">=18.18.0\"\n },\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"typesVersions\": {\n \"*\": {\n \"column-filters\": [\n \"./dist/column-filters.d.ts\"\n ],\n \"validity\": [\n \"./dist/validity.d.ts\"\n ],\n \"search\": [\n \"./dist/search.d.ts\"\n ],\n \"sorting\": [\n \"./dist/sorting.d.ts\"\n ],\n \"pagination\": [\n \"./dist/pagination.d.ts\"\n ],\n \"messages\": [\n \"./dist/messages.d.ts\"\n ],\n \"schema\": [\n \"./dist/schema.d.ts\"\n ],\n \"search-async\": [\n \"./dist/search-async.d.ts\"\n ],\n \"server\": [\n \"./dist/server.d.ts\"\n ]\n }\n },\n \"exports\": {\n \".\": {\n \"import\": {\n \"types\": \"./dist/index.d.ts\",\n \"default\": \"./dist/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/index.d.cts\",\n \"default\": \"./dist/index.cjs\"\n }\n },\n \"./column-filters\": {\n \"import\": {\n \"types\": \"./dist/column-filters.d.ts\",\n \"default\": \"./dist/features/column-filters/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/column-filters.d.cts\",\n \"default\": \"./dist/features/column-filters/index.cjs\"\n }\n },\n \"./validity\": {\n \"import\": {\n \"types\": \"./dist/validity.d.ts\",\n \"default\": \"./dist/features/validity/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/validity.d.cts\",\n \"default\": \"./dist/features/validity/index.cjs\"\n }\n },\n \"./search\": {\n \"import\": {\n \"types\": \"./dist/search.d.ts\",\n \"default\": \"./dist/features/search/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/search.d.cts\",\n \"default\": \"./dist/features/search/index.cjs\"\n }\n },\n \"./sorting\": {\n \"import\": {\n \"types\": \"./dist/sorting.d.ts\",\n \"default\": \"./dist/features/sorting/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/sorting.d.cts\",\n \"default\": \"./dist/features/sorting/index.cjs\"\n }\n },\n \"./pagination\": {\n \"import\": {\n \"types\": \"./dist/pagination.d.ts\",\n \"default\": \"./dist/features/pagination/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/pagination.d.cts\",\n \"default\": \"./dist/features/pagination/index.cjs\"\n }\n },\n \"./messages\": {\n \"import\": {\n \"types\": \"./dist/messages.d.ts\",\n \"default\": \"./dist/messages/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/messages.d.cts\",\n \"default\": \"./dist/messages/index.cjs\"\n }\n },\n \"./schema\": {\n \"import\": {\n \"types\": \"./dist/schema.d.ts\",\n \"default\": \"./dist/ingest/schema-entry.js\"\n },\n \"require\": {\n \"types\": \"./dist/schema.d.cts\",\n \"default\": \"./dist/ingest/schema-entry.cjs\"\n }\n },\n \"./search-async\": {\n \"import\": {\n \"types\": \"./dist/search-async.d.ts\",\n \"default\": \"./dist/features/search/search-async-entry.js\"\n },\n \"require\": {\n \"types\": \"./dist/search-async.d.cts\",\n \"default\": \"./dist/features/search/search-async-entry.cjs\"\n }\n },\n \"./server\": {\n \"import\": {\n \"types\": \"./dist/server.d.ts\",\n \"default\": \"./dist/source/server-entry.js\"\n },\n \"require\": {\n \"types\": \"./dist/server.d.cts\",\n \"default\": \"./dist/source/server-entry.cjs\"\n }\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\"\n ],\n \"scripts\": {\n \"build\": \"tsup && node scripts/postbuild.mjs\",\n \"dev\": \"tsup --watch\",\n \"typecheck\": \"tsc -p tsconfig.json\",\n \"check:pkg\": \"publint --strict && attw --pack . && node scripts/check-catalog.mjs\",\n \"check:catalog\": \"node scripts/check-catalog.mjs\"\n },\n \"dependencies\": {\n \"ex-search\": \"1.1.1\",\n \"exsorted\": \"1.2.3\",\n \"kk-debounce\": \"1.1.0\"\n },\n \"devDependencies\": {\n \"esbuild\": \"0.27.7\"\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEE,cAAW;;;ADGN,IAAM,UAAkB;","names":[]}
|
package/dist/version.js
CHANGED
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/version.ts"],"sourcesContent":["{\n \"name\": \"@datakable/core\",\n \"version\": \"2.0.
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/version.ts"],"sourcesContent":["{\n \"name\": \"@datakable/core\",\n \"version\": \"2.0.2\",\n \"description\": \"Headless, framework-agnostic core of DataKable — table state, sorting, filtering and types.\",\n \"license\": \"MIT\",\n \"author\": \"Supakit Kitjanabumrungsak\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/Ink01101011/datakable.git\",\n \"directory\": \"packages/core\"\n },\n \"homepage\": \"https://github.com/Ink01101011/datakable#readme\",\n \"bugs\": \"https://github.com/Ink01101011/datakable/issues\",\n \"keywords\": [\n \"react\",\n \"react-table\",\n \"datatable\",\n \"data-table\",\n \"data-grid\",\n \"datagrid\",\n \"table\",\n \"typescript\",\n \"type-safe\",\n \"headless\",\n \"headless-ui\",\n \"zero-config\",\n \"sorting\",\n \"filtering\",\n \"search\",\n \"pagination\",\n \"framework-agnostic\",\n \"vanilla-js\",\n \"table-state\"\n ],\n \"type\": \"module\",\n \"sideEffects\": [\n \"./dist/messages/index.js\",\n \"./dist/messages/index.cjs\",\n \"./dist/diagnostics/process-guard.js\",\n \"./dist/diagnostics/process-guard.cjs\"\n ],\n \"engines\": {\n \"node\": \">=18.18.0\"\n },\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"typesVersions\": {\n \"*\": {\n \"column-filters\": [\n \"./dist/column-filters.d.ts\"\n ],\n \"validity\": [\n \"./dist/validity.d.ts\"\n ],\n \"search\": [\n \"./dist/search.d.ts\"\n ],\n \"sorting\": [\n \"./dist/sorting.d.ts\"\n ],\n \"pagination\": [\n \"./dist/pagination.d.ts\"\n ],\n \"messages\": [\n \"./dist/messages.d.ts\"\n ],\n \"schema\": [\n \"./dist/schema.d.ts\"\n ],\n \"search-async\": [\n \"./dist/search-async.d.ts\"\n ],\n \"server\": [\n \"./dist/server.d.ts\"\n ]\n }\n },\n \"exports\": {\n \".\": {\n \"import\": {\n \"types\": \"./dist/index.d.ts\",\n \"default\": \"./dist/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/index.d.cts\",\n \"default\": \"./dist/index.cjs\"\n }\n },\n \"./column-filters\": {\n \"import\": {\n \"types\": \"./dist/column-filters.d.ts\",\n \"default\": \"./dist/features/column-filters/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/column-filters.d.cts\",\n \"default\": \"./dist/features/column-filters/index.cjs\"\n }\n },\n \"./validity\": {\n \"import\": {\n \"types\": \"./dist/validity.d.ts\",\n \"default\": \"./dist/features/validity/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/validity.d.cts\",\n \"default\": \"./dist/features/validity/index.cjs\"\n }\n },\n \"./search\": {\n \"import\": {\n \"types\": \"./dist/search.d.ts\",\n \"default\": \"./dist/features/search/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/search.d.cts\",\n \"default\": \"./dist/features/search/index.cjs\"\n }\n },\n \"./sorting\": {\n \"import\": {\n \"types\": \"./dist/sorting.d.ts\",\n \"default\": \"./dist/features/sorting/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/sorting.d.cts\",\n \"default\": \"./dist/features/sorting/index.cjs\"\n }\n },\n \"./pagination\": {\n \"import\": {\n \"types\": \"./dist/pagination.d.ts\",\n \"default\": \"./dist/features/pagination/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/pagination.d.cts\",\n \"default\": \"./dist/features/pagination/index.cjs\"\n }\n },\n \"./messages\": {\n \"import\": {\n \"types\": \"./dist/messages.d.ts\",\n \"default\": \"./dist/messages/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/messages.d.cts\",\n \"default\": \"./dist/messages/index.cjs\"\n }\n },\n \"./schema\": {\n \"import\": {\n \"types\": \"./dist/schema.d.ts\",\n \"default\": \"./dist/ingest/schema-entry.js\"\n },\n \"require\": {\n \"types\": \"./dist/schema.d.cts\",\n \"default\": \"./dist/ingest/schema-entry.cjs\"\n }\n },\n \"./search-async\": {\n \"import\": {\n \"types\": \"./dist/search-async.d.ts\",\n \"default\": \"./dist/features/search/search-async-entry.js\"\n },\n \"require\": {\n \"types\": \"./dist/search-async.d.cts\",\n \"default\": \"./dist/features/search/search-async-entry.cjs\"\n }\n },\n \"./server\": {\n \"import\": {\n \"types\": \"./dist/server.d.ts\",\n \"default\": \"./dist/source/server-entry.js\"\n },\n \"require\": {\n \"types\": \"./dist/server.d.cts\",\n \"default\": \"./dist/source/server-entry.cjs\"\n }\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\"\n ],\n \"scripts\": {\n \"build\": \"tsup && node scripts/postbuild.mjs\",\n \"dev\": \"tsup --watch\",\n \"typecheck\": \"tsc -p tsconfig.json\",\n \"check:pkg\": \"publint --strict && attw --pack . && node scripts/check-catalog.mjs\",\n \"check:catalog\": \"node scripts/check-catalog.mjs\"\n },\n \"dependencies\": {\n \"ex-search\": \"1.1.1\",\n \"exsorted\": \"1.2.3\",\n \"kk-debounce\": \"1.1.0\"\n },\n \"devDependencies\": {\n \"esbuild\": \"0.27.7\"\n }\n}\n","// Read from package.json at build time (the bundler inlines the one field), so a release never\n// ships a stale hard-coded version.\nimport { version } from '../package.json'\n\n/** The `@datakable/core` version (`context.package`, docs URLs, the global version registry). */\nexport const VERSION: string = version\n"],"mappings":";AAEE,cAAW;;;ACGN,IAAM,UAAkB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datakable/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Headless, framework-agnostic core of DataKable — table state, sorting, filtering and types.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Supakit Kitjanabumrungsak",
|
|
@@ -13,12 +13,24 @@
|
|
|
13
13
|
"bugs": "https://github.com/Ink01101011/datakable/issues",
|
|
14
14
|
"keywords": [
|
|
15
15
|
"react",
|
|
16
|
+
"react-table",
|
|
16
17
|
"datatable",
|
|
17
|
-
"table",
|
|
18
|
+
"data-table",
|
|
18
19
|
"data-grid",
|
|
20
|
+
"datagrid",
|
|
21
|
+
"table",
|
|
19
22
|
"typescript",
|
|
20
23
|
"type-safe",
|
|
21
|
-
"headless"
|
|
24
|
+
"headless",
|
|
25
|
+
"headless-ui",
|
|
26
|
+
"zero-config",
|
|
27
|
+
"sorting",
|
|
28
|
+
"filtering",
|
|
29
|
+
"search",
|
|
30
|
+
"pagination",
|
|
31
|
+
"framework-agnostic",
|
|
32
|
+
"vanilla-js",
|
|
33
|
+
"table-state"
|
|
22
34
|
],
|
|
23
35
|
"type": "module",
|
|
24
36
|
"sideEffects": [
|