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 first-class support for bower #536

Merged
merged 2 commits into from
Jan 13, 2019
Merged

Conversation

stefanbuck
Copy link
Member

Over the past few years, bower lost popularity in favour of npm. Even they recommend using npm or yarn for front-end projects nowadays. OctoLinker still supports bower.json files, but remove the first-class support for ES6 modules and CommonJS and resolve to npm only form now on.

@josephfrazier
Copy link
Member

Is the goal here to reduce the number of lookups needed, in order to make it faster to lookup every link ahead of time?

@stefanbuck
Copy link
Member Author

I got interrupted while writing the PR description so I just raised the PR half way through.

Somehow yes, it's about speeding up things. Since a few weeks we prefetch some url in the background see #529. This results in a massive load increase on our live resolver service. The second most requested registry type after npm is bower which is the result of this return value from the JavaScript resolver. So yes, the intention is to reduce load on the service to speed things up overall.

image

@stefanbuck stefanbuck force-pushed the bower branch 2 times, most recently from a2d9a95 to 40bf7af Compare January 10, 2019 22:32
@@ -70,7 +70,7 @@ describe('End to End tests', () => {
});
});

describe('expanded blob', () => {
describe.skip('expanded blob', () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

The following selector isn't working anymore [data-line-number="45"] + td .octolinker-link, because our link isn't a child of [data-line-number="45"] anymore.

<tr class="blob-expanded">
    <td class="blob-num js-linkable-line-number" data-line-number="45"></td>
    <td class="blob-code blob-code-inner blob-code-marker" data-code-marker=" ">
    <a class="octolinker-link octolinker-line-indicator">
        <span>eslint-plugin-import</span>
    </a>
    </td>
</tr>

Will try to come up with a solution later

Copy link
Member

Choose a reason for hiding this comment

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

Oh, did it just move to a different number or something?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, the line number is still the same. The data attr for the line number moved to a sibling node and therefore the link element isn't accessable with a CSS selector.

@stefanbuck
Copy link
Member Author

@josephfrazier are you happy with me merging this?

Copy link
Member

@josephfrazier josephfrazier left a comment

Choose a reason for hiding this comment

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

Hey, sorry for the delay here. This look good to me! If users start complaining that bower links no longer work, we can re-evaluate.

@@ -70,7 +70,7 @@ describe('End to End tests', () => {
});
});

describe('expanded blob', () => {
describe.skip('expanded blob', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Oh, did it just move to a different number or something?

@stefanbuck stefanbuck merged commit 4ead251 into OctoLinker:master Jan 13, 2019
@stefanbuck stefanbuck mentioned this pull request Jan 14, 2019
@stefanbuck stefanbuck deleted the bower branch January 24, 2019 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants