From 417f76fdec6a5ec6e6015c1a59edf84487047041 Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Fri, 6 Jan 2023 15:03:08 -0700 Subject: [PATCH 1/8] chore: replace imports with absolute imports --- jest.config.js | 4 + scripts/generate-schemables.ts | 17 +-- scripts/generate-schemata.ts | 10 +- src/Arbitrary.ts | 38 +++---- src/Codec.ts | 12 +- src/Decoder.ts | 38 +++---- src/Encoder.ts | 38 +++---- src/Eq.ts | 38 +++---- src/Guard.ts | 38 +++---- src/JsonDeserializer.ts | 7 +- src/JsonSchema.ts | 38 +++---- src/JsonSerializer.ts | 11 +- src/PatternBuilder.ts | 3 +- src/Printer.ts | 38 +++---- src/SchemaExt.ts | 3 +- src/SchemableExt.ts | 33 +++--- src/TaskDecoder.ts | 38 +++---- src/Type.ts | 38 +++---- src/base/ArbitraryBase.ts | 3 +- src/base/EncoderBase.ts | 3 +- src/base/JsonSchemaBase.ts | 5 +- src/base/PrinterBase.ts | 9 +- src/base/SchemaBase.ts | 5 +- src/index.ts | 2 +- .../WithAnnotate/instances/arbitrary.ts | 5 +- .../WithAnnotate/instances/decoder.ts | 5 +- .../WithAnnotate/instances/encoder.ts | 5 +- src/schemables/WithAnnotate/instances/eq.ts | 3 +- .../WithAnnotate/instances/guard.ts | 5 +- .../WithAnnotate/instances/json-schema.ts | 4 +- .../WithAnnotate/instances/printer.ts | 5 +- .../WithAnnotate/instances/schema.ts | 2 +- .../WithAnnotate/instances/task-decoder.ts | 5 +- src/schemables/WithAnnotate/instances/type.ts | 5 +- .../WithBrand/instances/arbitrary.ts | 5 +- src/schemables/WithBrand/instances/decoder.ts | 5 +- src/schemables/WithBrand/instances/encoder.ts | 5 +- src/schemables/WithBrand/instances/eq.ts | 3 +- src/schemables/WithBrand/instances/guard.ts | 5 +- .../WithBrand/instances/json-schema.ts | 5 +- src/schemables/WithBrand/instances/printer.ts | 5 +- src/schemables/WithBrand/instances/schema.ts | 3 +- .../WithBrand/instances/task-decoder.ts | 5 +- src/schemables/WithBrand/instances/type.ts | 5 +- .../WithCheckDigit/instances/arbitrary.ts | 13 ++- .../WithCheckDigit/instances/decoder.ts | 13 ++- .../WithCheckDigit/instances/encoder.ts | 5 +- src/schemables/WithCheckDigit/instances/eq.ts | 3 +- .../WithCheckDigit/instances/guard.ts | 10 +- .../WithCheckDigit/instances/json-schema.ts | 5 +- .../WithCheckDigit/instances/printer.ts | 5 +- .../WithCheckDigit/instances/schema.ts | 5 +- .../WithCheckDigit/instances/task-decoder.ts | 13 ++- .../WithCheckDigit/instances/type.ts | 10 +- .../WithDate/instances/arbitrary.ts | 6 +- src/schemables/WithDate/instances/decoder.ts | 7 +- src/schemables/WithDate/instances/encoder.ts | 3 +- src/schemables/WithDate/instances/eq.ts | 3 +- src/schemables/WithDate/instances/guard.ts | 5 +- .../WithDate/instances/json-schema.ts | 4 +- src/schemables/WithDate/instances/printer.ts | 9 +- src/schemables/WithDate/instances/schema.ts | 6 +- .../WithDate/instances/task-decoder.ts | 5 +- src/schemables/WithDate/instances/type.ts | 5 +- .../WithFloat/instances/arbitrary.ts | 6 +- src/schemables/WithFloat/instances/decoder.ts | 5 +- src/schemables/WithFloat/instances/encoder.ts | 3 +- src/schemables/WithFloat/instances/eq.ts | 3 +- src/schemables/WithFloat/instances/guard.ts | 5 +- .../WithFloat/instances/json-schema.ts | 4 +- src/schemables/WithFloat/instances/printer.ts | 4 +- src/schemables/WithFloat/instances/schema.ts | 6 +- .../WithFloat/instances/task-decoder.ts | 5 +- src/schemables/WithFloat/instances/type.ts | 5 +- src/schemables/WithFloat/utils.ts | 2 +- src/schemables/WithInt/instances/arbitrary.ts | 6 +- src/schemables/WithInt/instances/decoder.ts | 5 +- src/schemables/WithInt/instances/encoder.ts | 3 +- src/schemables/WithInt/instances/eq.ts | 3 +- src/schemables/WithInt/instances/guard.ts | 5 +- .../WithInt/instances/json-schema.ts | 4 +- src/schemables/WithInt/instances/printer.ts | 4 +- src/schemables/WithInt/instances/schema.ts | 6 +- .../WithInt/instances/task-decoder.ts | 5 +- src/schemables/WithInt/instances/type.ts | 5 +- src/schemables/WithInt/utils.ts | 2 +- src/schemables/WithInvariant/definition.ts | 3 +- .../WithInvariant/instances/arbitrary.ts | 4 +- .../WithInvariant/instances/decoder.ts | 5 +- .../WithInvariant/instances/encoder.ts | 5 +- src/schemables/WithInvariant/instances/eq.ts | 4 +- .../WithInvariant/instances/guard.ts | 4 +- .../WithInvariant/instances/json-schema.ts | 5 +- .../WithInvariant/instances/printer.ts | 5 +- .../WithInvariant/instances/schema.ts | 6 +- .../WithInvariant/instances/task-decoder.ts | 5 +- .../WithInvariant/instances/type.ts | 5 +- src/schemables/WithJson/definition.ts | 3 +- .../WithJson/instances/arbitrary.ts | 7 +- src/schemables/WithJson/instances/decoder.ts | 6 +- src/schemables/WithJson/instances/encoder.ts | 5 +- src/schemables/WithJson/instances/eq.ts | 7 +- src/schemables/WithJson/instances/guard.ts | 7 +- .../WithJson/instances/json-schema.ts | 4 +- src/schemables/WithJson/instances/printer.ts | 5 +- src/schemables/WithJson/instances/schema.ts | 6 +- .../WithJson/instances/task-decoder.ts | 6 +- src/schemables/WithJson/instances/type.ts | 9 +- src/schemables/WithMap/instances/arbitrary.ts | 5 +- src/schemables/WithMap/instances/decoder.ts | 3 +- src/schemables/WithMap/instances/encoder.ts | 3 +- src/schemables/WithMap/instances/eq.ts | 3 +- src/schemables/WithMap/instances/guard.ts | 3 +- .../WithMap/instances/json-schema.ts | 4 +- src/schemables/WithMap/instances/printer.ts | 7 +- src/schemables/WithMap/instances/schema.ts | 3 +- .../WithMap/instances/task-decoder.ts | 3 +- src/schemables/WithMap/instances/type.ts | 7 +- .../WithOption/instances/arbitrary.ts | 4 +- .../WithOption/instances/decoder.ts | 3 +- .../WithOption/instances/encoder.ts | 3 +- src/schemables/WithOption/instances/eq.ts | 3 +- src/schemables/WithOption/instances/guard.ts | 3 +- .../WithOption/instances/json-schema.ts | 4 +- .../WithOption/instances/printer.ts | 5 +- src/schemables/WithOption/instances/schema.ts | 6 +- .../WithOption/instances/task-decoder.ts | 3 +- src/schemables/WithOption/instances/type.ts | 7 +- .../WithOptional/instances/arbitrary.ts | 4 +- .../WithOptional/instances/decoder.ts | 4 +- .../WithOptional/instances/encoder.ts | 4 +- src/schemables/WithOptional/instances/eq.ts | 3 +- .../WithOptional/instances/guard.ts | 4 +- .../WithOptional/instances/json-schema.ts | 4 +- .../WithOptional/instances/printer.ts | 7 +- .../WithOptional/instances/schema.ts | 6 +- .../WithOptional/instances/task-decoder.ts | 4 +- src/schemables/WithOptional/instances/type.ts | 9 +- .../WithPadding/instances/arbitrary.ts | 12 +- .../WithPadding/instances/decoder.ts | 5 +- .../WithPadding/instances/encoder.ts | 3 +- src/schemables/WithPadding/instances/eq.ts | 3 +- src/schemables/WithPadding/instances/guard.ts | 5 +- .../WithPadding/instances/json-schema.ts | 7 +- .../WithPadding/instances/printer.ts | 6 +- .../WithPadding/instances/schema.ts | 6 +- .../WithPadding/instances/task-decoder.ts | 5 +- src/schemables/WithPadding/instances/type.ts | 5 +- src/schemables/WithPadding/utils.ts | 2 +- src/schemables/WithPattern/definition.ts | 3 +- .../WithPattern/instances/arbitrary.ts | 9 +- .../WithPattern/instances/decoder.ts | 6 +- .../WithPattern/instances/encoder.ts | 3 +- src/schemables/WithPattern/instances/eq.ts | 4 +- src/schemables/WithPattern/instances/guard.ts | 6 +- .../WithPattern/instances/json-schema.ts | 7 +- .../WithPattern/instances/printer.ts | 9 +- .../WithPattern/instances/schema.ts | 6 +- .../WithPattern/instances/task-decoder.ts | 6 +- src/schemables/WithPattern/instances/type.ts | 7 +- src/schemables/WithPattern/utils.ts | 4 +- .../WithRefine/instances/arbitrary.ts | 2 +- .../WithRefine/instances/decoder.ts | 2 +- .../WithRefine/instances/encoder.ts | 3 +- src/schemables/WithRefine/instances/eq.ts | 2 +- src/schemables/WithRefine/instances/guard.ts | 2 +- .../WithRefine/instances/json-schema.ts | 5 +- .../WithRefine/instances/printer.ts | 4 +- src/schemables/WithRefine/instances/schema.ts | 6 +- .../WithRefine/instances/task-decoder.ts | 2 +- src/schemables/WithRefine/instances/type.ts | 2 +- .../instances/arbitrary.ts | 2 +- .../instances/decoder.ts | 2 +- .../instances/encoder.ts | 3 +- .../WithUnknownContainers/instances/eq.ts | 2 +- .../WithUnknownContainers/instances/guard.ts | 2 +- .../instances/json-schema.ts | 4 +- .../instances/printer.ts | 4 +- .../WithUnknownContainers/instances/schema.ts | 6 +- .../instances/task-decoder.ts | 2 +- .../WithUnknownContainers/instances/type.ts | 2 +- src/schemata.ts | 104 +++++++++--------- src/schemata/boolean/BooleanFromNumber.ts | 3 +- src/schemata/boolean/BooleanFromString.ts | 5 +- src/schemata/date/DateFromInt.ts | 7 +- src/schemata/date/DateFromIsoString.ts | 9 +- src/schemata/date/DateFromUnixTime.ts | 7 +- src/schemata/generic/NonEmptyArray.ts | 3 +- src/schemata/generic/OptionFromNullable.ts | 7 +- src/schemata/generic/OptionFromUndefined.ts | 7 +- src/schemata/json/JsonFromString.ts | 7 +- src/schemata/number/BigIntFromString.ts | 5 +- src/schemata/number/FloatFromString.ts | 9 +- src/schemata/number/IntFromString.ts | 9 +- src/schemata/number/Natural.ts | 3 +- src/schemata/number/NegativeFloat.ts | 3 +- src/schemata/number/NegativeInt.ts | 3 +- src/schemata/number/NonNegativeFloat.ts | 3 +- src/schemata/number/NonPositiveFloat.ts | 3 +- src/schemata/number/NonPositiveInt.ts | 3 +- src/schemata/number/PositiveFloat.ts | 3 +- src/schemata/number/PositiveInt.ts | 3 +- src/schemata/string/Ascii.ts | 5 +- src/schemata/string/Base64.ts | 5 +- src/schemata/string/Base64Url.ts | 5 +- src/schemata/string/BitcoinAddress.ts | 5 +- src/schemata/string/CreditCard.ts | 7 +- src/schemata/string/EmailAddress.ts | 5 +- src/schemata/string/EthereumAddress.ts | 5 +- src/schemata/string/HexColor.ts | 5 +- src/schemata/string/Hexadecimal.ts | 5 +- src/schemata/string/HslColor.ts | 5 +- src/schemata/string/Jwt.ts | 7 +- src/schemata/string/LatLong.ts | 5 +- src/schemata/string/NonEmptyString.ts | 3 +- src/schemata/string/RGB.ts | 5 +- src/schemata/string/UUID.ts | 5 +- tsconfig.json | 6 +- 218 files changed, 706 insertions(+), 808 deletions(-) diff --git a/jest.config.js b/jest.config.js index 39cf21f3..9ee13e4e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -11,4 +11,8 @@ module.exports = { statements: 100, }, }, + moduleNameMapper: { + '^schemata-ts$': '/src/index.ts', + '^schemata-ts/(.*)$': '/src/$1', + }, } diff --git a/scripts/generate-schemables.ts b/scripts/generate-schemables.ts index 60698533..cbddb490 100644 --- a/scripts/generate-schemables.ts +++ b/scripts/generate-schemables.ts @@ -104,7 +104,10 @@ const makeSchemableExtContents: ( schemableExtHeaderComment, makeDestructureImport(['URIS', 'URIS2'], 'fp-ts/HKT'), makeDestructureImport(['Schemable1', 'Schemable2C'], 'io-ts/Schemable'), - makeDestructureImport(['Schemable2', 'SchemableHKT2'], './base/SchemableBase'), + makeDestructureImport( + ['Schemable2', 'SchemableHKT2'], + 'schemata-ts/base/SchemableBase', + ), ...pipe( schemables, RA.map(([schemable, path]) => @@ -184,7 +187,7 @@ const makeInstanceTypeExport: (tc: SchemableTypeclasses) => ts.ExportDeclaration true, ), ]), - _.createStringLiteral(`./base/${typeclassName}Base`), + _.createStringLiteral(`schemata-ts/base/${typeclassName}Base`), undefined, ) @@ -283,15 +286,15 @@ const makeSchemableInstanceModuleContents: ( return pipe( [ moduleHeaderComment(module, sinceVersion), - makeModuleStarImport(accessor, `./base/${module}Base`), - makeDestructureImport([schemableInstance], './SchemableExt'), - makeDestructureImport(['interpret'], './SchemaExt'), + makeModuleStarImport(accessor, `schemata-ts/base/${module}Base`), + makeDestructureImport([schemableInstance], 'schemata-ts/SchemableExt'), + makeDestructureImport(['interpret'], 'schemata-ts/SchemaExt'), ...pipe( schemables, RA.map(([schemable]) => makeModuleStarImport( schemable, - `./schemables/${schemable}/instances/${lowercaseModule}`, + `schemata-ts/schemables/${schemable}/instances/${lowercaseModule}`, ), ), ), @@ -346,7 +349,7 @@ const getSchemables: Build> = C => TE.map( RA.map(fileName => { const schemable = getSchemableName(fileName) - return tuple(schemable, `./schemables/${schemable}`) + return tuple(schemable, `schemata-ts/schemables/${schemable}`) }), ), ) diff --git a/scripts/generate-schemata.ts b/scripts/generate-schemata.ts index 99614d3d..6ddb4217 100644 --- a/scripts/generate-schemata.ts +++ b/scripts/generate-schemata.ts @@ -73,7 +73,7 @@ const makeSchemableSchemaExport = ([ false, ), ]), - _.createStringLiteral(`./schemables/${nameWith}/instances/schema`), + _.createStringLiteral(`schemata-ts/schemables/${nameWith}/instances/schema`), undefined, ) @@ -93,7 +93,7 @@ const makeSchemaExport = ( true, ), ]), - _.createStringLiteral(`./schemata/${category}/${name}`), + _.createStringLiteral(`schemata-ts/schemata/${category}/${name}`), undefined, ) @@ -120,7 +120,7 @@ const typeUtilityReexports = _.createExportDeclaration( true, ), ]), - _.createStringLiteral('./SchemaExt'), + _.createStringLiteral('schemata-ts/SchemaExt'), undefined, ) @@ -149,7 +149,7 @@ const makeSchemaExportsFile: ( undefined, false, undefined, - _.createStringLiteral('./base/SchemaBase'), + _.createStringLiteral('schemata-ts/base/SchemaBase'), undefined, ), _.createJSDocComment('schemables'), @@ -227,7 +227,7 @@ const getSchemables: Build> = C => TE.map( RA.map(file => { const schemable = getSchemableName(file) - return tuple(schemable, schemable.slice(4), `./schemables/${schemable}`) + return tuple(schemable, schemable.slice(4), `schemata-ts/schemables/${schemable}`) }), ), TE.chain( diff --git a/src/Arbitrary.ts b/src/Arbitrary.ts index b27ee71e..0547a356 100644 --- a/src/Arbitrary.ts +++ b/src/Arbitrary.ts @@ -5,31 +5,31 @@ * * @since 1.0.0 */ -import * as Arb from './base/ArbitraryBase' -import { SchemableExt1 } from './SchemableExt' -import * as WithAnnotate from './schemables/WithAnnotate/instances/arbitrary' -import * as WithBrand from './schemables/WithBrand/instances/arbitrary' -import * as WithCheckDigit from './schemables/WithCheckDigit/instances/arbitrary' -import * as WithDate from './schemables/WithDate/instances/arbitrary' -import * as WithFloat from './schemables/WithFloat/instances/arbitrary' -import * as WithInt from './schemables/WithInt/instances/arbitrary' -import * as WithInvariant from './schemables/WithInvariant/instances/arbitrary' -import * as WithJson from './schemables/WithJson/instances/arbitrary' -import * as WithMap from './schemables/WithMap/instances/arbitrary' -import * as WithOption from './schemables/WithOption/instances/arbitrary' -import * as WithOptional from './schemables/WithOptional/instances/arbitrary' -import * as WithPadding from './schemables/WithPadding/instances/arbitrary' -import * as WithPattern from './schemables/WithPattern/instances/arbitrary' -import * as WithRefine from './schemables/WithRefine/instances/arbitrary' -import * as WithUnknownContainers from './schemables/WithUnknownContainers/instances/arbitrary' -import { interpret } from './SchemaExt' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { SchemableExt1 } from 'schemata-ts/SchemableExt' +import * as WithAnnotate from 'schemata-ts/schemables/WithAnnotate/instances/arbitrary' +import * as WithBrand from 'schemata-ts/schemables/WithBrand/instances/arbitrary' +import * as WithCheckDigit from 'schemata-ts/schemables/WithCheckDigit/instances/arbitrary' +import * as WithDate from 'schemata-ts/schemables/WithDate/instances/arbitrary' +import * as WithFloat from 'schemata-ts/schemables/WithFloat/instances/arbitrary' +import * as WithInt from 'schemata-ts/schemables/WithInt/instances/arbitrary' +import * as WithInvariant from 'schemata-ts/schemables/WithInvariant/instances/arbitrary' +import * as WithJson from 'schemata-ts/schemables/WithJson/instances/arbitrary' +import * as WithMap from 'schemata-ts/schemables/WithMap/instances/arbitrary' +import * as WithOption from 'schemata-ts/schemables/WithOption/instances/arbitrary' +import * as WithOptional from 'schemata-ts/schemables/WithOptional/instances/arbitrary' +import * as WithPadding from 'schemata-ts/schemables/WithPadding/instances/arbitrary' +import * as WithPattern from 'schemata-ts/schemables/WithPattern/instances/arbitrary' +import * as WithRefine from 'schemata-ts/schemables/WithRefine/instances/arbitrary' +import * as WithUnknownContainers from 'schemata-ts/schemables/WithUnknownContainers/instances/arbitrary' +import { interpret } from 'schemata-ts/SchemaExt' export type { /** * @since 1.0.0 * @category Model */ Arbitrary, -} from './base/ArbitraryBase' +} from 'schemata-ts/base/ArbitraryBase' /** * @since 1.0.0 diff --git a/src/Codec.ts b/src/Codec.ts index b2516e8e..d0196d6a 100644 --- a/src/Codec.ts +++ b/src/Codec.ts @@ -87,12 +87,12 @@ * E.right(testUsers), * ) */ -import { Decoder, getDecoder } from './Decoder' -import { Encoder, getEncoder } from './Encoder' -import { getGuard, Guard } from './Guard' -import { getJsonDeserializer, JsonDeserializer } from './JsonDeserializer' -import { getJsonSerializer, JsonSerializer } from './JsonSerializer' -import { SchemaExt } from './SchemaExt' +import { Decoder, getDecoder } from 'schemata-ts/Decoder' +import { Encoder, getEncoder } from 'schemata-ts/Encoder' +import { getGuard, Guard } from 'schemata-ts/Guard' +import { getJsonDeserializer, JsonDeserializer } from 'schemata-ts/JsonDeserializer' +import { getJsonSerializer, JsonSerializer } from 'schemata-ts/JsonSerializer' +import { SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.1 diff --git a/src/Decoder.ts b/src/Decoder.ts index e2b2ae0e..520db7c4 100644 --- a/src/Decoder.ts +++ b/src/Decoder.ts @@ -5,31 +5,31 @@ * * @since 1.0.0 */ -import * as D from './base/DecoderBase' -import { SchemableExt2C } from './SchemableExt' -import * as WithAnnotate from './schemables/WithAnnotate/instances/decoder' -import * as WithBrand from './schemables/WithBrand/instances/decoder' -import * as WithCheckDigit from './schemables/WithCheckDigit/instances/decoder' -import * as WithDate from './schemables/WithDate/instances/decoder' -import * as WithFloat from './schemables/WithFloat/instances/decoder' -import * as WithInt from './schemables/WithInt/instances/decoder' -import * as WithInvariant from './schemables/WithInvariant/instances/decoder' -import * as WithJson from './schemables/WithJson/instances/decoder' -import * as WithMap from './schemables/WithMap/instances/decoder' -import * as WithOption from './schemables/WithOption/instances/decoder' -import * as WithOptional from './schemables/WithOptional/instances/decoder' -import * as WithPadding from './schemables/WithPadding/instances/decoder' -import * as WithPattern from './schemables/WithPattern/instances/decoder' -import * as WithRefine from './schemables/WithRefine/instances/decoder' -import * as WithUnknownContainers from './schemables/WithUnknownContainers/instances/decoder' -import { interpret } from './SchemaExt' +import * as D from 'schemata-ts/base/DecoderBase' +import { SchemableExt2C } from 'schemata-ts/SchemableExt' +import * as WithAnnotate from 'schemata-ts/schemables/WithAnnotate/instances/decoder' +import * as WithBrand from 'schemata-ts/schemables/WithBrand/instances/decoder' +import * as WithCheckDigit from 'schemata-ts/schemables/WithCheckDigit/instances/decoder' +import * as WithDate from 'schemata-ts/schemables/WithDate/instances/decoder' +import * as WithFloat from 'schemata-ts/schemables/WithFloat/instances/decoder' +import * as WithInt from 'schemata-ts/schemables/WithInt/instances/decoder' +import * as WithInvariant from 'schemata-ts/schemables/WithInvariant/instances/decoder' +import * as WithJson from 'schemata-ts/schemables/WithJson/instances/decoder' +import * as WithMap from 'schemata-ts/schemables/WithMap/instances/decoder' +import * as WithOption from 'schemata-ts/schemables/WithOption/instances/decoder' +import * as WithOptional from 'schemata-ts/schemables/WithOptional/instances/decoder' +import * as WithPadding from 'schemata-ts/schemables/WithPadding/instances/decoder' +import * as WithPattern from 'schemata-ts/schemables/WithPattern/instances/decoder' +import * as WithRefine from 'schemata-ts/schemables/WithRefine/instances/decoder' +import * as WithUnknownContainers from 'schemata-ts/schemables/WithUnknownContainers/instances/decoder' +import { interpret } from 'schemata-ts/SchemaExt' export type { /** * @since 1.0.0 * @category Model */ Decoder, -} from './base/DecoderBase' +} from 'schemata-ts/base/DecoderBase' /** * @since 1.0.0 diff --git a/src/Encoder.ts b/src/Encoder.ts index ae2956ec..cb4f6449 100644 --- a/src/Encoder.ts +++ b/src/Encoder.ts @@ -5,31 +5,31 @@ * * @since 1.0.0 */ -import * as Enc from './base/EncoderBase' -import { SchemableExt2 } from './SchemableExt' -import * as WithAnnotate from './schemables/WithAnnotate/instances/encoder' -import * as WithBrand from './schemables/WithBrand/instances/encoder' -import * as WithCheckDigit from './schemables/WithCheckDigit/instances/encoder' -import * as WithDate from './schemables/WithDate/instances/encoder' -import * as WithFloat from './schemables/WithFloat/instances/encoder' -import * as WithInt from './schemables/WithInt/instances/encoder' -import * as WithInvariant from './schemables/WithInvariant/instances/encoder' -import * as WithJson from './schemables/WithJson/instances/encoder' -import * as WithMap from './schemables/WithMap/instances/encoder' -import * as WithOption from './schemables/WithOption/instances/encoder' -import * as WithOptional from './schemables/WithOptional/instances/encoder' -import * as WithPadding from './schemables/WithPadding/instances/encoder' -import * as WithPattern from './schemables/WithPattern/instances/encoder' -import * as WithRefine from './schemables/WithRefine/instances/encoder' -import * as WithUnknownContainers from './schemables/WithUnknownContainers/instances/encoder' -import { interpret } from './SchemaExt' +import * as Enc from 'schemata-ts/base/EncoderBase' +import { SchemableExt2 } from 'schemata-ts/SchemableExt' +import * as WithAnnotate from 'schemata-ts/schemables/WithAnnotate/instances/encoder' +import * as WithBrand from 'schemata-ts/schemables/WithBrand/instances/encoder' +import * as WithCheckDigit from 'schemata-ts/schemables/WithCheckDigit/instances/encoder' +import * as WithDate from 'schemata-ts/schemables/WithDate/instances/encoder' +import * as WithFloat from 'schemata-ts/schemables/WithFloat/instances/encoder' +import * as WithInt from 'schemata-ts/schemables/WithInt/instances/encoder' +import * as WithInvariant from 'schemata-ts/schemables/WithInvariant/instances/encoder' +import * as WithJson from 'schemata-ts/schemables/WithJson/instances/encoder' +import * as WithMap from 'schemata-ts/schemables/WithMap/instances/encoder' +import * as WithOption from 'schemata-ts/schemables/WithOption/instances/encoder' +import * as WithOptional from 'schemata-ts/schemables/WithOptional/instances/encoder' +import * as WithPadding from 'schemata-ts/schemables/WithPadding/instances/encoder' +import * as WithPattern from 'schemata-ts/schemables/WithPattern/instances/encoder' +import * as WithRefine from 'schemata-ts/schemables/WithRefine/instances/encoder' +import * as WithUnknownContainers from 'schemata-ts/schemables/WithUnknownContainers/instances/encoder' +import { interpret } from 'schemata-ts/SchemaExt' export type { /** * @since 1.0.0 * @category Model */ Encoder, -} from './base/EncoderBase' +} from 'schemata-ts/base/EncoderBase' /** * @since 1.0.0 diff --git a/src/Eq.ts b/src/Eq.ts index 3aea1118..5fc419ed 100644 --- a/src/Eq.ts +++ b/src/Eq.ts @@ -5,31 +5,31 @@ * * @since 1.0.0 */ -import * as Eq from './base/EqBase' -import { SchemableExt1 } from './SchemableExt' -import * as WithAnnotate from './schemables/WithAnnotate/instances/eq' -import * as WithBrand from './schemables/WithBrand/instances/eq' -import * as WithCheckDigit from './schemables/WithCheckDigit/instances/eq' -import * as WithDate from './schemables/WithDate/instances/eq' -import * as WithFloat from './schemables/WithFloat/instances/eq' -import * as WithInt from './schemables/WithInt/instances/eq' -import * as WithInvariant from './schemables/WithInvariant/instances/eq' -import * as WithJson from './schemables/WithJson/instances/eq' -import * as WithMap from './schemables/WithMap/instances/eq' -import * as WithOption from './schemables/WithOption/instances/eq' -import * as WithOptional from './schemables/WithOptional/instances/eq' -import * as WithPadding from './schemables/WithPadding/instances/eq' -import * as WithPattern from './schemables/WithPattern/instances/eq' -import * as WithRefine from './schemables/WithRefine/instances/eq' -import * as WithUnknownContainers from './schemables/WithUnknownContainers/instances/eq' -import { interpret } from './SchemaExt' +import * as Eq from 'schemata-ts/base/EqBase' +import { SchemableExt1 } from 'schemata-ts/SchemableExt' +import * as WithAnnotate from 'schemata-ts/schemables/WithAnnotate/instances/eq' +import * as WithBrand from 'schemata-ts/schemables/WithBrand/instances/eq' +import * as WithCheckDigit from 'schemata-ts/schemables/WithCheckDigit/instances/eq' +import * as WithDate from 'schemata-ts/schemables/WithDate/instances/eq' +import * as WithFloat from 'schemata-ts/schemables/WithFloat/instances/eq' +import * as WithInt from 'schemata-ts/schemables/WithInt/instances/eq' +import * as WithInvariant from 'schemata-ts/schemables/WithInvariant/instances/eq' +import * as WithJson from 'schemata-ts/schemables/WithJson/instances/eq' +import * as WithMap from 'schemata-ts/schemables/WithMap/instances/eq' +import * as WithOption from 'schemata-ts/schemables/WithOption/instances/eq' +import * as WithOptional from 'schemata-ts/schemables/WithOptional/instances/eq' +import * as WithPadding from 'schemata-ts/schemables/WithPadding/instances/eq' +import * as WithPattern from 'schemata-ts/schemables/WithPattern/instances/eq' +import * as WithRefine from 'schemata-ts/schemables/WithRefine/instances/eq' +import * as WithUnknownContainers from 'schemata-ts/schemables/WithUnknownContainers/instances/eq' +import { interpret } from 'schemata-ts/SchemaExt' export type { /** * @since 1.0.0 * @category Model */ Eq, -} from './base/EqBase' +} from 'schemata-ts/base/EqBase' /** * @since 1.0.0 diff --git a/src/Guard.ts b/src/Guard.ts index b3a4e576..ac9d061d 100644 --- a/src/Guard.ts +++ b/src/Guard.ts @@ -5,31 +5,31 @@ * * @since 1.0.0 */ -import * as G from './base/GuardBase' -import { SchemableExt1 } from './SchemableExt' -import * as WithAnnotate from './schemables/WithAnnotate/instances/guard' -import * as WithBrand from './schemables/WithBrand/instances/guard' -import * as WithCheckDigit from './schemables/WithCheckDigit/instances/guard' -import * as WithDate from './schemables/WithDate/instances/guard' -import * as WithFloat from './schemables/WithFloat/instances/guard' -import * as WithInt from './schemables/WithInt/instances/guard' -import * as WithInvariant from './schemables/WithInvariant/instances/guard' -import * as WithJson from './schemables/WithJson/instances/guard' -import * as WithMap from './schemables/WithMap/instances/guard' -import * as WithOption from './schemables/WithOption/instances/guard' -import * as WithOptional from './schemables/WithOptional/instances/guard' -import * as WithPadding from './schemables/WithPadding/instances/guard' -import * as WithPattern from './schemables/WithPattern/instances/guard' -import * as WithRefine from './schemables/WithRefine/instances/guard' -import * as WithUnknownContainers from './schemables/WithUnknownContainers/instances/guard' -import { interpret } from './SchemaExt' +import * as G from 'schemata-ts/base/GuardBase' +import { SchemableExt1 } from 'schemata-ts/SchemableExt' +import * as WithAnnotate from 'schemata-ts/schemables/WithAnnotate/instances/guard' +import * as WithBrand from 'schemata-ts/schemables/WithBrand/instances/guard' +import * as WithCheckDigit from 'schemata-ts/schemables/WithCheckDigit/instances/guard' +import * as WithDate from 'schemata-ts/schemables/WithDate/instances/guard' +import * as WithFloat from 'schemata-ts/schemables/WithFloat/instances/guard' +import * as WithInt from 'schemata-ts/schemables/WithInt/instances/guard' +import * as WithInvariant from 'schemata-ts/schemables/WithInvariant/instances/guard' +import * as WithJson from 'schemata-ts/schemables/WithJson/instances/guard' +import * as WithMap from 'schemata-ts/schemables/WithMap/instances/guard' +import * as WithOption from 'schemata-ts/schemables/WithOption/instances/guard' +import * as WithOptional from 'schemata-ts/schemables/WithOptional/instances/guard' +import * as WithPadding from 'schemata-ts/schemables/WithPadding/instances/guard' +import * as WithPattern from 'schemata-ts/schemables/WithPattern/instances/guard' +import * as WithRefine from 'schemata-ts/schemables/WithRefine/instances/guard' +import * as WithUnknownContainers from 'schemata-ts/schemables/WithUnknownContainers/instances/guard' +import { interpret } from 'schemata-ts/SchemaExt' export type { /** * @since 1.0.0 * @category Model */ Guard, -} from './base/GuardBase' +} from 'schemata-ts/base/GuardBase' /** * @since 1.0.0 diff --git a/src/JsonDeserializer.ts b/src/JsonDeserializer.ts index d7391af4..ca636189 100644 --- a/src/JsonDeserializer.ts +++ b/src/JsonDeserializer.ts @@ -6,10 +6,9 @@ import * as E from 'fp-ts/Either' import { flow } from 'fp-ts/function' import * as J from 'fp-ts/Json' - -import { DecodeError } from './base/DecoderBase' -import { getDecoder } from './Decoder' -import { SchemaExt } from './SchemaExt' +import { DecodeError } from 'schemata-ts/base/DecoderBase' +import { getDecoder } from 'schemata-ts/Decoder' +import { SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.1.0 diff --git a/src/JsonSchema.ts b/src/JsonSchema.ts index d48cce7f..f99aa032 100644 --- a/src/JsonSchema.ts +++ b/src/JsonSchema.ts @@ -5,31 +5,31 @@ * * @since 1.2.0 */ -import * as JS from './base/JsonSchemaBase' -import { SchemableExt2 } from './SchemableExt' -import * as WithAnnotate from './schemables/WithAnnotate/instances/json-schema' -import * as WithBrand from './schemables/WithBrand/instances/json-schema' -import * as WithCheckDigit from './schemables/WithCheckDigit/instances/json-schema' -import * as WithDate from './schemables/WithDate/instances/json-schema' -import * as WithFloat from './schemables/WithFloat/instances/json-schema' -import * as WithInt from './schemables/WithInt/instances/json-schema' -import * as WithInvariant from './schemables/WithInvariant/instances/json-schema' -import * as WithJson from './schemables/WithJson/instances/json-schema' -import * as WithMap from './schemables/WithMap/instances/json-schema' -import * as WithOption from './schemables/WithOption/instances/json-schema' -import * as WithOptional from './schemables/WithOptional/instances/json-schema' -import * as WithPadding from './schemables/WithPadding/instances/json-schema' -import * as WithPattern from './schemables/WithPattern/instances/json-schema' -import * as WithRefine from './schemables/WithRefine/instances/json-schema' -import * as WithUnknownContainers from './schemables/WithUnknownContainers/instances/json-schema' -import { interpret } from './SchemaExt' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { SchemableExt2 } from 'schemata-ts/SchemableExt' +import * as WithAnnotate from 'schemata-ts/schemables/WithAnnotate/instances/json-schema' +import * as WithBrand from 'schemata-ts/schemables/WithBrand/instances/json-schema' +import * as WithCheckDigit from 'schemata-ts/schemables/WithCheckDigit/instances/json-schema' +import * as WithDate from 'schemata-ts/schemables/WithDate/instances/json-schema' +import * as WithFloat from 'schemata-ts/schemables/WithFloat/instances/json-schema' +import * as WithInt from 'schemata-ts/schemables/WithInt/instances/json-schema' +import * as WithInvariant from 'schemata-ts/schemables/WithInvariant/instances/json-schema' +import * as WithJson from 'schemata-ts/schemables/WithJson/instances/json-schema' +import * as WithMap from 'schemata-ts/schemables/WithMap/instances/json-schema' +import * as WithOption from 'schemata-ts/schemables/WithOption/instances/json-schema' +import * as WithOptional from 'schemata-ts/schemables/WithOptional/instances/json-schema' +import * as WithPadding from 'schemata-ts/schemables/WithPadding/instances/json-schema' +import * as WithPattern from 'schemata-ts/schemables/WithPattern/instances/json-schema' +import * as WithRefine from 'schemata-ts/schemables/WithRefine/instances/json-schema' +import * as WithUnknownContainers from 'schemata-ts/schemables/WithUnknownContainers/instances/json-schema' +import { interpret } from 'schemata-ts/SchemaExt' export type { /** * @since 1.2.0 * @category Model */ JsonSchema, -} from './base/JsonSchemaBase' +} from 'schemata-ts/base/JsonSchemaBase' /** * @since 1.2.0 diff --git a/src/JsonSerializer.ts b/src/JsonSerializer.ts index 0814bda2..deedd848 100644 --- a/src/JsonSerializer.ts +++ b/src/JsonSerializer.ts @@ -5,12 +5,11 @@ */ import * as E from 'fp-ts/Either' import { flow } from 'fp-ts/function' - -import { JsonString, safeStringify } from './base/PrinterBase' -import { getEncoder } from './Encoder' -import { getPrinter } from './Printer' -import { PrintError } from './PrintError' -import { SchemaExt } from './SchemaExt' +import { JsonString, safeStringify } from 'schemata-ts/base/PrinterBase' +import { getEncoder } from 'schemata-ts/Encoder' +import { getPrinter } from 'schemata-ts/Printer' +import { PrintError } from 'schemata-ts/PrintError' +import { SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.1.0 diff --git a/src/PatternBuilder.ts b/src/PatternBuilder.ts index 0b7af83a..d0bc63f9 100644 --- a/src/PatternBuilder.ts +++ b/src/PatternBuilder.ts @@ -44,8 +44,7 @@ import { pipe } from 'fp-ts/function' import * as O from 'fp-ts/Option' import * as RA from 'fp-ts/ReadonlyArray' import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' - -import { matchOnW, matchW } from './internal/match' +import { matchOnW, matchW } from 'schemata-ts/internal/match' // Breakdown of RegExp from https://262.ecma-international.org/5.1/#sec-15.10 // Slightly adapted diff --git a/src/Printer.ts b/src/Printer.ts index 8edb8367..f4f9257d 100644 --- a/src/Printer.ts +++ b/src/Printer.ts @@ -5,31 +5,31 @@ * * @since 1.1.0 */ -import * as P from './base/PrinterBase' -import { SchemableExt2 } from './SchemableExt' -import * as WithAnnotate from './schemables/WithAnnotate/instances/printer' -import * as WithBrand from './schemables/WithBrand/instances/printer' -import * as WithCheckDigit from './schemables/WithCheckDigit/instances/printer' -import * as WithDate from './schemables/WithDate/instances/printer' -import * as WithFloat from './schemables/WithFloat/instances/printer' -import * as WithInt from './schemables/WithInt/instances/printer' -import * as WithInvariant from './schemables/WithInvariant/instances/printer' -import * as WithJson from './schemables/WithJson/instances/printer' -import * as WithMap from './schemables/WithMap/instances/printer' -import * as WithOption from './schemables/WithOption/instances/printer' -import * as WithOptional from './schemables/WithOptional/instances/printer' -import * as WithPadding from './schemables/WithPadding/instances/printer' -import * as WithPattern from './schemables/WithPattern/instances/printer' -import * as WithRefine from './schemables/WithRefine/instances/printer' -import * as WithUnknownContainers from './schemables/WithUnknownContainers/instances/printer' -import { interpret } from './SchemaExt' +import * as P from 'schemata-ts/base/PrinterBase' +import { SchemableExt2 } from 'schemata-ts/SchemableExt' +import * as WithAnnotate from 'schemata-ts/schemables/WithAnnotate/instances/printer' +import * as WithBrand from 'schemata-ts/schemables/WithBrand/instances/printer' +import * as WithCheckDigit from 'schemata-ts/schemables/WithCheckDigit/instances/printer' +import * as WithDate from 'schemata-ts/schemables/WithDate/instances/printer' +import * as WithFloat from 'schemata-ts/schemables/WithFloat/instances/printer' +import * as WithInt from 'schemata-ts/schemables/WithInt/instances/printer' +import * as WithInvariant from 'schemata-ts/schemables/WithInvariant/instances/printer' +import * as WithJson from 'schemata-ts/schemables/WithJson/instances/printer' +import * as WithMap from 'schemata-ts/schemables/WithMap/instances/printer' +import * as WithOption from 'schemata-ts/schemables/WithOption/instances/printer' +import * as WithOptional from 'schemata-ts/schemables/WithOptional/instances/printer' +import * as WithPadding from 'schemata-ts/schemables/WithPadding/instances/printer' +import * as WithPattern from 'schemata-ts/schemables/WithPattern/instances/printer' +import * as WithRefine from 'schemata-ts/schemables/WithRefine/instances/printer' +import * as WithUnknownContainers from 'schemata-ts/schemables/WithUnknownContainers/instances/printer' +import { interpret } from 'schemata-ts/SchemaExt' export type { /** * @since 1.1.0 * @category Model */ Printer, -} from './base/PrinterBase' +} from 'schemata-ts/base/PrinterBase' /** * @since 1.1.0 diff --git a/src/SchemaExt.ts b/src/SchemaExt.ts index 7c56d55f..20f80f80 100644 --- a/src/SchemaExt.ts +++ b/src/SchemaExt.ts @@ -78,13 +78,12 @@ import { unsafeCoerce } from 'fp-ts/function' import { HKT2, Kind, Kind2, URIS, URIS2 } from 'fp-ts/HKT' import { interpreter as interpreter_ } from 'io-ts/Schema' import { memoize } from 'io-ts/Schemable' - import { SchemableExt, SchemableExt1, SchemableExt2, SchemableExt2C, -} from './SchemableExt' +} from 'schemata-ts/SchemableExt' /** * @since 1.0.0 diff --git a/src/SchemableExt.ts b/src/SchemableExt.ts index 923309ec..1ba36262 100644 --- a/src/SchemableExt.ts +++ b/src/SchemableExt.ts @@ -7,98 +7,97 @@ */ import { URIS, URIS2 } from 'fp-ts/HKT' import { Schemable1, Schemable2C } from 'io-ts/Schemable' - -import { Schemable2, SchemableHKT2 } from './base/SchemableBase' +import { Schemable2, SchemableHKT2 } from 'schemata-ts/base/SchemableBase' import { WithAnnotate1, WithAnnotate2, WithAnnotate2C, WithAnnotateHKT2, -} from './schemables/WithAnnotate/definition' +} from 'schemata-ts/schemables/WithAnnotate/definition' import { WithBrand1, WithBrand2, WithBrand2C, WithBrandHKT2, -} from './schemables/WithBrand/definition' +} from 'schemata-ts/schemables/WithBrand/definition' import { WithCheckDigit1, WithCheckDigit2, WithCheckDigit2C, WithCheckDigitHKT2, -} from './schemables/WithCheckDigit/definition' +} from 'schemata-ts/schemables/WithCheckDigit/definition' import { WithDate1, WithDate2, WithDate2C, WithDateHKT2, -} from './schemables/WithDate/definition' +} from 'schemata-ts/schemables/WithDate/definition' import { WithFloat1, WithFloat2, WithFloat2C, WithFloatHKT2, -} from './schemables/WithFloat/definition' +} from 'schemata-ts/schemables/WithFloat/definition' import { WithInt1, WithInt2, WithInt2C, WithIntHKT2, -} from './schemables/WithInt/definition' +} from 'schemata-ts/schemables/WithInt/definition' import { WithInvariant1, WithInvariant2, WithInvariant2C, WithInvariantHKT2, -} from './schemables/WithInvariant/definition' +} from 'schemata-ts/schemables/WithInvariant/definition' import { WithJson1, WithJson2, WithJson2C, WithJsonHKT2, -} from './schemables/WithJson/definition' +} from 'schemata-ts/schemables/WithJson/definition' import { WithMap1, WithMap2, WithMap2C, WithMapHKT2, -} from './schemables/WithMap/definition' +} from 'schemata-ts/schemables/WithMap/definition' import { WithOption1, WithOption2, WithOption2C, WithOptionHKT2, -} from './schemables/WithOption/definition' +} from 'schemata-ts/schemables/WithOption/definition' import { WithOptional1, WithOptional2, WithOptional2C, WithOptionalHKT2, -} from './schemables/WithOptional/definition' +} from 'schemata-ts/schemables/WithOptional/definition' import { WithPadding1, WithPadding2, WithPadding2C, WithPaddingHKT2, -} from './schemables/WithPadding/definition' +} from 'schemata-ts/schemables/WithPadding/definition' import { WithPattern1, WithPattern2, WithPattern2C, WithPatternHKT2, -} from './schemables/WithPattern/definition' +} from 'schemata-ts/schemables/WithPattern/definition' import { WithRefine1, WithRefine2, WithRefine2C, WithRefineHKT2, -} from './schemables/WithRefine/definition' +} from 'schemata-ts/schemables/WithRefine/definition' import { WithUnknownContainers1, WithUnknownContainers2, WithUnknownContainers2C, WithUnknownContainersHKT2, -} from './schemables/WithUnknownContainers/definition' +} from 'schemata-ts/schemables/WithUnknownContainers/definition' /** * @since 1.0.0 diff --git a/src/TaskDecoder.ts b/src/TaskDecoder.ts index e779ec4b..1dd976a1 100644 --- a/src/TaskDecoder.ts +++ b/src/TaskDecoder.ts @@ -5,31 +5,31 @@ * * @since 1.0.0 */ -import * as TD from './base/TaskDecoderBase' -import { SchemableExt2C } from './SchemableExt' -import * as WithAnnotate from './schemables/WithAnnotate/instances/task-decoder' -import * as WithBrand from './schemables/WithBrand/instances/task-decoder' -import * as WithCheckDigit from './schemables/WithCheckDigit/instances/task-decoder' -import * as WithDate from './schemables/WithDate/instances/task-decoder' -import * as WithFloat from './schemables/WithFloat/instances/task-decoder' -import * as WithInt from './schemables/WithInt/instances/task-decoder' -import * as WithInvariant from './schemables/WithInvariant/instances/task-decoder' -import * as WithJson from './schemables/WithJson/instances/task-decoder' -import * as WithMap from './schemables/WithMap/instances/task-decoder' -import * as WithOption from './schemables/WithOption/instances/task-decoder' -import * as WithOptional from './schemables/WithOptional/instances/task-decoder' -import * as WithPadding from './schemables/WithPadding/instances/task-decoder' -import * as WithPattern from './schemables/WithPattern/instances/task-decoder' -import * as WithRefine from './schemables/WithRefine/instances/task-decoder' -import * as WithUnknownContainers from './schemables/WithUnknownContainers/instances/task-decoder' -import { interpret } from './SchemaExt' +import * as TD from 'schemata-ts/base/TaskDecoderBase' +import { SchemableExt2C } from 'schemata-ts/SchemableExt' +import * as WithAnnotate from 'schemata-ts/schemables/WithAnnotate/instances/task-decoder' +import * as WithBrand from 'schemata-ts/schemables/WithBrand/instances/task-decoder' +import * as WithCheckDigit from 'schemata-ts/schemables/WithCheckDigit/instances/task-decoder' +import * as WithDate from 'schemata-ts/schemables/WithDate/instances/task-decoder' +import * as WithFloat from 'schemata-ts/schemables/WithFloat/instances/task-decoder' +import * as WithInt from 'schemata-ts/schemables/WithInt/instances/task-decoder' +import * as WithInvariant from 'schemata-ts/schemables/WithInvariant/instances/task-decoder' +import * as WithJson from 'schemata-ts/schemables/WithJson/instances/task-decoder' +import * as WithMap from 'schemata-ts/schemables/WithMap/instances/task-decoder' +import * as WithOption from 'schemata-ts/schemables/WithOption/instances/task-decoder' +import * as WithOptional from 'schemata-ts/schemables/WithOptional/instances/task-decoder' +import * as WithPadding from 'schemata-ts/schemables/WithPadding/instances/task-decoder' +import * as WithPattern from 'schemata-ts/schemables/WithPattern/instances/task-decoder' +import * as WithRefine from 'schemata-ts/schemables/WithRefine/instances/task-decoder' +import * as WithUnknownContainers from 'schemata-ts/schemables/WithUnknownContainers/instances/task-decoder' +import { interpret } from 'schemata-ts/SchemaExt' export type { /** * @since 1.0.0 * @category Model */ TaskDecoder, -} from './base/TaskDecoderBase' +} from 'schemata-ts/base/TaskDecoderBase' /** * @since 1.0.0 diff --git a/src/Type.ts b/src/Type.ts index 31ef8237..c0825d2b 100644 --- a/src/Type.ts +++ b/src/Type.ts @@ -5,31 +5,31 @@ * * @since 1.0.0 */ -import * as t from './base/TypeBase' -import { SchemableExt1 } from './SchemableExt' -import * as WithAnnotate from './schemables/WithAnnotate/instances/type' -import * as WithBrand from './schemables/WithBrand/instances/type' -import * as WithCheckDigit from './schemables/WithCheckDigit/instances/type' -import * as WithDate from './schemables/WithDate/instances/type' -import * as WithFloat from './schemables/WithFloat/instances/type' -import * as WithInt from './schemables/WithInt/instances/type' -import * as WithInvariant from './schemables/WithInvariant/instances/type' -import * as WithJson from './schemables/WithJson/instances/type' -import * as WithMap from './schemables/WithMap/instances/type' -import * as WithOption from './schemables/WithOption/instances/type' -import * as WithOptional from './schemables/WithOptional/instances/type' -import * as WithPadding from './schemables/WithPadding/instances/type' -import * as WithPattern from './schemables/WithPattern/instances/type' -import * as WithRefine from './schemables/WithRefine/instances/type' -import * as WithUnknownContainers from './schemables/WithUnknownContainers/instances/type' -import { interpret } from './SchemaExt' +import * as t from 'schemata-ts/base/TypeBase' +import { SchemableExt1 } from 'schemata-ts/SchemableExt' +import * as WithAnnotate from 'schemata-ts/schemables/WithAnnotate/instances/type' +import * as WithBrand from 'schemata-ts/schemables/WithBrand/instances/type' +import * as WithCheckDigit from 'schemata-ts/schemables/WithCheckDigit/instances/type' +import * as WithDate from 'schemata-ts/schemables/WithDate/instances/type' +import * as WithFloat from 'schemata-ts/schemables/WithFloat/instances/type' +import * as WithInt from 'schemata-ts/schemables/WithInt/instances/type' +import * as WithInvariant from 'schemata-ts/schemables/WithInvariant/instances/type' +import * as WithJson from 'schemata-ts/schemables/WithJson/instances/type' +import * as WithMap from 'schemata-ts/schemables/WithMap/instances/type' +import * as WithOption from 'schemata-ts/schemables/WithOption/instances/type' +import * as WithOptional from 'schemata-ts/schemables/WithOptional/instances/type' +import * as WithPadding from 'schemata-ts/schemables/WithPadding/instances/type' +import * as WithPattern from 'schemata-ts/schemables/WithPattern/instances/type' +import * as WithRefine from 'schemata-ts/schemables/WithRefine/instances/type' +import * as WithUnknownContainers from 'schemata-ts/schemables/WithUnknownContainers/instances/type' +import { interpret } from 'schemata-ts/SchemaExt' export type { /** * @since 1.0.0 * @category Model */ Type, -} from './base/TypeBase' +} from 'schemata-ts/base/TypeBase' /** * @since 1.0.0 diff --git a/src/base/ArbitraryBase.ts b/src/base/ArbitraryBase.ts index e8b5d2f5..bb1d7173 100644 --- a/src/base/ArbitraryBase.ts +++ b/src/base/ArbitraryBase.ts @@ -8,8 +8,7 @@ import { identity, pipe } from 'fp-ts/function' import * as RA from 'fp-ts/ReadonlyArray' import * as RR from 'fp-ts/ReadonlyRecord' import * as S from 'io-ts/Schemable' - -import { forIn, typeOf } from '../internal/util' +import { forIn, typeOf } from 'schemata-ts/internal/util' /** * @since 1.0.0 diff --git a/src/base/EncoderBase.ts b/src/base/EncoderBase.ts index 6ef58e74..34bedbee 100644 --- a/src/base/EncoderBase.ts +++ b/src/base/EncoderBase.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import * as Enc from 'io-ts/Encoder' - -import { Schemable2 } from './SchemableBase' +import { Schemable2 } from 'schemata-ts/base/SchemableBase' export * from 'io-ts/Encoder' diff --git a/src/base/JsonSchemaBase.ts b/src/base/JsonSchemaBase.ts index a0dca8b5..b95a2fbf 100644 --- a/src/base/JsonSchemaBase.ts +++ b/src/base/JsonSchemaBase.ts @@ -38,9 +38,8 @@ import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' import * as RR from 'fp-ts/ReadonlyRecord' import * as Str from 'fp-ts/string' import { memoize } from 'io-ts/Schemable' - -import { Int } from '../schemables/WithInt/definition' -import { Schemable2 } from './SchemableBase' +import { Schemable2 } from 'schemata-ts/base/SchemableBase' +import { Int } from 'schemata-ts/schemables/WithInt/definition' // ------------------------------------------------------------------------------------- // Model diff --git a/src/base/PrinterBase.ts b/src/base/PrinterBase.ts index 3bb1460e..371d66f6 100644 --- a/src/base/PrinterBase.ts +++ b/src/base/PrinterBase.ts @@ -10,11 +10,10 @@ import * as RA from 'fp-ts/ReadonlyArray' import * as RR from 'fp-ts/ReadonlyRecord' import { Branded } from 'io-ts' import * as S from 'io-ts/Schemable' - -import { typeOf, witherS } from '../internal/util' -import * as PE from '../PrintError' -import { WithRefine2 } from '../schemables/WithRefine/definition' -import { Schemable2 } from './SchemableBase' +import { Schemable2 } from 'schemata-ts/base/SchemableBase' +import { typeOf, witherS } from 'schemata-ts/internal/util' +import * as PE from 'schemata-ts/PrintError' +import { WithRefine2 } from 'schemata-ts/schemables/WithRefine/definition' /** @internal */ interface JsonStringBrand { diff --git a/src/base/SchemaBase.ts b/src/base/SchemaBase.ts index a02fdf6d..8727938b 100644 --- a/src/base/SchemaBase.ts +++ b/src/base/SchemaBase.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { identity } from 'fp-ts/function' - -import * as SC from '../SchemaExt' -import * as S2 from './SchemableBase' +import * as S2 from 'schemata-ts/base/SchemableBase' +import * as SC from 'schemata-ts/SchemaExt' // eslint-disable-next-line @typescript-eslint/no-explicit-any type Any = any diff --git a/src/index.ts b/src/index.ts index 07aaff8d..fe3bd102 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,2 @@ /** @since 1.0.0 */ -export * as schemata from './schemata' +export * as schemata from 'schemata-ts/schemata' diff --git a/src/schemables/WithAnnotate/instances/arbitrary.ts b/src/schemables/WithAnnotate/instances/arbitrary.ts index 3bec8098..9425c8a9 100644 --- a/src/schemables/WithAnnotate/instances/arbitrary.ts +++ b/src/schemables/WithAnnotate/instances/arbitrary.ts @@ -5,9 +5,8 @@ * @since 1.2.0 */ import { constant, identity } from 'fp-ts/function' - -import * as Arb from '../../../base/ArbitraryBase' -import { WithAnnotate1 } from '../definition' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithAnnotate1 } from 'schemata-ts/schemables/WithAnnotate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithAnnotate/instances/decoder.ts b/src/schemables/WithAnnotate/instances/decoder.ts index a684a8b6..b4588906 100644 --- a/src/schemables/WithAnnotate/instances/decoder.ts +++ b/src/schemables/WithAnnotate/instances/decoder.ts @@ -5,9 +5,8 @@ * @since 1.2.0 */ import { constant, identity } from 'fp-ts/function' - -import * as D from '../../../base/DecoderBase' -import { WithAnnotate2C } from '../definition' +import * as D from 'schemata-ts/base/DecoderBase' +import { WithAnnotate2C } from 'schemata-ts/schemables/WithAnnotate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithAnnotate/instances/encoder.ts b/src/schemables/WithAnnotate/instances/encoder.ts index 10ac5a4c..264140d6 100644 --- a/src/schemables/WithAnnotate/instances/encoder.ts +++ b/src/schemables/WithAnnotate/instances/encoder.ts @@ -5,9 +5,8 @@ * @since 1.2.0 */ import { constant, identity } from 'fp-ts/function' - -import * as Enc from '../../../base/EncoderBase' -import { WithAnnotate2 } from '../definition' +import * as Enc from 'schemata-ts/base/EncoderBase' +import { WithAnnotate2 } from 'schemata-ts/schemables/WithAnnotate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithAnnotate/instances/eq.ts b/src/schemables/WithAnnotate/instances/eq.ts index 72e08f3b..724039aa 100644 --- a/src/schemables/WithAnnotate/instances/eq.ts +++ b/src/schemables/WithAnnotate/instances/eq.ts @@ -6,8 +6,7 @@ */ import * as Eq_ from 'fp-ts/Eq' import { constant, identity } from 'fp-ts/function' - -import { WithAnnotate1 } from '../definition' +import { WithAnnotate1 } from 'schemata-ts/schemables/WithAnnotate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithAnnotate/instances/guard.ts b/src/schemables/WithAnnotate/instances/guard.ts index 1a102aa0..e8a260cf 100644 --- a/src/schemables/WithAnnotate/instances/guard.ts +++ b/src/schemables/WithAnnotate/instances/guard.ts @@ -5,9 +5,8 @@ * @since 1.2.0 */ import { constant, identity } from 'fp-ts/function' - -import * as G from '../../../base/GuardBase' -import { WithAnnotate1 } from '../definition' +import * as G from 'schemata-ts/base/GuardBase' +import { WithAnnotate1 } from 'schemata-ts/schemables/WithAnnotate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithAnnotate/instances/json-schema.ts b/src/schemables/WithAnnotate/instances/json-schema.ts index 44557593..06e72474 100644 --- a/src/schemables/WithAnnotate/instances/json-schema.ts +++ b/src/schemables/WithAnnotate/instances/json-schema.ts @@ -4,8 +4,8 @@ * * @since 1.2.0 */ -import * as JS from '../../../base/JsonSchemaBase' -import { WithAnnotate2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithAnnotate2 } from 'schemata-ts/schemables/WithAnnotate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithAnnotate/instances/printer.ts b/src/schemables/WithAnnotate/instances/printer.ts index 92cdcdf0..214aa2d0 100644 --- a/src/schemables/WithAnnotate/instances/printer.ts +++ b/src/schemables/WithAnnotate/instances/printer.ts @@ -5,9 +5,8 @@ * @since 1.2.0 */ import { constant, identity } from 'fp-ts/function' - -import * as P from '../../../base/PrinterBase' -import { WithAnnotate2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithAnnotate2 } from 'schemata-ts/schemables/WithAnnotate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithAnnotate/instances/schema.ts b/src/schemables/WithAnnotate/instances/schema.ts index 338e8775..6694d8a0 100644 --- a/src/schemables/WithAnnotate/instances/schema.ts +++ b/src/schemables/WithAnnotate/instances/schema.ts @@ -4,7 +4,7 @@ * * @since 1.2.0 */ -import * as SC from '../../../SchemaExt' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.2.0 diff --git a/src/schemables/WithAnnotate/instances/task-decoder.ts b/src/schemables/WithAnnotate/instances/task-decoder.ts index 5e133526..15900410 100644 --- a/src/schemables/WithAnnotate/instances/task-decoder.ts +++ b/src/schemables/WithAnnotate/instances/task-decoder.ts @@ -5,9 +5,8 @@ * @since 1.2.0 */ import { constant, identity } from 'fp-ts/function' - -import * as TD from '../../../base/TaskDecoderBase' -import { WithAnnotate2C } from '../definition' +import * as TD from 'schemata-ts/base/TaskDecoderBase' +import { WithAnnotate2C } from 'schemata-ts/schemables/WithAnnotate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithAnnotate/instances/type.ts b/src/schemables/WithAnnotate/instances/type.ts index e1053f3a..23c9fa28 100644 --- a/src/schemables/WithAnnotate/instances/type.ts +++ b/src/schemables/WithAnnotate/instances/type.ts @@ -5,9 +5,8 @@ * @since 1.2.0 */ import { constant, identity } from 'fp-ts/function' - -import * as t from '../../../base/TypeBase' -import { WithAnnotate1 } from '../definition' +import * as t from 'schemata-ts/base/TypeBase' +import { WithAnnotate1 } from 'schemata-ts/schemables/WithAnnotate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithBrand/instances/arbitrary.ts b/src/schemables/WithBrand/instances/arbitrary.ts index 06ebba66..76662813 100644 --- a/src/schemables/WithBrand/instances/arbitrary.ts +++ b/src/schemables/WithBrand/instances/arbitrary.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { identity } from 'fp-ts/function' - -import * as Arb from '../../../base/ArbitraryBase' -import { WithBrand1 } from '../definition' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithBrand1 } from 'schemata-ts/schemables/WithBrand/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithBrand/instances/decoder.ts b/src/schemables/WithBrand/instances/decoder.ts index 32f7be83..9885224d 100644 --- a/src/schemables/WithBrand/instances/decoder.ts +++ b/src/schemables/WithBrand/instances/decoder.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { identity } from 'fp-ts/function' - -import * as D from '../../../base/DecoderBase' -import { WithBrand2C } from '../definition' +import * as D from 'schemata-ts/base/DecoderBase' +import { WithBrand2C } from 'schemata-ts/schemables/WithBrand/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithBrand/instances/encoder.ts b/src/schemables/WithBrand/instances/encoder.ts index d614d509..bb23dfa7 100644 --- a/src/schemables/WithBrand/instances/encoder.ts +++ b/src/schemables/WithBrand/instances/encoder.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { identity } from 'fp-ts/function' - -import * as Enc from '../../../base/EncoderBase' -import { WithBrand2 } from '../definition' +import * as Enc from 'schemata-ts/base/EncoderBase' +import { WithBrand2 } from 'schemata-ts/schemables/WithBrand/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithBrand/instances/eq.ts b/src/schemables/WithBrand/instances/eq.ts index ebdd04e0..fe3f7ebc 100644 --- a/src/schemables/WithBrand/instances/eq.ts +++ b/src/schemables/WithBrand/instances/eq.ts @@ -5,8 +5,7 @@ */ import * as Eq_ from 'fp-ts/Eq' import { identity } from 'fp-ts/function' - -import { WithBrand1 } from '../definition' +import { WithBrand1 } from 'schemata-ts/schemables/WithBrand/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithBrand/instances/guard.ts b/src/schemables/WithBrand/instances/guard.ts index f4fa64a8..94a034cb 100644 --- a/src/schemables/WithBrand/instances/guard.ts +++ b/src/schemables/WithBrand/instances/guard.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { identity } from 'fp-ts/function' - -import * as G from '../../../base/GuardBase' -import { WithBrand1 } from '../definition' +import * as G from 'schemata-ts/base/GuardBase' +import { WithBrand1 } from 'schemata-ts/schemables/WithBrand/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithBrand/instances/json-schema.ts b/src/schemables/WithBrand/instances/json-schema.ts index 47dd908d..00b44bda 100644 --- a/src/schemables/WithBrand/instances/json-schema.ts +++ b/src/schemables/WithBrand/instances/json-schema.ts @@ -4,9 +4,8 @@ * @since 1.2.0 */ import { identity } from 'fp-ts/function' - -import * as JS from '../../../base/JsonSchemaBase' -import { WithBrand2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithBrand2 } from 'schemata-ts/schemables/WithBrand/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithBrand/instances/printer.ts b/src/schemables/WithBrand/instances/printer.ts index 1a512426..ed82b1cf 100644 --- a/src/schemables/WithBrand/instances/printer.ts +++ b/src/schemables/WithBrand/instances/printer.ts @@ -4,9 +4,8 @@ * @since 1.1.0 */ import { identity } from 'fp-ts/function' - -import * as P from '../../../base/PrinterBase' -import { WithBrand2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithBrand2 } from 'schemata-ts/schemables/WithBrand/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithBrand/instances/schema.ts b/src/schemables/WithBrand/instances/schema.ts index 08bddd5e..c9724f0a 100644 --- a/src/schemables/WithBrand/instances/schema.ts +++ b/src/schemables/WithBrand/instances/schema.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import { Branded } from 'io-ts' - -import * as SC from '../../../SchemaExt' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithBrand/instances/task-decoder.ts b/src/schemables/WithBrand/instances/task-decoder.ts index c9e335c6..a014145f 100644 --- a/src/schemables/WithBrand/instances/task-decoder.ts +++ b/src/schemables/WithBrand/instances/task-decoder.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { identity } from 'fp-ts/function' - -import * as TD from '../../../base/TaskDecoderBase' -import { WithBrand2C } from '../definition' +import * as TD from 'schemata-ts/base/TaskDecoderBase' +import { WithBrand2C } from 'schemata-ts/schemables/WithBrand/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithBrand/instances/type.ts b/src/schemables/WithBrand/instances/type.ts index 8f9079b5..8894fe01 100644 --- a/src/schemables/WithBrand/instances/type.ts +++ b/src/schemables/WithBrand/instances/type.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { identity } from 'fp-ts/function' - -import * as t from '../../../base/TypeBase' -import { WithBrand1 } from '../definition' +import * as t from 'schemata-ts/base/TypeBase' +import { WithBrand1 } from 'schemata-ts/schemables/WithBrand/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithCheckDigit/instances/arbitrary.ts b/src/schemables/WithCheckDigit/instances/arbitrary.ts index 38053766..eac95ae8 100644 --- a/src/schemables/WithCheckDigit/instances/arbitrary.ts +++ b/src/schemables/WithCheckDigit/instances/arbitrary.ts @@ -4,10 +4,15 @@ * @since 1.0.0 */ import { Branded } from 'io-ts' - -import * as Arb from '../../../base/ArbitraryBase' -import { CheckDigitVerified, WithCheckDigit1 } from '../definition' -import { locationToIndex, replaceCharAt } from '../utils' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { + CheckDigitVerified, + WithCheckDigit1, +} from 'schemata-ts/schemables/WithCheckDigit/definition' +import { + locationToIndex, + replaceCharAt, +} from 'schemata-ts/schemables/WithCheckDigit/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithCheckDigit/instances/decoder.ts b/src/schemables/WithCheckDigit/instances/decoder.ts index eb3bff29..60c80395 100644 --- a/src/schemables/WithCheckDigit/instances/decoder.ts +++ b/src/schemables/WithCheckDigit/instances/decoder.ts @@ -6,10 +6,15 @@ import * as E from 'fp-ts/Either' import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as D from '../../../base/DecoderBase' -import { CheckDigitVerified, WithCheckDigit2C } from '../definition' -import { locationToIndex, replaceCharAt } from '../utils' +import * as D from 'schemata-ts/base/DecoderBase' +import { + CheckDigitVerified, + WithCheckDigit2C, +} from 'schemata-ts/schemables/WithCheckDigit/definition' +import { + locationToIndex, + replaceCharAt, +} from 'schemata-ts/schemables/WithCheckDigit/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithCheckDigit/instances/encoder.ts b/src/schemables/WithCheckDigit/instances/encoder.ts index 4c9f134b..a76d9c62 100644 --- a/src/schemables/WithCheckDigit/instances/encoder.ts +++ b/src/schemables/WithCheckDigit/instances/encoder.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { identity } from 'fp-ts/function' - -import * as Enc from '../../../base/EncoderBase' -import { WithCheckDigit2 } from '../definition' +import * as Enc from 'schemata-ts/base/EncoderBase' +import { WithCheckDigit2 } from 'schemata-ts/schemables/WithCheckDigit/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithCheckDigit/instances/eq.ts b/src/schemables/WithCheckDigit/instances/eq.ts index 56755ebc..478caa50 100644 --- a/src/schemables/WithCheckDigit/instances/eq.ts +++ b/src/schemables/WithCheckDigit/instances/eq.ts @@ -5,8 +5,7 @@ */ import * as Eq_ from 'fp-ts/Eq' import { identity } from 'fp-ts/function' - -import { WithCheckDigit1 } from '../definition' +import { WithCheckDigit1 } from 'schemata-ts/schemables/WithCheckDigit/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithCheckDigit/instances/guard.ts b/src/schemables/WithCheckDigit/instances/guard.ts index 70e0a4ca..c7f3dc0a 100644 --- a/src/schemables/WithCheckDigit/instances/guard.ts +++ b/src/schemables/WithCheckDigit/instances/guard.ts @@ -4,10 +4,12 @@ * @since 1.0.0 */ import { Branded } from 'io-ts' - -import * as G from '../../../base/GuardBase' -import { CheckDigitVerified, WithCheckDigit1 } from '../definition' -import { locationToIndex } from '../utils' +import * as G from 'schemata-ts/base/GuardBase' +import { + CheckDigitVerified, + WithCheckDigit1, +} from 'schemata-ts/schemables/WithCheckDigit/definition' +import { locationToIndex } from 'schemata-ts/schemables/WithCheckDigit/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithCheckDigit/instances/json-schema.ts b/src/schemables/WithCheckDigit/instances/json-schema.ts index fe836aa3..dc2fe113 100644 --- a/src/schemables/WithCheckDigit/instances/json-schema.ts +++ b/src/schemables/WithCheckDigit/instances/json-schema.ts @@ -4,9 +4,8 @@ * @since 1.2.0 */ import { identity } from 'fp-ts/function' - -import * as JS from '../../../base/JsonSchemaBase' -import { WithCheckDigit2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithCheckDigit2 } from 'schemata-ts/schemables/WithCheckDigit/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithCheckDigit/instances/printer.ts b/src/schemables/WithCheckDigit/instances/printer.ts index da14634b..2dfe9ca4 100644 --- a/src/schemables/WithCheckDigit/instances/printer.ts +++ b/src/schemables/WithCheckDigit/instances/printer.ts @@ -4,9 +4,8 @@ * @since 1.1.0 */ import { identity } from 'fp-ts/function' - -import * as P from '../../../base/PrinterBase' -import { WithCheckDigit2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithCheckDigit2 } from 'schemata-ts/schemables/WithCheckDigit/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithCheckDigit/instances/schema.ts b/src/schemables/WithCheckDigit/instances/schema.ts index 41826172..8b6fbb6e 100644 --- a/src/schemables/WithCheckDigit/instances/schema.ts +++ b/src/schemables/WithCheckDigit/instances/schema.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { Branded } from 'io-ts' - -import * as SC from '../../../SchemaExt' -import { CheckDigitVerified } from '../definition' +import { CheckDigitVerified } from 'schemata-ts/schemables/WithCheckDigit/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithCheckDigit/instances/task-decoder.ts b/src/schemables/WithCheckDigit/instances/task-decoder.ts index 809ea5c0..54188243 100644 --- a/src/schemables/WithCheckDigit/instances/task-decoder.ts +++ b/src/schemables/WithCheckDigit/instances/task-decoder.ts @@ -6,10 +6,15 @@ import { pipe } from 'fp-ts/function' import * as TE from 'fp-ts/TaskEither' import { Branded } from 'io-ts' - -import * as TD from '../../../base/TaskDecoderBase' -import { CheckDigitVerified, WithCheckDigit2C } from '../definition' -import { locationToIndex, replaceCharAt } from '../utils' +import * as TD from 'schemata-ts/base/TaskDecoderBase' +import { + CheckDigitVerified, + WithCheckDigit2C, +} from 'schemata-ts/schemables/WithCheckDigit/definition' +import { + locationToIndex, + replaceCharAt, +} from 'schemata-ts/schemables/WithCheckDigit/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithCheckDigit/instances/type.ts b/src/schemables/WithCheckDigit/instances/type.ts index 43cc9619..c32ba702 100644 --- a/src/schemables/WithCheckDigit/instances/type.ts +++ b/src/schemables/WithCheckDigit/instances/type.ts @@ -5,10 +5,12 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as t from '../../../base/TypeBase' -import { CheckDigitVerified, WithCheckDigit1 } from '../definition' -import { locationToIndex } from '../utils' +import * as t from 'schemata-ts/base/TypeBase' +import { + CheckDigitVerified, + WithCheckDigit1, +} from 'schemata-ts/schemables/WithCheckDigit/definition' +import { locationToIndex } from 'schemata-ts/schemables/WithCheckDigit/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithDate/instances/arbitrary.ts b/src/schemables/WithDate/instances/arbitrary.ts index b46d3afa..d2617c23 100644 --- a/src/schemables/WithDate/instances/arbitrary.ts +++ b/src/schemables/WithDate/instances/arbitrary.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import * as Arb from '../../../base/ArbitraryBase' -import { WithDate1 } from '../definition' -import { isSafeDate } from '../utils' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithDate1 } from 'schemata-ts/schemables/WithDate/definition' +import { isSafeDate } from 'schemata-ts/schemables/WithDate/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithDate/instances/decoder.ts b/src/schemables/WithDate/instances/decoder.ts index ac173530..10e2bbe4 100644 --- a/src/schemables/WithDate/instances/decoder.ts +++ b/src/schemables/WithDate/instances/decoder.ts @@ -4,10 +4,9 @@ * @since 1.0.0 */ import * as D from 'io-ts/Decoder' - -import { WithDate2C } from '../definition' -import { isValidDateString } from '../utils' -import { Guard } from './guard' +import { WithDate2C } from 'schemata-ts/schemables/WithDate/definition' +import { Guard } from 'schemata-ts/schemables/WithDate/instances/guard' +import { isValidDateString } from 'schemata-ts/schemables/WithDate/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithDate/instances/encoder.ts b/src/schemables/WithDate/instances/encoder.ts index 68b51350..f54c3fea 100644 --- a/src/schemables/WithDate/instances/encoder.ts +++ b/src/schemables/WithDate/instances/encoder.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import * as Enc from 'io-ts/Encoder' - -import { WithDate2 } from '../definition' +import { WithDate2 } from 'schemata-ts/schemables/WithDate/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithDate/instances/eq.ts b/src/schemables/WithDate/instances/eq.ts index a2b534ca..1269f9cb 100644 --- a/src/schemables/WithDate/instances/eq.ts +++ b/src/schemables/WithDate/instances/eq.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import * as Eq_ from 'fp-ts/Eq' - -import { WithDate1 } from '../definition' +import { WithDate1 } from 'schemata-ts/schemables/WithDate/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithDate/instances/guard.ts b/src/schemables/WithDate/instances/guard.ts index 69cb0193..462ae303 100644 --- a/src/schemables/WithDate/instances/guard.ts +++ b/src/schemables/WithDate/instances/guard.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import * as G from 'io-ts/Guard' - -import { WithDate1 } from '../definition' -import { isSafeDate } from '../utils' +import { WithDate1 } from 'schemata-ts/schemables/WithDate/definition' +import { isSafeDate } from 'schemata-ts/schemables/WithDate/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithDate/instances/json-schema.ts b/src/schemables/WithDate/instances/json-schema.ts index c99f6070..67b9f6b5 100644 --- a/src/schemables/WithDate/instances/json-schema.ts +++ b/src/schemables/WithDate/instances/json-schema.ts @@ -3,8 +3,8 @@ * * @since 1.2.0 */ -import * as JS from '../../../base/JsonSchemaBase' -import { WithDate2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithDate2 } from 'schemata-ts/schemables/WithDate/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithDate/instances/printer.ts b/src/schemables/WithDate/instances/printer.ts index 97cb1964..8d767091 100644 --- a/src/schemables/WithDate/instances/printer.ts +++ b/src/schemables/WithDate/instances/printer.ts @@ -5,11 +5,10 @@ */ import * as E from 'fp-ts/Either' import { pipe } from 'fp-ts/function' - -import * as P from '../../../base/PrinterBase' -import * as PE from '../../../PrintError' -import { WithDate2 } from '../definition' -import { isSafeDate } from '../utils' +import * as P from 'schemata-ts/base/PrinterBase' +import * as PE from 'schemata-ts/PrintError' +import { WithDate2 } from 'schemata-ts/schemables/WithDate/definition' +import { isSafeDate } from 'schemata-ts/schemables/WithDate/utils' /** * @since 1.1.0 diff --git a/src/schemables/WithDate/instances/schema.ts b/src/schemables/WithDate/instances/schema.ts index 6885525d..afd58dbb 100644 --- a/src/schemables/WithDate/instances/schema.ts +++ b/src/schemables/WithDate/instances/schema.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithDate2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithDate2 } from 'schemata-ts/schemables/WithDate/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithDate/instances/task-decoder.ts b/src/schemables/WithDate/instances/task-decoder.ts index 8e524600..e6007b05 100644 --- a/src/schemables/WithDate/instances/task-decoder.ts +++ b/src/schemables/WithDate/instances/task-decoder.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import * as TD from 'io-ts/TaskDecoder' - -import { WithDate2C } from '../definition' -import { Decoder } from './decoder' +import { WithDate2C } from 'schemata-ts/schemables/WithDate/definition' +import { Decoder } from 'schemata-ts/schemables/WithDate/instances/decoder' /** * @since 1.0.0 diff --git a/src/schemables/WithDate/instances/type.ts b/src/schemables/WithDate/instances/type.ts index 5c7ce76b..4a557679 100644 --- a/src/schemables/WithDate/instances/type.ts +++ b/src/schemables/WithDate/instances/type.ts @@ -6,9 +6,8 @@ import { identity } from 'fp-ts/function' import * as t_ from 'io-ts' import * as t from 'io-ts/Type' - -import { WithDate1 } from '../definition' -import { isSafeDate, isValidDateString } from '../utils' +import { WithDate1 } from 'schemata-ts/schemables/WithDate/definition' +import { isSafeDate, isValidDateString } from 'schemata-ts/schemables/WithDate/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithFloat/instances/arbitrary.ts b/src/schemables/WithFloat/instances/arbitrary.ts index c7e822d1..14180dcb 100644 --- a/src/schemables/WithFloat/instances/arbitrary.ts +++ b/src/schemables/WithFloat/instances/arbitrary.ts @@ -9,9 +9,9 @@ * * @since 1.0.0 */ -import * as Arb from '../../../base/ArbitraryBase' -import { WithFloat1 } from '../definition' -import { isFloat } from '../utils' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithFloat1 } from 'schemata-ts/schemables/WithFloat/definition' +import { isFloat } from 'schemata-ts/schemables/WithFloat/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithFloat/instances/decoder.ts b/src/schemables/WithFloat/instances/decoder.ts index 0954474c..e89fd898 100644 --- a/src/schemables/WithFloat/instances/decoder.ts +++ b/src/schemables/WithFloat/instances/decoder.ts @@ -11,9 +11,8 @@ */ import { pipe } from 'fp-ts/function' import * as D from 'io-ts/Decoder' - -import { WithFloat2C } from '../definition' -import { isFloat } from '../utils' +import { WithFloat2C } from 'schemata-ts/schemables/WithFloat/definition' +import { isFloat } from 'schemata-ts/schemables/WithFloat/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithFloat/instances/encoder.ts b/src/schemables/WithFloat/instances/encoder.ts index 9a730b39..a9ce1534 100644 --- a/src/schemables/WithFloat/instances/encoder.ts +++ b/src/schemables/WithFloat/instances/encoder.ts @@ -10,8 +10,7 @@ * @since 1.0.0 */ import * as Enc from 'io-ts/Encoder' - -import { WithFloat2 } from '../definition' +import { WithFloat2 } from 'schemata-ts/schemables/WithFloat/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithFloat/instances/eq.ts b/src/schemables/WithFloat/instances/eq.ts index 3c513ec0..6b170d73 100644 --- a/src/schemables/WithFloat/instances/eq.ts +++ b/src/schemables/WithFloat/instances/eq.ts @@ -11,8 +11,7 @@ */ import * as Eq_ from 'fp-ts/Eq' import * as N from 'fp-ts/number' - -import { WithFloat1 } from '../definition' +import { WithFloat1 } from 'schemata-ts/schemables/WithFloat/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithFloat/instances/guard.ts b/src/schemables/WithFloat/instances/guard.ts index 896142ef..f1a1460e 100644 --- a/src/schemables/WithFloat/instances/guard.ts +++ b/src/schemables/WithFloat/instances/guard.ts @@ -11,9 +11,8 @@ */ import { pipe } from 'fp-ts/function' import * as G from 'io-ts/Guard' - -import { WithFloat1 } from '../definition' -import { isFloat } from '../utils' +import { WithFloat1 } from 'schemata-ts/schemables/WithFloat/definition' +import { isFloat } from 'schemata-ts/schemables/WithFloat/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithFloat/instances/json-schema.ts b/src/schemables/WithFloat/instances/json-schema.ts index af22598b..a2eea801 100644 --- a/src/schemables/WithFloat/instances/json-schema.ts +++ b/src/schemables/WithFloat/instances/json-schema.ts @@ -9,8 +9,8 @@ * * @since 1.2.0 */ -import * as JS from '../../../base/JsonSchemaBase' -import { WithFloat2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithFloat2 } from 'schemata-ts/schemables/WithFloat/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithFloat/instances/printer.ts b/src/schemables/WithFloat/instances/printer.ts index fe02329d..a9a9340c 100644 --- a/src/schemables/WithFloat/instances/printer.ts +++ b/src/schemables/WithFloat/instances/printer.ts @@ -9,8 +9,8 @@ * * @since 1.1.0 */ -import * as P from '../../../base/PrinterBase' -import { WithFloat2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithFloat2 } from 'schemata-ts/schemables/WithFloat/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithFloat/instances/schema.ts b/src/schemables/WithFloat/instances/schema.ts index 7db1a1b6..7cc0203d 100644 --- a/src/schemables/WithFloat/instances/schema.ts +++ b/src/schemables/WithFloat/instances/schema.ts @@ -9,9 +9,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithFloat2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithFloat2 } from 'schemata-ts/schemables/WithFloat/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithFloat/instances/task-decoder.ts b/src/schemables/WithFloat/instances/task-decoder.ts index ff5c8a26..f9bbec3a 100644 --- a/src/schemables/WithFloat/instances/task-decoder.ts +++ b/src/schemables/WithFloat/instances/task-decoder.ts @@ -11,9 +11,8 @@ */ import { pipe } from 'fp-ts/function' import * as TD from 'io-ts/TaskDecoder' - -import { WithFloat2C } from '../definition' -import { isFloat } from '../utils' +import { WithFloat2C } from 'schemata-ts/schemables/WithFloat/definition' +import { isFloat } from 'schemata-ts/schemables/WithFloat/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithFloat/instances/type.ts b/src/schemables/WithFloat/instances/type.ts index f08435c6..1038c702 100644 --- a/src/schemables/WithFloat/instances/type.ts +++ b/src/schemables/WithFloat/instances/type.ts @@ -11,9 +11,8 @@ */ import { pipe } from 'fp-ts/function' import * as t from 'io-ts/Type' - -import { WithFloat1 } from '../definition' -import { isFloat } from '../utils' +import { WithFloat1 } from 'schemata-ts/schemables/WithFloat/definition' +import { isFloat } from 'schemata-ts/schemables/WithFloat/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithFloat/utils.ts b/src/schemables/WithFloat/utils.ts index 7c175fd1..d1cb1bed 100644 --- a/src/schemables/WithFloat/utils.ts +++ b/src/schemables/WithFloat/utils.ts @@ -3,7 +3,7 @@ * * @since 1.0.0 */ -import { Float, FloatParams } from './definition' +import { Float, FloatParams } from 'schemata-ts/schemables/WithFloat/definition' /** @since 1.0.0 */ export const isFloat = diff --git a/src/schemables/WithInt/instances/arbitrary.ts b/src/schemables/WithInt/instances/arbitrary.ts index 2b94c363..bb31e372 100644 --- a/src/schemables/WithInt/instances/arbitrary.ts +++ b/src/schemables/WithInt/instances/arbitrary.ts @@ -9,9 +9,9 @@ * * @since 1.0.0 */ -import * as Arb from '../../../base/ArbitraryBase' -import { WithInt1 } from '../definition' -import { isInt } from '../utils' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithInt1 } from 'schemata-ts/schemables/WithInt/definition' +import { isInt } from 'schemata-ts/schemables/WithInt/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithInt/instances/decoder.ts b/src/schemables/WithInt/instances/decoder.ts index 721163b6..3768aac9 100644 --- a/src/schemables/WithInt/instances/decoder.ts +++ b/src/schemables/WithInt/instances/decoder.ts @@ -11,9 +11,8 @@ */ import { pipe } from 'fp-ts/function' import * as D from 'io-ts/Decoder' - -import { WithInt2C } from '../definition' -import { isInt } from '../utils' +import { WithInt2C } from 'schemata-ts/schemables/WithInt/definition' +import { isInt } from 'schemata-ts/schemables/WithInt/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithInt/instances/encoder.ts b/src/schemables/WithInt/instances/encoder.ts index 65c4b47f..9da108d1 100644 --- a/src/schemables/WithInt/instances/encoder.ts +++ b/src/schemables/WithInt/instances/encoder.ts @@ -10,8 +10,7 @@ * @since 1.0.0 */ import * as Enc from 'io-ts/Encoder' - -import { WithInt2 } from '../definition' +import { WithInt2 } from 'schemata-ts/schemables/WithInt/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithInt/instances/eq.ts b/src/schemables/WithInt/instances/eq.ts index e0e47261..211b5d2c 100644 --- a/src/schemables/WithInt/instances/eq.ts +++ b/src/schemables/WithInt/instances/eq.ts @@ -11,8 +11,7 @@ */ import * as Eq_ from 'fp-ts/Eq' import * as N from 'fp-ts/number' - -import { WithInt1 } from '../definition' +import { WithInt1 } from 'schemata-ts/schemables/WithInt/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithInt/instances/guard.ts b/src/schemables/WithInt/instances/guard.ts index e282e003..78ffb76d 100644 --- a/src/schemables/WithInt/instances/guard.ts +++ b/src/schemables/WithInt/instances/guard.ts @@ -11,9 +11,8 @@ */ import { pipe } from 'fp-ts/function' import * as G from 'io-ts/Guard' - -import { WithInt1 } from '../definition' -import { isInt } from '../utils' +import { WithInt1 } from 'schemata-ts/schemables/WithInt/definition' +import { isInt } from 'schemata-ts/schemables/WithInt/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithInt/instances/json-schema.ts b/src/schemables/WithInt/instances/json-schema.ts index 762a0fa6..c7d9273d 100644 --- a/src/schemables/WithInt/instances/json-schema.ts +++ b/src/schemables/WithInt/instances/json-schema.ts @@ -9,8 +9,8 @@ * * @since 1.2.0 */ -import * as JS from '../../../base/JsonSchemaBase' -import { WithInt2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithInt2 } from 'schemata-ts/schemables/WithInt/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithInt/instances/printer.ts b/src/schemables/WithInt/instances/printer.ts index dc5d066d..043eacbb 100644 --- a/src/schemables/WithInt/instances/printer.ts +++ b/src/schemables/WithInt/instances/printer.ts @@ -9,8 +9,8 @@ * * @since 1.1.0 */ -import * as P from '../../../base/PrinterBase' -import { WithInt2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithInt2 } from 'schemata-ts/schemables/WithInt/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithInt/instances/schema.ts b/src/schemables/WithInt/instances/schema.ts index 4ae17e30..3394c716 100644 --- a/src/schemables/WithInt/instances/schema.ts +++ b/src/schemables/WithInt/instances/schema.ts @@ -9,9 +9,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithInt2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithInt2 } from 'schemata-ts/schemables/WithInt/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithInt/instances/task-decoder.ts b/src/schemables/WithInt/instances/task-decoder.ts index f90a800d..70f9c1ac 100644 --- a/src/schemables/WithInt/instances/task-decoder.ts +++ b/src/schemables/WithInt/instances/task-decoder.ts @@ -11,9 +11,8 @@ */ import { pipe } from 'fp-ts/function' import * as TD from 'io-ts/TaskDecoder' - -import { WithInt2C } from '../definition' -import { isInt } from '../utils' +import { WithInt2C } from 'schemata-ts/schemables/WithInt/definition' +import { isInt } from 'schemata-ts/schemables/WithInt/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithInt/instances/type.ts b/src/schemables/WithInt/instances/type.ts index 703ffd12..cd3edd44 100644 --- a/src/schemables/WithInt/instances/type.ts +++ b/src/schemables/WithInt/instances/type.ts @@ -11,9 +11,8 @@ */ import { pipe } from 'fp-ts/function' import * as t from 'io-ts/Type' - -import { WithInt1 } from '../definition' -import { isInt } from '../utils' +import { WithInt1 } from 'schemata-ts/schemables/WithInt/definition' +import { isInt } from 'schemata-ts/schemables/WithInt/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithInt/utils.ts b/src/schemables/WithInt/utils.ts index 25c53384..154222e0 100644 --- a/src/schemables/WithInt/utils.ts +++ b/src/schemables/WithInt/utils.ts @@ -3,7 +3,7 @@ * * @since 1.0.0 */ -import { Int, IntParams } from './definition' +import { Int, IntParams } from 'schemata-ts/schemables/WithInt/definition' /** @since 1.0.0 */ export const isInt = diff --git a/src/schemables/WithInvariant/definition.ts b/src/schemables/WithInvariant/definition.ts index b781e51e..fd07dc6d 100644 --- a/src/schemables/WithInvariant/definition.ts +++ b/src/schemables/WithInvariant/definition.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import { HKT2, Kind, Kind2, URIS, URIS2 } from 'fp-ts/HKT' - -import * as G from '../../base/GuardBase' +import * as G from 'schemata-ts/base/GuardBase' /** * @since 1.0.0 diff --git a/src/schemables/WithInvariant/instances/arbitrary.ts b/src/schemables/WithInvariant/instances/arbitrary.ts index 8b03859d..4ad8040f 100644 --- a/src/schemables/WithInvariant/instances/arbitrary.ts +++ b/src/schemables/WithInvariant/instances/arbitrary.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as Arb from '../../../base/ArbitraryBase' -import { WithInvariant1 } from '../definition' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithInvariant1 } from 'schemata-ts/schemables/WithInvariant/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithInvariant/instances/decoder.ts b/src/schemables/WithInvariant/instances/decoder.ts index 2d05411d..171c8873 100644 --- a/src/schemables/WithInvariant/instances/decoder.ts +++ b/src/schemables/WithInvariant/instances/decoder.ts @@ -5,9 +5,8 @@ */ import * as E from 'fp-ts/Either' import { flow } from 'fp-ts/function' - -import * as D from '../../../base/DecoderBase' -import { WithInvariant2C } from '../definition' +import * as D from 'schemata-ts/base/DecoderBase' +import { WithInvariant2C } from 'schemata-ts/schemables/WithInvariant/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithInvariant/instances/encoder.ts b/src/schemables/WithInvariant/instances/encoder.ts index 8ea5df39..c9c91fcf 100644 --- a/src/schemables/WithInvariant/instances/encoder.ts +++ b/src/schemables/WithInvariant/instances/encoder.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { flow } from 'fp-ts/function' - -import * as Enc from '../../../base/EncoderBase' -import { WithInvariant2 } from '../definition' +import * as Enc from 'schemata-ts/base/EncoderBase' +import { WithInvariant2 } from 'schemata-ts/schemables/WithInvariant/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithInvariant/instances/eq.ts b/src/schemables/WithInvariant/instances/eq.ts index 849bf9b1..57f3a5e2 100644 --- a/src/schemables/WithInvariant/instances/eq.ts +++ b/src/schemables/WithInvariant/instances/eq.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as Eq_ from '../../../base/EqBase' -import { WithInvariant1 } from '../definition' +import * as Eq_ from 'schemata-ts/base/EqBase' +import { WithInvariant1 } from 'schemata-ts/schemables/WithInvariant/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithInvariant/instances/guard.ts b/src/schemables/WithInvariant/instances/guard.ts index dff62c45..9776732b 100644 --- a/src/schemables/WithInvariant/instances/guard.ts +++ b/src/schemables/WithInvariant/instances/guard.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as G from '../../../base/GuardBase' -import { WithInvariant1 } from '../definition' +import * as G from 'schemata-ts/base/GuardBase' +import { WithInvariant1 } from 'schemata-ts/schemables/WithInvariant/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithInvariant/instances/json-schema.ts b/src/schemables/WithInvariant/instances/json-schema.ts index 8f125fa7..57094e84 100644 --- a/src/schemables/WithInvariant/instances/json-schema.ts +++ b/src/schemables/WithInvariant/instances/json-schema.ts @@ -4,9 +4,8 @@ * @since 1.2.0 */ import { identity } from 'fp-ts/function' - -import * as JS from '../../../base/JsonSchemaBase' -import { WithInvariant2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithInvariant2 } from 'schemata-ts/schemables/WithInvariant/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithInvariant/instances/printer.ts b/src/schemables/WithInvariant/instances/printer.ts index 276d7371..2619c0b0 100644 --- a/src/schemables/WithInvariant/instances/printer.ts +++ b/src/schemables/WithInvariant/instances/printer.ts @@ -4,9 +4,8 @@ * @since 1.1.0 */ import { flow } from 'fp-ts/function' - -import * as P from '../../../base/PrinterBase' -import { WithInvariant2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithInvariant2 } from 'schemata-ts/schemables/WithInvariant/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithInvariant/instances/schema.ts b/src/schemables/WithInvariant/instances/schema.ts index 60e4f0f3..723a034f 100644 --- a/src/schemables/WithInvariant/instances/schema.ts +++ b/src/schemables/WithInvariant/instances/schema.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithInvariant2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithInvariant2 } from 'schemata-ts/schemables/WithInvariant/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithInvariant/instances/task-decoder.ts b/src/schemables/WithInvariant/instances/task-decoder.ts index ab67efd9..ef011589 100644 --- a/src/schemables/WithInvariant/instances/task-decoder.ts +++ b/src/schemables/WithInvariant/instances/task-decoder.ts @@ -5,9 +5,8 @@ */ import { flow } from 'fp-ts/function' import * as TE from 'fp-ts/TaskEither' - -import * as TD from '../../../base/TaskDecoderBase' -import { WithInvariant2C } from '../definition' +import * as TD from 'schemata-ts/base/TaskDecoderBase' +import { WithInvariant2C } from 'schemata-ts/schemables/WithInvariant/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithInvariant/instances/type.ts b/src/schemables/WithInvariant/instances/type.ts index d3fc886d..7eb125d1 100644 --- a/src/schemables/WithInvariant/instances/type.ts +++ b/src/schemables/WithInvariant/instances/type.ts @@ -6,9 +6,8 @@ import * as E from 'fp-ts/Either' import { flow, pipe } from 'fp-ts/function' import { Type as Type_ } from 'io-ts' - -import * as t from '../../../base/TypeBase' -import { WithInvariant1 } from '../definition' +import * as t from 'schemata-ts/base/TypeBase' +import { WithInvariant1 } from 'schemata-ts/schemables/WithInvariant/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithJson/definition.ts b/src/schemables/WithJson/definition.ts index 3e302c22..616f4897 100644 --- a/src/schemables/WithJson/definition.ts +++ b/src/schemables/WithJson/definition.ts @@ -5,8 +5,7 @@ */ import { HKT2, Kind, Kind2, URIS, URIS2 } from 'fp-ts/HKT' import * as J from 'fp-ts/Json' - -import { JsonString, SafeJson } from '../../base/PrinterBase' +import { JsonString, SafeJson } from 'schemata-ts/base/PrinterBase' /** * @since 1.1.0 diff --git a/src/schemables/WithJson/instances/arbitrary.ts b/src/schemables/WithJson/instances/arbitrary.ts index 1711f2e9..02b1ec7d 100644 --- a/src/schemables/WithJson/instances/arbitrary.ts +++ b/src/schemables/WithJson/instances/arbitrary.ts @@ -4,10 +4,9 @@ * @since 1.1.0 */ import type { Arbitrary as Arbitrary_ } from 'fast-check' - -import * as Arb from '../../../base/ArbitraryBase' -import { JsonString, SafeJson } from '../../../base/PrinterBase' -import { WithJson1 } from '../definition' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { JsonString, SafeJson } from 'schemata-ts/base/PrinterBase' +import { WithJson1 } from 'schemata-ts/schemables/WithJson/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithJson/instances/decoder.ts b/src/schemables/WithJson/instances/decoder.ts index 9e14041b..d6729060 100644 --- a/src/schemables/WithJson/instances/decoder.ts +++ b/src/schemables/WithJson/instances/decoder.ts @@ -3,9 +3,9 @@ * * @since 1.1.0 */ -import * as D from '../../../base/DecoderBase' -import { WithJson2C } from '../definition' -import { Guard } from './guard' +import * as D from 'schemata-ts/base/DecoderBase' +import { WithJson2C } from 'schemata-ts/schemables/WithJson/definition' +import { Guard } from 'schemata-ts/schemables/WithJson/instances/guard' /** * @since 1.1.0 diff --git a/src/schemables/WithJson/instances/encoder.ts b/src/schemables/WithJson/instances/encoder.ts index b040b50c..3e2a35dd 100644 --- a/src/schemables/WithJson/instances/encoder.ts +++ b/src/schemables/WithJson/instances/encoder.ts @@ -4,9 +4,8 @@ * @since 1.1.0 */ import { unsafeCoerce } from 'fp-ts/function' - -import * as Enc from '../../../base/EncoderBase' -import { WithJson2 } from '../definition' +import * as Enc from 'schemata-ts/base/EncoderBase' +import { WithJson2 } from 'schemata-ts/schemables/WithJson/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithJson/instances/eq.ts b/src/schemables/WithJson/instances/eq.ts index 47e89f48..ff5a440e 100644 --- a/src/schemables/WithJson/instances/eq.ts +++ b/src/schemables/WithJson/instances/eq.ts @@ -6,10 +6,9 @@ import { unsafeCoerce } from 'fp-ts/function' import * as RA from 'fp-ts/ReadonlyArray' import * as RR from 'fp-ts/ReadonlyRecord' - -import * as Eq_ from '../../../base/EqBase' -import { SafeJson } from '../../../base/PrinterBase' -import { WithJson1 } from '../definition' +import * as Eq_ from 'schemata-ts/base/EqBase' +import { SafeJson } from 'schemata-ts/base/PrinterBase' +import { WithJson1 } from 'schemata-ts/schemables/WithJson/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithJson/instances/guard.ts b/src/schemables/WithJson/instances/guard.ts index b8631248..e4ee2b15 100644 --- a/src/schemables/WithJson/instances/guard.ts +++ b/src/schemables/WithJson/instances/guard.ts @@ -6,10 +6,9 @@ import * as E from 'fp-ts/Either' import { pipe } from 'fp-ts/function' import * as J from 'fp-ts/Json' - -import * as G from '../../../base/GuardBase' -import { JsonString, SafeJson, toJson } from '../../../base/PrinterBase' -import { WithJson1 } from '../definition' +import * as G from 'schemata-ts/base/GuardBase' +import { JsonString, SafeJson, toJson } from 'schemata-ts/base/PrinterBase' +import { WithJson1 } from 'schemata-ts/schemables/WithJson/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithJson/instances/json-schema.ts b/src/schemables/WithJson/instances/json-schema.ts index 58ffcbd1..41549c99 100644 --- a/src/schemables/WithJson/instances/json-schema.ts +++ b/src/schemables/WithJson/instances/json-schema.ts @@ -3,8 +3,8 @@ * * @since 1.2.0 */ -import * as JS from '../../../base/JsonSchemaBase' -import { WithJson2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithJson2 } from 'schemata-ts/schemables/WithJson/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithJson/instances/printer.ts b/src/schemables/WithJson/instances/printer.ts index 314cd876..e68a519d 100644 --- a/src/schemables/WithJson/instances/printer.ts +++ b/src/schemables/WithJson/instances/printer.ts @@ -5,9 +5,8 @@ */ import * as E from 'fp-ts/Either' import { flow } from 'fp-ts/function' - -import * as P from '../../../base/PrinterBase' -import { WithJson2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithJson2 } from 'schemata-ts/schemables/WithJson/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithJson/instances/schema.ts b/src/schemables/WithJson/instances/schema.ts index dfe3c538..8574fbda 100644 --- a/src/schemables/WithJson/instances/schema.ts +++ b/src/schemables/WithJson/instances/schema.ts @@ -3,9 +3,9 @@ * * @since 1.1.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithJson2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithJson2 } from 'schemata-ts/schemables/WithJson/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.1.0 diff --git a/src/schemables/WithJson/instances/task-decoder.ts b/src/schemables/WithJson/instances/task-decoder.ts index 06122f91..7203c43e 100644 --- a/src/schemables/WithJson/instances/task-decoder.ts +++ b/src/schemables/WithJson/instances/task-decoder.ts @@ -3,9 +3,9 @@ * * @since 1.1.0 */ -import * as TD from '../../../base/TaskDecoderBase' -import { WithJson2C } from '../definition' -import { Guard } from './guard' +import * as TD from 'schemata-ts/base/TaskDecoderBase' +import { WithJson2C } from 'schemata-ts/schemables/WithJson/definition' +import { Guard } from 'schemata-ts/schemables/WithJson/instances/guard' /** * @since 1.1.0 diff --git a/src/schemables/WithJson/instances/type.ts b/src/schemables/WithJson/instances/type.ts index 38755811..9a9a67b0 100644 --- a/src/schemables/WithJson/instances/type.ts +++ b/src/schemables/WithJson/instances/type.ts @@ -4,11 +4,10 @@ * @since 1.1.0 */ import { failure, success, Type as Type_ } from 'io-ts' - -import * as t from '../../../base/TypeBase' -import { WithJson1 } from '../definition' -import { Encoder } from './encoder' -import { Guard } from './guard' +import * as t from 'schemata-ts/base/TypeBase' +import { WithJson1 } from 'schemata-ts/schemables/WithJson/definition' +import { Encoder } from 'schemata-ts/schemables/WithJson/instances/encoder' +import { Guard } from 'schemata-ts/schemables/WithJson/instances/guard' /** * @since 1.1.0 diff --git a/src/schemables/WithMap/instances/arbitrary.ts b/src/schemables/WithMap/instances/arbitrary.ts index 0c9c4a40..0a91da5a 100644 --- a/src/schemables/WithMap/instances/arbitrary.ts +++ b/src/schemables/WithMap/instances/arbitrary.ts @@ -6,9 +6,8 @@ import * as RA from 'fp-ts/ReadonlyArray' import * as RM from 'fp-ts/ReadonlyMap' import * as Sg from 'fp-ts/Semigroup' - -import * as Arb from '../../../base/ArbitraryBase' -import { WithMap1 } from '../definition' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithMap1 } from 'schemata-ts/schemables/WithMap/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithMap/instances/decoder.ts b/src/schemables/WithMap/instances/decoder.ts index 749e3de8..e469549b 100644 --- a/src/schemables/WithMap/instances/decoder.ts +++ b/src/schemables/WithMap/instances/decoder.ts @@ -9,8 +9,7 @@ import * as RA from 'fp-ts/ReadonlyArray' import * as RM from 'fp-ts/ReadonlyMap' import * as Sg from 'fp-ts/Semigroup' import * as D from 'io-ts/Decoder' - -import { WithMap2C } from '../definition' +import { WithMap2C } from 'schemata-ts/schemables/WithMap/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithMap/instances/encoder.ts b/src/schemables/WithMap/instances/encoder.ts index eaeb07a0..3c1d2c6d 100644 --- a/src/schemables/WithMap/instances/encoder.ts +++ b/src/schemables/WithMap/instances/encoder.ts @@ -8,8 +8,7 @@ import * as RA from 'fp-ts/ReadonlyArray' import * as RM from 'fp-ts/ReadonlyMap' import * as RTup from 'fp-ts/ReadonlyTuple' import * as Enc from 'io-ts/Encoder' - -import { WithMap2 } from '../definition' +import { WithMap2 } from 'schemata-ts/schemables/WithMap/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithMap/instances/eq.ts b/src/schemables/WithMap/instances/eq.ts index 8df0e7f7..ddcfbe55 100644 --- a/src/schemables/WithMap/instances/eq.ts +++ b/src/schemables/WithMap/instances/eq.ts @@ -5,8 +5,7 @@ */ import * as Eq_ from 'fp-ts/Eq' import * as RM from 'fp-ts/ReadonlyMap' - -import { WithMap1 } from '../definition' +import { WithMap1 } from 'schemata-ts/schemables/WithMap/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithMap/instances/guard.ts b/src/schemables/WithMap/instances/guard.ts index d90a0a5b..14963488 100644 --- a/src/schemables/WithMap/instances/guard.ts +++ b/src/schemables/WithMap/instances/guard.ts @@ -8,8 +8,7 @@ import { pipe } from 'fp-ts/function' import * as Ord from 'fp-ts/Ord' import * as RM from 'fp-ts/ReadonlyMap' import * as G from 'io-ts/Guard' - -import { WithMap1 } from '../definition' +import { WithMap1 } from 'schemata-ts/schemables/WithMap/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithMap/instances/json-schema.ts b/src/schemables/WithMap/instances/json-schema.ts index a5690ae0..c9417699 100644 --- a/src/schemables/WithMap/instances/json-schema.ts +++ b/src/schemables/WithMap/instances/json-schema.ts @@ -3,8 +3,8 @@ * * @since 1.2.0 */ -import * as JS from '../../../base/JsonSchemaBase' -import { WithMap2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithMap2 } from 'schemata-ts/schemables/WithMap/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithMap/instances/printer.ts b/src/schemables/WithMap/instances/printer.ts index e1248c4f..f16e7eae 100644 --- a/src/schemables/WithMap/instances/printer.ts +++ b/src/schemables/WithMap/instances/printer.ts @@ -8,10 +8,9 @@ import * as E from 'fp-ts/Either' import { flow, pipe } from 'fp-ts/function' import * as RA from 'fp-ts/ReadonlyArray' import * as RM from 'fp-ts/ReadonlyMap' - -import * as P from '../../../base/PrinterBase' -import * as PE from '../../../PrintError' -import { WithMap2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import * as PE from 'schemata-ts/PrintError' +import { WithMap2 } from 'schemata-ts/schemables/WithMap/definition' const apSV = apS(P.printerValidation) diff --git a/src/schemables/WithMap/instances/schema.ts b/src/schemables/WithMap/instances/schema.ts index b9ed9d9c..912ec177 100644 --- a/src/schemables/WithMap/instances/schema.ts +++ b/src/schemables/WithMap/instances/schema.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import * as Ord from 'fp-ts/Ord' - -import * as SC from '../../../SchemaExt' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithMap/instances/task-decoder.ts b/src/schemables/WithMap/instances/task-decoder.ts index eec3a702..a46f0cca 100644 --- a/src/schemables/WithMap/instances/task-decoder.ts +++ b/src/schemables/WithMap/instances/task-decoder.ts @@ -9,8 +9,7 @@ import * as RM from 'fp-ts/ReadonlyMap' import * as Sg from 'fp-ts/Semigroup' import * as TE from 'fp-ts/TaskEither' import * as TD from 'io-ts/TaskDecoder' - -import { WithMap2C } from '../definition' +import { WithMap2C } from 'schemata-ts/schemables/WithMap/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithMap/instances/type.ts b/src/schemables/WithMap/instances/type.ts index 2c04981b..9918908b 100644 --- a/src/schemables/WithMap/instances/type.ts +++ b/src/schemables/WithMap/instances/type.ts @@ -11,10 +11,9 @@ import * as RM from 'fp-ts/ReadonlyMap' import * as Sg from 'fp-ts/Semigroup' import { Type as Type_ } from 'io-ts' import * as t from 'io-ts/Type' - -import { WithMap1 } from '../definition' -import { Encoder } from './encoder' -import { Guard } from './guard' +import { WithMap1 } from 'schemata-ts/schemables/WithMap/definition' +import { Encoder } from 'schemata-ts/schemables/WithMap/instances/encoder' +import { Guard } from 'schemata-ts/schemables/WithMap/instances/guard' /** * @since 1.0.0 diff --git a/src/schemables/WithOption/instances/arbitrary.ts b/src/schemables/WithOption/instances/arbitrary.ts index cfb1d146..f05d246e 100644 --- a/src/schemables/WithOption/instances/arbitrary.ts +++ b/src/schemables/WithOption/instances/arbitrary.ts @@ -4,8 +4,8 @@ * * @since 1.0.0 */ -import * as Arb from '../../../base/ArbitraryBase' -import { WithOption1 } from '../definition' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithOption1 } from 'schemata-ts/schemables/WithOption/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOption/instances/decoder.ts b/src/schemables/WithOption/instances/decoder.ts index 3e810a11..72f089ab 100644 --- a/src/schemables/WithOption/instances/decoder.ts +++ b/src/schemables/WithOption/instances/decoder.ts @@ -9,8 +9,7 @@ import * as Eq_ from 'fp-ts/Eq' import { flow } from 'fp-ts/function' import * as O from 'fp-ts/Option' import * as D from 'io-ts/Decoder' - -import { WithOption2C } from '../definition' +import { WithOption2C } from 'schemata-ts/schemables/WithOption/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOption/instances/encoder.ts b/src/schemables/WithOption/instances/encoder.ts index 81023224..c688c74a 100644 --- a/src/schemables/WithOption/instances/encoder.ts +++ b/src/schemables/WithOption/instances/encoder.ts @@ -7,8 +7,7 @@ import { flow } from 'fp-ts/function' import * as O from 'fp-ts/Option' import * as Enc from 'io-ts/Encoder' - -import { WithOption2 } from '../definition' +import { WithOption2 } from 'schemata-ts/schemables/WithOption/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOption/instances/eq.ts b/src/schemables/WithOption/instances/eq.ts index 3b1aa9b4..ae45f490 100644 --- a/src/schemables/WithOption/instances/eq.ts +++ b/src/schemables/WithOption/instances/eq.ts @@ -7,8 +7,7 @@ import * as Eq_ from 'fp-ts/Eq' import { flow, SK } from 'fp-ts/function' import * as O from 'fp-ts/Option' - -import { WithOption1 } from '../definition' +import { WithOption1 } from 'schemata-ts/schemables/WithOption/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOption/instances/guard.ts b/src/schemables/WithOption/instances/guard.ts index d370e175..e4a93479 100644 --- a/src/schemables/WithOption/instances/guard.ts +++ b/src/schemables/WithOption/instances/guard.ts @@ -5,8 +5,7 @@ * @since 1.0.0 */ import * as G from 'io-ts/Guard' - -import { WithOption1 } from '../definition' +import { WithOption1 } from 'schemata-ts/schemables/WithOption/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOption/instances/json-schema.ts b/src/schemables/WithOption/instances/json-schema.ts index a7850752..535cde16 100644 --- a/src/schemables/WithOption/instances/json-schema.ts +++ b/src/schemables/WithOption/instances/json-schema.ts @@ -4,8 +4,8 @@ * * @since 1.2.0 */ -import * as JS from '../../../base/JsonSchemaBase' -import { WithOption2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithOption2 } from 'schemata-ts/schemables/WithOption/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithOption/instances/printer.ts b/src/schemables/WithOption/instances/printer.ts index 17d8508e..25fc9270 100644 --- a/src/schemables/WithOption/instances/printer.ts +++ b/src/schemables/WithOption/instances/printer.ts @@ -7,9 +7,8 @@ import * as Eq from 'fp-ts/Eq' import { flow } from 'fp-ts/function' import * as O from 'fp-ts/Option' - -import * as P from '../../../base/PrinterBase' -import { WithOption2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithOption2 } from 'schemata-ts/schemables/WithOption/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithOption/instances/schema.ts b/src/schemables/WithOption/instances/schema.ts index 0e30404f..95379000 100644 --- a/src/schemables/WithOption/instances/schema.ts +++ b/src/schemables/WithOption/instances/schema.ts @@ -4,9 +4,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithOption2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithOption2 } from 'schemata-ts/schemables/WithOption/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithOption/instances/task-decoder.ts b/src/schemables/WithOption/instances/task-decoder.ts index a9920134..e652017e 100644 --- a/src/schemables/WithOption/instances/task-decoder.ts +++ b/src/schemables/WithOption/instances/task-decoder.ts @@ -9,8 +9,7 @@ import { flow } from 'fp-ts/function' import * as O from 'fp-ts/Option' import * as TE from 'fp-ts/TaskEither' import * as TD from 'io-ts/TaskDecoder' - -import { WithOption2C } from '../definition' +import { WithOption2C } from 'schemata-ts/schemables/WithOption/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOption/instances/type.ts b/src/schemables/WithOption/instances/type.ts index e3910838..31b228af 100644 --- a/src/schemables/WithOption/instances/type.ts +++ b/src/schemables/WithOption/instances/type.ts @@ -10,10 +10,9 @@ import { flow } from 'fp-ts/function' import * as O from 'fp-ts/Option' import * as t_ from 'io-ts' import * as t from 'io-ts/Type' - -import { WithOption1 } from '../definition' -import { Encoder } from './encoder' -import { Guard } from './guard' +import { WithOption1 } from 'schemata-ts/schemables/WithOption/definition' +import { Encoder } from 'schemata-ts/schemables/WithOption/instances/encoder' +import { Guard } from 'schemata-ts/schemables/WithOption/instances/guard' /** * @since 1.0.0 diff --git a/src/schemables/WithOptional/instances/arbitrary.ts b/src/schemables/WithOptional/instances/arbitrary.ts index 73e303fc..b767b3ae 100644 --- a/src/schemables/WithOptional/instances/arbitrary.ts +++ b/src/schemables/WithOptional/instances/arbitrary.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as Arb from '../../../base/ArbitraryBase' -import { WithOptional1 } from '../definition' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithOptional1 } from 'schemata-ts/schemables/WithOptional/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOptional/instances/decoder.ts b/src/schemables/WithOptional/instances/decoder.ts index 29f38083..83448eb9 100644 --- a/src/schemables/WithOptional/instances/decoder.ts +++ b/src/schemables/WithOptional/instances/decoder.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as D from '../../../base/DecoderBase' -import { WithOptional2C } from '../definition' +import * as D from 'schemata-ts/base/DecoderBase' +import { WithOptional2C } from 'schemata-ts/schemables/WithOptional/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOptional/instances/encoder.ts b/src/schemables/WithOptional/instances/encoder.ts index ed5817ad..614963d6 100644 --- a/src/schemables/WithOptional/instances/encoder.ts +++ b/src/schemables/WithOptional/instances/encoder.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as Enc from '../../../base/EncoderBase' -import { WithOptional2 } from '../definition' +import * as Enc from 'schemata-ts/base/EncoderBase' +import { WithOptional2 } from 'schemata-ts/schemables/WithOptional/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOptional/instances/eq.ts b/src/schemables/WithOptional/instances/eq.ts index 62b5d5ec..e210d471 100644 --- a/src/schemables/WithOptional/instances/eq.ts +++ b/src/schemables/WithOptional/instances/eq.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import * as Eq_ from 'fp-ts/Eq' - -import { WithOptional1 } from '../definition' +import { WithOptional1 } from 'schemata-ts/schemables/WithOptional/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOptional/instances/guard.ts b/src/schemables/WithOptional/instances/guard.ts index 7a746c42..353a979c 100644 --- a/src/schemables/WithOptional/instances/guard.ts +++ b/src/schemables/WithOptional/instances/guard.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as G from '../../../base/GuardBase' -import { WithOptional1 } from '../definition' +import * as G from 'schemata-ts/base/GuardBase' +import { WithOptional1 } from 'schemata-ts/schemables/WithOptional/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOptional/instances/json-schema.ts b/src/schemables/WithOptional/instances/json-schema.ts index f2216792..317714ce 100644 --- a/src/schemables/WithOptional/instances/json-schema.ts +++ b/src/schemables/WithOptional/instances/json-schema.ts @@ -3,8 +3,8 @@ * * @since 1.2.0 */ -import * as JS from '../../../base/JsonSchemaBase' -import { WithOptional2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithOptional2 } from 'schemata-ts/schemables/WithOptional/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithOptional/instances/printer.ts b/src/schemables/WithOptional/instances/printer.ts index c70ebced..14ce4d21 100644 --- a/src/schemables/WithOptional/instances/printer.ts +++ b/src/schemables/WithOptional/instances/printer.ts @@ -4,10 +4,9 @@ * @since 1.1.0 */ import * as E from 'fp-ts/Either' - -import * as P from '../../../base/PrinterBase' -import * as PE from '../../../PrintError' -import { WithOptional2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import * as PE from 'schemata-ts/PrintError' +import { WithOptional2 } from 'schemata-ts/schemables/WithOptional/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithOptional/instances/schema.ts b/src/schemables/WithOptional/instances/schema.ts index 6082b263..012f63f1 100644 --- a/src/schemables/WithOptional/instances/schema.ts +++ b/src/schemables/WithOptional/instances/schema.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithOptional2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithOptional2 } from 'schemata-ts/schemables/WithOptional/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithOptional/instances/task-decoder.ts b/src/schemables/WithOptional/instances/task-decoder.ts index fc49f10f..222cced2 100644 --- a/src/schemables/WithOptional/instances/task-decoder.ts +++ b/src/schemables/WithOptional/instances/task-decoder.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as TD from '../../../base/TaskDecoderBase' -import { WithOptional2C } from '../definition' +import * as TD from 'schemata-ts/base/TaskDecoderBase' +import { WithOptional2C } from 'schemata-ts/schemables/WithOptional/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithOptional/instances/type.ts b/src/schemables/WithOptional/instances/type.ts index ae8f1ab4..02810296 100644 --- a/src/schemables/WithOptional/instances/type.ts +++ b/src/schemables/WithOptional/instances/type.ts @@ -4,11 +4,10 @@ * @since 1.0.0 */ import * as t_ from 'io-ts' - -import * as t from '../../../base/TypeBase' -import { WithOptional1 } from '../definition' -import { Encoder } from './encoder' -import { Guard } from './guard' +import * as t from 'schemata-ts/base/TypeBase' +import { WithOptional1 } from 'schemata-ts/schemables/WithOptional/definition' +import { Encoder } from 'schemata-ts/schemables/WithOptional/instances/encoder' +import { Guard } from 'schemata-ts/schemables/WithOptional/instances/guard' /** * @since 1.0.0 diff --git a/src/schemables/WithPadding/instances/arbitrary.ts b/src/schemables/WithPadding/instances/arbitrary.ts index 77c263ff..a6fd9f7f 100644 --- a/src/schemables/WithPadding/instances/arbitrary.ts +++ b/src/schemables/WithPadding/instances/arbitrary.ts @@ -4,10 +4,14 @@ * @since 1.0.0 */ import { flow, pipe } from 'fp-ts/function' - -import * as Arb from '../../../base/ArbitraryBase' -import { WithPadding1 } from '../definition' -import { foldUnion, match, stripLeftWhile, stripRightWhile } from '../utils' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { WithPadding1 } from 'schemata-ts/schemables/WithPadding/definition' +import { + foldUnion, + match, + stripLeftWhile, + stripRightWhile, +} from 'schemata-ts/schemables/WithPadding/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithPadding/instances/decoder.ts b/src/schemables/WithPadding/instances/decoder.ts index 3e44b5c8..b82f0cb6 100644 --- a/src/schemables/WithPadding/instances/decoder.ts +++ b/src/schemables/WithPadding/instances/decoder.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import * as D from 'io-ts/Decoder' - -import { WithPadding2C } from '../definition' -import { foldUnion, match } from '../utils' +import { WithPadding2C } from 'schemata-ts/schemables/WithPadding/definition' +import { foldUnion, match } from 'schemata-ts/schemables/WithPadding/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithPadding/instances/encoder.ts b/src/schemables/WithPadding/instances/encoder.ts index 107aec11..396a7109 100644 --- a/src/schemables/WithPadding/instances/encoder.ts +++ b/src/schemables/WithPadding/instances/encoder.ts @@ -5,8 +5,7 @@ */ import { identity } from 'fp-ts/function' import * as Enc from 'io-ts/Encoder' - -import { WithPadding2 } from '../definition' +import { WithPadding2 } from 'schemata-ts/schemables/WithPadding/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithPadding/instances/eq.ts b/src/schemables/WithPadding/instances/eq.ts index bfc1ced5..752ded48 100644 --- a/src/schemables/WithPadding/instances/eq.ts +++ b/src/schemables/WithPadding/instances/eq.ts @@ -5,8 +5,7 @@ */ import * as Eq_ from 'fp-ts/Eq' import { identity } from 'fp-ts/function' - -import { WithPadding1 } from '../definition' +import { WithPadding1 } from 'schemata-ts/schemables/WithPadding/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithPadding/instances/guard.ts b/src/schemables/WithPadding/instances/guard.ts index 05f0c8ca..e80f69a6 100644 --- a/src/schemables/WithPadding/instances/guard.ts +++ b/src/schemables/WithPadding/instances/guard.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import * as G from 'io-ts/Guard' - -import { WithPadding1 } from '../definition' -import { foldUnion, match } from '../utils' +import { WithPadding1 } from 'schemata-ts/schemables/WithPadding/definition' +import { foldUnion, match } from 'schemata-ts/schemables/WithPadding/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithPadding/instances/json-schema.ts b/src/schemables/WithPadding/instances/json-schema.ts index d553fd87..f69a0568 100644 --- a/src/schemables/WithPadding/instances/json-schema.ts +++ b/src/schemables/WithPadding/instances/json-schema.ts @@ -4,10 +4,9 @@ * @since 1.2.0 */ import { pipe } from 'fp-ts/function' - -import * as JS from '../../../base/JsonSchemaBase' -import { WithPadding2 } from '../definition' -import { match } from '../utils' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithPadding2 } from 'schemata-ts/schemables/WithPadding/definition' +import { match } from 'schemata-ts/schemables/WithPadding/utils' /** * @since 1.2.0 diff --git a/src/schemables/WithPadding/instances/printer.ts b/src/schemables/WithPadding/instances/printer.ts index 05e478a4..a4f5c2d7 100644 --- a/src/schemables/WithPadding/instances/printer.ts +++ b/src/schemables/WithPadding/instances/printer.ts @@ -3,9 +3,9 @@ * * @since 1.1.0 */ -import * as P from '../../../base/PrinterBase' -import { WithPadding2 } from '../definition' -import { foldUnion, match } from '../utils' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithPadding2 } from 'schemata-ts/schemables/WithPadding/definition' +import { foldUnion, match } from 'schemata-ts/schemables/WithPadding/utils' /** * @since 1.1.0 diff --git a/src/schemables/WithPadding/instances/schema.ts b/src/schemables/WithPadding/instances/schema.ts index 80ef3fa2..ac250989 100644 --- a/src/schemables/WithPadding/instances/schema.ts +++ b/src/schemables/WithPadding/instances/schema.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithPadding2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithPadding2 } from 'schemata-ts/schemables/WithPadding/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithPadding/instances/task-decoder.ts b/src/schemables/WithPadding/instances/task-decoder.ts index d55c14ca..3d74f4c6 100644 --- a/src/schemables/WithPadding/instances/task-decoder.ts +++ b/src/schemables/WithPadding/instances/task-decoder.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import * as TD from 'io-ts/TaskDecoder' - -import { WithPadding2C } from '../definition' -import { foldUnion, match } from '../utils' +import { WithPadding2C } from 'schemata-ts/schemables/WithPadding/definition' +import { foldUnion, match } from 'schemata-ts/schemables/WithPadding/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithPadding/instances/type.ts b/src/schemables/WithPadding/instances/type.ts index 8fb39398..0906f038 100644 --- a/src/schemables/WithPadding/instances/type.ts +++ b/src/schemables/WithPadding/instances/type.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import * as t from 'io-ts/Type' - -import { WithPadding1 } from '../definition' -import { foldUnion, match } from '../utils' +import { WithPadding1 } from 'schemata-ts/schemables/WithPadding/definition' +import { foldUnion, match } from 'schemata-ts/schemables/WithPadding/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithPadding/utils.ts b/src/schemables/WithPadding/utils.ts index 46f08385..6cbe0d04 100644 --- a/src/schemables/WithPadding/utils.ts +++ b/src/schemables/WithPadding/utils.ts @@ -3,7 +3,7 @@ * * @since 1.0.0 */ -import { matchOnW } from '../../internal/match' +import { matchOnW } from 'schemata-ts/internal/match' /** @internal */ export const match = matchOnW('by') diff --git a/src/schemables/WithPattern/definition.ts b/src/schemables/WithPattern/definition.ts index 834ce72a..a36977d1 100644 --- a/src/schemables/WithPattern/definition.ts +++ b/src/schemables/WithPattern/definition.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import { HKT2, Kind, Kind2, URIS, URIS2 } from 'fp-ts/HKT' - -import { Pattern } from '../../PatternBuilder' +import { Pattern } from 'schemata-ts/PatternBuilder' /** * @since 1.0.0 diff --git a/src/schemables/WithPattern/instances/arbitrary.ts b/src/schemables/WithPattern/instances/arbitrary.ts index 8fc68db1..39abcecd 100644 --- a/src/schemables/WithPattern/instances/arbitrary.ts +++ b/src/schemables/WithPattern/instances/arbitrary.ts @@ -5,11 +5,10 @@ */ import { pipe } from 'fp-ts/function' import * as RA from 'fp-ts/ReadonlyArray' - -import * as Arb from '../../../base/ArbitraryBase' -import { match, matchOn } from '../../../internal/match' -import * as PB from '../../../PatternBuilder' -import { WithPattern1 } from '../definition' +import * as Arb from 'schemata-ts/base/ArbitraryBase' +import { match, matchOn } from 'schemata-ts/internal/match' +import * as PB from 'schemata-ts/PatternBuilder' +import { WithPattern1 } from 'schemata-ts/schemables/WithPattern/definition' const matchK = matchOn('kind') diff --git a/src/schemables/WithPattern/instances/decoder.ts b/src/schemables/WithPattern/instances/decoder.ts index 5ca4c016..fe498193 100644 --- a/src/schemables/WithPattern/instances/decoder.ts +++ b/src/schemables/WithPattern/instances/decoder.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import * as D from '../../../base/DecoderBase' -import { WithPattern2C } from '../definition' -import { pattern } from '../utils' +import * as D from 'schemata-ts/base/DecoderBase' +import { WithPattern2C } from 'schemata-ts/schemables/WithPattern/definition' +import { pattern } from 'schemata-ts/schemables/WithPattern/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithPattern/instances/encoder.ts b/src/schemables/WithPattern/instances/encoder.ts index 18d20bb7..717c6cd4 100644 --- a/src/schemables/WithPattern/instances/encoder.ts +++ b/src/schemables/WithPattern/instances/encoder.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import * as Enc from 'io-ts/Encoder' - -import { WithPattern2 } from '../definition' +import { WithPattern2 } from 'schemata-ts/schemables/WithPattern/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithPattern/instances/eq.ts b/src/schemables/WithPattern/instances/eq.ts index 57b4f19a..3c6b991d 100644 --- a/src/schemables/WithPattern/instances/eq.ts +++ b/src/schemables/WithPattern/instances/eq.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as Eq_ from '../../../base/EqBase' -import { WithPattern1 } from '../definition' +import * as Eq_ from 'schemata-ts/base/EqBase' +import { WithPattern1 } from 'schemata-ts/schemables/WithPattern/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithPattern/instances/guard.ts b/src/schemables/WithPattern/instances/guard.ts index 2e0b193e..b0c6d49b 100644 --- a/src/schemables/WithPattern/instances/guard.ts +++ b/src/schemables/WithPattern/instances/guard.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import * as G from '../../../base/GuardBase' -import { WithPattern1 } from '../definition' -import { pattern } from '../utils' +import * as G from 'schemata-ts/base/GuardBase' +import { WithPattern1 } from 'schemata-ts/schemables/WithPattern/definition' +import { pattern } from 'schemata-ts/schemables/WithPattern/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithPattern/instances/json-schema.ts b/src/schemables/WithPattern/instances/json-schema.ts index c272ca51..3dc2b00e 100644 --- a/src/schemables/WithPattern/instances/json-schema.ts +++ b/src/schemables/WithPattern/instances/json-schema.ts @@ -4,10 +4,9 @@ * @since 1.2.0 */ import { pipe } from 'fp-ts/function' - -import * as JS from '../../../base/JsonSchemaBase' -import * as PB from '../../../PatternBuilder' -import { WithPattern2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import * as PB from 'schemata-ts/PatternBuilder' +import { WithPattern2 } from 'schemata-ts/schemables/WithPattern/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithPattern/instances/printer.ts b/src/schemables/WithPattern/instances/printer.ts index dfc30c82..03f52afd 100644 --- a/src/schemables/WithPattern/instances/printer.ts +++ b/src/schemables/WithPattern/instances/printer.ts @@ -4,11 +4,10 @@ * @since 1.1.0 */ import * as E from 'fp-ts/Either' - -import * as P from '../../../base/PrinterBase' -import * as PB from '../../../PatternBuilder' -import * as PE from '../../../PrintError' -import { WithPattern2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import * as PB from 'schemata-ts/PatternBuilder' +import * as PE from 'schemata-ts/PrintError' +import { WithPattern2 } from 'schemata-ts/schemables/WithPattern/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithPattern/instances/schema.ts b/src/schemables/WithPattern/instances/schema.ts index 3cad82cb..5f9b0358 100644 --- a/src/schemables/WithPattern/instances/schema.ts +++ b/src/schemables/WithPattern/instances/schema.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithPattern2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithPattern2 } from 'schemata-ts/schemables/WithPattern/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithPattern/instances/task-decoder.ts b/src/schemables/WithPattern/instances/task-decoder.ts index 5a6897d2..957e536d 100644 --- a/src/schemables/WithPattern/instances/task-decoder.ts +++ b/src/schemables/WithPattern/instances/task-decoder.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import * as TD from '../../../base/TaskDecoderBase' -import { WithPattern2C } from '../definition' -import { pattern } from '../utils' +import * as TD from 'schemata-ts/base/TaskDecoderBase' +import { WithPattern2C } from 'schemata-ts/schemables/WithPattern/definition' +import { pattern } from 'schemata-ts/schemables/WithPattern/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithPattern/instances/type.ts b/src/schemables/WithPattern/instances/type.ts index 419a90af..da0b4599 100644 --- a/src/schemables/WithPattern/instances/type.ts +++ b/src/schemables/WithPattern/instances/type.ts @@ -4,10 +4,9 @@ * @since 1.0.0 */ import { pipe } from 'fp-ts/function' - -import * as t from '../../../base/TypeBase' -import { WithPattern1 } from '../definition' -import { pattern } from '../utils' +import * as t from 'schemata-ts/base/TypeBase' +import { WithPattern1 } from 'schemata-ts/schemables/WithPattern/definition' +import { pattern } from 'schemata-ts/schemables/WithPattern/utils' /** * @since 1.0.0 diff --git a/src/schemables/WithPattern/utils.ts b/src/schemables/WithPattern/utils.ts index 9117b61a..2e99cbdb 100644 --- a/src/schemables/WithPattern/utils.ts +++ b/src/schemables/WithPattern/utils.ts @@ -3,8 +3,8 @@ * * @since 1.0.0 */ -import * as G from '../../base/GuardBase' -import { Pattern, regexFromPattern } from '../../PatternBuilder' +import * as G from 'schemata-ts/base/GuardBase' +import { Pattern, regexFromPattern } from 'schemata-ts/PatternBuilder' /** @internal */ export const pattern: ( diff --git a/src/schemables/WithRefine/instances/arbitrary.ts b/src/schemables/WithRefine/instances/arbitrary.ts index 73dce386..9e281cf7 100644 --- a/src/schemables/WithRefine/instances/arbitrary.ts +++ b/src/schemables/WithRefine/instances/arbitrary.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithRefine as Arbitrary, -} from '../../../base/ArbitraryBase' +} from 'schemata-ts/base/ArbitraryBase' diff --git a/src/schemables/WithRefine/instances/decoder.ts b/src/schemables/WithRefine/instances/decoder.ts index 4dbe858c..7ffe79b2 100644 --- a/src/schemables/WithRefine/instances/decoder.ts +++ b/src/schemables/WithRefine/instances/decoder.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithRefine as Decoder, -} from '../../../base/DecoderBase' +} from 'schemata-ts/base/DecoderBase' diff --git a/src/schemables/WithRefine/instances/encoder.ts b/src/schemables/WithRefine/instances/encoder.ts index f680cce6..c3d4380d 100644 --- a/src/schemables/WithRefine/instances/encoder.ts +++ b/src/schemables/WithRefine/instances/encoder.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import * as Enc from 'io-ts/Encoder' - -import { WithRefine2 } from '../definition' +import { WithRefine2 } from 'schemata-ts/schemables/WithRefine/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithRefine/instances/eq.ts b/src/schemables/WithRefine/instances/eq.ts index 36822b6b..256a127d 100644 --- a/src/schemables/WithRefine/instances/eq.ts +++ b/src/schemables/WithRefine/instances/eq.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithRefine as Eq, -} from '../../../base/EqBase' +} from 'schemata-ts/base/EqBase' diff --git a/src/schemables/WithRefine/instances/guard.ts b/src/schemables/WithRefine/instances/guard.ts index e5875e9e..201db2d5 100644 --- a/src/schemables/WithRefine/instances/guard.ts +++ b/src/schemables/WithRefine/instances/guard.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithRefine as Guard, -} from '../../../base/GuardBase' +} from 'schemata-ts/base/GuardBase' diff --git a/src/schemables/WithRefine/instances/json-schema.ts b/src/schemables/WithRefine/instances/json-schema.ts index f547de7a..f4687e26 100644 --- a/src/schemables/WithRefine/instances/json-schema.ts +++ b/src/schemables/WithRefine/instances/json-schema.ts @@ -1,8 +1,7 @@ /** @since 1.2.0 */ import { identity } from 'fp-ts/function' - -import * as JS from '../../../base/JsonSchemaBase' -import { WithRefine2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithRefine2 } from 'schemata-ts/schemables/WithRefine/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithRefine/instances/printer.ts b/src/schemables/WithRefine/instances/printer.ts index 028cafb7..41e81b87 100644 --- a/src/schemables/WithRefine/instances/printer.ts +++ b/src/schemables/WithRefine/instances/printer.ts @@ -1,6 +1,6 @@ /** @since 1.1.0 */ -import * as P from '../../../base/PrinterBase' -import { WithRefine2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithRefine2 } from 'schemata-ts/schemables/WithRefine/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithRefine/instances/schema.ts b/src/schemables/WithRefine/instances/schema.ts index b8d0d3fd..a442484e 100644 --- a/src/schemables/WithRefine/instances/schema.ts +++ b/src/schemables/WithRefine/instances/schema.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithRefine2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithRefine2 } from 'schemata-ts/schemables/WithRefine/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithRefine/instances/task-decoder.ts b/src/schemables/WithRefine/instances/task-decoder.ts index 8cdb99b4..66a1898b 100644 --- a/src/schemables/WithRefine/instances/task-decoder.ts +++ b/src/schemables/WithRefine/instances/task-decoder.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithRefine as TaskDecoder, -} from '../../../base/TaskDecoderBase' +} from 'schemata-ts/base/TaskDecoderBase' diff --git a/src/schemables/WithRefine/instances/type.ts b/src/schemables/WithRefine/instances/type.ts index f13883f6..934a82e0 100644 --- a/src/schemables/WithRefine/instances/type.ts +++ b/src/schemables/WithRefine/instances/type.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithRefine as Type, -} from '../../../base/TypeBase' +} from 'schemata-ts/base/TypeBase' diff --git a/src/schemables/WithUnknownContainers/instances/arbitrary.ts b/src/schemables/WithUnknownContainers/instances/arbitrary.ts index 3bd99a66..7a30e56b 100644 --- a/src/schemables/WithUnknownContainers/instances/arbitrary.ts +++ b/src/schemables/WithUnknownContainers/instances/arbitrary.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithUnknownContainers as Arbitrary, -} from '../../../base/ArbitraryBase' +} from 'schemata-ts/base/ArbitraryBase' diff --git a/src/schemables/WithUnknownContainers/instances/decoder.ts b/src/schemables/WithUnknownContainers/instances/decoder.ts index 6e301075..ba898044 100644 --- a/src/schemables/WithUnknownContainers/instances/decoder.ts +++ b/src/schemables/WithUnknownContainers/instances/decoder.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithUnknownContainers as Decoder, -} from '../../../base/DecoderBase' +} from 'schemata-ts/base/DecoderBase' diff --git a/src/schemables/WithUnknownContainers/instances/encoder.ts b/src/schemables/WithUnknownContainers/instances/encoder.ts index 0b159a42..56993c41 100644 --- a/src/schemables/WithUnknownContainers/instances/encoder.ts +++ b/src/schemables/WithUnknownContainers/instances/encoder.ts @@ -4,8 +4,7 @@ * @since 1.0.0 */ import * as Enc from 'io-ts/Encoder' - -import { WithUnknownContainers2 } from '../definition' +import { WithUnknownContainers2 } from 'schemata-ts/schemables/WithUnknownContainers/definition' /** * @since 1.0.0 diff --git a/src/schemables/WithUnknownContainers/instances/eq.ts b/src/schemables/WithUnknownContainers/instances/eq.ts index a7ab5c4f..9735225a 100644 --- a/src/schemables/WithUnknownContainers/instances/eq.ts +++ b/src/schemables/WithUnknownContainers/instances/eq.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithUnknownContainers as Eq, -} from '../../../base/EqBase' +} from 'schemata-ts/base/EqBase' diff --git a/src/schemables/WithUnknownContainers/instances/guard.ts b/src/schemables/WithUnknownContainers/instances/guard.ts index 1f7f8231..7f7108ba 100644 --- a/src/schemables/WithUnknownContainers/instances/guard.ts +++ b/src/schemables/WithUnknownContainers/instances/guard.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithUnknownContainers as Guard, -} from '../../../base/GuardBase' +} from 'schemata-ts/base/GuardBase' diff --git a/src/schemables/WithUnknownContainers/instances/json-schema.ts b/src/schemables/WithUnknownContainers/instances/json-schema.ts index 0e17d5e4..acc6560c 100644 --- a/src/schemables/WithUnknownContainers/instances/json-schema.ts +++ b/src/schemables/WithUnknownContainers/instances/json-schema.ts @@ -1,6 +1,6 @@ /** @since 1.2.0 */ -import * as JS from '../../../base/JsonSchemaBase' -import { WithUnknownContainers2 } from '../definition' +import * as JS from 'schemata-ts/base/JsonSchemaBase' +import { WithUnknownContainers2 } from 'schemata-ts/schemables/WithUnknownContainers/definition' /** * @since 1.2.0 diff --git a/src/schemables/WithUnknownContainers/instances/printer.ts b/src/schemables/WithUnknownContainers/instances/printer.ts index e5fd4200..792b0793 100644 --- a/src/schemables/WithUnknownContainers/instances/printer.ts +++ b/src/schemables/WithUnknownContainers/instances/printer.ts @@ -1,6 +1,6 @@ /** @since 1.1.0 */ -import * as P from '../../../base/PrinterBase' -import { WithUnknownContainers2 } from '../definition' +import * as P from 'schemata-ts/base/PrinterBase' +import { WithUnknownContainers2 } from 'schemata-ts/schemables/WithUnknownContainers/definition' /** * @since 1.1.0 diff --git a/src/schemables/WithUnknownContainers/instances/schema.ts b/src/schemables/WithUnknownContainers/instances/schema.ts index 4b31bb26..2fe7ca01 100644 --- a/src/schemables/WithUnknownContainers/instances/schema.ts +++ b/src/schemables/WithUnknownContainers/instances/schema.ts @@ -3,9 +3,9 @@ * * @since 1.0.0 */ -import { URI as SchemaURI } from '../../../base/SchemaBase' -import * as SC from '../../../SchemaExt' -import { WithUnknownContainers2 } from '../definition' +import { URI as SchemaURI } from 'schemata-ts/base/SchemaBase' +import { WithUnknownContainers2 } from 'schemata-ts/schemables/WithUnknownContainers/definition' +import * as SC from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemables/WithUnknownContainers/instances/task-decoder.ts b/src/schemables/WithUnknownContainers/instances/task-decoder.ts index eb3da48a..b17cc4ee 100644 --- a/src/schemables/WithUnknownContainers/instances/task-decoder.ts +++ b/src/schemables/WithUnknownContainers/instances/task-decoder.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithUnknownContainers as TaskDecoder, -} from '../../../base/TaskDecoderBase' +} from 'schemata-ts/base/TaskDecoderBase' diff --git a/src/schemables/WithUnknownContainers/instances/type.ts b/src/schemables/WithUnknownContainers/instances/type.ts index 122c2046..24ad2062 100644 --- a/src/schemables/WithUnknownContainers/instances/type.ts +++ b/src/schemables/WithUnknownContainers/instances/type.ts @@ -10,4 +10,4 @@ export { * @category Instances */ WithUnknownContainers as Type, -} from '../../../base/TypeBase' +} from 'schemata-ts/base/TypeBase' diff --git a/src/schemata.ts b/src/schemata.ts index a90eb05c..71858074 100644 --- a/src/schemata.ts +++ b/src/schemata.ts @@ -15,11 +15,11 @@ export { OutputOf, /** @since 1.0.0 */ TypeOf, -} from './SchemaExt' +} from 'schemata-ts/SchemaExt' /** Base schemata */ -export * from './base/SchemaBase' +export * from 'schemata-ts/base/SchemaBase' /** Schemables */ @@ -30,28 +30,28 @@ export { * * @since 1.2.0 */ Schema as Annotate, -} from './schemables/WithAnnotate/instances/schema' +} from 'schemata-ts/schemables/WithAnnotate/instances/schema' export { /** * Schemable for constructing a branded newtype * * @since 1.0.0 */ Schema as Brand, -} from './schemables/WithBrand/instances/schema' +} from 'schemata-ts/schemables/WithBrand/instances/schema' export { /** * Schemable for constructing a string with a check digit (e.g. ISBN or Credit Card) * * @since 1.0.0 */ Schema as CheckDigit, -} from './schemables/WithCheckDigit/instances/schema' +} from 'schemata-ts/schemables/WithCheckDigit/instances/schema' export { /** * Represents valid Date objects, and valid date-strings parsable by `Date.parse` * * @since 1.0.0 */ Schema as Date, -} from './schemables/WithDate/instances/schema' +} from 'schemata-ts/schemables/WithDate/instances/schema' export { /** * Floating point branded newtype. Parameters: min, max are inclusive. @@ -64,7 +64,7 @@ export { * * @since 1.0.0 */ Schema as Float, -} from './schemables/WithFloat/instances/schema' +} from 'schemata-ts/schemables/WithFloat/instances/schema' export { /** * Integer branded newtype. Parameters: min, max are inclusive. @@ -77,28 +77,28 @@ export { * * @since 1.0.0 */ Schema as Int, -} from './schemables/WithInt/instances/schema' +} from 'schemata-ts/schemables/WithInt/instances/schema' export { /** * Invariant mapping for schemable * * @since 1.0.0 */ Schema as Invariant, -} from './schemables/WithInvariant/instances/schema' +} from 'schemata-ts/schemables/WithInvariant/instances/schema' export { /** * A basal schemable for Json and JsonString * * @since 1.1.0 */ Schema as Json, -} from './schemables/WithJson/instances/schema' +} from 'schemata-ts/schemables/WithJson/instances/schema' export { /** * Represents a ReadonlyMap converted from an expected array of entries. * * @since 1.0.0 */ Schema as Map, -} from './schemables/WithMap/instances/schema' +} from 'schemata-ts/schemables/WithMap/instances/schema' export { /** * Represents an exclusion of a supplied value where the exclusion is mapped to `None`. @@ -106,42 +106,42 @@ export { * * @since 1.0.0 */ Schema as Option, -} from './schemables/WithOption/instances/schema' +} from 'schemata-ts/schemables/WithOption/instances/schema' export { /** * Schemable for widening a type to include undefined. Similar to nullable but for undefined. * * @since 1.0.0 */ Schema as Optional, -} from './schemables/WithOptional/instances/schema' +} from 'schemata-ts/schemables/WithOptional/instances/schema' export { /** * Adds a character to the right or left of a string until it reaches a certain length. * * @since 1.0.0 */ Schema as Padding, -} from './schemables/WithPadding/instances/schema' +} from 'schemata-ts/schemables/WithPadding/instances/schema' export { /** * Schemable construction based on Regex combinators * * @since 1.0.0 */ Schema as Pattern, -} from './schemables/WithPattern/instances/schema' +} from 'schemata-ts/schemables/WithPattern/instances/schema' export { /** * Re- export of `WithRefine` from `io-ts/Schemable/WithRefine` * * @since 1.0.0 */ Schema as Refine, -} from './schemables/WithRefine/instances/schema' +} from 'schemata-ts/schemables/WithRefine/instances/schema' export { /** * Re- export of `WithUnknownContainers` from `io-ts/Schemable/WithUnknownContainers` * * @since 1.0.0 */ Schema as UnknownContainers, -} from './schemables/WithUnknownContainers/instances/schema' +} from 'schemata-ts/schemables/WithUnknownContainers/instances/schema' /** Schemata > boolean */ @@ -155,7 +155,7 @@ export { * @since 1.0.0 */ BooleanFromNumber, -} from './schemata/boolean/BooleanFromNumber' +} from 'schemata-ts/schemata/boolean/BooleanFromNumber' export { /** * A boolean value whose encoded representation is either "true" or "false". @@ -163,7 +163,7 @@ export { * @since 1.0.0 */ BooleanFromString, -} from './schemata/boolean/BooleanFromString' +} from 'schemata-ts/schemata/boolean/BooleanFromString' /** Schemata > date */ @@ -174,7 +174,7 @@ export { * @since 1.0.0 */ DateFromInt, -} from './schemata/date/DateFromInt' +} from 'schemata-ts/schemata/date/DateFromInt' export { /** * The Date parser (used in DateFromString) accepts different strings depending on @@ -196,7 +196,7 @@ export { * @since 1.0.0 */ DateFromIsoString, -} from './schemata/date/DateFromIsoString' +} from 'schemata-ts/schemata/date/DateFromIsoString' export { /** * Represents Date objects derived from unix time. @@ -204,7 +204,7 @@ export { * @since 1.0.0 */ DateFromUnixTime, -} from './schemata/date/DateFromUnixTime' +} from 'schemata-ts/schemata/date/DateFromUnixTime' /** Schemata > generic */ @@ -215,7 +215,7 @@ export { * @since 1.1.0 */ NonEmptyArray, -} from './schemata/generic/NonEmptyArray' +} from 'schemata-ts/schemata/generic/NonEmptyArray' export { /** * Represents an optional type which encodes to / decodes from null @@ -223,7 +223,7 @@ export { * @since 1.0.0 */ OptionFromNullable, -} from './schemata/generic/OptionFromNullable' +} from 'schemata-ts/schemata/generic/OptionFromNullable' export { /** * Represents an optional type which encodes to / decodes from undefined @@ -231,7 +231,7 @@ export { * @since 1.0.0 */ OptionFromUndefined, -} from './schemata/generic/OptionFromUndefined' +} from 'schemata-ts/schemata/generic/OptionFromUndefined' /** Schemata > json */ @@ -242,7 +242,7 @@ export { * @since 1.1.0 */ JsonFromString, -} from './schemata/json/JsonFromString' +} from 'schemata-ts/schemata/json/JsonFromString' /** Schemata > number */ @@ -253,7 +253,7 @@ export { * @since 1.0.0 */ BigIntFromString, -} from './schemata/number/BigIntFromString' +} from 'schemata-ts/schemata/number/BigIntFromString' export { /** * Floating point branded newtype from strings. Parameters: min, max are inclusive. @@ -270,7 +270,7 @@ export { * @since 1.0.0 */ FloatFromString, -} from './schemata/number/FloatFromString' +} from 'schemata-ts/schemata/number/FloatFromString' export { /** * Integer branded newtype from string. Parameters: min, max are inclusive. @@ -290,7 +290,7 @@ export { * @since 1.0.0 */ IntFromString, -} from './schemata/number/IntFromString' +} from 'schemata-ts/schemata/number/IntFromString' export { /** * Natural branded newtype. @@ -304,7 +304,7 @@ export { * @since 1.0.0 */ Natural, -} from './schemata/number/Natural' +} from 'schemata-ts/schemata/number/Natural' export { /** * Negative floating point branded newtype. @@ -318,7 +318,7 @@ export { * @since 1.0.0 */ NegativeFloat, -} from './schemata/number/NegativeFloat' +} from 'schemata-ts/schemata/number/NegativeFloat' export { /** * Negative integer branded newtype. @@ -332,7 +332,7 @@ export { * @since 1.0.0 */ NegativeInt, -} from './schemata/number/NegativeInt' +} from 'schemata-ts/schemata/number/NegativeInt' export { /** * Non-negative floating point branded newtype. @@ -346,7 +346,7 @@ export { * @since 1.0.0 */ NonNegativeFloat, -} from './schemata/number/NonNegativeFloat' +} from 'schemata-ts/schemata/number/NonNegativeFloat' export { /** * Non-positive floating point branded newtype. @@ -360,7 +360,7 @@ export { * @since 1.0.0 */ NonPositiveFloat, -} from './schemata/number/NonPositiveFloat' +} from 'schemata-ts/schemata/number/NonPositiveFloat' export { /** * NonPositive integer branded newtype. @@ -374,7 +374,7 @@ export { * @since 1.0.0 */ NonPositiveInt, -} from './schemata/number/NonPositiveInt' +} from 'schemata-ts/schemata/number/NonPositiveInt' export { /** * Positive Float branded newtype. @@ -388,7 +388,7 @@ export { * @since 1.0.0 */ PositiveFloat, -} from './schemata/number/PositiveFloat' +} from 'schemata-ts/schemata/number/PositiveFloat' export { /** * Positive integer branded newtype. @@ -402,7 +402,7 @@ export { * @since 1.0.0 */ PositiveInt, -} from './schemata/number/PositiveInt' +} from 'schemata-ts/schemata/number/PositiveInt' /** Schemata > string */ @@ -413,7 +413,7 @@ export { * @since 1.0.0 */ Ascii, -} from './schemata/string/Ascii' +} from 'schemata-ts/schemata/string/Ascii' export { /** * Representing a Base64-encoded string. @@ -423,7 +423,7 @@ export { * @since 1.0.0 */ Base64, -} from './schemata/string/Base64' +} from 'schemata-ts/schemata/string/Base64' export { /** * Representing a URL-safe, Base64 encoded string. @@ -433,7 +433,7 @@ export { * @since 1.0.0 */ Base64Url, -} from './schemata/string/Base64Url' +} from 'schemata-ts/schemata/string/Base64Url' export { /** * Represents strings which are valid Bitcoin addresses. @@ -441,7 +441,7 @@ export { * @since 1.0.0 */ BitcoinAddress, -} from './schemata/string/BitcoinAddress' +} from 'schemata-ts/schemata/string/BitcoinAddress' export { /** * Represents (some) valid credit card numbers. @@ -452,7 +452,7 @@ export { * @since 1.0.0 */ CreditCard, -} from './schemata/string/CreditCard' +} from 'schemata-ts/schemata/string/CreditCard' export { /** * Represents strings (email addresses) that conform to the RFC 5322 standard. @@ -464,7 +464,7 @@ export { * @since 1.0.0 */ EmailAddress, -} from './schemata/string/EmailAddress' +} from 'schemata-ts/schemata/string/EmailAddress' export { /** * Represents strings which are valid Ethereum addresses. @@ -472,7 +472,7 @@ export { * @since 1.0.0 */ EthereumAddress, -} from './schemata/string/EthereumAddress' +} from 'schemata-ts/schemata/string/EthereumAddress' export { /** * A string of hexadecimal characters. @@ -480,7 +480,7 @@ export { * @since 1.0.0 */ Hexadecimal, -} from './schemata/string/Hexadecimal' +} from 'schemata-ts/schemata/string/Hexadecimal' export { /** * A valid hexadecimal color value. @@ -488,7 +488,7 @@ export { * @since 1.0.0 */ HexColor, -} from './schemata/string/HexColor' +} from 'schemata-ts/schemata/string/HexColor' export { /** * An HSL string. Commonly in CSS. @@ -509,7 +509,7 @@ export { * assert.equal(Guard.is(hslString), true) */ HslColor, -} from './schemata/string/HslColor' +} from 'schemata-ts/schemata/string/HslColor' export { /** * A valid, Base64-encoded JWT. @@ -517,7 +517,7 @@ export { * @since 1.0.0 */ Jwt, -} from './schemata/string/Jwt' +} from 'schemata-ts/schemata/string/Jwt' export { /** * Representing a Lat/Long coordinate. @@ -525,7 +525,7 @@ export { * @since 1.0.0 */ LatLong, -} from './schemata/string/LatLong' +} from 'schemata-ts/schemata/string/LatLong' export { /** * A string with length greater than one @@ -533,7 +533,7 @@ export { * @since 1.0.0 */ NonEmptyString, -} from './schemata/string/NonEmptyString' +} from 'schemata-ts/schemata/string/NonEmptyString' export { /** * Represents strings which are valid RGB colors. Permits both absolute and percentage @@ -542,7 +542,7 @@ export { * @since 1.0.0 */ RGB, -} from './schemata/string/RGB' +} from 'schemata-ts/schemata/string/RGB' export { /** * Represents strings that are UUIDs. @@ -553,4 +553,4 @@ export { * @since 1.0.0 */ UUID, -} from './schemata/string/UUID' +} from 'schemata-ts/schemata/string/UUID' diff --git a/src/schemata/boolean/BooleanFromNumber.ts b/src/schemata/boolean/BooleanFromNumber.ts index e1f07eb8..f25da8eb 100644 --- a/src/schemata/boolean/BooleanFromNumber.ts +++ b/src/schemata/boolean/BooleanFromNumber.ts @@ -7,8 +7,7 @@ * @since 1.0.0 */ import { boolean } from 'io-ts/lib/Guard' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/boolean/BooleanFromString.ts b/src/schemata/boolean/BooleanFromString.ts index 0adab09d..15565404 100644 --- a/src/schemata/boolean/BooleanFromString.ts +++ b/src/schemata/boolean/BooleanFromString.ts @@ -5,9 +5,8 @@ */ import { pipe } from 'fp-ts/function' import { boolean } from 'io-ts/lib/Guard' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/date/DateFromInt.ts b/src/schemata/date/DateFromInt.ts index 6ecea0b9..a16030b3 100644 --- a/src/schemata/date/DateFromInt.ts +++ b/src/schemata/date/DateFromInt.ts @@ -4,10 +4,9 @@ * @since 1.0.0 */ import { pipe } from 'fp-ts/function' - -import { Guard } from '../../schemables/WithDate/instances/guard' -import * as int from '../../schemables/WithInt/definition' -import { make, SchemaExt } from '../../SchemaExt' +import { Guard } from 'schemata-ts/schemables/WithDate/instances/guard' +import * as int from 'schemata-ts/schemables/WithInt/definition' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/date/DateFromIsoString.ts b/src/schemata/date/DateFromIsoString.ts index 6e5470d7..199a6d37 100644 --- a/src/schemata/date/DateFromIsoString.ts +++ b/src/schemata/date/DateFromIsoString.ts @@ -18,11 +18,10 @@ * @since 1.0.0 */ import { pipe } from 'fp-ts/function' - -import { matchW } from '../../internal/match' -import * as PB from '../../PatternBuilder' -import { Guard } from '../../schemables/WithDate/instances/guard' -import { make, SchemaExt } from '../../SchemaExt' +import { matchW } from 'schemata-ts/internal/match' +import * as PB from 'schemata-ts/PatternBuilder' +import { Guard } from 'schemata-ts/schemables/WithDate/instances/guard' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * E.g. `2022` diff --git a/src/schemata/date/DateFromUnixTime.ts b/src/schemata/date/DateFromUnixTime.ts index 6c038794..f3a63933 100644 --- a/src/schemata/date/DateFromUnixTime.ts +++ b/src/schemata/date/DateFromUnixTime.ts @@ -4,10 +4,9 @@ * @since 1.0.0 */ import { pipe } from 'fp-ts/function' - -import { Guard } from '../../schemables/WithDate/instances/guard' -import * as float from '../../schemables/WithFloat/definition' -import { make, SchemaExt } from '../../SchemaExt' +import { Guard } from 'schemata-ts/schemables/WithDate/instances/guard' +import * as float from 'schemata-ts/schemables/WithFloat/definition' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/generic/NonEmptyArray.ts b/src/schemata/generic/NonEmptyArray.ts index 3c2b319b..ed2e9b2f 100644 --- a/src/schemata/generic/NonEmptyArray.ts +++ b/src/schemata/generic/NonEmptyArray.ts @@ -6,8 +6,7 @@ import { pipe } from 'fp-ts/function' import * as RA from 'fp-ts/ReadonlyArray' import * as RNEA from 'fp-ts/ReadonlyNonEmptyArray' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.1.0 diff --git a/src/schemata/generic/OptionFromNullable.ts b/src/schemata/generic/OptionFromNullable.ts index e80da62c..cc2fd18b 100644 --- a/src/schemata/generic/OptionFromNullable.ts +++ b/src/schemata/generic/OptionFromNullable.ts @@ -5,10 +5,9 @@ */ import { pipe } from 'fp-ts/function' import * as O from 'fp-ts/Option' - -import * as G from '../../base/GuardBase' -import { getGuard } from '../../Guard' -import { make, SchemaExt } from '../../SchemaExt' +import * as G from 'schemata-ts/base/GuardBase' +import { getGuard } from 'schemata-ts/Guard' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/generic/OptionFromUndefined.ts b/src/schemata/generic/OptionFromUndefined.ts index bc07f1bf..230cc517 100644 --- a/src/schemata/generic/OptionFromUndefined.ts +++ b/src/schemata/generic/OptionFromUndefined.ts @@ -5,10 +5,9 @@ */ import { pipe } from 'fp-ts/function' import * as O from 'fp-ts/Option' - -import * as G from '../../base/GuardBase' -import { getGuard } from '../../Guard' -import { make, SchemaExt } from '../../SchemaExt' +import * as G from 'schemata-ts/base/GuardBase' +import { getGuard } from 'schemata-ts/Guard' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/json/JsonFromString.ts b/src/schemata/json/JsonFromString.ts index f4a1f492..b64b9613 100644 --- a/src/schemata/json/JsonFromString.ts +++ b/src/schemata/json/JsonFromString.ts @@ -4,10 +4,9 @@ * @since 1.1.0 */ import { pipe } from 'fp-ts/function' - -import * as P from '../../base/PrinterBase' -import * as Json from '../../schemables/WithJson/instances/guard' -import { make, SchemaExt } from '../../SchemaExt' +import * as P from 'schemata-ts/base/PrinterBase' +import * as Json from 'schemata-ts/schemables/WithJson/instances/guard' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.1.0 diff --git a/src/schemata/number/BigIntFromString.ts b/src/schemata/number/BigIntFromString.ts index 84a1eb51..3a785c48 100644 --- a/src/schemata/number/BigIntFromString.ts +++ b/src/schemata/number/BigIntFromString.ts @@ -6,9 +6,8 @@ import { flow, pipe } from 'fp-ts/function' import * as O from 'fp-ts/Option' import * as Str from 'fp-ts/string' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * Controls the output base of the encoded string. Currently only accepts 2, 8, 10, and diff --git a/src/schemata/number/FloatFromString.ts b/src/schemata/number/FloatFromString.ts index 362e998f..012380b4 100644 --- a/src/schemata/number/FloatFromString.ts +++ b/src/schemata/number/FloatFromString.ts @@ -13,11 +13,10 @@ * @since 1.0.0 */ import { pipe } from 'fp-ts/function' - -import * as PB from '../../PatternBuilder' -import * as Float from '../../schemables/WithFloat/definition' -import { Guard } from '../../schemables/WithFloat/instances/guard' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import * as Float from 'schemata-ts/schemables/WithFloat/definition' +import { Guard } from 'schemata-ts/schemables/WithFloat/instances/guard' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/number/IntFromString.ts b/src/schemata/number/IntFromString.ts index c13fb5ab..5eba4270 100644 --- a/src/schemata/number/IntFromString.ts +++ b/src/schemata/number/IntFromString.ts @@ -16,11 +16,10 @@ * @since 1.0.0 */ import { pipe } from 'fp-ts/function' - -import * as PB from '../../PatternBuilder' -import * as Int from '../../schemables/WithInt/definition' -import { Guard } from '../../schemables/WithInt/instances/guard' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import * as Int from 'schemata-ts/schemables/WithInt/definition' +import { Guard } from 'schemata-ts/schemables/WithInt/instances/guard' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * Controls the output base of the encoded string. Currently only accepts 2, 8, 10, and 16 diff --git a/src/schemata/number/Natural.ts b/src/schemata/number/Natural.ts index ea07fa60..bfb226cf 100644 --- a/src/schemata/number/Natural.ts +++ b/src/schemata/number/Natural.ts @@ -11,8 +11,7 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface NaturalBrand { diff --git a/src/schemata/number/NegativeFloat.ts b/src/schemata/number/NegativeFloat.ts index 7bdd9117..9a0b634b 100644 --- a/src/schemata/number/NegativeFloat.ts +++ b/src/schemata/number/NegativeFloat.ts @@ -11,8 +11,7 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface NegativeFloatBrand { diff --git a/src/schemata/number/NegativeInt.ts b/src/schemata/number/NegativeInt.ts index b532b117..477b1b1f 100644 --- a/src/schemata/number/NegativeInt.ts +++ b/src/schemata/number/NegativeInt.ts @@ -11,8 +11,7 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface NegativeIntBrand { diff --git a/src/schemata/number/NonNegativeFloat.ts b/src/schemata/number/NonNegativeFloat.ts index d2386037..228d4120 100644 --- a/src/schemata/number/NonNegativeFloat.ts +++ b/src/schemata/number/NonNegativeFloat.ts @@ -11,8 +11,7 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface NonNegativeFloatBrand { diff --git a/src/schemata/number/NonPositiveFloat.ts b/src/schemata/number/NonPositiveFloat.ts index 1d76c4d1..edcaaf6b 100644 --- a/src/schemata/number/NonPositiveFloat.ts +++ b/src/schemata/number/NonPositiveFloat.ts @@ -11,8 +11,7 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface NonPositiveFloatBrand { diff --git a/src/schemata/number/NonPositiveInt.ts b/src/schemata/number/NonPositiveInt.ts index d3d8f6a7..ba22dca1 100644 --- a/src/schemata/number/NonPositiveInt.ts +++ b/src/schemata/number/NonPositiveInt.ts @@ -11,8 +11,7 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface NonPositiveIntBrand { diff --git a/src/schemata/number/PositiveFloat.ts b/src/schemata/number/PositiveFloat.ts index b2665c86..7fc99538 100644 --- a/src/schemata/number/PositiveFloat.ts +++ b/src/schemata/number/PositiveFloat.ts @@ -11,8 +11,7 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface PositiveFloatBrand { diff --git a/src/schemata/number/PositiveInt.ts b/src/schemata/number/PositiveInt.ts index 27b78c6e..a721c009 100644 --- a/src/schemata/number/PositiveInt.ts +++ b/src/schemata/number/PositiveInt.ts @@ -11,8 +11,7 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface PositiveIntBrand { diff --git a/src/schemata/string/Ascii.ts b/src/schemata/string/Ascii.ts index fcdd17b6..c184f181 100644 --- a/src/schemata/string/Ascii.ts +++ b/src/schemata/string/Ascii.ts @@ -5,9 +5,8 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface AsciiBrand { diff --git a/src/schemata/string/Base64.ts b/src/schemata/string/Base64.ts index 8395a6b3..82eba60c 100644 --- a/src/schemata/string/Base64.ts +++ b/src/schemata/string/Base64.ts @@ -7,9 +7,8 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface Base64Brand { diff --git a/src/schemata/string/Base64Url.ts b/src/schemata/string/Base64Url.ts index e8cfa304..1b424dc1 100644 --- a/src/schemata/string/Base64Url.ts +++ b/src/schemata/string/Base64Url.ts @@ -7,9 +7,8 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface Base64UrlBrand { diff --git a/src/schemata/string/BitcoinAddress.ts b/src/schemata/string/BitcoinAddress.ts index 6e58a809..b7d3c6ab 100644 --- a/src/schemata/string/BitcoinAddress.ts +++ b/src/schemata/string/BitcoinAddress.ts @@ -5,9 +5,8 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface BitcoinAddressBrand { diff --git a/src/schemata/string/CreditCard.ts b/src/schemata/string/CreditCard.ts index f716239b..f0421968 100644 --- a/src/schemata/string/CreditCard.ts +++ b/src/schemata/string/CreditCard.ts @@ -8,10 +8,9 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { luhn } from '../../internal/algorithms' -import * as PB from '../../PatternBuilder' -import { make } from '../../SchemaExt' +import { luhn } from 'schemata-ts/internal/algorithms' +import * as PB from 'schemata-ts/PatternBuilder' +import { make } from 'schemata-ts/SchemaExt' /** @internal */ interface CreditCardBrand { diff --git a/src/schemata/string/EmailAddress.ts b/src/schemata/string/EmailAddress.ts index f7111c77..5ebdbf84 100644 --- a/src/schemata/string/EmailAddress.ts +++ b/src/schemata/string/EmailAddress.ts @@ -9,9 +9,8 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface EmailAddressBrand { diff --git a/src/schemata/string/EthereumAddress.ts b/src/schemata/string/EthereumAddress.ts index c2586269..f8d64add 100644 --- a/src/schemata/string/EthereumAddress.ts +++ b/src/schemata/string/EthereumAddress.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface EthereumAddressBrand { diff --git a/src/schemata/string/HexColor.ts b/src/schemata/string/HexColor.ts index cc4020a9..1decb26a 100644 --- a/src/schemata/string/HexColor.ts +++ b/src/schemata/string/HexColor.ts @@ -5,9 +5,8 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface HexColorBrand { diff --git a/src/schemata/string/Hexadecimal.ts b/src/schemata/string/Hexadecimal.ts index d5b1b30a..95f2f14c 100644 --- a/src/schemata/string/Hexadecimal.ts +++ b/src/schemata/string/Hexadecimal.ts @@ -5,9 +5,8 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface HexadecimalBrand { diff --git a/src/schemata/string/HslColor.ts b/src/schemata/string/HslColor.ts index a52efb8a..95ba5fe9 100644 --- a/src/schemata/string/HslColor.ts +++ b/src/schemata/string/HslColor.ts @@ -18,9 +18,8 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/string/Jwt.ts b/src/schemata/string/Jwt.ts index 2c077e0e..b3295440 100644 --- a/src/schemata/string/Jwt.ts +++ b/src/schemata/string/Jwt.ts @@ -5,10 +5,9 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' -import { base64Url } from './Base64Url' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' +import { base64Url } from 'schemata-ts/schemata/string/Base64Url' /** @internal */ interface JwtBrand { diff --git a/src/schemata/string/LatLong.ts b/src/schemata/string/LatLong.ts index ea522cfc..ec55c580 100644 --- a/src/schemata/string/LatLong.ts +++ b/src/schemata/string/LatLong.ts @@ -5,9 +5,8 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/string/NonEmptyString.ts b/src/schemata/string/NonEmptyString.ts index 939e33e8..8e0dd4a4 100644 --- a/src/schemata/string/NonEmptyString.ts +++ b/src/schemata/string/NonEmptyString.ts @@ -5,8 +5,7 @@ */ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' - -import { make, SchemaExt } from '../../SchemaExt' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** @internal */ interface NonEmptyStringBrand { diff --git a/src/schemata/string/RGB.ts b/src/schemata/string/RGB.ts index d19dfbbc..d6de1fb2 100644 --- a/src/schemata/string/RGB.ts +++ b/src/schemata/string/RGB.ts @@ -4,9 +4,8 @@ * @since 1.0.0 */ import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' /** * @since 1.0.0 diff --git a/src/schemata/string/UUID.ts b/src/schemata/string/UUID.ts index 2cb023e4..4d4ca97e 100644 --- a/src/schemata/string/UUID.ts +++ b/src/schemata/string/UUID.ts @@ -7,9 +7,8 @@ * @since 1.0.0 */ import { Branded } from 'io-ts' - -import * as PB from '../../PatternBuilder' -import { make, SchemaExt } from '../../SchemaExt' +import * as PB from 'schemata-ts/PatternBuilder' +import { make, SchemaExt } from 'schemata-ts/SchemaExt' const nHexDigits = (n: number) => PB.exactly(n)(PB.hexDigit) diff --git a/tsconfig.json b/tsconfig.json index 76f69c85..7bfad5aa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,11 @@ "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "paths": { + "schemata-ts": ["./src/index.ts"], + "schemata-ts/*": ["./src/*"] + } }, "exclude": ["build", "dist", "node_modules"] } From 7d5e572a41ccf62e8b3b996666789b364ce3fd8a Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Fri, 6 Jan 2023 16:07:31 -0700 Subject: [PATCH 2/8] chore: correct esm build process, do not supress branding in dts --- package.json | 14 ++++++++++---- scripts/pack.ts | 18 +++++++++--------- src/base/PrinterBase.ts | 4 ---- src/schemables/WithCheckDigit/definition.ts | 5 +---- src/schemables/WithFloat/definition.ts | 4 ---- src/schemables/WithInt/definition.ts | 4 ---- src/schemata/number/Natural.ts | 1 - src/schemata/number/NegativeFloat.ts | 1 - src/schemata/number/NegativeInt.ts | 1 - src/schemata/number/NonNegativeFloat.ts | 1 - src/schemata/number/NonPositiveFloat.ts | 1 - src/schemata/number/NonPositiveInt.ts | 1 - src/schemata/number/PositiveFloat.ts | 1 - src/schemata/number/PositiveInt.ts | 1 - src/schemata/string/Ascii.ts | 1 - src/schemata/string/Base64.ts | 1 - src/schemata/string/Base64Url.ts | 1 - src/schemata/string/BitcoinAddress.ts | 1 - src/schemata/string/CreditCard.ts | 1 - src/schemata/string/EmailAddress.ts | 1 - src/schemata/string/EthereumAddress.ts | 1 - src/schemata/string/HexColor.ts | 1 - src/schemata/string/Hexadecimal.ts | 1 - src/schemata/string/HslColor.ts | 4 ---- src/schemata/string/Jwt.ts | 1 - src/schemata/string/LatLong.ts | 4 ---- src/schemata/string/NonEmptyString.ts | 1 - src/schemata/string/RGB.ts | 4 ---- src/schemata/string/UUID.ts | 4 ---- 29 files changed, 20 insertions(+), 64 deletions(-) diff --git a/package.json b/package.json index 21fede19..2556d07b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schemata-ts", - "version": "1.2.0", + "version": "1.2.1", "description": "A collection of Schemata inspired by io-ts-types and validators.js", "homepage": "https://jacob-alford.github.io/schemata-ts/", "repository": { @@ -14,11 +14,17 @@ "access": "public" }, "main": "./dist/index.js", - "module": "./dist/esm/index.js", + "module": "./dist/esm/index.mjs", "exports": { + ".": { + "require": "./dist/index.js", + "import": "./dist/esm/index.mjs", + "types": "./dist/index.d.ts" + }, "./*": { "require": "./dist/*.js", - "import": "./dist/esm/*.js" + "import": "./dist/esm/*.mjs", + "types": "./dist/*.d.ts" } }, "typesVersions": { @@ -43,7 +49,7 @@ "clean": "rm -rf dist build", "build": "tsc -b ./tsconfig.build.json", "build:watch": "yarn build --watch", - "build:mjs": "babel build/esm --config-file ./.babel.esm.json --out-dir build/esm --out-file-extension .js --source-maps", + "build:mjs": "babel build/esm --config-file ./.babel.esm.json --out-dir build/mjs --out-file-extension .mjs --source-maps", "build:cjs": "babel build/esm --config-file ./.babel.cjs.json --out-dir build/cjs --out-file-extension .js --source-maps", "build:pack": "yarn build && yarn concurrently \"yarn build:cjs\" \"yarn build:mjs\" && yarn ts-node scripts/pack.ts", "generate:schemables": "yarn ts-node scripts/generate-schemables.ts", diff --git a/scripts/pack.ts b/scripts/pack.ts index 58471256..bff9a066 100644 --- a/scripts/pack.ts +++ b/scripts/pack.ts @@ -30,10 +30,14 @@ export const copyPackageJson: Build = C => // eslint-disable-next-line @typescript-eslint/no-explicit-any const clone = Object.assign({}, json as any, { main: './index.js', - module: './_esm/index.js', + module: './_esm/index.mjs', exports: { - '.': { import: './_esm/index.js', require: './index.js' }, - './*': { import: './_esm/*.js', require: './*.js' }, + '.': { + import: './_esm/index.mjs', + require: './index.js', + types: './index.d.ts', + }, + './*': { import: './_esm/*.mjs', require: './*.js', types: './*.d.ts' }, }, publishConfig: { access: 'public', @@ -83,8 +87,7 @@ export const rewriteSourceMap: ( }) : v, ), - J.stringify, - E.mapLeft(E.toError), + E.tryCatchK(clone => JSON.stringify(clone, null, 2), E.toError), ) }), ) @@ -106,16 +109,13 @@ export const copyBuildFiles: Build = C => /* Copy build/esm to dist/_esm */ TE.chain(() => C.mkdir('./dist/_esm')), - TE.chain(() => C.exec('cp -r ./build/esm/* ./dist/_esm')), + TE.chain(() => C.exec('cp -r ./build/mjs/* ./dist/_esm')), /* Copy build/cjs to dist */ TE.chain(() => C.exec('cp -r ./build/cjs/* ./dist')), /* Copy types to dist */ TE.chain(() => C.exec('cp -r ./build/dts/* ./dist')), - - /* Copy docs to dist/docs */ - TE.chain(() => C.exec('cp -r ./docs ./dist/docs')), ) export const overwriteSourceMaps: Build = C => diff --git a/src/base/PrinterBase.ts b/src/base/PrinterBase.ts index 371d66f6..d362f6ee 100644 --- a/src/base/PrinterBase.ts +++ b/src/base/PrinterBase.ts @@ -15,22 +15,18 @@ import { typeOf, witherS } from 'schemata-ts/internal/util' import * as PE from 'schemata-ts/PrintError' import { WithRefine2 } from 'schemata-ts/schemables/WithRefine/definition' -/** @internal */ interface JsonStringBrand { readonly JsonString: unique symbol } -/** @internal */ interface SafeNumberBrand { readonly SafeNumber: unique symbol } -/** @internal */ interface SafeRecordBrand { readonly SafeRecord: unique symbol } -/** @internal */ interface SafeArrayBrand { readonly SafeArray: unique symbol } diff --git a/src/schemables/WithCheckDigit/definition.ts b/src/schemables/WithCheckDigit/definition.ts index 7f464541..c8906685 100644 --- a/src/schemables/WithCheckDigit/definition.ts +++ b/src/schemables/WithCheckDigit/definition.ts @@ -6,10 +6,7 @@ import { HKT2, Kind, Kind2, URIS, URIS2 } from 'fp-ts/HKT' import { Branded } from 'io-ts' -/** - * @since 1.0.0 - * @internal - */ +/** @since 1.0.0 */ export interface CheckDigitVerified { readonly CheckDigitVerified: unique symbol } diff --git a/src/schemables/WithFloat/definition.ts b/src/schemables/WithFloat/definition.ts index 3f029022..6eca11cd 100644 --- a/src/schemables/WithFloat/definition.ts +++ b/src/schemables/WithFloat/definition.ts @@ -12,10 +12,6 @@ import { HKT2, Kind, Kind2, URIS, URIS2 } from 'fp-ts/HKT' import { Branded } from 'io-ts' -/** - * @since 1.0.0 - * @internal - */ interface FloatBrand { readonly Float: unique symbol } diff --git a/src/schemables/WithInt/definition.ts b/src/schemables/WithInt/definition.ts index c6f20fd6..77c70709 100644 --- a/src/schemables/WithInt/definition.ts +++ b/src/schemables/WithInt/definition.ts @@ -12,10 +12,6 @@ import { HKT2, Kind, Kind2, URIS, URIS2 } from 'fp-ts/HKT' import { Branded } from 'io-ts' -/** - * @since 1.0.0 - * @internal - */ interface IntBrand { readonly Int: unique symbol } diff --git a/src/schemata/number/Natural.ts b/src/schemata/number/Natural.ts index bfb226cf..5c011308 100644 --- a/src/schemata/number/Natural.ts +++ b/src/schemata/number/Natural.ts @@ -13,7 +13,6 @@ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface NaturalBrand { readonly Natural: unique symbol } diff --git a/src/schemata/number/NegativeFloat.ts b/src/schemata/number/NegativeFloat.ts index 9a0b634b..4dc52874 100644 --- a/src/schemata/number/NegativeFloat.ts +++ b/src/schemata/number/NegativeFloat.ts @@ -13,7 +13,6 @@ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface NegativeFloatBrand { readonly NegativeFloat: unique symbol } diff --git a/src/schemata/number/NegativeInt.ts b/src/schemata/number/NegativeInt.ts index 477b1b1f..58b6b05a 100644 --- a/src/schemata/number/NegativeInt.ts +++ b/src/schemata/number/NegativeInt.ts @@ -13,7 +13,6 @@ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface NegativeIntBrand { readonly NegativeInt: unique symbol } diff --git a/src/schemata/number/NonNegativeFloat.ts b/src/schemata/number/NonNegativeFloat.ts index 228d4120..8157e23e 100644 --- a/src/schemata/number/NonNegativeFloat.ts +++ b/src/schemata/number/NonNegativeFloat.ts @@ -13,7 +13,6 @@ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface NonNegativeFloatBrand { readonly NonNegativeFloat: unique symbol } diff --git a/src/schemata/number/NonPositiveFloat.ts b/src/schemata/number/NonPositiveFloat.ts index edcaaf6b..dd40328d 100644 --- a/src/schemata/number/NonPositiveFloat.ts +++ b/src/schemata/number/NonPositiveFloat.ts @@ -13,7 +13,6 @@ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface NonPositiveFloatBrand { readonly NonPositiveFloat: unique symbol } diff --git a/src/schemata/number/NonPositiveInt.ts b/src/schemata/number/NonPositiveInt.ts index ba22dca1..6e6677db 100644 --- a/src/schemata/number/NonPositiveInt.ts +++ b/src/schemata/number/NonPositiveInt.ts @@ -13,7 +13,6 @@ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface NonPositiveIntBrand { readonly NonPositiveInt: unique symbol } diff --git a/src/schemata/number/PositiveFloat.ts b/src/schemata/number/PositiveFloat.ts index 7fc99538..fe35decf 100644 --- a/src/schemata/number/PositiveFloat.ts +++ b/src/schemata/number/PositiveFloat.ts @@ -13,7 +13,6 @@ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface PositiveFloatBrand { readonly PositiveFloat: unique symbol } diff --git a/src/schemata/number/PositiveInt.ts b/src/schemata/number/PositiveInt.ts index a721c009..b103bca3 100644 --- a/src/schemata/number/PositiveInt.ts +++ b/src/schemata/number/PositiveInt.ts @@ -13,7 +13,6 @@ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface PositiveIntBrand { readonly PositiveInt: unique symbol } diff --git a/src/schemata/string/Ascii.ts b/src/schemata/string/Ascii.ts index c184f181..9c304f54 100644 --- a/src/schemata/string/Ascii.ts +++ b/src/schemata/string/Ascii.ts @@ -8,7 +8,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface AsciiBrand { readonly Ascii: unique symbol } diff --git a/src/schemata/string/Base64.ts b/src/schemata/string/Base64.ts index 82eba60c..7c33811b 100644 --- a/src/schemata/string/Base64.ts +++ b/src/schemata/string/Base64.ts @@ -10,7 +10,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface Base64Brand { readonly Base64: unique symbol } diff --git a/src/schemata/string/Base64Url.ts b/src/schemata/string/Base64Url.ts index 1b424dc1..68455408 100644 --- a/src/schemata/string/Base64Url.ts +++ b/src/schemata/string/Base64Url.ts @@ -10,7 +10,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface Base64UrlBrand { readonly Base64Url: unique symbol } diff --git a/src/schemata/string/BitcoinAddress.ts b/src/schemata/string/BitcoinAddress.ts index b7d3c6ab..60f7f2a7 100644 --- a/src/schemata/string/BitcoinAddress.ts +++ b/src/schemata/string/BitcoinAddress.ts @@ -8,7 +8,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface BitcoinAddressBrand { readonly BitcoinAddress: unique symbol } diff --git a/src/schemata/string/CreditCard.ts b/src/schemata/string/CreditCard.ts index f0421968..c992cf2a 100644 --- a/src/schemata/string/CreditCard.ts +++ b/src/schemata/string/CreditCard.ts @@ -12,7 +12,6 @@ import { luhn } from 'schemata-ts/internal/algorithms' import * as PB from 'schemata-ts/PatternBuilder' import { make } from 'schemata-ts/SchemaExt' -/** @internal */ interface CreditCardBrand { readonly CreditCard: unique symbol } diff --git a/src/schemata/string/EmailAddress.ts b/src/schemata/string/EmailAddress.ts index 5ebdbf84..198d4a60 100644 --- a/src/schemata/string/EmailAddress.ts +++ b/src/schemata/string/EmailAddress.ts @@ -12,7 +12,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface EmailAddressBrand { readonly EmailAddress: unique symbol } diff --git a/src/schemata/string/EthereumAddress.ts b/src/schemata/string/EthereumAddress.ts index f8d64add..6a849f10 100644 --- a/src/schemata/string/EthereumAddress.ts +++ b/src/schemata/string/EthereumAddress.ts @@ -7,7 +7,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface EthereumAddressBrand { readonly EthereumAddress: unique symbol } diff --git a/src/schemata/string/HexColor.ts b/src/schemata/string/HexColor.ts index 1decb26a..0b68bede 100644 --- a/src/schemata/string/HexColor.ts +++ b/src/schemata/string/HexColor.ts @@ -8,7 +8,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface HexColorBrand { readonly HexColor: unique symbol } diff --git a/src/schemata/string/Hexadecimal.ts b/src/schemata/string/Hexadecimal.ts index 95f2f14c..cce62771 100644 --- a/src/schemata/string/Hexadecimal.ts +++ b/src/schemata/string/Hexadecimal.ts @@ -8,7 +8,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface HexadecimalBrand { readonly Hexadecimal: unique symbol } diff --git a/src/schemata/string/HslColor.ts b/src/schemata/string/HslColor.ts index 95ba5fe9..b40cbc7b 100644 --- a/src/schemata/string/HslColor.ts +++ b/src/schemata/string/HslColor.ts @@ -21,10 +21,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** - * @since 1.0.0 - * @internal - */ interface HslColorBrand { readonly HslColor: unique symbol } diff --git a/src/schemata/string/Jwt.ts b/src/schemata/string/Jwt.ts index b3295440..62b6a801 100644 --- a/src/schemata/string/Jwt.ts +++ b/src/schemata/string/Jwt.ts @@ -9,7 +9,6 @@ import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' import { base64Url } from 'schemata-ts/schemata/string/Base64Url' -/** @internal */ interface JwtBrand { readonly Jwt: unique symbol } diff --git a/src/schemata/string/LatLong.ts b/src/schemata/string/LatLong.ts index ec55c580..4916a835 100644 --- a/src/schemata/string/LatLong.ts +++ b/src/schemata/string/LatLong.ts @@ -8,10 +8,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** - * @since 1.0.0 - * @internal - */ interface LatLongBrand { readonly LatLong: unique symbol } diff --git a/src/schemata/string/NonEmptyString.ts b/src/schemata/string/NonEmptyString.ts index 8e0dd4a4..68dd3177 100644 --- a/src/schemata/string/NonEmptyString.ts +++ b/src/schemata/string/NonEmptyString.ts @@ -7,7 +7,6 @@ import { pipe } from 'fp-ts/function' import { Branded } from 'io-ts' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** @internal */ interface NonEmptyStringBrand { readonly NonEmptyString: unique symbol } diff --git a/src/schemata/string/RGB.ts b/src/schemata/string/RGB.ts index d6de1fb2..98bba4a9 100644 --- a/src/schemata/string/RGB.ts +++ b/src/schemata/string/RGB.ts @@ -7,10 +7,6 @@ import { Branded } from 'io-ts' import * as PB from 'schemata-ts/PatternBuilder' import { make, SchemaExt } from 'schemata-ts/SchemaExt' -/** - * @since 1.0.0 - * @internal - */ interface RGBBrand { readonly RGB: unique symbol } diff --git a/src/schemata/string/UUID.ts b/src/schemata/string/UUID.ts index 4d4ca97e..1b8f0fbd 100644 --- a/src/schemata/string/UUID.ts +++ b/src/schemata/string/UUID.ts @@ -112,10 +112,6 @@ const uuidPattern = { */ export type UUIDVersion = keyof typeof uuidPattern -/** - * @since 1.0.0 - * @internal - */ interface UUIDBrand { readonly UUID: unique symbol readonly UUIDVersion: Version From c75fd1fe0e466a6a61f9792fa12e0ea9ab91e022 Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Sat, 7 Jan 2023 11:08:15 -0700 Subject: [PATCH 3/8] chore: add spacing to README --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0aad3983..4d638969 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ +
- +

schemata-ts

@@ -12,14 +13,14 @@ Write domain types once. A collection of Schemata inspired by io-ts-types and v
-![Build Status](https://github.com/jacob-alford/schemata-ts/actions/workflows/build.yml/badge.svg) [![NPM Version](https://badge.fury.io/js/schemata-ts.svg)](https://badge.fury.io/js/schemata-ts) [![Coverage Status](https://coveralls.io/repos/github/jacob-alford/schemata-ts/badge.svg?branch=main)](https://coveralls.io/github/jacob-alford/schemata-ts?branch=main) ![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/schemata-ts) -![License](https://img.shields.io/github/license/jacob-alford/schemata-ts)
+

+ ## Welcome A schema is an expression of a type structure that can be used to generate typeclass instances from a single declaration. Typeclass instances can perform a variety of tasks, for instance `Decoder` can take a pesky `unknown` value and give you an Either in return where the success case abides by the `schema` that generated it. The example below constructs a `User` schema. From ab2ec7fcc64b409f304a527d644af499082520a3 Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Sat, 7 Jan 2023 11:28:50 -0700 Subject: [PATCH 4/8] chore: fix docs --- docs-ts.json | 11 ++++++++++- docs/_config.yml | 4 +++- package.json | 2 +- yarn.lock | 8 ++++---- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/docs-ts.json b/docs-ts.json index 34902736..cc1770b3 100644 --- a/docs-ts.json +++ b/docs-ts.json @@ -1,3 +1,12 @@ { - "exclude": ["src/internal/*", "src/schemables/**/*"] + "exclude": ["src/internal/*", "src/schemables/**/*"], + "theme": "just-the-docs/just-the-docs", + "compilerOptions": { + "noEmit": true, + "strict": true, + "paths": { + "schemata-ts": ["./src/index.ts"], + "schemata-ts/*": ["./src/*"] + } + } } diff --git a/docs/_config.yml b/docs/_config.yml index 19463f91..2780c994 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,4 +1,6 @@ -remote_theme: pmarsceill/just-the-docs +remote_theme: just-the-docs/just-the-docs + +color_scheme: dark # Enable or disable the site search search_enabled: true diff --git a/package.json b/package.json index 2556d07b..504cec3c 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "colorette": "^2.0.19", "concurrently": "^7.2.2", "cspell": "^5.5.2", - "docs-ts": "^0.6.10", + "docs-ts": "^0.7.0", "eslint": "^7.27.0", "eslint-import-resolver-typescript": "^3.1.1", "eslint-plugin-import": "^2.26.0", diff --git a/yarn.lock b/yarn.lock index 50879208..787f4418 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3003,10 +3003,10 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -docs-ts@^0.6.10: - version "0.6.10" - resolved "https://registry.yarnpkg.com/docs-ts/-/docs-ts-0.6.10.tgz#cd80052e8e1dc701db64b1a2271827b5092dda74" - integrity sha512-DTX9c5AJ92ojMOKqqvwF8t77C8Gdgs9FPB8seymHs+F+Wl6aapc3ZkHUM+p8o+jwcBmPoihxssdK903dfwQ1JQ== +docs-ts@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/docs-ts/-/docs-ts-0.7.0.tgz#89c549462f8745b84744f68362eea2c3f29f90d9" + integrity sha512-S9UM7Ddh0l3qwftSJiko+3+aGJrnGTnigKq4wpsOvQBmMJz7kMmdAeiTwNCRgzQI70oT3T2uyuzR9hy5JT2xPQ== dependencies: chalk "^2.4.2" doctrine "^3.0.0" From 3bb8d1d7636839f9bb02f306f78a17b18657cff2 Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Sat, 7 Jan 2023 11:43:32 -0700 Subject: [PATCH 5/8] chore: make docs commonjs --- docs-ts.json | 1 + 1 file changed, 1 insertion(+) diff --git a/docs-ts.json b/docs-ts.json index cc1770b3..030f22ba 100644 --- a/docs-ts.json +++ b/docs-ts.json @@ -4,6 +4,7 @@ "compilerOptions": { "noEmit": true, "strict": true, + "module": "CommonJS", "paths": { "schemata-ts": ["./src/index.ts"], "schemata-ts/*": ["./src/*"] From 671330ba345e7ea66abdd939b4d1f870b4b898f0 Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Sat, 7 Jan 2023 11:57:24 -0700 Subject: [PATCH 6/8] chore: add pack script to CI --- .github/workflows/build.yml | 2 +- docs-ts.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27f83de5..36cbe44d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: yarn install - - run: yarn run build + - run: yarn run build:pack - run: yarn run eslint - run: yarn run test:ci - name: Coveralls diff --git a/docs-ts.json b/docs-ts.json index 030f22ba..cc1770b3 100644 --- a/docs-ts.json +++ b/docs-ts.json @@ -4,7 +4,6 @@ "compilerOptions": { "noEmit": true, "strict": true, - "module": "CommonJS", "paths": { "schemata-ts": ["./src/index.ts"], "schemata-ts/*": ["./src/*"] From f5b449dc26ae809cfa18db8a53be0ca3329a1a5e Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Sat, 7 Jan 2023 12:00:54 -0700 Subject: [PATCH 7/8] chore: make internal modules internal --- src/internal/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/util.ts b/src/internal/util.ts index da86851e..8ce50da5 100644 --- a/src/internal/util.ts +++ b/src/internal/util.ts @@ -34,7 +34,7 @@ export const typeOf = (x: unknown): string => (x === null ? 'null' : typeof x) /** * Performs a validative traversal over a struct's own enumerable properties. * - * Not to be confused with traveling across spain + * @internal */ export const witherS = (sgErrors: Sg.Semigroup) => From 775e801aa1c217a469aae05fc19ea8ad6ac184e1 Mon Sep 17 00:00:00 2001 From: Jacob Alford Date: Sat, 7 Jan 2023 12:02:02 -0700 Subject: [PATCH 8/8] chore: add pack to docs gen --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 36cbe44d..3c188cc0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: yarn install - - run: yarn run build:pack + - run: yarn run build - run: yarn run eslint - run: yarn run test:ci - name: Coveralls @@ -45,6 +45,8 @@ jobs: uses: actions/checkout@v2.3.1 - name: Install run: yarn install + - name: Build + run: yarn run build:pack - name: Generate docs run: yarn run docs - name: Deploy