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

npmify Rails::VERSION for the package versions #34011

Conversation

lsylvester
Copy link
Contributor

Set the versions in package.json based on the npm-ifed Rails::VERSION

@rails-bot
Copy link

r? @schneems

(@rails-bot has picked a reviewer for you, use r? to override)

@rails-bot
Copy link

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against webpacker-default. Please double check that you specified the right target!

"rails-ujs": "~<%= npm_package_version %>"<% unless options[:skip_turbolinks] %>,
"turbolinks": "~5.1.1"<% end -%><% unless skip_active_storage? %>,
"activestorage": "~<%= npm_package_version %>"<% end -%><% unless options[:skip_action_cable] %>,
"actioncable": "~<%= npm_package_version %>"<% end -%>
Copy link
Member

Choose a reason for hiding this comment

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

Just a thought in passing, but it sounds like these conditionals could look much nicer if rails-ujs came last.

@dhh
Copy link
Member

dhh commented Oct 1, 2018

Addressed this with simply asking for anything newer than currently released for now in fbd4597. I'm not a fan of pessimistic dependency versioning, ESPECIALLY when those dependencies are exposed to easy editing by the application programmer.

@dhh dhh closed this Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
railties ready PRs ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants