Fork from @sinclair/typebox 0.34.49 as @alkdev/typebox

- Rename package from @sinclair/typebox to @alkdev/typebox
- Update author, repository, and homepage to alkdev
- Remove GitHub workflows, .vscode config, and branding assets
- Update all source, test, example, changelog, and task imports
- Update tsconfig.json path mappings
- Clean up readme header (remove upstream badges/branding)
This commit is contained in:
2026-04-23 13:22:31 +00:00
parent 11f18ac6e9
commit bd758c2342
981 changed files with 1676 additions and 2054 deletions

View File

@@ -39,7 +39,7 @@
- [Revision 0.32.1](https://github.com/sinclairzx81/typebox/pull/701) Specify default exports for Web Pack
## [0.32.0](https://www.npmjs.com/package/@sinclair/typebox/v/0.32.0)
## [0.32.0](https://www.npmjs.com/package/@alkdev/typebox/v/0.32.0)
## Overview
@@ -79,9 +79,9 @@ This revision is a milestone revision for the TypeBox project. It has several br
Revision 0.32.0 adds the ability to import types individually.
```typescript
import { Type, type Static } from '@sinclair/typebox' // classic - 37.0 kb minified
import { Type, type Static } from '@alkdev/typebox' // classic - 37.0 kb minified
import { Object, String, Number, type Static } from '@sinclair/typebox' // selective - 6.5 kb minified
import { Object, String, Number, type Static } from '@alkdev/typebox' // selective - 6.5 kb minified
```
<a name="Value-Function-Imports"></a>
@@ -91,9 +91,9 @@ import { Object, String, Number, type Static } from '@sinclair/typebox' // selec
Revision 0.32.0 adds the ability to import value functions from the `/value` module path.
```typescript
import { Value } from '@sinclair/typebox/value' // classic - 61.5 kb minified
import { Value } from '@alkdev/typebox/value' // classic - 61.5 kb minified
import { Check } from '@sinclair/typebox/value' // selective - 18.2 kb minified
import { Check } from '@alkdev/typebox/value' // selective - 18.2 kb minified
```
### CommonJS and ESM
@@ -383,7 +383,7 @@ The following shows the changes from 0.31.0 to 0.32.0.
```typescript
// Revision 0.31.0
import { TypeSystemErrorFunction } from '@sinclair/typebox/system'
import { TypeSystemErrorFunction } from '@alkdev/typebox/system'
TypeSystemErrorFunction.Set((schema, errorType) => {
@@ -392,7 +392,7 @@ TypeSystemErrorFunction.Set((schema, errorType) => {
// Revision 0.32.0
import { SetErrorFunction } from '@sinclair/typebox/errors'
import { SetErrorFunction } from '@alkdev/typebox/errors'
SetErrorFunction(({ schema, errorType, path, value }) => { // as destructured object
@@ -416,13 +416,13 @@ Revision 0.32.0 renames the `Optional`, `Required` and `Transform` symbols to `O
```typescript
// Revision 0.31.0
import { Kind, Hint, Optional, Required, Transform } from '@sinclair/typebox' // these are symbols
import { Kind, Hint, Optional, Required, Transform } from '@alkdev/typebox' // these are symbols
// Revision 0.32.0
import {
Kind, Hint, OptionalKind, RequiredKind, TransformKind, // these are symbols
Optional, Required, Transform // these are type imports
} from '@sinclair/typebox'
} from '@alkdev/typebox'
```
<a name="Breaking-TypeGuard-Interface-Change"></a>
@@ -434,13 +434,13 @@ Revision 0.32.0 has a breaking interface change on the TypeGuard utility where t
```typescript
// Revision 0.31.0
import { TypeGuard, Kind } from '@sinclair/typebox'
import { TypeGuard, Kind } from '@alkdev/typebox'
const R = TypeGuard.TString({ ... })
// Revision 0.32.0
import { TypeGuard } from '@sinclair/typebox'
import { TypeGuard } from '@alkdev/typebox'
const R = TypeGuard.IsString({ ... })
```
@@ -454,11 +454,11 @@ The value submodule function import paths are unfortunately no longer supported.
```typescript
// Revision 0.31.0
import { Check } from '@sinclair/typebox/value/check'
import { Check } from '@alkdev/typebox/value/check'
// Revision 0.32.0
import { Check } from '@sinclair/typebox/value'
import { Check } from '@alkdev/typebox/value'
```
<a name="Breaking-Error-Function"></a>
@@ -470,7 +470,7 @@ The TypeSystemErrorFunction has been replaced with SetErrorFunction which can be
```typescript
// Revision 0.31.0
import { TypeSystemErrorFunction, ValueErrorType, DefaultErrorFunction } from '@sinclair/typebox/system'
import { TypeSystemErrorFunction, ValueErrorType, DefaultErrorFunction } from '@alkdev/typebox/system'
TypeSystemErrorFunction.Set((schema, errorType) => { // i18n override
switch(errorType) {
@@ -483,7 +483,7 @@ TypeSystemErrorFunction.Set((schema, errorType) => { // i18n override
// Revision 0.32.0
import { SetErrorFunction, ValueErrorType, DefaultErrorFunction } from '@sinclair/typebox/errors'
import { SetErrorFunction, ValueErrorType, DefaultErrorFunction } from '@alkdev/typebox/errors'
SetErrorFunction((error) => { // i18n override
switch(error.errorType) {