-
Notifications
You must be signed in to change notification settings - Fork 153
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
Updated dependencies and ember-try scenarios #408
Conversation
21e7c06
to
4c314da
Compare
-import { service } from '@ember/service'; | ||
+import { inject as service } from '@ember/service'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I patched ember-shiki
because the syntax import { service } from '@ember/service'
doesn't work in ember-lts-3.28
.
@@ -21,7 +21,7 @@ module('Acceptance: modal-dialog | animatable', function (hooks) { | |||
test('basic modal', async function (assert) { | |||
assert.dom(modalRootElementSelector).exists({ count: 1 }); | |||
assert.isAbsent(overlaySelector); | |||
assert.dom('#example-basic button').exists({ count: 1 }); | |||
assert.dom('#example-basic button').exists({ count: 2 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The number of button
's changed to 2 because ember-shiki
has a copy button. To change the number back to 1, consider using data-test-*
selectors instead of IDs and class names.
- ember-release | ||
- ember-beta | ||
- ember-canary | ||
- embroider-safe | ||
- embroider-optimized | ||
# - embroider-optimized |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that ember-modal-dialog
passes embroider-safe
. It's unlikely that it'll ever pass embroider-optimized
due to liquid-*
packages.
Thanks for tackling this @ijlee2. Once you get to your goal of green on CI, I'm happy to merge. |
@lukemelia Thanks. Earlier, I ran Please make sure you have the correct access rights
and the repository exists.
pnpm: Command failed with exit code 128: /usr/bin/git clone [email protected]:rwwagner90/perf-primitives.git /home/runner/.local/share/pnpm/store/v3/tmp/_tmp_1782_a3d77804b6ff0bdc785b16c3[22](https://github.com/yapplabs/ember-modal-dialog/actions/runs/12053373763/job/33610243999?pr=408#step:6:23)b4bd85
Cloning into '/home/runner/.local/share/pnpm/store/v3/tmp/_tmp_1782_a3d77804b6ff0bdc785b16c322b4bd85'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
I see now. The error is due to my using |
…ndencies) with ember-shiki
4c314da
to
9e57388
Compare
"pnpm": { | ||
"overrides": { | ||
"perf-primitives": "0.0.6" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error that I posted in #408 (comment) occurred because liquid-wormhole@8cfb67b
declared a forked commit of perf-primitives
as its dependency.
While it may be possible to configure this repo's GitHub Actions to allow installing dependencies from forks, for simplicity, I think it may be better to force the original perf-primitives
to be installed.
It's worth noting that, because tests for the animatable
route pass only with unofficial versions of liquid-tether
and liquid-wormhole
, a passing CI doesn't necessarily mean that this addon will work on a consuming project with liquid-*
packages.
@lukemelia Could you try running CI again? I'm not sure if it'll pass this time, because a couple of dev-dependencies ( |
@ijlee2 Good to merge from your POV? |
I think so. On Friday, I noticed that, in contrast to what can be currently seen in the deployed site, the animations for some modals in the Since these modals in |
Background
While investigating blockers for introducing Embroider, I realized that files in the
addon
folder (w/ version4.1.4
) show older Ember syntax and folder layout. This means, projects that depend onember-modal-dialog
will be unable to update theirember-source
to6.0.0
.I'd like to introduce 1-2 patch pull requests, to help these projects more independently introduce Embroider, introduce Ember v6, and migrate away from
ember-modal-dialog
. To do so, we need CI for themaster
branch to pass again.What changed?
ember-prism
withember-shiki
and downgradedliquid-*
packages, so that tests will run without build or runtime errors (without these changes, we can see these errors when we run thedummy
app locally and attempt to open a modal).ember-try
scenarios to testember-lts-3.28
,ember-lts-4.12
,ember-lts-5.12
, Ember 6.x, andembroider-safe
.Note
ember-lts-3.24
has to be skipped becauseember-shiki
uses named blocks.ember-release
,ember-beta
, andember-canary
(all point to6.x
) are failing because the addon has deprecated syntax ({{action}}
helper) and classic component layout. Let's mark the failures as passing for now, since they should be fixed in the follow-up patch PRs.Tip
I recommend checking the commits one-by-one using the Commits tab. You can select
Hide whitespace
to see fewer changes.