Skip to content

Avoid Buffer and crypto dependencies#211

Merged
cereallarceny merged 1 commit intodevfrom
fix/browser-fix
Aug 10, 2020
Merged

Avoid Buffer and crypto dependencies#211
cereallarceny merged 1 commit intodevfrom
fix/browser-fix

Conversation

@vvmnnnkv
Copy link
Member

@vvmnnnkv vvmnnnkv commented Aug 9, 2020

Description

Fixes #196.
Original problem is in buffer library, similar to aws-amplify/amplify-js#678
But since Buffer was used only for decoding/encoding base64, I removed its usage replacing with tiny library that does only base64. Same for crypto dependency - replaced it with utility func that creates random buffer.

Affected Dependencies

n/a

How has this been tested?

Created html file with TF.js and syft.js included, and MNIST example contents and checked it works.

Checklist

@vvmnnnkv vvmnnnkv added Type: Bug 🐛 Some functionality not working in the codebase as intended Severity: 1 - Critical 🔥 Causes a failure of the complete software system, subsystem or a program within the system Type: Improvement 📈 Performance improvement not introducing a new feature or requiring a major refactor labels Aug 9, 2020
@vvmnnnkv vvmnnnkv added this to the 0.3.0 milestone Aug 9, 2020
@vvmnnnkv vvmnnnkv requested a review from cereallarceny August 9, 2020 21:57
@vvmnnnkv vvmnnnkv added the Status: Review Needed 🙋 This needs someone to approve, deny, comment, or request changes label Aug 9, 2020
@cereallarceny cereallarceny merged commit 07950b4 into dev Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Severity: 1 - Critical 🔥 Causes a failure of the complete software system, subsystem or a program within the system Status: Review Needed 🙋 This needs someone to approve, deny, comment, or request changes Type: Bug 🐛 Some functionality not working in the codebase as intended Type: Improvement 📈 Performance improvement not introducing a new feature or requiring a major refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CDN version throws error when included on the page

2 participants