Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Fully qualify import paths #735

Merged
merged 3 commits into from Feb 10, 2019
Merged

Conversation

charricknflx
Copy link
Contributor

By adding the file extension to every imported module in oidc-client-js source and updating the footer of jsrsasign, native ES6 imports will work properly in a browser without a build pipeline. This will have no impact on the current build process.

Working example:

<html>
  <head>
    <meta charset="UTF-8">
  </head>
  <body>
    <script type="module">
    import oidc from 'https://charricknflx.github.io/oidc-client-js/index.js';
    console.log(oidc);
    </script>
  </body>
</html>```

@klebba
Copy link

klebba commented Jan 21, 2019

+1 to this; would also like to know if there will be adoption of Window.crypto in the future, in order to skirt the need for jsrsasign: https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto

@klebba
Copy link

klebba commented Jan 30, 2019

Hey @brockallen -- is this change set something you might consider? Thanks

@brockallen
Copy link
Member

@charricknflx this is a backwards compat change?

@brockallen brockallen added this to the 1.7.0 milestone Feb 3, 2019
@charricknflx
Copy link
Contributor Author

charricknflx commented Feb 4, 2019

Yes. the change only modifies import paths and export syntax. Which the current build handles without issue.

@brockallen brockallen merged commit fd83883 into IdentityModel:dev Feb 10, 2019
@brockallen
Copy link
Member

Merged, thanks

@brockallen
Copy link
Member

1.7.0-beta.1 has been published to npm, please test and see if it's working for you.

@charricknflx
Copy link
Contributor Author

@brockallen Tested locally and works as expected. Thank you.

@charricknflx charricknflx deleted the master branch February 11, 2019 18:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

3 participants