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

fix: convert initData to a string #147

Merged
merged 2 commits into from
Oct 20, 2021
Merged

fix: convert initData to a string #147

merged 2 commits into from
Oct 20, 2021

Commits on Oct 19, 2021

  1. fix: convert initData to a string

    This is to help get around the change in data type of initData between
    the legacy API and the standards API.
    
    In the legacy API, the initData was a Uint8Array but needed to be
    converted to a Uint16Array to be able to toString it.
    
    In the standards API, initData is an ArrayBuffer but can be converted to
    a Uint8Array to be able to toString it.
    
    We now do this string conversion for you so that you can just use the
    contentId and not need to figure out whether legacy or standard API is
    used.
    
    BREAKING CHANGE: getContentId will now receive a string representation
    of the initData
    gkatsev committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    73ad9dc View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. contentId->initDataString

    gkatsev committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    f47cb3c View commit details
    Browse the repository at this point in the history