Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Conversation

@thomashoneyman
Copy link
Contributor

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.purs file 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 browserfeatures package has not been updated to remove that obsolete feature -- as noted in this issue on the browserfeatures repo. In this package, the browser features are mapped to Halogen properties, including the now-removed DateTime.

In this PR I've fixed this by mapping the browserfeatures DateTime type to the Halogen DateTimeLocal type. 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.

Copy link
Contributor

@safareli safareli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for raising the issue. I have desired changes to our deps so we shuold update versions.
and also remove DateTime node from here too.

(looks like you have remove your fork this might help https://stackoverflow.com/questions/20977530/recover-a-commit-sent-as-a-pull-request-from-a-deleted-fork-on-github)

"package.json"
],
"dependencies": {
"purescript-halogen-datepicker": "^0.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made v1.0.0 release there so it could be updated to "^1.0.0"

],
"dependencies": {
"purescript-halogen-datepicker": "^0.1.0",
"purescript-browserfeatures": "^4.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made v5.0.0 release there so it could be updated to "^5.0.0"

case it of
IT.ColorHP.InputColor
IT.DateHP.InputDate
IT.DateTimeHP.InputDatetime
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the type from here too

@thomashoneyman thomashoneyman mentioned this pull request Dec 7, 2017
@thomashoneyman
Copy link
Contributor Author

I wasn't able to recover the fork, so I've opened a new PR here:
#52

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants