Skip to content
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

Minor bits and pieces #5066

Merged
merged 3 commits into from
Jan 16, 2025
Merged

Minor bits and pieces #5066

merged 3 commits into from
Jan 16, 2025

Conversation

nrc
Copy link
Contributor

@nrc nrc commented Jan 14, 2025

Two minor fixups:

  • Use the std lib deprecation mechanism for the int function, rather than a hack in the parser
  • Remove an epsilon from float to int conversion to make it match more recent float to int conversions

Copy link

qa-wolf bot commented Jan 14, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Jan 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Jan 15, 2025 11:48pm

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.99%. Comparing base (38513a1) to head (ea914f5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5066      +/-   ##
==========================================
- Coverage   86.00%   85.99%   -0.02%     
==========================================
  Files          88       88              
  Lines       31493    31470      -23     
==========================================
- Hits        27085    27062      -23     
  Misses       4408     4408              
Flag Coverage Δ
wasm-lib 85.99% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@jtran jtran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we show warnings for functions deprecated in this way. It only removes it from the docs listing and shows an indicator in the autocomplete. But it's probably fine.

@nrc nrc merged commit c147a21 into main Jan 16, 2025
34 checks passed
@nrc nrc deleted the nrc-bits branch January 16, 2025 01:00
TomPridham pushed a commit to TomPridham/modeling-app that referenced this pull request Feb 13, 2025
* Use std deprecation for int rather than a hack in the parser

Signed-off-by: Nick Cameron <[email protected]>

* Don't allow an epsilon when converting floats to ints for property access

Signed-off-by: Nick Cameron <[email protected]>

* Fixup tests

Signed-off-by: Nick Cameron <[email protected]>

---------

Signed-off-by: Nick Cameron <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants