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

state.final() and query() deprecations warnings in typst (git hash 022f34c4) #58

Open
swaits opened this issue Sep 27, 2024 · 1 comment · May be fixed by #59
Open

state.final() and query() deprecations warnings in typst (git hash 022f34c4) #58

swaits opened this issue Sep 27, 2024 · 1 comment · May be fixed by #59
Labels
enhancement New feature or request
Milestone

Comments

@swaits
Copy link

swaits commented Sep 27, 2024

Description:

It appears that #state.final() and #query no longer require location parameters.

Diagnostics (deprecation warnings):

warning: call
ing `state.final` with a location is deprecated
   ┌─ @preview/glossarium:0.4.1/glossarium.typ:37:29
   │
37 │     let __glossary_entries = __glossary_entries.final(here())
   │                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   │
   = hint: try removing the location argument

warning: calling `query` with a location is deprecated
   ┌─ @preview/glossarium:0.4.1/glossarium.typ:20:4
   │
20 │ ╭     query(
21 │ │       selector(label(__glossary_label_prefix + key)).before(loc, inclusive: false),
22 │ │       loc,
23 │ │     )
   │ ╰─────^
   │
   = hint: try removing the location argument

warning: calling `query` with a location is deprecated
   ┌─ @preview/glossarium:0.4.1/glossarium.typ:25:4
   │
25 │     query(selector(label(__glossary_label_prefix + key)), loc)
   │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   │
   = hint: try removing the location argument

Latest (dev) typst installed via:

cargo install --git https://github.com/typst/typst --locked typst-cli --force
@quachpas quachpas added this to the 0.5.0 milestone Oct 1, 2024
@quachpas
Copy link
Collaborator

quachpas commented Oct 1, 2024

Thanks! Will take a look at the attached PR

@quachpas quachpas added the enhancement New feature or request label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants