Semver aware WASI module resolution when dealing with imports
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 56/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, rust, wasm
- Ambito
- compilers, developer-experience
Direzione di ricerca
Inizia dal percorso di risoluzione degli import WASI di ComponentizeJS e traccia la gestione esistente delle corrispondenze dirette per import come wasi:http/[email protected]. Definisci il comportamento semver compatibile per le corrispondenze esatte, gli aggiornamenti all'interno del ramo WASI 2.x supportato e il rifiuto delle versioni precedenti incompatibili. Il lavoro è completato quando l'import indicato viene risolto rispetto a worlds compatibili più recenti, mentre jco transpile resta fuori ambito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Right now when building components with ComponentizeJS, we deal with references WASI types via direct match only.
This is usually fine but forces certain versions (the ones supported by StarlingMonkey below) to be used. Ideally we should be able to do an exact match where possible and the fall back to a compatible semver track (usually allowing upgrades but not downgrades) similar to what wasmtime would do.
As WASI 2.x is unlikely to change going forward I think we can now do this pretty definitively here, with minimal changes required for StarlingMonkey as well.
Also note that while this issue is probably going to be unnecessary when the "new" ComponentizeJS lands, this issue is here for tracking purposes just to make sure this
A simple use case is being able to write wasi:http components against any version of 2.x and having that compile (and eventually jco transpile, but that's out of scope here!) properly. Essentially the following should never fail:
import { Fields } from "wasi:http/[email protected]";
(Even if the underlying world is 2.10/2.12, but this should fail if the underlying world is 2.4 probably)
Maybe it should be possible to disable this feature (i.e. supporting very specific imports), but IMO this would be a big DX improvement that is worth doing (maybe we emit some warnings or something if we're worried about it).
- Lingua principale
- Rust
- Stelle
- 404
- Fork
- 61
- Merge medio
- 21h 21m
- PR unite (30g)
- 3
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bytecodealliance/ComponentizeJS
-
Ship an Intl-enabled engineAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
bytecodealliance/ComponentizeJS#335 · 3 commenti ·
-
Reproducible buildsAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
bytecodealliance/ComponentizeJS#321 · 1 reazione ·
Tutte le issue di bytecodealliance/ComponentizeJS
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Test connection's password prompt says the password is never saved, also for a keychain profileApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
area: settings bug Haiku review: no-score ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MMFoundation/WallpaperMachine#346 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rubys/roundhouse#2473 ·
-
bug mod: quantum info
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Qiskit/qiskit#17699 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno