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

chore(op-reg): Drop loglevel-debug use. #4327

Merged
merged 2 commits into from
Aug 7, 2020
Merged

Conversation

abernix
Copy link
Member

@abernix abernix commented Jun 29, 2020

BREAKING CHANGE: Drop the use of uncommonly used loglevel-debug.

Removed in the same spirit as was done in the @apollo/gateway package (see
footer for PR reference) due to general deficiencies and bugs in that
chosen implementation and also just because it's widely unutilized (if used
at all).

Much in the same way as the PR below suggests, this behavior could be opted
into if necessary by providing a custom logger to the plugin options.
While that option doesn't yet exist, a PR would be very much welcome (though
it does require juggling some of the conditions around how the "dry-run"
mode works and does its logging in a well-defined way.

BREAKING CHANGE: Drop the use of uncommonly used `loglevel-debug`.

Removed in the same spirit as was done in the `@apollo/gateway` package (see
footer for PR reference) due to general deficiencies and bugs in that
chosen implementation and also just because it's widely unutilized (if used
at all).

Much in the same way as the PR below suggests, this behavior could be opted
into if necessary by providing a custom `logger` to the plugin options.
While that option doesn't yet exist, a PR would be very much welcome (though
it does require juggling some of the conditions around how the "dry-run"
mode works and does its logging in a well-defined way.

[Ref]: #3896.
@abernix abernix requested a review from trevor-scheer June 29, 2020 20:59
Copy link
Member

@trevor-scheer trevor-scheer left a comment

Choose a reason for hiding this comment

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

@abernix abernix merged commit 08fdd23 into main Aug 7, 2020
@abernix abernix deleted the abernix/op-reg-logger branch August 7, 2020 19:30
glasser added a commit that referenced this pull request Aug 19, 2020
In 91b8839 @abernix updated package-lock for `@types/express` (something I had
also noted happened on a branch I was working on). Soon after, in #4327, that
line got dropped from package-lock.json.

I'm guessing this caused the issue I started seeing soon afterwards, where I'd
get lots of compile errors relating to `@types/express` and other
DefinitelyTyped packages it depends on. Turns out the dependencies from
`@types/express` are unversioned, but the latest versions of that type package
depends on the latest versions of a bunch of other type packages.

This commit seems to fix things for me.
glasser added a commit that referenced this pull request Aug 19, 2020
In 91b8839 @abernix updated package-lock for `@types/express` (something I had
also noted happened on a branch I was working on). Soon after, in #4327, that
line got dropped from package-lock.json.

I'm guessing this caused the issue I started seeing soon afterwards, where I'd
get lots of compile errors relating to `@types/express` and other
DefinitelyTyped packages it depends on. Turns out the dependencies from
`@types/express` are unversioned, but the latest versions of that type package
depends on the latest versions of a bunch of other type packages.

This commit seems to fix things for me.
glasser added a commit that referenced this pull request Aug 19, 2020
In 91b8839 @abernix updated package-lock for `@types/express` (something I had
also noted happened on a branch I was working on). Soon after, in #4327, that
line got dropped from package-lock.json.

I'm guessing this caused the issue I started seeing soon afterwards, where I'd
get lots of compile errors relating to `@types/express` and other
DefinitelyTyped packages it depends on. Turns out the dependencies from
`@types/express` are unversioned, but the latest versions of that type package
depends on the latest versions of a bunch of other type packages.

This commit seems to fix things for me.
glasser added a commit that referenced this pull request Aug 25, 2020
In 91b8839 @abernix updated package-lock for `@types/express` (something I had
also noted happened on a branch I was working on). Soon after, in #4327, that
line got dropped from package-lock.json.

I'm guessing this caused the issue I started seeing soon afterwards, where I'd
get lots of compile errors relating to `@types/express` and other
DefinitelyTyped packages it depends on. Turns out the dependencies from
`@types/express` are unversioned, but the latest versions of that type package
depends on the latest versions of a bunch of other type packages.

This commit seems to fix things for me.
glasser added a commit that referenced this pull request Aug 26, 2020
In 91b8839 @abernix updated package-lock for `@types/express` (something I had
also noted happened on a branch I was working on). Soon after, in #4327, that
line got dropped from package-lock.json.

I'm guessing this caused the issue I started seeing soon afterwards, where I'd
get lots of compile errors relating to `@types/express` and other
DefinitelyTyped packages it depends on. Turns out the dependencies from
`@types/express` are unversioned, but the latest versions of that type package
depends on the latest versions of a bunch of other type packages.

This commit seems to fix things for me.
abernix added a commit that referenced this pull request Aug 28, 2020
* chore(deps): specify versions for `@types/express` and friends

In 91b8839 @abernix updated package-lock for `@types/express` (something I had
also noted happened on a branch I was working on). Soon after, in #4327, that
line got dropped from package-lock.json.

I'm guessing this caused the issue I started seeing soon afterwards, where I'd
get lots of compile errors relating to `@types/express` and other
DefinitelyTyped packages it depends on. Turns out the dependencies from
`@types/express` are unversioned, but the latest versions of that type package
depends on the latest versions of a bunch of other type packages.

This commit seems to fix things for me.

* Remove a couple type dependencies from `apollo-server-express`.

- We don't directly depend on `@types/express-serve-static-core`, so I don't
  quite understand the addition of those.  I seem to not have the flapping
  of deps without adding it!

- We shouldn't need to package the `@types/qs` (or the aforementioned pkg)
  into the `apollo-server-express` package's non-dev deps because none of
  those types are exported from our emitted `d.ts` files.  Those
  dependencies should be brought by the corresponding packages if there are
  transitive dep needs.

Co-authored-by: Jesse Rosenberger <git@jro.cc>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants