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

Remove the obsolete needle dependency #18107

Merged
merged 1 commit into from
May 16, 2024

Conversation

timvandermeij
Copy link
Contributor

@timvandermeij timvandermeij commented May 16, 2024

The needle dependency originally got introduced in #12024, almost four years ago, to be able to use pre-built binaries for the canvas dependency on macOS. However, nowadays the needle dependency isn't used by canvas anymore, or any other package we use for that matter, as shown by the empty NPM dependency tree:

$ npm ls needle
pdf.js
└── needle@3.3.1

Investigation showed that the canvas package depends on the node-pre-gyp package which in turn depended on needle (see Automattic/node-canvas#1110 (comment)), but in version 1.0.0 of node-pre-gyp from three years ago the needle dependency got dropped in favor of node-fetch (see https://github.com/mapbox/node-pre-gyp/blob/a74f5e367c0d71033620aa0112e7baf7f3515b9d/CHANGELOG.md?plain=1#L52). This explains why the NPM dependency tree is empty now and proves that we can safely get rid of this dependency now.

The `needle` dependency originally got introduced in mozilla#12024, almost four
years ago, to be able to use pre-built binaries for the `canvas`
dependency on macOS. However, nowadays the `needle` dependency isn't
used by `canvas` anymore, or any other package we use for that matter,
as shown by the empty NPM dependency tree:

```
$ npm ls needle
pdf.js
└── needle@3.3.1
```

Investigation showed that the `canvas` package depends on the
`node-pre-gyp` package which in turn depended on `needle` (see
Automattic/node-canvas#1110 (comment)),
but in version 1.0.0 of `node-pre-gyp` from three years ago the `needle`
dependency got dropped in favor of `node-fetch` (see
https://github.com/mapbox/node-pre-gyp/blob/a74f5e367c0d71033620aa0112e7baf7f3515b9d/CHANGELOG.md?plain=1#L52).
This explains why the NPM dependency tree is empty now and proves that
we can safely get rid of this dependency now.
@timvandermeij
Copy link
Contributor Author

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/51a0b0e9ddf7cc7/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/51a0b0e9ddf7cc7/output.txt

Total script time: 1.16 mins

Published

@timvandermeij
Copy link
Contributor Author

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/9511f4f835d90b1/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @timvandermeij received. Current queue size: 0

Live output at: http://54.193.163.58:8877/46f601332dca73f/output.txt

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

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

r=me, nice find; thank you!

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/9511f4f835d90b1/output.txt

Total script time: 7.32 mins

  • Integration Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/46f601332dca73f/output.txt

Total script time: 19.37 mins

  • Integration Tests: Passed

@timvandermeij timvandermeij merged commit ab9574f into mozilla:master May 16, 2024
7 checks passed
@timvandermeij timvandermeij deleted the needle branch May 16, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants