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

Feature: Add "Use with HTTPS" to user interface #679

Closed
dbushell opened this issue Aug 7, 2024 · 2 comments
Closed

Feature: Add "Use with HTTPS" to user interface #679

dbushell opened this issue Aug 7, 2024 · 2 comments

Comments

@dbushell
Copy link

dbushell commented Aug 7, 2024

It would helpful to add a "Use with HTTPS" option since it is possible to import like:

import {encodeBase64} from 'https://jsr.io/@std/encoding/1.0.1/base64.ts';

Visual mock-up:

use-with-http-1x

This is useful because it is no longer possible to import from source like GitHub:

import * as msgpack from 'https://raw.githubusercontent.com/denoland/std/release-2024.08.05/msgpack/mod.ts';

packages with JSR dependencies are broken (latest std/msgpack version):

Uncaught TypeError: Relative import path "@std/bytes/concat" not prefixed with / or ./ or ../
    at https://raw.githubusercontent.com/denoland/std/release-2024.08.05/msgpack/encode.ts:4:24
    at async <anonymous>:1:38

where it was possible before pre-JSR (v0.224 std/msgpack):

import * as msgpack 'https://raw.githubusercontent.com/denoland/std/0.224.0/msgpack/mod.ts';
@github-project-automation github-project-automation bot moved this to Needs Triage in JSR Aug 7, 2024
@marvinhagemeister
Copy link
Contributor

Duplicate of #133

@marvinhagemeister marvinhagemeister marked this as a duplicate of #133 Aug 7, 2024
@github-project-automation github-project-automation bot moved this from Needs Triage to Done in JSR Aug 7, 2024
@dbushell
Copy link
Author

dbushell commented Aug 8, 2024

@marvinhagemeister I don't think this is duplicate. #133 is asking for esm.sh like browser bundles. I'm refering to server-side HTTP imports the way deno.land/x used to work. My suggest is a UI update or some equilevent to surface this on the JSR package page.

They are similar requests, so if both are planned to be tackled at the same time that would be great to see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants