-
Notifications
You must be signed in to change notification settings - Fork 26
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
4.x launch #206
Comments
I'm taking over this, and have a few questions @remcohaszing @kvz:
This is done, right?
What do you mean by these or are they done?
Not sure what this means |
We have strict schemas in this repo. For inputs from customers, we have to use
Changesets was done i think 🤔
When we have released node-sdk, @Acconut wants to know. He can then update the documentation to refer to a signature calculation function that is then also part of a release. |
I have now implemented types for the API methods, and integrated alphalib types to assembly / template instructions. Note that I've manually modified alpha lib with a change: bd63c1c Also note: The api2 types that I could not find in alphalib, I've typed manually and put inside https://github.com/transloadit/node-sdk/blob/main/src/apiTypes.ts - however I think they are not entirely correct, because I cannot find any typescript definitions for the API signatures, and what's documented in the API docs is not comprensive and some of it is not consistent with reality (actual responses from API endpoints). I think ideally we'd use the same schema in api2 and we use those schema to generate API docs, but that's a future task. This means that some of the types that I guessed are probably wrong. Feel free to have a look at them. I've made a pre-release 4.0.0-4 which we can dogfood and test. |
Really nice work Mikael! I agree those api endpoint types should be coming from the api2 repo. That's the next task after nailing Assembly Instructions I think. But let's ship the latter first, and keep the guesswork for those in the 4.x release or it will be delayed for months I think. I have added to my todo to dogfood 4.0.0-0 and will also sync back the alphalib change. Although maybe we can be a little bit more restrictive than any. @remcohaszing what are your feels regarding all this? |
I think the schema types are still a bit premature to include. Also it could be done in a non-breaking release later. Improved types wouldn’t be a breaking change. For now I’d stick with With Node.js 18 almost being EOL and |
I'm open to that, if all the exports are named vs default. We have that? |
Yes. CJS |
you mean alphalib aren't mature enough for this release?
so let's rewrite it to ESM and upgrade all deps before v4, do we agree on that? |
Yes to both. |
Ok, if @kvz agrees too then i'll go ahead and
|
Yes talked about this in Slack and I think we should ship all the types we have. figured-out ones, robot schemas, etc. It's not perfect yet, and we'll do a few more passes to get them better, see also:
but people can always |
Very excited to see full ESM support! How stable would you say the |
Not stable, and that release is still CJS too! Please bear with us a week longer :) @remcohaszing might you still be able to sneak Changesets in here? |
TODO
Loosejust strict Robot schemas/types so consuming devs have autocomplete for Assembly Instructions when they use the Node SDKwithout TypeScript erroring out if they use a new FFmpeg stack version that their types didn’t know about yet(@remcohaszing)We're saving these for 5.x. Explicitly not doing:
The text was updated successfully, but these errors were encountered: