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 to Ember 4.12 and Node 18 #10

Merged
merged 47 commits into from
Oct 11, 2023
Merged

Conversation

TylerMatteo
Copy link

@TylerMatteo TylerMatteo commented Jul 24, 2023

Summary

This PR updates this package to use Ember 4.12 and Node 18. Most of the changes seen below are a result of running ember-cli-update --to 4.12. Changes done "by hand" include:

  • Removing unused code that made use of tailwind css and ember-cli-tailwind
  • Upgrading the nyc-planning-style-guide dependency to a version with the changes in this PR.
  • Refactor deprecated use of / for doing division in SASS
  • Remove _firstOccurringLayer from layerGroup model. It was causing errors after making some other changes and, as far as I can tell, it's not used anywhere. Turns out this code was required for "singleton" type layer groups. The only case of this I've found are the "aerial" layers. I originally removed the code to get past an error I was seeing concerning an apparent infinite state update loop. Removing this code fixed that error but broke the aerials by causing all of those layers to turn on together instead of only one at a time. I resolved this by putting the code back but only setting _firstOccurringLayer for singleton type layer groups.
  • Adding some dependencies to satisfy peer dependency warnings I saw when running yarn. These warnings weren't causing issues because the packages needed happened to be provided by transient deps in our packages but resolving them ensures we don't inadvertently break the addon by uninstalling unrelated packages.
  • Manually upgraded some other packages - mainly some Ember addons and mapbox-related packages. One key improvement here is that there are no dependencies that depend on ember-cli-babel v6
  • Added a largestMinZoom computed property to the layer-group model. This will be used downstream in Zola to keep some functionality that I had to refactor for Zola's upgrades.
  • Various other by-hand changes to Ember code that ember-cli-update couldn't automate - mainly adding this. in templates that were doing implicity this.

I've already tested my Zola branch with a pre-release version made from this branch and things seem to be working as expected. Once this is approved and merged, I'll version it to 3.0.0 and publish that.

@TylerMatteo TylerMatteo force-pushed the task/13775-ember4-node18-upgrade branch from 7524c2a to ca01d5b Compare July 24, 2023 17:34
push:
branches:
- main
- master
Copy link
Member

Choose a reason for hiding this comment

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

Do we have a master branch in this repo? I couldn't find one. If not, could we get rid of this reference?

CONTRIBUTING.md Outdated Show resolved Hide resolved
@TangoYankee
Copy link
Member

@TylerMatteo Most of our applications will still rely on v2 of ose-ember-addons. Should we take this opportunity to split v2 into its own long-lived branch that we can use for updates, independent of the v3 code that will take over main?

@TangoYankee

This comment was marked as outdated.

@TangoYankee

This comment was marked as resolved.

addon/models/layer.js Outdated Show resolved Hide resolved
@@ -35,28 +35,37 @@ export default Component.extend({

actions: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should refactor labs-bbl-lookup away from the actions hash.

@TylerMatteo TylerMatteo merged commit 8e6e1bc into main Oct 11, 2023
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.

3 participants