Skip to content

Removed unnecessary dependencies (Part 3) - #1226

Merged
ijlee2 merged 5 commits into
ember-learn:mainfrom
ijlee2:remove-dependencies-part-3
Sep 7, 2026
Merged

ijlee2 merged 5 commits into
ember-learn:mainfrom
ijlee2:remove-dependencies-part-3

Conversation

@ijlee2

@ijlee2 ijlee2 commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Background

Removed dependencies so that we can reduce maintenance cost and introduce Embroider more easily.

What changed?

  • Isolated the use of fetch to app/templates/releases/canary.gts.
  • Removed ember-fetch (v1 addon).
  • Removed rsvp.
  • Fixed lint errors.

How to test

Visit https://deploy-preview-1226--ember-website.netlify.app/releases/canary/, the only place where we used fetch. Under the section "How to Install > Ember," a hash should appear after https://s3.amazonaws.com/builds.emberjs.com/canary/shas/.

@netlify

netlify Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ember-website ready!

Name Link
🔨 Latest commit d8173d1
🔍 Latest deploy log https://app.netlify.com/projects/ember-website/deploys/6a9ec40e3b72910008337139
😎 Deploy Preview https://deploy-preview-1226--ember-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ijlee2
ijlee2 marked this pull request as ready for review September 7, 2026 11:13
@ijlee2
ijlee2 requested a review from a team September 7, 2026 11:13
@ijlee2
ijlee2 force-pushed the remove-dependencies-part-3 branch 2 times, most recently from a520ecf to 4c89d2c Compare September 7, 2026 13:42
@ijlee2
ijlee2 force-pushed the remove-dependencies-part-3 branch from 4c89d2c to 8af2008 Compare September 7, 2026 13:50
Comment on lines +26 to +32
constructor() {
// @ts-expect-error: Incorrect type
// eslint-disable-next-line prefer-rest-params
super(...arguments);

void this.fetchCanaryInfo();
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For simplicity, I assumed the ideal case (no runtime errors, no retries needed).

@ijlee2
ijlee2 force-pushed the remove-dependencies-part-3 branch from 8af2008 to 4f0c114 Compare September 7, 2026 13:53
ember: this.store.findRecord<Project>('project', 'ember/beta'),
emberData: this.store.findRecord<Project>('project', 'emberData/beta'),
});
const releases = this.modelFor('releases') as ModelFrom<ReleasesRoute>;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The parent route loads all project records, so we could have used peekRecord instead of findRecord. Here, I went with modelFor to remove the dependency on ember-data.

Comment thread tsconfig.json Outdated
"paths": {
"ember-website/tests/*": ["./tests/*"],
"ember-website/*": ["./app/*"],
"fetch": ["./node_modules/ember-fetch"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ember fetch should be fully removed

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yep, I forgot to previously. The latest commit shows that it has been removed.

Comment thread package.json Outdated
"algoliasearch",
"crypto"
"crypto",
"node-fetch"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Built in fetch should work

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, thanks. I copied the configuration from an older commit of ember-api-docs. Will remove it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

@ijlee2
ijlee2 force-pushed the remove-dependencies-part-3 branch from 4f0c114 to d8173d1 Compare September 7, 2026 14:02
@ijlee2
ijlee2 requested a review from NullVoxPopuli September 7, 2026 14:07
@ijlee2
ijlee2 merged commit 8048481 into ember-learn:main Sep 7, 2026
5 checks passed
@ijlee2
ijlee2 deleted the remove-dependencies-part-3 branch September 7, 2026 14:33
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.

2 participants