diff --git a/ark/attest/package.json b/ark/attest/package.json index 934a1852c..70c2499b2 100644 --- a/ark/attest/package.json +++ b/ark/attest/package.json @@ -1,6 +1,6 @@ { "name": "@ark/attest", - "version": "0.31.0", + "version": "0.32.0", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/fs/package.json b/ark/fs/package.json index fed2fc30b..00f8194a3 100644 --- a/ark/fs/package.json +++ b/ark/fs/package.json @@ -1,6 +1,6 @@ { "name": "@ark/fs", - "version": "0.27.0", + "version": "0.28.0", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/schema/package.json b/ark/schema/package.json index 5f9d6d14c..cc765d349 100644 --- a/ark/schema/package.json +++ b/ark/schema/package.json @@ -1,6 +1,6 @@ { "name": "@ark/schema", - "version": "0.27.0", + "version": "0.28.0", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/type/attributes.ts b/ark/type/attributes.ts index 203cbb7bf..aa26dff79 100644 --- a/ark/type/attributes.ts +++ b/ark/type/attributes.ts @@ -1,14 +1,15 @@ import type { ArkError, ArkErrors, Morph } from "@ark/schema" -import type { - anyOrNever, - array, - Brand, - equals, - Hkt, - intersectArrays, - isSafelyMappable, - Primitive, - show +import { + noSuggest, + type anyOrNever, + type array, + type Brand, + type equals, + type Hkt, + type intersectArrays, + type isSafelyMappable, + type Primitive, + type show } from "@ark/util" import type { arkPrototypes } from "./keywords/constructors.ts" import type { type } from "./keywords/keywords.ts" @@ -202,10 +203,10 @@ export type inferMorphOut = Exclude< ArkError | ArkErrors > -declare const morphOutSymbol: unique symbol +const isMorphOutKey = noSuggest("isMorphOut") export interface Out { - [morphOutSymbol]: true + [isMorphOutKey]: true t: o introspectable: boolean } @@ -216,9 +217,9 @@ export interface To extends Out { export type InferredMorph = (In: i) => o -declare const defaultsTo: unique symbol +const defaultsToKey = noSuggest("defaultsTo") -export type Default = { [defaultsTo]: [t, v] } +export type Default = { [defaultsToKey]: [t, v] } // we have to distribute over morphs to preserve the i/o relationship // this avoids stuff like: diff --git a/ark/type/package.json b/ark/type/package.json index 5c7e01898..93bb398aa 100644 --- a/ark/type/package.json +++ b/ark/type/package.json @@ -1,7 +1,7 @@ { "name": "arktype", "description": "TypeScript's 1:1 validator, optimized from editor to runtime", - "version": "2.0.0-rc.27", + "version": "2.0.0-rc.28", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/util/package.json b/ark/util/package.json index 5965a14fe..cabc5410f 100644 --- a/ark/util/package.json +++ b/ark/util/package.json @@ -1,6 +1,6 @@ { "name": "@ark/util", - "version": "0.27.0", + "version": "0.28.0", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/util/registry.ts b/ark/util/registry.ts index 977b79b88..b4f9c89a3 100644 --- a/ark/util/registry.ts +++ b/ark/util/registry.ts @@ -7,7 +7,7 @@ import { FileConstructor, objectKindOf } from "./objectKinds.ts" // recent node versions (https://nodejs.org/api/esm.html#json-modules). // For now, we assert this matches the package.json version via a unit test. -export const arkUtilVersion = "0.27.0" +export const arkUtilVersion = "0.28.0" export const initialRegistryContents = { version: arkUtilVersion,