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(changelog): update simplified imports #13016

Closed
wants to merge 1 commit into from

Conversation

choeqq
Copy link

@choeqq choeqq commented Jan 7, 2024

fix(common): fair amount of packages were missing file imports/exports

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Simplified exporting for missing files

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

I also saw a bunch of other directories that are missing correct exporting, please let me know if that change will help you, so I will know I can continue with other directories 😉

fix(common): fair amount of packages were missing file imports/exports
@coveralls
Copy link

Pull Request Test Coverage Report for Build 77ceff41-a6ad-4880-a176-83682d6633aa

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 92.115%

Totals Coverage Status
Change from base Build d0a83ee1-312f-4217-bac0-b670a26c2e00: 0.02%
Covered Lines: 6729
Relevant Lines: 7305

💛 - Coveralls

@@ -2,3 +2,4 @@ export * from './request-method.enum';
export * from './http-status.enum';
export * from './shutdown-signal.enum';
export * from './version-type.enum';
export * from './http-status.enum';
Copy link
Contributor

Choose a reason for hiding this comment

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

This has been added on line 2.

@@ -1 +1,2 @@
export * from './streamable-file';
export * from './interfaces';
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to export all interfaces? Some might be internal.

Copy link
Member

Choose a reason for hiding this comment

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

as of now, the ./interfaces/index.ts has only public interfaces.

@@ -1 +1,13 @@
export * from './forward-ref.util';
export * from './assign-custom-metadata.util';
Copy link
Contributor

Choose a reason for hiding this comment

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

Some util functions are not meant to be exported.. They're marked as internal.

Copy link
Member

Choose a reason for hiding this comment

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

yeah

AFIAK those functions at utils are for internal usage of @nestjs/common. They must not be public like this.

@kamilmysliwiec
Copy link
Member

Most of these missing imports are intentional (not a public API)

rickdgeerling added a commit to rickdgeerling/nest that referenced this pull request Sep 20, 2024
Fastify expects uppercase and won't auto-add the HEAD method otherwise

Closes nestjs#13016
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.

5 participants