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

refactor: remove deprecated @netlify/framework-info #5819

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

serhalp
Copy link
Contributor

@serhalp serhalp commented Aug 28, 2024

Summary

@netlify/framework-info was superseded by @netlify/build-info a long time ago, but the entire codebase seemingly still existed to support a couple utility function calls. I refactored these away and deleted the package.

This isn't a breaking change, as this won't result in any releases of any packages with breaking changes. We'll just stop cutting new releases of @netlify/framework-info, but we already stopped doing that long ago. Any remaining consumers should refactor to use @netlify/build-info.

To do

  • Implement replacement for listFrameworks()

It was replaced by @netlify/build-info a long time ago, but the entire codebase still existed to
support a couple utility function calls. I refactored these away and deleted the package.
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

import type { Framework } from './frameworks/framework.js'

export const listFrameworks = async ({ projectDir }: { projectDir: string }): Promise<Framework[]> => {
// FIXME(serhalp) implement
Copy link
Contributor

@mrstork mrstork Oct 25, 2024

Choose a reason for hiding this comment

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

I looked into this a little bit and noticed that all references to this function actually seem to want to know what the primary detected framework is rather than a list. Instead of reimplementing this function, we might be able to leverage existing detection functions to pass back a singular result.

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.

2 participants