Revision 0.33.21 (#1064)

* HotFix: 0.33.20 - Object Shadowing on Runtime

* ChangeLog
This commit is contained in:
Haydn Paterson
2024-11-07 22:09:57 +09:00
committed by GitHub
parent 0144c8622c
commit 52ceab98c5
4 changed files with 7 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
### 0.33.0
- [Revision 0.33.21](https://github.com/sinclairzx81/typebox/pull/1064)
- [1063](https://github.com/sinclairzx81/typebox/issues/1063) Hotfix to resolve variable shadowing on Object (Parser Runtime)
- [Revision 0.33.20](https://github.com/sinclairzx81/typebox/pull/1062)
- Add TypeScript Parsing Infrastructure. Add Parse API to top level import.
- [Revision 0.33.19](https://github.com/sinclairzx81/typebox/pull/1061)

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@sinclair/typebox",
"version": "0.33.20",
"version": "0.33.21",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@sinclair/typebox",
"version": "0.33.20",
"version": "0.33.21",
"license": "MIT",
"devDependencies": {
"@arethetypeswrong/cli": "^0.13.2",

View File

@@ -1,6 +1,6 @@
{
"name": "@sinclair/typebox",
"version": "0.33.20",
"version": "0.33.21",
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
"keywords": [
"typescript",

View File

@@ -322,7 +322,7 @@ const ObjectMapping = (values: Record<string, Types.TSchema>[]) => Types.Object(
return { ...properties, ...record }
}, {} as Types.TProperties))
// prettier-ignore
const Object = Runtime.Tuple([
const _Object = Runtime.Tuple([
Runtime.Const(LBrace),
Runtime.Ref<Record<string, Types.TSchema>[]>('Properties'),
Runtime.Const(RBrace)
@@ -644,7 +644,7 @@ export const Module = new Runtime.Module({
Property,
PropertyDelimiter,
Properties,
Object,
Object: _Object,
Elements,
Tuple,
Parameter,