Skip to content

"decode" function is not used for v9 in strict mode #866

Closed
@kento-machida

Description

@kento-machida

Description

We upgraded from v8.5.1 to v9.0.0, but happend TypeError that "decode" is not a function in strict mode.
I think this issue cause is below change, define non-enum in this function.
#741

This change point is not included in Migration note, so we did not notice.
I'm sure that many other users also have used this function.
How about mentioning this matter in the Migration note and Readme?

Reproductiona

In strict mode, use "decode" function.

Environment

jsonwebtoken : ^9.0.0

node : v16.16.0 (use strict mode)
Typescript : ^4.7.4
OS : windows10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions