Changelog
[7.0.11]
_encode_choice
SEQUENCE
types with a trailing root component type list.
SEQUENCE '<sequence name>' had excess elements at the end.
Changelog
[7.0.0]
Make ENUMERATED
have number
type only. This is most just to avoid breaking
existing code. This is important, because:
===
strict
equality operator, a bigint
will not equate to a number
of similar value.
So supporting bigint
would complicate comparisons.ENUMERATED
types as actual enums. If you do, you
would not be able to represent all decoded values as a member of that enum
without first converting the bigint
into a number
.ENUMERATED
types typically do not have absurdly large values.Changelog
[6.0.0]
It's 2021 and we have Browserify and BigInt. We can use Buffer
methods to
encode and decode integers (instead rolling our own implementation for
Uint8Array
), and we can use BigInt
so that we can support INTEGER
and
ENUMERATED
values that are infinitely large!
This does mean that I have removed the Webpack configuration. If you want this
in a web app, it really should just be packed along with your project as a whole
rather than imported separately. If you really want it as a separate import, the
only thing you should have to do is define Buffer
in the global context.