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

feat: remove browserify, crypto-js and source maps #122

Merged
merged 4 commits into from
Dec 7, 2023

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Dec 5, 2023

Now you can use a <script type="module"> to import lightning-tools in HTML.

Test codepen: https://codepen.io/rolznz/pen/mdvaqNq

Also adds a test in the invoice test file which tests the sha256 and hex function replacements.

NPM package size decreased from 319 kB to 134 kB.

https://www.npmjs.com/package/rolznz-test1

https://www.npmjs.com/package/@getalby/lightning-tools

Note: also changed the bolt11 decoder to a dev dependency (it is only needed to build the project, and otherwise breaks skypack/jsDelivr import)

Bumped version to 5.0.0 as some exported methods are changed to be async (new sha256 method is async).

@rolznz rolznz merged commit ba08367 into master Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants