-
Notifications
You must be signed in to change notification settings - Fork 3
V2 roadmap #3
Comments
@rfmejia Please give me your feedback if you're interested in using/developing this project. |
@thomaswinckell I'm interested in helping with tickets as much as I can. I particularly like the feature to flexibly supply types and un/marshallers.
I agree, this should be the default design of our library (similar to Scala libraries that have "implicit" un/marshallers supplied). Once you spec out your improved API ideas (promise-based) share it here so we can review it. I currently like the composability of |
I also like Scala implicits.
I also like it, but I just remind an idea : I would like to be able to use asynchronous un/marshallers. With this, you could, for instance, fetching data from an
I am starting to use this project again on an other personal project that has complex needs, so I will do what I can to be fast. |
Great, I'm using this library for a project of mine too. Take your time with this, we can address other points you raised in the meantime. I can monitor this repo for issues and try to help with them. |
@rfmejia I have started to write the V2. You can check it on the By the way, I am looking at this project https://github.com/lilezek/tson that is doing something similar to this project (less powerful, but more simple), and especially to the metadata emitter written especially for this project : https://github.com/lilezek/awesome-metadata. It still very young but I like the idea to retrieve ALL the metadata (generics, optional, ...) and not only the main type. We could add support for this metadata emitter. Since it's very young, I prefer to not depend on it. |
I'll go over the changes in depth sometime within the next few days, at a glance it looks great. For the metadata emitter, this is a great addition to the library and maybe it can be part of some major 2.x release down the line. |
when is v2 release? |
@chanlito I am a bit busy on other projects for now, but I will come back to this one soon. I will let you know. |
V1 was a proof of concept. Since I did not see any other tools like this, I want to go further. Let's discuss here about what we want for a V2.
First, I would like to get rid of the peer dependencies. It's working nicely with
scalts
currently, but I want to avoid a dependency with it. We can do an other project calledscalts-serialize
or something else that depends onscalts
that adds un/marshallers for optional, either, etc... The point is thatscalts
is not bullet proof, it's kind of a proof of concept.Internally, I would suggest to use
Promise
instead ofEither
.Then, I would like a more flexible and easier api. Currently, it's very nice for common cases, but not so nice to use with custom un/marshallers or with complex generics types.
I would go for something like this :
Here, we have a function where we can put every types we want (including generics) and returns an
ISerialize
(generic types should be provided, see microsoft/TypeScript#10576).That means we can use chaining like this :
To resume :
es5
is not enough ?The text was updated successfully, but these errors were encountered: