This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Update dependencies and InputType mapping to remove obsolete feature #51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'd like to use this in a component in a Halogen project, but because Halogen has a new major version number (2 -> 3), this package is incompatible. I bumped the major version number and found that it will fail to build for two reasons:
This package relies on
purescript-halogen-datepicker, which itself is still on Halogen 2.1.0.This can be resolved with this pull request to update that package's dependencies.
The
InputType.pursfile maps browser input types to Halogen properties.Halogen 3.0.0 removes an obsolute browser input type, "datetime", and keeps the still-supported one, "datetime-local." However, the
browserfeaturespackage has not been updated to remove that obsolete feature -- as noted in this issue on thebrowserfeaturesrepo. In this package, the browser features are mapped to Halogen properties, including the now-removedDateTime.In this PR I've fixed this by mapping the browserfeatures
DateTimetype to the HalogenDateTimeLocaltype. However, since SlamData also owns the browserfeatures package, I suppose you could just remove the type from that package, too, and then delete the line altogether in this package.This package can't be updated until the two issues above are resolved, but at that point this will again become usable in Halogen 3.0.0 projects.