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

Ember upgrade to v3.28 and others #264

Merged
merged 15 commits into from
May 11, 2022

Conversation

benjay10
Copy link
Contributor

@benjay10 benjay10 commented Apr 29, 2022

Basically trying to upgrade packages that depend on an older version of embroider/macros which causes problems in frontend-gelinkt-notuleren. However, this turned into a complete Ember upgrade (using ember-cli-update).

Might be best to separate the embroider/macros fixes into their own separate branch.

There are still issues with this branch, which I could not figure out:

  • Invalid .eslintrc.js config, even though the part that it complains about is just like any other project.
  • Incorrect tests/dummy/app/router.js types.

@benjay10 benjay10 added the enhancement New feature or request label Apr 29, 2022
@benjay10 benjay10 requested a review from abeforgit April 29, 2022 13:00
“[BenJay10]” added 6 commits May 5, 2022 01:16
Some packages were moved back to an older version, and some missing
styling is put back, to be reviewed in another PR. These changes got
into this PR my mistake.
Most of these are done using a search and replace mechanism, a lot of
them manually, and a few with --fix.
@benjay10
Copy link
Contributor Author

benjay10 commented May 5, 2022

There is one more error that I havn't been able to fix. This requires more TypeScript knowledge. Hopefully @abeforgit or someone else can take a look at least.
Upon building via ember serve the error presented is:

tests/dummy/app/router.ts:5:3 - error TS2416: Property 'location' in type 'Router' is not assignable to the same property in base type 'Router'.
  Type 'string' is not assignable to type '"none" | "auto" | "history" | "hash"'.

5   location = config.locationType;
    ~~~~~~~~

The project continues to be built, and runs correctly otherwise.

“[BenJay10]” added 2 commits May 6, 2022 01:46
This reverts commit 6409843.

Due to release-it-lerna-changelog not being updated be supported in
release-it v15.
@benjay10 benjay10 requested a review from nvdk May 6, 2022 00:08
Our config type was badly defined, allowing string for the router
location whereas only a select enum of strings was allowed
Copy link
Member

@abeforgit abeforgit left a comment

Choose a reason for hiding this comment

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

Typing is fixed now, looks good to go!

@@ -1,4 +1,5 @@
{{! template-lint-disable no-invalid-interactive }}
{{! template-lint-disable no-down-event-binding }}
Copy link
Member

Choose a reason for hiding this comment

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

Interesting that thats a lint rule, I agree with disabling it here

@benjay10 benjay10 marked this pull request as ready for review May 10, 2022 18:02
@benjay10 benjay10 merged commit a966d60 into development May 11, 2022
@benjay10 benjay10 deleted the enhancement/bump-embroider-macros branch May 11, 2022 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants