Skip to content

Commit 5a093bf

Browse files
authored
Revision 0.30.0 (#513)
1 parent da49443 commit 5a093bf

File tree

357 files changed

+8977
-6875
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+8977
-6875
lines changed

benchmark/compression/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function compression() {
1919
const tests = readdirSync('benchmark/compression/module').map((name) => basename(name, extname(name)))
2020
const results = await Promise.all(tests.map((test) => measure(test)))
2121
const present = results.reduce((acc, c) => {
22-
return { ...acc, [c.test.replace('-', '/')]: { Compiled: c.compiled, Minified: c.minified, Compression: `${c.ratio.toFixed(2)} x` } }
22+
return { ...acc, [c.test.replace(/-/g, '/')]: { Compiled: c.compiled, Minified: c.minified, Compression: `${c.ratio.toFixed(2)} x` } }
2323
}, {})
2424
console.table(present)
2525
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
import { TypeCompiler } from '@sinclair/typebox/compiler'
2-
import { Type } from '@sinclair/typebox'
32

4-
const T = TypeCompiler.Compile(Type.String())
3+
console.log(TypeCompiler)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { ValueErrorType } from '@sinclair/typebox/errors'
1+
import * as ValueErrors from '@sinclair/typebox/errors'
22

3-
console.log(ValueErrorType)
3+
console.log(ValueErrors)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { TypeSystem } from '@sinclair/typebox/system'
22

3-
TypeSystem.AllowNaN = true
3+
console.log(TypeSystem)
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
import { Value } from '@sinclair/typebox/value'
2-
import { Type } from '@sinclair/typebox'
32

4-
const T = Value.Create(Type.String())
3+
console.log(Value)

benchmark/measurement/module/cases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export namespace Cases {
1111

1212
export const Primitive_String = Type.String()
1313

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

1616
export const Primitive_Boolean = Type.Boolean()
1717

changelog/0.30.0.md

Lines changed: 419 additions & 0 deletions
Large diffs are not rendered by default.

example/experimental/readme.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

example/experimental/readonly-object.ts

Lines changed: 0 additions & 68 deletions
This file was deleted.

example/legacy/intersect-0.25.0.ts

Lines changed: 0 additions & 66 deletions
This file was deleted.

example/trpc/readme.md

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)