Skip to content
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

Make runtime the main module #28

Merged
merged 1 commit into from
Jun 17, 2018
Merged

Make runtime the main module #28

merged 1 commit into from
Jun 17, 2018

Conversation

andrejewski
Copy link
Owner

@andrejewski andrejewski commented Jun 17, 2018

The import { program } from 'raj/runtime' is now import { runtime } from 'raj'.

Historically, Raj had many modules but those were pulled out into their own packages (raj-compose, tagmeme). For quite awhile the only module has been runtime. I personally have been trolled by having a useless index.js file for this long and want to make this break before 1.0 as it is pure cruft.

This will break a few packages but the change is only a import change + find/replace.

The name "runtime" is also much better as "program" is the {init, update, view, done} structure and it is confusing to conflate those two. A program is inert. In Elm, a "program" is something that takes those arguments but in Raj it is an application unit.

@andrejewski andrejewski merged commit 389e45d into master Jun 17, 2018
@andrejewski andrejewski deleted the run-fun branch June 17, 2018 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant