|
|
|
|
// Public surface of the sium artifact. The sub-barrels (`core`, `types`,
|
|
|
|
|
// `langs`) are already named — this file enumerates them at the top level for
|
|
|
|
|
// ergonomic single-import use. Consumers who want a tighter import surface
|
|
|
|
|
// can reach the sub-barrels directly via `$sium/core`, `$sium/types`,
|
|
|
|
|
// `$sium/langs`.
|
|
|
|
|
|
|
|
|
|
export { createEngineSium } from './engine-sium';
|
|
|
|
|
export type { EngineSium, EngineSiumOptions } from './engine-sium';
|
|
|
|
|
export { createSiumDiagnostics, emitSiumDiagnostic, issueDiagnosticMeta } from './diagnostics';
|
|
|
|
|
|
|
|
|
|
export { SIUM_MODULE, SIUM_DIAGNOSTIC_EVENTS } from './consts';
|
|
|
|
|
export {
|
|
|
|
|
SIUM_ERR,
|
|
|
|
|
SIUM_ERR_ASYNC_SCHEMA,
|
|
|
|
|
SIUM_ERR_DISCRIMINATED_UNION,
|
|
|
|
|
SIUM_ERR_DISCRIMINATED_UNION_MEMBER_MISSING_KEY,
|
|
|
|
|
SIUM_ERR_DISCRIMINATED_UNION_MEMBER_NOT_LITERAL,
|
|
|
|
|
SIUM_ERR_DISCRIMINATED_UNION_MEMBER_NOT_OBJECT,
|
|
|
|
|
SIUM_ERR_ENCODE,
|
|
|
|
|
SIUM_ERR_ENCODE_EXPECTS_ARRAY,
|
|
|
|
|
SIUM_ERR_ENCODE_EXPECTS_OBJECT,
|
|
|
|
|
SIUM_ERR_ENCODE_NO_MATCH,
|
|
|
|
|
SIUM_ERR_LAZY_RESOLVING,
|
feat(sium): audit cleanup + 2.0 (coercion, formats, combinators, object utils)
Audit: drop dead SIUM_ERRORS catalogue, no-op try/catch in refine steps, unused isPromiseLike/pathKeys re-export, ignored dateValue/timeValue opts; add a sync fast-path to ~standard.validate so sync schemas no longer force the async branch (+untrack workaround) in form/storage consumers; doc fixes ($lib alias, JSDoc, README).
2.0 (all on the s.* facade): coercion (coerceNumber/Boolean/String); string formats (uuid/slug/datetime/ipv4); numeric (finite/positive/nonnegative/multipleOf); transforms (trim/toLowerCase/toUpperCase) + nullish; combinators tuple/record (+ SchemaKind/SiumShape vocabulary + introspection); object utils pick/omit/partial/extend/merge (+ SiumObjectUtilError). 8 new issue codes with es/en.
398 -> 450 tests, 0 type errors, prettier clean. Updated arts/ diagnostics contract + sium README.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 months ago
|
|
|
SIUM_ERR_OBJECT_UTIL,
|
|
|
|
|
SIUM_ERR_VALIDATION,
|
|
|
|
|
SIUM_ERROR_MESSAGES,
|
|
|
|
|
SIUM_LOG_MSG_RESOLVE_FALLBACK,
|
|
|
|
|
SiumAsyncSchemaError,
|
|
|
|
|
SiumDiscriminatedUnionError,
|
|
|
|
|
SiumEncodeExpectsArrayError,
|
|
|
|
|
SiumEncodeExpectsObjectError,
|
|
|
|
|
SiumEncodeNoMatchError,
|
|
|
|
|
SiumLazyResolvingError,
|
feat(sium): audit cleanup + 2.0 (coercion, formats, combinators, object utils)
Audit: drop dead SIUM_ERRORS catalogue, no-op try/catch in refine steps, unused isPromiseLike/pathKeys re-export, ignored dateValue/timeValue opts; add a sync fast-path to ~standard.validate so sync schemas no longer force the async branch (+untrack workaround) in form/storage consumers; doc fixes ($lib alias, JSDoc, README).
2.0 (all on the s.* facade): coercion (coerceNumber/Boolean/String); string formats (uuid/slug/datetime/ipv4); numeric (finite/positive/nonnegative/multipleOf); transforms (trim/toLowerCase/toUpperCase) + nullish; combinators tuple/record (+ SchemaKind/SiumShape vocabulary + introspection); object utils pick/omit/partial/extend/merge (+ SiumObjectUtilError). 8 new issue codes with es/en.
398 -> 450 tests, 0 type errors, prettier clean. Updated arts/ diagnostics contract + sium README.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 months ago
|
|
|
SiumObjectUtilError,
|
|
|
|
|
SiumValidationError,
|
|
|
|
|
isSiumAsyncSchemaError,
|
|
|
|
|
isSiumDiscriminatedUnionError,
|
|
|
|
|
isSiumEncodeExpectsArrayError,
|
|
|
|
|
isSiumEncodeExpectsObjectError,
|
|
|
|
|
isSiumEncodeNoMatchError,
|
|
|
|
|
isSiumLazyResolvingError,
|
feat(sium): audit cleanup + 2.0 (coercion, formats, combinators, object utils)
Audit: drop dead SIUM_ERRORS catalogue, no-op try/catch in refine steps, unused isPromiseLike/pathKeys re-export, ignored dateValue/timeValue opts; add a sync fast-path to ~standard.validate so sync schemas no longer force the async branch (+untrack workaround) in form/storage consumers; doc fixes ($lib alias, JSDoc, README).
2.0 (all on the s.* facade): coercion (coerceNumber/Boolean/String); string formats (uuid/slug/datetime/ipv4); numeric (finite/positive/nonnegative/multipleOf); transforms (trim/toLowerCase/toUpperCase) + nullish; combinators tuple/record (+ SchemaKind/SiumShape vocabulary + introspection); object utils pick/omit/partial/extend/merge (+ SiumObjectUtilError). 8 new issue codes with es/en.
398 -> 450 tests, 0 type errors, prettier clean. Updated arts/ diagnostics contract + sium README.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 months ago
|
|
|
isSiumObjectUtilError,
|
|
|
|
|
isSiumValidationError
|
|
|
|
|
} from './errors';
|
|
|
|
|
export type { SiumDiscriminatedUnionFault } from './errors';
|
|
|
|
|
|
|
|
|
|
// core
|
|
|
|
|
export {
|
|
|
|
|
string,
|
|
|
|
|
number,
|
|
|
|
|
boolean,
|
|
|
|
|
literal,
|
|
|
|
|
enumOf,
|
|
|
|
|
optional,
|
|
|
|
|
nullable,
|
|
|
|
|
defaulted,
|
feat(sium): audit cleanup + 2.0 (coercion, formats, combinators, object utils)
Audit: drop dead SIUM_ERRORS catalogue, no-op try/catch in refine steps, unused isPromiseLike/pathKeys re-export, ignored dateValue/timeValue opts; add a sync fast-path to ~standard.validate so sync schemas no longer force the async branch (+untrack workaround) in form/storage consumers; doc fixes ($lib alias, JSDoc, README).
2.0 (all on the s.* facade): coercion (coerceNumber/Boolean/String); string formats (uuid/slug/datetime/ipv4); numeric (finite/positive/nonnegative/multipleOf); transforms (trim/toLowerCase/toUpperCase) + nullish; combinators tuple/record (+ SchemaKind/SiumShape vocabulary + introspection); object utils pick/omit/partial/extend/merge (+ SiumObjectUtilError). 8 new issue codes with es/en.
398 -> 450 tests, 0 type errors, prettier clean. Updated arts/ diagnostics contract + sium README.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 months ago
|
|
|
nullish,
|
|
|
|
|
object,
|
|
|
|
|
array,
|
|
|
|
|
union,
|
|
|
|
|
discriminated,
|
feat(sium): audit cleanup + 2.0 (coercion, formats, combinators, object utils)
Audit: drop dead SIUM_ERRORS catalogue, no-op try/catch in refine steps, unused isPromiseLike/pathKeys re-export, ignored dateValue/timeValue opts; add a sync fast-path to ~standard.validate so sync schemas no longer force the async branch (+untrack workaround) in form/storage consumers; doc fixes ($lib alias, JSDoc, README).
2.0 (all on the s.* facade): coercion (coerceNumber/Boolean/String); string formats (uuid/slug/datetime/ipv4); numeric (finite/positive/nonnegative/multipleOf); transforms (trim/toLowerCase/toUpperCase) + nullish; combinators tuple/record (+ SchemaKind/SiumShape vocabulary + introspection); object utils pick/omit/partial/extend/merge (+ SiumObjectUtilError). 8 new issue codes with es/en.
398 -> 450 tests, 0 type errors, prettier clean. Updated arts/ diagnostics contract + sium README.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 months ago
|
|
|
tuple,
|
|
|
|
|
record,
|
|
|
|
|
pick,
|
|
|
|
|
omit,
|
|
|
|
|
partial,
|
|
|
|
|
extend,
|
|
|
|
|
merge,
|
|
|
|
|
lazy,
|
|
|
|
|
serializeSchema,
|
|
|
|
|
countLeafFields,
|
|
|
|
|
walkSchema,
|
|
|
|
|
pipe,
|
|
|
|
|
refine,
|
|
|
|
|
transform,
|
|
|
|
|
codec,
|
|
|
|
|
meta,
|
feat(sium): audit cleanup + 2.0 (coercion, formats, combinators, object utils)
Audit: drop dead SIUM_ERRORS catalogue, no-op try/catch in refine steps, unused isPromiseLike/pathKeys re-export, ignored dateValue/timeValue opts; add a sync fast-path to ~standard.validate so sync schemas no longer force the async branch (+untrack workaround) in form/storage consumers; doc fixes ($lib alias, JSDoc, README).
2.0 (all on the s.* facade): coercion (coerceNumber/Boolean/String); string formats (uuid/slug/datetime/ipv4); numeric (finite/positive/nonnegative/multipleOf); transforms (trim/toLowerCase/toUpperCase) + nullish; combinators tuple/record (+ SchemaKind/SiumShape vocabulary + introspection); object utils pick/omit/partial/extend/merge (+ SiumObjectUtilError). 8 new issue codes with es/en.
398 -> 450 tests, 0 type errors, prettier clean. Updated arts/ diagnostics contract + sium README.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 months ago
|
|
|
trim,
|
|
|
|
|
toLowerCase,
|
|
|
|
|
toUpperCase,
|
|
|
|
|
min,
|
|
|
|
|
max,
|
|
|
|
|
length,
|
|
|
|
|
regex,
|
|
|
|
|
email,
|
|
|
|
|
url,
|
|
|
|
|
integer,
|
|
|
|
|
cssLength,
|
|
|
|
|
isCssLength,
|
|
|
|
|
CSS_LENGTH_REGEX
|
|
|
|
|
} from './core';
|
|
|
|
|
export type {
|
|
|
|
|
SerializedSchema,
|
|
|
|
|
SerializedShape,
|
|
|
|
|
StandardSchemaV1,
|
|
|
|
|
Schema,
|
|
|
|
|
Step,
|
|
|
|
|
Issue,
|
|
|
|
|
Result,
|
|
|
|
|
Ctx,
|
|
|
|
|
SchemaKind,
|
|
|
|
|
SchemaWrapper,
|
|
|
|
|
SchemaEffect,
|
|
|
|
|
SiumIntrospection,
|
|
|
|
|
SiumShape,
|
|
|
|
|
MetaAnnotations,
|
|
|
|
|
RefineFailure
|
|
|
|
|
} from './core';
|
|
|
|
|
|
|
|
|
|
// types (domain values)
|
|
|
|
|
export {
|
|
|
|
|
timeValue,
|
|
|
|
|
timeRange,
|
|
|
|
|
hour,
|
|
|
|
|
minute,
|
|
|
|
|
second,
|
|
|
|
|
dayPeriod,
|
|
|
|
|
dateValue,
|
|
|
|
|
dateRange,
|
|
|
|
|
year,
|
|
|
|
|
month,
|
|
|
|
|
day,
|
|
|
|
|
coerceDate,
|
|
|
|
|
colorValue,
|
|
|
|
|
red,
|
|
|
|
|
green,
|
|
|
|
|
blue,
|
|
|
|
|
hue,
|
|
|
|
|
saturation,
|
|
|
|
|
lightness,
|
|
|
|
|
brightness,
|
|
|
|
|
alpha,
|
|
|
|
|
cssValue,
|
|
|
|
|
parseCssValue,
|
|
|
|
|
formatCssValue,
|
|
|
|
|
isCssValue,
|
|
|
|
|
CSS_UNITS,
|
|
|
|
|
CSS_LENGTH_UNITS,
|
|
|
|
|
CSS_ANGLE_UNITS,
|
|
|
|
|
CSS_TIME_UNITS,
|
|
|
|
|
CSS_RESOLUTION_UNITS,
|
|
|
|
|
CSS_FREQUENCY_UNITS,
|
|
|
|
|
CSS_FLEX_UNITS
|
|
|
|
|
} from './types';
|
feat(sium): audit cleanup + 2.0 (coercion, formats, combinators, object utils)
Audit: drop dead SIUM_ERRORS catalogue, no-op try/catch in refine steps, unused isPromiseLike/pathKeys re-export, ignored dateValue/timeValue opts; add a sync fast-path to ~standard.validate so sync schemas no longer force the async branch (+untrack workaround) in form/storage consumers; doc fixes ($lib alias, JSDoc, README).
2.0 (all on the s.* facade): coercion (coerceNumber/Boolean/String); string formats (uuid/slug/datetime/ipv4); numeric (finite/positive/nonnegative/multipleOf); transforms (trim/toLowerCase/toUpperCase) + nullish; combinators tuple/record (+ SchemaKind/SiumShape vocabulary + introspection); object utils pick/omit/partial/extend/merge (+ SiumObjectUtilError). 8 new issue codes with es/en.
398 -> 450 tests, 0 type errors, prettier clean. Updated arts/ diagnostics contract + sium README.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 months ago
|
|
|
export type { CssUnit, CssValueParts, CssDimension, CssKeyword, CssValueOptions } from './types';
|
|
|
|
|
|
|
|
|
|
// langs
|
|
|
|
|
export { ISSUE_CODES, resolve, siumLangs } from './langs';
|
|
|
|
|
export type { IssueCode } from './langs';
|
|
|
|
|
export type {
|
|
|
|
|
SiumDiagnosticEvent,
|
|
|
|
|
SiumDiagnosticMeta,
|
|
|
|
|
SiumDiagnostics,
|
|
|
|
|
SiumDiagnosticType
|
|
|
|
|
} from './diagnostics';
|