Skip to content

Breaking changes v13 - labels as arguments considered as object #499

Description

@nirapx

Hi,
When I'm setting labels as arguments and the first argument is an array:

someCounter.labels(arr, string1, string2)

it is considered as an object and throws Added label "0" is not included in initial labelset.
I found that there is a condition if (typeof args[0] === 'object') but it might also check that it is not an array.

I've upgraded from v12 to v14 (but it happens in v13 also).

Thanks

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions