Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Rebase/v3.2.1 #24

Merged
merged 142 commits into from
Nov 30, 2023
Merged

Rebase/v3.2.1 #24

merged 142 commits into from
Nov 30, 2023

Conversation

fenos
Copy link
Collaborator

@fenos fenos commented Nov 30, 2023

Rebase upstream

DarthSim and others added 30 commits May 14, 2023 15:31
* Drop dependency + use built-in `base64url`

[`create-hmac`](https://github.com/browserify/createHmac) is meant for compat between node and browser compat and was last updated in 2018.

Computing the HMAC signature on the client (browser) does not make any sense in 99% of the use-cases, as the secrets would be needed on the client side.
This means that we can drop browser support and just use the native node module, which is also exported by the `create-hmac` when running on node.

`Buffer.toString()` also accepts "base64url" as an encoding, so we can drop the `urlSafeBase64` in favor of that.

* Use encoder from hmac instance
@fenos fenos merged commit c15dbef into master Nov 30, 2023
4 checks passed
@fenos fenos deleted the rebase/v3.2.1 branch November 30, 2023 15:50
@GaryAustin1
Copy link

GaryAustin1 commented Nov 30, 2023

@fenos Not saying it is connected and I can't test as I don't have a pro plan.
But if this went into production just now timing is interesting.
But a user just now is getting images with inverted colors when transforming....
supabase/supabase#19335

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.