Deprecate generator transforms?
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Refactorización
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- tooling
Línea de trabajo
Start with the Generators.filter and Generators.map entries linked from the README, then inspect their iterator and promise behavior against the three concerns described. Done requires a maintainer decision on deprecation versus redesign and a clearly scoped follow-up, since the issue does not select an implementation path.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
We currently provide two utility methods for creating a new Generator from an iterator: Generators.filter and Generators.map. There are a few problems with these methods:
-
If the input iterator is a Generator, the returned Generator does not wrap generator.return and generator.throw. Possibly, these methods should return an Iterator rather than a Generator, and be moved to Iterators.filter and Iterators.map. Or, these methods could “upgrade” an iterator to a generator, and wrap the return and throw methods as expected.
-
If the input iterator iterates over promises, the generator doesn’t wait for the promise to resolve. Coming from Observable, we somewhat expect the test or transform functions to be passed resolved values rather than Promise objects. However, in the case of Generators.filter, it’s not clear how that should work, since the test function might return false for the last promise, but it’s too late because the generator has already yielded a promise!
-
If the input iterator is an async iterator (i.e., iterator.next returns a Promise), these methods don’t work at all.
It’s possible that the simplest thing to do would be to deprecate these methods along with the deprecated DOM methods #31. I haven’t found them especially useful, and given the desire to keep the standard library small, it might be good to prune them.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1k
- Forks
- 87
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de observablehq/stdlib
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
observablehq/stdlib#397 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
observablehq/stdlib#384 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
observablehq/stdlib#379 · 1 comentario ·
-
enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
observablehq/stdlib#378 · 2 comentarios · 2 reacciones ·
-
issue with DuckDB parsingAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
observablehq/stdlib#371 ·
Todos los issues de observablehq/stdlib
Issues similares
-
BUG
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
type/bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
flarum/framework#5231 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/rocketmq-dashboard#6896 ·
Los mantenedores suelen responder en 3 días
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
[workshop-sync] workshop/side-quest-17-06-output-injection.md: stale add_comment.cjs line referencesAbiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
githubnext/gh-aw-workshop#4679 ·
Los mantenedores suelen responder en 1 día