-
Notifications
You must be signed in to change notification settings - Fork 14
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
New maintainer is needed #21
Comments
I can help on this. we are using this heavily in our code and have done few more improvements on this as well. |
We are using this as well so happy to help out |
Also happy to do my part, should we put together a github org for it? |
Thanks @udnisap! Do you mind describing what the improvements are ? Thanks @davecoates and @stutrek for jumping onboard. If you all guys could collaborate that would be fantastic. If you want to setup an org I can just migrate repo to it. Otherwise I could give you access rights. If you could define what's the plan moving forward that would be great. That would also help us figure out if you all can collaborate. Thanks |
@kirach and I are going to set up an org for it, I'll add you guys. Doing the hardest part now: figuring out a name |
Sounds good! In terms of a plan moving forward there's a couple of pull requests I'd like to land (mainly Map support) but that's from me so would like someone else to review it. The library also has a hard dependency on specific version of immutable - I think this should be changed to a minimum version as a peer dep but I'll open a PR for that later. We've been using this in production for a while and it's been good but there's a few issues, one of which is performance related to Union's so I'd like to look at that next. Thanks for the library @Gozala, we have found it very useful. Are you wanting any involvement with this project going forward or looking to hand it over entirely? If the latter someone will need to be added as collaborator on the npm package to cut new releases. |
I think all PRs and issues come with the repo if gozala transfers ownership. You and udnisap have good PRs, I'll need to make the Date one work very soon. |
I know I am late to the party, but I would be happy to help out too. I have actually been using a fork in production, which includes two fixes:
Fixing Typed.Date = Typed("Date", value => {
var d = new Date(value)
if (isNaN(d.valueOf())) {
return new TypeError(`"${value}" is not a valid date.`)
}
return d
}) |
@lukesneeringer I added you to the org. Do you have a PR open for your additions? |
Thanks! @Gozala let me know how you want to proceed. I made a group and invited you as an owner, thoughtbot has a great guide to contributing so I forked that to the group. If you want to keep the repo here that's fine, but if you transfer ownership all the issues, PRs, and webhooks will stay intact. https://help.github.com/articles/about-repository-transfers/ |
Hi guys sorry i was bit busy these days. and somethings we did on our own was to have data cleaning methods on top of Record when intial object is passed to Record. For example in our use cases default values are not always
but from our data scheme, we might sometimes get Person objects as
We are also using few more types such as Further we have few methods to work with Records.
|
@udnisap I'm very interested to see many of these changes! The Fractions part sounds amazing. I also like the idea of a Does |
I'm willing to help as well. I was about to start my own project that was similar when I found this. It's everything I wanted it to be and more. The first order of business for me would be to add flow types to the project. |
@stutrek yeah we are using something like We do have Fractions to number and number to fraction convention. for example
and when using it (autocasting will result in a type error if the string is a not a valid number)
|
Sorry for the delay folks, had really busy last week. Looks like you're all eager to collaborate, which is great. @stutrek would you mind adding people who want to help with maintenance to the typed-immutable organization ? It also looks like I need admin rights for that organization to be able to complete transfer. |
Great! @Gozala I think you need to accept the invite to the group before I can give you admin rights. I can invite you to a team, but that doesn't make you an owner. |
This makes a ton of sense to me, although it is worth noting that we would need to decide on what the expected signature for Another thing that might be useful, either instead of or in addition to the changes you propose, is having the method for each type receive the key and full initial data as subsequent arguments. Right now we have:
If we instead passed I could make this change in a matter of a few minutes; I will do so once the repo is transferred and submit a PR. (Unless there is a preference that I do it now?) |
@Gozala thanks for transferring it! I'll look at everything tomorrow, we should merge many of these. I have to be honest, I'm not a big fan of the data transformer being part of the API. I don't like the idea of us adding to the API. Immutable.js may change in a way that conflicts with any changes we make, then we have the choice of either making a release that breaks to conform with the Immutable API or to add a confusing hurdle to others that are trying to adopt this library. I think this functionality belongs either as a utility function or as a part of a larger data loader of which typed-immutable is only one part. |
Putting it as part of the type reader would solve that problem, and be pretty immune to changes that Immutable.js might make. |
@stutrek Another thing we need to do is make sure the test suite is complete and set up CI and such. I can do that soon. |
Unless anyone has objections, I'm going to start merging PRs that have been open for at least a week and there seems to be a 👍 consensus on. @Gozala how do you want to handle npm publishing? You can add me, my handle is sakabako. |
Done! |
I am not entirely sure what you mean by data transform here. If it's parsing arbitrary structures as expected types. I think I agree I have to the same conclusion but for different reasons see #2 for details. |
I think we can close this issue now! Thanks everyone for stepping up and keep this project going! |
I am afraid I do not have time to work on this project, so if someone want's to step up and move it forward review / land pull requests respond to issues etc.
The text was updated successfully, but these errors were encountered: