1f1c44e598
Bump kittycad from 0.2.42 to 0.2.43 in /src/wasm-lib ( #1097 )
...
Bumps [kittycad](https://github.com/KittyCAD/kittycad.rs ) from 0.2.42 to 0.2.43.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](https://github.com/KittyCAD/kittycad.rs/compare/v0.2.42...v0.2.43 )
---
updated-dependencies:
- dependency-name: kittycad
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-20 14:47:50 -08:00
9a7f434ede
Derive Databake now that it has HashMap support ( #1095 )
2023-11-20 12:24:37 -06:00
6afacd7427
KCL optional parameters ( #1087 )
...
Part of https://github.com/KittyCAD/modeling-app/issues/1006#issuecomment-1816978586
This adds support for optional parameters to the AST. They are declared with a ? suffix, e.g. `(x, tag?) => {...}`.
This PR does not actually _use_ these optional parameters anywhere. In particular, it does not change the KCL stdlib or any existing function definitions. That will happen in a follow-up PR.
2023-11-20 11:19:08 -06:00
957001ee88
Bump uuid from 1.5.0 to 1.6.0 in /src/wasm-lib ( #1089 )
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.5.0...1.6.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-20 11:17:04 -06:00
8b4cc306af
Bump openapitor from 5ed477b to 9caff1f in /src/wasm-lib ( #1085 )
...
Bumps [openapitor](https://github.com/KittyCAD/kittycad.rs ) from `5ed477b` to `9caff1f`.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](5ed477b5c9...9caff1f4f0 )
---
updated-dependencies:
- dependency-name: openapitor
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-20 11:16:33 -06:00
52d88171ca
Bump kittycad from 0.2.41 to 0.2.42 in /src/wasm-lib ( #1086 )
...
Bumps [kittycad](https://github.com/KittyCAD/kittycad.rs ) from 0.2.41 to 0.2.42.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](https://github.com/KittyCAD/kittycad.rs/compare/v0.2.41...v0.2.42 )
---
updated-dependencies:
- dependency-name: kittycad
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-20 11:16:18 -06:00
9142cf3af7
Bump databake from 0.1.6 to 0.1.7 in /src/wasm-lib ( #1082 )
...
Bumps [databake](https://github.com/unicode-org/icu4x ) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/unicode-org/icu4x/releases )
- [Changelog](https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md )
- [Commits](https://github.com/unicode-org/icu4x/commits )
---
updated-dependencies:
- dependency-name: databake
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-20 11:16:01 -06:00
198479a71a
Bump openapitor from 3afe554 to 5ed477b in /src/wasm-lib ( #1080 )
...
Bumps [openapitor](https://github.com/KittyCAD/kittycad.rs ) from `3afe554` to `5ed477b`.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](3afe554cf9...5ed477b5c9 )
---
updated-dependencies:
- dependency-name: openapitor
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-17 11:00:04 -08:00
c33aaad800
Release KCL 0.1.36 ( #1078 )
2023-11-15 17:50:08 +00:00
d175c75780
Bump schemars, itertools, add comments to crates ( #1077 )
...
Bump itertools, schemars, add comments to crates
2023-11-15 11:41:12 -06:00
ba348d1222
Bump openapitor from 1b2562f to 3afe554 in /src/wasm-lib ( #1073 )
...
Bumps [openapitor](https://github.com/KittyCAD/kittycad.rs ) from `1b2562f` to `3afe554`.
- [Release notes](https://github.com/KittyCAD/kittycad.rs/releases )
- [Commits](1b2562f4b3...3afe554cf9 )
---
updated-dependencies:
- dependency-name: openapitor
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 13:31:34 -08:00
251971238d
Fit resolutions to less than 2k x 2k ( #1065 )
...
* Fit resolutions to less than 2k x 2k
* Integer resolutions
* Scale mouse clicks
* Move stream maxResolution logic to getDimensions
2023-11-13 19:32:07 -05:00
381d0b3bc8
Add a console.error when ICE fails ( #1067 )
...
This is purely cosmetic right now, but I want to try and make it easier
to tell when the browser is unable to communicate with the ICE server
by writing it to the console.
I want to add some Sentry logging in the future, but for now, when we
see a stream failing to start, we can at least see what I suspect is the
most common trigger in the console.
Signed-off-by: Paul R. Tagliamonte <paul@kittycad.io >
2023-11-14 06:13:15 +11:00
fa7943d06a
Bump clap from 4.4.7 to 4.4.8 in /src/wasm-lib ( #1062 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.7 to 4.4.8.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.7...v4.4.8 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 13:08:16 -06:00
23adf9d905
Disable eslint rule react-hooks/exhaustive-deps ( #1055 )
...
Disable react-hooks/exhaustive-deps
Workaround for #1014
2023-11-11 16:27:12 -05:00
9f0ac5f6fd
Macro for parsing KCL at Rust compile-time ( #1049 )
...
Macro for parsing KCL at Rust compile-time
This adds a new `parse_kcl!` macro which takes a string as input. It parses the string into KCL source code _at compile-time_. Invalid KCL will make your Rust project fail to compile.
Fixes https://github.com/KittyCAD/modeling-app/issues/1018
2023-11-10 10:36:21 -06:00
08dbd2e9c3
Bump web-sys from 0.3.64 to 0.3.65 in /src/wasm-lib ( #1052 )
...
Bumps [web-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.64 to 0.3.65.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: web-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 06:49:33 -05:00
5ecb176467
Bump tokio from 1.33.0 to 1.34.0 in /src/wasm-lib ( #1051 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.33.0 to 1.34.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.33.0...tokio-1.34.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 05:24:40 -05:00
66135636ec
Bump wasm-bindgen-futures from 0.4.37 to 0.4.38 in /src/wasm-lib ( #1050 )
...
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen ) from 0.4.37 to 0.4.38.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 05:24:10 -05:00
1672c1fd1f
Impl databake for all AST node types ( #1047 )
...
Databake doesn't have any derive for HashMap, so for NonCodeMeta I decided to skip serializing the non_code_nodes. This should be OK for now.
See <https://github.com/unicode-org/icu4x/issues/4266 > for the Databake hashmap issue.
2023-11-09 16:39:12 -06:00
6ec5881985
top level expressions fix ( #1046 )
...
#1033 top level expressions fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2023-11-09 13:08:11 -08:00
7272cc9fbd
Describe Rust version for devs ( #1044 )
...
Fixes #1042
2023-11-09 17:01:52 +00:00
b925ed9b65
KCL stdlib and circle function ( #1029 )
...
Allows stdlib functions to be written as KCL, not as Rust.
Rust stdlib functions will hereafter be referred to as "core" not "std".
Right now the only stdlib function I implemented is a circle function (it's a wrapper around the core arc function which sets the arc's start/end to 0 and 360 respectively). I know I want to change this function as soon as KCL has enums, which is my next task. So, I don't want users to start using this right away. To that end, I've named this function "unstable_stdlib_circle" not "circle". Once the function is ready to be stabilized, I can rename it to just "circle".
Note that this PR modifies the existing "sketch and extrude a cylinder" KCL test so that instead of using a user-defined circle function, it uses the unstable_stdlib_circle function now. And the twenty-twenty tests pass, so we know my stdlib is working.
https://github.com/KittyCAD/modeling-app/issues/922
2023-11-09 09:58:20 -06:00
0db5db2181
Bump js-sys from 0.3.64 to 0.3.65 in /src/wasm-lib ( #980 )
...
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.64 to 0.3.65.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: js-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 23:41:53 -06:00
898e3db9d1
AST function nodes no longer have stdlib function members ( #1031 )
...
* AST function nodes no longer have stdlib function members
IMO the AST should not need an actual pointer to a stdlib function -- that is a completely separate concern from the AST.
Instead, the AST nodes can just store function names, and the executor will have a stdlib which it can look up those names in.
* Fix tests
* Update snapshot tests
2023-11-08 20:23:59 -06:00
d337ac2546
Test with a circle function ( #1030 )
2023-11-08 15:06:41 -06:00
371d8e08f7
Refactor the call_fn fn to be more readable ( #1028 )
2023-11-08 13:44:31 -06:00
a0678d22a8
fix epsilon bug ( #1025 )
2023-11-08 09:27:53 +00:00
acbfae2e65
Bump wasm-bindgen from 0.2.87 to 0.2.88 in /src/wasm-lib ( #981 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.87 to 0.2.88.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.87...0.2.88 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 23:56:23 -06:00
1e1bec6a8a
Bump winnow ( #1024 )
2023-11-07 23:55:45 -06:00
06462b5a65
Bump syn from 2.0.38 to 2.0.39 in /src/wasm-lib ( #1000 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.38 to 2.0.39.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.38...2.0.39 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 22:45:58 -06:00
b1084cbf80
Bump serde from 1.0.190 to 1.0.192 in /src/wasm-lib ( #1012 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.190 to 1.0.192.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.190...v1.0.192 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 22:44:55 -06:00
141fd2f3f1
fix variables panel and others ( #1021 )
2023-11-08 01:27:43 +00:00
604d931962
selections fix follow up ( #1019 )
2023-11-07 23:10:30 +00:00
b1668410f8
Neaten up stdlib code ( #1017 )
2023-11-07 12:12:18 -06:00
3a59ae13b6
fix selections ( #1013 )
2023-11-07 07:21:32 +00:00
57c2481943
unused imports ( #1011 )
2023-11-07 03:29:50 +00:00
a1c555c51e
clear errors on good parse ( #1008 )
2023-11-07 02:02:44 +00:00
82586f002b
Test Jess's KCL error ( #1004 )
2023-11-06 14:01:51 -06:00
4bd08f7444
safe parse ( #996 )
...
* safe parse
* use safe parse on mouse up, stream
2023-11-06 06:47:45 +00:00
6b2603b1c4
don't overwrite current file on onboarding-replay ( #1003 )
...
don't over write file on onboarding
2023-11-06 04:03:21 +00:00
af49bebde3
compare formated asts before execute ( #1002 )
2023-11-06 03:43:01 +00:00
ca056996fd
stop double execute on project open ( #997 )
2023-11-06 14:33:19 +11:00
34163da361
start of fixing changing files and cleaning up after execute ( #897 )
...
* start of fixing changing files and cleaning up after execute
* stop constraints from leaving artifacts
* don't write file on initial load
2023-11-06 11:49:13 +11:00
7c22bac638
Remove unwraps from binary expression algorithm ( #992 )
2023-11-03 13:30:19 -05:00
0b9ba55bb4
Nicer error messages for unknown tokens ( #974 )
2023-11-01 23:08:22 +00:00
2d2a85ae7d
remove view change from debug panel ( #866 )
...
remove view change from debug
2023-11-01 23:03:58 +00:00
fdbfd0c4b6
Fix typos ( #972 )
...
* Update twenty-twenty
Due to engine PR #1566
* Fix typos
2023-11-01 22:34:54 +00:00
2e419907e6
Tokenizing fallibility ( #883 )
...
Tokenization tracks invalid tokens and produces a nice error about them
---------
Co-authored-by: Adam Chalmers <adam.chalmers@kittycad.io >
2023-11-01 17:20:49 -05:00
3d0c5c10b0
KCL literals are typed, not JSON values ( #971 )
...
We now control the KCL type system instead of reusing JSON's type system.
2023-11-01 13:52:50 -05:00