-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Broken Patch for CSG After ESBuild Bump #285
Fix Broken Patch for CSG After ESBuild Bump #285
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you manually edit the lockfile? Can we just use a dependency resolution in package.json instead to ensure it doesn't accidentally get updated automatically?
Which lockfile did you mean, the .patch file or yarn.lock? I didn't manually edit either one |
I mean yarn.lock.
Are we keeping it downgraded for the sole purpose of resolution then? Why does moving beyond 2.9.6 break things? |
yarn.lock was updated by running the Since the patch file applies the changes on fixed line numbers, it is hard to guarantee that future versions will not cause the patched package to break due to wrongly replacing newly added code. |
So we only need to freeze |
The latest version of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest version of
@jscad/stl-serializer
depends on@jscad/modeling
but of a different version (2.9.11), so it may be better to standardize the version to 2.9.6
I was thinking about it again and you're right, it doesn't make sense to only freeze the transitive dependency. Thanks!
Description
This fixes 2 Issues:
The
@jscad/stl-serializer
package depends on@jscad/modeling
. It will resolve the version of@jscad/modeling
to 2.9.11. To reduce bundle size and standardize the version of@jscad/modeling
at 2.9.6 for the patch, I downgraded the version of@jscad/stl-serializer
.The
esbuild
version bump seemed to have failed the function call totoPolygons(geometry1, colorizePolygons = true)
. Passing incolorizePolygons = true
is incorrect JavaScript syntax, initially written with named parameters in mind (but named parameters are not supported in JavaScript). It runs and produces the expected output without throwing aReferenceError
before theesbuild
version bump. I have rectified the syntax and created a new patch.Fixes #265
Type of change
Please delete options that are not relevant.
Checklist: