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

fix: Use let instead of const for let tags on the server #57

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

AngusMorton
Copy link
Contributor

This resolves an issue where the compiled server code reassigns const variables by using let instead of const.

Resolves #56.

This resolves the issue where we could reassign const variables if the let variable was modified in callback functions.
Copy link

changeset-bot bot commented Mar 25, 2024

🦋 Changeset detected

Latest commit: 5c8b139

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@marko/tags-api-preview Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.50%. Comparing base (07c6d7f) to head (5c8b139).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #57   +/-   ##
=======================================
  Coverage   77.50%   77.50%           
=======================================
  Files          63       63           
  Lines        1307     1307           
  Branches      341      341           
=======================================
  Hits         1013     1013           
  Misses        259      259           
  Partials       35       35           

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

@DylanPiercey DylanPiercey merged commit 8b85ca8 into marko-js:main Mar 25, 2024
7 checks passed
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.

Using a spread and function attribute compiles to code that reassigns a const
2 participants