-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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(superset-embedded-sdk): Buffer is not defined #21641
Conversation
hello @villebro, please help review. BTW, if this pr be approved and merged, will CI publish @superset-ui/embedded-sdk automatically? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but not sure if we should bump the version in this PR. Also, I'm wondering if we should include this library in monorepo - WDYT @zhaoyongjie ?
superset-embedded-sdk/package.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@superset-ui/embedded-sdk", | |||
"version": "0.1.0-alpha.7", | |||
"version": "0.1.0-alpha.8", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's best not to bump this in this PR, but rather when the package is published. WDYT @zhaoyongjie ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@doornot Could you revert this change and package-lock.json
so that I can merge it even if CI reports that issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks @zhaoyongjie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codes LGTM, the browser supported ArrayBuffer rather than Buffer.
Right now, the frontend code has 3 parts, superset-frontend
, superset-embedded-sdk
, and superset-websocket
. In order to auto-publish these, Moving to the monorepo might be a good idea.
I would like to know how can i fix the failed merge check("Welcome New Contributor / welcome (pull_request_target)")? @zhaoyongjie @villebro |
Any chance to get new release with these changes? |
@andrey-hohlov that's a good idea. In the future new versions should be released when new versions come out, but for now I think we should be able to do a manual release to make the most recent changes available. @zhaoyongjie have you done releases to the embedded SDK lately? If not I can take a stab at it.. |
@villebro I haven't touch embedded SDK recently. |
Hi ! Do you know when there will be a release with this bug ? |
any chance there will be a new release in the near future? if not, is there a workaround for a browser environment? |
@eduus710 we use this for now: https://www.npmjs.com/package/buffer import { Buffer } from 'buffer';
window.Buffer = Buffer; |
FYI I will try to push a new version of the SDK out today, I will keep you posted. |
Can you check if this is working as expected? https://www.npmjs.com/package/@superset-ui/embedded-sdk/v/0.1.0-alpha.8 (switchboard also published: https://www.npmjs.com/package/@superset-ui/switchboard/v/0.18.26-1) |
thank you! (fyi - i grabbed the bundle from npm; however, i notice that unpkg.com is still serving alpha 7) |
@villebro Thank you, works for us |
Buffer
is a Nodejs api, doesn't support in the browser environment. ReplaceBuffer
with jwt-decode to parse Jwt.SUMMARY
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION