Skip to content

Commit

Permalink
Revision 0.30.0 (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 authored Aug 1, 2023
1 parent da49443 commit 5a093bf
Show file tree
Hide file tree
Showing 357 changed files with 8,977 additions and 6,875 deletions.
2 changes: 1 addition & 1 deletion benchmark/compression/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function compression() {
const tests = readdirSync('benchmark/compression/module').map((name) => basename(name, extname(name)))
const results = await Promise.all(tests.map((test) => measure(test)))
const present = results.reduce((acc, c) => {
return { ...acc, [c.test.replace('-', '/')]: { Compiled: c.compiled, Minified: c.minified, Compression: `${c.ratio.toFixed(2)} x` } }
return { ...acc, [c.test.replace(/-/g, '/')]: { Compiled: c.compiled, Minified: c.minified, Compression: `${c.ratio.toFixed(2)} x` } }
}, {})
console.table(present)
}
3 changes: 1 addition & 2 deletions benchmark/compression/module/typebox-compiler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { TypeCompiler } from '@sinclair/typebox/compiler'
import { Type } from '@sinclair/typebox'

const T = TypeCompiler.Compile(Type.String())
console.log(TypeCompiler)
4 changes: 2 additions & 2 deletions benchmark/compression/module/typebox-errors.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { ValueErrorType } from '@sinclair/typebox/errors'
import * as ValueErrors from '@sinclair/typebox/errors'

console.log(ValueErrorType)
console.log(ValueErrors)
2 changes: 1 addition & 1 deletion benchmark/compression/module/typebox-system.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { TypeSystem } from '@sinclair/typebox/system'

TypeSystem.AllowNaN = true
console.log(TypeSystem)
3 changes: 1 addition & 2 deletions benchmark/compression/module/typebox-value.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Value } from '@sinclair/typebox/value'
import { Type } from '@sinclair/typebox'

const T = Value.Create(Type.String())
console.log(Value)
2 changes: 1 addition & 1 deletion benchmark/measurement/module/cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export namespace Cases {

export const Primitive_String = Type.String()

export const Primitive_String_Pattern = Type.RegEx(/foo/, { default: 'foo' })
export const Primitive_String_Pattern = Type.RegExp(/foo/, { default: 'foo' })

export const Primitive_Boolean = Type.Boolean()

Expand Down
419 changes: 419 additions & 0 deletions changelog/0.30.0.md

Large diffs are not rendered by default.

54 changes: 0 additions & 54 deletions example/experimental/readme.md

This file was deleted.

68 changes: 0 additions & 68 deletions example/experimental/readonly-object.ts

This file was deleted.

66 changes: 0 additions & 66 deletions example/legacy/intersect-0.25.0.ts

This file was deleted.

111 changes: 0 additions & 111 deletions example/trpc/readme.md

This file was deleted.

Loading

0 comments on commit 5a093bf

Please sign in to comment.