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

Add support for X-Deno-Warning header #5161

Merged
merged 4 commits into from
May 9, 2020
Merged

Conversation

ry
Copy link
Member

@ry ry commented May 8, 2020

No description provided.

@ry ry requested a review from bartlomieju May 8, 2020 18:53
@lucacasonato
Copy link
Member

We should have docs about this header.

@ry ry mentioned this pull request May 8, 2020
5 tasks
@ry
Copy link
Member Author

ry commented May 8, 2020

@lucacasonato ok docs added

Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

LGTM... Good idea! Wish I had thought of it... 😊

@ry
Copy link
Member Author

ry commented May 8, 2020

@bartlomieju This would be better in the file_fetcher module, but I couldn't find any place that actually worked for displaying the message. Hence http_util. I figure this can be moved at a later point. Or if you know a better place to put it now we can move it...

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

@bartlomieju This would be better in the file_fetcher module, but I couldn't find any place that actually worked for displaying the message. Hence http_util. I figure this can be moved at a later point. Or if you know a better place to put it now we can move it...

I agree I can move it at later time.

We should have docs about this header.

In my opinion this header shouldn't be documented or considered public. I can think of many usages of this header to display unwanted info (just like stuff displayed during npm install).

LGTM, but I want to once again express my dislike for this solution and propose to remove untagged imports from deno.land/std/ (instead use deno.land/std@master or deno.land/[email protected]).

This reverts commit f3480c4.
@lucacasonato
Copy link
Member

LGTM, but I want to once again express my dislike for this solution and propose to remove untagged imports from deno.land/std/ (instead use deno.land/std@master or deno.land/[email protected]).

Ref denoland/dotland#250

@ry
Copy link
Member Author

ry commented May 9, 2020

In my opinion this header shouldn't be documented or considered public. I can think of many usages of this header to display unwanted info (just like stuff displayed during npm install).

I'm not so worried about registry spam - but I changed my mind and agree it should be undocumented. This isn't something we necessarily want to support forever - let's just keep it an internal feature until some future date.

LGTM, but I want to once again express my dislike for this solution and propose to remove untagged imports from deno.land/std/ (instead use deno.land/std@master or deno.land/[email protected]).

Noted. Let's discuss in a couple weeks when the dust has settled. I predict the number of incompatibility complaints drops to zero.

@nayeemrmn
Copy link
Collaborator

nayeemrmn commented May 9, 2020

I'm not so worried about registry spam - but I changed my mind and agree it should be undocumented. This isn't something we necessarily want to support forever - let's just keep it an internal feature until some future date.

I infer that this is being added just to warn people against linking to master for deno.land. In response to a security concern, I once suggested this feature as a way for publishers to warn users of vulnerabilities that can be updated against. I think some kind of channel for this is important.

@ry ry merged commit eb505f8 into denoland:master May 9, 2020
@ry ry deleted the x-deno-warning branch May 9, 2020 16:43
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.

None yet

5 participants