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 deprecation warnings #185

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Fix deprecation warnings #185

merged 1 commit into from
Oct 10, 2024

Conversation

rxt1077
Copy link

@rxt1077 rxt1077 commented Oct 10, 2024

This PR addresses deprecation warnings in typst 0.12-0-rc1. It fixes issue #180.

@andreasKroepelin andreasKroepelin merged commit fac97c4 into polylux-typ:main Oct 10, 2024
@andreasKroepelin
Copy link
Collaborator

Thank you!

@pavelzw
Copy link

pavelzw commented Oct 19, 2024

when is this fix planned to be released? Would be nice to have the warnings fixed soon :)

})
}
context {
repetitions.update(rep => calc.max(rep, pause-counter.get().first() + 1))
Copy link
Contributor

Choose a reason for hiding this comment

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

Calling .get() in this closure does not work, since the context is not available in it.

Alternative:

let pauses = pause-counter.get().first() + 1
repetitions.update(rep => calc.max(rep, pauses))

@rmburg rmburg mentioned this pull request Nov 12, 2024
@pinpox
Copy link

pinpox commented Jan 24, 2025

Still getting these warnings. Any chance for a (minor) release for this? The last release is ages ago

@andreasKroepelin
Copy link
Collaborator

You're in luck. I'm currently heavily working on getting a new release ready. Sorry I made you wait for so long!

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.

5 participants