Regression v1.3.0+ in Safari
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- tooling
Línea de trabajo
Reproduce el fallo en el ejemplo docusaurus-openapi con yarn install, yarn build-packages y yarn start, y compara después el resultado del lockfile de v1.1.5 con v1.3.0–v1.5.0. Inspecciona los cambios en las expresiones regulares asociados con PR 651 de postman-code-generators y la ruta que sigue la función convert. Se considera terminado cuando Safari carga sin la excepción, mientras el comportamiento de Chrome permanece sin cambios.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Using this package at ^1.3.0 results in the following exception in Safari:
Unhandled Promise Rejection: SyntaxError: Invalid regular expression: invalid group specifier named
This will crash any implementation that is not try/catching their usage around this library (e.g. when using the convert function).
To Reproduce
Steps to reproduce the behavior:
You can reproduce this issue by cloning this repository: https://github.com/cloud-annotations/docusaurus-openapi
yarn install(note: the lock file is currently resolving1.1.5)yarn build-packagesyarn start- In Safari, navigate to: http://localhost:3000/petstore
- Observe: The page loads, no errors in the console
- In Chrome, navigate to: http://localhost:3000/petstore
- Observe: The page loads, no errors in the console
Now, delete the yarn.lock file at the root of the repository and repeat the steps. (this will resolve 1.5.0)
- In Safari, the page will not load and the following error will be displayed in the console:
Unhandled Promise Rejection: SyntaxError: Invalid regular expression: invalid group specifier named
- In Chrome, the page will load and there is no error in the console.
Expected code snippet and corresponding request
N/A
Screenshots
N/A
Additional context
I tried to narrow which version was causing this issue and it appears to be in the v1.3.0 release era (happens in v1.4.0 and v1.5.0 as well).
It could be from this PR: https://github.com/postmanlabs/postman-code-generators/pull/651, however the changelog doesn't currently link to commits and is somewhat hard to narrow changes per release.
Safari does not support look behind with regular expression matching, so whatever change in v1.3.0 introduces that usage, is likely the culprit.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1k
- Forks
- 382
- 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 postmanlabs/postman-code-generators
-
postinstall runs 35 nested installs when used as a dependency, which consumers don't needPosiblemente ocupada @aelmanaa la tomó hace 8 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
cURL snippet with double quotes adds a backslash before every # characterPosiblemente ocupada @sebxt la tomó hace 20 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
postmanlabs/postman-code-generators#822 · 1 comentario ·
-
curl codegen: file-type FormParam contentType ignored — ';type=' not emitted for multipart file partsPosiblemente ocupada @CrypticCortex la tomó hace 184 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
postmanlabs/postman-code-generators#815 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
Todos los issues de postmanlabs/postman-code-generators
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
postcss/postcss.org#302 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ImranR98/apps.obtainium.imranr.dev#2000 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
routing: the tray panel's stage stands still with motion reduced while a request is in flightAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
microsoft/monaco-editor#5577 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Ebony-Vinyl/dsh-our-free-model#785 ·
Los mantenedores suelen responder en 1 día