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 flush_batch_on_end.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "innerDiameter",
"start": 0,
"type": "Identifier"
@ -20,6 +21,7 @@ description: Result of parsing flush_batch_on_end.kcl
"init": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0.364",
"start": 0,
"type": "Literal",
@ -29,11 +31,13 @@ description: Result of parsing flush_batch_on_end.kcl
"suffix": "None"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"preComments": [
"// Set units in inches (in)",
"",
@ -52,6 +56,7 @@ description: Result of parsing flush_batch_on_end.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "outerDiameter",
"start": 0,
"type": "Identifier"
@ -62,6 +67,7 @@ description: Result of parsing flush_batch_on_end.kcl
"left": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "35",
"start": 0,
"type": "Literal",
@ -71,10 +77,12 @@ description: Result of parsing flush_batch_on_end.kcl
"suffix": "None"
}
},
"moduleId": 0,
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "64",
"start": 0,
"type": "Literal",
@ -88,11 +96,13 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -105,6 +115,7 @@ description: Result of parsing flush_batch_on_end.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "length",
"start": 0,
"type": "Identifier"
@ -115,6 +126,7 @@ description: Result of parsing flush_batch_on_end.kcl
"left": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -124,6 +136,7 @@ description: Result of parsing flush_batch_on_end.kcl
"suffix": "None"
}
},
"moduleId": 0,
"operator": "+",
"right": {
"commentStart": 0,
@ -131,6 +144,7 @@ description: Result of parsing flush_batch_on_end.kcl
"left": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "1",
"start": 0,
"type": "Literal",
@ -140,10 +154,12 @@ description: Result of parsing flush_batch_on_end.kcl
"suffix": "None"
}
},
"moduleId": 0,
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "2",
"start": 0,
"type": "Literal",
@ -161,11 +177,13 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -178,18 +196,22 @@ description: Result of parsing flush_batch_on_end.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "sketch000",
"start": 0,
"type": "Identifier"
},
"init": {
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "startSketchOn",
"start": 0,
"type": "Identifier"
@ -200,6 +222,7 @@ description: Result of parsing flush_batch_on_end.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -207,9 +230,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "XY",
"start": 0,
"type": "Identifier"
@ -220,11 +245,13 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "Name"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"preComments": [
"",
"",
@ -242,6 +269,7 @@ description: Result of parsing flush_batch_on_end.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "outerProfile",
"start": 0,
"type": "Identifier"
@ -253,6 +281,7 @@ description: Result of parsing flush_batch_on_end.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "center",
"start": 0,
"type": "Identifier"
@ -263,6 +292,7 @@ description: Result of parsing flush_batch_on_end.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0.0",
"start": 0,
"type": "Literal",
@ -275,6 +305,7 @@ description: Result of parsing flush_batch_on_end.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0.0",
"start": 0,
"type": "Literal",
@ -286,6 +317,7 @@ description: Result of parsing flush_batch_on_end.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -296,6 +328,7 @@ description: Result of parsing flush_batch_on_end.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
@ -307,9 +340,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "outerDiameter",
"start": 0,
"type": "Identifier"
@ -319,10 +354,12 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "Name",
"type": "Name"
},
"moduleId": 0,
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "2",
"start": 0,
"type": "Literal",
@ -342,6 +379,7 @@ description: Result of parsing flush_batch_on_end.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "tag",
"start": 0,
"type": "Identifier"
@ -349,6 +387,7 @@ description: Result of parsing flush_batch_on_end.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "TagDeclarator",
"type": "TagDeclarator",
@ -360,9 +399,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "circle",
"start": 0,
"type": "Identifier"
@ -373,6 +414,7 @@ description: Result of parsing flush_batch_on_end.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -380,9 +422,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "sketch000",
"start": 0,
"type": "Identifier"
@ -393,11 +437,13 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "Name"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"preComments": [
"",
"",
@ -415,6 +461,7 @@ description: Result of parsing flush_batch_on_end.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "innerProfile",
"start": 0,
"type": "Identifier"
@ -426,6 +473,7 @@ description: Result of parsing flush_batch_on_end.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "center",
"start": 0,
"type": "Identifier"
@ -436,6 +484,7 @@ description: Result of parsing flush_batch_on_end.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0.0",
"start": 0,
"type": "Literal",
@ -448,6 +497,7 @@ description: Result of parsing flush_batch_on_end.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "0.0",
"start": 0,
"type": "Literal",
@ -459,6 +509,7 @@ description: Result of parsing flush_batch_on_end.kcl
}
],
"end": 0,
"moduleId": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
@ -469,6 +520,7 @@ description: Result of parsing flush_batch_on_end.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
@ -480,9 +532,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "innerDiameter",
"start": 0,
"type": "Identifier"
@ -492,10 +546,12 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "Name",
"type": "Name"
},
"moduleId": 0,
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"raw": "2",
"start": 0,
"type": "Literal",
@ -515,6 +571,7 @@ description: Result of parsing flush_batch_on_end.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "tag",
"start": 0,
"type": "Identifier"
@ -522,6 +579,7 @@ description: Result of parsing flush_batch_on_end.kcl
"arg": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "TagDeclarator",
"type": "TagDeclarator",
@ -533,9 +591,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "circle",
"start": 0,
"type": "Identifier"
@ -546,6 +606,7 @@ description: Result of parsing flush_batch_on_end.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -553,9 +614,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "sketch000",
"start": 0,
"type": "Identifier"
@ -566,11 +629,13 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "Name"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"preComments": [
"",
"",
@ -588,6 +653,7 @@ description: Result of parsing flush_batch_on_end.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "pipeProfile",
"start": 0,
"type": "Identifier"
@ -598,9 +664,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "outerProfile",
"start": 0,
"type": "Identifier"
@ -617,6 +685,7 @@ description: Result of parsing flush_batch_on_end.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "tool",
"start": 0,
"type": "Identifier"
@ -625,9 +694,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "innerProfile",
"start": 0,
"type": "Identifier"
@ -643,9 +714,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "subtract2d",
"start": 0,
"type": "Identifier"
@ -656,6 +729,7 @@ description: Result of parsing flush_batch_on_end.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -664,12 +738,14 @@ description: Result of parsing flush_batch_on_end.kcl
],
"commentStart": 0,
"end": 0,
"moduleId": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"1": [
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
@ -686,11 +762,13 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "PipeExpression",
"type": "PipeExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"preComments": [
"",
"",
@ -708,6 +786,7 @@ description: Result of parsing flush_batch_on_end.kcl
"id": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "pipe",
"start": 0,
"type": "Identifier"
@ -719,6 +798,7 @@ description: Result of parsing flush_batch_on_end.kcl
"label": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "length",
"start": 0,
"type": "Identifier"
@ -727,9 +807,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "length",
"start": 0,
"type": "Identifier"
@ -745,9 +827,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "extrude",
"start": 0,
"type": "Identifier"
@ -758,6 +842,7 @@ description: Result of parsing flush_batch_on_end.kcl
},
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
@ -765,9 +850,11 @@ description: Result of parsing flush_batch_on_end.kcl
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "pipeProfile",
"start": 0,
"type": "Identifier"
@ -778,11 +865,13 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "Name"
}
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
@ -794,9 +883,11 @@ description: Result of parsing flush_batch_on_end.kcl
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "settings",
"start": 0,
"type": "Identifier"
@ -808,19 +899,23 @@ description: Result of parsing flush_batch_on_end.kcl
"key": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "defaultLengthUnit",
"start": 0,
"type": "Identifier"
},
"moduleId": 0,
"start": 0,
"type": "ObjectProperty",
"value": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": {
"commentStart": 0,
"end": 0,
"moduleId": 0,
"name": "in",
"start": 0,
"type": "Identifier"
@ -836,12 +931,14 @@ description: Result of parsing flush_batch_on_end.kcl
"type": "Annotation"
}
],
"moduleId": 0,
"nonCodeMeta": {
"nonCodeNodes": {},
"startNodes": [
{
"commentStart": 0,
"end": 0,
"moduleId": 0,
"start": 0,
"type": "NonCodeNode",
"value": {

View File

@ -50,6 +50,7 @@ description: Variables in memory after executing flush_batch_on_end.kcl
"tag": {
"commentStart": 515,
"end": 522,
"moduleId": 0,
"start": 515,
"type": "TagDeclarator",
"value": "arc001"
@ -175,6 +176,7 @@ description: Variables in memory after executing flush_batch_on_end.kcl
"tag": {
"commentStart": 360,
"end": 367,
"moduleId": 0,
"start": 360,
"type": "TagDeclarator",
"value": "arc000"
@ -264,6 +266,7 @@ description: Variables in memory after executing flush_batch_on_end.kcl
"tag": {
"commentStart": 360,
"end": 367,
"moduleId": 0,
"start": 360,
"type": "TagDeclarator",
"value": "arc000"
@ -293,6 +296,7 @@ description: Variables in memory after executing flush_batch_on_end.kcl
"tag": {
"commentStart": 360,
"end": 367,
"moduleId": 0,
"start": 360,
"type": "TagDeclarator",
"value": "arc000"
@ -400,6 +404,7 @@ description: Variables in memory after executing flush_batch_on_end.kcl
"tag": {
"commentStart": 360,
"end": 367,
"moduleId": 0,
"start": 360,
"type": "TagDeclarator",
"value": "arc000"