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

Upgrade add-on to Ember.js v5.8.1 #190

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

MrChocolatine
Copy link
Member

@MrChocolatine MrChocolatine commented May 3, 2024

Breaking

Upgrade add-on to ember-cli v5.8.1 (#190)

The new requirements are:

  • Ember.js v4.12 or above
  • Ember CLI v4.12 or above
  • Node.js v18 or above

Resolves #172 .

Closes #171 .
Closes #174 .
Closes #187 .
Closes #188 .
Closes #189 .

@MrChocolatine MrChocolatine added dependencies Pull requests that update a dependency file breaking Breaking changes labels May 3, 2024
This was the version used in the commit that creates a blank add-on on
v5.8.1 => 80bf3ab .
This was the version used in the commit that creates a blank add-on on
v5.8.1 => 80bf3ab .
@MrChocolatine MrChocolatine marked this pull request as ready for review May 5, 2024 20:25
@MrChocolatine MrChocolatine requested a review from a team as a code owner May 5, 2024 20:25
@MrChocolatine MrChocolatine changed the title DRAFT // Upgrade Ember.js to v5.8.1 Upgrade add-on to Ember.js v5.8.1 May 5, 2024
@@ -1,6 +1,6 @@
{{page-title "ember-reading-time"}}

<h1>Welcome to ember-reading-time</h1>
<h2 id="title">Welcome to ember-reading-time</h2>
Copy link
Member

Choose a reason for hiding this comment

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

Why this change? I am not aware of a <h1> already present in the page 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Also coming from the blueprint:
https://github.com/ember-cli/ember-addon-output/blob/v5.8.1/tests/dummy/app/templates/application.hbs

More in sync with what's natively generated.

Copy link
Member

Choose a reason for hiding this comment

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

It seems to be a very very old line, so I am not sure it's intended. I've checked our dummy app and we don't have any <h1> title, so our current code is slightly better in terms of DOM structure.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry I don't get what you mean. I am trying to understand.

Right now we have this:

<h1>Welcome to ember-reading-time</h1>

and the blueprint applies this:

https://github.com/ember-cli/ember-addon-output/blob/v5.8.1/tests/dummy/app/templates/application.hbs#L3

Why not reusing what is generated by default?

Copy link
Member

Choose a reason for hiding this comment

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

My opinion is this change is unnecessary. There's no particular reason to replace our <h1> with a <h2>, it's just the main title of our page. I don't know why the blueprint has this content, but we have no reason to follow it here, this is our dummy app.

Copy link
Member Author

Choose a reason for hiding this comment

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

but we have no reason to follow it here

Just to ease the upgrades by having less code diff.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will revert that change, that's fine it's not blocking at all.
It's just, in my mind, while I understand what you said, I don't get why we want to deviate from the blueprint with such an unneeded change. (and then deal with conflict/code diff when upgrading, like in this PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking changes dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Node.js to version >= 18
2 participants