You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage of this module with Deno (as of Deno 1.46, ref) now causes a deprecation warning due to usage of the deprecated "import assertions" syntax in user-agent.ts:
Since this is deprecated syntax (and also because using assert instead of with causes a warning in Deno and eventually, likely, in other runtimes) it would be great to update the one "import assertion" that uses assert { type: 'json' } to instead be an "import attribute" that uses the with keyword, e.g. with { type: 'json' }
The text was updated successfully, but these errors were encountered:
Per the history of the TC39 spec for this feature (https://github.com/tc39/proposal-import-attributes?tab=readme-ov-file#history) the most current syntax for "import attributes" uses the
with
keyword instead of theassert
keyword.Usage of this module with
Deno
(as of Deno 1.46, ref) now causes a deprecation warning due to usage of the deprecated "import assertions" syntax inuser-agent.ts
:Since this is deprecated syntax (and also because using
assert
instead ofwith
causes a warning in Deno and eventually, likely, in other runtimes) it would be great to update the one "import assertion" that usesassert { type: 'json' }
to instead be an "import attribute" that uses thewith
keyword, e.g.with { type: 'json' }
The text was updated successfully, but these errors were encountered: