Upgrade to ts-rs 11.0 for TS type fixes (#7581)

* Bump ts-rs from 10.1.0 to 11.0.1

* Fix breaking changes

* Fix tsc errors

* Update output

* Upgrade to kittycad-modeling-cmds 0.2.124 for ts-rs update

* Update parser snaps

* Update output of gridfinity_bins_stacking_lip sample

* Fix missing field in TS unit tests

* Fix tsc type error with fixed_size_grid project setting
This commit is contained in:
Jonathan Tran
2025-06-24 14:38:43 -04:00
committed by GitHub
parent e4941cb524
commit c7f0a6c2a0
387 changed files with 74834 additions and 24 deletions

View File

@ -13,6 +13,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "part001",
"start": 0,
"type": "Identifier"
@ -20,13 +21,16 @@ description: Result of parsing basic_fillet_cube_start.kcl
"init": {
"body": [
{
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "startSketchOn",
"start": 0,
"type": "Identifier"
@ -37,6 +41,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -44,9 +49,11 @@ description: Result of parsing basic_fillet_cube_start.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "XY",
"start": 0,
"type": "Identifier"
@ -64,6 +71,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "at",
"start": 0,
"type": "Identifier"
@ -74,6 +82,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -86,6 +95,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -97,6 +107,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -107,9 +118,11 @@ description: Result of parsing basic_fillet_cube_start.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "startProfile",
"start": 0,
"type": "Identifier"
@ -120,6 +133,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -132,6 +146,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -142,6 +157,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -154,6 +170,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "10",
"start": 0,
"type": "Literal",
@ -165,6 +182,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -175,6 +193,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "tag",
"start": 0,
"type": "Identifier"
@ -182,6 +201,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "TagDeclarator",
"type": "TagDeclarator",
@ -193,9 +213,11 @@ description: Result of parsing basic_fillet_cube_start.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -206,6 +228,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -218,6 +241,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -228,6 +252,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "10",
"start": 0,
"type": "Literal",
@ -240,6 +265,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -251,6 +277,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -261,9 +288,11 @@ description: Result of parsing basic_fillet_cube_start.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -274,6 +303,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -286,6 +316,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "end",
"start": 0,
"type": "Identifier"
@ -296,6 +327,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0",
"start": 0,
"type": "Literal",
@ -309,6 +341,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"argument": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "10",
"start": 0,
"type": "Literal",
@ -320,6 +353,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
@ -327,6 +361,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -337,6 +372,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "tag",
"start": 0,
"type": "Identifier"
@ -344,6 +380,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "TagDeclarator",
"type": "TagDeclarator",
@ -355,9 +392,11 @@ description: Result of parsing basic_fillet_cube_start.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "line",
"start": 0,
"type": "Identifier"
@ -368,19 +407,23 @@ description: Result of parsing basic_fillet_cube_start.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "close",
"start": 0,
"type": "Identifier"
@ -391,12 +434,14 @@ description: Result of parsing basic_fillet_cube_start.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
@ -409,6 +454,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "length",
"start": 0,
"type": "Identifier"
@ -416,6 +462,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "10",
"start": 0,
"type": "Literal",
@ -431,9 +478,11 @@ description: Result of parsing basic_fillet_cube_start.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "extrude",
"start": 0,
"type": "Identifier"
@ -444,6 +493,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -456,6 +506,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
@ -463,6 +514,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "2",
"start": 0,
"type": "Literal",
@ -478,6 +530,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "tags",
"start": 0,
"type": "Identifier"
@ -489,9 +542,11 @@ description: Result of parsing basic_fillet_cube_start.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "thing",
"start": 0,
"type": "Identifier"
@ -505,9 +560,11 @@ description: Result of parsing basic_fillet_cube_start.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "thing2",
"start": 0,
"type": "Identifier"
@ -519,6 +576,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -529,9 +587,11 @@ description: Result of parsing basic_fillet_cube_start.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "fillet",
"start": 0,
"type": "Identifier"
@ -542,6 +602,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -550,15 +611,18 @@ description: Result of parsing basic_fillet_cube_start.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "PipeExpression",
"type": "PipeExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -566,6 +630,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0
}
}

View File

@ -17,6 +17,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
"tag": {
"commentStart": 90,
"end": 96,
"moduleId": 0,
"start": 90,
"type": "TagDeclarator",
"value": "thing"
@ -37,6 +38,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
"tag": {
"commentStart": 155,
"end": 162,
"moduleId": 0,
"start": 155,
"type": "TagDeclarator",
"value": "thing2"
@ -67,6 +69,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
"tag": {
"commentStart": 90,
"end": 96,
"moduleId": 0,
"start": 90,
"type": "TagDeclarator",
"value": "thing"
@ -111,6 +114,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
"tag": {
"commentStart": 155,
"end": 162,
"moduleId": 0,
"start": 155,
"type": "TagDeclarator",
"value": "thing2"