-
Notifications
You must be signed in to change notification settings - Fork 8
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
v2.0.0-rc.0 - Edge runtime support and more. #45
Conversation
@@ -4,9 +4,9 @@ | |||
* Changes may be overwritten as part of auto-generation. | |||
*/ | |||
|
|||
import { type ISubscriptionPreviewResponse, ISubscriptionResponse } from '../../../types'; |
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.
You can't do type imports in deno then?
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 don't think this is a deno runtime requirenent. There is a lint rule which preferred adding type
keyword if they were types.
Somehow it stopped adding it now 🤷
false, | ||
], | ||
[ | ||
'InValid timestamp', |
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.
Spelling if you're worried about that sort of thing in a test 😄
}); | ||
EdgeRuntime.initialize(); | ||
}); | ||
test.each([ |
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.
Absolutely not a blocker. I find this so much easier to read and you get proper types for the test cases too
byteHexMapping[i] = i.toString(16).padStart(2, '0'); | ||
} | ||
|
||
export class EdgeCrypto implements CryptoProvider { |
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.
Do you have any tests for this?
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.
Specifically the computeHmac
function
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.
we do have a test to assert it is generating correct HMAC here
CHANGELOG.md
Outdated
- Added support for Bun, deno and edge runtimes. | ||
- Added support for edge runtime. |
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.
Did you mean to remove deno
from here?
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.
Yup, I need to run some more tests before marking it as fully supported.
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.
🔥
2b9ec68
2.0.0-rc.0 - 2024-09-26
Added
Changed
WebhooksValidator.isValidSignature
now returns a promise.node-fetch
to nativefetch
API.